:root { --navigation-height: 108px; }
body { height: auto; min-height: 100%; }
html { scroll-padding-top: calc(var(--navigation-height) + 16px); scroll-behavior: auto; }
main section[id] { scroll-margin-top: 16px; }
.navTools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navMenuToggle { display: none; }
.nav a:focus-visible, .nav summary:focus-visible, .nav button:focus-visible,
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 4px;
}
.nav .dropdownMenu { background: #08142b; z-index: 2; }
.nav .dropdownItem + .dropdownItem { margin-top: 6px; }
.nav summary { cursor: pointer; }
.nav summary, .nav a, .nav button { touch-action: manipulation; }
.navBackdrop[hidden] { display: none; }
.navBackdrop { position: fixed; inset: var(--navigation-height) 0 0; z-index: 49; background: rgba(0, 4, 15, .55); }
@media (max-width: 1024px) {
  :root { --navigation-height: 76px; }
  .nav { padding-top: env(safe-area-inset-top, 0px); background: rgba(2, 7, 20, .96); }
  .nav > .wrap { padding-inline: 20px; }
  .navin { min-height: 76px; padding: 12px 0; flex-direction: row; align-items: center; gap: 12px; }
  .nav .brand { flex: 1; min-width: 0; height: 46px; position: relative; overflow: hidden; }
  /* The existing logo file has transparent margins; crop its display box only. */
  .nav .brand img { position: absolute; width: 280px; height: 70px; max-width: none; left: -19px; top: -12px; filter: none; }
  .nav .btn, .nav .sIcon { min-width: 44px; min-height: 44px; }
  /* Native disclosure links stay usable before JavaScript loads or if it fails. */
  .nav:not([data-navigation-ready]) { position: relative; }
  .nav:not([data-navigation-ready]) .navin { flex-wrap: wrap; }
  .nav:not([data-navigation-ready]) .brand { flex-basis: 100%; }
  .nav:not([data-navigation-ready]) .navActions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%; gap: 10px; align-items: stretch;
  }
  .nav:not([data-navigation-ready]) .dropdown,
  .nav:not([data-navigation-ready]) .navSocial { grid-column: 1 / -1; }
  .nav:not([data-navigation-ready]) .navTools { margin-left: auto; }
  .nav:not([data-navigation-ready]) .navMenuToggle { display: none; }
  .navTools .btn { padding: 10px 12px; border-radius: 12px; }
  .navMenuToggle { display: inline-flex; gap: 9px; }
  .navMenuIcon { display: grid; gap: 5px; width: 17px; }
  .navMenuIcon i { height: 2px; display: block; border-radius: 2px; background: currentColor; transition: transform .18s; }
  .is-menu-open .navMenuIcon i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .is-menu-open .navMenuIcon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav[data-navigation-ready] .navActions { display: none; }
  .nav[data-navigation-ready].is-menu-open .navActions {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 12px;
    max-height: calc(100vh - var(--navigation-height) - 12px);
    max-height: calc(100dvh - var(--navigation-height) - 12px);
    padding: 16px 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-radius: 0 0 22px 22px; background: #061025; box-shadow: 0 22px 40px rgba(0,0,0,.3);
  }
  .nav .dropdown > summary { display: flex; width: 100%; justify-content: space-between; min-height: 50px; padding: 14px 16px; font-size: 17px; }
  .nav .dropdown[open] > summary { border-color: rgba(18,218,207,.5); background: rgba(18,218,207,.08); }
  .nav .dropdownMenu { position: static; min-width: 0; width: 100%; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav .dropdownItem { min-height: 48px; padding: 14px 18px; font-size: 16px; border-color: transparent; background: rgba(255,255,255,.045); }
  .nav .navSocial { order: 2; width: auto; gap: 12px; padding-top: 8px; justify-content: flex-start; }
  .nav .navActions > .primary { order: 1; min-height: 48px; font-size: 16px; }
  body.navigation-locked { position: fixed; top: var(--navigation-scroll); left: 0; right: 0; width: 100%; padding-right: var(--navigation-scrollbar, 0px); overflow: hidden; }
  .wrap { padding-inline: 20px; }
  .heroInner { min-height: min(660px, calc(100svh - var(--navigation-height))); padding-block: 48px 52px; }
  .heroContent { min-width: 0; }
  .h1 { overflow-wrap: break-word; }
  .section, .contactWrap { padding-block: 38px; }
  .sectionHeader { margin-bottom: 24px; }
  .btn { min-height: 46px; }
  input, select, textarea { font-size: 16px; min-height: 48px; }
  .reveal { transform: none; transition: opacity .25s ease; }
  .section.reveal { opacity: 1; }
  .resourceLinks a, .aboutLinks a, .footLinks a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .nav > .wrap, .wrap { padding-inline: 16px; }
  .navin { gap: 8px; }
  .navTools { gap: 6px; }
  .navTools .btn { padding-inline: 10px; }
  .heroInner { min-height: 540px; min-height: min(640px, calc(100svh - var(--navigation-height))); padding-block: 40px 44px; }
  .h1 { font-size: clamp(32px, 9.4vw, 48px); line-height: 1.05; }
  .sub { font-size: 18px; line-height: 1.5; }
  .heroRow { display: flex; gap: 10px; flex-wrap: wrap; }
  .heroRow .btn { padding-inline: 18px; min-height: 48px; }
  .sectionTitle { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.12; overflow-wrap: break-word; }
  .chartCard { padding: 20px 16px; min-width: 0; }
  .chartArea { gap: 8px; height: 260px; }
  .barName { font-size: 11px; overflow-wrap: break-word; }
  .axisCard, .cap { min-width: 0; }
  .contactPanel { padding: 24px 4px; }
  .foot { padding-block: 28px; }
  .footSocial .sIcon { width: 44px; height: 44px; }
}
@media (max-width: 360px) { .navMenuText { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .navMenuIcon i, .reveal { transition: none; }
}
