/* Shared, restrained red overline on 5MH section landing pages.
   Do not override page H1: its original copy, size, purple color,
   alignment and spacing belong to each section. */
.fmh-page-eyebrow {
  margin: 0 auto 9px !important;
  color: #d81b53 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: .13em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

@media (max-width: 600px) {
  .fmh-page-eyebrow {
    font-size: 10px !important;
    letter-spacing: .11em !important;
  }
}

/* Shared vertical start for the seven section landing pages.
   The Assistant is the visual reference: eyebrow starts 14px below the
   navigation border. Keep every page's H1 and its internal spacing intact.
   Scope this to landing views so nested KB/Guidelines/Tools detail pages
   retain their established layout. */
:root {
  --fmh-section-overline-top-gap: 14px;
}
main.kb[data-view="home"],
main.main,
main.fmh-library .fmh-library-inner,
main.guidelines-page:not(:has(#guidelines-detail.active)),
#fmh-app:has(#fmh-view-home.is-active) {
  padding-top: var(--fmh-section-overline-top-gap) !important;
}
/* About used auto vertical centering; align the start with other pages. */
main.content {
  margin-top: 0 !important;
  padding-top: var(--fmh-section-overline-top-gap) !important;
}

/* On compact screens the Assistant baseline is 12px; keep all seven level. */
@media (max-width: 600px) {
  :root {
    --fmh-section-overline-top-gap: 12px;
  }
}

/* The Home eyebrow shares the same vertical start as the seven sections.
   Do not restyle the homepage tagline or its large headline. */
section.fmh-home-title {
  padding-top: var(--fmh-section-overline-top-gap) !important;
}

/* Match Knowledge's understated H1 typography on section landing pages.
   Keep original copy, purple colors and spacing; exclude Home, About, and
   nested Knowledge/Guidelines/Tools detail headings. */
:root {
  --fmh-section-headline-size: clamp(30px, 3vw, 41px);
}
@media (min-width: 900px) {
  :root { --fmh-section-headline-size: 37px; }
}
@media (max-width: 530px) {
  :root { --fmh-section-headline-size: 34px; }
}
:is(
  main > section.hero > h1,
  main.main > header > h1,
  main.fmh-library .fmh-library-header > h1,
  main.guidelines-page:not(:has(#guidelines-detail.active)) .guidelines-hero > h1,
  #fmh-app:has(#fmh-view-home.is-active) #fmh-view-home.is-active .fmh-hero > h1.fmh-title
) {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: var(--fmh-section-headline-size) !important;
  font-weight: 400 !important;
  line-height: 1.07 !important;
  letter-spacing: -1.05px !important;
}
