/* Site typography adoption. One reviewed stylesheet; explicit body opt-in.
 * The named important layer wins over legacy embedded important font rules
 * without changing their layout, spacing, colors or icon-font declarations.
 */
@layer gkg-site-typography {
  body.gkg-site-typography-v2 :where(main,.gkg-site-head,.gkg-site-foot) {
    --gkg-font-heading: Manrope,"GKG Inter",Arial,sans-serif;
    --gkg-font-body: "GKG Inter",InterVariable,Inter,Arial,sans-serif;
    font-family: "GKG Inter",InterVariable,Inter,Arial,sans-serif !important;
    font-optical-sizing: auto;
    font-synthesis: none;
  }
  body.gkg-site-typography-v2 :where(main,.gkg-site-head,.gkg-site-foot)
    :where(div,section,article,aside,p,li,a,dt,dd,blockquote,label,input,textarea,select,button,summary,caption,th,td,figcaption,small,strong,b,em,span:not([aria-hidden="true"]),.review-number,.sequence-num,svg text) {
    font-family: "GKG Inter",InterVariable,Inter,Arial,sans-serif !important;
    font-optical-sizing: auto;
    font-synthesis: none;
  }
  body.gkg-site-typography-v2 main :is(h1,h2,h3,h4,h5,h6),
  body.gkg-site-typography-v2 main :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,em) {
    font-family: Manrope,"GKG Inter",Arial,sans-serif !important;
    font-weight: 700 !important;
    font-synthesis: none;
    text-wrap: balance;
    hyphens: none;
    overflow-wrap: break-word;
  }
  body.gkg-site-typography-v2 .gkg-site-foot h2 {
    font: 600 18px/1.4 "GKG Inter",InterVariable,Inter,Arial,sans-serif !important;
    letter-spacing: normal;
  }
  /* Condensed-font display sizes cannot be carried over to Manrope. These
     are the reviewed title and section roles, not every small card heading. */
  body.gkg-site-typography-v2 main h1 {
    font-size: clamp(36px,4.4vw,52px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
  }
  body.gkg-site-typography-v2 main .gkg-page__title { max-width:100% !important; }
  body.gkg-site-typography-v2 main :is(.gkg-page__heading,.gkg-head h2) {
    font-size: clamp(28px,3vw,35px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
    max-width: 100% !important;
  }
  body.gkg-site-typography-v2 .gkg-type-v2 .gkg-rule-sources .gkg-page__heading { font-size:28px !important; }
  body.gkg-site-typography-v2 :is(.gkg-article-hero,.gkg-archive-hero) .gkg-kicker {
    display:block !important;
    margin-bottom:10px !important;
  }
  body.gkg-site-typography-v2 :is(.gkg-article-hero,.gkg-archive-hero) .gkg-kicker + h1 { margin-top:0 !important; }
  body.gkg-site-typography-v2 .gkg-card .gkg-kicker {
    display:block !important;
    margin-bottom:8px !important;
  }
  body.gkg-site-typography-v2 .gkg-card .gkg-kicker + h3 { margin-top:0 !important; }
  body.gkg-site-typography-v2 .gkg-next-steps > .gkg-kicker { display:block !important;margin-bottom:10px !important; }
  body.gkg-site-typography-v2 .gkg-next-steps > p:empty { display:none; }
  body.gkg-site-typography-v2 .gkg-next-steps > h2 { margin-top:0 !important; }
  /* Explicit reading roles mirror typography.css. Preserve the purposeful
     caption, source, card and interface tiers instead of sizing every p. */
  body.gkg-site-typography-v2 main :is(.gkg-page__reading,.gkg-page__wrap) > p:not(.gkg-page__eyebrow):not(.gkg-rule-sources p),
  body.gkg-site-typography-v2 main .gkg-page__reading > :is(ol,ul) > li,
  body.gkg-site-typography-v2 main .gkg-page__instructions li,
  body.gkg-site-typography-v2 main .gkg-article-content > p,
  body.gkg-site-typography-v2 main .gkg-article-content > :is(ol,ul) > li,
  body.gkg-site-typography-v2 main .gkg-article-content > section > p {
    font-size:18px !important;
    line-height:1.65 !important;
  }
  body.gkg-site-typography-v2 .gkg-parent-home .gkg-program__copy h2 {
    font-size: clamp(28px,3.2vw,40px) !important;
    line-height: 1.18 !important;
  }
}
@media(min-width:651px) and (max-width:1000px) {
  body.gkg-site-typography-v2 :is(main.gkg-library,main.gkg-archive) .gkg-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  body.gkg-site-typography-v2 .gkg-parent-home .gkg-feature__copy h3 { font-size:24px;line-height:1.25; }
}
/* Preserve the existing privacy control's clearance at the end of every page. */
body.gkg-site-typography-v2 footer.gkg-site-foot { padding-bottom:128px; }
/* Reuse the reviewed compact administrator toolbar on narrow screens.
   Public navigation and the logged-out visitor view are unaffected. */
@media(max-width:1100px) {
  body.gkg-site-typography-v2 #wpadminbar .ab-top-menu>li:not(#wp-admin-bar-site-name):not(#wp-admin-bar-new-content):not(#wp-admin-bar-edit):not(#wp-admin-bar-my-account) { display:none!important; }
  body.gkg-site-typography-v2 #wpadminbar #wp-admin-bar-my-account>.ab-item .display-name,
  body.gkg-site-typography-v2 #wpadminbar #wp-admin-bar-my-account>.ab-item .ab-label { display:none!important; }
}
