@charset "UTF-8";

/* Readable study typography; Mauro Castillo MD palette retained. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #FAFAF9;
  --surface: #F1F1F0;
  --card: #FFFFFF;
  --ink: #0B0B0C;
  --muted: #52525B;
  --ink-faint: #666670;
  --accent: #2039C4;
  --accent-dim: #182C93;
  --accent-wash: rgba(32, 57, 196, .06);
  --line: rgba(11, 11, 12, .10);
  --line-soft: rgba(11, 11, 12, .05);
  --alert: #9F3C2E;
  --alert-wash: rgba(192, 80, 63, .07);
  --shadow-sm: 0 2px 6px -2px rgba(11, 11, 12, .06), 0 8px 20px -12px rgba(11, 11, 12, .10);
  --shadow-soft: 0 24px 60px -20px rgba(11, 11, 12, .14), 0 6px 16px -10px rgba(11, 11, 12, .08);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --sidebar: 252px;
  --sans: "Atkinson Hyperlegible Next", Arial, -apple-system, system-ui, sans-serif;
  --heading: var(--sans);
  --label: var(--sans);
  --ease: cubic-bezier(.32, .72, 0, 1);
  /* Compatibility with shared components while preserving the same palette. */
  --paper: var(--bg);
  --white: var(--card);
  --teal: var(--accent);
  --mint: var(--accent-wash);
  --orange: var(--accent);
  --sand: var(--surface);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: rgba(32, 57, 196, .12); }
