/* Site styles: look "B, Datasheet" (docs/redesign/README.md, owner's choice 2026-11-24).
   Phone first; wider screens get extra rules in media queries. Colours are tokens on :root. Dark values are
   repeated twice on purpose: once for the system setting (unless the visitor picked light), once for the
   visitor's own choice.
   Labels that look "mono uppercase" use font-variant-caps: all-small-caps instead of text-transform, so the
   text itself (what screen readers, copy and paste and the browser tests read) keeps its normal case. */

/* IBM Plex Sans and Mono 1.1.0 (SIL Open Font License 1.1, fonts/LICENSE-IBM-Plex.txt), self-hosted so no
   request goes to a font service (owner, 2026-11-24). Split files from the official npm packages @ibm/plex-sans
   and @ibm/plex-mono: Latin1, Greek (Sans only) and Pi (arrows, ≥, ✓); the browser loads only what a page uses. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular-Greek.woff2") format("woff2"); unicode-range: U+037E, U+0386-038A, U+038C, U+038E-03A1, U+03A3-03CE; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular-Pi.woff2") format("woff2"); unicode-range: U+2000-200D, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium-Greek.woff2") format("woff2"); unicode-range: U+037E, U+0386-038A, U+038C, U+038E-03A1, U+03A3-03CE; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium-Pi.woff2") format("woff2"); unicode-range: U+2000-200D, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold-Greek.woff2") format("woff2"); unicode-range: U+037E, U+0386-038A, U+038C, U+038E-03A1, U+03A3-03CE; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold-Pi.woff2") format("woff2"); unicode-range: U+2000-200D, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IBMPlexSans-Bold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IBMPlexSans-Bold-Greek.woff2") format("woff2"); unicode-range: U+037E, U+0386-038A, U+038C, U+038E-03A1, U+03A3-03CE; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IBMPlexSans-Bold-Pi.woff2") format("woff2"); unicode-range: U+2000-200D, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-Regular-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-Medium-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexMono-SemiBold-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2032-2033, U+2070-2089, U+2190-2199, U+2202-2265, U+25CA, U+2713, U+274C; }

:root {
  color-scheme: light;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --bg: #f5f6f3;          /* page */
  --surface: #fcfcfa;     /* "card": boxes, tables */
  --surface-2: #e4e8e3;   /* "soft": row hover, quiet fills */
  --ink: #1a1e1c;         /* text */
  --ink-2: #3b4440;       /* secondary text that must stay easy to read */
  --muted: #58615c;       /* small labels, axis labels */
  --line: #c9cec9;        /* borders, table rules */
  --axis: #98a09b;        /* chart frames and input borders */
  --grid: #e3e7e2;        /* chart grid */
  --accent: #0e6f66;
  --accent-ink: #ffffff;
  --focus: #0e6f66;
  --fill: #dcebe7;
  --caution-bg: #f6ecd6;
  --caution-line: #b5852a;
  --caution-ink: #6f4800;
  --shape-fill: #dcebe7;
  --shape-line: #0e6f66;
  --band: #1a1e1c; --on-band: #eef1ee; --band-muted: #a9b3ad; --band-line: #3a413d; --band-input: #262b28;
  /* Series colours: the compare basket's 8 airfoil colours (validated for colour-blind visitors,
     docs/worklog/basket.md; basket.js names them). Airfoil pages swap in the Reynolds-number colours below. */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  /* Reynolds-number line colours (50k, 100k, 150k, 200k, 500k, 1M, 2M, 5M). The mockup's 5M colour was the
     text colour; here it is olive, because the visitor's own computed results are drawn in the text colour. */
  --r0: #6b7f78; --r1: #0e6f66; --r2: #9a6c12; --r3: #b4532a; --r4: #5a4fa0; --r5: #2f6db0; --r6: #a3367a; --r7: #5b7a14;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121614; --surface: #181d1a; --surface-2: #1f2522;
    --ink: #e2e7e3; --ink-2: #c3cbc6; --muted: #98a39c;
    --line: #2f3632; --axis: #56605a; --grid: #212824;
    --accent: #3cc4b4; --accent-ink: #06201c; --focus: #3cc4b4; --fill: #173530;
    --caution-bg: #2e2614; --caution-line: #a07c30; --caution-ink: #e0b45c;
    --shape-fill: #173530; --shape-line: #3cc4b4;
    --band: #0a0c0b; --on-band: #e2e7e3; --band-muted: #98a39c; --band-line: #2f3632; --band-input: #181d1a;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
    --r0: #9fb3ab; --r1: #3cc4b4; --r2: #d9ad4f; --r3: #e48a5e; --r4: #a39af0; --r5: #6ea3e6; --r6: #e07ab5; --r7: #a9c95a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121614; --surface: #181d1a; --surface-2: #1f2522;
  --ink: #e2e7e3; --ink-2: #c3cbc6; --muted: #98a39c;
  --line: #2f3632; --axis: #56605a; --grid: #212824;
  --accent: #3cc4b4; --accent-ink: #06201c; --focus: #3cc4b4; --fill: #173530;
  --caution-bg: #2e2614; --caution-line: #a07c30; --caution-ink: #e0b45c;
  --shape-fill: #173530; --shape-line: #3cc4b4;
  --band: #0a0c0b; --on-band: #e2e7e3; --band-muted: #98a39c; --band-line: #2f3632; --band-input: #181d1a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --r0: #9fb3ab; --r1: #3cc4b4; --r2: #d9ad4f; --r3: #e48a5e; --r4: #a39af0; --r5: #6ea3e6; --r6: #e07ab5; --r7: #a9c95a;
}
/* Airfoil pages and the NACA generator: one colour per Reynolds number (airfoil.js gives Re number k the class s<k>). */
.polar-app, .home-card { --s1: var(--r0); --s2: var(--r1); --s3: var(--r2); --s4: var(--r3); --s5: var(--r4); --s6: var(--r5); --s7: var(--r6); --s8: var(--r7); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* components set display: flex/grid; hidden must still hide them */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0.4rem 0 0.5rem; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; line-height: 1.25; margin: 2rem 0 0.6rem; font-weight: 600; }
h3 { font-size: 1rem; margin: 0 0 0.25rem; font-weight: 600; }
p { margin: 0.6rem 0; }
main p:not(.id-line):not(.actions), main li { max-width: 92ch; }
main .notes li, main .tasks li, main .fd-list li, main .cmp-basket li, main .cp-items li { max-width: none; }
code { font-family: var(--mono); font-size: 0.9em; }
td, .num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.85rem; color: var(--muted); }
.lede { font-size: 1.02rem; color: var(--ink-2); max-width: 75ch; }
.method { color: var(--ink-2); font-size: 0.9rem; }
.mono { font-family: var(--mono); }

/* "Mono uppercase" labels (see the note at the top). */
.lbl, main h2, .id-line, .sec-tabs a, .chart h3, .box-head h3, .shape > .fs-head-plain::before, caption.bar,
.perf caption, .geo caption, .tool-card .k, .task .k, .feats-k {
  font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--surface); padding: 8px 12px; }

/* ---------- Header band ---------- */
.site-header { background: var(--band); color: var(--on-band); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--on-band); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border: 1.5px solid currentColor; display: grid; place-items: center; flex: 0 0 auto; }
.brand .mark svg { width: 22px; height: 10px; display: block; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 2px; font-size: 0.9rem; }
.site-header nav a { color: var(--band-muted); text-decoration: none; padding: 6px 9px; }
.site-header nav a:hover { color: var(--on-band); }
.site-header nav a[aria-current="page"] { color: var(--on-band); box-shadow: inset 0 -2px 0 var(--accent); }
.hdr-search { flex: 1 1 auto; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--band-line); background: var(--band-input); padding: 0 10px; color: var(--band-muted); font-size: 0.86rem; }
.hdr-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.hdr-search input[type="search"] { background: none; border: 0; outline: 0; color: var(--on-band); width: 100%; min-width: 0; min-height: 34px; padding: 4px 0; font-size: 0.88rem; border-radius: 0; }
.hdr-search input::placeholder { color: var(--band-muted); }
.hbtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: inherit; font-size: 0.84rem; border: 1px solid var(--band-line);
  background: none; color: var(--on-band); padding: 5px 10px; min-height: 34px; border-radius: 2px; cursor: pointer; text-decoration: none; }
