:root {
  --paper: #ffffff;
  --plate: #f3f6fb;
  --ink: #0d1b2a;
  --ink-2: #3a4a5f;
  --ink-3: #566780;
  --hair: #cbd4e1;
  --field: #7f93b0;
  --cobalt: #0a3d91;
  --cobalt-deep: #072c6b;
  --cobalt-wash: #eaf0fb;
  --cobalt-tint: #cfe0ff;
  --signal: #c4231a;
  --serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --shell: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(64px, 8vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 106.25%;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--cobalt) var(--plate);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  caret-color: var(--cobalt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cobalt); color: #fff; }

h4, h5 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, address { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 1px; }
.strip :focus-visible, .close :focus-visible, .site-footer :focus-visible, .reg-aside :focus-visible { outline-color: #fff; }

.shell { width: min(var(--shell), 100% - 2 * var(--gut)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hash-anchor { display: block; height: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* particle backdrop */
.bg-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.8; }
.strip, .site-footer, main { position: relative; z-index: 1; }

/* buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.button .i { transition: transform 0.25s var(--ease); }
.button:hover .i { transform: translateX(3px); }
.button-primary { background: var(--cobalt); color: #fff; }
.button-primary:hover { background: var(--cobalt-deep); }
.button-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--ink); color: #fff; }
.button-quiet { border-color: var(--field); background: #fff; color: var(--ink); }
.button-quiet:hover { border-color: var(--ink); }
.button-light { background: #fff; color: var(--cobalt-deep); }
.button-light:hover { background: var(--cobalt-tint); }
.button-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--cobalt-deep); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--cobalt); font-weight: 600; }
.text-link:hover .i { transform: translateX(3px); }
.text-link .i { transition: transform 0.25s var(--ease); }
.link-button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--cobalt); font: 600 0.9375rem var(--sans); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.link-button:hover { color: var(--cobalt-deep); }

/* strip and header */
.strip { background: var(--ink); color: #e3eaf4; font-size: 0.9375rem; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 42px; padding-block: 6px; }
.strip p { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.strip strong { color: #fff; font-variant-numeric: tabular-nums; }
.strip-dot { width: 8px; height: 8px; background: #ff6a60; border-radius: 50%; flex: none; }
.strip-deadline { white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--hair); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand-logo { position: relative; flex: none; display: inline-flex; isolation: isolate; }
/* two pale concentric rings behind the logo, breathing out of step */
.brand-logo::before, .brand-logo::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; border-radius: 50%; transform: translate(-50%, -50%); animation: brand-aura 3s ease-in-out infinite; }
.brand-logo::before { width: 92px; height: 92px; background: linear-gradient(180deg, rgba(0, 144, 255, 0.045), rgba(0, 72, 255, 0.055)); }
.brand-logo::after { width: 76px; height: 76px; background: linear-gradient(180deg, rgba(0, 144, 255, 0.07), rgba(0, 72, 255, 0.085)); animation-delay: 0.45s; }
@keyframes brand-aura { 0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; } 50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }
.brand-mark { width: auto; height: 64px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font: 700 clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem) var(--serif); letter-spacing: 0.01em; line-height: 1.2; text-transform: uppercase; text-wrap: balance; }
/* 1200px and up: the institute name stays on one line and scales with the room left beside the nav */
@media (min-width: 1200px) {
  .brand { flex: 1 1 auto; }
  .brand-copy { flex: 1 1 auto; min-width: 0; container-type: inline-size; }
  .brand-copy strong { white-space: nowrap; font-size: clamp(0.8125rem, 3.7cqi, 1.3125rem); }
}
.primary-nav { flex: none; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.primary-nav a { white-space: nowrap; padding: 8px 2px; font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink-2); background: linear-gradient(var(--cobalt), var(--cobalt)) left bottom / 0 2px no-repeat; transition: background-size 0.3s var(--ease), color 0.2s; }
.primary-nav a:hover { color: var(--ink); background-size: 100% 2px; }
.primary-nav .nav-cta { margin-left: 8px; padding: 11px 22px; background: var(--cobalt); color: #fff; font-weight: 600; border-radius: 2px; }
.primary-nav .nav-cta:hover { background: var(--cobalt-deep); color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--field); background: #fff; border-radius: 2px; cursor: pointer; position: relative; flex: none; }
.nav-toggle span[aria-hidden] { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle span[aria-hidden]:nth-of-type(2) { top: 18px; }
.nav-toggle span[aria-hidden]:nth-of-type(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { transform: translateY(-5px) rotate(-45deg); }

/* section scaffolding */
section { padding-block: var(--section); }
.section-plate { background: rgba(243, 246, 251, 0.9); }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3rem); line-height: 1.12; letter-spacing: -0.012em; }
.section-head p { margin-top: 18px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .section-head { position: sticky; top: 112px; }

/* hero */
.hero { padding-block: clamp(20px, 2.4vw, 32px) clamp(48px, 6vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.15rem + 4vw, 4.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.hero h1 .magic-text { font-style: italic; }
.hero h1 .h1-sub { display: block; color: var(--ink); }
/* sparkling gradient on the series name (after Hyperplexed's "magic" text) */
.magic { position: relative; }
.magic-text { background: linear-gradient(to right, #0a3d91, #1673e3, #5aa9ff, #0a3d91); background-size: 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cobalt); animation: magic-pan 3s linear infinite; }
.magic-star { --size: clamp(16px, 1.4vw, 26px); position: absolute; left: var(--star-left, 0); top: var(--star-top, 0); width: var(--size); height: var(--size); display: block; transform: scale(0); pointer-events: none; animation: magic-scale 700ms ease forwards; }
.magic-star svg { display: block; width: 100%; height: 100%; opacity: 0.75; animation: magic-rotate 1000ms linear infinite; }
.magic-star path { fill: #1673e3; }
@keyframes magic-pan { from { background-position: 0% center; } to { background-position: -200% center; } }
@keyframes magic-scale { from, to { transform: scale(0); } 50% { transform: scale(1); } }
@keyframes magic-rotate { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
.byline { margin-top: 16px; font-size: 1.1875rem; color: var(--ink); }
.byline strong { font-weight: 700; }
.abstract { margin-top: 22px; border-top: 2px solid var(--ink); }
.abstract { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.abstract div { padding: 9px 0; border-bottom: 1px solid var(--hair); }
.abstract .is-wide { grid-column: 1 / -1; }
.abstract dt { margin-bottom: 2px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.abstract dd { font-size: 1.0625rem; line-height: 1.5; }
.abstract dd a { color: var(--cobalt); font-weight: 600; }
.abstract .is-deadline dd { color: var(--signal); font-weight: 700; }
.abstract .is-count dd { font: 700 1.75rem/1.2 var(--serif); color: var(--cobalt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* figure plates */
.sheet { border: 1px solid var(--hair); background: #fff; padding: clamp(12px, 1.6vw, 20px); --f-ink: var(--ink); --f-mute: var(--ink-3); --f-grid: #dde4ee; --f-pt: rgba(10, 61, 145, 0.62); --f-fit: var(--ink); --f-band: rgba(10, 61, 145, 0.13); --f-hi: var(--signal); --f-halo: #fff; --f-s1: rgba(10, 61, 145, 0.85); --f-s2: rgba(10, 61, 145, 0.42); --f-s3: rgba(10, 61, 145, 0.14); }
.fig-note { margin-bottom: 8px; font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sheet figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.sheet figcaption strong { color: var(--ink); }
.figure-svg { display: block; width: 100%; height: auto; overflow: visible; }
.f-grid { stroke: var(--f-grid); stroke-width: 1; }
.f-axis { stroke: var(--f-mute); stroke-width: 1.2; }
.f-tick, .f-label { fill: var(--f-mute); font: 500 14px var(--sans); font-variant-numeric: tabular-nums; }
.f-label { font-size: 15.5px; fill: var(--f-ink); font-weight: 600; }
.f-pt { fill: var(--f-pt); }
.f-fit { fill: none; stroke: var(--f-fit); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.f-fit.dash { stroke-dasharray: 7 6; }
.f-line { fill: none; stroke: var(--f-ink); stroke-width: 1.8; stroke-linejoin: round; opacity: 0.78; }
.f-band { fill: var(--f-band); stroke: none; }
.f-zone { fill: var(--f-band); }
.f-leader { stroke: var(--f-ink); stroke-width: 1; fill: none; }
.f-note { fill: var(--f-ink); font: 600 16px var(--sans); paint-order: stroke; stroke: var(--f-halo); stroke-width: 5px; stroke-linejoin: round; }
.f-note-sub { fill: var(--f-mute); font: 500 14px var(--sans); paint-order: stroke; stroke: var(--f-halo); stroke-width: 5px; stroke-linejoin: round; }
.f-mark { fill: var(--f-ink); }
.f-thr { stroke: var(--f-ink); stroke-width: 1.6; stroke-dasharray: 6 5; fill: none; }

.f-pt { opacity: 0; }
.f-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.f-band, .f-note, .f-note-sub, .f-leader, .f-mark, .f-zone, .f-late { opacity: 0; }
.is-plotted .f-pt { animation: f-pt 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 11ms); }
.is-plotted .f-draw { animation: f-draw var(--dur, 1.1s) var(--d, 0.55s) var(--ease) forwards; }
.is-plotted .f-band, .is-plotted .f-zone { animation: f-fade 0.7s 0.95s ease-out forwards; }
.is-plotted .f-note, .is-plotted .f-note-sub, .is-plotted .f-leader, .is-plotted .f-mark, .is-plotted .f-late { animation: f-fade 0.6s 1.5s ease-out forwards; }
@keyframes f-pt { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes f-draw { to { stroke-dashoffset: 0; } }
@keyframes f-fade { to { opacity: 1; } }
.f-pt { transform-box: fill-box; transform-origin: center; }
.f-ci { fill: none; stroke: var(--f-pt); stroke-width: 2.4; stroke-linecap: round; }
.f-ci.is-miss { stroke: var(--f-ink); stroke-width: 3.4; }
.f-pt.is-miss { fill: var(--f-ink); }
.f-bar { fill: var(--f-pt); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.f-bar.is-key { fill: var(--f-ink); }
.f-barx { transform-box: fill-box; transform: scaleX(0); }
.f-s1 { fill: var(--f-s1); }
.f-s2 { fill: var(--f-s2); }
.f-s3 { fill: var(--f-s3); }
.f-area { stroke: var(--f-halo); stroke-width: 1; }
.f-box { fill: var(--f-band); stroke: var(--f-ink); stroke-width: 1.6; }
.f-med { stroke: var(--f-ink); stroke-width: 3; }
.f-whisk { stroke: var(--f-ink); stroke-width: 1.4; }
.f-edge { fill: none; stroke: var(--f-ink); stroke-width: 1.6; }
.f-node { fill: var(--f-ink); }
.f-node-c { fill: var(--f-halo); stroke: var(--f-ink); stroke-width: 2; }
.f-cat { fill: var(--f-ink); font: 600 14px var(--sans); }
.f-cat.f-small { fill: var(--f-mute); font-size: 13px; font-weight: 500; }
.f-on-dark { fill: #fff; }
.f-in { opacity: 0; }
.f-wipe { clip-path: inset(0 100% 0 0); }
.is-plotted .f-bar { animation: f-grow 0.55s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 45ms); }
.is-plotted .f-barx { animation: f-grow 0.6s var(--ease) forwards; animation-delay: calc(0.2s + var(--i, 0) * 110ms); }
.is-plotted .f-in { animation: f-fade 0.5s var(--d, 0.6s) ease-out forwards; }
.is-plotted .f-wipe { animation: f-wipe 1.3s var(--d, 0.2s) var(--ease) forwards; }
@keyframes f-grow { to { transform: none; } }
@keyframes f-wipe { to { clip-path: inset(0 0 0 0); } }
.sheet.is-swapping .figure-svg, .sheet.is-swapping figcaption { animation: swap 0.38s var(--ease); }

.hero-plate .f-tick { font-size: 16px; }
.hero-plate .f-label { font-size: 17px; }
.hero-plate .f-note { font-size: 17.5px; }
.hero-plate .f-note-sub { font-size: 15.5px; }
.hero-plate .f-cat { font-size: 15.5px; }

/* registration */
.registration-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.reg-aside { position: sticky; top: 112px; padding: 28px; background: var(--cobalt); color: #fff; }
.reg-aside h3 { font-size: 1.5rem; margin-bottom: 18px; }
.stepper li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); color: var(--cobalt-tint); transition: color 0.2s; }
.step-no { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font: 600 0.9375rem var(--sans); font-variant-numeric: tabular-nums; }
.stepper li.is-current { color: #fff; font-weight: 600; }
.stepper li.is-current .step-no { background: #fff; color: var(--cobalt-deep); border-color: #fff; }
.stepper li.is-done { color: #fff; }
.stepper li.is-done .step-no { background: rgba(255, 255, 255, 0.22); border-color: transparent; }
.reg-aside-foot { margin-top: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.28); display: grid; gap: 10px; }
.reg-aside-foot p { display: flex; justify-content: space-between; align-items: baseline; color: var(--cobalt-tint); }
.reg-aside-foot strong { font: 700 1.25rem var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.reg-aside-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; color: #fff; }

.reg-form { background: #fff; border: 1px solid var(--hair); padding: clamp(22px, 3.2vw, 44px); }
.step-count { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step + .step { margin-top: 40px; }
.step > legend { padding: 0; margin-bottom: 22px; font: 600 1.625rem/1.2 var(--serif); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field-wide { grid-column: 1 / -1; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label:not(.choice), .choice-group > legend, .birth-group > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.req { color: var(--signal); }
.field-hint { margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); }
.form-grid > .field-hint { margin-top: -10px; }
.optional { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 2px;
  background: #fff; color: var(--ink); font: 400 1rem var(--sans); transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #66758a; }
input:hover, select:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.is-invalid, .is-invalid:hover { border-color: var(--signal) !important; box-shadow: 0 0 0 1px var(--signal); }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); flex: none; }
.choice-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.birth-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 14px; position: relative; padding: 15px 16px; border: 1px solid var(--hair); margin-top: -1px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid .choice { margin-top: 0; }
.choice input { margin-top: 3px; }
.choice strong { display: block; font-weight: 600; line-height: 1.35; }
.choice small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 0.9375rem; }
.choice:hover { background: var(--plate); }
.choice:has(input:checked) { background: var(--cobalt-wash); border-color: var(--cobalt); z-index: 1; }
.radio-row { display: flex; gap: 28px; }
.radio-row label, .radio-grid label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.consent-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--plate); cursor: pointer; }
.consent-row input { margin-top: 3px; }
.consent-row a { color: var(--cobalt); font-weight: 600; }
.feedback { margin-top: 24px; padding: 14px 16px; border: 1px solid; font-size: 1rem; line-height: 1.55; }
.feedback-error { border-color: var(--signal); background: #fff4f3; color: #8f1b14; }
.feedback-status { border-color: var(--cobalt); background: var(--cobalt-wash); color: var(--ink); }
.feedback-status a { color: var(--cobalt-deep); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.form-actions .step-count { width: 100%; margin-bottom: 2px; }
.form-call { margin-left: auto; font-weight: 600; color: var(--ink); }
html:not(.js) [data-step-next], html:not(.js) [data-step-prev], html:not(.js) .step-count { display: none; }
.form-noscript { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--signal); background: #fff4f3; }

/* programs */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-bottom: 2px solid var(--ink); }
.tab { display: grid; gap: 2px; padding: 16px 20px 18px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink-2); box-shadow: inset 0 -5px 0 transparent; transition: box-shadow 0.25s var(--ease), color 0.2s; }
.tab span { font: 600 1.125rem/1.3 var(--sans); }
.tab strong { color: var(--ink-3); font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--cobalt); color: #fff; box-shadow: inset 0 -5px 0 var(--cobalt-deep); }
.tab.is-active strong { color: var(--cobalt-tint); }
.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 72px); margin-top: 40px; align-items: start; }
.panel.is-swapping .sheet, .panel.is-swapping .panel-copy { animation: swap 0.38s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.panel-copy h3 { margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.2; }
.panel-copy > p { margin-top: 14px; color: var(--ink-2); }
.panel-copy > .panel-label { margin-top: 24px; font: 700 0.8125rem var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.panel-copy > .panel-label + .skill-list { margin-top: 8px; }
.skill-list { margin-top: 24px; border-top: 2px solid var(--ink); }
.skill-list li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--hair); }
.skill-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; background: var(--cobalt); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 22px; }
.facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font: 600 1.1875rem var(--serif); font-variant-numeric: tabular-nums; }

/* schedule and tables */
.split-body { min-width: 0; }
.stack > .section-head { max-width: none; }
.stack .split-body { margin-top: clamp(24px, 3vw, 36px); }
.calendar { margin-bottom: 48px; }
.cal-days, .cal-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.cal-days span { display: grid; place-items: center; min-height: 84px; background: var(--cobalt); color: #fff; font: 600 1.625rem var(--serif); font-variant-numeric: tabular-nums; }
.cal-days .rest { background: var(--plate); color: var(--ink-3); border: 1px dashed var(--field); font-weight: 400; }
.cal-bars { margin-top: 8px; }
.bar { padding-top: 8px; border-top: 3px solid var(--ink); font-size: 1.125rem; font-weight: 700; text-align: center; }
.b1 { grid-column: 1 / 4; } .b2 { grid-column: 5 / 7; } .b3 { grid-column: 8 / 11; }
.cal-note { margin-top: 14px; font-size: 1.0625rem; color: var(--ink-2); }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table caption { caption-side: top; text-align: left; margin-bottom: 14px; font-size: 0.9375rem; color: var(--ink-2); }
.table caption strong { color: var(--ink); }
.table thead th { padding: 12px 16px; text-align: left; background: var(--cobalt-tint); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.table tbody th, .table tbody td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.table tbody th { font: 600 1.125rem/1.35 var(--serif); }
.table .num { text-align: right; white-space: nowrap; }
.table th.num, .table td.num { padding-right: 16px; }
.table tfoot td { padding: 16px 0 0; border-bottom: 2px solid var(--ink); padding-bottom: 16px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }


.table-schedule tbody tr:last-child > * { border-bottom: 2px solid var(--ink); }
.table-schedule .num { text-align: left; }
.table-schedule tbody th { font-size: 1.25rem; }
.table-schedule tbody td { font-size: 1.0625rem; }
.table-schedule .stt { width: 72px; padding-right: 8px; text-align: left; color: var(--ink-3); font: 600 1.125rem var(--serif); }
.table-schedule thead .stt { font: 700 0.8125rem var(--sans); }
.ledger .is-deadline dd { color: var(--signal); }


/* tuition */

.price-notes { margin-top: 22px; max-width: 86ch; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.price-notes ul { display: grid; gap: 6px; margin-top: 10px; }
.price-notes li { position: relative; padding-left: 18px; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 2px; background: var(--cobalt); }

/* tuition packages: accordion row, one panel open */
.pkgs { display: flex; height: 750px; margin-top: clamp(32px, 4vw, 52px); }
.pkg { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--cobalt); color: #fff; border-left: 1px solid rgba(255, 255, 255, 0.24); transition: flex-grow 0.55s var(--ease), background-color 0.3s; }
.pkg:first-child { border-left: 0; }
.pkg:not(.is-open):hover { background: var(--cobalt-deep); }
.pkg.is-open { flex-grow: 3; background: var(--paper); color: var(--ink); border-left-color: transparent; box-shadow: inset 0 0 0 1px var(--hair), inset 0 4px 0 var(--cobalt); }
.pkg-head { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 28px 16px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pkg.is-open .pkg-head { padding: 32px 28px 0; cursor: default; }
.pkg-head:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.pkg-no { position: absolute; z-index: 0; left: 12px; bottom: -14px; font: 600 clamp(6rem, 3rem + 6vw, 8.5rem)/1 var(--serif); color: rgba(255, 255, 255, 0.13); pointer-events: none; }
.pkg.is-open .pkg-no { left: auto; right: 20px; top: 18px; bottom: auto; color: var(--cobalt-wash); }
.pkg-name { font: 700 1rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt-tint); }
.pkg.is-open .pkg-name { color: var(--cobalt); }
.pkg-combo { font: 600 1.25rem/1.25 var(--serif); }
.pkg.is-open .pkg-combo { font-size: 2rem; }
.pkg-fee { margin-top: 12px; font: 600 clamp(1rem, 0.35rem + 1.45vw, 1.25rem)/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.pkg.is-open .pkg-fee { margin-top: 18px; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -0.02em; color: var(--cobalt); }
.pkg-fee small { font: 600 1rem var(--sans); letter-spacing: 0; color: var(--ink-2); }
.pkg:not(.is-open) .pkg-fee small { display: none; }
.pkg-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-width: 340px; padding: 10px 28px 28px; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
.pkg.is-open .pkg-body { opacity: 1; visibility: visible; transition: opacity 0.35s 0.2s, visibility 0s; }
.pkg-days { font: 600 1.0625rem var(--sans); color: var(--ink-3); }
.pkg-courses { margin-top: 16px; display: grid; gap: 4px; font-size: 1.125rem; color: var(--ink-2); }
.pkg-courses li { position: relative; padding-left: 18px; }
.pkg-courses li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--cobalt); }
.pkg-deals { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hair); }
.pkg-deals h4 { font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.pkg-deals ul { margin-top: 10px; display: grid; gap: 10px; }
.pkg-deals li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.pkg-deals strong { padding: 3px 10px; border-radius: 999px; background: var(--cobalt-wash); font: 700 0.875rem var(--sans); color: var(--cobalt); white-space: nowrap; }
.pkg-deals span { font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.pkg-cta { align-self: flex-start; margin-top: auto; }
.pkg-deals + .pkg-cta { margin-top: 26px; }

.deals { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 4vw, 44px); border-top: 4px solid var(--cobalt); color: var(--cobalt); }
.deals-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.timeline { position: relative; display: flex; height: 8px; margin: 96px 0 72px; --now: 0%; }
.tl-before { flex: 68; background: var(--cobalt); }
.tl-after { flex: 20; background: repeating-linear-gradient(90deg, rgba(10, 61, 145, 0.65) 0 10px, transparent 10px 18px); }
.tl-now { position: absolute; z-index: 2; left: var(--now); top: -60px; width: 0; height: 60px; }
.tl-now::before { content: ""; position: absolute; left: -1px; top: 30px; width: 2px; height: 30px; background: var(--cobalt-deep); }
.tl-now::after { content: ""; position: absolute; left: -9px; top: 51px; width: 18px; height: 18px; background: var(--cobalt-deep); border: 3px solid var(--paper); border-radius: 50%; }
.tl-now-label { position: absolute; left: 0; top: 0; transform: translateX(-50%); padding: 4px 12px; background: var(--cobalt-deep); color: #fff; font: 600 0.9375rem/1.4 var(--sans); white-space: nowrap; }
.tl-now[data-edge="start"] .tl-now-label { transform: translateX(-12px); }
.tl-now[data-edge="end"] .tl-now-label { transform: translateX(calc(-100% + 12px)); }
.tl-mark { position: absolute; top: 0; transform: translateX(-50%); padding-top: 22px; font: 700 1.125rem var(--serif); text-align: center; white-space: nowrap; line-height: 1.2; }
.tl-mark::before { content: ""; position: absolute; left: 50%; top: -8px; width: 24px; height: 24px; margin-left: -12px; background: var(--paper); border: 3px solid var(--cobalt); border-radius: 50%; }
.tl-mark small { display: block; margin-top: 3px; font: 500 0.875rem var(--sans); white-space: normal; max-width: 150px; margin-inline: auto; }
.tl-mark-1 { left: calc(68 / 88 * 100%); }
.tl-mark-2 { left: auto; right: 0; transform: none; }
.tl-mark-2::before { left: auto; right: 0; margin-left: 0; }
.tl-mark-2 small { width: max-content; max-width: 260px; text-align: right; margin-left: auto; }

.pkg-deals strong span { font: inherit; color: inherit; }
.pkg-deals li.deal-hl { display: block; margin-top: 4px; padding: 14px 16px; background: var(--cobalt); color: #fff; }
.pkg-deals li.deal-hl strong { display: block; padding: 0; background: none; border-radius: 0; font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt-tint); }
.pkg-deals li.deal-hl > span, .pkg-deals li.deal-hl > span span { display: inline; margin-top: 4px; font: 700 1.125rem/1.4 var(--sans); color: #fff; }
.pkg-deals li.deal-hl > span { display: block; }
.pkg-deals li.deal-hl .is-past { color: var(--cobalt-tint); }
.is-past, .pkg-deals .is-past, .pkg-deals li.is-past strong, .pkg-deals li.is-past span { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tl-before.is-past { background: var(--hair); }
.tl-after.is-past { background: repeating-linear-gradient(90deg, var(--hair) 0 10px, transparent 10px 18px); }
.tl-mark.is-past::before { border-color: var(--field); }


/* outline placeholder, faculty, faq, payment */
.outline-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.outline-panel[hidden] { display: none; }
.outline-side { align-self: start; }
.outline-side h3 { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--serif); }
.outline-meta { margin-top: 10px; font: 700 0.875rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.outline-side h4 { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hair); font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.outline-need { margin-top: 10px; display: grid; gap: 8px; color: var(--ink-2); }
.outline-need li { position: relative; padding-left: 18px; }
.outline-need li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--cobalt); }
.outline-method { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--hair); }
.outline-method summary { cursor: pointer; font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.outline-method p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.outline-flow { margin-bottom: 28px; padding: 18px 22px 20px; background: var(--cobalt-wash); border-top: 3px solid var(--cobalt); }
.outline-flow-label { font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.outline-flow ol { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.outline-flow li { display: inline-flex; align-items: baseline; gap: 8px; font: 600 1.0625rem var(--serif); color: var(--ink); }
.outline-flow li:not(:last-child)::after { content: "→"; font-family: var(--sans); color: var(--cobalt); }
.outline-flow li:last-child { color: var(--cobalt); }
.outline-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.outline-bar p { font: 700 0.875rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.outline-toggle { padding: 6px 0; border: 0; background: none; font: 600 0.9375rem var(--sans); color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lesson { border-bottom: 1px solid var(--hair); }
.lesson-head { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 1.75rem; grid-template-areas: "no title mark" "no peek mark"; column-gap: 12px; row-gap: 6px; width: 100%; padding: 20px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lesson-head:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.lesson-no { grid-area: no; font: 600 2rem/1 var(--serif); color: var(--cobalt); font-variant-numeric: lining-nums; }
.lesson-title { grid-area: title; font: 600 1.25rem/1.3 var(--serif); transition: color 0.2s; }
.lesson-head:hover .lesson-title { color: var(--cobalt); }
.lesson-label { display: block; margin-bottom: 2px; font: 700 0.75rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lesson-peek { grid-area: peek; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.lesson.is-open .lesson-peek { display: none; }
.lesson-mark { grid-area: mark; align-self: center; justify-self: end; position: relative; width: 16px; height: 16px; }
.lesson-mark::before, .lesson-mark::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--cobalt); transition: transform 0.25s var(--ease); }
.lesson-mark::after { transform: rotate(90deg); }
.lesson.is-open .lesson-mark::after { transform: rotate(0deg); }
.lesson-body { display: none; padding: 0 0 24px calc(3.25rem + 12px); }
.lesson.is-open .lesson-body { display: block; }
.lesson-body > ul { display: grid; gap: 10px; }
.lesson-body li { position: relative; padding-left: 18px; line-height: 1.6; color: var(--ink-2); }
.lesson-body li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 2px; background: var(--cobalt); }
.lesson-body li.lesson-plain { padding-left: 0; }
.lesson-body li.lesson-plain::before { display: none; }
.lesson-sub { margin-top: 6px; display: grid; gap: 4px; }
.lesson-sub li { color: var(--ink); font-weight: 600; }
.authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); margin-top: clamp(36px, 4vw, 56px); }
.author { padding-top: 22px; border-top: 2px solid var(--ink); }
.author-role { color: var(--cobalt); font-weight: 600; }
.author h3 { margin-top: 0; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); line-height: 1.15; }
.author-aff { margin-top: 8px; color: var(--ink-3); font-size: 0.9375rem; }
.author-link { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.author-link a { color: var(--cobalt); font-weight: 600; }
.author > p:last-child { margin-top: 20px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.72; color: var(--ink-2); max-width: 66ch; }


.payment { border-top: 1px solid var(--hair); }
.ledger { border-top: 2px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ledger dt { padding-top: 4px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.ledger dd { font: 600 1.1875rem/1.4 var(--serif); overflow-wrap: anywhere; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 1.75rem !important; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* close and footer */
.close { background: var(--cobalt); color: #fff; }
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.close h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; }
.close-copy p { margin-top: 22px; max-width: 58ch; color: var(--cobalt-tint); font-size: 1.125rem; }
.close-copy p + p { margin-top: 10px; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.close-contact { display: grid; border-top: 2px solid #fff; }
.close-place { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); color: var(--cobalt-tint); }
.close-contact a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); text-decoration: none; font: 600 1.625rem var(--serif); font-variant-numeric: tabular-nums; }
.close-contact a span { font: 600 0.8125rem var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--cobalt-tint); }
.close-contact a:hover { text-decoration: underline; }

.site-footer { background: var(--ink); color: #c4d0e0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand strong { text-wrap: balance; display: block; font: 700 1.375rem var(--serif); color: #fff; }
.footer-brand p, .footer-grid p { margin-top: 8px; font-size: 0.9375rem; }
.footer-grid h2 { margin: 0 0 12px; font: 700 0.8125rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-grid a { display: flex; align-items: center; gap: 6px; min-height: 36px; color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.875rem; }

.mobile-bar { display: none; }


/* floating side navigation */
.side-nav { position: fixed; left: 6px; top: 50%; z-index: 40; display: none; transform: translateY(-50%); }
.side-nav ul { display: grid; padding: 6px 2px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--hair); }
.side-nav a { position: relative; display: flex; align-items: center; min-height: 38px; padding-inline: 6px; text-decoration: none; }
.side-nav .tick { flex: none; width: 14px; height: 2px; background: #7f93b0; transition: width 0.3s var(--ease), background-color 0.2s; }
.side-nav a:hover .tick, .side-nav a:focus-visible .tick, .side-nav a.is-active .tick { width: 26px; background: var(--cobalt); }
.side-nav a.is-active .tick { height: 3px; }
.side-nav .label { position: absolute; left: 100%; top: 50%; margin-left: 10px; padding: 4px 12px; background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-6px, -50%); transition: opacity 0.2s, transform 0.25s var(--ease); }
.side-nav a:hover .label, .side-nav a:focus-visible .label { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1100px) { .side-nav { display: block; } }
/* wide screens: names always visible, page shell leaves a rail for them */
@media (min-width: 1280px) {
  :root { --rail: 142px; }
  .side-nav { left: 4px; }
  /* the page shell leaves the left rail free for the side menu */
  .shell { width: min(var(--shell), 100% - var(--rail) - var(--gut)); margin-left: max(var(--rail), calc((100% - min(var(--shell), 100% - var(--rail) - var(--gut))) / 2)); margin-right: 0; }
  .side-nav ul { padding: 6px 0; }
  .side-nav a { min-height: 40px; padding: 0 10px 0 12px; }
  .side-nav .tick { display: none; }
  .side-nav a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: transparent; transition: background-color 0.2s; }
  .side-nav a.is-active::before { background: var(--cobalt); }
  .side-nav .label { position: static; margin: 0; padding: 0; background: none; color: var(--ink-2); font-size: 0.8125rem; opacity: 1; pointer-events: auto; transform: none; transition: color 0.2s; }
  .side-nav a:hover .label, .side-nav a:focus-visible .label, .side-nav a.is-active .label { color: var(--cobalt); transform: none; }
}

/* figure loop controls */

.footer-logo { display: inline-grid; place-items: center; width: 112px; height: 112px; margin-bottom: 16px; border-radius: 50%; background: #fff; border: 4px solid rgba(207, 224, 255, 0.55); }
.footer-logo img { display: block; width: 72px; height: auto; }

/* responsive */
@media (max-width: 1060px) {
  .pkgs { flex-direction: column; height: auto; }
  .pkg { flex: none; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.24); transition: background-color 0.3s; }
  .pkg:first-child { border-top: 0; }
  .pkg.is-open { border-top-color: transparent; }
  .pkg-no { display: none; }
  .pkg-head, .pkg.is-open .pkg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name fee mark" "combo fee mark"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 18px 20px; cursor: pointer; }
  .pkg-name { grid-area: name; }
  .pkg-combo, .pkg.is-open .pkg-combo { grid-area: combo; font-size: 1.125rem; }
  .pkg-fee, .pkg.is-open .pkg-fee { grid-area: fee; margin: 0; font-size: 1.375rem; letter-spacing: 0; text-align: right; }
  .pkg.is-open .pkg-fee { color: var(--cobalt); }
  .pkg:not(.is-open) .pkg-fee small { display: none; }
  .pkg-head::after { content: "+"; grid-area: mark; font: 400 1.75rem/1 var(--sans); }
  .pkg.is-open .pkg-head::after { content: "\2212"; }
  .pkg-body { display: none; min-width: 0; padding: 4px 20px 24px; opacity: 1; visibility: visible; }
  .pkg.is-open .pkg-body { display: flex; }
  .pkg-deals li { grid-template-columns: auto minmax(0, 1fr); }
  .primary-nav a:not(.nav-cta):nth-child(n + 5) { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; background: #fff; border-bottom: 1px solid var(--hair); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.nav-cta):nth-child(n + 5) { display: block; }
  .primary-nav a { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--hair); background: none; }
  .primary-nav .nav-cta { margin: 16px 0 0; text-align: center; border: 0; }
  .hero-grid, .split, .registration-grid, .panel, .authors, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .split > .section-head, .reg-aside { position: static; }
  .outline-panel { grid-template-columns: minmax(0, 1fr); }
  .reg-aside { order: 2; padding: 20px 22px; }
  .reg-aside h3, .stepper { display: none; }
  .reg-aside-foot { margin: 0; padding: 0; border: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mobile-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--hair); }
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 720px) {
  .timeline { display: grid; gap: 22px; height: auto; margin: 28px 0 40px; }
  .tl-before, .tl-after { display: none; }
  .tl-now { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .tl-now::before, .tl-now::after { display: none; }
  .tl-now .tl-now-label, .tl-now[data-edge] .tl-now-label { position: static; display: inline-block; transform: none; }
  .tl-mark, .tl-mark-1, .tl-mark-2 { position: relative; left: auto; top: auto; transform: none; padding: 0 0 0 38px; text-align: left; white-space: normal; }
  .tl-mark::before, .tl-mark-2::before { left: 0; top: 0; margin-left: 0; }
  .tl-mark small, .tl-mark-2 small { width: auto; max-width: none; margin: 3px 0 0; text-align: left; }
  .brand-mark { height: 54px; }
  .lesson-head { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; column-gap: 10px; }
  .lesson-no { font-size: 1.625rem; }
  .lesson-body { padding-left: 0; }
  .cal-days span { min-height: 56px; font-size: 1.125rem; }
  .bar { font-size: 0.9375rem; }
  .strip .strip-deadline { display: none; }
  .strip { font-size: 0.8125rem; }
  .strip-inner { min-height: 0; padding-block: 5px; }
  .bg-canvas { opacity: 0.48; }
  .hero-actions .button-primary { display: none; }
  .f-tick, .hero-plate .f-tick { font-size: 21px; }
  .f-label, .hero-plate .f-label { font-size: 19px; }
  .f-note, .hero-plate .f-note { font-size: 20px; stroke-width: 6px; }
  .f-note-sub, .hero-plate .f-note-sub { font-size: 17px; stroke-width: 6px; }
  .f-cat, .hero-plate .f-cat { font-size: 17px; }
  .f-cat.f-small { font-size: 15px; }
  .tabs { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .tab, .tab + .tab { padding: 14px 0; border-bottom: 1px solid var(--hair); box-shadow: inset 4px 0 0 transparent; padding-left: 14px; }
  .tab.is-active { box-shadow: inset 4px 0 0 var(--cobalt-deep); background: var(--cobalt); }
  .tabs { border-top: 2px solid var(--ink); }
  .form-grid, .radio-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .form-call { margin-left: 0; }
  .abstract { grid-template-columns: minmax(0, 1fr); }
  .abstract .is-wide { grid-column: auto; }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .table tbody th, .table tbody td { display: block; padding: 0; border: 0; }
  .table .num { white-space: normal; }
  .table tbody td.num { padding-right: 0; }
  .table-schedule tbody tr:last-child { border-bottom: 2px solid var(--ink); }
  .table-schedule tbody tr:last-child > * { border-bottom: 0; }
  .table-schedule tbody tr { grid-template-columns: minmax(0, 1fr); }
  .table-schedule td.num { color: var(--ink-3); text-align: left; }
  .table-schedule .stt { order: -1; width: auto; font: 700 0.8125rem var(--sans); letter-spacing: 0.07em; text-transform: uppercase; }
  .table-schedule .stt::before { content: attr(data-stt); }
  .table-schedule td.stt { font-size: 0; }
  .table-schedule td.stt::before { font-size: 0.8125rem; }
                        .close-contact a { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .f-pt { opacity: 1; }
  .f-draw { stroke-dashoffset: 0; }
  .f-band, .f-note, .f-note-sub, .f-leader, .f-mark, .f-zone, .f-late, .f-in { opacity: 1; }
  .f-bar, .f-barx { transform: none; }
  .f-wipe { clip-path: none; }
  .magic-star { display: none; }
}


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-form[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* learner-care chat: corner launcher and panel from 901px, full-screen sheet and a bottom-bar button below */
.chat-launcher { display: none; }
.chat { position: fixed; z-index: 70; right: 24px; bottom: 24px; display: flex; flex-direction: column; width: min(420px, 100vw - 48px); height: min(680px, 100vh - 48px); background: #fff; border: 1px solid var(--ink); border-top: 4px solid var(--cobalt); }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 8px 12px 20px; border-bottom: 2px solid var(--ink); }
.chat-head h2 { font-size: 1.1875rem; line-height: 1.3; }
.chat-head h2:focus { outline: none; }
.chat-head h2:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.chat-head p { margin-top: 3px; font: 700 0.8125rem/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.chat-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
.chat-close:hover { background: var(--plate); }
.chat-close .i { width: 22px; height: 22px; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-log { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { flex: none; max-width: 100%; font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg > * + * { margin-top: 10px; }
.chat-msg ul, .chat-msg ol { padding-left: 1.3em; }
.chat-msg ul { list-style: disc; }
.chat-msg ol { list-style: decimal; }
.chat-msg li + li { margin-top: 4px; }
.chat-msg li::marker { color: var(--ink-3); }
.chat-msg a { color: var(--cobalt); font-weight: 600; text-decoration: underline; }
.chat-msg a:hover { color: var(--cobalt-deep); }
.chat-msg-user { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 2px; background: var(--cobalt-wash); white-space: pre-wrap; }
.chat-msg-error { padding: 12px 14px; border: 1px solid var(--hair); background: var(--plate); color: var(--ink-2); }
.chat-msg-error .link-button { margin-left: -4px; }
.chat-typing { color: var(--ink-3); }
.chat-typing span { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: chat-dot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-suggest { flex: none; }
.chat-suggest h3 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 700 0.8125rem/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.chat-suggest button, .chat-options button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--ink); font: 500 1rem/1.4 var(--sans); text-align: left; cursor: pointer; }
.chat-suggest button::after, .chat-options button::after { content: "\2192"; flex: none; color: var(--cobalt); font-weight: 600; transition: transform 0.25s var(--ease); }
.chat-suggest button:hover, .chat-options button:hover { color: var(--cobalt); }
.chat-suggest button:hover::after, .chat-options button:hover::after { transform: translateX(3px); }
.chat-msg .chat-options { margin-top: 10px; padding-left: 0; list-style: none; border-top: 1px solid var(--hair); }
.chat-form { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--hair); }
.chat-form textarea { flex: 1; min-width: 0; height: 50px; min-height: 50px; max-height: 132px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.5 var(--sans); resize: none; }
.chat-form textarea:hover { border-color: var(--ink); }
.chat-form textarea:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.chat-form textarea::placeholder { color: var(--ink-3); }
.chat-send { flex: none; width: 50px; padding: 0; }
.chat-send .i { width: 22px; height: 22px; }
.chat-send[aria-disabled="true"] { background: var(--field); cursor: progress; }
.chat-people { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.chat-people a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; color: var(--cobalt-deep); font: 600 0.9375rem/1.25 var(--sans); text-align: center; text-decoration: none; }
.chat-people a + a { border-left: 1px solid var(--hair); }
.chat-people a:hover { background: var(--plate); text-decoration: underline; }

@media (min-width: 901px) {
  .js .chat-launcher { position: fixed; z-index: 55; right: 24px; bottom: 24px; display: inline-flex; }
  /* the launcher's lane at the very bottom, like the mobile bar's below 900px */
  .js .site-footer { padding-bottom: 74px; }
}

@media (max-width: 900px) {
  .chat { top: 0; right: 0; bottom: auto; left: 0; width: auto; height: 100%; border: 0; border-top: 4px solid var(--cobalt); }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat-people { padding-bottom: env(safe-area-inset-bottom); }
  .chat-open body { overflow: hidden; }
  .js .mobile-bar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .js .mobile-bar .button { gap: 6px; padding-inline: 10px; white-space: nowrap; }
  .mobile-bar [data-chat-open] { display: none; }
  .js .mobile-bar [data-chat-open] { display: inline-flex; }
}

@media (max-width: 359px) {
  .mobile-bar .button .i { display: none; }
}
