/* Public pages: layout and components. Loaded after site.css. */
:root {
  --ink: #14213D;
  --ink-soft: #46546B;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --line: #D5DDEB;
  --sea: #2457D6;
  --sea-dark: #173C9A;
  --sun: #F4A300;
  --sky: #E8F0FF;
  --coral: #E4572E;
  --mint: #12A17F;
  --grape: #6A3FD0;
  --shadow: 0 1px 0 rgba(20, 33, 61, .06), 0 10px 28px -12px rgba(20, 33, 61, .28);
}
body { background: #fff; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 30; }
.skip:focus { left: 8px; }
main { display: block; }
h1, h2, h3 { letter-spacing: -0.025em; }
a { color: var(--sea); }
.eyebrow { font: 600 15px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--sea); }

/* announcement strip */
.strip { background: var(--ink); color: #fff; font-size: 15px; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; padding-block: 9px; text-align: center; }
.strip a { color: var(--sun); font-weight: 600; }
.strip a:hover { color: #fff; }

/* header */
#site-header { background: #fff; border-bottom: 1px solid var(--line); }
.topbar { padding-block: 12px; }
.brand img { width: 44px; height: 44px; }
.brand { font-size: 23px; }
.nav { gap: 6px 6px; }
.nav a:not(.btn) { padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.nav a:not(.btn):hover { background: var(--sky); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--sky); text-decoration: none; color: var(--sea-dark); }
.nav .btn { padding: 10px 20px; margin-left: 6px; background: var(--sea); color: #fff; border-color: var(--sea); }
.nav .btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }

/* buttons */
.btn { border-radius: 10px; font-weight: 700; padding: 14px 26px; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #B87800; }
.btn-sun:hover { background: #FFB61F; color: var(--ink); }
.btn-ghost { border-color: var(--ink); }

/* sections */
.section { padding: 76px 0; }
.section.alt { background: var(--sky); border: 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #C9D3E8; }
.sec-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.prose { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--sky); padding: 64px 0 84px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 13ch; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 52ch; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-art svg { position: absolute; }
.hero .facts-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--ink); }
.hero .facts-row span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-right: 8px; }
.hero .facts-row span:nth-child(2)::before { background: var(--mint); }
.hero .facts-row span:nth-child(3)::before { background: var(--sun); }
.hero .facts-row span:nth-child(4)::before { background: var(--grape); }

/* try-a-problem card */
.try { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); border: 2px solid var(--ink); position: relative; }
.try::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border-radius: 18px; background: var(--sun); z-index: -1; }
.try .tag { display: inline-block; font: 700 14px var(--font-body); background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 14px; }
.try h2 { font-size: 24px; margin: 14px 0 10px; line-height: 1.2; }
.try .q { font-size: 19px; line-height: 1.5; }
.try form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.try form > * { min-width: 0; }
.try input { flex: 1 1 140px; width: auto; min-width: 0; max-width: 100%; font-size: 20px; font-weight: 700; border: 2px solid var(--ink); border-radius: 10px; }
.try .btn { background: var(--ink); color: #fff; box-shadow: none; }
.try .btn:hover { background: var(--sea); }
.try .fb { margin-top: 14px; min-height: 28px; font-weight: 600; }
.try .fb.ok { color: var(--ok); }
.try .fb.no { color: var(--bad); }
.try .sol { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.try svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 12px auto 0; }

/* quick tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: -44px; position: relative; z-index: 2; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 16px; color: #fff; text-decoration: none; box-shadow: var(--shadow); min-height: 150px; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); color: #fff; }
.tile b { font: 800 24px/1.1 var(--font-display); }
.tile span { font-size: 16px; opacity: .92; }
.tile svg { width: 34px; height: 34px; margin-bottom: auto; }
.tile.t1 { background: var(--sea); }
.tile.t2 { background: var(--coral); }
.tile.t3 { background: var(--mint); }
.tile.t4 { background: var(--grape); }

/* date cards */
.dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dcard { background: #fff; border-radius: 16px; padding: 22px; border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.dcard .date { align-self: flex-start; font: 800 22px/1 var(--font-display); background: var(--sun); color: var(--ink); border-radius: 10px; padding: 8px 12px; }
.dcard:nth-child(2) .date { background: #B9D3FF; }
.dcard:nth-child(3) .date { background: var(--coral); color: #fff; }
.dcard:nth-child(4) .date { background: #B6EBDD; }
.dcard h3 { font-size: 20px; }
.dcard p { color: var(--ink-soft); font-size: 16px; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin: 0; }
.stat b { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--font-display); color: var(--sun); }
.stat span { color: #C9D3E8; font-size: 17px; }

/* divisions */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.badge { display: inline-block; font: 700 14px var(--font-body); letter-spacing: 0; text-transform: none; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 14px; }
.badge.sun { background: var(--sun); color: var(--ink); }
.division { border: 2px solid var(--ink); border-top-width: 10px; border-top-color: var(--mint); box-shadow: var(--shadow); }
.division.d2 { border-top-color: var(--sun); }
.division.d3 { border-top-color: var(--coral); }
.division h3 { font-size: 30px; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts span:first-child { color: var(--ink-soft); }
.facts span:last-child { font-weight: 600; text-align: right; }

/* awards */
.award { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.award .pct { font: 800 40px/1 var(--font-display); color: var(--sea); }
.award svg.medal-art { width: 76px; height: 96px; }
.award-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.award-row .award { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--line); }
.medal { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--sun); background: #fff; }
.medal.m2 { border-color: var(--sea); }
.medal.m3 { border-color: var(--coral); }
.medal.m4 { border-color: var(--mint); }

/* steps */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--sun); font: 800 24px var(--font-display); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }

/* two-column info */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.panel { border-radius: 18px; padding: 30px; background: #fff; border: 2px solid var(--ink); }
.panel h3 { font-size: 28px; margin-bottom: 12px; }
.panel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.panel.p1 { background: #FFF3D6; }
.panel.p2 { background: #E2F6EF; }

/* sample problem + faq */
.problem { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: center; }
.problem svg { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.problem details { margin-top: 16px; }
details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 15px 20px; min-height: 48px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 24px var(--font-body); color: var(--sea); }
details[open] > summary::after { content: "\2212"; }
summary h3 { font: 600 17px var(--font-body); letter-spacing: 0; }
details .body { padding: 0 20px 18px; color: var(--ink-soft); }
details .body p + p { margin-top: 10px; }

/* inner page heads */
.page-head { background: var(--sky); padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--sun); opacity: .9; }
.page-head::before { content: ""; position: absolute; right: 150px; bottom: -70px; width: 140px; height: 140px; border-radius: 28px; background: var(--coral); transform: rotate(18deg); opacity: .85; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.page-head p.lead { font-size: 20px; color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 760px; }
.timeline li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 6px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 20px 22px; }
.timeline li::before { content: none; }
.timeline .when { font: 800 18px/1.25 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--sun); border-radius: 10px; padding: 8px 12px; align-self: start; }
.timeline li:nth-child(2n) .when { background: #B9D3FF; }
.timeline li:nth-child(3n) .when { background: #FFC5B3; }
.timeline li:nth-child(5n) .when { background: #B6EBDD; }
.timeline h3 { font-size: 22px; margin: 0 0 4px; }
.timeline p { grid-column: 2; }

/* call to action */
.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: 46px clamp(24px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: var(--sun); opacity: .95; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }
.cta p { color: #C9D3E8; margin-top: 8px; max-width: 50ch; }
.todo { background: var(--sun); color: var(--ink); padding: 0 5px; border-radius: 3px; font-family: var(--font-mono); font-size: .9em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { max-width: 640px; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.form-card form { display: grid; gap: 18px; }
.form-card .hint { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }

/* footer */
footer.site { background: var(--ink); color: #C9D3E8; border-top: 0; padding: 56px var(--gutter) 40px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 1184px; margin: 0 auto; }
footer.site h2 { font: 700 17px var(--font-body); letter-spacing: 0; color: #fff; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: #C9D3E8; }
footer.site a:hover { color: var(--sun); }
footer.site .fine { max-width: 1184px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #2D3C5E; font-size: 14px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tiles, .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-art svg:nth-child(n+3) { display: none; }
  .hero-art svg:first-child { width: 64px; height: 64px; right: 14px; top: 14px; opacity: .9; }
  .hero h1 { max-width: 11ch; }
  .nav a:not(.btn) { padding: 7px 9px; font-size: 15px; }
  .nav .btn { padding: 8px 14px; margin-left: 0; }
  .try::before { inset: 8px -6px -8px 6px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 68px; }
  .tiles, .dates { grid-template-columns: 1fr; }
  .tiles { margin-top: -36px; }
  .tile { min-height: 0; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline p { grid-column: 1; }
  .brand { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .try { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