.hbtn:hover { border-color: var(--band-muted); }
.hbtn .basket-count, .hbtn b { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.hdr-search + .hbtn, .header-row.no-search .basket-link { margin-left: auto; }
.theme-toggle { font: inherit; font-size: 0.84rem; color: var(--on-band); background: transparent; border: 1px solid var(--band-line); border-radius: 2px; padding: 5px 10px; min-height: 34px; cursor: pointer; white-space: nowrap; }
.menu-btn { display: none; }
.is-list .hdr-search { display: none; }   /* the list page has its own search box */
.is-list .basket-link { margin-left: auto; }
.basket-count { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }
.basket-count[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2.5rem; border-top: 2px solid var(--ink); color: var(--muted); font-size: 0.8rem; }
.site-footer .wrap { padding-top: 14px; padding-bottom: 22px; display: grid; gap: 6px; }
.site-footer p { margin: 0; max-width: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Page heading parts ---------- */
main.wrap { padding-top: 14px; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin: 4px 0 10px; }
.crumbs a { color: var(--muted); }
.id-line { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.92rem; color: var(--muted); border-top: 2px solid var(--ink); padding-top: 6px; margin: 0 0 10px; }
.title-block { display: grid; gap: 8px; margin-bottom: 16px; }
.title-block h1, .title-block p { margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 2px; padding: 7px 14px; min-height: 40px; line-height: 1.35;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--fill); filter: none; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--surface); padding: 4px 12px; border-radius: 0; margin: 1rem 0; font-size: 0.92rem; }
.callout p { max-width: 90ch; }
.callout.caution { border-color: var(--caution-line); border-left-color: var(--caution-line); background: var(--caution-bg); color: var(--caution-ink); }
.callout.caution strong::before { content: "⚠ "; }

