/* Shared header, with a readable fallback before navigation is enhanced. */
#nav, header.top { --site-header-height: 72px; }
.site-header :is(.nav-inner, .nav) { min-height: 72px; gap: 20px; }
.site-header .nav-links { align-items: center; gap: clamp(12px, 1.4vw, 22px); margin: 0; padding: 0; }
.site-header .links { overflow: visible; }
.site-header :is(.nav-links, .links) > .nav-item { gap: 3px; }
.site-header :is(.nav-links, .links) > .nav-item > a { white-space: nowrap; }
.site-header .nav-submenu-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; min-height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #52657e; cursor: pointer; }
.site-header .nav-submenu-toggle span { display: block; font-size: 13px; line-height: 1; transition: transform 160ms ease; }
.site-header .nav-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.site-header .nav-submenu-toggle:hover { background: #eef4fb; }
.site-header :is(a, button):focus-visible { outline: 3px solid #2457d6; outline-offset: 4px; }
.site-header .nav-dropdown[hidden], .site-header .mobile-menu[hidden] { display: none !important; }
.site-header .nav-dropdown:not([hidden]) { display: block; opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.site-header .nav-dropdown a::after { display: none; }
.site-header .mobile-toggle { display: none; align-items: center; justify-content: center; flex: 0 0 auto; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid #ccd9e8; border-radius: 8px; background: #fff; cursor: pointer; }
.site-header .mobile-toggle span { display: block; width: 21px; height: 2px; margin: 0; background: #243850; transition: transform 160ms ease, opacity 160ms ease; }
.site-header .mobile-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.site-header .mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header .mobile-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-header .mobile-menu { position: absolute; inset: 100% 0 auto; z-index: 1001; width: 100%; max-height: calc(100vh - var(--site-header-height)); max-height: calc(100dvh - var(--site-header-height)); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px max(20px, calc((100vw - 680px) / 2)) calc(24px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0; }
.site-header .mobile-menu > a { display: flex; align-items: center; min-height: 48px; padding: 12px 8px; border-bottom: 1px solid #e1e8f0; font-size: 15px; font-weight: 700; }
.site-header .mobile-submenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 4px 8px 12px; }
.site-header .mobile-submenu a { display: flex; align-items: center; min-height: 44px; padding: 8px 0 !important; font-size: 13px; white-space: normal; }
.site-header .mobile-menu .site-mobile-cta { justify-content: center; margin-top: 20px; border: 1px solid #b8cdec; border-radius: 8px; background: #edf4ff !important; color: #1d4b9b !important; }
html.site-menu-open, html.site-menu-open body { overflow: hidden; }
html:not(.motion-ready):not(.site-reveal-ready) .reveal { opacity: 1; transform: none; }
.reveal:focus-within { opacity: 1; transform: none; transition-delay: 0s; }
/* Related destinations stay visible at tablet widths; FAQ keeps the page gutter. */
.answer-section > .wrap { width: min(1180px, calc(100% - 40px)); }
.topic-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
.topic-links.topic-links--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.topic-links a { min-width: 0; overflow-wrap: anywhere; }
.topic-links a:focus-visible, .answer-item summary:focus-visible { outline: 3px solid #2457d6 !important; outline-offset: 3px; }
.programs-gateway { padding: 52px 20px; background: #eef3fa; }
.programs-gateway__inner { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; }
.programs-gateway small { display: block; margin-bottom: 12px; color: #3158a1; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.programs-gateway h2 { margin: 0 0 12px; color: #172d4d !important; font-size: clamp(24px, 2.5vw, 34px) !important; line-height: 1.3; letter-spacing: -.04em; }
.programs-gateway p { margin: 0 0 18px; color: #54657d !important; font-size: 15px; line-height: 1.8; }
.programs-gateway__link { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; color: #224eaa !important; font-size: 14px; font-weight: 800; }
.programs-gateway__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.programs-gateway__topics a { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 16px; border: 1px solid #cedbed; border-radius: 10px; background: #fff; color: #203b60 !important; text-decoration: none; font-size: 14px; font-weight: 700; }
.programs-gateway__topics span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; background: #ecf2fc; color: #3561b4; font-size: 12px; font-weight: 800; }
.programs-gateway a:focus-visible { outline: 3px solid #2457d6; outline-offset: 4px; }
@media (max-width: 1000px) {
  .topic-links, .topic-links.topic-links--five { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .topic-links a { min-width: 0; min-height: 68px; padding: 14px 16px; border-bottom: 1px solid #dce4ef; }
  .topic-links a:nth-child(even) { border-right: 0; }
  .topic-links.topic-links--five a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .programs-gateway__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .topic-links a { gap: 8px; font-size: 13px; padding: 12px; }
  .topic-links a::after { display: none; }
  .programs-gateway__topics a { font-size: 13px; gap: 8px; padding: 12px; }
}
.motion-focus-revealed:focus-within { opacity: 1 !important; transform: none !important; translate: none !important; clip-path: none !important; transition: none !important; }

@media (min-width: 1101px) {
  .site-header .mobile-menu { display: none !important; }
}
@media (max-width: 1100px) {
  .site-header :is(.nav-inner, .nav) { height: 72px; min-height: 72px; padding: 0 20px; flex-direction: row; align-items: center; justify-content: space-between; }
  .site-header :is(.nav-links, .links), .site-header :is(.nav-cta, .nav > .cta) { display: none; }
  .site-header .mobile-toggle { display: flex; }
  .site-header .mobile-menu.open { display: block; }
  /* No script: the original links remain in normal flow on every header variant. */
  html:not(.site-nav-ready) :is(#nav, header.top) { position: relative; }
  html:not(.site-nav-ready) :is(#nav .nav-inner, header.top .nav) { height: auto; flex-wrap: wrap; flex-direction: row; padding: 16px 20px; gap: 12px; }
  html:not(.site-nav-ready) :is(#nav .nav-links, header.top .links) { display: flex; flex: 1 0 100%; flex-wrap: wrap; width: 100%; gap: 10px 18px; overflow: visible; padding: 0; margin: 0; }
  html:not(.site-nav-ready) :is(#nav .mobile-toggle, #nav .nav-cta, header.top .nav > .cta) { display: none; }
}
@media (max-width: 380px) {
  .site-header .mobile-submenu { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .site-header *, .site-header *::before, .site-header *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
