/* Public headers and outer content use the same page guide. */
@media screen {
  :root { --gd-page-gutter: 48px; }

  :root body .site-header {
    box-sizing: border-box;
    width: 100%;
    height: 96px !important;
    min-height: 96px !important;
    padding: 0 !important;
    color: #fffdf4;
  }

  :root body .site-header.site-header-light { color: #203c2e; background: #fff; }

  :root body[class] .site-header .header-inner.shell,
  :root body.school-page .site-header.gd-nav-collapsed .header-inner {
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: calc(100% - 2 * var(--gd-page-gutter)) !important;
    max-width: none !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 28px !important;
  }

  :root body .site-header .brand {
    display: flex !important;
    align-items: center;
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 78px !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit;
    text-decoration: none;
  }

  :root body .site-header .brand-logo-image {
    display: block;
    width: 46px !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
  }

  :root body .site-header .brand-name-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    color: inherit;
  }

  :root body .site-header .brand-name-copy strong {
    font: 500 27px/1.05 var(--display, Georgia) !important;
    letter-spacing: .015em;
  }

  :root body .site-header .brand-name-copy small {
    margin-top: 6px;
    font: 700 8px/1.4 var(--sans, Arial) !important;
    letter-spacing: .13em;
  }

  :root body .site-header:not(.gd-nav-collapsed) .main-nav {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    margin: 0 0 0 40px !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 48px;
    gap: 28px !important;
    white-space: nowrap;
    font: 500 14px/20px var(--sans, Arial) !important;
  }

  :root body .site-header .main-nav a { color: inherit; text-decoration: none; }
  :root body .site-header:not(.gd-nav-collapsed) .main-nav a { padding: 0 !important; }
  :root body .site-header:not(.gd-nav-collapsed) .main-nav .mobile-favorites-link { display: none !important; }

  :root body .site-header .header-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    gap: 8px !important;
    color: inherit;
  }

  :root body .site-header .icon-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: none;
  }

  :root body .site-header .icon-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
  }

  :root body[class] .site-header .header-inner .header-cta {
    box-sizing: border-box;
    display: inline-flex !important;
    flex: 0 0 176px;
    align-items: center;
    justify-content: center;
    width: 176px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 20px !important;
    border: 0;
    border-radius: 10px !important;
    background: linear-gradient(110deg, #99f85b, #76e842);
    color: #193624;
    font: 600 14px/20px var(--sans, Arial) !important;
    text-decoration: none;
    white-space: nowrap;
    gap: 14px;
  }

  :root body .site-header .header-cta > span { flex-shrink: 0; white-space: nowrap !important; line-height: 20px !important; }
  :root body.document-page .site-header { position: relative; z-index: 60; }

  :root body .site-header .header-social {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 0 0 32px !important;
    padding: 0 !important;
    gap: 10px !important;
    color: inherit;
  }

  :root body .site-header .header-social > span { margin: 0 !important; font: 500 12px/20px var(--sans, Arial); white-space: nowrap; }
  :root body .site-header .header-social .social-channel-link { display: inline-flex; align-items: center; justify-content: center; width: 44px !important; min-width: 44px !important; height: 44px; flex: 0 0 44px; }
  :root body .site-header .social-brand-icon { display: block; width: 32px; height: 32px; }
  :root body .site-header .menu-toggle { display: none; }

  :root body .site-header.gd-nav-collapsed .menu-toggle {
    display: inline-flex !important;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    gap: 6px;
  }

  :root body .site-header .menu-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; }
  :root body .site-header.gd-nav-collapsed .header-social > span { display: none; }

  :root body.home-page [data-site-section] > .shell,
  :root body.home-page .site-footer .shell,
  :root body.home-page .site-footer .footer-legal-links,
  :root body.about-page .gd-about-shell,
  :root body.school-page :is(.school-hero.shell, .school-classes.shell, .school-content.shell),
  :root body.tour-page main > section > .shell,
  :root body.tour-page .tour-footer .shell {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--gd-page-gutter)) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  :root body.home-page .hero-content.shell { width: calc(100% - 2 * var(--gd-page-gutter)) !important; max-width: none !important; margin-inline: auto !important; padding-inline: 0 !important; }
  :root body.home-page .hero-copy { margin-left: 0 !important; padding-left: 0 !important; transform: none !important; }
  :root body.home-page .chapter-line { left: -28px; }
  :root body.home-page .map-section-interactive .map-copy { left: var(--gd-page-gutter) !important; }
  :root body.school-page .school-hero :is(h1, .school-lead, .school-hero-details) { margin-left: 0 !important; }
  :root body.school-page .school-hero-index { left: -28px; }
  :root body.catalog-page .catalog-hero.shell { box-sizing: border-box; width: 100% !important; max-width: none !important; margin-inline: 0 !important; padding-inline: var(--gd-page-gutter) !important; }
  :root body.catalog-page .catalog-layout.shell { width: calc(100% - 2 * var(--gd-page-gutter)) !important; max-width: none !important; margin-inline: auto !important; }
  :root body.document-page main.document-shell { width: calc(100% - 2 * var(--gd-page-gutter)); max-width: none; margin-inline: auto; }
  :root body.document-page .document-content { width: min(100%, 1040px); margin-inline: 0; }

  @media (min-width: 901px) and (max-width: 1800px) {
    :root body[class] .site-header .header-inner.shell { gap: 20px !important; }
    :root body .site-header:not(.gd-nav-collapsed) .main-nav { margin-left: 0 !important; gap: 18px !important; }
    :root body .site-header .header-social > span { display: none; }
  }

  @media (max-width: 900px) {
    :root { --gd-page-gutter: 20px; }
    :root body .site-header,
    :root body[class] .site-header .header-inner.shell,
    :root body.school-page .site-header.gd-nav-collapsed .header-inner { height: 72px !important; min-height: 72px !important; padding-block: 0 !important; gap: 8px !important; }
    :root body .site-header .brand { flex-basis: 40px !important; width: 40px !important; min-width: 40px !important; height: 64px !important; }
    :root body .site-header .brand-logo-image { width: 40px !important; height: 56px !important; max-height: 56px !important; }
    :root body .site-header .brand-name-copy { display: none !important; }
    :root body[class] .site-header .header-inner .header-cta,
    :root body .site-header .header-actions > .icon-button,
    :root body .site-header .header-social > span { display: none !important; }
    :root body .site-header .header-social { margin: 0 !important; gap: 8px !important; }
    :root body[class] .site-header .header-social .social-channel-link { width: 32px !important; min-width: 32px !important; flex: 0 0 32px; height: 44px !important; }
    :root body .site-header .social-brand-icon { width: 30px !important; height: 30px !important; }
    :root body .site-header .header-actions { gap: 8px !important; }
    :root body.home-page .chapter-line { display: none; }
    :root body.school-page .school-hero-index { display: none; }
  }
}

@media print {
  body.document-page .site-header { display: none !important; }
}
