/* Pilot Club — an illustrated flight notebook: cream paper, navy ink, signal red, watercolour blue.
   The look follows the lesson drawings in media/. The lettering font is self-hosted; nothing is loaded from other sites. */
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand.woff2") format("woff2"); font-display: swap; }
:root {
  --paper: #fbf4e1; --card: #fffaf0; --raise: #fffdf6; --ink: #1c2a4a; --muted: #5a6480; --line: #d8cba9;
  --red: #c5402b; --blue: #2c6a9e; --green: #2e7653; --amber: #a86a08; --magenta: #7b4a8c; --sky: #b9d6ea;
  --tint-blue: #dcebf3; --tint-green: #dfeeda; --tint-amber: #f8e9b0; --tint-red: #f6dcd2; --tint-magenta: #ebdcec;
  --accent: var(--red); --on-accent: #fffaf0;
  --hand: "Patrick Hand", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --font: var(--hand);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sk: 255px 15px 225px 15px / 15px 225px 15px 255px;      /* a pen-drawn outline */
  --sk2: 12px 110px 14px 120px / 120px 14px 110px 12px;
  --soft: 5px 16px 7px 18px / 16px 6px 18px 7px;
  --sheet: 0 1px 0 rgba(28, 42, 74, .10), 0 10px 22px -14px rgba(28, 42, 74, .45);
  --r: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--ink); font: 18px/1.6 var(--serif); }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 7.5vw, 3.7rem); } h2 { font-size: 1.85rem; } h3 { font-size: 1.5rem; }
p { margin: 0 0 .9em; } ul, ol { margin: 0 0 1em; padding-left: 1.3em; } li { margin-bottom: .35em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }

/* ---------- frame: a notebook, not an app bar ---------- */
.top { max-width: 940px; margin: 0 auto; padding: 22px 20px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 2.1rem/1 var(--hand); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 44px; height: 44px; color: var(--red); transform: rotate(-8deg); }
#nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font: 1.3rem/1.5 var(--hand); }
#nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
#nav a:hover, #nav a.is-on { text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.badge { display: inline-block; min-width: 1.5em; margin-left: 5px; padding: 0 5px; border: 2px solid var(--red); border-radius: var(--sk); color: var(--red); font-size: 1rem; line-height: 1.25; text-align: center; }
.who-wrap { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 1.2rem/1.2 var(--hand); color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--ink); border-radius: 0 0 60% 40% / 0 0 5px 3px; }
#storage-warn { max-width: 900px; margin: 14px auto 0; padding: 10px 16px; background: var(--tint-amber); border-radius: var(--soft); font-size: .95rem; }
main { max-width: 940px; margin: 0 auto; padding: 30px 20px 70px; min-height: 70vh; }
footer { max-width: 940px; margin: 0 auto; padding: 16px 20px 44px; color: var(--muted); font: 1.1rem/1.4 var(--hand); border-top: 2px dashed var(--line); }

