/* VOICE   a workshop drawing set you can turn in your hands: exact, plain, friendly to a builder
   IDEA    every part, sensor and step carries the same balloon code (A, B1, F1, T5 ...) as the drawings
   PICTURE the live 3D unit, lit by the Basra sun, with a title block of key figures under it
   COLOUR  white paper, galvanized grey rules, sprayed-foam yellow as the one accent, brine blue for water
   TYPE    Barlow Semi Condensed for titles and balloons (DIN-like drawing lettering), Barlow for text  */
:root {
  color-scheme: light dark;
  --paper: light-dark(#ffffff, #10151a);
  --sheet: light-dark(#f2f4f5, #161d24);
  --ink: light-dark(#181c21, #e7ecf0);
  --muted: light-dark(#59626b, #9aa6b1);
  --rule: light-dark(#d5dade, #2a333c);
  --zinc: light-dark(#bfc6cc, #3b4650);
  --foam: #f2bd1d;
  --foam-deep: light-dark(#a87b00, #f2bd1d);
  --foam-ink: #2b2100;
  --brine: light-dark(#1b6fd1, #4f97ea);
  --hot: light-dark(#d4411e, #e8603b);
  --air: light-dark(#8a5cd6, #a283e6);
  --card: light-dark(#ffffff, #141b22);
  --shadow: light-dark(0 1px 2px rgba(20, 30, 40, .08), 0 1px 2px rgba(0, 0, 0, .4));
  --r: 10px;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme=light] { color-scheme: light }
:root[data-theme=dark] { color-scheme: dark }
* { box-sizing: border-box; min-width: 0 }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.58 var(--text); overflow-x: clip }
img { max-width: 100%; display: block }
a { color: inherit; text-decoration-color: var(--foam-deep); text-underline-offset: 3px }
a:hover { text-decoration-thickness: 2px }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; margin: 0 }
h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.01em }
h3 { font-size: 24px; font-weight: 600 }
p { margin: 0 0 .9em }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(5vw, 18px) }
.band { padding: clamp(48px, 7vw, 96px) 0 }
.band.alt { background: var(--sheet) }
.lead { font-size: 19px; color: var(--muted); max-width: 64ch }
.small { font-size: 14px; color: var(--muted) }
.num { font-variant-numeric: tabular-nums; white-space: nowrap }
:focus-visible { outline: 3px solid var(--foam); outline-offset: 2px; border-radius: 4px }
button, select, input { font: inherit; color: inherit }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important } }

/* balloons: the drawing convention for item numbers */
.bl { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border: 1.5px solid var(--ink);
  border-radius: 999px; font: 600 14px/1 var(--display); background: var(--paper); color: var(--ink); white-space: nowrap; flex: none }
.bl.s { background: var(--foam); color: var(--foam-ink); border-color: var(--foam-ink) }
.bl.big { min-width: 44px; height: 44px; font-size: 20px }

/* buttons and controls */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--ink);
  background: transparent; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap }
.btn.primary { background: var(--foam); border-color: var(--foam); color: var(--foam-ink) }
.btn:hover { background: var(--sheet) }
.btn.primary:hover { background: #ffcd3a }
.chip { min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); cursor: pointer;
  font-size: 15px; font-weight: 500; white-space: nowrap }
.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink) }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--zinc); position: relative; cursor: pointer; flex: none; margin: 0 }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s }
.toggle input:checked { background: var(--ink) }
.toggle input:checked::after { left: 19px; background: var(--foam) }
input[type=range] { width: 100%; accent-color: var(--foam-deep); height: 32px; margin: 0 }
label.lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 10px }
label.lbl b { color: var(--ink); font-weight: 600 }
table { border-collapse: collapse; width: 100%; font-size: 15px }
th { text-align: left; font: 600 14px/1.3 var(--display); color: var(--muted); border-bottom: 1.5px solid var(--ink); padding: 8px 10px }
td { border-bottom: 1px solid var(--rule); padding: 9px 10px; vertical-align: top }
td.r, th.r { text-align: right }
.scroll { overflow-x: auto }
@media (max-width: 600px) {
  table { font-size: 14px }
  .stack thead { display: none }
  .stack tr { display: grid; padding-block: 10px; border-bottom: 1px solid var(--rule) }
  .stack td { display: flow-root; border: 0; padding: 3px 0; padding-inline-start: 8em; text-align: start }
  .stack td::before { content: attr(data-h); float: inline-start; width: 7.5em; margin-inline-start: -8em; white-space: normal; color: var(--muted); font-size: 13px }
  .stack td:empty { display: none }
}