/* ---------- Section headings and the section bar ---------- */
main h2 { font-size: 1.08rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); margin: 2.2rem 0 0.8rem; }
main h2 .h-note { font-family: var(--sans); font-variant-caps: normal; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
main h1 + h2, .title-block + h2 { margin-top: 1rem; }
main h3 { font-size: 0.98rem; }
.sec-tabs { position: sticky; top: 0; z-index: 6; background: var(--bg); display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line);
  scrollbar-width: none; margin: 18px 0 0; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tabs a { padding: 8px 12px; font-size: 0.98rem; color: var(--muted); white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.sec-tabs a:hover { color: var(--ink); }
.sec-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.af-sec { scroll-margin-top: 48px; }

/* ---------- Boxes and tables ---------- */
.box { background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.box-head h3 { margin: 0; font-size: 0.95rem; font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
caption { text-align: left; color: var(--muted); font-size: 0.82rem; padding: 4px 0; caption-side: bottom; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; border-bottom: 1px solid var(--axis); }
tbody th { font-weight: 600; }
.perf caption, .geo caption, caption.bar { caption-side: top; background: var(--band); color: var(--on-band); padding: 5px 10px; font-size: 0.92rem; }
.perf td, .geo td, .wt-vs td, .numbers td, .dt td { font-family: var(--mono); font-size: 0.86rem; }
.perf td { text-align: right; white-space: nowrap; }
.perf thead th:not(:first-child) { text-align: right; }
.perf .at { display: block; white-space: nowrap; font-size: 0.76rem; color: var(--muted); font-weight: 400; font-family: var(--mono); }
.box > .table-wrap > table, .box > table { border: 0; }
.box table tr:last-child > * { border-bottom: 0; }
details { margin: 0.75rem 0; }
summary { cursor: pointer; color: var(--accent); padding: 6px 0; }

.notes { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 8px; }
.notes li { padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--surface); font-size: 0.9rem; }
.notes li.caution { border-color: var(--caution-line); background: var(--caution-bg); color: var(--caution-ink); }
.notes li.caution strong::before { content: "⚠ "; }
.src-list { padding-left: 1.2em; font-size: 0.9rem; display: grid; gap: 4px; }

/* ---------- Airfoil page: shape beside geometry ---------- */
.af-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.shape { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 0; min-width: 0; }
.shape > .fs-head { padding: 6px 10px; border-bottom: 1px solid var(--line); margin: 0; }
.shape > .fs-head-plain::before { content: "Shape, to scale"; margin-right: auto; font-size: 0.95rem; font-weight: 500; }
.shape-svg { display: block; width: 100%; height: auto; max-height: 50vh; padding: 10px 10px 0; }
.shape-svg .outline { fill: var(--shape-fill); stroke: var(--shape-line); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.shape-svg .chord { stroke: var(--muted); stroke-width: 0.8px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.shape-svg .tick { stroke: var(--muted); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.shape-svg text { fill: var(--muted); font-size: 0.034px; font-family: var(--mono); }
.shape figcaption { font-size: 0.8rem; color: var(--muted); padding: 4px 10px 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.geo th { font-weight: 400; color: var(--ink-2); }
.geo td { text-align: right; }
.geo td .at, .geo th .at { color: var(--muted); font-size: 0.76rem; }

.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* ---------- Polar charts (drawn by airfoil.js) ---------- */
.polar-app { min-height: 300px; }
.controls { display: grid; gap: 10px; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; margin: 0 0 12px; }
.control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.control-label { display: block; font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); min-width: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip, .seg button {
  font: inherit; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 2px; padding: 3px 9px; min-height: 32px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums;
}
.chip:hover, .seg button:hover { border-color: var(--axis); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--surface); font-weight: 600; }
.chip[aria-pressed="false"] .key { opacity: 0.3; }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.key { display: inline-block; width: 14px; height: 0; border-top: 3px solid currentColor; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--surface); font-weight: 600; }
.seg button[data-nc="9"]::after { content: " · calm air"; font-weight: 400; }
.seg button[data-nc="5"]::after { content: " · rough"; font-weight: 400; }
.control > .small { font-size: 0.82rem; }

/* Switches, not tick boxes, for on/off choices (owner). The native check box stays (so keyboards, screen
   readers and labels work as before); only its look changes: a small square track with a sliding knob. */
.xf-switch input, .nf-switch input, .wt-entry input, .wt-filter input, .cp-show input, .fd-check input,
.cad-check input, input.switch {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 30px; height: 16px; margin: 0; border: 1px solid var(--muted);
  border-radius: 2px; background: linear-gradient(var(--muted), var(--muted)) no-repeat 2px 50% / 10px 10px; cursor: pointer;
  transition: background-position 0.15s; vertical-align: middle;
}
.xf-switch input:checked, .nf-switch input:checked, .wt-entry input:checked, .wt-filter input:checked, .cp-show input:checked,
.fd-check input:checked, .cad-check input:checked, input.switch:checked {
  border-color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) no-repeat calc(100% - 2px) 50% / 10px 10px, var(--fill);
}
.xf-switch input:disabled, .wt-entry input:disabled, .fd-check input:disabled, input.switch:disabled { opacity: 0.45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { input.switch, .xf-switch input, .nf-switch input, .wt-entry input, .cp-show input { transition: none; } }

.charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 0 6px 6px; min-width: 0; }
.chart > h3, .chart .fs-head > h3 { font-size: 0.95rem; font-weight: 500; margin: 0; }
.chart > .fs-head { padding: 4px 6px 4px 10px; border-bottom: 1px solid var(--line); margin: 0 -6px 6px; }
.chart > h3 { padding: 8px 10px; border-bottom: 1px solid var(--line); margin: 0 -6px 6px; }
.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; touch-action: pan-y; }
.chart-box svg:focus-visible { outline-offset: -2px; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .zero { stroke: var(--axis); stroke-width: 1; }
.chart .frame { stroke: var(--axis); stroke-width: 1; fill: none; }
.chart .tick-label { fill: var(--muted); font-size: 11px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart .axis-title { fill: var(--ink-2); font-size: 12px; }
.chart .method-label { fill: var(--muted); font-size: 10.5px; }
.chart .line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.s1 { stroke: var(--s1); fill: var(--s1); color: var(--s1); }
.s2 { stroke: var(--s2); fill: var(--s2); color: var(--s2); }
.s3 { stroke: var(--s3); fill: var(--s3); color: var(--s3); }
.s4 { stroke: var(--s4); fill: var(--s4); color: var(--s4); }
.s5 { stroke: var(--s5); fill: var(--s5); color: var(--s5); }
.s6 { stroke: var(--s6); fill: var(--s6); color: var(--s6); }
.s7 { stroke: var(--s7); fill: var(--s7); color: var(--s7); }
.s8 { stroke: var(--s8); fill: var(--s8); color: var(--s8); }
.chart .line.s1, .chart .line.s2, .chart .line.s3, .chart .line.s4,
.chart .line.s5, .chart .line.s6, .chart .line.s7, .chart .line.s8 { fill: none; }
.tip {
  position: absolute; pointer-events: none; z-index: 2; min-width: 120px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--axis); border-radius: 2px;
  padding: 6px 8px; font-size: 0.78rem; line-height: 1.4; box-shadow: 0 1px 0 var(--line);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.tip .tip-head { color: var(--ink-2); margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tip .row strong { min-width: 3.5em; }
.tip .row span.name { color: var(--ink-2); font-family: var(--sans); }
.chart-notes { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.chart-notes ul { padding-left: 1.2rem; margin: 0.3rem 0; }
.numbers table { font-size: 0.86rem; margin-bottom: 1rem; }
.numbers caption { caption-side: top; font-weight: 600; color: var(--ink-2); }
.numbers td, .numbers th { padding: 3px 8px; text-align: right; }

/* ---------- List page ---------- */
.filters { margin: 0.5rem 0; }
.search span, .home-search label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input[type="search"], input[type="number"], input[type="text"], select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--axis);
  border-radius: 2px; padding: 6px 9px; min-height: 40px;
}
input[type="number"], input[type="text"] { font-family: var(--mono); font-size: 0.92rem; }
input[type="search"] { width: 100%; }
input[type="number"] { width: 6.5em; }
.more summary { margin-top: 0.5rem; }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
fieldset { border: 1px solid var(--line); border-radius: 0; background: var(--surface); margin: 0; padding: 8px 12px 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
legend { font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.98rem; color: var(--muted); padding: 0 4px; }
fieldset label { font-size: 0.9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.count { color: var(--muted); font-size: 0.86rem; font-family: var(--mono); }
.list { background: var(--surface); }
.list th button {
  font: inherit; font-weight: 500; color: inherit; background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left;
}
.list th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 0.7em; }
.list th[aria-sort="descending"] button::after { content: " ▼"; font-size: 0.7em; }
.list td:nth-child(n+2), .list th:nth-child(n+2) { text-align: right; }
.list td:nth-child(n+2) { font-family: var(--mono); font-size: 0.86rem; }
.list th:nth-child(n+2) button { text-align: right; }
.list td:first-child { overflow-wrap: anywhere; }
.list td:first-child a { font-weight: 600; }
.list tbody tr:hover td { background: var(--surface-2); }
.list #ld-head { display: block; font-weight: 400; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; border: 1px solid var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); border-radius: 0; padding: 0 5px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; font-weight: 400; }

/* ---------- Home page ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding: 6px 0 4px; }
.hero-text { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hero-text > * { margin: 0; }
.hero h1 { font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.hero .lede { font-size: 1.06rem; color: var(--muted); max-width: 50ch; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--line); }
.feats li { border-top: 1px solid var(--line); padding: 7px 0; display: grid; gap: 1px; min-width: 0; font-weight: 600; font-size: 0.95rem; }
.feats li span { font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.home-search { display: none; gap: 5px; }
.home-search label { margin: 0; }
.big-search { display: flex; align-items: stretch; border: 1.5px solid var(--ink); background: var(--surface); }
.big-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.big-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 12px; font-size: 1rem; outline: 0; border-radius: 0; min-height: 46px; }
.big-search button { border: 0; background: var(--ink); color: var(--bg); padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; }
.home-card { margin: 0; }
.home-card .box-head h3 { font-family: var(--sans); font-variant-caps: normal; letter-spacing: 0; font-size: 1rem; font-weight: 700; }
.home-card .hc-body { padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.home-card svg { display: block; width: 100%; height: auto; }
.home-card .hc-shape path { fill: var(--shape-fill); stroke: var(--shape-line); stroke-width: 1.5; stroke-linejoin: round; }
.home-card .hc-shape .chord { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 3 4; fill: none; }
.home-card svg text { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.home-card .hc-grid line { stroke: var(--grid); stroke-width: 1; }
.home-card .hc-axis { stroke: var(--axis); stroke-width: 1; fill: none; }
.home-card .hc-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.home-card .hc-mk { fill: var(--surface); stroke: var(--ink); stroke-width: 1.1; }
.home-card table { font-size: 0.86rem; }
.home-card th { font-weight: 400; color: var(--ink-2); padding: 4px 2px; }
.home-card td { text-align: right; font-family: var(--mono); padding: 4px 2px; white-space: nowrap; }
.home-card td small, .home-card th small { color: var(--muted); font-size: 0.76rem; }
.home-card .cap { font-size: 0.78rem; color: var(--muted); margin: 0; }
.hc-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hc-ctl { display: flex; align-items: center; gap: 4px; }
.hc-ctl .cnt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); min-width: 46px; text-align: center; }
.ibtn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-width: 32px; min-height: 32px; padding: 3px 8px; font-size: 0.84rem; border-radius: 2px; cursor: pointer; }
.ibtn:hover { color: var(--ink); border-color: var(--axis); }
.wt-tag-t, .tag.t { color: var(--accent); border-color: currentColor; background: none; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tasks li { display: flex; }
.task { flex: 1; background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
.task .k { font-size: 0.9rem; color: var(--muted); }
.task b { font-size: 1rem; }
.task span:last-child { font-size: 0.86rem; color: var(--muted); }
.task:hover b { color: var(--accent); text-decoration: underline; }
.pop td.sh { width: 112px; padding-block: 3px; }
.pop svg { width: 100px; height: 26px; display: block; }
.pop svg path { fill: var(--shape-fill); stroke: var(--shape-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pop td { font-family: var(--mono); text-align: right; white-space: nowrap; font-size: 0.86rem; }
.pop td.nm { font-family: var(--sans); text-align: left; white-space: normal; font-size: 0.92rem; }
.pop td.nm a { font-weight: 600; }
.pop thead th:not(.l) { text-align: right; }
.pop td small { color: var(--muted); font-size: 0.76rem; }
.pop tbody tr:hover td { background: var(--surface-2); }
.pop .hide-n { display: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 40rem) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .shape-svg text { font-size: 0.022px; }
  .perf .at { display: inline; margin-left: 4px; }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pop .hide-n { display: table-cell; }
}
@media (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 2.6rem; }
  .home-search { display: grid; }
  .is-home .hdr-search { display: none; }
  .is-home .basket-link { margin-left: auto; }
  .af-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shape-svg text { font-size: 0.016px; }
}
@media (min-width: 1001px) { .tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Phones and small tablets: logo, basket and Menu on one row, the search box below; the menu opens the nav. */
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .header-row { flex-wrap: wrap; gap: 8px; }
  .site-header nav { display: none; order: 6; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--band-line); padding-top: 4px; }
  .site-header.menu-open nav { display: flex; }
  .site-header nav a { padding: 10px 4px; border-bottom: 1px solid var(--band-line); }
  .site-header nav .theme-toggle { margin: 10px 0 4px; align-self: flex-start; }
  .menu-btn { display: inline-flex; }
  .basket-link { margin-left: auto; }
  .hdr-search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .header-row > .theme-toggle { display: none; }
  h1 { font-size: 1.7rem; }
  .control-label { min-width: 0; flex-basis: 100%; }
}
@media (min-width: 761px) { .site-header nav .theme-toggle { display: none; } }
@media (forced-colors: active) {
  .chart .line { stroke: CanvasText; }
  .callout.caution, .notes li.caution { border: 2px solid CanvasText; }
  .xf-switch input, .nf-switch input, .wt-entry input, .wt-filter input, .cp-show input, .fd-check input, .cad-check input, input.switch { forced-color-adjust: none; border-color: CanvasText; background: linear-gradient(CanvasText, CanvasText) no-repeat 2px 50% / 10px 10px, Canvas; }
  .xf-switch input:checked, .nf-switch input:checked, .wt-entry input:checked, .wt-filter input:checked, .cp-show input:checked, .fd-check input:checked, .cad-check input:checked, input.switch:checked { background: linear-gradient(Highlight, Highlight) no-repeat calc(100% - 2px) 50% / 10px 10px, Canvas; }
}
@media print {
  .site-header nav, .controls, .theme-toggle, .sec-tabs, .hdr-search, .menu-btn { display: none; }
}

/* === Tools === (pages /tools/, /tools/reynolds/, /tools/naca/; page code in tools.js) */
.tool-cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tool-cards li { display: flex; }
.tool-card {
  display: block; flex: 1; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface);
  padding: 14px 16px;
}
.tool-card:hover strong { text-decoration: underline; }
.tool-card .k { display: block; font-size: 0.9rem; color: var(--muted); }
.tool-card strong { display: block; color: var(--accent); font-size: 1.05rem; margin-bottom: 4px; }
.tool-card span { color: var(--ink-2); }
.tool-form { margin: 1rem 0; }
.tool-fields { display: block; padding: 10px 14px 14px; margin: 0 0 1rem; }
.tool-fields > legend { font-weight: 600; color: var(--ink); font-size: 1rem; }
.tool-fields .field { margin: 10px 0 0; min-width: 0; }
.tool-fields .field > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.tool-fields .hint { font-size: 0.84rem; color: var(--muted); margin: 4px 0 0; }
.unit-row { display: flex; gap: 6px; max-width: 22rem; }
.unit-row input[type="number"] { flex: 1 1 auto; width: auto; min-width: 0; }
.unit-row select { flex: 0 0 auto; }
.tool-fields input[type="text"] {
  font-size: 1.05rem; letter-spacing: 0.02em; min-height: 44px; width: 100%; max-width: 16rem;
}
.tool-fields input[aria-invalid="true"] { border-color: var(--caution-line); }
.tool-fields .radios { border: 0; padding: 0; margin: 14px 0 0; display: block; background: none; }
.tool-fields .radios legend { padding: 0; font-family: var(--sans); font-variant-caps: normal; letter-spacing: 0; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 4px; }
.tool-fields .radios label { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 0.92rem; color: var(--ink); }
.tool-fields .radios input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.quick-picks { margin-top: 8px; }
.quick-picks .chip { min-height: 32px; }
.tool-result {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 8px 14px 10px; margin: 0 0 1rem;
}
.result-main { font-size: 1rem; color: var(--ink-2); margin: 0.3rem 0; }
.result-main output { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-note { color: var(--ink-2); font-size: 0.92rem; }
.tool-result .facts { margin-top: 0.5rem; }
.tool-app .error {
  border: 1px solid var(--caution-line); background: var(--caution-bg); color: var(--caution-ink);
  border-left-width: 3px; padding: 6px 12px; margin: 0.5rem 0;
}
.tool-app .error::before { content: "⚠ "; }
.re-list a { font-weight: 600; }
.re-list .small { display: block; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-row .small { overflow-wrap: anywhere; min-width: 0; }
.naca-shape .shape-svg .camber-line { fill: none; stroke: var(--shape-line); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 5 4; opacity: 0.8; }
.naca-shape { margin: 1rem 0; }
.naca-shape > .fs-head-plain::before { content: "Shape, to scale"; }
#naca-out.stale { opacity: 0.4; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.naca-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.db-link { font-weight: 600; }
@media (min-width: 40rem) {
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .tool-form .tool-fields:first-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .tool-form .tool-fields:first-child > legend { grid-column: 1 / -1; }
  #naca-form .tool-fields:first-child { display: block; }
}
/* === End of Tools === */

/* === CAD export === (airfoil page "Download for CAD" section; site/assets/cad.js) */
.cad-box { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
.cad-box > div { padding: 12px 14px; min-width: 0; }
.cad-box > div + div { border-top: 1px solid var(--line); }
.cad-box .k { display: block; font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); margin-bottom: 6px; }
.cad .cad-dat .actions { margin-top: 0.25rem; }
.cad .cad-dat .small { margin: 0.5rem 0 0; }
.cad-form { margin: 0; background: none; border: 0; padding: 0; }
.cad-intro { font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--muted); font-weight: 400; margin: 0 0 6px; }
.cad-grid { display: grid; grid-template-columns: 1fr; gap: 10px 14px; }
.cad-field { min-width: 0; }
.cad-field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 3px; }
.cad-field select { width: 100%; max-width: 100%; }
.cad-pair { display: flex; gap: 6px; }
.cad-pair input { flex: 1 1 auto; min-width: 0; width: auto; }
.cad-pair select { flex: 0 0 auto; width: auto; }
.cad-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.cad-check[hidden] { display: none; }
.cad-radio input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.cad-more { margin: 10px 0 0; }
.cad-more .cad-grid { margin-top: 4px; }
.cad-grid-2 { grid-template-columns: 1fr 1fr; align-items: end; }
.cad-grid-2 input { width: 100%; }
.cad-radio { display: block; margin-top: 10px; background: none; }
.cad-radio label { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.cad-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.cad-formats .button { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7px 6px; line-height: 1.25; font-family: var(--mono); font-size: 0.95rem; }
.cad-formats .button span { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; opacity: 0.88; }
.cad-status { min-height: 1.4em; margin: 8px 0 0; }
.cad-status.cad-error { color: var(--caution-ink); background: var(--caution-bg); border-left: 3px solid var(--caution-line); padding: 4px 8px; }
@media (min-width: 40rem) {
  .cad-grid { grid-template-columns: 1fr 1fr; }
  .cad-formats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 761px) {
  .cad-box { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
  .cad-box > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
/* === end CAD export === */

/* === Compare === (page /compare/ drawn by compare.js; basket store, header counter and airfoil-page
   "Add to basket" button from basket.js; list-page ticks from compare-pick.js) */
/* Airfoil page: Add to basket */
.cmp-entry { margin: 0; }
.basket-entry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.basket-toggle { display: inline-flex; align-items: center; gap: 6px; }
.basket-entry .basket-toggle { background: var(--accent); color: var(--accent-ink); }
.basket-entry .basket-toggle[aria-pressed="true"] { background: transparent; color: var(--accent); }
.basket-open { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border: 1px solid var(--accent); border-radius: 2px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.basket-open:hover { background: var(--fill); }
.basket-msg { margin: 0.4rem 0 0; min-height: 1.4em; }
/* Compare page: the basket list */
.cmp-app { min-height: 200px; }
.cmp-app h2 { margin-top: 1.5rem; }
.cmp-pick h2 { margin-top: 1rem; }
.cmp-offer { margin: 0.5rem 0 1rem; }
.cmp-offer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 0.4rem; }
.cmp-empty { color: var(--ink-2); }
.cmp-basket {
  list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.cmp-item {
  display: flex; align-items: center; gap: 2px; min-width: 0; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); padding: 0 2px 0 0;
}
.cmp-item.is-hidden { background: transparent; border-style: dashed; }
.cmp-item.is-hidden .cmp-key, .cmp-item.is-hidden .cmp-item-name { opacity: 0.55; }
.cmp-show { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 10px; cursor: pointer; flex: 0 0 auto; }
.cmp-show input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cmp-item-name { flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; padding: 6px 0; }
.cmp-item-name:hover { text-decoration: underline; }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 0.75rem; }
.cmp-actions[hidden] { display: none; }
.cmp-count { margin: 0; }
.cmp-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-action-buttons .button { padding: 5px 12px; min-height: 36px; font-size: 0.86rem; }
.cmp-action-buttons .button[hidden] { display: none; }
.cmp-copy-msg { flex: 1 0 100%; min-width: 0; }
.cmp-copy-url { width: 100%; font: inherit; font-family: var(--mono); font-size: 0.82rem; padding: 6px 8px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); }
.cmp-status-row { display: flex; align-items: center; gap: 8px; min-height: 1.6em; }
.cmp-undo { font: inherit; font-size: 0.86rem; color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 2px 10px; min-height: 32px; cursor: pointer; }
.cmp-undo[hidden] { display: none; }
/* View tabs */
.cmp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0.5rem 0 0.75rem; border: 1px solid var(--line); background: var(--surface); }
.cmp-tabs [role="tab"] {
  font: inherit; font-size: 0.88rem; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 42px; padding: 6px 8px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent;
}
.cmp-tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); background: var(--bg); }
.cmp-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.cmp-panel-h { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.cmp-shape-h { margin: 1.25rem 0 0; }
.cmp-param select { max-width: 100%; }
.cmp-param { min-width: 0; max-width: 100%; }
/* Bar chart (one parameter across airfoils) */
.cmp-bars-svg { display: block; width: 100%; }
.chart .cmp-barrect { stroke: none; }
.chart .cmp-bar-dash { fill: none; stroke-width: 2; }
.chart .cmp-hatch-line { stroke: var(--surface); stroke-width: 2.4; }
.chart .cmp-bar-name { fill: var(--ink); font-size: 13px; font-weight: 600; }
.chart .cmp-bar-value { fill: var(--ink); font-size: 12.5px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart .cmp-bar-value.is-missing { fill: var(--muted); font-style: italic; }
.chart .cmp-bar-label { fill: var(--ink-2); font-size: 12px; }
.chart .cmp-bar-label.is-warn { fill: var(--caution-ink); font-weight: 600; }
/* Parameter vs Reynolds number */
.chart .cmp-pt { stroke: var(--surface); stroke-width: 1.5; }
.chart .cmp-pt.is-warn { fill: var(--surface); stroke: currentColor; stroke-width: 2.2; }
.cmp-vs-numbers { margin-top: 0.75rem; }
.cmp-vs-table th, .cmp-vs-table td { white-space: nowrap; }
.cmp-vs-table td { font-family: var(--mono); font-size: 0.86rem; }
.cmp-rel-warn { color: var(--caution-ink); background: var(--caution-bg); font-weight: 600; }
.cmp-remove {
  font: inherit; font-size: 1.2rem; line-height: 1; color: var(--muted); background: transparent; cursor: pointer;
  border: 0; border-radius: 2px; width: 36px; height: 36px; flex: 0 0 auto;
}
.cmp-remove:hover { background: var(--surface-2); color: var(--ink); }
.cmp-search { position: relative; max-width: 32rem; }
.cmp-search label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.cmp-opts {
  position: absolute; left: 0; right: 0; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px 0;
  background: var(--surface); border: 1px solid var(--axis); max-height: 20rem; overflow-y: auto;
  box-shadow: 0 2px 0 var(--line);
}
.cmp-opt { padding: 8px 12px; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; min-height: 44px; align-items: center; }
.cmp-opt .cmp-opt-name { overflow-wrap: anywhere; min-width: 0; }
.cmp-opt:hover, .cmp-opt[aria-selected="true"] { background: var(--surface-2); }
.cmp-opt[aria-selected="true"] { outline: 2px solid var(--focus); outline-offset: -2px; }
.cmp-hint { margin: 4px 0 0; }
.cmp-status { min-height: 1.4em; margin: 4px 0; }
.cmp-notice { margin: 0.5rem 0; }
.cmp-loading .cmp-result { opacity: 0.5; }
.cmp-re { gap: 4px; }
.cmp-part { font-size: 0.7rem; font-weight: 400; color: var(--muted); }
.cmp-re-note { margin: -0.5rem 0 0.5rem; }
.cmp-missing p { margin: 0.4rem 0; }
.cmp-key { display: inline-block; vertical-align: middle; flex: 0 0 auto; overflow: visible; }
.cmp-key .line { fill: none; stroke-width: 3; stroke-linecap: butt; }
.cmp-legend { list-style: none; padding: 0 4px; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.82rem; color: var(--ink-2); }
.cmp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cmp-shape-box svg { display: block; width: 100%; height: auto; }
.cmp-shape-svg .cmp-outline { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.cmp-shape-svg .chord { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 4; }
.cmp-shape-svg .tick { stroke: var(--axis); stroke-width: 1; }
.cmp-shape-svg text { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.cmp-table { font-size: 0.88rem; background: var(--surface); }
.cmp-table caption { caption-side: bottom; }
.cmp-table thead th { vertical-align: bottom; min-width: 7.5rem; font-family: var(--sans); font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.cmp-table thead th a { color: var(--ink); overflow-wrap: anywhere; }
.cmp-table thead th .cmp-key { display: block; margin-bottom: 4px; }
.cmp-table td { min-width: 7.5rem; }
.cmp-table tbody th { font-weight: 600; color: var(--ink-2); min-width: 7rem; }
.cmp-table tbody th, .cmp-table .cmp-corner { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp-qual { list-style: none; padding: 0; margin: 0; }
.cmp-qual li { margin: 0 0 4px; }
.cmp-qual li.caution { color: var(--caution-ink); background: var(--caution-bg); border-left: 3px solid var(--caution-line); padding: 1px 6px; }
.cmp-qual li.caution::before { content: "⚠ "; }
.cmp-ok { color: var(--muted); }
.tip .cmp-key { width: 22px; }
.cmp-share { margin-top: 1rem; }
.cmp-examples { padding-left: 1.2rem; }
.cmp-examples li { margin: 4px 0; }
/* List page: tick boxes and the bar that links to the compare page */
.cmp-pick-intro { margin: 0.25rem 0; }
.cmp-tick { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 32px; margin: -6px 2px -6px -6px; vertical-align: middle; cursor: pointer; }
.cmp-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cmp-tick input:disabled { cursor: not-allowed; }
.cmp-bar {
  position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 12px; margin: 0.75rem 0 0; padding: 10px 12px; background: var(--band); color: var(--on-band);
  border: 1px solid var(--band-line);
}
.cmp-bar .button.secondary { color: var(--on-band); border-color: var(--band-muted); }
.cmp-bar .button.secondary:hover { background: transparent; border-color: var(--on-band); }
.cmp-bar[hidden] { display: none; }
.cmp-bar-text { margin: 0; min-width: 0; overflow-wrap: anywhere; flex: 1 1 14rem; }
.cmp-bar-buttons { display: flex; gap: 8px; }
/* Wind-tunnel measurements on the compare page: the switch, the credit, markers in each airfoil's colour */
.cmp-wt { margin: 0 0 0.75rem; }
.cmp-wt[hidden], .cmp-wt-bar[hidden], .cmp-wt-credit[hidden], .cmp-wt-only[hidden] { display: none; }
.cmp-wt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.cmp-wt-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 600; color: var(--ink); }
.cmp-wt-switch input { position: absolute; left: 0; top: 50%; width: 30px; height: 18px; margin: -9px 0 0; opacity: 0; cursor: pointer; z-index: 1; }
.cmp-wt-track { position: relative; flex: 0 0 auto; width: 30px; height: 16px; border-radius: 2px; background: none; border: 1px solid var(--muted); }
.cmp-wt-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--muted); transition: left 0.15s; }
.cmp-wt-switch input:checked + .cmp-wt-track { background: var(--fill); border-color: var(--accent); }
.cmp-wt-switch input:checked + .cmp-wt-track::after { left: 16px; background: var(--accent); }
.cmp-wt-switch input:focus-visible + .cmp-wt-track { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cmp-wt-track::after { transition: none; } }
.cmp-wt-count { color: var(--ink-2); }
.cmp-wt-credit { margin: 0.25rem 0 0.5rem; }
.cmp-wt-credit p { margin: 0.4rem 0; }
.cmp-wt-only { margin: 0 0 0.5rem; color: var(--ink-2); }
/* Hollow markers: stroke in the airfoil's colour (the .s1-.s8 class), filled with the chart background so
   the line passes under them and they never read as part of it. */
path.cmp-wt-mk { fill: var(--surface); fill-opacity: 0.85; stroke-width: 1.6; stroke-linejoin: round; }
.chart path.cmp-wt-mk { vector-effect: non-scaling-stroke; }
.chart path.cmp-wt-hl { fill: none; stroke-width: 2.6; }
path.cmp-wt-mk.cmp-wt-neutral, .cmp-wt-neutral { stroke: var(--ink-2); }
.chart .cmp-wt-label { fill: var(--ink-2); font-size: 10.5px; }
.cmp-wt-key { display: inline-block; vertical-align: middle; flex: 0 0 auto; overflow: visible; }
.cmp-legend-key { color: var(--ink-2); }
.cmp-legend-key .cmp-wt-key { margin-left: 6px; }
/* Readout: never wider than the screen (a long airfoil name once made it 390 px wide on a 360 px phone) */
.cmp-app .tip { max-width: calc(100vw - 32px); }
.cmp-app .tip .row { white-space: normal; }
.cmp-app .tip .row span.name { min-width: 0; overflow-wrap: anywhere; }
.tip .cmp-wt-row { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; align-items: center; white-space: normal; max-width: 17rem; margin-top: 2px; }
.tip .cmp-wt-row .name { grid-column: 2; font-size: 0.75rem; line-height: 1.3; }
.cmp-table tr.cmp-wt-tr th[scope="row"] { border-left: 3px solid var(--wt-ink, var(--ink-2)); }
@media (forced-colors: active) {
  .cmp-wt-track { border: 1px solid CanvasText; }
  .cmp-wt-switch input:checked + .cmp-wt-track { background: Highlight; }
  path.cmp-wt-mk { stroke: CanvasText; fill: Canvas; }
}
@media (min-width: 40rem) {
  .cmp-tabs { grid-template-columns: repeat(4, 1fr); }
  .cmp-tabs [role="tab"] { border-bottom: 0; }
}
@media (forced-colors: active) {
  .cmp-key .line, .cmp-shape-svg .cmp-outline { stroke: CanvasText; }
  .chart .cmp-barrect { fill: CanvasText; }
  .cmp-tabs [role="tab"][aria-selected="true"] { border: 2px solid CanvasText; }
}
@media print {
  .cmp-search, .cmp-share, .cmp-bar, .cmp-remove, .cmp-entry, .cmp-tabs, .cmp-action-buttons, .cmp-offer-buttons { display: none; }
}
/* === End of Compare === */

/* === Finder === (page /finder/; page code in finder.js) */
.fd-app[hidden], .fd-app [hidden] { display: none !important; }
.fd-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
.fd-form { margin: 0.5rem 0 0; min-width: 0; }
.fd-form .tool-fields:first-child { display: block; }
.fd-form fieldset { min-width: 0; }
.fd-form select { max-width: 100%; }
.fd-group-h { font-family: var(--mono); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 1.2rem 0 0.6rem; }
.fd-form > .fd-group-h:first-child { margin-top: 0.25rem; }
#fd-p { width: 100%; }
.fd-jump { margin: -0.5rem 0 1rem; font-size: 0.92rem; }
.fd-form .tool-fields .radios label { align-items: flex-start; }
.fd-form .tool-fields .radios input { margin-top: 3px; flex: 0 0 auto; }
.fd-form .fd-ncrit { margin-top: 14px; }
.fd-form input[type="number"]:not(.unit-row input) { width: 100%; max-width: 14rem; }
.fd-re-out, .fd-cl-out { color: var(--ink-2); font-size: 0.92rem; margin: 8px 0 0; min-height: 1.2em; font-family: var(--mono); }
.fd-re-out:empty, .fd-cl-out:empty { min-height: 0; margin: 0; }
.fd-crits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; }
.fd-crit { padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fd-crit > label { display: block; font-weight: 600; font-size: 0.92rem; }
.fd-crit-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fd-crit-ctl select { min-width: 8.5em; }
.fd-crit .hint { margin: 4px 0 0; }
.fd-limits { margin: 0 0 1rem; border: 1px solid var(--line); background: var(--surface); padding: 2px 14px 6px; }
.fd-limits summary { font-weight: 600; }
.fd-limits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fd-limits-grid input[type="number"] { width: 6.5em; }
.fd-check { min-height: 34px; display: flex; align-items: center; gap: 8px; }
.fd-results { min-width: 0; }
.fd-results h2 { margin-top: 1rem; }
.fd-preset-note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); padding: 2px 12px; margin: 0.5rem 0; }
.fd-limits-note { color: var(--caution-ink); background: var(--caution-bg); border-left: 3px solid var(--caution-line); margin: 6px -12px; padding: 6px 12px 6px 8px; }
.fd-status { color: var(--ink-2); }
.fd-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 8px; }
.fd-list.fd-stale { opacity: 0.45; }
.fd-item { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px 4px; margin: 0; }
.fd-top { display: flex; align-items: flex-start; gap: 10px; }
.fd-rank { flex: 0 0 auto; min-width: 1.8em; font-family: var(--mono); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fd-title { flex: 1 1 auto; min-width: 0; }
.fd-name { font-weight: 600; overflow-wrap: anywhere; }
.fd-geo { display: block; font-size: 0.84rem; color: var(--muted); }
.fd-score { flex: 0 0 auto; font-family: var(--mono); font-weight: 600; font-size: 1.2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fd-score-unit { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.fd-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0; }
.fd-sketch { display: block; width: 120px; height: 37px; flex: 0 0 auto; }
.fd-sketch path { fill: var(--shape-fill); stroke: var(--shape-line); stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fd-badge { font-family: var(--mono); font-size: 0.72rem; border: 1px solid var(--line); padding: 1px 7px; color: var(--ink-2); white-space: nowrap; }
.fd-badge.fd-doubt { border-color: var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); }
.fd-badge.fd-unreliable { border: 2px solid var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); font-weight: 600; }
.fd-badge.fd-unreliable::before { content: "⚠ "; }
.fd-badge.fd-nf { border-style: dashed; color: var(--ink); }
.fd-nums { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 4px 0; }
.fd-nums div { display: flex; gap: 6px; align-items: baseline; }
.fd-nums dt { color: var(--muted); font-size: 0.84rem; }
.fd-nums dd { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.fd-why { font-size: 0.9rem; margin: 6px 0; }
.fd-watch { list-style: none; padding: 0; margin: 4px 0; font-size: 0.86rem; color: var(--caution-ink); }
.fd-watch li { padding: 1px 0; }
.fd-watch li::before { content: "⚠ "; }
.fd-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.fd-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.fd-unranked li { margin: 4px 0; font-size: 0.9rem; color: var(--ink-2); }
.fd-compare {
  position: sticky; bottom: 8px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--band); color: var(--on-band); border: 1px solid var(--band-line); padding: 8px 12px; margin: 10px 0;
}
.fd-compare span { flex: 1 1 12em; color: var(--on-band); }
.fd-compare a[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.fd-how { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.fd-how summary { font-weight: 600; font-size: 1.05rem; }
.fd-how li { margin: 6px 0; }
@media (min-width: 40rem) {
  .fd-crits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .fd-app { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; }
  .fd-crits, .fd-limits-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-jump { display: none; }
}
@media (forced-colors: active) {
  .fd-badge, .fd-item { border: 1px solid CanvasText; }
}
/* === End of Finder === */

/* === Quality === (data-quality labels: airfoil-page performance table and charts, finder badges;
   build_site.py q_tag()/quality_notes(), airfoil.js, finder.js; texts in docs/quality-fields.md) */
.q-tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; line-height: 1.4; border: 1px solid var(--line); padding: 0 5px; margin: 1px 0 1px 6px; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; font-weight: 400; vertical-align: 1px; }
.q-tag.q-doubt { border-color: var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); }
.q-tag.q-bad, .q-tag.q-susp { border: 2px solid var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); font-weight: 600; }
.q-tag.q-susp::before { content: "⚠ "; }
table.perf tr.q-row-susp th, table.perf tr.q-row-susp td { background: var(--caution-bg); }
table.perf tr.q-current th, table.perf tr.q-current td { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.q-legend { margin: 0.5rem 0 1rem; }
.q-list, .q-work { margin: 0.25rem 0; padding-left: 1.2rem; }
.q-list li { margin: 0.3rem 0; font-size: 0.88rem; }
.q-list .q-tag { margin-left: 0; }
.q-why { display: block; color: var(--ink-2); font-size: 0.84rem; overflow-wrap: anywhere; }
.chip .q-mark { display: inline-block; margin-left: 2px; min-width: 1.1em; padding: 0 3px; font-size: 0.7rem; font-weight: 700; line-height: 1.3; text-align: center; border: 1px solid var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); }
.chip.q-chip-bad .q-mark { border-width: 2px; }
.q-chart-warn .callout ul { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; }
.chart-notes li strong { font-weight: 600; color: var(--ink-2); }
.fd-badge.fd-susp { border: 2px solid var(--caution-line); color: var(--caution-ink); background: var(--caution-bg); font-weight: 600; }
.fd-badge.fd-susp::before { content: "⚠ "; }
.fd-badge.fd-build { border-style: dashed; }
.fd-build-more .fd-check { margin-top: 0.5rem; }
.perf-follows .perf-block > summary { display: none; }
.perf-block[hidden] { display: none; }
@media (forced-colors: active) {
  .q-tag, .chip .q-mark, .fd-badge.fd-susp { border: 1px solid CanvasText; }
  table.perf tr.q-current th { outline: 2px solid Highlight; }
}
/* === End of Quality === */

/* === Wind tunnel === (UIUC LSAT measurements: airfoil-page picker and markers drawn by airfoil.js + wt.js,
   the credit box and tests list from build_site.py wt_section(), the list-page tag and the /wind-tunnel-data/ page) */
:root { --wt-ink: #1a1e1c; --wt-fill: #fcfcfa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wt-ink: #e2e7e3; --wt-fill: #181d1a; } }
:root[data-theme="dark"] { --wt-ink: #e2e7e3; --wt-fill: #181d1a; }
.wt-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); min-width: 0; }
.wt-panel > * { min-width: 0; }
.controls + .wt-panel { margin: -12px 0 12px; border: 1px solid var(--line); border-top: 0; background: var(--surface); padding: 2px 12px 10px; }
.wt-head { margin: 0; color: var(--muted); padding-top: 5px; }
.wt-head strong { color: var(--muted); font-weight: 400; }
.wt-panel .wt-groups { margin: 0; flex: 1 1 18rem; }
.wt-entries, .wt-pair, .wt-legend { flex: 1 0 100%; }
.wt-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--surface); font-weight: 600; }
.wt-list-tests { list-style: none; padding: 0; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.wt-list-tests li { margin: 0; min-width: 0; }
.wt-entry { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; padding: 3px 0; cursor: pointer; }
.wt-entry input { margin-top: 2px; }
.wt-entry .wt-key { margin-top: 1px; }
.wt-entry-text { min-width: 0; overflow-wrap: anywhere; }
.wt-entry-name { display: block; font-size: 0.88rem; }
.wt-entry-runs { display: block; font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }
.wt-more { margin: 4px 0; }
.wt-more summary { font-size: 0.86rem; }
.wt-pair { margin: 4px 0 0; color: var(--ink-2); }
.wt-legend { margin: 4px 0 0; }
.wt-legend .wt-key { vertical-align: -3px; }
.wt-line-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--r3); vertical-align: 3px; }
.wt-key { display: inline-block; flex: 0 0 auto; overflow: visible; }
.wt-mk { fill: var(--wt-fill); fill-opacity: 0.6; stroke: var(--wt-ink); stroke-width: 1.2; stroke-linejoin: round; }
.chart .wt-mk { vector-effect: non-scaling-stroke; }
.chart .wt-hl { fill: none; stroke-width: 2.4; }
.chart .wt-label { fill: var(--ink-2); }
.tip .wt-row { white-space: normal; flex-wrap: wrap; max-width: 17rem; align-items: center; }
.tip .wt-row .name { font-size: 0.74rem; }
.wt-credit { border-left-color: var(--accent); }
.wt-credit .wt-cites { margin: 0.25rem 0 0.4rem; padding-left: 1.2rem; }
.wt-tests ul { padding-left: 1.2rem; }
.wt-tests li { margin: 4px 0; overflow-wrap: anywhere; }
.wt-vs th .at { display: block; font-weight: 400; }
.tag.wt-tag { border-color: currentColor; color: var(--accent); background: none; }
.wt-filter { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; }
.wt-list { columns: 2 12rem; padding-left: 1.2rem; }
.wt-list li { break-inside: avoid; margin: 2px 0; }
.wt-quote { margin: 0.5rem 0; padding: 6px 14px; border-left: 3px solid var(--axis); background: var(--surface); }
.wt-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.8rem; line-height: 1.45; background: var(--surface);
  border: 1px solid var(--line); padding: 10px 12px; max-height: 32rem; overflow-y: auto; }
