/**
 * Brand 2027 — global base (typography / links / page+post hierarchy).
 * Applies to ALL pages and posts under preview — no page-id selectors.
 * Does not restyle calculators, forms, or plugin chrome (see exceptions).
 */
html body:is(.mkb27-preview,.mkb27-public) {
  font-family: var(--mkb27-font);
}

html body:is(.mkb27-preview,.mkb27-public) :is(.site-header, header#masthead, .navbar) :is(a, button, .nav-link) {
  font-family: var(--mkb27-font);
}

html body:is(.mkb27-preview,.mkb27-public) :is(.entry-header, .entry-content, .wp-block-post-content) {
  font-family: var(--mkb27-font);
}

/* Pages — theme titles + direct content headings */
html body:is(.mkb27-preview,.mkb27-public).page .entry-header .entry-title {
  color: var(--mkb27-blue);
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).page .entry-content > :is(h2, h3, .wp-block-heading) {
  color: var(--mkb27-blue);
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).page .entry-content > p > a {
  color: var(--mkb27-blue);
}

/* Posts — approved editorial hierarchy */
html body:is(.mkb27-preview,.mkb27-public).single-post h1.entry-title {
  color: var(--mk-navy-text) !important;
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content h2,
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content h2.wp-block-heading {
  color: var(--mkb27-blue) !important;
  font-weight: 750;
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content h3,
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content h3.wp-block-heading {
  color: var(--mk-navy-text) !important;
  font-weight: 700;
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content :is(h4, h5, h6) {
  color: var(--mk-navy-text) !important;
}
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content :is(p, li, blockquote) {
  font-family: var(--mkb27-font);
}
html body:is(.mkb27-preview,.mkb27-public).single-post .entry-content :is(p, li) > a {
  color: var(--mkb27-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Future DS marketing shell */
html body:is(.mkb27-preview,.mkb27-public).mk-ds-marketing {
  font-family: var(--mkb27-font);
}