a { color: var(--accent); text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: normal;
}
h1 { font-size: clamp(36px, 4.2vw, 58px); font-weight: 600; margin-bottom: 20px; }
h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
p { margin-bottom: 17px; }
small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -100px; padding: 14px; background: var(--card); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 34px 18px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.brand { display: flex; flex-direction: column; gap: 22px; padding: 0 10px; color: var(--ink); text-decoration: none; width: fit-content; }
.brand-wordmark { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 28px; }
.wordmark-name { font: 600 21px/1.15 var(--heading); letter-spacing: normal; }
.wordmark-cred { font: 500 10px/1 var(--label); letter-spacing: .1em; color: var(--accent); transform: translateY(-1px); }
.brand-project { font: 500 11px/1.65 var(--label); letter-spacing: .025em; color: var(--muted); }
.brand-project small { display: block; margin-top: 3px; font: 400 10px/1.6 var(--label); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.sidebar nav { display: grid; gap: 6px; margin-top: 33px; }
.sidebar nav a { text-decoration: none; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 11px; padding: 13px 11px; border-radius: var(--radius-sm); line-height: 1.45; min-height: 46px; transition: color .2s var(--ease), background .2s var(--ease); }
.sidebar nav a span { font: 400 10px/1.5 var(--label); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sidebar nav a:hover { color: var(--ink); background: var(--surface); }
.sidebar nav a[aria-current=page] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.sidebar nav a[aria-current=page] span { color: var(--accent); }
.sidebar-bottom { margin-top: auto; padding: 34px 10px 0; font-size: 11px; color: var(--muted); }
.sidebar-bottom p { font-size: 11px; margin: 12px 0; line-height: 1.8; }
.sidebar-bottom a { font-size: 11px; color: var(--muted); }
.local-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.topbar { min-height: 83px; border-bottom: 1px solid var(--line); padding: 15px 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar > span { font: 400 10px/1.7 var(--label); color: var(--muted); letter-spacing: .035em; }
#search-form { display: flex; max-width: 420px; width: 51%; gap: 7px; }
#search { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 10px 16px; font-size: 15px; color: var(--ink); box-shadow: var(--shadow-sm); }
#search::placeholder { color: var(--ink-faint); }
#search-form button { border: 0; color: var(--accent); background: transparent; font-size: 15px; min-width: 48px; min-height: 44px; }
main { max-width: 1320px; margin: auto; padding: 43px 43px 70px; min-height: calc(100vh - 160px); }
main:focus { outline: none; }
.eyebrow { display: block; color: var(--accent); font: 500 10px/1.7 var(--label); letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.page-heading { margin-bottom: 34px; }
.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.heading-row h2 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.button, button.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); padding: 11px 19px; text-decoration: none; font-size: 15px; font-weight: 550; line-height: 1.4; box-shadow: var(--shadow-sm); transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.dark { background: var(--ink); border-color: var(--ink); color: white; }
.button:hover, button.secondary:hover { background: var(--surface); }
.button.primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.button.dark:hover { background: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero { display: grid; grid-template-columns: 1.35fr .8fr; gap: 18px; margin-bottom: 32px; }
.hero-copy { padding: 37px 38px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 7px var(--surface), var(--shadow-sm); }
.hero-copy h1 { font-size: clamp(36px, 4.1vw, 57px); max-width: 630px; line-height: 1.16; }
.hero-copy p { max-width: 540px; }
.hero-copy .actions { margin-top: 25px; }
.hero-art { background: var(--ink); border-radius: var(--radius-lg); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 25px 22px 22px; color: var(--bg); min-height: 285px; box-shadow: var(--shadow-sm); }
.hero-art svg { width: 100%; max-height: 230px; }
.hero-art p { font-size: 11px; line-height: 1.65; color: #D4D4D8; text-align: center; margin: 13px 0 0; }
.stats-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; border-bottom: 1px solid var(--line); padding: 0 0 28px; margin-bottom: 38px; }
.stat strong { font-family: var(--heading); font-size: 34px; font-weight: 600; margin-right: 8px; letter-spacing: normal; }
.stat span { font-size: 11px; color: var(--muted); }
.two-column { display: grid; grid-template-columns: 1.5fr 1fr; gap: 29px; }
.path-list { display: grid; border-top: 1px solid var(--line); }
.path-row { display: flex; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.path-row:hover h3 { color: var(--accent); }
.path-number { font: 400 11px/1.5 var(--label); color: var(--accent); align-self: start; padding-top: 4px; }
.path-row h3 { font-size: 21px; margin: 0 0 7px; }
.path-row p { font-size: 15px; color: var(--muted); margin: 0; }
.path-row .arrow { margin-left: auto; color: var(--accent); }
.feature { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 27px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.feature h2 { font-size: 30px; }
.feature p { font-size: 16px; color: var(--muted); }
.feature.anatomy-promo { background: var(--surface); box-shadow: inset 0 0 0 6px var(--card), var(--shadow-sm); }
.section-intro { display: flex; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
.section-intro h1 { font-size: clamp(36px, 3.7vw, 49px); }
.section-intro p { max-width: 690px; margin-bottom: 0; }
.section-count { flex-shrink: 0; align-self: center; font: 400 11px/1.8 var(--label); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 9px 18px; background: var(--card); font-size: 15px; color: var(--ink); }
.filter[aria-pressed=true] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lesson-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; padding: 25px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.lesson-card:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.lesson-card h2 { font-size: 27px; line-height: 1.16; margin-top: 12px; }
.lesson-card p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.lesson-card .card-bottom { display: flex; justify-content: space-between; font-size: 11px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: auto; gap: 10px; }
.tag { font: 500 9px/1.6 var(--label); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.status { font-size: 11px; color: var(--muted); }
.status.reviewed { color: var(--accent); }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.lesson-title { font-size: clamp(33px, 3.8vw, 49px); max-width: 910px; }
.lesson-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.lesson-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.step-tab { border: 0; min-height: 44px; padding: 11px 18px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; }
.step-tab[aria-current=step] { color: var(--accent); background: var(--accent-wash); font-weight: 600; }
.step-tab:hover { background: var(--surface); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 35px; }
.reading { font-size: 1.25rem; max-width: 65ch; min-width: 0; }
.reading h2 { font-size: 29px; margin-top: 34px; }
.reading > section:first-child h2 { margin-top: 0; }
.reading p { font-size: 1em; line-height: 1.7; margin-bottom: 1.25em; text-align: left; }
.objectives { background: var(--surface); border: 1px solid var(--line-soft); padding: 23px; border-radius: var(--radius); font-size: 15px; }
.objectives h3 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: 16px; }
.objectives ul { margin: 0; padding-left: 17px; }
.objectives li { margin: 11px 0; }
.lesson-aside .aside-note { font-size: 14px; color: var(--muted); margin: 22px 0; }
.visual { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 32px 0; box-shadow: inset 0 0 0 5px var(--surface), var(--shadow-sm); }
.visual h3 { font-size: 23px; margin-bottom: 23px; }
.visual ol { padding: 0; margin: 0; list-style: none; display: grid; gap: 0; }
.visual li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 0 0 21px; position: relative; }
.visual li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 29px; bottom: 0; width: 1px; background: var(--line); }
.visual .node { border: 1px solid rgba(32, 57, 196, .24); color: var(--accent); background: var(--accent-wash); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font: 500 10px/1 var(--label); }
.visual b { font-size: 16px; display: block; margin-bottom: 5px; }
.visual p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--muted); }
.visual figcaption { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 5px; }
.case-box { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; background: var(--card); margin-bottom: 28px; }
.case-box h2 { margin-top: 0; }
.case-box p { font-size: 16px; }
.reveal { padding: 18px 20px; background: var(--accent-wash); border: 1px solid rgba(32, 57, 196, .13); border-radius: var(--radius-sm); margin: 19px 0; }
.reveal p { font-size: 15px; margin-bottom: 0; }
.question { margin: 28px 0 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.question legend { font-size: 18px; font-weight: 550; line-height: 1.6; padding: 0; margin-bottom: 17px; }
.question fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { line-height: 1.6; display: flex; align-items: start; gap: 13px; width: 100%; text-align: left; padding: 16px 17px; margin: 9px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: 15px; }
.choice span:first-child { flex-shrink: 0; border: 1px solid var(--line); width: 25px; height: 25px; display: grid; place-items: center; font: 400 10px/1 var(--label); border-radius: 50%; }
.choice:hover { border-color: rgba(32, 57, 196, .45); }
.choice[aria-pressed=true] { border-color: var(--accent); background: var(--accent-wash); }
.choice.incorrect[aria-pressed=true] { border-color: var(--alert); background: var(--alert-wash); }
.feedback { font-size: 16px; padding: 14px 0 0; color: var(--accent); }
.feedback.incorrect { color: var(--alert); }
.feedback p { font-size: 16px; line-height: 1.7; margin: 5px 0; }
.lesson-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
textarea { width: 100%; min-height: 170px; resize: vertical; background: var(--card); border: 1px solid var(--line); padding: 17px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.75; color: var(--ink); }
textarea::placeholder { color: var(--ink-faint); }
.field-label { display: block; font-size: 16px; font-weight: 600; margin: 23px 0 10px; }
.source-list { display: grid; gap: 17px; }
.source-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px; min-width: 0; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.source-card h3 { font-size: 24px; }
.source-card p { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.source-card .source-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; font: 400 10px/1.7 var(--label); color: var(--muted); }
.badge { padding: 5px 10px; background: var(--surface); border-radius: 999px; }
.source-card dl { font-size: 16px; margin: 17px 0; }
.source-card dt { font-weight: 600; margin-top: 14px; }
.source-card dd { margin: 4px 0; color: var(--muted); }
.source-card details summary { font-size: 16px; cursor: pointer; color: var(--accent); padding-block: 8px; }
.notice { background: var(--surface); border: 1px solid var(--line-soft); padding: 20px 23px; border-radius: var(--radius-sm); font-size: 15px; margin: 24px 0; }
.warning { border-left: 3px solid var(--accent); }
.empty { padding: 33px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.progress-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.progress-table td, .progress-table th { padding: 16px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.progress-table th { font: 400 10px/1.6 var(--label); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.progress-table td:first-child { width: 55%; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 26px; }
.section-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; text-decoration: none; border-radius: 999px; font-size: 15px; color: var(--muted); }
.section-tabs a[aria-current=page] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.section-tabs a:hover { background: var(--surface); }
.search-results { display: grid; gap: 15px; }
.search-result { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.search-result:hover { border-color: var(--accent); }
.search-result h3 { margin: 8px 0; font-size: 24px; }
.search-result p { font-size: 16px; color: var(--muted); margin: 0; }
.footer { border-top: 1px solid var(--line); margin: 0 43px; padding: 21px 0 28px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
#toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: white; border-radius: var(--radius-sm); padding: 15px 21px; z-index: 50; max-width: calc(100vw - 44px); font-size: 16px; box-shadow: var(--shadow-soft); }
#toast:empty { display: none; }
.nav-toggle { display: none; }
.inline-link { background: transparent; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; padding: 3px 0; }
.table-scroll { overflow-x: auto; }
code { font-family: ui-monospace, monospace; font-size: 14px; overflow-wrap: anywhere; }
.loading { padding: 60px 0; }
.local-path { display: block; padding: 19px; background: var(--surface); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.review-count { font-variant-numeric: tabular-nums; }
.about-content { max-width: 780px; }
.about-content li { margin-bottom: 13px; }

@media (min-width: 1500px) {
  main { padding-top: 52px; }
  .hero-copy { padding: 44px; }
}
@media (max-width: 1150px) {
  :root { --sidebar: 225px; }
  .sidebar { padding-inline: 12px; }
  .sidebar nav a { font-size: 14px; }
  .brand { padding-inline: 9px; }
  .wordmark-name { font-size: 19px; }
  .wordmark-cred { font-size: 9px; }
  .brand-project { font-size: 10px; }
  .topbar { padding-inline: 28px; }
  main { padding: 34px 28px 56px; }
  .hero-copy { padding: 31px; }
  .hero { grid-template-columns: 1.4fr .8fr; }
  .hero-art { padding: 15px; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 25px; }
  .footer { margin-inline: 28px; }
  .stats-strip { gap: 17px; }
  .stat strong { display: block; font-size: 32px; }
}
@media (max-width: 850px) {
  .lesson-layout { display: block; }
  .lesson-aside { margin: 25px 0; }
  .two-column { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .topbar > span { display: none; }
  #search-form { width: 100%; max-width: none; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-intro { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  :root { --sidebar: 0px; }
  .sidebar { position: relative; width: 100%; padding: 21px 20px 20px; display: block; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0; gap: 10px; max-width: calc(100% - 76px); }
  .brand-wordmark { min-height: 24px; gap: 6px; }
  .wordmark-name { font-size: 21px; }
  .wordmark-cred { font-size: 9px; }
  .brand-project { font-size: 10px; line-height: 1.5; }
  .brand-project small { display: inline; margin-left: 8px; font-size: 9px; letter-spacing: .04em; }
  .nav-toggle { display: flex; align-items: center; gap: 9px; position: absolute; right: 18px; top: 22px; min-height: 44px; padding: 10px 0 10px 9px; color: var(--ink); background: transparent; border: 0; font-size: 15px; }
  .sidebar nav { display: none; margin-top: 23px; grid-template-columns: 1fr; }
  .sidebar nav.open { display: grid; }
  .sidebar nav a { font-size: 16px; }
  .sidebar-bottom { display: none; }
  .topbar { min-height: 72px; padding: 13px 20px; }
  .workspace { margin: 0; }
  main { padding: 29px 20px 46px; }
  .hero { margin-bottom: 25px; }
  .hero-copy { padding: 29px 25px; }
  .hero-copy h1 { font-size: clamp(35px, 8vw, 45px); }
  .hero-copy p { font-size: 15px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero-copy .actions { margin-top: 22px; }
  .stats-strip { gap: 12px; margin-bottom: 30px; padding-bottom: 22px; }
  .stat strong { display: block; font-size: 30px; margin: 0 0 4px; }
  .stat span { display: block; font-size: 10px; line-height: 1.5; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card { padding: 25px; }
  .section-intro { display: block; }
  .section-intro h1 { font-size: 39px; }
  .section-count { margin-top: 17px; }
  .lesson-title { font-size: 37px; }
  .lesson-toolbar { gap: 3px; justify-content: space-between; }
  .step-tab { padding: 10px 13px; font-size: 14px; }
  .lede { font-size: 16px; }
  .reading { font-size: 1.125rem; }
  .reading p { font-size: 1em; line-height: 1.7; }
  .reading h2 { font-size: 29px; }
  .visual { padding: 25px 21px; margin-inline: 0; }
  .visual p { font-size: 15px; }
  .case-box { padding: 23px; }
  .heading-row { align-items: start; flex-wrap: wrap; gap: 13px; }
  .heading-row h2 { font-size: 29px; }
  .footer { margin: 0 20px; display: block; font-size: 10px; }
  .footer span { display: block; margin-top: 7px; }
  .feature { padding: 26px; }
  .page-heading { margin-bottom: 27px; }
  .source-card { padding: 23px; }
  .progress-table td, .progress-table th { padding: 13px 7px; }
  .section-tabs { gap: 3px; }
  .section-tabs a { padding: 10px 13px; }
  .lesson-bottom .button { flex-grow: 1; }
  .notice { font-size: 15px; }
  .reading .feedback p { font-size: 16px; }
}
@media (max-width: 360px) {
  .wordmark-name { font-size: 19px; }
  .brand-project small { display: block; margin: 2px 0 0; }
  .button { padding-inline: 16px; }
  .step-tab { padding-inline: 10px; font-size: 11px; }
  .stats-strip { column-gap: 9px; }
  .stat strong { font-size: 27px; }
  .progress-table { min-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Extended chapters and the role-based curriculum. */
.curriculum-highlight { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 36px; display: grid; gap: 17px; }
.curriculum-highlight h2 { font-size: 29px; }
.curriculum-highlight p { max-width: 750px; color: var(--muted); margin-bottom: 0; }
.chapter-nav { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px; margin: 0 0 32px; display: grid; gap: 5px; }
.chapter-nav button { background: transparent; color: var(--accent); border: 0; text-align: left; padding: 9px 0; min-height: 42px; font-size: 15px; line-height: 1.5; }
.chapter-nav button:hover { text-decoration: underline; text-underline-offset: 4px; }
.reading h2[id^=chapter] { scroll-margin-top: 22px; }
.section-evidence { margin: 8px 0 26px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.section-evidence summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.reading .section-evidence p { font-size: 14px; line-height: 1.6; margin-top: 12px; }
.practical-assignment { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px; margin: 35px 0; }
.practical-assignment h2 { margin-top: 0; }
.practical-assignment li { margin-bottom: 12px; font-size: 16px; }
.practical-assignment details { padding: 16px 0; border-top: 1px solid var(--line); }
.practical-assignment summary { cursor: pointer; font-size: 16px; color: var(--accent); }
.practical-assignment dt { font-weight: 650; margin-top: 18px; }
.practical-assignment dd { margin: 6px 0 0; font-size: 16px; color: var(--muted); }
.practical-assignment textarea { min-height: 280px; }
.curriculum-section { margin-top: 46px; }
.role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.role-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.role-card h3 { font-size: 23px; }
.role-card ul { padding-left: 19px; font-size: 15px; color: var(--muted); }
.role-card li { margin: 9px 0; }
.role-card .eyebrow { margin-bottom: 12px; }
.scope-note { border-left: 2px solid var(--accent); padding-left: 12px; }
.curriculum-stages { display: grid; gap: 0; }
.curriculum-stages article { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.curriculum-stages h3 { margin-bottom: 9px; }
.curriculum-stages p { max-width: 830px; font-size: 16px; color: var(--muted); }
.competency-list { display: grid; gap: 12px; }
.competency-list details { padding: 19px 23px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.competency-list summary { cursor: pointer; font-weight: 550; font-size: 16px; }
.competency-list summary .path-number { margin-right: 13px; }
.competency-list p { font-size: 16px; margin: 18px 0 0; }
@media (max-width: 850px) { .role-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
 .curriculum-highlight, .practical-assignment { padding: 23px 20px; }
 .curriculum-highlight h2 { font-size: 27px; }
 .chapter-nav { padding: 20px; }
 .role-card { padding: 23px; }
 .competency-list details { padding: 18px; }
 .competency-list summary { font-size: 16px; }
}

/* Original concept diagrams: text, visual explanation and active recall together. */
.learning-controls { display: grid; gap: 12px; margin: 0 0 22px; }
.learning-controls [role=group] { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-controls p { margin: 0; font-size: 15px; }
.chapter-nav { display: block; }
.chapter-nav > summary { color: var(--ink); font-size: 16px; cursor: pointer; font-weight: 600; }
.chapter-nav nav { display: grid; margin-top: 16px; }
.visual-recap-intro { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; }
.visual-recap-intro h2 { margin-top: 0; }
.teaching-graphic { scroll-margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0 40px; box-shadow: var(--shadow-sm); }
.graphic-heading { padding: 24px 25px 18px; }
.graphic-heading h3 { font-size: 24px; line-height: 1.25; margin: 10px 0 0; overflow-wrap: anywhere; }
.teaching-graphic picture { display: block; background: var(--bg); }
.concept-image { display: block; width: 100%; height: auto; }
.memory-cue { margin: 20px 24px; padding: 20px; border-left: 3px solid var(--accent); background: var(--accent-wash); }
.memory-cue strong { display: block; font-family: var(--heading); font-size: 23px; line-height: 1.3; margin: 10px 0 7px; overflow-wrap: anywhere; }
.reading .memory-cue p { font-size: 16px; line-height: 1.7; margin: 0; }
.teaching-graphic figcaption { padding: 0 25px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.graphic-retrieval { padding: 22px 25px; border-top: 1px solid var(--line); }
.reading .graphic-prompt { margin: 20px 0; font-size: 15px; line-height: 1.7; }
.graphic-retrieval details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.graphic-retrieval summary { cursor: pointer; color: var(--accent); font-size: 15px; font-weight: 500; }
.reading .graphic-retrieval details p { font-size: 16px; line-height: 1.75; }
.graphic-covered { display: grid; justify-items: center; gap: 10px; padding: 48px 26px; background: var(--accent-wash); color: var(--accent); text-align: center; }
.graphic-covered > span { font-size: 42px; }
.reading .graphic-covered p { margin: 0; font-size: 16px; }
.teaching-graphic [hidden] { display: none; }
@media(max-width:680px) {
 .graphic-heading, .graphic-retrieval { padding: 21px 18px; }
 .graphic-heading h3 { font-size: 23px; }
 .memory-cue { margin: 18px; padding: 17px; }
 .memory-cue strong { font-size: 22px; }
 .teaching-graphic figcaption { padding: 0 18px 20px; }
 .graphic-retrieval .button { width: 100%; }
 .visual-recap-intro { padding-left: 15px; }
}
@media print {
 .learning-controls, .graphic-retrieval button { display: none; }
 .teaching-graphic { break-inside: avoid; box-shadow: none; }
}
.curriculum-lesson-links { display: grid; gap: 10px; margin-top: 16px; }
.curriculum-lesson-links a { font-size: 15px; line-height: 1.6; }

/* Give learning material a consistent reading size, including worked answers. */
.reading .case-box p, .reading .reveal p, .reading .feedback p,
.reading .practical-assignment li, .reading .practical-assignment dd,
.reading .practical-assignment dt, .reading .question legend,
.reading .choice, .reading textarea { font-size: 1em; line-height: 1.7; }
.reading .small, .reading .section-evidence p { font-size: .875rem; line-height: 1.65; }
.reading .source-card p, .reading .source-card dl { font-size: 1rem; line-height: 1.65; }
.eyebrow, .tag { font-size: .75rem; letter-spacing: .05em; font-weight: 600; }
.sidebar nav a, .sidebar nav a span { font-size: .875rem; }
.topbar > span, .breadcrumb, .lesson-meta, .status, .card-bottom { font-size: .875rem; }
.stats-strip, .progress-table, .lesson-meta { font-variant-numeric: tabular-nums; }
.brand-wordmark { white-space: normal; }
.wordmark-name { white-space: nowrap; }

/* Practice Lab: real work, readable visual explanations, keyboard-native inputs. */
.practice-intro { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:32px 0; padding:24px; border-block:1px solid var(--line); }
.practice-intro p { margin:8px 0 0; color:var(--muted); }
.practice-heading { margin-top:48px; }
.lab-card h2 { font-size:25px; }
.lab-card h2 a { color:var(--ink); text-decoration:none; }
.practice-content { max-width:1000px; margin:24px 0 36px; }
.lab-reading { max-width:65ch; font-size:20px; line-height:1.7; }
.lab-panel { margin:30px 0; padding:28px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.lab-panel p, .lab-panel li, .lab-panel dd, .practice-content .question { font-size:18px; line-height:1.7; }
.lab-panel h2 { font-size:29px; }
.lab-panel details, .lab-sources { margin-top:20px; border-top:1px solid var(--line); padding-top:16px; }
.lab-panel summary, .lab-sources summary { color:var(--accent); cursor:pointer; font-weight:600; }
.lab-panel dt { font-weight:650; margin-top:15px; }
.lab-panel dd { margin:4px 0 0; }
.lab-panel li { margin-bottom:12px; }
.lab-panel textarea { width:100%; min-height:220px; }
.lab-panel select, .lab-panel input { padding:10px 12px; border:1px solid #A5A5AF; background:var(--card); color:var(--ink); border-radius:8px; max-width:100%; min-height:46px; }
.lab-panel input { width:100%; }
.lab-panel label { display:block; }
.lab-panel .small { font-size:15px; }
.lab-plot { overflow-x:auto; margin:20px 0; background:var(--bg); border-radius:12px; }
.lab-plot svg { display:block; width:100%; height:auto; min-width:480px; }
.lab-panel figcaption { margin-top:18px; color:var(--muted); font-size:17px; }
.athlete-card, .row-detail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin:26px 0; padding:22px; background:var(--surface); border-radius:12px; }
.athlete-card dt, .row-detail dt { font-size:15px; color:var(--muted); text-transform:none; margin:0; }
.athlete-card dd, .row-detail dd { margin:4px 0 0; overflow-wrap:anywhere; font-size:17px; }
.week-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:24px 0; }
.week-day { display:flex; flex-direction:column; padding:16px; border:1px solid var(--line); background:var(--bg); border-radius:10px; gap:12px; }
.week-day strong { color:var(--accent); }
.week-day span { font-size:15px; }
.week-day b { font-size:15px; font-weight:500; }
.week-marker { display:block; height:8px; width:100%; background:#A6AFE9; border-radius:4px; margin-top:auto; }
.week-marker.full { width:100%; background:var(--accent); }
.plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:26px; }
.plan-day { border:1px solid var(--line); padding:16px; border-radius:10px; }
.plan-day span { display:block; font-size:15px; margin:6px 0 12px; }
.plan-day select { width:100%; }
.model-week > div { border-bottom:1px solid var(--line); margin:20px 0; padding-bottom:16px; }
.model-week p { margin:9px 0 0; }
.dose-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.dose-inputs input { display:block; margin-top:8px; }
.quality-graphic { display:flex; align-items:center; gap:16px; justify-content:space-between; padding:25px 0; }
.quality-graphic > div { flex:1; min-width:0; }
.quality-graphic strong { display:block; font-size:40px; color:var(--accent); }
.quality-graphic span { font-size:16px; line-height:1.5; display:block; }
.quality-graphic > b { color:var(--accent); font-size:28px; }
.calc-entry { display:flex; align-items:center; gap:14px; margin:10px 0 20px; }
.calc-entry input { max-width:220px; }
.lab-related { border-top:1px solid var(--line); padding:24px 0; margin-top:28px; }
.lab-related a { display:block; margin:10px 0; }
.lesson-aside .lab-related { margin:0 0 30px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--accent-wash); }
.lab-sources { max-width:65ch; margin-bottom:28px; }
.lab-panel .table-scroll table { border-collapse:collapse; font-size:15px; }
.lab-panel th, .lab-panel td { padding:9px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.lab-panel th { color:var(--accent); }
@media(max-width:900px){.practice-intro{grid-template-columns:1fr}.week-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:1fr}}
@media(max-width:680px){.lab-panel{padding:20px 16px}.lab-reading{font-size:18px}.athlete-card,.row-detail{grid-template-columns:1fr;padding:16px}.dose-inputs{gap:10px}.dose-inputs label{font-size:15px}.quality-graphic{align-items:flex-start;gap:8px}.quality-graphic strong{font-size:32px}.quality-graphic span{font-size:14px}.quality-graphic>b{font-size:20px}.calc-entry{flex-wrap:wrap}.lab-panel h2{font-size:26px}.week-day{padding:12px}.practice-intro{padding:20px 0}.lab-plot{border:1px solid var(--line)}.lab-plot::after{content:'Scroll the picture sideways if needed. Full values are explained in the text.';display:block;font-size:14px;color:var(--muted);padding:12px}.lab-card h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.practice-content *{scroll-behavior:auto}}

.progression-weeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}.progression-weeks>article{border-top:4px solid var(--accent);background:var(--bg);padding:22px;border-radius:10px}.progression-weeks h3{font-size:22px;margin-top:10px}.progression-weeks p{font-size:17px}@media(max-width:900px){.progression-weeks{grid-template-columns:1fr}}

/* Rehab casework: sequential choices, evidence, and readable original figures. */
.rehab-checkpoint-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:26px 0 32px}
.rehab-checkpoint {display:grid;grid-template-columns:24px 1fr;gap:6px 9px;min-width:0;text-align:left;padding:14px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;font-size:15px;line-height:1.4}
.rehab-checkpoint>span:first-child {font-weight:700;color:var(--accent)}
.rehab-checkpoint small {grid-column:2;font-size:13px;color:var(--muted)}
.rehab-checkpoint.active {border:2px solid var(--accent);background:var(--accent-wash)}
.rehab-checkpoint:disabled {opacity:.65}
.rehab-checkpoint-body {scroll-margin-top:24px}
.rehab-checkpoint-body>h3 {font-size:28px;line-height:1.3}
.rehab-observations {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:26px 0}
.rehab-observations>div {padding:18px;background:var(--surface);border-radius:12px}
.rehab-observations dt {margin:0;color:var(--muted);font-size:15px;font-weight:500}
.rehab-observations dd {margin:8px 0 0}
.rehab-observations strong {display:block;line-height:1.5}
.rehab-observations p {font-size:16px;margin:10px 0 0}
.rehab-decision {border:0;margin:24px 0;padding:0;min-width:0}
.rehab-decision legend {font-size:21px;font-weight:600;margin-bottom:18px}
.rehab-decision .choice {font-size:18px;line-height:1.6}
.rehab-decision .choice[aria-pressed=true] {border-color:var(--accent);background:var(--accent-wash)}
.rehab-gate-review {border-top:3px solid var(--accent);margin-top:26px;padding-top:24px}
.rehab-criteria-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.rehab-criteria-columns h4 {font-size:18px;margin:12px 0}
.rehab-criteria-columns ul {padding-left:22px}
.rehab-criteria-columns li {font-size:17px}
.rehab-anatomy-image {max-width:650px;margin:22px auto}
.rehab-anatomy-image svg {display:block;width:100%;height:auto}
.rehab-figure [hidden] {display:none}
.rehab-figure figcaption {margin:20px 0;color:var(--muted);font-size:17px}
.rehab-demand-path {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.rehab-demand-path>div {border-top:4px solid var(--accent);padding:20px;background:var(--bg);border-radius:12px;min-width:0}
.rehab-demand-path svg {width:78px;height:82px;min-width:0;color:var(--accent);display:block;margin:0 0 14px}
.rehab-demand-path strong {display:block;margin:10px 0;font-size:22px;line-height:1.3}
.rehab-demand-path p {font-size:17px;margin:0}
.rehab-response-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin:26px 0}
.rehab-response-columns>div {min-width:0}
.rehab-response-columns h3 {font-size:22px}
.rehab-bar-row {display:grid;grid-template-columns:1fr 48px;gap:5px 10px;padding:10px 8px;border-bottom:1px solid var(--line)}
.rehab-bar-row>span {grid-column:1/-1;font-size:15px;line-height:1.4}
.rehab-bar-track {background:var(--surface);height:17px;margin:4px 0;min-width:0;border:1px solid var(--line)}
.rehab-bar-track i {display:block;height:100%;background:var(--accent)}
.rehab-bar-track i.response {background:var(--muted)}
.rehab-bar-row>strong {font-size:16px;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}
.rehab-bar-row.selected {outline:2px solid var(--accent);outline-offset:1px;border-radius:6px;background:var(--accent-wash)}
#rehab-response-detail {margin-top:20px;padding:18px;background:var(--accent-wash);border-left:3px solid var(--accent)}
@media(max-width:1000px){.rehab-checkpoint-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.rehab-criteria-columns{grid-template-columns:1fr;gap:0}}
@media(max-width:680px){.rehab-observations,.rehab-demand-path,.rehab-response-columns{grid-template-columns:1fr}.rehab-checkpoint-nav{gap:8px}.rehab-checkpoint{padding:10px;font-size:14px;grid-template-columns:18px 1fr}.rehab-checkpoint-body>h3{font-size:25px}.rehab-anatomy-image{overflow-x:auto}.rehab-anatomy-image svg{min-width:360px}.rehab-figure h2{font-size:25px}.rehab-demand-path>div{display:grid;grid-template-columns:65px 1fr;gap:0 16px;padding:18px}.rehab-demand-path svg{grid-row:1/4;width:65px;height:70px}.rehab-demand-path p,.rehab-demand-path strong,.rehab-demand-path .eyebrow{grid-column:2}.rehab-demand-path strong{font-size:21px}.rehab-response-columns{gap:32px}.rehab-observations{gap:12px}}