@media (forced-colors: active) {
  .wt-mk { stroke: CanvasText; fill: Canvas; }
  .wt-chip[aria-pressed="true"] { border: 2px solid Highlight; }
}
/* === End of Wind tunnel === */
.wt-vs th[scope=row] { min-width: 7rem; }
.wt-vs .at { white-space: normal; }
.wt-vs td .at { display: block; }
.wt-vs td { text-align: right; }
.wt-vs thead th:not(:first-child) { text-align: right; }

/* NeuralFoil estimates (airfoil.js): dashed lines in the Reynolds number's colour, a dashed key in chips,
   readout rows and the switch, so the method shows without relying on colour. */
.chart .line.nf { stroke-dasharray: 6 4; stroke-linecap: butt; stroke-width: 1.5; }
.key.nf-key { border-top-style: dashed; width: 16px; }
.nf-switch .key.nf-key { color: var(--ink-2); }
.nf-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font-size: 0.88rem; margin-right: 16px; }
.nf-help { display: inline-block; font-size: 0.82rem; }
.chip.nf-only { font-style: italic; }
@media (forced-colors: active) { .chart .line.nf { stroke-dasharray: 6 4; } }

/* "Show XFOIL lines" switch (airfoil.js, beside the NeuralFoil one; compare.js above the polar charts). */
.xf-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font-size: 0.88rem; margin-right: 16px; }
.xf-switch .key { color: var(--ink-2); }
.method-control .switches { display: flex; flex-wrap: wrap; align-items: center; }
.cmp-xf { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 0 0.25rem; }
.cmp-xf[hidden] { display: none; }
.cmp-xf-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 600; color: var(--ink); }
.cmp-xf-switch input { position: absolute; left: 0; top: 50%; width: 30px; height: 18px; margin: -9px 0 0; opacity: 0; cursor: pointer; z-index: 1; }
.cmp-xf-switch input:checked + .cmp-wt-track { background: var(--fill); border-color: var(--accent); }
.cmp-xf-switch input:checked + .cmp-wt-track::after { left: 16px; background: var(--accent); }
.cmp-xf-switch input:focus-visible + .cmp-wt-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.cmp-xf-note { color: var(--ink-2); }
@media (forced-colors: active) { .cmp-xf-switch input:checked + .cmp-wt-track { background: Highlight; } }

