:root {
  --navy: #0E1F3D;
  --navy-deep: #0A1730;
  --cobalt: #1E5BC6;
  --sky: #DCE8FA;
  --gold: #F5C518;
  --paper: #F7F9FC;
  --ink: #1A2333;
  --muted: #55627A;
  --line: #D5DDEA;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; }
img, svg, iframe { max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Placeholder content to replace before launch. Search the files for class="todo" */
.todo { background: rgba(245,197,24,.28); border-bottom: 2px dashed #C99A00; padding: 0 .2em; }

/* ---------- Header and navigation ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: var(--navy); padding-top: env(safe-area-inset-top, 0px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; position: relative; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; flex: none; }
.brand img { width: 34px; height: 40px; }
.menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .sub-toggle { display: block; color: #C9D6EE; text-decoration: none; font: 600 .95rem var(--body); padding: .55rem .7rem; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.menu > li > a:hover, .sub-toggle:hover, .menu a[aria-current="page"], .has-sub.current > .sub-toggle { color: #fff; }
.menu a[aria-current="page"], .has-sub.current > .sub-toggle { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.sub-toggle::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(14,31,61,.25); }
.sub a { display: block; padding: .55rem .75rem; border-radius: 6px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--sky); }
.sub .sub-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.sub .sub-all a { color: var(--muted); font-weight: 400; }
.has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover > .sub { display: block; } }
.nav-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: .45rem .7rem; font: 600 .95rem var(--body); cursor: pointer; }

@media (max-width: 960px) {
  .nav { gap: .6rem; }
  .brand { margin-right: auto; }
  .nav-toggle { display: block; order: 3; }
  .btn.nav-cta { padding: .45rem .95rem; font-size: .95rem; }
  #primary-nav { display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; background: var(--navy); padding: .5rem 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100vh - 4rem); overflow-y: auto; }
  #primary-nav.open { display: block; box-shadow: 0 16px 24px rgba(0,0,0,.35); border-bottom: 3px solid var(--gold); }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu > li > a, .sub-toggle { padding: .85rem 0; width: 100%; text-align: left; font-size: 1.05rem; }
  .menu a[aria-current="page"], .has-sub.current > .sub-toggle { box-shadow: none; color: var(--gold); }
  .sub { position: static; box-shadow: none; background: transparent; padding: 0 0 .75rem 1rem; min-width: 0; }
  .sub a { color: #C9D6EE; }
  .sub a:hover, .sub a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  .sub .sub-all { border-color: rgba(255,255,255,.1); }
  .sub .sub-all a { color: #A9B8D3; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--gold); }
.btn:hover { background: #FFD84A; border-color: #FFD84A; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost:hover { border-color: #fff; }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Home hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero .mark { position: absolute; right: -6%; bottom: -18%; width: min(560px, 70vw); opacity: .14; pointer-events: none; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 15vw, 10rem); line-height: .85; margin: 0 0 1.5rem; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--gold); font-size: .42em; line-height: 1; margin-top: .35em; letter-spacing: .01em; }
.hero p.lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 34ch; margin: 0 0 2rem; color: #E3EAF7; }
.badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; padding: .35rem .85rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .9rem; color: #C9D6EE; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Interior page header ---------- */
.page-head { background: var(--navy); color: #fff; padding: 3.25rem 0 3rem; position: relative; overflow: hidden; }
.page-head .mark { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: 220px; opacity: .1; pointer-events: none; }
.crumbs { font-size: .9rem; color: #A9B8D3; margin: 0 0 .75rem; }
.crumbs a { color: #C9D6EE; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: .95; margin: 0 0 .75rem; }
.page-head p { margin: 0; max-width: 58ch; color: #D6E2F7; font-size: 1.15rem; }

/* ---------- Sections and type ---------- */
section { padding: 4rem 0; }
section.tight { padding: 3rem 0; }
.alt { background: var(--sky); }
.dark { background: var(--navy); color: #fff; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1; margin: 0 0 1rem; color: var(--navy); }
.dark h2 { color: #fff; }
h3 { color: var(--navy); font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
.dark h3 { color: #fff; }
.intro { max-width: 60ch; color: var(--muted); margin: 0 0 2.25rem; }
.dark .intro, .dark p { color: #C9D6EE; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- Season panel ---------- */
.season { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.season-tag { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; margin-bottom: 1rem; }
@media (max-width: 820px) { .season { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Fact list ---------- */
.facts { display: grid; gap: 1.1rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 3rem; }
.why-grid h3 { margin: 0 0 .35rem; padding-top: .75rem; border-top: 4px solid var(--gold); }
.why-grid p { margin: 0; color: var(--muted); }

/* ---------- Age steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: .75rem; }
.step { background: var(--cobalt); color: #fff; border-radius: 10px 10px 0 0; padding: 1.25rem 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; }
.step:nth-child(1) { min-height: 140px; }
.step:nth-child(2) { min-height: 185px; background: #1A4FAE; }
.step:nth-child(3) { min-height: 230px; background: #164396; }
.step:nth-child(4) { min-height: 275px; background: var(--navy); }
.step strong { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.step span { color: #D6E2F7; font-size: .95rem; }
.ground { height: 6px; background: var(--gold); border-radius: 0 0 4px 4px; }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; align-items: start; }
  .step { min-height: 0 !important; border-radius: 10px; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .step:nth-child(1) { width: 70%; } .step:nth-child(2) { width: 80%; } .step:nth-child(3) { width: 90%; }
  .ground { display: none; }
}

/* ---------- Division panels (registration) ---------- */
.divs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.div-panel { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--cobalt); border-radius: 12px; padding: 1.75rem; }
.div-panel.girls { border-top-color: var(--gold); }
.div-panel h2 { font-size: 2.2rem; margin-bottom: .25rem; }
.div-panel .ages { color: var(--muted); margin: 0 0 1.25rem; }
.div-panel ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.div-panel li { margin-bottom: .35rem; }
@media (max-width: 760px) { .divs { grid-template-columns: 1fr; } }

/* ---------- Numbered sequence ---------- */
ol.seq { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
ol.seq li { counter-increment: s; }
ol.seq li::before { content: counter(s); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 900; font-size: 1.5rem; margin-bottom: .75rem; }
ol.seq h3 { margin: 0 0 .25rem; }
ol.seq p { margin: 0; }

/* ---------- Resource index ---------- */
.res-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-list a { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none; color: var(--muted); }
.res-list a strong { font-family: var(--display); font-weight: 900; font-size: 1.9rem; color: var(--navy); line-height: 1; }
.res-list a:hover strong { color: var(--cobalt); }
@media (max-width: 600px) { .res-list a { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Field graphic and map ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.field { background: #2F7D4A; border-radius: 12px; aspect-ratio: 5 / 3; position: relative; overflow: hidden; }
.field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--sky); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq h2 { margin-top: 2.5rem; font-size: 2rem; }
.faq h2:first-child { margin-top: 0; }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cobalt); }
details[open] summary::after { content: "\2013"; }
details p { margin: .6rem 0 0; color: var(--muted); max-width: 65ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { margin: .4rem 0 0; color: #C9D6EE; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #A9B8D3; padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-family: var(--body); font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 .6rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: #C9D6EE; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: .4rem 0; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }

@media (max-width: 360px) { .btn.nav-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
