/*
 * Palette taken from justfly.ing: cream paper, navy ink, gold, and burgundy.
 * --chart-blue and --chart-magenta stay true to sectional chart colors, because
 * lessons refer to them by name.
 */
:root {
  --bg: #f4efde;
  --surface: #fffdf7;
  --ink: #1b2a33;
  --muted: #3e4e56;
  --line: #c9bb92;
  --blue: #123044;
  --blue-soft: #e9dfbc;
  --magenta: #8c3b5a;
  --magenta-soft: #f3e2df;
  --gold: #b8892f;
  --cta-ink: #1b2a33;
  --hero: #5c2330;
  --hero-deep: #3d1720;
  --green: #2a6a4b;
  --green-soft: #dfecd9;
  --red: #9b2d20;
  --red-soft: #f6ddd4;
  --chart-blue: #1f4e9c;
  --chart-magenta: #9c2a6b;
  /* Typefaces from justfly.ing, loaded from Google Fonts in index.html. */
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111b22;
    --surface: #1b2a33;
    --ink: #f4efde;
    --muted: #c2b6a0;
    --line: #3a4a54;
    --blue: #d9ae55;
    --blue-soft: #123044;
    --magenta: #e09ab4;
    --magenta-soft: #3d1720;
    --gold: #b8892f;
    --green: #7fcba0;
    --green-soft: #1d3529;
    --red: #f0907f;
    --red-soft: #3a1d18;
    --chart-blue: #7fa9ee;
    --chart-magenta: #e58bbd;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 .5rem; }
h2 { font-size: 1.8rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.7rem; margin: 0 0 .4rem; }
h4 { font-size: 1.35rem; margin: 0 0 .25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
}
.brand svg { color: var(--blue); flex: none; }
.header-progress {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: var(--muted); white-space: nowrap;
}
.header-progress .bar { width: 110px; }

.bar {
  height: 8px; border-radius: 4px; background: var(--line); overflow: hidden;
}
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }

.site-footer {
  max-width: 1100px; margin: 3rem auto 0; padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.link-button {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}

/* ---------- Layout ---------- */

.page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 0; }
.home { max-width: 820px; }

.eyebrow {
  margin: 0 0 .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow a { color: inherit; }

.button {
  display: inline-block; padding: .65rem 1.1rem;
  border: 1.5px solid var(--blue); border-radius: 6px;
  background: transparent; color: var(--blue);
  font: 600 .85rem var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--cta-ink); }