/* Full-screen button and full-screen charts (fullscreen.js). The button sits in the figure's top row, beside
   the title, so it never covers the drawing or the method labels inside it. */
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fs-head > h3 { flex: 1 1 auto; min-width: 0; margin: 0; }
.fs-head-plain { justify-content: flex-end; }
.fs-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; min-height: 36px; padding: 0 8px; font: inherit; font-size: 0.8rem; line-height: 1;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.fs-btn:hover { color: var(--ink); border-color: var(--axis); }
.fs-icon {
  display: block; flex: 0 0 auto; width: 13px; height: 13px; color: inherit;
  background:
    linear-gradient(currentColor, currentColor) left top / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1.5px 5px no-repeat;
}
.fs-x { font-size: 1rem; line-height: 1; }
@media (forced-colors: active) { .fs-icon { forced-color-adjust: none; color: ButtonText; } }
.fs-open {
  display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0;
  padding: 10px 12px; background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.fs-fallback { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; height: 100%; }
html.fs-lock, html.fs-lock body { overflow: hidden; }
.fs-open > * { flex: 0 0 auto; }
.fs-open .fs-btn { color: var(--ink); border-color: var(--axis); }
.fs-open.chart > .fs-head { margin: 0 0 6px; }
.fs-open > .chart-box, .fs-open > .shape-svg, .fs-open > .naca-svg, .fs-open > .cmp-shape-box { flex: 1 1 0; min-height: 0; }
.fs-open .shape-svg { height: 100%; max-height: none; }
.fs-open::backdrop { background: var(--surface); }
@media (orientation: portrait) and (max-width: 40rem) {
  .fs-open.chart::after { content: "Tip: turn your phone sideways for a wider chart."; display: block; padding: 8px 4px 0; font-size: 0.86rem; color: var(--muted); }
}
@media print { .fs-btn { display: none; } }
/* Compare page: a NeuralFoil estimate where XFOIL found nothing keeps its airfoil's colour and line style
   (they identify the airfoil there), drawn thinner; the legend, labels and readout say "NeuralFoil". */
.chart .line.cmp-nf { stroke-width: 1.1; opacity: 0.85; }
/* "Compute at your own conditions" (compute.js): the visitor's own results are drawn in the text colour, apart from
   every coloured stored line and the hollow wind-tunnel markers: XFOIL thick, NeuralFoil thin, each result with its
   own line pattern (set as a stroke-dasharray attribute, so no CSS here may set stroke-dasharray on .line.user). */
.compute-panel { background: var(--surface); border: 1px dashed var(--accent); padding: 4px 14px 10px; margin: 0 0 12px; }
.compute-panel h3 { margin: 0.5rem 0 0.25rem; font-size: 1rem; }
.compute-panel h4 { margin: 0.5rem 0 0.25rem; font-size: 0.95rem; }
.cp-intro { font-size: 0.86rem; color: var(--muted); margin: 0.25rem 0 0.5rem; }
.cp-only { margin: 0.25rem 0 0.5rem; }
.cp-phone { font-size: 0.88rem; margin: 0.5rem 0; }
.cp-phone[hidden], .cp-progress[hidden], .cp-result[hidden], .cp-cancel[hidden] { display: none; }
.cp-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; }
.cp-field { display: flex; flex-direction: column; min-width: 0; flex: 1 1 9rem; max-width: 16rem; }
.cp-field-nc { flex: 0 1 6.5rem; }
.cp-field label { font-size: 0.8rem; color: var(--muted); margin-bottom: 3px; }
.cp-field input {
  font: inherit; font-family: var(--mono); font-size: 0.92rem; color: var(--ink); background: var(--bg); border: 1px solid var(--axis);
  border-radius: 2px; padding: 6px 9px; min-height: 40px; width: 100%; box-sizing: border-box;
}
.cp-field .small { margin-top: 3px; }
.cp-buttons { display: flex; gap: 8px; align-items: flex-end; padding-top: 1.35rem; }
@media (max-width: 40rem) { .cp-buttons { padding-top: 0; } }
.cp-go[disabled] { opacity: 0.55; cursor: progress; }
.cp-msg { min-height: 1.2em; margin: 0.5rem 0 0.25rem; font-size: 0.9rem; }
.cp-progress { font-size: 0.88rem; color: var(--ink-2); margin: 0.25rem 0; }
.cp-prog-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 3px 0; }
.cp-prog-name { font-weight: 600; color: var(--ink); min-width: 5.5rem; }
.cp-progress progress { width: 12rem; max-width: 100%; height: 0.8rem; accent-color: var(--accent); }
.cp-prog-text { font-family: var(--mono); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.cp-lines { padding-left: 0; list-style: none; margin: 0.25rem 0; }
.cp-lines li { margin: 0.35rem 0; font-size: 0.92rem; }
.cp-susp { margin: 0.4rem 0; }
.cp-susp p { margin: 0.25rem 0; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 0.25rem; }
.cp-keep { color: var(--muted); margin: 0.25rem 0; }
.line.user { stroke: var(--ink); stroke-width: 2.75; fill: none; stroke-linecap: butt; }
.line.user.user-nf { stroke-width: 1.4; opacity: 0.9; }
.chart .user-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 1; }
.chart .method-label.user-label { fill: var(--ink); font-weight: 600; }
.chart .line.user-label-key { stroke-width: 2.25; }
.user-key { vertical-align: middle; margin-right: 4px; flex: 0 0 auto; }
.cp-results h4 { margin: 0.75rem 0 0.25rem; }
.cp-items { list-style: none; padding: 0; margin: 0.25rem 0; }
.cp-item { border: 1px solid var(--line); padding: 6px 10px 8px; margin: 0.5rem 0; background: var(--bg); }
.cp-item.is-hidden { opacity: 0.7; }
.cp-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cp-show { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.cp-swatch line { stroke: var(--ink); stroke-width: 2.75; }
.cp-name {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--axis);
  border-radius: 2px; padding: 6px 8px; min-height: 38px; flex: 1 1 10rem; min-width: 0; max-width: 20rem; box-sizing: border-box;
}
.cp-cond { color: var(--ink-2); font-family: var(--mono); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.cp-item .cp-lines { margin: 0.25rem 0 0; }
.cp-item .cp-actions .button { min-height: 36px; padding: 5px 12px; }
.cp-msg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cp-undo[hidden] { display: none; }
@media (forced-colors: active) {
  .line.user { stroke: CanvasText; stroke-width: 3.5; }
  .line.user.user-nf { stroke-width: 1.6; }
  .cp-swatch line { stroke: CanvasText; }
}
/* "Image" download button beside every full-screen button (chart-export.js). */
.cx-wrap { position: relative; flex: 0 0 auto; }
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 36px; min-height: 36px; padding: 0 8px; font: inherit; font-size: 0.8rem; line-height: 1;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.cx-btn:hover, .cx-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--axis); }
.cx-icon { font-size: 0.95rem; font-weight: 700; }
.cx-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 13rem;
  background: var(--surface); border: 1px solid var(--axis); padding: 4px; box-shadow: 0 2px 0 var(--line);
}
.cx-menu[hidden] { display: none; }
.cx-menu button {
  font: inherit; font-size: 0.88rem; text-align: left; color: var(--ink); background: transparent; border: 0;
  border-radius: 2px; padding: 8px 10px; min-height: 38px; cursor: pointer;
}
.cx-menu button:hover, .cx-menu button:focus-visible { background: var(--surface-2); }
@media (max-width: 26rem) { .cx-text { display: none; } }
@media print { .cx-wrap { display: none; } }

