: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; }
.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(1) { top: 18px; }
.nav-toggle span[aria-hidden]:nth-of-type(2) { top: 28px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { 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 { color: var(--cobalt); }
.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; }
/* the college mark is itself a round badge, so it can fill the circle */
.footer-logo-cdyt img { width: 92px; }

/* 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 { 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; }

/* ==========================================================================
   Thiết kế nghiên cứu: overrides on top of the R series stylesheet above.
   Cyan accent (--cyan for fills and rules, --cyan-ink for text on white) and
   co-branding with Trường Cao đẳng Y tế Lâm Đồng.
   ========================================================================== */
:root {
  /* healing cyan: medical teal-cyan for fills and rules; --cyan-ink for text on white (5.8:1) */
  --cyan: #14b4c0; --cyan-ink: #07707a; --cyan-wash: #e5f6f7;
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 2.5h5v5h5v5h-5v5h-5v-5h-5v-5h5z'/%3E%3C/svg%3E");
}

.strip-dot { width: 12px; height: 12px; border-radius: 0; background: var(--cyan); -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; }
.table thead .stt { color: var(--ink); }

/* header: both logos with full names, one action */
.brand-duo { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); min-width: 0; text-decoration: none; color: var(--ink); }
.brand-unit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-unit strong { max-width: 18em; font: 700 clamp(0.875rem, 0.7rem + 0.45vw, 1.0625rem)/1.25 var(--serif); letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.brand-unit + .brand-x + .brand-unit strong { color: var(--cyan-ink); max-width: 14em; }
.brand-x { flex: none; width: 1px; height: 48px; background: var(--hair); }
.brand-mark-cdyt { flex: none; height: 60px; width: auto; }
.header-cta { flex: none; }
@media (min-width: 1400px) {
  .brand-unit strong, .brand-unit + .brand-x + .brand-unit strong { max-width: none; white-space: nowrap; }
}

/* hero */
.hero-lede { margin-top: 20px; max-width: 40ch; font: 400 italic clamp(1.25rem, 1rem + 0.7vw, 1.5rem)/1.45 var(--serif); color: var(--ink-2); }
.abstract { border-top-color: var(--ink); }
.abstract .is-count dd { color: var(--cyan-ink); }

/* hero figures */
.hero-plate { border-top: 3px solid var(--cyan); }
.hero-plate .dg[hidden] { display: none; }
.hero-plate.is-swapping .dg { animation: swap 0.38s var(--ease); }
.dg-box { fill: var(--cyan-wash); stroke: var(--cyan); stroke-width: 1.5; }
.dg-title { font: 600 22px var(--serif); fill: var(--ink); }
.dg-picot rect { fill: #fff; stroke: var(--cyan); stroke-width: 1.5; }
.dg-picot text { font: 700 19px var(--serif); fill: var(--cyan-ink); }
.dg-line, .dg-spine { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dg-spine-obs { stroke: var(--cyan); stroke-width: 2; }
.dg-spine-trial { stroke: var(--cobalt); stroke-width: 2; }
.dg-node { stroke-width: 2; }
.dg-obs { fill: #fff; stroke: var(--cyan); }
.dg-trial { fill: var(--cobalt); stroke: var(--cobalt); }
.dg-node-text { font: 600 19px var(--serif); fill: var(--ink); }
.dg-node-text.is-light { fill: #fff; }
.dg-leaf rect { fill: #fff; stroke: var(--hair); }
.dg-leaf text { font: 500 16px var(--sans); fill: var(--ink-2); }
.dg-arrow-cyan { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.dg-arrow-ink { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 7 6; }
.dg-head-cyan { fill: var(--cyan); }
.dg-head-ink { fill: var(--ink); }
.dg-label { font: 600 17px var(--sans); fill: var(--ink); }
.dg-note { font: 400 15.5px var(--sans); fill: var(--ink-3); }
.pw-grid { fill: none; stroke: #dde4ee; stroke-width: 1; }
.pw-axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pw-tick text { font: 400 15px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.pw-label { font: 600 15.5px var(--sans); fill: var(--ink-2); }
.pw-target { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 6 5; }
.pw-curve { fill: none; stroke: var(--cobalt); stroke-width: 3; }
.pw-drop { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 3 4; }
.pw-dot { fill: var(--cyan); stroke: #fff; stroke-width: 2; }
.pw-call { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.fig-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-top: 8px; }
.fig-dots [data-fig-dot] { flex: none; }
.fig-dots [data-fig-dot] { display: grid; align-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.fig-dots [data-fig-dot]::before { content: ""; display: block; height: 4px; background: var(--field); transition: background-color 0.2s, height 0.2s; }
.fig-dots [data-fig-dot][aria-pressed="true"]::before { height: 6px; background: var(--cyan-ink); }
.fig-dots [data-fig-dot]:hover::before { background: var(--ink-3); }
.fig-pause { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: 600 0.875rem var(--sans); cursor: pointer; }
.fig-pause:hover { color: var(--ink); }
.fig-pause:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.fig-dots [data-fig-dot]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

/* section heads carry a short cyan rule */
.section-head h2::before, .close h2::before { content: ""; display: block; width: 76px; height: 20px; margin-bottom: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 20'%3E%3Cpath fill='%2314b4c0' d='M7.5 2.5h5v5h5v5h-5v5h-5v-5h-5v-5h5z'/%3E%3Crect x='26' y='8' width='50' height='4' fill='%2314b4c0'/%3E%3C/svg%3E") left center / contain no-repeat; }

/* introduction */
.intro-body { max-width: 68ch; }
.intro-body p { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; line-height: 1.7; }
.intro-body .intro-lead { margin-top: 0; font: 400 clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem)/1.55 var(--serif); color: var(--ink); }
.intro-body .panel-label { margin-top: 32px; font: 700 0.8125rem var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.intro-body .panel-label + .skill-list { margin-top: 8px; }
.skill-list li { font: 600 1.125rem/1.45 var(--serif); }
.skill-list li::before { background: var(--cyan-ink); }

/* calendar: three days */
.calendar-3 .cal-days, .calendar-3 .cal-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.calendar-3 .cal-days span { display: flex; flex-direction: column; gap: 4px; min-height: 104px; justify-content: center; font-size: 2rem; }
.calendar-3 .cal-days small { font: 600 0.875rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt-tint); }
.calendar-3 .bar { grid-column: auto; }

/* outline */
.outline .tab.is-active { box-shadow: inset 0 -5px 0 var(--cyan); }
.outline-meta { color: var(--cyan-ink); }
.outline-sum { margin-top: 18px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.lesson-no { color: var(--cyan-ink); }
.lesson-body p { max-width: 68ch; line-height: 1.7; color: var(--ink-2); }

/* faculty: single author */
.authors-one { grid-template-columns: minmax(0, 1fr); }
.authors-one .author { max-width: 880px; border-top-color: var(--cyan); border-top-width: 3px; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(32px, 4vw, 52px); }
.partner { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 24px; border-top: 2px solid var(--ink); }
.partner img { width: 120px; height: auto; }
.partner h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; }
.partner p { margin-top: 6px; color: var(--ink-2); }
.partner h3 + p { color: var(--cyan-ink); font-weight: 600; }

/* close and footer */
.close { background: linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt) 70%, #08508f 100%); }
.close-contact { border-top-color: var(--cyan); }
.footer-logos { display: flex; gap: 12px; }

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  /* phones: logos only; the link's aria-label still names both units */
  .brand-duo { gap: 14px; }
  .brand-unit strong { display: none; }
  .brand-duo .brand-mark { height: 52px; }
  .brand-x { height: 36px; }
  .calendar-3 .cal-days span { min-height: 80px; font-size: 1.375rem; }
  .partner { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .partner img { width: 84px; }
}

/* ---------- medical motif: plus crosses ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 48%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%2314b4c0' fill-opacity='.28' d='M16.5 13h3v3.5H23v3h-3.5V23h-3v-3.5H13v-3h3.5z'/%3E%3C/svg%3E") 0 0 / 36px 36px; -webkit-mask: radial-gradient(ellipse 70% 70% at 60% 50%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 70% 70% at 60% 50%, #000 30%, transparent 75%); pointer-events: none; }
.calendar-3 .cal-days span { position: relative; }
.close { position: relative; overflow: hidden; isolation: isolate; }
.lesson-mark::before, .lesson-mark::after { background: var(--cyan-ink); }

/* figure 2 (randomised trial) */
.dg-cross { color: var(--cyan); }
.dg-blind { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-blind-label { font: 700 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--cyan-ink); }
.dg-itt { fill: var(--cobalt-deep); stroke: var(--cobalt-deep); }
.dg-leaf text[text-anchor="middle"] { font-weight: 600; }

/* figure 5: three-day pathway in the sticky intro column */
.pathway { margin-top: clamp(28px, 3vw, 40px); }
.pathway ol { position: relative; display: grid; gap: 22px; padding-left: 40px; }
.pathway ol::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--cobalt), var(--cyan)); }
.pathway li { position: relative; display: grid; gap: 2px; }
.pathway li::before { content: ""; position: absolute; left: -40px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--cobalt); }
.pathway li::after { content: ""; position: absolute; left: -33px; top: 7px; width: 10px; height: 10px; background: var(--cobalt); -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; }
.path-day { font: 700 0.75rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-ink); }
.pathway strong { font: 600 1.1875rem/1.3 var(--serif); }
.pathway small { font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); }

/* báo cáo viên: portrait cut-out stands on the section rule */
.authors-one .author-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.author-photo > header, .author-photo > p:last-child { grid-column: 2; }
.author-portrait { grid-column: 1; grid-row: 1 / span 2; align-self: end; margin: 0; padding-top: 24px; border-bottom: 2px solid var(--ink); background: radial-gradient(circle closest-side at 64% 52%, var(--cyan-wash) 0 96%, transparent 97%); }
.author-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .authors-one .author-photo { grid-template-columns: minmax(0, 1fr); }
  .author-photo > header, .author-photo > p:last-child, .author-portrait { grid-column: 1; grid-row: auto; }
  .author-portrait { margin-bottom: 24px; }
}

/* ==========================================================================
   Review fixes (impeccable critique, 15/10/2026)
   ========================================================================== */
/* the h1 keeps the R page's two-tone treatment, static and with dark stops only (>= 5.8:1 on white) */
/* the h1 is solid cobalt: emphasis comes from the serif italic and size, not from a gradient fill */
/* both logos in the header get the same treatment: no aura on one of them */
.brand-duo .brand-logo::before, .brand-duo .brand-logo::after { display: none; }
.brand-duo .brand-mark, .brand-mark-cdyt { height: 56px; }
.header-inner { min-height: 80px; }
/* Vietnamese words are space-separated syllables: balance short lines, avoid orphans in prose */
h1, h2, h3, figcaption, .lesson-title, .author-aff, .tab span, .tab strong, .partner p, .footer-brand strong { text-wrap: balance; }
p, dd, li, .lesson-peek { text-wrap: pretty; }
.footer-brand strong + strong { margin-top: 4px; }
/* the particle field stays away from the reading column */
@media (min-width: 901px) {
  .bg-canvas { -webkit-mask-image: linear-gradient(90deg, transparent 0 44%, #000 64%); mask-image: linear-gradient(90deg, transparent 0 44%, #000 64%); }
}
@media (max-width: 900px) {
  .bg-canvas { opacity: 0.22; }
  .hero::before { display: none; }
  .header-cta { display: none; }
  html { scroll-padding-bottom: 96px; }
}
/* the rail nav only where there is a rail for it (it overlapped the text at 1100-1279px) */
@media (max-width: 1279px) { .side-nav { display: none; } }
.close-grid { align-items: start; }
.outline-toggle { min-height: 44px; }
.footer-grid a { min-height: 44px; }
.author-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--cobalt); font-weight: 600; }
@media (max-width: 720px) {
  .strip .strip-reg { display: none; }
  .strip .strip-deadline { display: flex; white-space: normal; }
}
@media (max-width: 480px) {
  .calendar-3 .cal-days, .calendar-3 .cal-bars { grid-template-columns: minmax(0, 1fr); }
  .calendar-3 .cal-days span { min-height: 64px; flex-direction: row; gap: 12px; padding-inline: 16px; }
  .calendar-3 .cal-bars { display: none; }
  .calendar-3 .cal-days small { min-width: 118px; text-align: left; }
  .calendar-3 .cal-days span::after { content: attr(data-bar); margin-left: auto; font: 600 0.875rem var(--sans); color: var(--cobalt-tint); }
}
@media (max-width: 900px) { .mobile-bar { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .mobile-bar .button { white-space: nowrap; padding-inline: 14px; } }