.button.done { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.button:hover { filter: brightness(1.08); }

/* ---------- Home ---------- */

.hero {
  padding: 2rem 1.75rem 1.5rem; border-radius: 10px;
  background: linear-gradient(var(--hero), var(--hero-deep));
  border-bottom: 6px solid var(--gold);
  color: #f4efde;
}
.hero h1 { color: #fffdf7; }
.hero .lede { color: #e4d9c4; }
.hero .all-done { color: #e2bd6b; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.all-done { color: var(--green); font-weight: 600; }

.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sources strong { display: inline-block; min-width: 3.5rem; color: var(--blue); }

.module {
  background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: 8px; padding: 1.5rem;
}
.module header p { margin: 0 0 1rem; color: var(--muted); }
.module-progress { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.module-progress .bar { flex: 1; max-width: 260px; }

.unit { margin-top: 1.75rem; }
.unit-letter {
  font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--magenta); margin-right: .35rem;
}
.unit-summary { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }

.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list a {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .5rem; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.lesson-list a:hover { background: var(--blue-soft); }
.lesson-list .num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.2rem; }
.lesson-list .title { flex: 1; }
.lesson-list .meta { display: flex; gap: .75rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.quiz-score { color: var(--green); font-weight: 600; }

.check {
  flex: none; width: 1.25rem; height: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 50%;
  font-size: .75rem; line-height: 1; color: var(--surface);
}
.done .check { background: var(--green); border-color: var(--green); }

.roadmap { list-style: none; padding: 0; margin: 0; }
.roadmap li { display: flex; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.roadmap .num {
  flex: none; width: 5.5rem; padding-top: .2rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.roadmap p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Lesson ---------- */

.lesson-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .lesson-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 4.25rem; align-self: start; max-height: calc(100vh - 5rem); overflow-y: auto; }
}

.sidebar { font-size: .88rem; }
.sidebar summary { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; cursor: pointer; padding: .25rem 0; }
.side-unit {
  margin: 1rem 0 .25rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: flex; gap: .5rem; align-items: flex-start;
  padding: .35rem .5rem; border-radius: 5px;
  color: var(--ink); text-decoration: none; line-height: 1.35;
}
.sidebar li a:hover { background: var(--blue-soft); }
.sidebar li a[aria-current] { background: var(--blue-soft); font-weight: 600; }
.sidebar .check { width: 1rem; height: 1rem; font-size: .6rem; margin-top: .12rem; }

.lesson { max-width: 72ch; min-width: 0; }
.lesson-num { color: var(--blue); font-variant-numeric: tabular-nums; }
.lesson-meta { margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }

.prep {
  display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
}
.prep h2 { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 .5rem; }
.prep ul { margin: 0 0 .5rem; padding-left: 1.1rem; font-size: .95rem; }
.prep li { margin-bottom: .3rem; }

.content p, .content li { max-width: 70ch; }
.content li { margin-bottom: .35rem; }
.content h3 { font-size: 1.35rem; margin: 1.5rem 0 .4rem; }

a.reg { white-space: nowrap; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .5rem .65rem; border: 1px solid var(--line); }
th { background: var(--blue-soft); font-weight: 600; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: .4rem; }

.callout {
  margin: 1.25rem 0; padding: .9rem 1.1rem;
  border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: 0 6px 6px 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.trap { border-color: var(--red); background: var(--red-soft); }
.callout.beyond { border-color: var(--magenta); background: var(--magenta-soft); margin-top: 2.5rem; }
.callout h2, .callout h3 { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.callout.beyond h2 { color: var(--magenta); }
.callout.trap h3 { color: var(--red); }
.callout.key h3 { color: var(--blue); }

.mnemonic { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }

.scenarios .hint { color: var(--muted); font-size: .92rem; margin-top: -.25rem; }
.scenarios li { margin-bottom: .75rem; }

figure { margin: 1.5rem 0; }
figure svg { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.as-text { fill: var(--ink); font: 600 12px var(--sans); }
.as-small { fill: var(--muted); font: 11px var(--sans); }
.as-ground { fill: var(--line); }
.as-bg { fill: var(--surface); }
.as-a { fill: var(--red-soft); stroke: var(--red); }
.as-b { fill: var(--blue-soft); stroke: var(--chart-blue); stroke-width: 2.5; }
.as-c { fill: var(--magenta-soft); stroke: var(--chart-magenta); stroke-width: 2.5; }
.as-d { fill: var(--blue-soft); stroke: var(--chart-blue); stroke-width: 2; stroke-dasharray: 6 4; }
.as-g { fill: var(--green-soft); stroke: var(--green); stroke-width: 1; }
.as-rule { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }

/* ---------- Quiz ---------- */

.quiz fieldset {
  margin: 0 0 1rem; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.quiz legend { float: left; width: 100%; padding: 0; margin-bottom: .6rem; font-weight: 600; }
.quiz label {
  clear: both; display: flex; gap: .6rem; align-items: flex-start;
  padding: .4rem .5rem; border-radius: 5px; cursor: pointer;
}
.quiz label:hover { background: var(--blue-soft); }
.quiz input { margin-top: .35rem; flex: none; accent-color: var(--blue); }
.quiz fieldset.right { border-color: var(--green); }
.quiz fieldset.wrong { border-color: var(--red); }
.quiz .right label.is-answer, .quiz .wrong label.is-answer { background: var(--green-soft); }
.quiz .is-answer span::after { content: "  ✓"; color: var(--green); font-weight: 700; }
.quiz fieldset:not(.right):not(.wrong) .is-answer span::after { content: none; }
.why { clear: both; margin: .6rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .93rem; }
.quiz .right .why strong { color: var(--green); }
.quiz .wrong .why strong { color: var(--red); }
.quiz-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.quiz-result { margin: 0; font-weight: 600; }

.complete-row { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a {
  padding: .8rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.pager a:hover { border-color: var(--blue); }
.pager small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pager .next { text-align: right; }

@media (max-width: 560px) {
  .header-progress span { display: none; }
  .lesson-list .meta { flex-direction: column; gap: 0; align-items: flex-end; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}

@media print {
  .site-header, .site-footer, .sidebar, .pager, .complete-row, .quiz-actions { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* ---------- Interactive lessons: opener, quick checks, widgets ---------- */

.card-label {
  margin: 0 0 .5rem;
  font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--magenta);
}
.tag {
  padding: 0 .4rem; border: 1px solid var(--magenta); border-radius: 3px;
  color: var(--magenta); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}

.opener {
  margin: 1.5rem 0 0; padding: 1.25rem 1.4rem;
  background: var(--surface); border: 2px solid var(--magenta); border-radius: 10px;
}
.opener-prompt { font-size: 1.08rem; }
.opener-prompt p { margin: 0 0 .6rem; }
.opener-reveal { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.opener-reveal p:last-child { margin-bottom: 0; }
strong.ok { color: var(--green); }
strong.no { color: var(--red); }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices button {
  padding: .55rem .9rem; text-align: left;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; font-size: .95rem; cursor: pointer;
}
.choices button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.choices button:disabled { cursor: default; opacity: .65; }
.choices button.picked { opacity: 1; border-color: var(--red); background: var(--red-soft); }
.choices button.is-answer { opacity: 1; border-color: var(--green); background: var(--green-soft); }
.choices button.is-answer::after { content: "  ✓"; color: var(--green); font-weight: 700; }

.check-card {
  margin: 1.25rem 0; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--magenta); border-radius: 0 8px 8px 0;
}
.check-q { margin: 0 0 .7rem; font-weight: 600; }
.check-card.right .why strong { color: var(--green); }
.check-card.wrong .why strong { color: var(--red); }

.w-card {
  margin: 1.25rem 0; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px;
}
.w-card .card-label { color: var(--blue); }
.w-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .7rem; }
.w-label { flex: none; width: 5.5rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.w-hint { font-size: .8rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: .3rem; }
.seg button {
  padding: .35rem .7rem; background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .88rem; cursor: pointer;
}
.seg button:hover:not(:disabled) { border-color: var(--blue); }
.seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--surface); font-weight: 600; }
.seg button:disabled { cursor: default; opacity: .7; }
.w-row input[type="range"] { flex: 1; min-width: 140px; max-width: 280px; accent-color: var(--blue); }
.w-row output { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4rem; }

.w-out { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.w-figs { display: flex; flex-wrap: wrap; gap: .75rem; }
.w-big { flex: 1 1 180px; padding: .7rem .9rem; background: var(--blue-soft); border-radius: 6px; }
.w-big strong { display: block; font: 700 1.15rem/1.3 var(--sans); }
.w-big small { color: var(--muted); font-size: .8rem; }
.w-why, .w-note { margin: .8rem 0 0; font-size: .93rem; }
.w-note { color: var(--muted); }
.w-case { margin: 0 0 1rem; font: 700 1.2rem/1.35 var(--sans); }
.w-streak { float: right; margin: -1.6rem 0 0; font-size: .8rem; color: var(--muted); }
.w-verdict { margin: 0; }
.w-verdict.ok strong { color: var(--green); }
.w-verdict.no strong { color: var(--red); }
.w-out .button { margin-top: .8rem; }
.button:disabled { opacity: .45; cursor: default; }

.w-diagram { display: block; width: 100%; max-width: 520px; height: auto; margin-top: .75rem; }
.w-cloud { opacity: .45; }
.w-cloud ellipse { fill: var(--muted); }
.w-plane { fill: var(--blue); }
.w-dim { fill: none; stroke: var(--magenta); stroke-width: 1.5; }
.w-dimtext { fill: var(--ink); font: 600 12px var(--sans); }

details.fold { margin: 1rem 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
details.fold > summary { padding: .65rem 1rem; cursor: pointer; font-weight: 600; color: var(--blue); }
details.fold > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
details.fold .table-wrap { margin-top: 0; }

/* Drills, calculators, explorer */
div.w-case { margin: 0 0 1rem; }
.w-case:focus { outline: none; }
.w-field { display: grid; gap: .25rem; margin-bottom: .7rem; }
.w-field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.w-field input[type="date"] {
  max-width: 14rem; padding: .4rem .5rem; font: inherit;
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px;
}
.w-status { list-style: none; margin: 0; padding: 0; }
.w-status li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; padding: .55rem .8rem; margin-bottom: .4rem; border-radius: 6px; background: var(--bg); border-left: 4px solid var(--line); }
.w-status li.ok { border-color: var(--green); background: var(--green-soft); }
.w-status li.no { border-color: var(--red); background: var(--red-soft); }
.w-status li.na span { color: var(--muted); }
.w-steps { margin: .5rem 0 0; padding-left: 1.3rem; }
.w-steps li { margin-bottom: 1rem; }
.w-steps p { margin: 0 0 .4rem; }
.w-steps .w-note { margin: 0 0 .5rem; }
.w-dl { display: grid; grid-template-columns: 7rem 1fr; gap: .4rem 1rem; margin: 0; font-size: .95rem; }
.w-dl dt { font-weight: 600; color: var(--muted); font-size: .85rem; padding-top: .1rem; }
.w-dl dd { margin: 0; }
@media (max-width: 480px) { .w-dl { grid-template-columns: 1fr; gap: 0; } .w-dl dd { margin-bottom: .5rem; } }
.as-figure { margin: .5rem 0 0; }
.as-hit { cursor: pointer; }
.as-e { fill: transparent; }
.as-hit.sel .as-e { fill: var(--blue-soft); opacity: .6; }
.as-hit.sel .as-a, .as-hit.sel .as-b, .as-hit.sel .as-c, .as-hit.sel .as-d, .as-hit.sel .as-g { stroke-width: 5; }
.as-hit.sel .as-text { text-decoration: underline; }

.lamp {
  display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5rem; vertical-align: -.15em;
  border-radius: 50%; border: 1px solid var(--line);
}
.lamp.green { background: #1fae5b; box-shadow: 0 0 10px #1fae5b; }
.lamp.red { background: #e0352b; box-shadow: 0 0 10px #e0352b; }
.lamp.white { background: #fff; box-shadow: 0 0 10px #cfd6de; }
.lamp.alt { background: #e0352b; }
@media (prefers-reduced-motion: no-preference) {
  .lamp.flash { animation: lamp-flash 1s steps(1) infinite; }
  .lamp.alt { animation: lamp-alt 1.2s steps(1) infinite; }
}
@keyframes lamp-flash { 50% { opacity: .12; box-shadow: none; } }
@keyframes lamp-alt { 50% { background: #1fae5b; } }

.chartline { display: inline-block; width: 5rem; margin-right: .75rem; vertical-align: middle; border-top: 4px solid var(--chart-blue); }
.chartline.magenta { border-top-color: var(--chart-magenta); }
.chartline.dashed { border-top-style: dashed; }
.sidebar details + details { margin-top: .5rem; }

/* Small uppercase labels use the mono face, as on justfly.ing. */
.eyebrow, .roadmap .num, .side-unit, .pager small, .tag, .lesson-list .num { font-family: var(--mono); font-weight: 500; }

/* ---------- Module 2: aerodynamics diagrams ---------- */
.formula { font: 600 1.05rem var(--mono); text-align: center; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ae-viz svg { display: block; width: 100%; height: auto; margin-top: .5rem; }
.ae-foil { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ae-stream { fill: none; stroke: var(--chart-blue); stroke-width: 1.6; opacity: .8; }
.ae-eddy { fill: none; stroke: var(--red); stroke-width: 1.5; }
.ae-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.ae-chord { stroke: var(--magenta); stroke-width: 1.5; stroke-dasharray: 7 4; }
.ae-arc { fill: none; stroke: var(--magenta); stroke-width: 1.5; }
.ae-label { fill: var(--muted); font: 500 11px var(--mono); letter-spacing: .04em; }
.ae-labelb { fill: var(--ink); font: 700 14px var(--sans); }
.ae-wind line, .ae-wind polygon { stroke: var(--muted); fill: var(--muted); stroke-width: 1.5; }
.ae-axis { stroke: var(--line); stroke-width: 1.5; }
.ae-grid { stroke: var(--line); stroke-dasharray: 2 4; }
.ae-crit { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 5 4; }
.ae-now { stroke: var(--gold); stroke-width: 1.5; }
.ae-curve { fill: none; stroke: var(--ink); stroke-width: 3; }
.ae-curve2 { fill: none; stroke: var(--chart-blue); stroke-width: 2; }
.ae-curve3 { fill: none; stroke: var(--chart-magenta); stroke-width: 2; }
.ae-key { fill: var(--ink); font: 700 12px var(--sans); }
.ae-key2 { fill: var(--chart-blue); font: 700 12px var(--sans); }
.ae-key3 { fill: var(--chart-magenta); font: 700 12px var(--sans); }
.ae-dot { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; }
.ae-dot2 { fill: var(--chart-blue); }
.ae-dot3 { fill: var(--chart-magenta); }
.ae-ground { stroke: var(--line); stroke-width: 2; }
.ae-plane line { stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.ae-plane circle { fill: var(--blue); }
.ae-lift line { stroke: var(--green); stroke-width: 3; } .ae-lift polygon { fill: var(--green); }
.ae-weight line { stroke: var(--red); stroke-width: 3; } .ae-weight polygon { fill: var(--red); }
.ae-comp line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; } .ae-comp polygon { fill: var(--muted); }

.asi-wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: .5rem; }
.asi { flex: 0 1 280px; width: 100%; max-width: 280px; height: auto; }
.asi-text { flex: 1 1 220px; margin-top: 0; padding-top: 0; border-top: 0; }
.asi-text p:first-child { margin-top: 0; }
.asi-face { fill: #1b2a33; stroke: #8a7a55; stroke-width: 4; }
.asi-tick { stroke: #fffdf7; stroke-width: 2; }
.asi-num { fill: #fffdf7; font: 600 15px var(--mono); }
.asi-cap { fill: #c2b6a0; font: 500 11px var(--mono); letter-spacing: .1em; }
.asi-arc { fill: none; stroke-width: 9; transition: opacity .2s, stroke-width .2s; }
.asi-arc.white { stroke: #fffdf7; stroke-width: 6; }
.asi-arc.green { stroke: #2fa36b; }
.asi-arc.yellow { stroke: #e5b53a; }
.asi-arc.red { stroke: #e0352b; stroke-width: 5; }
.asi-arc.dim { opacity: .3; }
.asi-arc.sel { stroke-width: 13; }
.asi-arc.white.sel { stroke-width: 10; }
.asi-arc.red.sel { stroke-width: 8; }
.asi-needle { stroke: #fffdf7; stroke-width: 4; stroke-linecap: round; }
.asi-hub { fill: #b8892f; stroke: #fffdf7; stroke-width: 2; }
.ae-planebody { fill: var(--blue); }
.ae-prop { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
