/* The Inner Void: the education section (docs/design/inner-void/brief.md). The 13-Inner-Void kit's colours, measured
   in tools/design/brand/vet/17-inner-void-logos.json: sand on night 12.14:1, text 16.96:1, muted 7.58:1, ink on sand
   11.45:1, sky 9.06:1. Sand stays inside this page; it is not a site accent. The page stands alone (no site.css), so the
   section's look is its own and the shared site's header tape and glows stay off it. */
/* IBM Plex Sans and Mono, the section's own type (owner's pick 2026-10-21; OFL, assets/fonts/IBM-Plex-LICENSE.txt). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
:root { color-scheme: dark; --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace; --gutter: 16px; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.iv-page {
  --iv-night: #0A0D16;
  --iv-panel: #111522;
  --iv-panel-2: #161B2B;
  --iv-line: rgba(233, 200, 145, 0.16);
  --iv-line-soft: rgba(245, 239, 228, 0.08);
  --iv-sand: #E9C891;
  --iv-ink: #1A1408;
  --iv-text: #F5EFE4;
  --iv-muted: #A8A196;
  --iv-sky: #38BDF8;
  --iv-up: #2DD4A4;
  --iv-down: #F87171;
  margin: 0;
  font: 16px/1.5 var(--font);
  background: var(--iv-night);
  color: var(--iv-text);
}
.iv-wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.iv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.iv-skip { position: absolute; left: var(--gutter); top: -60px; padding: 10px 16px; border-radius: 10px; background: var(--iv-sand); color: var(--iv-ink); font-weight: 600; }
.iv-skip:focus { top: 12px; }
.iv-header { border-bottom: 1px solid var(--iv-line-soft); }
.iv-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.iv-home img { display: block; width: 120px; height: auto; }
.iv-section { color: var(--iv-sand); font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.iv-footer { border-top: 1px solid var(--iv-line-soft); padding-block: 28px; color: var(--iv-muted); font-size: 14px; }
.iv-footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.iv-footer p { margin: 0; }
.iv-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.iv-footer a { color: var(--iv-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.iv-footer a:hover, .iv-section:hover { text-decoration: underline; }
/* Nothing of the section shows until its flag says so; with the flag off the page gives way to the 404. */
.iv-main { min-height: 70vh; padding-block: 40px 72px; visibility: hidden; }
.iv-ready .iv-main { visibility: visible; }
.iv-root { display: grid; gap: 24px; max-width: 820px; }

.iv-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--iv-sand); }
.iv-muted, .iv-fine { color: var(--iv-muted); }
.iv-fine { font-size: 13px; }

.iv-hero { display: grid; gap: 14px; }
.iv-logo { width: min(280px, 70vw); height: auto; }
.iv-hero h1, .iv-lesson-head h1, .iv-step h2 { font-weight: 700; }
.iv-hero h1, .iv-lesson-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.01em; }
.iv-lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--iv-text); max-width: 60ch; }

.iv-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.iv-card { display: grid; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--iv-line); border-radius: 14px; background: var(--iv-panel); color: inherit; text-decoration: none; }
.iv-card:hover, .iv-card:focus-visible { border-color: var(--iv-sand); }
.iv-card-title { font-size: 20px; font-weight: 700; }
.iv-card-sum { color: var(--iv-muted); line-height: 1.5; }
.iv-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 14px; color: var(--iv-muted); }
.iv-state { color: var(--iv-sand); }

.iv-lesson-head { display: grid; gap: 10px; }
.iv-back { color: var(--iv-sky); text-decoration: none; font-size: 15px; width: max-content; }
.iv-back:hover { text-decoration: underline; }
.iv-rail { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; }
.iv-rail li { flex: 1; height: 6px; border-radius: 3px; background: var(--iv-line-soft); }
.iv-rail .is-done { background: var(--iv-sand); }
.iv-rail .is-now { background: linear-gradient(90deg, var(--iv-sand) 40%, var(--iv-line-soft) 40%); }

.iv-done-stack { display: grid; gap: 8px; }
.iv-done { border: 1px solid var(--iv-line-soft); border-radius: 10px; background: var(--iv-panel); padding: 12px 16px; }
.iv-done summary { cursor: pointer; display: flex; gap: 10px; align-items: center; color: var(--iv-muted); }
.iv-done[open] summary { color: var(--iv-text); margin-bottom: 8px; }
.iv-done p { line-height: 1.55; }
.iv-tick { color: var(--iv-sand); font-weight: 700; }

