/* The lessons (2026-11-03). Loaded after ../style.css, whose colours,
   fonts, bar and buttons they share. Owner: "make it useful for the
   beginners and make a series of simple lessons". A lesson is for
   READING, so it has no 3D sea behind it: a still dark ground, text set
   at a reading width, drawings and demos wider.

   The site's rules hold here too: no inline style or script anywhere
   (the drawings are inline SVG styled from this file, by class); no
   yellow but the floats in a drawing; red only for what is wrong - in
   the quiz, a wrong answer. */

html.learn { background: radial-gradient(1200px 640px at 88% -6%, #2b2543, transparent 62%),
  linear-gradient(180deg, #121a31, var(--abyss) 68%) fixed var(--abyss); }
.learn .bar::before { opacity: 1; }
.learn .links a[aria-current="page"] { color: #fff; }
.learn main { padding: 112px 0 40px; }
.learn section { padding-top: 0; scroll-margin-top: 92px; }

.l-wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.l-text { max-width: 44rem; }
.learn main p, .learn main li { font-size: 1.04rem; }
.learn main h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 2.4vw, 2.05rem); }
.learn main h3 { margin: 26px 0 8px; font-size: 1.16rem; letter-spacing: -.012em; }
.learn main strong { color: var(--foam); font-weight: 600; }

/* the top of a lesson */
.l-head { margin-bottom: 34px; }
.l-kicker { margin: 0 0 12px; font: 500 .84rem var(--mono); color: var(--sky-2); }
.l-kicker a { color: var(--sky-2); }
.l-head h1 { margin: 0 0 16px; max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.l-lead { margin: 0; max-width: 40rem; font-size: 1.14rem !important; color: #ddd5ca; }
.l-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font: 400 .86rem var(--mono); color: var(--dim); }
.l-meta li { font-size: .86rem !important; }

/* the parts, listed */
.toc { margin: 0 0 40px; padding: 22px 26px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--panel-2); }
.toc h2 { margin: 0 0 10px !important; font-size: 1.05rem !important; letter-spacing: 0; }
.toc ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding-left: 1.3em; }
.toc li { font-size: .95rem !important; }
.toc a { color: var(--mist); text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }

/* one part of a lesson: a panel of dark glass */
.part { margin: 0 0 26px; padding: 34px 36px; border: 1px solid var(--edge); border-radius: 22px; background: var(--panel-2); }
.part-no { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 10px; background: rgba(74, 163, 224, .18); color: var(--sky-2); font: 500 1rem var(--mono); vertical-align: .18em; }
.part > p, .part > ul, .part > ol { max-width: 44rem; }
.part ul, .part ol { padding-left: 1.3em; }
.part li { margin-bottom: 6px; }

/* the one idea to keep */
.key { max-width: 44rem; margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--sky); border-radius: 4px 12px 12px 4px; background: rgba(74, 163, 224, .1); color: #e4ecf4; }
.key b { display: block; margin-bottom: 4px; font: 500 .78rem var(--mono); color: var(--sky-2); letter-spacing: .02em; }

/* a quotation from a source */
.quote { max-width: 44rem; margin: 22px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--edge-2); color: #e7dfd4; font-style: italic; }
.quote cite { display: block; margin-top: 8px; font: normal 400 .84rem var(--mono); color: var(--dim); }

/* for the curious: the maths, folded away */
.curious { max-width: 44rem; margin: 22px 0; border: 1px solid var(--edge-2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.curious summary { padding: 14px 18px; font-weight: 600; color: var(--foam); cursor: pointer; }
.curious summary::marker { color: var(--sky-hi); }
.curious > div { padding: 0 20px 16px; }
.curious p { margin: 0 0 10px; }
.formula { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: rgba(4, 12, 24, .55); font: 400 1rem var(--mono); color: var(--foam); overflow-x: auto; white-space: nowrap; }
.formula sup { font-size: .72em; }

/* drawings: inline SVG, styled by class */
.drawing { margin: 24px 0 8px; }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { margin-top: 10px; max-width: 44rem; font-size: .9rem; color: var(--dim); }
.legend { columns: 2; column-gap: 32px; max-width: 52rem; margin: 12px 0 0; padding-left: 1.4em; font-size: .93rem; }
.legend li { break-inside: avoid; font-size: .93rem !important; }
.svg-wide { overflow-x: auto; }

svg .sky { fill: #19223d; } svg .sea { fill: #0d2036; } svg .sea-2 { fill: #0b1a2d; }
svg .surface { stroke: #9fd0f5; stroke-width: 2; fill: none; }
svg .rock-1 { fill: #1b2a3c; } svg .rock-2 { fill: #222f3f; } svg .rock-3 { fill: #283445; }
svg .reflector { stroke: #9fd0f5; stroke-width: 3; fill: none; }
svg .hull { fill: #cfd6de; } svg .house { fill: #eef1f4; } svg .dark { fill: #2a3a52; }
svg .float { fill: #f8c81c; }                       /* the floats are yellow: they are */
svg .gun { fill: #8fa1b5; } svg .steel { fill: #8fa1b5; } svg .steel-2 { fill: #5f7187; }
svg .rope { stroke: #9aa8b8; stroke-width: 1.6; fill: none; }
svg .cable { stroke: #d8cbb8; stroke-width: 3; fill: none; stroke-linecap: round; }
svg .phone { fill: #9fd0f5; }
svg .ray { stroke: #6cb8ee; stroke-width: 2.2; fill: none; }
svg .ray-head { fill: #6cb8ee; }
svg .wave { stroke: #9fd0f5; stroke-width: 1.4; fill: none; stroke-dasharray: 4 6; opacity: .7; }
svg .lbl { fill: #e8e0d4; font-family: "Plex Sans", system-ui, sans-serif; font-size: 15px; }
svg .lbl-s { fill: #b9b0a4; font-family: "Plex Sans", system-ui, sans-serif; font-size: 13px; }
svg .lbl-b { fill: #f8f2ea; font-family: "Plex Sans", system-ui, sans-serif; font-size: 17px; font-weight: 600; }
svg .mono { font-family: "Plex Mono", ui-monospace, monospace; }
svg .num-c { fill: #4aa3e0; } svg .num-t { fill: #04162b; font: 600 13px "Plex Sans", system-ui, sans-serif; }
svg .lead { stroke: #8d867d; stroke-width: 1; fill: none; }
svg .tube { fill: rgba(159, 208, 245, .06); stroke: #6f8299; stroke-width: 2; }
svg .air-hi { fill: rgba(74, 163, 224, .55); } svg .air-lo { fill: rgba(74, 163, 224, .18); }
svg .bubble { fill: rgba(232, 240, 248, .12); stroke: rgba(232, 240, 248, .7); stroke-width: 2; }
svg .hot { fill: #b7a3ff; } svg .flow { stroke: #e2daff; stroke-width: 2.4; fill: none; stroke-dasharray: 5 4; }
svg .flow-head { fill: #e2daff; }
svg .diaphragm { stroke: #cfd6de; stroke-width: 4; fill: none; }
svg .wafer { stroke: #b7a3ff; stroke-width: 7; fill: none; stroke-linecap: round; }
svg .wire { stroke: #d8cbb8; stroke-width: 1.6; fill: none; }
svg .push { stroke: #9fd0f5; stroke-width: 2.4; fill: none; } svg .push-head { fill: #9fd0f5; }
svg .sign { fill: #f8f2ea; font: 600 22px "Plex Mono", ui-monospace, monospace; }
svg .out-ok { fill: #46d39a; font: 600 18px "Plex Sans", system-ui, sans-serif; }
svg .out-zero { fill: #b9b0a4; font: 600 18px "Plex Sans", system-ui, sans-serif; }
svg .trace { stroke: #6cb8ee; stroke-width: 2.4; fill: none; stroke-linejoin: round; }
svg .trace-g { stroke: #b7a3ff; stroke-width: 2.4; fill: none; stroke-linejoin: round; }
svg .axis { stroke: #4c5a6c; stroke-width: 1.2; fill: none; }
svg .ghost-src { fill: none; stroke: #b7a3ff; stroke-width: 2; stroke-dasharray: 5 4; }
svg .box { fill: rgba(24, 37, 63, .9); stroke: #2b4569; stroke-width: 1.5; }
svg .box-hi { fill: rgba(74, 163, 224, .16); stroke: #4aa3e0; stroke-width: 1.5; }
svg .arrow { stroke: #9fd0f5; stroke-width: 2; fill: none; } svg .arrow-head { fill: #9fd0f5; }

/* a picture with states: radio buttons drive it, no script (works
   without JavaScript). The inputs are the first children, the states
   are shown by the rules below. */
.states { position: relative; }
.states > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; padding: 5px; border: 1px solid var(--edge-2); border-radius: 13px; background: rgba(255, 255, 255, .03); }
.seg label { padding: 8px 14px; border-radius: 9px; font: 600 .9rem var(--font); color: var(--mist); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.seg label:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.st, .say { display: none; }
#hyd-p:checked ~ .seg label[for="hyd-p"], #hyd-a:checked ~ .seg label[for="hyd-a"],
#gun-1:checked ~ .seg label[for="gun-1"], #gun-2:checked ~ .seg label[for="gun-2"],
#gun-3:checked ~ .seg label[for="gun-3"], #gun-4:checked ~ .seg label[for="gun-4"] { background: var(--sky); color: var(--sky-ink); }
#hyd-p:focus-visible ~ .seg label[for="hyd-p"], #hyd-a:focus-visible ~ .seg label[for="hyd-a"],
#gun-1:focus-visible ~ .seg label[for="gun-1"], #gun-2:focus-visible ~ .seg label[for="gun-2"],
#gun-3:focus-visible ~ .seg label[for="gun-3"], #gun-4:focus-visible ~ .seg label[for="gun-4"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }
#hyd-p:checked ~ .drawing .st-p, #hyd-a:checked ~ .drawing .st-a { display: inline; }
#hyd-p:checked ~ .say-p, #hyd-a:checked ~ .say-a { display: block; }
#gun-1:checked ~ .drawing .s1, #gun-2:checked ~ .drawing .s2,
#gun-3:checked ~ .drawing .s3, #gun-4:checked ~ .drawing .s4 { display: inline; }
#gun-1:checked ~ .say-1, #gun-2:checked ~ .say-2, #gun-3:checked ~ .say-3, #gun-4:checked ~ .say-4 { display: block; }
.say { max-width: 44rem; min-height: 5.4em; margin: 6px 0 0; padding: 14px 18px; border-radius: 12px; background: rgba(4, 12, 24, .45); color: #e4ecf4; }
.say b { color: var(--foam); }

/* lesson 2: the SEG-D record map - radio states, no script */
.fm-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.fm-bar label { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: 12px;
  background: rgba(255, 255, 255, .04); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.fm-bar label b { color: var(--foam); font-size: .9rem; line-height: 1.25; }
.fm-bar label i { font-style: normal; font: 400 .74rem var(--mono); color: var(--dim); line-height: 1.3; }
.fm-bar label:hover { background: rgba(255, 255, 255, .09); }
.fm-bar .fm-h { flex: 1 1 96px; }
.fm-bar .fm-o { flex: 0.7 1 74px; border-style: dashed; }
.fm-bar .fm-t { flex: 1.9 1 150px; background: rgba(74, 163, 224, .08); }
#fm-1:checked ~ .fm-bar label[for="fm-1"], #fm-2:checked ~ .fm-bar label[for="fm-2"],
#fm-3:checked ~ .fm-bar label[for="fm-3"], #fm-4:checked ~ .fm-bar label[for="fm-4"],
#fm-5:checked ~ .fm-bar label[for="fm-5"], #fm-6:checked ~ .fm-bar label[for="fm-6"],
#fm-7:checked ~ .fm-bar label[for="fm-7"], #fm-8:checked ~ .fm-bar label[for="fm-8"] { border-color: var(--sky); background: rgba(74, 163, 224, .22); }
#fm-1:focus-visible ~ .fm-bar label[for="fm-1"], #fm-2:focus-visible ~ .fm-bar label[for="fm-2"],
#fm-3:focus-visible ~ .fm-bar label[for="fm-3"], #fm-4:focus-visible ~ .fm-bar label[for="fm-4"],
#fm-5:focus-visible ~ .fm-bar label[for="fm-5"], #fm-6:focus-visible ~ .fm-bar label[for="fm-6"],
#fm-7:focus-visible ~ .fm-bar label[for="fm-7"], #fm-8:focus-visible ~ .fm-bar label[for="fm-8"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }
#fm-1:checked ~ .say-fm1, #fm-2:checked ~ .say-fm2, #fm-3:checked ~ .say-fm3, #fm-4:checked ~ .say-fm4,
#fm-5:checked ~ .say-fm5, #fm-6:checked ~ .say-fm6, #fm-7:checked ~ .say-fm7, #fm-8:checked ~ .say-fm8 { display: block; }
.filemap .say { max-width: none; min-height: 7.2em; }

/* lesson 2: the parts of a SEG-Y file, and the two formats side by side */
.ybar { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }
.yb { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 70px; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.yb b { color: var(--foam); font-size: .9rem; line-height: 1.25; }
.yb i { font-style: normal; font: 400 .74rem var(--mono); color: var(--dim); line-height: 1.3; }
.yb-h { flex: 1.2 1 150px; } .yb-o { flex: 0.8 1 110px; border-style: dashed; } .yb-t { flex: 2 1 200px; background: rgba(74, 163, 224, .08); }
.tablewrap { overflow-x: auto; max-width: 52rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.cmp thead th { color: var(--foam); font-weight: 600; border-bottom-color: var(--edge-2); }
.cmp tbody th { color: var(--mist); font-weight: 500; white-space: nowrap; }
.cmp td { color: #e1d9cf; }

/* lesson 2: the QC demo (qcshot.js) */
.plot.tall { height: 420px; }
.set-info { margin: 10px 0 12px; font: 400 .86rem var(--mono) !important; color: var(--sky-2); }
.qc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.qc-tools label { font-size: .9rem; font-weight: 600; color: var(--foam); }
.qc-tools input { width: 5.5em; padding: 8px 10px; border: 1px solid var(--edge-2); border-radius: 9px; background: rgba(255, 255, 255, .05); color: #fff; font: 400 .95rem var(--mono); }
.qc-tools .btn { padding: 8px 14px; font-size: .88rem; }

/* the live demos (signature.js, polarity.js): shown by their script */
.demo { margin: 26px 0 8px; padding: 22px 24px 20px; border: 1px solid var(--edge-2); border-radius: 18px; background: rgba(6, 14, 28, .6); }
.demo h3 { margin-top: 0 !important; }
.demo-note { margin: 0 0 14px; font-size: .9rem !important; color: var(--dim); }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; margin: 12px 0 16px; }
.controls label, .controls .ctl { display: block; font-size: .88rem; font-weight: 600; color: var(--foam); }
.controls output { float: right; font: 500 .88rem var(--mono); color: var(--sky-2); }
.controls input[type="range"] { display: block; width: 100%; margin-top: 8px; accent-color: var(--sky); }
.controls input[type="range"]:disabled { opacity: .35; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 14px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--mist); cursor: pointer; }
.checks input { accent-color: var(--sky); width: 17px; height: 17px; }
.pick { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--edge-2); border-radius: 12px; }
.pick button { padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--mist); font: 600 .9rem var(--font); cursor: pointer; }
.pick button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pick button[aria-pressed="true"] { background: var(--sky); color: var(--sky-ink); }
.plot { display: block; width: 100%; height: 260px; border-radius: 12px; background: #081322; }
.plot.short { height: 200px; }
.plot + .plot { margin-top: 10px; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.readout div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.readout dt { font: 400 .74rem var(--mono); color: var(--dim); }
.readout dd { margin: 2px 0 0; font: 500 1.08rem var(--mono); color: var(--foam); }
.readout + .demo-note, .verdict { margin-top: 12px; }
.verdict { max-width: 44rem; padding: 12px 16px; border-radius: 12px; background: rgba(74, 163, 224, .12); color: #e4ecf4; }
.no-js-note { margin: 18px 0 0; color: var(--dim); font-size: .92rem; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.fact { padding: 20px 20px 18px; border: 1px solid var(--edge); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.fact h3 { margin: 0 0 8px !important; font-size: 1.02rem !important; line-height: 1.3; color: var(--foam); }
.fact p { margin: 0; font-size: .94rem !important; }
.fact .src { display: block; margin-top: 10px; font: 400 .76rem var(--mono); color: var(--dim); }

/* the quiz (quiz.js). Without script each question is a plain choice
   and its answer opens by hand. */
.quiz { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: q; }
.q { margin: 0 0 14px; padding: 18px 20px; border: 1px solid var(--edge); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.q fieldset { margin: 0; padding: 0; border: 0; }
.q legend { margin-bottom: 10px; padding: 0; font-weight: 600; color: var(--foam); font-size: 1.04rem; }
.q label { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; font-size: .98rem; cursor: pointer; }
.q label:hover { background: rgba(255, 255, 255, .05); }
.q input { margin-top: .32em; accent-color: var(--sky); }
.q .picked-wrong { border-color: rgba(255, 122, 107, .6); background: rgba(255, 122, 107, .1); }
.q .right { border-color: rgba(70, 211, 154, .6); background: rgba(70, 211, 154, .1); }
.q.done label { cursor: default; }
.q.done label:hover { background: none; }
.q.done .right:hover { background: rgba(70, 211, 154, .1); }
.q.done .picked-wrong:hover { background: rgba(255, 122, 107, .1); }
.q details { margin-top: 8px; }
.q summary { color: var(--sky-2); font-size: .92rem; cursor: pointer; }
.q details p { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(4, 12, 24, .45); font-size: .96rem !important; }
.q .mark { display: inline-block; margin-left: 8px; font: 600 .84rem var(--mono); white-space: nowrap; }
.q.ok .mark { color: var(--ok); } .q.bad .mark { color: var(--alarm); }
.quiz-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 44rem; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--edge-2); border-radius: 14px; background: rgba(9, 16, 30, .92); font: 500 .9rem var(--mono); color: var(--mist); }
.quiz-end { margin-top: 18px; padding: 24px 26px; border: 1px solid rgba(74, 163, 224, .5); border-radius: 18px; background: rgba(74, 163, 224, .1); }
.quiz-end h3 { margin: 0 0 8px !important; font-size: 1.5rem !important; }
.quiz-end p { margin: 0 0 12px; }
.quiz-end ul { margin: 0 0 16px; }

/* sources */
.sources { max-width: 52rem; padding-left: 1.4em; }
.sources li { margin-bottom: 8px; font-size: .92rem !important; color: var(--mist); }
.sources a { word-break: break-word; }

/* what the lessons are, before them */
.about { max-width: 52rem; margin: 0 0 30px; padding: 22px 26px; border-left: 3px solid var(--sky); border-radius: 4px 16px 16px 4px; background: rgba(74, 163, 224, .08); }
.about h2 { margin: 0 0 10px !important; font-size: 1.15rem !important; letter-spacing: 0; }
.about p { margin: 0 0 10px; }
.about p:last-child { margin-bottom: 0; }

/* the list of lessons */
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.lesson-card { display: block; height: 100%; padding: 26px 28px; border: 1px solid var(--edge); border-radius: 20px; background: var(--panel-2); color: var(--mist); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
a.lesson-card:hover { border-color: var(--edge-2); transform: translateY(-3px); }
.lesson-card .l-kicker { margin-bottom: 8px; }
.lesson-card h2 { margin: 0 0 10px !important; font-size: 1.45rem !important; }
.lesson-card p { margin: 0 0 14px; }
.lesson-card .go { font-weight: 600; color: var(--sky-2); }
.lesson-card.soon { border-style: dashed; background: transparent; }

.next { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 30px; }

/* lesson 3 (2026-11-06): a wave and its samples, an alias, number tables,
   and the demos' controls (sampling.js, headerrate.js, samplenumber.js).
   The alias is violet, never red: red is kept for a wrong quiz answer. */
svg .wave-true { stroke: #5d7896; stroke-width: 2; fill: none; stroke-linejoin: round; }
svg .stem { stroke: #6cb8ee; stroke-width: 1.4; }
svg .samp { fill: #9fd0f5; stroke: #07162b; stroke-width: 1.5; }
svg .alias { stroke: #b7a3ff; stroke-width: 2.6; fill: none; stroke-dasharray: 9 6; }
svg .lbl-a { fill: #cfc3ff; font-family: "Plex Sans", system-ui, sans-serif; font-size: 13px; }
.cmp.num td { font-family: var(--mono); font-size: .9rem; white-space: nowrap; }
.pick { flex-wrap: wrap; }
.controls .ctl .pick { display: flex; width: fit-content; margin-top: 8px; }
.controls input[type="number"] { display: block; width: 8em; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--edge-2); border-radius: 9px;
  background: rgba(255, 255, 255, .05); color: #fff; font: 400 .95rem var(--mono); }
#hdr-demo .pick button { font-size: .86rem; }
#cnt-demo .controls { grid-template-columns: auto auto minmax(0, 1fr); }

/* lesson 4 (2026-11-10): seeing the data - Anscombe's quartet, the
   timing table that turns into a picture (radio states, no script), the
   colour bars, and the demos (popout.js, colourmap.js, sortrows.js,
   gathers.js). The colours OF a colour map are the map's own and are
   carried by the drawings' fill attributes: the rainbow is shown because
   the lesson is about why not to use it. The table's colours are the
   app's deviation colours (main/svg_charts.py), blue - white - amber;
   red only for the one reading past its limit. */
svg .apanel { fill: rgba(8, 19, 34, .7); stroke: #2b4569; stroke-width: 1.2; }
svg .fit { stroke: #5d7896; stroke-width: 1.6; }
svg .adot { fill: #9fd0f5; stroke: #07162b; stroke-width: 1.5; }
svg .mid { stroke: #f8f2ea; stroke-width: 1.4; stroke-dasharray: 3 3; }
svg .lframe { fill: rgba(8, 19, 34, .7); stroke: #3a4a60; stroke-width: 1; }
svg .lline { stroke: #f8f2ea; stroke-width: 2; fill: none; stroke-linejoin: round; }
svg .mk { fill: #04162b; font: 700 24px "Plex Sans", system-ui, sans-serif; }
#see-n:checked ~ .seg label[for="see-n"], #see-p:checked ~ .seg label[for="see-p"] { background: var(--sky); color: var(--sky-ink); }
#see-n:focus-visible ~ .seg label[for="see-n"], #see-p:focus-visible ~ .seg label[for="see-p"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }
#see-n:checked ~ .say-n, #see-p:checked ~ .say-p { display: block; }
.tgrid { border-collapse: separate; border-spacing: 2px; font: 400 .84rem var(--mono); }
.tgrid caption { caption-side: top; padding: 0 0 8px; text-align: left; font: 400 .8rem var(--mono); color: var(--dim); }
.tgrid th { padding: 6px 7px; color: var(--dim); font-weight: 500; text-align: center; }
.tgrid td { min-width: 3.3em; padding: 7px 6px; border-radius: 4px; background: rgba(255, 255, 255, .04); color: #e1d9cf; text-align: right;
  transition: background .25s var(--ease), color .25s var(--ease); }
#see-p:checked ~ .tablewrap .tgrid td { color: transparent; }
#see-p:checked ~ .tablewrap .tgrid td.dn3 { background: #3b75b5; }
#see-p:checked ~ .tablewrap .tgrid td.dn2 { background: #77a6d2; }
#see-p:checked ~ .tablewrap .tgrid td.dn1 { background: #b7d1e7; }
#see-p:checked ~ .tablewrap .tgrid td.d0 { background: #f7f7f7; }
#see-p:checked ~ .tablewrap .tgrid td.dp1 { background: #f4d7a3; }
#see-p:checked ~ .tablewrap .tgrid td.dp2 { background: #e2ad56; }
#see-p:checked ~ .tablewrap .tgrid td.dp3 { background: #b7741b; }
#see-p:checked ~ .tablewrap .tgrid td.dout { background: #d9363e; }
.mono-s { font: 400 .92em var(--mono); color: var(--foam); white-space: nowrap; }
.plot.cbar { height: 120px; }
.readout .wide { grid-column: span 2; }
#pop-demo .controls, #cm-demo .controls, #gat-demo .controls { display: flex; flex-wrap: wrap; gap: 14px 30px; }
#gat-demo .controls label { flex: 1 1 260px; }
#srt-demo > .pick { margin-bottom: 10px; }
#srt-demo .checks { margin-top: 4px; }
#pop-field { cursor: crosshair; }

/* lesson 5 (2026-11-10): gun timing - pulses that add or do not, the
   shot's time line, the notch a late half-array cuts, and the demos
   (selftune.js, farsum.js, timingqc.js). A late pulse is violet, never
   red; the timing map takes the app's limit colours, red only past the
   limit. */
svg .pulse { stroke: #6cb8ee; stroke-width: 2; fill: none; stroke-linejoin: round; }
svg .pulse-late { stroke: #b7a3ff; stroke-width: 2.2; fill: none; stroke-linejoin: round; }
svg .sum { stroke: #f8f2ea; stroke-width: 2.6; fill: none; stroke-linejoin: round; }
svg .sum-ideal { stroke: #5d7896; stroke-width: 1.8; fill: none; stroke-dasharray: 6 5; }
svg .aim { stroke: #9fd0f5; stroke-width: 1.4; stroke-dasharray: 4 4; }
svg .wait { stroke: #5d7896; stroke-width: 3; stroke-linecap: round; }
svg .pulsedot { fill: #081322; stroke: #9fd0f5; stroke-width: 2; }
svg .shotdot { fill: #6cb8ee; stroke: #07162b; stroke-width: 1.5; }
svg .spec { stroke: #b7a3ff; stroke-width: 2.4; fill: none; stroke-linejoin: round; }
svg .notch { stroke: #b7a3ff; stroke-width: 1.4; stroke-dasharray: 3 3; }
#tune-demo .controls, #fs-demo .controls { display: flex; flex-wrap: wrap; gap: 14px 30px; }
#fs-demo .controls label { flex: 1 1 260px; }
#tq-demo > .pick { margin-bottom: 12px; }
#tq-map { height: 300px; }

/* lesson 6 (2026-11-10): from one gun to an array - output split among
   guns, an array from above, an annotated signature, and the demos
   (tuning.js, nearfar.js). */
svg .splitbar { fill: #4aa3e0; }
svg .gunc { fill: #8fa1b5; stroke: #07162b; stroke-width: 1.5; }
svg .gunx { fill: none; stroke: #8fa1b5; stroke-width: 1.8; stroke-dasharray: 3 3; }
svg .sigline { stroke: #9fd0f5; stroke-width: 1.8; fill: none; stroke-linejoin: round; }
svg .span { stroke: #f8f2ea; stroke-width: 1.6; }
svg .span-b { stroke: #b7a3ff; stroke-width: 1.6; }
svg .mk-b { fill: #b7a3ff; }
svg .sup { font-size: 10px; }
.guns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin: 14px 0 14px; }
.guns label { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--foam); }
.guns select { padding: 6px 8px; border: 1px solid var(--edge-2); border-radius: 8px; background: rgba(255, 255, 255, .05); color: #fff; font: 400 .9rem var(--mono); }
.guns select option { background: #0b1322; }
.fire-ck { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--mist); }
.fire-ck input { accent-color: var(--sky); width: 16px; height: 16px; }
#arr-clock { height: 170px; }
#nf-demo .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* lesson 7 (2026-11-17): the line, its shots and the SPS files - three
   files, a pass with three sources from above, three ways of receiving,
   and the demos (spsread.js, sailpass.js). A field that cannot be read
   is violet, never red; the floats stay the only yellow. */
svg .sl-line { stroke: #4c5a6c; stroke-width: 1.2; }
svg .sail-l { stroke: #9fd0f5; stroke-width: 1.6; stroke-dasharray: 8 6; fill: none; }
svg .sh-a { fill: #6cb8ee; stroke: #07162b; stroke-width: 1.2; }
svg .sh-b { fill: #b7a3ff; stroke: #07162b; stroke-width: 1.2; }
svg .sh-c { fill: #f8f2ea; stroke: #07162b; stroke-width: 1.2; }
svg .ground { fill: #3b3128; }
svg .rcv { fill: #9fd0f5; }
svg .node-p { fill: #8fa1b5; stroke: #07162b; stroke-width: 1; }
.rec-sample { max-width: 100%; overflow-x: auto; padding: 10px 14px; border-radius: 10px; background: rgba(4, 12, 24, .55); white-space: pre; }
.rec-lbl { display: block; margin: 14px 0 6px; font-size: .88rem; font-weight: 600; color: var(--foam); }
.rec-in { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: 10px; background: rgba(255, 255, 255, .05);
  color: #fff; font: 400 .9rem var(--mono); }
.rec-view { margin: 12px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: 12px; background: #081322; font: 400 .9rem var(--mono); line-height: 1.5; }
.rec-ruler { color: var(--dim); white-space: pre; }
.rec-line { white-space: pre; color: var(--foam); }
.rec-f { cursor: pointer; border-bottom: 2px solid transparent; }
.rec-f0 { background: rgba(74, 163, 224, .16); }
.rec-f1 { background: rgba(183, 163, 255, .14); }
.rec-f.on { background: var(--sky); color: var(--sky-ink); }
.rec-bad { border-bottom: 2px dashed #b7a3ff; }
.rec-over { background: rgba(183, 163, 255, .32); border-bottom: 2px dashed #b7a3ff; }
.rec-pick { max-width: 44rem; margin: 10px 0 12px; font-size: .95rem !important; color: #e4ecf4; }
.rec-tab td.mono-cell { font: 400 .86rem var(--mono); white-space: pre; }
.rec-tab tbody tr { cursor: pointer; }
.rec-tab tbody tr.on th, .rec-tab tbody tr.on td { background: rgba(74, 163, 224, .16); }
.rec-tab tbody tr.rec-bad-row td:last-child { color: #cfc3ff; }
.pass-run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 12px; }
.pass-run .btn { padding: 8px 16px; font-size: .9rem; }
.pass-dist { flex: 1 1 260px; font-size: .88rem; font-weight: 600; color: var(--foam); }
.pass-dist output { float: right; font: 500 .88rem var(--mono); color: var(--sky-2); }
.pass-dist input { display: block; width: 100%; margin-top: 8px; accent-color: var(--sky); }
#pass-plan { height: 300px; }
.pass-cap { margin: 14px 0 6px; font-size: .9rem !important; color: var(--dim); }
.sps-out { margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: 12px; background: #081322; color: var(--foam); font: 400 .84rem var(--mono); line-height: 1.5; white-space: pre; }
#pass-demo .controls { align-items: end; }

/* lesson 8 (2026-11-17): seismic waves. One colour code through the whole
   lesson - blue for the waves we use, violet for the waves in the way -
   and ONE bold element: the stage at the top, where a shot fires and the
   record writes itself (wavefield.js). The three part bands mark the
   halves; the noise map is radio states, no script. Red stays the quiz's. */
.wstage { position: relative; margin: 0 0 34px; padding: 20px 20px 18px; border: 1px solid var(--edge-2); border-radius: 24px;
  background: radial-gradient(900px 420px at 0% 0%, rgba(74, 163, 224, .16), transparent 60%),
              radial-gradient(800px 420px at 100% 100%, rgba(183, 163, 255, .14), transparent 60%), #08111f;
  box-shadow: 0 30px 80px -40px rgba(74, 163, 224, .45); }
.wstage-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 14px; }
.wstage-top .btn { min-width: 9.5em; }
.wf-time { flex: 1 1 280px; font-size: .88rem; font-weight: 600; color: var(--foam); }
.wf-time output { float: right; font: 500 .9rem var(--mono); color: var(--sky-2); }
.wf-time input { display: block; width: 100%; margin-top: 8px; accent-color: var(--sky); }
.wstage-views { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.wstage-pane { margin: 0; }
.wstage-cap { margin: 0 0 6px; font-size: .84rem !important; color: var(--dim); }
.wf-sea, .wf-rec { display: block; width: 100%; height: 380px; border-radius: 14px; background: #081322; }
.wf-keys, .sr-keys { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 14px 0 12px; }
.wf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wf-gname { margin-right: 4px; font-size: .84rem; font-weight: 600; color: #9fd0f5; }
.wf-noise .wf-gname { color: #cfc3ff; }
.wf-group button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--edge-2); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: var(--foam); font: 500 .84rem var(--font); cursor: pointer; transition: opacity .2s var(--ease), background .2s var(--ease); }
.wf-group button:hover { background: rgba(255, 255, 255, .09); }
.wf-group button[aria-pressed="false"] { opacity: .45; }
.wf-group button[aria-pressed="false"] .k { background: transparent; border: 1px dashed var(--dim); }
.wf-group button:focus-visible, .sr-steps button:focus-visible { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }
.k { display: inline-block; width: 16px; height: 5px; border-radius: 3px; }
.k-direct { background: #e8e0d4; } .k-refl { background: #6cb8ee; } .k-head { background: #9fd0f5; }
.k-rock { background: linear-gradient(90deg, #3d8fd6 50%, #5fd3c4 50%); }
.k-ghost { background: repeating-linear-gradient(90deg, #cfc3ff 0 4px, transparent 4px 7px); }
.k-mult { background: #9d8cf0; } .k-swell { background: #8f86c9; } .k-shrimp { background: #e2daff; }
.k-vessel { background: #c49be8; } .k-ambient { background: #7d7690; }

/* the three parts of the lesson */
.act { margin: 48px 0 22px; padding: 6px 4px 0; }
.act-wave { display: block; width: min(100%, 600px); height: 48px; margin-bottom: 6px; }
svg .act-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.act-use svg .act-line { stroke: #6cb8ee; } .act-noise svg .act-line { stroke: #b7a3ff; } .act-record svg .act-line { stroke: #f8f2ea; }
.act-no { margin: 0 0 4px; font: 600 .95rem var(--font); color: #9fd0f5; }
.act-noise .act-no { color: #cfc3ff; } .act-record .act-no { color: var(--foam); }
.act-title { margin: 0 0 10px !important; font-size: clamp(2.2rem, 4.6vw, 3.4rem) !important; letter-spacing: -.02em; }
.act-lead { max-width: 40rem; margin: 0; font-size: 1.1rem !important; color: #ddd5ca; }

/* drawings: a converted wave, a shrimp's snap */
svg .layer-l { stroke: #3a4a60; stroke-width: 1.4; }
svg .ray-p { stroke: #6cb8ee; stroke-width: 2.4; fill: none; stroke-linejoin: round; }
svg .ray-s { stroke: #5fd3c4; stroke-width: 2.8; fill: none; stroke-dasharray: 7 4; }
svg .claw { fill: #c9a6e8; stroke: #07162b; stroke-width: 1.5; }
svg .jet { stroke: #e2daff; stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; }
svg .cav { fill: rgba(226, 218, 255, .12); stroke: #e2daff; stroke-width: 2; }
svg .flash { fill: #ffffff; }
svg .ring { fill: none; stroke: #e2daff; stroke-width: 1.6; opacity: .7; }
svg .spike { fill: none; stroke: #f8f2ea; stroke-width: 2; stroke-linejoin: round; }
.cmp.vel { max-width: 32rem; }

/* the demos */
.pm-medium { margin-left: 10px; }
.pm-plot { height: 300px; margin-top: 12px; }
.pm-run { margin-top: 10px; }
.pm-run .btn, .wstage-top .btn-ghost { padding: 8px 16px; font-size: .9rem; }
.tt-views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#tt-rays, #tt-times { height: 270px; }
.tt-views .plot + .plot { margin-top: 0; }
.sr-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; padding: 0; list-style: none; counter-reset: srs; }
.sr-steps li { counter-increment: srs; }
.sr-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--edge-2); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: var(--mist); font: 600 .88rem var(--font); cursor: pointer; }
.sr-steps button::before { content: counter(srs); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); font: 500 .78rem var(--mono); }
.sr-steps button[aria-pressed="true"] { border-color: var(--sky); background: rgba(74, 163, 224, .18); color: #fff; }
.sr-steps button[aria-pressed="true"]::before { background: var(--sky); color: var(--sky-ink); }
.sr-views { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; }
#sr-gather, #sr-stack { height: 540px; }
.sr-views .plot + .plot { margin-top: 0; }

/* where each noise lives: rows on a logarithmic frequency scale */
.nmap { margin: 14px 0 6px; }
.nm-chart { position: relative; max-width: 58rem; padding: 6px 0 4px; }
.nm-chart::before { content: ""; position: absolute; top: 30px; bottom: 0; left: calc(190px + (100% - 190px) * .2675); width: calc((100% - 190px) * .2675);
  border-left: 1px dashed rgba(108, 184, 238, .5); border-right: 1px dashed rgba(108, 184, 238, .5); background: rgba(74, 163, 224, .07); pointer-events: none; }
.nm-axis { position: relative; height: 22px; margin-left: 190px; border-bottom: 1px solid var(--edge-2); }
.nm-t { position: absolute; bottom: 4px; font: 400 .72rem var(--mono); color: var(--dim); white-space: nowrap; transform: translateX(-2px); }
.t0 { left: 0; } .t1 { left: 13.37%; } .t2 { left: 26.75%; } .t3 { left: 40.12%; } .t4 { left: 53.5%; } .t5 { left: 66.87%; } .t6 { left: 80.24%; } .t7 { left: 93.62%; }
.nm-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; margin: 3px 0; padding: 4px 0; border-radius: 8px; cursor: pointer; }
.nm-row:hover { background: rgba(255, 255, 255, .05); }
.nm-name { padding-left: 8px; font-size: .9rem; color: var(--mist); }
.nm-use .nm-name { color: #9fd0f5; font-weight: 600; }
.nm-track { position: relative; height: 18px; }
.nm-bar { position: absolute; top: 4px; height: 10px; border-radius: 5px; background: #b7a3ff; }
.b-seis { left: 26.75%; width: 26.75%; background: linear-gradient(90deg, rgba(108, 184, 238, .15), #6cb8ee 30%); }
.b-swell { left: 6.99%; width: 11.71%; background: #8f86c9; }
.b-micro { left: 13.37%; width: 26.75%; background: #8f86c9; }
.b-tow { left: 26.75%; width: 13.37%; background: #9d8cf0; }
.b-blue { left: 38.83%; width: 6.61%; } .b-fin { left: 42.85%; width: 5.32%; }
.b-ship { left: 50.53%; width: 5.7%; background: #c49be8; }
.b-wind { left: 66.87%; width: 19.76%; background: #a99bdc; }
.b-shrimp { left: 66.87%; width: 33.13%; background: linear-gradient(90deg, #e2daff, rgba(226, 218, 255, .1)); }
.b-therm { left: 93.62%; width: 6.38%; background: #7d7690; }
#nm-seis:checked ~ .nm-chart label[for="nm-seis"], #nm-swell:checked ~ .nm-chart label[for="nm-swell"],
#nm-micro:checked ~ .nm-chart label[for="nm-micro"], #nm-tow:checked ~ .nm-chart label[for="nm-tow"],
#nm-blue:checked ~ .nm-chart label[for="nm-blue"], #nm-fin:checked ~ .nm-chart label[for="nm-fin"],
#nm-ship:checked ~ .nm-chart label[for="nm-ship"], #nm-wind:checked ~ .nm-chart label[for="nm-wind"],
#nm-shrimp:checked ~ .nm-chart label[for="nm-shrimp"], #nm-therm:checked ~ .nm-chart label[for="nm-therm"] { background: rgba(183, 163, 255, .14); }
#nm-seis:checked ~ .nm-chart label[for="nm-seis"] { background: rgba(74, 163, 224, .16); }
#nm-seis:focus-visible ~ .nm-chart label[for="nm-seis"], #nm-swell:focus-visible ~ .nm-chart label[for="nm-swell"],
#nm-micro:focus-visible ~ .nm-chart label[for="nm-micro"], #nm-tow:focus-visible ~ .nm-chart label[for="nm-tow"],
#nm-blue:focus-visible ~ .nm-chart label[for="nm-blue"], #nm-fin:focus-visible ~ .nm-chart label[for="nm-fin"],
#nm-ship:focus-visible ~ .nm-chart label[for="nm-ship"], #nm-wind:focus-visible ~ .nm-chart label[for="nm-wind"],
#nm-shrimp:focus-visible ~ .nm-chart label[for="nm-shrimp"], #nm-therm:focus-visible ~ .nm-chart label[for="nm-therm"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 1px; }
#nm-seis:checked ~ .say-seis, #nm-swell:checked ~ .say-swell, #nm-micro:checked ~ .say-micro, #nm-tow:checked ~ .say-tow,
#nm-blue:checked ~ .say-blue, #nm-fin:checked ~ .say-fin, #nm-ship:checked ~ .say-ship, #nm-wind:checked ~ .say-wind,
#nm-shrimp:checked ~ .say-shrimp, #nm-therm:checked ~ .say-therm { display: block; }
.nmap .say { max-width: 52rem; min-height: 5.6em; margin-top: 12px; }

@media (max-width: 860px) {
  .wstage { padding: 14px 12px; border-radius: 18px; }
  .wstage-views, .tt-views, .sr-views { grid-template-columns: 1fr; }
  .wf-sea { height: 230px; }
  .wf-rec { height: 300px; }
  .pm-plot { height: 260px; }
  .pm-medium { margin: 8px 0 0; }
  #tt-rays { height: 200px; }
  #tt-times { height: 240px; }
  #sr-gather { height: 440px; }
  #sr-stack { height: 300px; }
  .nm-chart::before { left: calc(118px + (100% - 118px) * .2675); width: calc((100% - 118px) * .2675); }
  .nm-axis { margin-left: 118px; }
  .nm-row { grid-template-columns: 118px minmax(0, 1fr); }
  .nm-name { font-size: .8rem; }
  .nm-t { font-size: .6rem; }
  .t1, .t3, .t6 { display: none; }
  .act-title { font-size: 2rem !important; }
}

@media (max-width: 860px) {
  .learn main { padding-top: 92px; }
  .part { padding: 24px 20px; border-radius: 18px; }
  .toc ol { grid-template-columns: 1fr; }
  .controls, #cnt-demo .controls { grid-template-columns: 1fr; }
  .demo { padding: 18px 14px 16px; }
  #pol-plot { height: 400px; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout .wide { grid-column: span 2; }
  .guns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nf-demo .controls { grid-template-columns: 1fr; }
  .tgrid { border-spacing: 1px; font-size: .55rem; letter-spacing: -.03em; }
  .tgrid th { padding: 4px 1px; }
  .tgrid td { min-width: 0; padding: 6px 1px; }
  .plot.cbar { height: 110px; }
  .facts, .lessons { grid-template-columns: 1fr; }
  .legend { columns: 1; }
  .svg-wide svg { min-width: 680px; }
  .svg-wide::before { content: "Swipe the drawing sideways to see all of it \2192"; display: block; margin-bottom: 6px; font-size: .8rem; color: var(--dim); }
  .rec-view::before, .sps-out::before { content: "Swipe sideways to see all 80 columns \2192"; display: block; margin-bottom: 6px; font: 400 .8rem var(--font); color: var(--dim); white-space: normal; }
  .rec-sample, .rec-view, .sps-out { font-size: .8rem; }
  #pass-plan { height: 260px; }
  .learn .links { display: none; }
}

/* lesson 9: streamers and nodes (2026-11-18) */
/* the history at the top: a year track drives the picture and the words (radio states, no script) */
.hist { margin: 0 0 34px; padding: 20px 22px 18px; border: 1px solid var(--edge-2); border-radius: 24px;
  background: radial-gradient(900px 420px at 0% 0%, rgba(74, 163, 224, .16), transparent 60%),
              radial-gradient(800px 420px at 100% 100%, rgba(95, 211, 196, .12), transparent 60%), #08111f;
  box-shadow: 0 30px 80px -40px rgba(74, 163, 224, .45); }
.hist-cap { margin: 0 0 10px; font-size: .84rem !important; color: var(--dim); }
.yrs { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0 0 6px; }
.yrs::before { content: ""; position: absolute; left: 4%; right: 4%; top: 1.15rem; height: 2px; background: var(--edge-2); }
.yrs label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border-radius: 12px;
  text-align: center; cursor: pointer; transition: background .2s var(--ease); }
.yrs label:hover { background: rgba(255, 255, 255, .06); }
.yrs b { display: grid; place-items: center; min-width: 3.6em; padding: 3px 8px; border: 1px solid var(--edge-2); border-radius: 99px; background: #0b1729;
  font: 600 .92rem var(--mono); color: var(--foam); transition: background .2s var(--ease), color .2s var(--ease); }
.yrs span { font-size: .8rem; color: var(--dim); line-height: 1.25; }
#hy-1916:checked ~ .yrs label[for="hy-1916"] b, #hy-1947:checked ~ .yrs label[for="hy-1947"] b,
#hy-1960:checked ~ .yrs label[for="hy-1960"] b, #hy-1984:checked ~ .yrs label[for="hy-1984"] b,
#hy-2005:checked ~ .yrs label[for="hy-2005"] b, #hy-2007:checked ~ .yrs label[for="hy-2007"] b,
#hy-2010:checked ~ .yrs label[for="hy-2010"] b, #hy-now:checked ~ .yrs label[for="hy-now"] b { background: var(--sky); border-color: var(--sky); color: var(--sky-ink); }
#hy-1916:checked ~ .yrs label[for="hy-1916"] span, #hy-1947:checked ~ .yrs label[for="hy-1947"] span,
#hy-1960:checked ~ .yrs label[for="hy-1960"] span, #hy-1984:checked ~ .yrs label[for="hy-1984"] span,
#hy-2005:checked ~ .yrs label[for="hy-2005"] span, #hy-2007:checked ~ .yrs label[for="hy-2007"] span,
#hy-2010:checked ~ .yrs label[for="hy-2010"] span, #hy-now:checked ~ .yrs label[for="hy-now"] span { color: var(--foam); }
#hy-1916:focus-visible ~ .yrs label[for="hy-1916"], #hy-1947:focus-visible ~ .yrs label[for="hy-1947"],
#hy-1960:focus-visible ~ .yrs label[for="hy-1960"], #hy-1984:focus-visible ~ .yrs label[for="hy-1984"],
#hy-2005:focus-visible ~ .yrs label[for="hy-2005"], #hy-2007:focus-visible ~ .yrs label[for="hy-2007"],
#hy-2010:focus-visible ~ .yrs label[for="hy-2010"], #hy-now:focus-visible ~ .yrs label[for="hy-now"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 1px; }
.hist-scene { margin: 6px 0 4px; }
.hist-scene svg { border-radius: 14px; }
svg .y1916, svg .y1947, svg .y1960, svg .y1984, svg .y2005, svg .y2007, svg .y2010, svg .ynow { display: none; }
#hy-1916:checked ~ .hist-scene .y1916, #hy-1947:checked ~ .hist-scene .y1947, #hy-1960:checked ~ .hist-scene .y1960,
#hy-1984:checked ~ .hist-scene .y1984, #hy-2005:checked ~ .hist-scene .y2005, #hy-2007:checked ~ .hist-scene .y2007,
#hy-2010:checked ~ .hist-scene .y2010, #hy-now:checked ~ .hist-scene .ynow { display: inline; }
#hy-1916:checked ~ .say-1916, #hy-1947:checked ~ .say-1947, #hy-1960:checked ~ .say-1960, #hy-1984:checked ~ .say-1984,
#hy-2005:checked ~ .say-2005, #hy-2007:checked ~ .say-2007, #hy-2010:checked ~ .say-2010, #hy-now:checked ~ .say-now { display: block; }
.hist .say { max-width: 52rem; min-height: 7.2em; margin-top: 10px; }
.hist > .demo-note { margin: 10px 0 0; }

/* the drawings: streamer, devices, node, plan views */
svg .hyd, svg .hyd-s { fill: #f8f2ea; }
svg .vs { fill: #5fd3c4; }
svg .mods { fill: #6cb8ee; }
svg .nd { fill: #5fd3c4; stroke: #07162b; stroke-width: 1.5; }
svg .cable-far { opacity: .55; }
svg .leadin { stroke: #b9b0a4; }
svg .stretch { stroke: #d8cbb8; stroke-width: 3; fill: none; }
svg .joint { stroke: #07162b; stroke-width: 3; fill: none; }
svg .bird { fill: #8fa1b5; stroke: #8fa1b5; stroke-width: 2; stroke-linejoin: round; }
svg .acu { fill: #9fd0f5; }
svg .housing { fill: #24364d; stroke: #8fa1b5; stroke-width: 2.5; }
svg .cell { fill: #31465f; stroke: #5f7187; stroke-width: 1.5; }
svg .cell-l { stroke: #5f7187; stroke-width: 1.5; fill: none; }
svg .chip { fill: #1b2a3c; stroke: #6cb8ee; stroke-width: 1.5; }
svg .osc { stroke: #9fd0f5; stroke-width: 1.8; fill: none; }
svg .ax { stroke: #5fd3c4; stroke-width: 3; fill: none; stroke-linecap: round; }
svg .ax-o { fill: #5fd3c4; }
svg .cmp-r { fill: none; stroke: #9fd0f5; stroke-width: 1.5; }
svg .cmp-n { fill: #9fd0f5; }
svg .spr { stroke: #6cb8ee; stroke-width: 2.2; fill: none; }
svg .rdots { fill: #f8f2ea; }
svg .sdots { fill: #9fd0f5; }
svg .rose { fill: rgba(255, 255, 255, .04); stroke: #4c5a6c; stroke-width: 1.2; }
svg .rose-f { fill: rgba(108, 184, 238, .6); }
svg .rose-full { fill: rgba(95, 211, 196, .4); stroke: #5fd3c4; }
svg .w-s, svg .w-n { display: none; }
#way-s:checked ~ .drawing .w-s, #way-n:checked ~ .drawing .w-n { display: inline; }
#way-s:checked ~ .say-ws, #way-n:checked ~ .say-wn { display: block; }
#way-s:checked ~ .seg label[for="way-s"], #way-n:checked ~ .seg label[for="way-n"] { background: var(--sky); color: var(--sky-ink); }
#way-s:focus-visible ~ .seg label[for="way-s"], #way-n:focus-visible ~ .seg label[for="way-n"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }
.way { margin: 22px 0 18px; }
.act-node svg .act-line { stroke: #5fd3c4; }
.act-node .act-no { color: #5fd3c4; }

/* tables and the pros and cons */
.cmp.sn-num { max-width: 44rem; }
.cmp.sn-num td:last-child { font-family: var(--font); color: var(--dim); }
.cmp.gp-cmp td, .cmp.sn-cmp td { min-width: 12rem; }
.sn-cmp { margin-top: 18px; }
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 8px; }
.pc-col { padding: 16px 18px 6px; border: 1px solid var(--edge-2); border-radius: 16px; background: rgba(6, 14, 28, .45); }
.pc-col h3 { margin: 0 0 8px !important; }
.pros, .cons { margin: 0 0 12px; padding: 0; list-style: none; }
.pros li, .cons li { position: relative; margin: 0 0 8px; padding-left: 1.5em; font-size: .95rem; }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 0; font: 700 1rem var(--mono); }
.pros li::before { content: "+"; color: var(--sky-2); }
.cons li::before { content: "−"; color: #cfc3ff; }

/* the three demos */
.rx-views, .or-views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#rx-side, #rx-spec { height: 250px; }
.rx-views + .plot { margin-top: 10px; }
#rx-trace { height: 170px; }
#or-node, #or-bars { height: 300px; }
.or-wave, .ck-bat { margin-left: 10px; }
.ck-run { margin: 0 0 12px; }
.ck-run .btn { min-width: 11em; }
#ck-plot { height: 340px; }

@media (max-width: 860px) {
  .hist { padding: 14px 12px; border-radius: 18px; }
  .yrs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yrs::before { display: none; }
  .hist .say { min-height: 0; }
  .rx-views, .or-views, .pc { grid-template-columns: 1fr; }
  #rx-side { height: 200px; }
  #rx-spec { height: 230px; }
  #or-node { height: 260px; }
  #or-bars { height: 260px; }
  #ck-plot { height: 300px; }
  .or-wave, .ck-bat { margin: 8px 0 0; }
}

/* lesson 10: an OBN survey, from the plan to the picture (2026-11-19) */
/* the words of a node survey at the top: a term drives the plan and the words (radio states, no script) */
.terms { margin: 0 0 34px; padding: 20px 22px 18px; border: 1px solid var(--edge-2); border-radius: 24px;
  background: radial-gradient(900px 420px at 0% 0%, rgba(95, 211, 196, .12), transparent 60%),
              radial-gradient(800px 420px at 100% 100%, rgba(108, 184, 238, .12), transparent 60%), #08111f; }
.tpick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.tpick label { padding: 8px 10px; border: 1px solid var(--edge-2); border-radius: 10px; font: 600 .88rem var(--font); color: var(--mist);
  text-align: center; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.tpick label:hover { background: rgba(255, 255, 255, .07); color: #fff; }
#tm-grid:checked ~ .tpick label[for="tm-grid"], #tm-patch:checked ~ .tpick label[for="tm-patch"],
#tm-carpet:checked ~ .tpick label[for="tm-carpet"], #tm-halo:checked ~ .tpick label[for="tm-halo"],
#tm-offset:checked ~ .tpick label[for="tm-offset"], #tm-azimuth:checked ~ .tpick label[for="tm-azimuth"],
#tm-gather:checked ~ .tpick label[for="tm-gather"], #tm-fold:checked ~ .tpick label[for="tm-fold"],
#tm-roll:checked ~ .tpick label[for="tm-roll"], #tm-under:checked ~ .tpick label[for="tm-under"] { background: var(--sky); border-color: var(--sky); color: var(--sky-ink); }
#tm-grid:focus-visible ~ .tpick label[for="tm-grid"], #tm-patch:focus-visible ~ .tpick label[for="tm-patch"],
#tm-carpet:focus-visible ~ .tpick label[for="tm-carpet"], #tm-halo:focus-visible ~ .tpick label[for="tm-halo"],
#tm-offset:focus-visible ~ .tpick label[for="tm-offset"], #tm-azimuth:focus-visible ~ .tpick label[for="tm-azimuth"],
#tm-gather:focus-visible ~ .tpick label[for="tm-gather"], #tm-fold:focus-visible ~ .tpick label[for="tm-fold"],
#tm-roll:focus-visible ~ .tpick label[for="tm-roll"], #tm-under:focus-visible ~ .tpick label[for="tm-under"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 1px; }
.tmap { margin: 6px 0 4px; }
.tmap svg { border-radius: 14px; }
svg .tg-grid, svg .tg-patch, svg .tg-carpet, svg .tg-halo, svg .tg-offset, svg .tg-azimuth, svg .tg-gather, svg .tg-fold, svg .tg-roll, svg .tg-under { display: none; }
#tm-grid:checked ~ .tmap .tg-grid, #tm-patch:checked ~ .tmap .tg-patch, #tm-carpet:checked ~ .tmap .tg-carpet,
#tm-halo:checked ~ .tmap .tg-halo, #tm-offset:checked ~ .tmap .tg-offset, #tm-azimuth:checked ~ .tmap .tg-azimuth,
#tm-gather:checked ~ .tmap .tg-gather, #tm-fold:checked ~ .tmap .tg-fold, #tm-roll:checked ~ .tmap .tg-roll,
#tm-under:checked ~ .tmap .tg-under { display: inline; }
#tm-grid:checked ~ .say-grid, #tm-patch:checked ~ .say-patch, #tm-carpet:checked ~ .say-carpet, #tm-halo:checked ~ .say-halo,
#tm-offset:checked ~ .say-offset, #tm-azimuth:checked ~ .say-azimuth, #tm-gather:checked ~ .say-gather, #tm-fold:checked ~ .say-fold,
#tm-roll:checked ~ .say-roll, #tm-under:checked ~ .say-under { display: block; }
.terms .say { max-width: 52rem; min-height: 6.4em; margin-top: 10px; }
.terms > .demo-note { margin: 10px 0 0; }

/* the plan's drawing */
svg .carp { fill: rgba(108, 184, 238, .05); stroke: #2b4569; stroke-width: 1.2; }
svg .shl { stroke: rgba(108, 184, 238, .16); stroke-width: 1; fill: none; }
svg .shl-b { stroke: rgba(159, 208, 245, .55); stroke-width: 1.4; fill: none; }
svg .narea { fill: none; stroke: rgba(95, 211, 196, .35); stroke-width: 1.2; stroke-dasharray: 5 4; }
svg .ndf { fill: rgba(95, 211, 196, .45); }
svg .ndb { fill: #5fd3c4; }
svg .ndr { fill: none; stroke: #6f8299; stroke-width: 1; }
svg .ndl { fill: none; stroke: rgba(95, 211, 196, .5); stroke-width: 1; stroke-dasharray: 2 2; }
svg .rovn { fill: #5fd3c4; stroke: #07162b; stroke-width: 1; }
svg .excl { fill: #0d2036; stroke: rgba(183, 163, 255, .45); stroke-width: 1.2; stroke-dasharray: 4 4; }
svg .excl-b { fill: rgba(183, 163, 255, .12); stroke: #b7a3ff; stroke-width: 1.6; stroke-dasharray: 5 4; }
svg .plat { fill: #2a3a52; stroke: #cfd6de; stroke-width: 1.6; }
svg .n0 { fill: #f8f2ea; stroke: #07162b; stroke-width: 1.5; }
svg .n1 { fill: #5fd3c4; stroke: #07162b; stroke-width: 1.5; }
svg .s0 { fill: #9fd0f5; stroke: #07162b; stroke-width: 1; }
svg .band { fill: rgba(95, 211, 196, .14); stroke: rgba(95, 211, 196, .6); stroke-width: 1; }
svg .hibox { fill: rgba(95, 211, 196, .06); stroke: #5fd3c4; stroke-width: 1.6; }
svg .dimn { stroke: #e8e0d4; stroke-width: 1.4; fill: none; }
svg .inset { fill: rgba(4, 12, 24, .82); stroke: #2b4569; stroke-width: 1.2; }
svg .sdot { fill: #9fd0f5; }
svg .halo { fill: rgba(108, 184, 238, .2); }
svg .offl { stroke: #f8f2ea; stroke-width: 2; fill: none; }
svg .north { stroke: #e8e0d4; stroke-width: 1.6; fill: none; } svg .north-h { fill: #e8e0d4; }
svg .azarc { stroke: #9fd0f5; stroke-width: 2.4; fill: none; }
svg .reach { fill: rgba(108, 184, 238, .07); stroke: #9fd0f5; stroke-width: 1.6; }
svg .gtr { stroke: #4c5a6c; stroke-width: 1; fill: none; }
svg .gev { stroke: #e8e0d4; stroke-width: 2; fill: none; } svg .gev-2 { stroke: #6cb8ee; }
svg .pair { stroke: rgba(232, 224, 212, .7); stroke-width: 1.4; fill: none; }
svg .bin { fill: rgba(108, 184, 238, .35); stroke: #f8f2ea; stroke-width: 1.6; }
svg .rollp { stroke: #5fd3c4; stroke-width: 2.2; fill: none; stroke-dasharray: 6 4; }
svg .rollh { fill: #5fd3c4; }

/* part 9: one missed shot, in every gather (radio states, no script) */
.miss { margin: 22px 0 18px; }
svg .ms-gone, svg .ms-hole, svg .ms-say, svg .ms-path { display: none; }
svg .ms-gone { fill: #0d2036; stroke: #b7a3ff; stroke-width: 1.8; stroke-dasharray: 3 2; }
svg .ms-hole { fill: rgba(183, 163, 255, .22); stroke: #b7a3ff; stroke-width: 1.2; }
svg .ms-say { fill: #cfc3ff; }
svg .ms-shot, svg .ms-tr { display: inline; }
#ms-one:checked ~ .drawing .ms-gone, #ms-one:checked ~ .drawing .ms-hole, #ms-one:checked ~ .drawing .ms-say { display: inline; }
#ms-one:checked ~ .drawing .ms-path { display: inline; stroke: #b7a3ff; stroke-dasharray: 4 4; }
#ms-one:checked ~ .drawing .ms-shot, #ms-one:checked ~ .drawing .ms-tr { display: none; }
#ms-all:checked ~ .say-all, #ms-one:checked ~ .say-one { display: block; }
#ms-all:checked ~ .seg label[for="ms-all"], #ms-one:checked ~ .seg label[for="ms-one"] { background: var(--sky); color: var(--sky-ink); }
#ms-all:focus-visible ~ .seg label[for="ms-all"], #ms-one:focus-visible ~ .seg label[for="ms-one"] { outline: 3px solid rgba(108, 184, 238, .8); outline-offset: 2px; }

/* the words, in one place */
.words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin: 14px 0 0; }
.words div { padding: 10px 14px; border: 1px solid var(--edge); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.words dt { font-weight: 600; color: var(--foam); }
.words dd { margin: 4px 0 0; font-size: .93rem; color: var(--mist); }
.words dd a { white-space: nowrap; }

/* the six demos */
.gm-views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
#gm-plan, #gm-rose, #ps-shots, #ps-zoom { height: 380px; }
#gm-plan { cursor: crosshair; }
.gm-node { margin-left: 10px; }
.rl-run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 12px; }
.rl-run .btn { min-width: 7em; }
.rl-day { flex: 1 1 260px; font-size: .88rem; font-weight: 600; color: var(--foam); }
.rl-day output { float: right; font: 500 .88rem var(--mono); color: var(--sky-2); }
.rl-day input { display: block; width: 100%; margin-top: 8px; accent-color: var(--sky); }
#rl-plan { height: 250px; }
#rl-time { height: 170px; }
#bl-cont { height: 150px; }
#bl-gath { height: 440px; }
#pz-plot { height: 400px; }
#pz-demo [hidden] { display: none; }
#pz-demo > .pick, #nr-demo > .pick { margin-bottom: 4px; }
#nr-plot { height: 330px; }

@media (max-width: 860px) {
  .terms { padding: 14px 12px; border-radius: 18px; }
  .tpick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms .say { min-height: 0; }
  .words, .gm-views { grid-template-columns: 1fr; }
  #gm-plan, #gm-rose, #ps-shots, #ps-zoom { height: 330px; }
  .gm-node { margin: 8px 0 0; }
  #bl-gath { height: 380px; }
  #pz-plot { height: 360px; }
}
svg .lblbg { fill: rgba(8, 17, 31, .86); }
@media (max-width: 600px) {
  .tmap { overflow-x: auto; }
  .tmap svg { min-width: 540px; }
}