/* === Folded explanations === (owner, 2026-11-24: explanatory text matters to first-time visitors, not to people who
   come back again and again, so it is folded away by default). details.explain wraps a paragraph or list;
   details.explain-sec wraps a whole explanatory section under its heading. Warnings, data-quality labels, credits
   and licence texts are never folded. Forms with many hints get a "Show help under each setting" switch (site.js). */
details.explain { margin: 6px 0; }
details.explain > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 2px 0;
  font-size: 0.86rem; color: var(--accent); cursor: pointer; }
details.explain > summary::-webkit-details-marker { display: none; }
details.explain > summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto;
  border: 1px solid currentColor; font-family: var(--mono); font-size: 0.8rem; line-height: 1; }
details.explain[open] > summary::before { content: "−"; }
details.explain > summary:hover { text-decoration: underline; }
.explain-body { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin: 2px 0 6px 7px; }
.explain-body > :first-child { margin-top: 0; }
.explain-body > :last-child { margin-bottom: 0; }
.explain-body .q-legend { margin: 0; }
.chart-notes > ul + details.explain { margin-top: 2px; }
details.explain-sec > summary { list-style: none; cursor: pointer; color: inherit; padding: 0; }
details.explain-sec > summary::-webkit-details-marker { display: none; }
details.explain-sec > summary h2::after { content: "+ Show"; margin-left: auto; font-family: var(--sans); font-variant-caps: normal; letter-spacing: 0;
  font-weight: 400; font-size: 0.85rem; color: var(--accent); }
details.explain-sec[open] > summary h2::after { content: "− Hide"; }
details.explain-sec > summary:hover h2::after { text-decoration: underline; }
.help-toggle { margin: 0 0 10px; }
html:not(.show-help) .tool-form .hint:not(.hint-keep), html:not(.show-help) .fd-crit .hint { display: none; }
@media print { details.explain > .explain-body, details.explain-sec > * { display: block; } }
/* === End of folded explanations === */