.iv-step { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--iv-line); border-radius: 16px; background: var(--iv-panel); }
.iv-step h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.iv-step h2:focus { outline: none; }
.iv-learn, .iv-explain { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; }
.iv-rule { margin: 0; padding: 12px 14px; border: 1px solid rgba(233, 200, 145, 0.35); border-radius: 8px; background: rgba(233, 200, 145, 0.07); font-weight: 600; line-height: 1.5; }
.iv-note { border-top: 1px solid var(--iv-line-soft); padding-top: 10px; }
.iv-note summary { cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--iv-sky); }
.iv-note p { margin: 8px 0 0; line-height: 1.55; color: var(--iv-text); }

.iv-chart-wrap { border: 1px solid var(--iv-line-soft); border-radius: 12px; background: var(--iv-night); padding: 8px; }
.iv-chart { display: block; width: 100%; height: auto; }
.iv-chart:focus-visible { outline: 2px solid var(--iv-sky); outline-offset: 4px; border-radius: 8px; }
.iv-grid { stroke: rgba(245, 239, 228, 0.06); stroke-width: 1; }
.iv-chart-tag { fill: var(--iv-muted); font: 11px var(--mono); letter-spacing: 0.1em; }
.iv-up { fill: var(--iv-up); stroke: var(--iv-up); }
.iv-down { fill: var(--iv-down); stroke: var(--iv-down); }
.iv-wick { stroke-width: 1.4; }
.iv-pickable .iv-hit { fill: transparent; cursor: pointer; }
.iv-pickable .iv-hit:hover { fill: rgba(233, 200, 145, 0.10); }
.iv-cursor { fill: rgba(56, 189, 248, 0.16); }
.iv-mark-dot { fill: var(--iv-sand); }
.iv-mark-text { fill: var(--iv-sand); font: 600 12px var(--font); }
.iv-overlay { stroke: var(--iv-sand); stroke-width: 1.5; stroke-dasharray: 6 5; }
.iv-overlay-text { fill: var(--iv-sand); font: 600 12px var(--font); }