/* ---------- small parts ---------- */
.eyebrow { font: 1.3rem/1.2 var(--hand); color: var(--red); margin-bottom: .3em; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; } .lede.small { font-size: 1.05rem; }
.note { color: var(--muted); font-size: .9rem; } .hint { color: var(--muted); font: 1.2rem/1.35 var(--hand); }
.section-h { margin-top: 1.6em; }
.card { background: var(--card); box-shadow: var(--sheet); border-radius: var(--r); padding: 22px 24px; margin: 0 0 24px; }
.card > :last-child { margin-bottom: 0; }
.callout { background: var(--tint-blue); border-radius: var(--soft); padding: 12px 16px; margin: 0 0 1em; }
.trap { background: var(--tint-amber); border-radius: var(--soft); padding: 10px 16px; }
.differ { background: var(--tint-magenta); border-radius: var(--soft); padding: 10px 16px; margin: 14px 0; font: 1.25rem/1.3 var(--hand); }
.nudge { font-size: .92rem; color: var(--muted); border-top: 2px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 22px; border: 2px solid var(--ink); border-radius: var(--sk); background: transparent; color: var(--ink); font: 1.35rem/1.1 var(--hand); text-decoration: none; cursor: pointer; transition: transform .12s; }
.btn:hover:not(:disabled) { transform: rotate(-1.2deg) translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { border-style: dashed; }
.btn.small { min-height: 36px; padding: 2px 14px; font-size: 1.15rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.run-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px 4px; max-width: 100%; }
.seg-btn { border: 2px solid transparent; border-radius: var(--sk2); background: transparent; padding: 3px 13px; min-height: 38px; font: 1.25rem/1.1 var(--hand); cursor: pointer; color: var(--muted); }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-picked { border-color: var(--red); color: var(--ink); transform: rotate(-1.5deg); }
.chip-s, .tag { --hl: var(--tint-blue); display: inline-block; padding: 0 5px; font: 1.1rem/1.25 var(--hand); color: var(--ink); background: linear-gradient(transparent 42%, var(--hl) 42%, var(--hl) 92%, transparent 92%); white-space: nowrap; vertical-align: baseline; }
.chip-s.kind, .tag, .st-new, .ls-not-started, .conf-guess, .conf-fairly, .conf-explain { --hl: transparent; color: var(--muted); }
.st-missed, .st-confident-miss, .band-wrong { --hl: var(--tint-red); color: var(--red); }
.st-partly, .st-not-sure-yet, .band-partial, .ls-in-progress { --hl: var(--tint-amber); }
.st-right-once, .ls-covered-once { --hl: var(--tint-blue); }
.st-remembered, .band-right, .ls-remembered-for-now { --hl: var(--tint-green); color: var(--green); }
.who-chip { --hl: transparent; margin-left: 6px; color: var(--red); border: 2px solid var(--red); border-radius: var(--sk2); padding: 0 9px; }
.plain { list-style: none; padding-left: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table.items { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.items th, table.items td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1.5px dashed var(--line); }
table.items thead th { font: 1.2rem/1.2 var(--hand); color: var(--red); border-bottom: 2px solid var(--ink); }
table.items.wide { min-width: 640px; } table.items.wide tbody th { font: 1.2rem/1.3 var(--hand); min-width: 9em; }
.linkish { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.due { white-space: nowrap; }
details > summary { cursor: pointer; font: 1.3rem/1.3 var(--hand); }
details[open] > summary { margin-bottom: .6em; }
code { font-family: var(--mono); font-size: .85em; background: var(--tint-blue); padding: 1px 5px; border-radius: 4px; }

/* ---------- pictures: taped into the notebook ---------- */
.plate { position: relative; margin: 6px 0 22px; }
.plate img { display: block; width: 100%; border-radius: 3px; box-shadow: var(--sheet); background: var(--card); }
.plate::before, .plate::after { content: ""; position: absolute; top: -11px; width: 92px; height: 26px; background: rgba(214, 190, 120, .55); box-shadow: 0 1px 2px rgba(28, 42, 74, .15); z-index: 1; }
.plate::before { left: 7%; transform: rotate(-5deg); } .plate::after { right: 7%; transform: rotate(4deg); }
.plate figcaption { font: 1.15rem/1.3 var(--hand); color: var(--muted); margin-top: 8px; text-align: center; }
.plate a { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- home ---------- */
.hero { padding: 4px 0 6px; max-width: 46em; }
.hero h1 { margin-bottom: .25em; }
.lessons { display: grid; gap: 34px 30px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin: 26px 0 34px; }
.lesson-card { display: block; color: var(--ink); text-decoration: none; }
.lesson-card .plate { margin-bottom: 14px; transition: transform .15s; }
.lessons .lesson-card:nth-child(odd) .plate { transform: rotate(-1.2deg); } .lessons .lesson-card:nth-child(even) .plate { transform: rotate(1deg); }
.lesson-card:hover .plate { transform: rotate(0) scale(1.01) !important; }
.lesson-card h3 { font-size: 2rem; margin-bottom: .2em; } .lesson-card:hover h3 { text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lesson-card p { color: var(--muted); font-size: 1rem; } .lesson-card > :last-child { margin-bottom: 0; }
.lesson-n { display: block; font: 1.25rem/1.2 var(--hand); color: var(--red); margin-bottom: 2px; }
.lesson-who { display: flex; flex-direction: column; gap: 3px; font: 1.15rem/1.3 var(--hand); }
.lesson-who strong { font-weight: 400; } .lesson-who .note { font: inherit; font-size: 1.05rem; }
.session { background: none; box-shadow: none; padding: 0; margin-top: 10px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 4px 34px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.steps li { counter-increment: st; position: relative; padding: 6px 0 6px 40px; margin: 0; }
.steps li::before { content: counter(st) "."; position: absolute; left: 4px; top: 0; font: 2rem/1.2 var(--hand); color: var(--red); }
.step-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 1.4rem/1.2 var(--hand); } .step-t a { color: var(--ink); }
.step-time { color: var(--muted); font-size: 1.1rem; white-space: nowrap; }
.step-d { display: block; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.two-up { display: grid; gap: 10px 30px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin: 10px 0 16px; padding-top: 22px; border-top: 2px dashed var(--line); }
.lesson-card.slim h3 { font-size: 1.6rem; }
.track { margin: 30px 0 0; } .track-h { font-size: 2.3rem; margin: 0 0 .1em; } .track-note { max-width: 62ch; margin: 0; } .track .lessons { margin-top: 30px; }
.plate-fig .fig { margin: 0; max-width: none; padding: 10px 12px; border-radius: 3px; } .plate-fig svg { display: block; width: 100%; height: auto; }

/* ---------- lesson ---------- */
.lesson-top { margin-bottom: 8px; }
.objectives { margin-top: 2px; font-size: .98rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 10px 0 26px; padding-bottom: 10px; border-bottom: 2px dashed var(--line); font: 1.45rem/1.6 var(--hand); }
.tabs a { white-space: nowrap; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 7px; }
audio { width: 100%; margin: 6px 0 10px; }
.player-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.takes { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 4px 0 14px; }
.take { text-align: left; padding: 10px 16px 12px; border: 2px dashed var(--line); border-radius: var(--soft); background: transparent; cursor: pointer; }
.take b { display: block; font: 1.4rem/1.2 var(--hand); font-weight: 400; } .take span { display: block; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.take.is-picked { border: 2px solid var(--ink); background: var(--tint-amber); }
.transcript { margin-bottom: 14px; }
.seg-line { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: 7px 10px; margin: 0; border-radius: var(--soft); }
.seg-line[tabindex] { cursor: pointer; }
.seg-line .who { font: 1.25rem/1.45 var(--hand); color: var(--blue); }
.seg-line.who-O .who { color: var(--red); }
.seg-line.is-now { background: var(--tint-amber); }
.cites { font-size: .84rem; color: var(--muted); }
sup.cite { font-size: .68em; margin-left: 1px; } sup.cite a { text-decoration: none; font-weight: 700; padding: 0 2px; }
.slide { display: flex; flex-direction: column; min-height: 320px; }
.slide h2 { font-size: clamp(2rem, 6vw, 2.8rem); } .slide-body { font-size: 1.15rem; max-width: 42em; }
.slide-nav { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; } .dot { width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%; }
.dot.is-stop { border-color: var(--red); } .dot.is-on { background: var(--ink); } .dot.is-stop.is-on { background: var(--red); }
.mono { max-width: 42em; } .mono section { margin-bottom: 1.8em; } .mono h2 { margin-top: 1.2em; font-size: 2.1rem; }
.mono p, .mono li { font-size: 1.1rem; line-height: 1.68; }
.glossary dt { font: 1.3rem/1.3 var(--hand); margin-top: .6em; } .glossary dd { margin: 0; color: var(--muted); }
.sources { padding-left: 1.4em; } .sources li { margin-bottom: 1.1em; } .src-t, .src-w { margin-bottom: .2em; } .src-w { font-size: .93rem; }
.evidence { margin: 0 0 18px; max-width: 46em; } .evidence .note { margin: 0; }
.field { display: block; margin: 0 0 16px; max-width: 30em; } .field > span:first-child { display: block; font: 1.3rem/1.2 var(--hand); margin-bottom: 4px; }
.exam-score strong { font: 3.6rem/1 var(--hand); margin-right: 10px; } table.exams td:first-child, table.by-lesson td:last-child { white-space: nowrap; } .exam-q .prompt { font-size: 1.4rem; margin-bottom: 10px; }
.sources blockquote, blockquote.own { margin: .4em 0; padding: 4px 14px; border-left: 3px solid var(--sky); color: var(--muted); font-size: .93rem; font-style: italic; }
.sources a { word-break: break-all; }
.teach-list { display: grid; gap: 22px; }

/* ---------- practice ---------- */
.run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font: 1.15rem/1.3 var(--hand); color: var(--muted); }
.run-count { color: var(--ink); } .run-lesson { flex: 1; min-width: 8em; } .run-head .btn { margin-left: auto; }
.turn { display: inline-block; background: var(--tint-amber); padding: 3px 14px; border-radius: var(--soft); font: 1.3rem/1.3 var(--hand); }
.prompt { font: 1.75rem/1.25 var(--hand); margin: 0 0 16px; max-width: 34em; }
.opts { display: grid; gap: 10px; max-width: 46em; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 11px 16px; border: 2px solid var(--ink); border-radius: var(--soft); background: transparent; cursor: pointer; flex-wrap: wrap; }
div.opt { cursor: default; border-color: var(--line); }
.opt-key { flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%; display: grid; place-items: center; font: 1.2rem/1 var(--hand); }
.opt > span:nth-child(2) { flex: 1; min-width: 60%; }
.opt.is-picked { background: var(--tint-amber); } .opt.is-picked .opt-key { background: var(--ink); color: var(--paper); }
.opt.is-right { border-color: var(--green); background: var(--tint-green); } .opt.is-right .opt-key { background: var(--green); color: var(--paper); border-color: var(--green); }
.opt.is-wrong { border-color: var(--red); background: var(--tint-red); }
.conf { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .conf-q { font: 1.3rem/1.2 var(--hand); }
.cover { text-align: center; padding: 50px 16px; border: 2px dashed var(--ink); border-radius: var(--sk2); } .cover-big { font: 2.2rem/1.2 var(--hand); }
.cover .btn { margin-top: 8px; }
.answers { display: grid; gap: 18px; margin: 0 0 18px; grid-template-columns: minmax(0, 1fr); } .answers > * { min-width: 0; } @media (min-width: 720px) { .answers.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ans { background: var(--card); box-shadow: var(--sheet); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.ans-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.marked { font-size: .97rem; margin-bottom: 0; } .marked li { margin-bottom: .55em; }
.mark { font-weight: 800; } .mark.ok { color: var(--green); } .mark.no { color: var(--red); }
.accepted { color: var(--muted); font-size: .92rem; } .struck { text-decoration: line-through; text-decoration-color: var(--red); }
.model, .why, .followups { margin: 0 0 18px; padding: 12px 18px; border-radius: var(--soft); background: var(--tint-blue); max-width: 46em; }
.followups { background: var(--tint-magenta); } .model > :last-child, .why > :last-child, .followups > :last-child { margin-bottom: 0; }
.model-h { font: 1.3rem/1.2 var(--hand); color: var(--blue); margin-bottom: .2em; }
.rubric { margin-top: 10px; } .rubric-h { font: 1.3rem/1.2 var(--hand); margin-bottom: 6px; }
.tick { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1.5px dashed var(--line); cursor: pointer; font-size: .97rem; }
.tick input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--green); }
.match-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1.5px dashed var(--line); }
@media (min-width: 620px) { .match-row { grid-template-columns: minmax(9em, 1fr) 2fr; align-items: center; } }
.match-left { font: 1.3rem/1.3 var(--hand); }
select, textarea, input[type=number] { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: var(--soft); background: var(--raise); min-height: 46px; }
.order { list-style: none; padding: 0; counter-reset: ord; }
.order-item { counter-increment: ord; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; margin-bottom: 10px; border: 2px solid var(--ink); border-radius: var(--soft); }
.order-item::before { content: counter(ord) "."; font: 1.5rem/1 var(--hand); color: var(--red); width: 1.2em; }
.order-text { flex: 1; } .order-btns { display: flex; gap: 6px; }
.icon { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%; background: transparent; font-weight: 700; cursor: pointer; } .icon:disabled { opacity: .3; }
.sort-card { padding: 4px 0 14px; margin-bottom: 12px; border-bottom: 1.5px dashed var(--line); } .sort-card p { margin-bottom: 6px; }
.number { display: grid; gap: 12px; grid-template-columns: 1fr; } @media (min-width: 560px) { .number { grid-template-columns: 1fr 11em; align-items: center; } }
.number-box { display: flex; align-items: center; gap: 8px; } .unit { font: 1.3rem/1 var(--hand); white-space: nowrap; }
input[type=range] { width: 100%; accent-color: var(--red); min-height: 32px; }
.spot { display: grid; gap: 10px; }
.spot-s { display: flex; gap: 12px; text-align: left; padding: 11px 16px; border: 2px solid var(--ink); border-radius: var(--soft); background: transparent; cursor: pointer; }
.spot-n { color: var(--red); font: 1.3rem/1.3 var(--hand); } .spot-s.is-picked { border-color: var(--red); background: var(--tint-red); text-decoration: line-through; text-decoration-color: var(--red); }
.teach-box { background: var(--card); box-shadow: var(--sheet); border-radius: var(--r); padding: 18px 20px; }
.teach-clock { display: flex; align-items: center; gap: 14px; } .clock { font: 3rem/1 var(--hand); }

/* ---------- diagrams you can move: drawn on the same paper ---------- */
.viz-slot, .fig { margin: 0 0 20px; }
.viz, .fig { background: var(--card); box-shadow: var(--sheet); border-radius: var(--r); padding: 14px; }
.fig { max-width: 640px; }
.vz-svg { display: block; width: 100%; height: auto; }
.viz-side { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; } .viz-side .vz-svg { width: 220px; flex: none; }
.meter-wrap { flex: 1; min-width: 180px; } .meter-cap { font: 1.15rem/1.2 var(--hand); color: var(--muted); }
.meter { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: var(--sk2); overflow: hidden; margin-top: 4px; }
.meter-fill { height: 100%; background: var(--sky); } .meter.is-stalled .meter-fill { background: var(--red); }
.meter-mark { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.viz-controls { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.slider { display: block; } .slider-top { display: flex; justify-content: space-between; gap: 10px; font: 1.2rem/1.3 var(--hand); } .slider output { color: var(--red); white-space: nowrap; }
.viz-status { margin: 10px 0 0; font: 1.3rem/1.3 var(--hand); min-height: 3.4em; } .viz-note { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 2px dashed var(--line); background: transparent; border-radius: var(--sk2); padding: 2px 14px; font: 1.15rem/1.3 var(--hand); cursor: pointer; min-height: 36px; }
.chip.is-on { background: var(--tint-amber); border: 2px solid var(--ink); }
.vz-label { font: 400 16px var(--hand); fill: var(--ink); } .vz-small { font-size: 14.5px; } .vz-tiny { font-size: 12.5px; fill: var(--muted); }
.vz-strong { font-size: 18px; } .vz-muted { fill: var(--muted); } .vz-warn { fill: var(--red); }
.vz-torque-t { fill: var(--red); } .vz-tail-t { fill: var(--blue); } .vz-drift-t { fill: var(--amber); }
.vz-arrow line, .vz-arrow path { stroke: currentColor; stroke-linecap: round; } .vz-arrow polygon { fill: currentColor; }
.vz-lift, .vz-tail { color: var(--blue); } .vz-weight { color: var(--ink); } .vz-drag, .vz-torque { color: var(--red); } .vz-thrust { color: var(--green); }
.vz-wind, .vz-rotor { color: var(--muted); } .vz-path { color: var(--magenta); } .vz-drift { color: var(--amber); }
.vz-plane path, .vz-heli, .vz-wing { fill: var(--ink); } .vz-plane .vz-glass, .vz-glass { fill: var(--sky); } .vz-plane .vz-wingsec { fill: var(--raise); stroke: var(--ink); stroke-width: 1.5; }
.vz-wing.vz-stalled { fill: var(--red); }
.vz-disc { fill: var(--sky); fill-opacity: .28; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 5; }
.vz-blades line { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: .8; } .vz-hub { fill: var(--raise); stroke: var(--ink); stroke-width: 2; }
.vz-stream { fill: none; stroke: #6ea7cf; stroke-width: 2; opacity: .85; stroke-linecap: round; stroke-dasharray: 14 8; animation: flow var(--flow-dur, 1.3s) linear infinite; }
.vz-static .vz-stream, .vz-stream.vz-plain { animation: none; } .vz-stream.vz-plain { stroke-dasharray: none; stroke-width: 2.4; }
.vz-stream.vz-sep { stroke: var(--red); stroke-dasharray: 3 7; }
.vz-swirl path { fill: none; stroke: var(--red); stroke-width: 1.8; }
@keyframes flow { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.vz-chord, .vz-horizon, .vz-dim { stroke: var(--muted); stroke-width: 1.3; stroke-dasharray: 6 5; fill: none; } .vz-dim { stroke-dasharray: none; }
.vz-axis { stroke: var(--ink); stroke-width: 1.4; } .vz-crit { stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 4 4; }
.vz-curve { fill: none; stroke: var(--blue); stroke-width: 2.8; stroke-linecap: round; } .vz-dot, .vz-parcel { fill: var(--magenta); } .vz-dot.vz-stalled { fill: var(--red); } .vz-parcel.vz-top { fill: var(--blue); }
.vz-arc { fill: none; stroke: var(--magenta); stroke-width: 3; } .vz-arc.vz-stalled { stroke: var(--red); }
/* shared by the drawings each lesson keeps in assets/figs/ */
.vz-plane ellipse, .vz-plane circle:not(.vz-disc) { fill: var(--ink); } .vz-prop, .vz-leg, .vz-fin { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .vz-fin { stroke-width: 4; }
.vz-surface { fill: var(--raise); stroke: var(--card); stroke-width: .8; } .vz-surface.is-lit { fill: var(--red); } .vz-fin.is-lit { stroke: var(--red); }
.vz-ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .vz-thin { stroke-width: 1.4; } .vz-thick { stroke-width: 4; } .vz-dash { stroke-dasharray: 6 5; }
.vz-fill-ink { fill: var(--ink); } .vz-fill-paper { fill: var(--card); } .vz-fill-sky { fill: var(--sky); } .vz-fill-raise { fill: var(--raise); }
.vz-fill-red { fill: var(--tint-red); } .vz-fill-amber { fill: var(--tint-amber); } .vz-fill-blue { fill: var(--blue); fill-opacity: .22; } .vz-fill-green { fill: var(--green); fill-opacity: .22; }
.vz-s-red { stroke: var(--red); } .vz-s-blue { stroke: var(--blue); } .vz-s-green { stroke: var(--green); } .vz-s-amber { stroke: var(--amber); } .vz-s-muted { stroke: var(--muted); }
.vz-t-red { fill: var(--red); } .vz-t-blue { fill: var(--blue); } .vz-t-green { fill: var(--green); } .vz-t-amber { fill: var(--amber); }
.vz-dial-face { fill: var(--card); stroke: var(--ink); stroke-width: 2.4; } .vz-dial-tick { stroke: var(--ink); stroke-width: 1.4; } .vz-dial-needle { stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; } .vz-dial-needle.vz-short { stroke-width: 4.4; }
.vz-dial-arc { fill: none; stroke-width: 6; } .vz-arc-green { stroke: var(--green); } .vz-arc-amber { stroke: var(--amber); } .vz-arc-red { stroke: var(--red); } .vz-arc-white { stroke: var(--line); stroke-width: 4; }
.vz-grid line, .vz-grid circle { stroke: var(--line); stroke-width: 2; fill: none; } .vz-grid circle { stroke-dasharray: 7 7; } .vz-cell { fill: var(--card); stroke: var(--line); } .vz-duct { fill: var(--raise); stroke: var(--ink); }
@media (prefers-reduced-motion: reduce) { .vz-stream { animation: none; } .btn, .lesson-card .plate { transition: none; } html { scroll-behavior: auto; } }
/* the progress table is always stacked: two learner cards side by side leave no room for six columns */
table.prog thead { display: none; } table.prog tr { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
table.prog td { border: 0; padding: 2px 4px; } table.prog td:first-child, table.prog td:nth-child(n+5) { grid-column: 1 / -1; } table.prog td[data-l]::before { content: attr(data-l) ": "; font: 1.1rem var(--hand); color: var(--red); }
@media (max-width: 560px) {
  body { font-size: 17px; } .top { padding: 16px 16px 0; } main { padding: 22px 16px 60px; } .card { padding: 16px; }
  .brand { font-size: 1.8rem; } #nav { font-size: 1.2rem; gap: 0 16px; } .tabs { font-size: 1.3rem; gap: 0 16px; }
  .seg-line { grid-template-columns: 1fr; gap: 0; } .plate::before, .plate::after { width: 60px; height: 20px; top: -9px; }
  .prompt { font-size: 1.5rem; }
  /* on a phone the words inside a picture are too small to read, so the question is always shown as text */
  .prompt.sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  table.ex thead { display: none; } table.ex tr { display: grid; grid-template-columns: 1.7em 1fr 1fr; padding: 8px 0; border-bottom: 1.5px dashed var(--line); }
  table.ex td { border: 0; padding: 2px 4px; } table.ex td:nth-child(2) { grid-column: 2 / -1; } table.ex td[data-who] { grid-row: 2; font-size: .85rem; } table.ex td:nth-child(3) { grid-column: 2; } table.ex td:nth-child(4) { grid-column: 3; } table.ex td[data-who] .chip-s { display: inline; }
  table.ex td[data-who]::before { content: attr(data-who) ": "; font: 1.05rem var(--hand); color: var(--ink); }
}
@media print { .top, footer, .tabs, .run-actions { display: none; } body { background: #fff; } }
