h1, h2, h3, h4, h5, h6 {
  font-family: var(--mws-font-heading);
  line-height: 1.12;
  margin: 0 0 var(--mws-space-md);
}

h1:not(.has-text-color),
h2:not(.has-text-color),
h3:not(.has-text-color),
h4:not(.has-text-color),
h5:not(.has-text-color),
h6:not(.has-text-color) {
  color: var(--mws-color-heading);
}

.wp-block-heading.has-background:not(.has-text-color) {
  color: var(--mws-color-primary-contrast, #ffffff);
}

/*
 * Legacy WordPress White preset compatibility.
 * v364 uses the unique `mws-white` palette slug, while existing content may
 * still contain the former core-style `white` utility classes. WordPress
 * preset utilities use !important, so compatibility must match that contract.
 */
.has-white-color {
  color: #ffffff !important;
}

.has-white-background-color {
  background-color: #ffffff !important;
}

.has-white-border-color {
  border-color: #ffffff !important;
}

p {
  margin: 0 0 var(--mws-space-md);
  line-height: 1.65;
}

a {
  color: var(--mws-color-link);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--mws-color-link-hover);
}

small,
.mws-text-small,
.mws-entry-meta,
.mws-breadcrumbs,
.woocommerce-breadcrumb {
  font-size: var(--mws-font-size-small);
}

.mws-entry-title,
.mws-page-title,
h1,
.mws-h1,
.entry-title,
.page-title {
  font-size: var(--mws-font-size-h1);
}

h2,
.mws-h2 {
  font-size: var(--mws-font-size-h2);
}

h3,
.mws-h3 {
  font-size: var(--mws-font-size-h3);
}

h4,
.mws-h4 {
  font-size: var(--mws-font-size-h4);
}

h5,
.mws-h5 {
  font-size: var(--mws-font-size-h5);
}

h6,
.mws-h6 {
  font-size: var(--mws-font-size-h6);
}