.iv-check { display: grid; gap: 12px; padding-top: 4px; }
.iv-q { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.iv-hint { margin: 0; color: var(--iv-muted); }
.iv-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.iv-option { min-height: 48px; padding: 10px 14px; text-align: left; font: inherit; color: var(--iv-text); background: var(--iv-panel-2); border: 1px solid var(--iv-line); border-radius: 10px; cursor: pointer; }
.iv-option:hover { border-color: var(--iv-sand); }
.iv-option[aria-pressed="true"] { border-color: var(--iv-down); }
.iv-option:focus-visible, .iv-btn:focus-visible, .iv-card:focus-visible, .iv-num input:focus-visible { outline: 2px solid var(--iv-sky); outline-offset: 2px; }
.iv-num { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.iv-num input { width: 9ch; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 18px; color: var(--iv-text); background: var(--iv-night); border: 1px solid var(--iv-line); border-radius: 10px; }
.iv-unit { color: var(--iv-muted); }
.iv-feedback { margin: 0; line-height: 1.5; }
.iv-feedback.is-wrong { color: var(--iv-text); padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }
.iv-feedback.is-right { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(45, 212, 164, 0.4); background: rgba(45, 212, 164, 0.08); }
.iv-passed { margin: 0; display: flex; gap: 10px; color: var(--iv-muted); line-height: 1.5; }

.iv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; width: max-content; font: 600 16px var(--font); color: var(--iv-ink); background: var(--iv-sand); border: 1px solid var(--iv-sand); border-radius: 10px; cursor: pointer; text-decoration: none; }
.iv-btn-ghost { color: var(--iv-text); background: transparent; border-color: var(--iv-line); }
.iv-btn-ghost:hover { border-color: var(--iv-sand); }
.iv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-recap { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }

.iv-locked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iv-locked { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px dashed var(--iv-line-soft); border-radius: 10px; color: var(--iv-muted); }

@media (max-width: 560px) {
  .iv-step { padding: 16px; }
  .iv-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .iv-step { animation: iv-open 0.24s ease-out; }
  @keyframes iv-open { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Real charts (tools/inner-void/web.mjs): the PDFs' drawing, so its label classes are styled here in the section's type. */
.iv-real { padding: 6px; }
.iv-real .iv-chart { aspect-ratio: auto; }
.iv-chart .axis { font: 400 10px var(--font); fill: var(--iv-muted); font-variant-numeric: tabular-nums; }
.iv-chart .lab { font: 600 12px var(--font); }
.iv-chart .badge { font: 700 10px var(--font); fill: var(--iv-night); }
.iv-chart .legend { font: 600 12px var(--font); fill: var(--iv-text); }
.iv-chart-wait { margin: 0; padding: 48px 12px; text-align: center; }
.iv-marked { fill: rgba(233, 200, 145, 0.10); stroke: var(--iv-sand); stroke-width: 1.4; }

.iv-chart:focus:not(:focus-visible) { outline: none; }
.iv-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.iv-scroll .iv-chart { width: 760px; max-width: none; }

/* Lessons that grade (docs/design/lessons-grade): a lesson's finish shows how its patterns have done beside an ordinary
   day. Sand for the pattern, muted for any day; never green or red for a verdict. No motion. */
.iv-record { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--iv-line-soft); }
.iv-record[hidden] { display: none; }
.ivr-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.ivr-lead { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--iv-muted); }
.ivr-lead b { color: var(--iv-text); font-weight: 600; }
.ivr-key { margin: 0; font-size: 13px; color: var(--iv-muted); }
.ivr-key i { display: inline-block; width: 12px; height: 4px; margin: 0 6px 0 14px; border-radius: 2px; vertical-align: middle; }
.ivr-key i:first-child { margin-left: 0; }
.ivr-own { background: var(--iv-sand); }
.ivr-any { background: var(--iv-muted); }
.ivr-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ivr-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 20px; padding: 14px 16px; border: 1px solid var(--iv-line-soft); border-radius: 10px; background: var(--iv-panel-2); }
.ivr-name b { display: block; font-weight: 600; }
.ivr-name span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--iv-muted); }
.ivr-bars { display: grid; gap: 8px; align-content: start; }
.ivr-bar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 132px); align-items: center; gap: 10px; font-size: 13px; color: var(--iv-muted); }
.ivr-bar > i { display: block; height: 8px; border-radius: 4px; background: var(--iv-line-soft); }
.ivr-bar > i > i { display: block; height: 100%; min-width: 2px; border-radius: 4px; }
.ivr-bar b { font-weight: 600; color: var(--iv-text); text-align: right; font-variant-numeric: tabular-nums; }
.ivr-verdict { grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px solid var(--iv-line-soft); font-size: 15px; font-weight: 600; line-height: 1.45; }
.ivr-read { display: grid; gap: 14px; }
.ivr-read h4, .ivr-adv h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.ivr-read p, .ivr-read ul, .ivr-adv p, .ivr-skip { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--iv-muted); }
.ivr-read ul, .ivr-skip { padding-left: 20px; display: grid; gap: 6px; }
.ivr-skip b { color: var(--iv-text); font-weight: 600; }
.ivr-more { border-top: 1px solid var(--iv-line-soft); }
.ivr-more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--iv-sky); }
.ivr-more summary:focus-visible { outline: 2px solid var(--iv-sky); outline-offset: 2px; border-radius: 6px; }
.ivr-adv { padding: 12px 0; border-top: 1px solid var(--iv-line-soft); }
.ivr-adv .ivr-rule { margin-bottom: 10px; font-size: 14px; }
.ivr-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ivr-t th { padding: 0 8px 6px 0; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--iv-muted); text-align: left; vertical-align: bottom; }
.ivr-t tbody th { padding: 8px 8px 8px 0; border-top: 1px solid var(--iv-line-soft); font-size: 13px; font-weight: 600; color: var(--iv-text); vertical-align: top; }
.ivr-t td { padding: 8px 8px 8px 0; border-top: 1px solid var(--iv-line-soft); vertical-align: top; }
.ivr-t td small { display: block; font-size: 12px; color: var(--iv-muted); }
@media (max-width: 719px) {
  .ivr-row { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .ivr-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .ivr-bar > i { grid-column: 1 / -1; grid-row: 2; }
  .ivr-t th, .ivr-t td, .ivr-t tbody th { padding-right: 4px; }
}
