/* Rooms: the "canvas & ledger" layout every feature page shares, plus tools, charts and tables. */

/* ---------- room layout ---------- */
.room main { --canvas-w: max(320px, 33%); display: grid; grid-template-columns: var(--canvas-w) minmax(0, 1fr); align-items: start; background: linear-gradient(90deg, var(--room-bg) 0 var(--canvas-w), transparent var(--canvas-w)); }
.canvas {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-5);
  padding: var(--s-6) clamp(20px, 3.4vw, 56px); background: var(--room-bg); color: var(--room-ink);
  isolation: isolate;
}
.canvas::before { /* canvas weave */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: url("../img/canvas-grain.png"); background-size: 160px; mix-blend-mode: multiply; pointer-events: none;
}
.canvas-flower { position: relative; width: min(100%, 300px, 30svh); aspect-ratio: 1; margin-left: -6px; }
.canvas-flower img {
  width: 100%; height: 100%; border-radius: 50%;
  transform: rotate(var(--sway, 0deg)); will-change: transform;
  filter: drop-shadow(0 18px 30px rgba(20, 12, 0, .28));
  animation: sway 9s ease-in-out infinite alternate;
}
@keyframes sway { from { --sway: -1.6deg; } to { --sway: 1.6deg; } }
@property --sway { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.canvas { container-type: inline-size; }
.canvas h1 { font-size: clamp(2.4rem, 15cqi, 5.8rem); }
.canvas h1.is-short { font-size: clamp(2.6rem, 18cqi, 6.4rem); }
.canvas h1.is-long { font-size: clamp(2.2rem, 12.5cqi, 4.6rem); }
.canvas.is-tall { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--header-h)); justify-content: flex-start; }
.chapter { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: var(--t-lg); line-height: 1.25; }
.chapter-note { max-width: 44ch; font-size: var(--t-sm); line-height: 1.55; opacity: .92; }
.canvas .quote { font-size: 1.15rem; max-width: 34ch; }
.canvas .quote-cite { opacity: .85; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-sm); padding: 0; margin: 0; list-style: none; }
.toc a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc a:hover { text-decoration-thickness: 2px; }

.ledger { padding: var(--s-7) clamp(18px, 4vw, 64px) var(--s-9); min-width: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 var(--s-5); padding: 0; font-size: var(--t-sm); color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--rule-strong); }
.breadcrumb a { color: var(--ink-2); }
.ledger-intro { max-width: var(--measure); margin-bottom: var(--s-8); }
.ledger-intro .lead + p { margin-top: var(--s-4); }

/* room colours: the canvas side of each room */
.room--finance { --room-bg: var(--sun); --room-ink: var(--midnight); --room-portal: #E8B923; }
.room--analytics { --room-bg: var(--midnight); --room-ink: var(--ivory); --room-portal: #192B49; }
.room--marketing { --room-bg: var(--olive-deep); --room-ink: var(--ivory); --room-portal: #56632C; }
.room--models { --room-bg: var(--charcoal); --room-ink: var(--ivory); --room-portal: #252A31; }
.room--contact { --room-bg: #F6E7C1; --room-ink: var(--midnight); --room-portal: #F6E7C1; }
.room--models .chapter, .room--analytics .chapter { color: var(--sun); }
.room--marketing .chapter { color: #F3D77A; }

/* ---------- tools ---------- */
.tool { margin-top: var(--s-9); scroll-margin-top: calc(var(--header-h) + 16px); }
.tool:first-of-type { margin-top: 0; }
.tool-head { max-width: var(--measure); margin-bottom: var(--s-5); }
.tool-head p { margin-top: var(--s-3); color: var(--ink-2); }
.bench {
  display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: var(--s-6);
  padding: var(--s-6); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -28px rgba(80, 55, 10, .35);
}
.bench-inputs { display: grid; gap: var(--s-4); align-content: start; }
.bench-inputs fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.bench-inputs legend { font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s-2); padding: 0; }
.bench-results { min-width: 0; display: grid; gap: var(--s-5); align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: end; }
.slider-field { display: grid; gap: 4px; }
.slider-field .slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.slider-field output { font-weight: 700; font-variant-numeric: tabular-nums; }
.input-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.figure-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); }
.hero-value { font-family: var(--f-text); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.hero-label { font-size: var(--t-sm); color: var(--ink-3); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.stat dt { font-size: var(--t-xs); color: var(--ink-3); }
.stat dd { margin: 2px 0 0; font-weight: 700; font-size: 1.25rem; }
.verdict { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); background: #F5EEDC; }
.verdict svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.verdict.is-good { background: #EEF0E0; } .verdict.is-good strong { color: var(--good-ink); }
.verdict.is-warn { background: #FBF0D2; } .verdict.is-warn strong { color: var(--warn-ink); }
.verdict.is-bad { background: #F8E6DA; } .verdict.is-bad strong { color: var(--bad-ink); }
.note { font-size: var(--t-sm); color: var(--ink-2); max-width: var(--measure); }
.note strong { color: var(--ink); }
.caveats { margin: 0; padding-left: 1.1em; font-size: var(--t-sm); color: var(--ink-2); display: grid; gap: 6px; }
.figure-title { font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s-2); }
.figure-sub { font-size: var(--t-xs); color: var(--ink-3); margin-top: -4px; margin-bottom: var(--s-2); }

/* tables */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data-table thead th { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; border-bottom: 1.5px solid var(--rule-strong); }
.data-table .is-num { text-align: right; }
.data-table tbody th { font-weight: 600; }
.data-table tr.is-strong td, .data-table tr.is-strong th { font-weight: 700; }
.data-table td.is-pos { color: var(--good-ink); } .data-table td.is-neg { color: var(--bad-ink); }
.data-table .cell-hi { background: #F7E9C3; font-weight: 700; }
.table-twin { margin-top: var(--s-2); }
.table-twin summary { cursor: pointer; font-size: var(--t-sm); font-weight: 700; color: var(--link); width: max-content; padding: 6px 0; }
.table-twin[open] summary { margin-bottom: var(--s-2); }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; --c-s1: var(--series-1); --c-s2: var(--series-2); --c-accent: var(--series-2); --c-grid: var(--grid); --c-axis: var(--axis); --c-text: var(--ink-3); --c-ink: var(--ink); --c-surface: var(--paper); --c-band: var(--series-1); }
.chart-svg { overflow: visible; font-family: var(--f-text); }
.chart-svg:focus-visible { outline: 3px solid var(--midnight); outline-offset: 4px; }
.chart .grid { stroke: var(--c-grid); stroke-width: 1; }
.chart .grid.zero, .chart .baseline { stroke: var(--c-axis); stroke-width: 1.25; }
.chart .axis-line { stroke: var(--c-axis); stroke-width: 1; }
.chart .tick { fill: var(--c-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .tick-cat { fill: var(--c-ink); font-size: 12.5px; }
.chart .axis-label { fill: var(--c-text); font-size: 12px; font-weight: 700; }
.chart .value-label, .chart .end-label { fill: var(--c-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .cell-label { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.chart .mark { transition: opacity var(--t-fast); }
.chart .mark.is-dim { opacity: .35; }
.chart .m-s1 { fill: var(--c-s1); stroke: var(--c-s1); }
.chart .m-s2 { fill: var(--c-s2); stroke: var(--c-s2); }
.chart .m-accent { fill: var(--c-accent); stroke: var(--c-accent); }
.chart .m-pos { fill: var(--pos); stroke: var(--pos); }
.chart .m-neg { fill: var(--neg); stroke: var(--neg); }
.chart .m-muted { fill: #C9B98F; stroke: #C9B98F; }
.chart .m-light { fill: #E2C77A; stroke: #E2C77A; }
.chart .mark { stroke: none; }
.chart .curve { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .curve.m-truth { stroke: var(--c-text); stroke-dasharray: 0; opacity: .7; }
.chart .band { stroke: none; opacity: .14; }
.on-night .chart .band { opacity: .26; }
.chart .dot { stroke: var(--c-surface); stroke-width: 2; }
.chart .dot.is-active { r: 7; }
.chart .dot.m-hollow { fill: var(--c-surface); stroke: var(--c-s1); stroke-width: 2; }
.chart .ref-line { stroke: var(--c-axis); stroke-width: 1; }
.chart .ref-line.is-strong { stroke: var(--c-ink); stroke-width: 1.25; opacity: .55; }
.chart .crosshair { stroke: var(--c-ink); stroke-width: 1; opacity: .45; }
.chart .hit { fill: transparent; }
.chart .cell { stroke: none; }
.chart .cell.is-focus, .chart .cell.is-selected { stroke: var(--c-ink); stroke-width: 2.5; }
.chart-tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 120px; max-width: 260px;
  padding: 8px 10px; border-radius: 8px; background: var(--midnight); color: var(--ivory); font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 10px 24px -8px rgba(10, 18, 32, .45);
}
.tip-title { font-weight: 700; margin-bottom: 4px; color: #F3D77A; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row strong { font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--on-night-2); }
.tip-key { width: 12px; height: 2px; border-radius: 1px; background: currentColor; }
.tip-key.m-s1 { background: var(--series-1-night); } .tip-key.m-s2 { background: var(--sun); }
.tip-key.m-pos { background: #7FA2D6; } .tip-key.m-neg { background: #E08A5C; } .tip-key.m-light { background: #E2C77A; } .tip-key.m-accent { background: var(--sun); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: var(--s-2) 0 0; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-key { width: 12px; height: 12px; border-radius: 3px; background: var(--c-s1, var(--series-1)); }
.legend-key.is-line { height: 2.5px; width: 16px; border-radius: 2px; }
.legend-key.m-s1 { background: var(--series-1); } .legend-key.m-s2 { background: var(--series-2); }
.legend-key.m-light { background: #E2C77A; } .legend-key.m-accent { background: var(--series-2); }
.legend-key.m-pos { background: var(--pos); } .legend-key.m-neg { background: var(--neg); } .legend-key.m-truth { background: var(--ink-3); }

/* ---------- night surfaces (analytics room) ---------- */
.on-night { color: var(--on-night); }
.on-night .bench { background: var(--midnight-2); border-color: rgba(255, 248, 232, .1); box-shadow: none; }
.on-night .chart { --c-s1: var(--series-1-night); --c-s2: var(--sun); --c-accent: var(--sun); --c-grid: rgba(255, 248, 232, .09); --c-axis: rgba(255, 248, 232, .28); --c-text: var(--on-night-3); --c-ink: var(--on-night); --c-surface: var(--midnight-2); }
.on-night .legend { color: var(--on-night-2); }
.on-night .legend-key.m-s1 { background: var(--series-1-night); } .on-night .legend-key.m-s2, .on-night .legend-key.m-accent { background: var(--sun); }
.on-night .chart .m-pos { fill: #7FA2D6; stroke: #7FA2D6; }
.on-night .chart .m-neg { fill: #E08A5C; stroke: #E08A5C; }
.on-night .chart-tip { background: var(--ivory); color: var(--midnight); }
.on-night .tip-title { color: var(--link); }
.on-night .tip-row span { color: var(--ink-2); }
.on-night .tip-key.m-s1 { background: var(--series-1); } .on-night .tip-key.m-s2, .on-night .tip-key.m-accent { background: var(--series-2); }
.on-night .input, .on-night .select, .on-night .textarea { background: #0E1A2E; border-color: rgba(255, 248, 232, .22); color: var(--on-night); }
.on-night .input:focus-visible, .on-night .select:focus-visible, .on-night .textarea:focus-visible { outline-color: var(--sun); border-color: var(--sun); }
.on-night .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23FFF8E8' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.on-night .field-hint, .on-night .hero-label, .on-night .stat dt, .on-night .muted { color: var(--on-night-3); }
.on-night .note, .on-night .caveats, .on-night .tool-head p, .on-night .lead { color: var(--on-night-2); }
.on-night .figure-sub, .on-night .stat-sub { color: var(--on-night-3); }
.on-night .note strong { color: var(--on-night); }
.on-night .data-table th, .on-night .data-table td { border-bottom-color: rgba(255, 248, 232, .1); }
.on-night .data-table thead th { color: var(--on-night-3); border-bottom-color: rgba(255, 248, 232, .25); }
.on-night .data-table td.is-pos { color: #A9C38A; } .on-night .data-table td.is-neg { color: #F0A57C; }
.on-night .data-table .cell-hi { background: rgba(232, 185, 35, .16); }
.on-night .table-twin summary, .on-night a { color: #F3D77A; }
.on-night .btn-primary { background: var(--sun); color: var(--midnight); }
.on-night .btn-primary:hover { background: #F0C643; }
.on-night .btn-secondary { color: var(--on-night); border-color: rgba(255, 248, 232, .6); }
.on-night .btn-secondary:hover { background: rgba(255, 248, 232, .08); }
.on-night .segmented { background: #0E1A2E; }
.on-night .segmented label { color: var(--on-night-2); }
.on-night .segmented label:hover { color: var(--on-night); }
.on-night .segmented input:checked + label { background: var(--sun); color: var(--midnight); }
.on-night .chip span { background: #0E1A2E; border-color: rgba(255, 248, 232, .25); }
.on-night .chip input:checked + span { background: rgba(232, 185, 35, .14); border-color: var(--sun); }
.on-night .chip input:checked + span::before { background: var(--sun); border-color: var(--sun); }
.on-night .verdict { background: rgba(255, 248, 232, .06); }
.on-night .verdict.is-good strong { color: #B9CF94; } .on-night .verdict.is-warn strong { color: #F3D77A; } .on-night .verdict.is-bad strong { color: #F0A57C; }
.on-night :focus-visible { outline-color: var(--sun); }
.on-night .chart-svg:focus-visible { outline-color: var(--sun); }
.on-night .chart .cell.is-focus, .on-night .chart .cell.is-selected { stroke: var(--sun); }
.on-night .breadcrumb ol { color: var(--on-night-3); }
.on-night .breadcrumb a { color: var(--on-night-2); }
.on-night .affix-pre, .on-night .affix-post { background: #13223B; border-color: rgba(255, 248, 232, .22); color: var(--on-night-3); }

/* sources */
.sources { margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); max-width: var(--measure); }
.sources h2 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.sources ol { padding-left: 1.2em; display: grid; gap: 6px; }
.on-night .sources { border-top-color: rgba(255, 248, 232, .14); color: var(--on-night-2); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .room main { grid-template-columns: 1fr; background: none; }
  .canvas { position: relative; top: 0; height: auto; min-height: 0; padding: var(--s-6) clamp(18px, 5vw, 40px) var(--s-7); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); row-gap: var(--s-4); align-items: center; }
  .canvas.is-tall { min-height: 0; }
  .canvas-flower { width: clamp(96px, 26vw, 170px); grid-row: 1; grid-column: 1; margin: 0; }
  .canvas > :not(.canvas-flower):not(h1) { grid-column: 1 / -1; }
  .canvas h1, .canvas h1.is-short, .canvas h1.is-long { grid-row: 1; grid-column: 2; font-size: clamp(2rem, 11.5cqi, 3.8rem); }
  .canvas h1.is-long { font-size: clamp(1.8rem, 9cqi, 3.2rem); }
  .bench { grid-template-columns: 1fr; padding: var(--s-5); }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .bench { padding: var(--s-4); border-radius: var(--r-md); margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) { .canvas-flower img { animation: none; transition: none; } }

/* ---------- small pieces used by several rooms ---------- */
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--midnight); }
.on-night .check input { accent-color: var(--sun); }
.segmented-stack { display: grid; border-radius: 14px; }
.segmented-stack label { border-radius: 10px; }
.split-bar { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; }
.split-bar span { min-width: 2px; }
.split-a { background: var(--series-1); border-radius: 4px 0 0 4px; }
.split-b { background: var(--series-2); border-radius: 0 4px 4px 0; }
.sens-table th:first-child { color: var(--ink-3); font-weight: 700; }
.sens-table td, .sens-table th { padding: 7px 10px; }
.chart .zone-bad { fill: #F1CDB6; } .chart .zone-warn { fill: #F4E1A6; } .chart .zone-good { fill: #D8DEB8; }
.chart .zone-marker { fill: var(--midnight); } .chart .zone-marker-line { stroke: var(--midnight); stroke-width: 2.5; }
.chart .zone-name { fill: var(--midnight); font-size: 12px; font-weight: 700; }
.chart .zone-score { fill: var(--midnight); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- analytics room ---------- */
.room--analytics { background: #101D33; }
.room--analytics .ledger { color: var(--on-night); }
.room--analytics .site-footer { background: #0B1528; }
.bench-stack { grid-template-columns: 1fr; }
.data-source { display: grid; gap: var(--s-4); }
.own-data { display: grid; gap: var(--s-3); }
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.dataset-note { font-size: var(--t-sm); color: var(--ink-2); }
.on-night .dataset-note { color: var(--on-night-2); }
.quality-grid { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr); gap: var(--s-6); align-items: start; }
.quality-score .hero-value { font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem); }
.hero-of { font-size: 0.45em; font-weight: 600; color: var(--on-night-3); }
.q-parts { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.q-parts li { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-3); padding-bottom: 8px; border-bottom: 1px solid rgba(255, 248, 232, .1); }
.q-label { font-weight: 700; }
.q-detail { grid-column: 1; color: var(--on-night-3); font-size: var(--t-xs); }
.q-pen { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; color: var(--on-night-2); }
.quality-actions h3 { font-size: var(--t-sm); margin-bottom: var(--s-2); }
.quality-actions h3 + * + h3 { margin-top: var(--s-5); }
.q-suggestions, .q-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--t-sm); }
.q-history { padding-left: 1.1em; list-style: decimal; color: var(--on-night-2); }
.q-info { color: var(--on-night-2); padding-left: 14px; position: relative; }
.q-info::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.q-action .check { min-height: 36px; }
.data-table td.is-empty { color: #F0A57C; font-style: italic; }
.stats-dense { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--s-3) var(--s-4); }
.stats-dense dd { font-size: 1.05rem; }
.reading { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-sm); }
.reading li { padding-left: 16px; position: relative; }
.reading li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.reading li.muted::before { background: var(--on-night-3); }
.reading li.is-warn::before { background: var(--terracotta, #C96F36); }
#reg-checks { display: grid; gap: var(--s-3); }
.predict { padding: var(--s-5); border-radius: var(--r-md); background: rgba(255, 248, 232, .04); border: 1px solid rgba(255, 248, 232, .1); }
.predict h3 { margin-bottom: 4px; }
.predict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.predict-out { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--on-night-2); }
.predict-out strong { display: block; font-size: 1.35rem; color: var(--on-night); margin-bottom: 2px; }
/* the same box on light pages */
.ledger:not(.on-night) .predict { background: #F6E7C1; border-color: var(--rule); }
.ledger:not(.on-night) .predict-out { margin-top: var(--s-2); color: var(--ink-2); }
.ledger:not(.on-night) .predict-out strong { color: var(--midnight); }
.reg-body { display: grid; gap: var(--s-5); }
.causation { margin-top: var(--s-2); }
.on-night .causation { background: rgba(232, 185, 35, .1); }
.on-night .causation svg { color: var(--sun); }
@media (max-width: 760px) { .quality-grid { grid-template-columns: 1fr; } }
.bench-results > *, .reg-body > *, .bench-inputs > *, figure { min-width: 0; }

/* inputs across the top, results at full width (for wide tables and matrices) */
.bench-top { grid-template-columns: 1fr; }
.bench-top .bench-inputs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4) var(--s-6); align-items: start; padding-bottom: var(--s-5); border-bottom: 1px solid var(--rule); }
.on-night .bench-top .bench-inputs { border-bottom-color: rgba(255, 248, 232, .1); }
.bench-top .bench-inputs .btn { justify-self: start; }
.pair-figure .note { margin-bottom: var(--s-3); }

/* ---------- marketing room ---------- */
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bench-results { container-type: inline-size; }
.seedhead-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@container (min-width: 900px) { .seedhead-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.seedhead { display: grid; justify-items: center; }
.seedhead canvas { display: block; cursor: crosshair; touch-action: pan-y; }
.scale-legend { display: flex; align-items: center; gap: 10px; margin-top: var(--s-3); font-size: var(--t-xs); color: var(--ink-3); }
.scale-legend i { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #F4D77E, #DDA22B 33%, #9A5E17 66%, #2E1C09); }
.rfm-grid th, .rfm-grid td { padding: 6px; }
.rfm-grid .grid-cell { vertical-align: top; border: 2px solid var(--paper); border-radius: 6px; min-width: 76px; }
.grid-seg { display: block; font-size: 11px; line-height: 1.25; color: var(--ink-2); white-space: normal; }
.grid-n { display: block; margin-top: 2px; font-weight: 700; font-size: var(--t-sm); }
.seg-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--rule-strong);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: var(--t-sm); white-space: nowrap;
}
.seg-btn:hover { border-color: var(--midnight); }
.seg-btn[aria-pressed="true"] { background: var(--midnight); color: var(--ivory); border-color: var(--midnight); }
.seg-table td.seg-act { white-space: normal; min-width: 170px; color: var(--ink-2); font-size: var(--t-xs); }
.whatif { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: #F6EEDC; }
.whatif dd { margin: 2px 0 0; font-weight: 700; font-size: 1.35rem; }
.whatif dd.stat-sub, .stat-sub { font-size: var(--t-xs) !important; font-weight: 400 !important; color: var(--ink-3); }
.whatif dt { font-size: var(--t-xs); color: var(--ink-3); }
@media (max-width: 640px) { .field-row-3 { grid-template-columns: 1fr; } }
.bench-top .bench-inputs .field-row-3 { grid-column: 1 / -1; }

/* ---------- models room ---------- */
.cycle { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.cycle-flower { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; margin-inline: auto; }
.cycle-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-petal { fill: #FBF1D6; stroke: var(--ochre); stroke-width: 1.5; transition: fill var(--t-ui) var(--ease-out); }
.cycle-petal.is-hover { fill: #F6E1A0; }
.cycle-petal.is-active { fill: var(--sun); stroke: #A97A0C; }
.cycle-disc { fill: #4A2E0F; }
.cycle-seed { fill: #B07A2A; }
.cycle-tabs { position: absolute; inset: 0; }
.cycle-tab {
  position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; align-content: center; gap: 2px;
  width: 92px; min-height: 64px; padding: 6px; background: transparent; border: 0; border-radius: 14px; color: var(--midnight);
}
.cycle-n { font-family: var(--f-display); font-weight: 900; font-size: 1.55rem; line-height: 1; }
.cycle-life { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.cycle-tab:focus-visible { outline: 3px solid var(--midnight); outline-offset: 0; }
.cycle-panel { padding: var(--s-6); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -28px rgba(80, 55, 10, .35); min-height: 300px; }
.cycle-panel:focus-visible { outline: 3px solid var(--midnight); outline-offset: 3px; }
.stage-kicker { font-size: var(--t-sm); font-weight: 700; color: var(--link); }
.stage-title { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); line-height: 1.08; margin: 4px 0 var(--s-4); }
.stage-dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.stage-dl dt { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.stage-dl dd { margin: 4px 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.stage-see { margin-top: var(--s-4); font-size: var(--t-sm); }
.lab-read { display: grid; gap: var(--s-3); margin: var(--s-2) 0 0; }
.lab-read dd { margin: 2px 0 0; font-weight: 700; font-size: 1.3rem; }
.lab-read dt { font-size: var(--t-xs); color: var(--ink-3); }
.legend-key.m-hollow { background: var(--paper); box-shadow: inset 0 0 0 2px var(--series-1); border-radius: 50%; }
.chart .dot.m-hollow { fill: var(--c-surface); stroke: var(--c-s1); stroke-width: 2; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5) var(--s-6); margin: 0; padding: 0; }
.principles li { padding-top: var(--s-4); border-top: 2px solid var(--sun); }
.principles h3 { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.3rem; }
.principles p { margin-top: 6px; color: var(--ink-2); font-size: 0.98rem; }
#stack .tool-head { margin-bottom: 0; }
@media (max-width: 1100px) { .cycle { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stage-dl { grid-template-columns: 1fr; } .cycle-tab { width: 78px; } .cycle-life { font-size: 11px; } }

/* ---------- contact room ---------- */
.letter-wrap { max-width: 780px; }
.letter {
  position: relative; padding: clamp(24px, 5vw, 56px); border-radius: 4px; background: #FFFDF6; isolation: isolate;
  box-shadow: 0 1px 0 #fff inset, 0 32px 60px -34px rgba(80, 55, 10, .5), 0 0 0 1px var(--rule);
}
.letter::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background-image: url("../img/canvas-grain.png"); background-size: 160px; border-radius: inherit; pointer-events: none; }
.stamp { position: absolute; top: 22px; right: 22px; width: 92px; padding: 6px 6px 4px; background: #F6E7C1; transform: rotate(4deg); box-shadow: 0 0 0 4px #FFFDF6, 0 0 0 5.5px rgba(25, 43, 73, .25); text-align: center; }
.stamp img { width: 80px; height: 80px; border-radius: 50%; }
.stamp span { display: block; margin-top: 2px; font-family: var(--f-display); font-style: italic; font-size: 11px; color: var(--midnight); }
.salutation { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem); line-height: 1.1; margin-bottom: var(--s-5); padding-right: 110px; }
.letter-body {
  display: block; width: 100%; min-height: 238px; padding: 0 4px; border: 0; resize: vertical; background-color: transparent;
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(25, 43, 73, .14) 33px 34px); background-attachment: local;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.25rem; line-height: 34px; color: #1E3A6E;
}
.letter-body::placeholder { color: rgba(30, 58, 110, .45); }
.letter-body:focus-visible { outline: 3px solid var(--midnight); outline-offset: 6px; border-radius: 2px; }
.letter-body[aria-invalid="true"] { outline: 2px solid var(--bad-ink); outline-offset: 6px; }
.letter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); margin-top: var(--s-6); align-items: end; }
.signoff { margin-top: var(--s-6); font-family: var(--f-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: #1E3A6E; }
.letter-actions { margin-top: var(--s-6); }
.letter-status { margin-top: var(--s-4); font-weight: 700; font-size: var(--t-sm); color: var(--good-ink); min-height: 1.5em; }
.postcards { margin-top: var(--s-9); max-width: 780px; }
.postcards h2 { margin-bottom: var(--s-4); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); margin: 0; padding: 0; }
.postcard {
  display: grid; gap: 4px; padding: var(--s-5); border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), border-color var(--t-fast);
}
.postcard:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 16px 30px -20px rgba(80, 55, 10, .5); border-color: var(--ochre); }
.postcard strong { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; }
.postcard span { font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 520px) { .stamp { width: 70px; top: 14px; right: 14px; } .stamp img { width: 58px; height: 58px; } .salutation { padding-right: 80px; } }

/* unit economics */
.ue-group { display: grid; gap: var(--s-3); padding: var(--s-4) 0 0; margin: 0; border: 0; border-top: 1px solid var(--rule); }
.ue-group legend { padding: 0; float: left; width: 100%; margin-bottom: var(--s-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ue-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
[data-tone="good"]::after, [data-tone="warn"]::after, [data-tone="bad"]::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; vertical-align: middle;
}
[data-tone="good"]::after { background: var(--olive, #68763A); }
[data-tone="warn"]::after { background: var(--ochre, #C99216); }
[data-tone="bad"]::after { background: var(--terracotta, #C96F36); }

/* classify and segment */
.on-night .chart .m-muted { fill: #56637A; stroke: #56637A; }
.on-night .legend-key.m-muted { background: #56637A; }
.legend-key.m-muted { background: #C9B98F; }
.cls-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); align-items: start; }
.cm-table td { white-space: nowrap; }
.data-table tr.is-total th, .data-table tr.is-total td { font-weight: 700; border-top: 1.5px solid currentColor; }

/* ---------- learn room ---------- */
.room--learn { --room-bg: #9C4A22; --room-ink: var(--ivory); --room-portal: #C96F36; }
.room--learn .chapter { color: #F6D58A; }
.learn-bench { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .learn-bench { grid-template-columns: 1fr; } }
.quiz { min-width: 0; }
.q-card { display: grid; gap: var(--s-4); align-content: start; }
.q-card > .btn { justify-self: start; }
.garden-bench { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
@media (max-width: 1100px) { .garden-bench { grid-template-columns: 1fr; } }
.garden-bench .data-table { font-size: var(--t-sm); }
.garden-bench .data-table td, .garden-bench .data-table th { padding-inline: 8px; }
.garden-bench .data-table th[scope="row"] { white-space: normal; }
.q-kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.q-stem { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.3rem; line-height: 1.3; padding: 0; color: var(--ink); }
.q-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); min-width: 0; }
.options { display: grid; gap: var(--s-2); }
.option {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px;
  padding: 10px 14px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--ivory); cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.option-key { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule-strong); font-weight: 700; font-size: .85rem; }
.option-text { font-size: .98rem; line-height: 1.4; }
.option:hover { border-color: var(--midnight); }
.option:has(input:checked) { border-color: var(--midnight); background: #F6E7C1; }
.option:has(input:checked) .option-key { background: var(--midnight); color: var(--ivory); border-color: var(--midnight); }
.option:has(input:focus-visible) { outline: 3px solid var(--midnight); outline-offset: 2px; }
.option:has(input:disabled) { cursor: default; }
.option:has(input:disabled):hover { border-color: var(--rule-strong); }
.option.is-right, .option.is-right:hover { border-color: var(--olive); background: #EEF0E0; }
.option.is-right .option-key { background: var(--olive-deep); color: var(--ivory); border-color: var(--olive-deep); }
.option.is-wrong, .option.is-wrong:hover { border-color: var(--terracotta); background: #F8E6DA; }
.option.is-wrong .option-key { background: var(--bad-ink); color: var(--ivory); border-color: var(--bad-ink); }
.q-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.q-feedback { display: grid; gap: var(--s-3); justify-items: start; }
.q-feedback:empty { display: none; }
.q-more { font-size: var(--t-sm); }
.mastery-change { display: grid; gap: var(--s-2); }
.meter { position: relative; height: 12px; border-radius: 6px; background: var(--rule); overflow: hidden; }
.meter span { position: absolute; top: 0; bottom: 0; }
.meter-before { left: 0; background: var(--ochre); }
.meter-gain { background: var(--olive); }
.meter-loss { background: var(--terracotta); }
.meter-goal { width: 2px; background: var(--midnight); }
.garden-figure { display: grid; gap: var(--s-3); justify-items: center; }
.garden { width: 100%; max-width: 360px; height: auto; }
.petal { fill: #D9A42A; fill-opacity: calc(.28 + .72 * var(--m, 0)); stroke: #A97A0C; stroke-width: 1; }
.petal.is-gold { fill: var(--sun); fill-opacity: 1; stroke: #7A4E00; stroke-width: 1.5; }
.petal-due { fill: var(--midnight); stroke: var(--ivory); stroke-width: 1.5; }
.garden-disc { fill: #5B3A12; stroke: #C99216; stroke-width: 1.5; }
.garden-seed { fill: #E2B04A; }
.legend-key.key-petal { background: #D9A42A; opacity: .55; }
.legend-key.key-gold { background: var(--sun); }
.legend-key.key-due { background: var(--midnight); border-radius: 50%; }
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--s-5); }
.engine-card { min-width: 0; padding: var(--s-5); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); display: grid; gap: var(--s-3); align-content: start; }
.engine-card h3 { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.engine-card p { font-size: var(--t-sm); color: var(--ink-2); }
.engine-card .formula { font-family: var(--f-mono); font-size: .82rem; padding: 8px 12px; background: #F6E7C1; border-radius: 8px; overflow-x: auto; color: var(--ink); white-space: nowrap; }
.engine-controls { display: grid; gap: var(--s-3); }
.engine-honest { margin-top: var(--s-5); }

/* ---------- room hubs and sub-pages ---------- */
.room--sub main { --canvas-w: max(280px, 25%); }
.canvas--sub { gap: var(--s-3); }
.canvas-room { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.15rem; }
.canvas-room img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(20, 12, 0, .45); }
.canvas-room:hover span { text-decoration: underline; text-underline-offset: 4px; }
.canvas.canvas--sub h1, .canvas.canvas--sub h1.is-long { font-size: clamp(2rem, 12cqi, 3.6rem); margin-top: var(--s-3); }
.subnav ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 2px; }
.subnav a {
  display: block; padding: 7px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 600; font-size: var(--t-sm);
  transition: background-color var(--t-fast);
}
.subnav a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.subnav a[aria-current="page"] { background: var(--room-ink); color: var(--room-bg); }
.hub-grid { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-5); }
.hub-card {
  height: 100%; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5) var(--s-5) var(--s-4);
  background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--room-portal); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; box-shadow: 0 18px 40px -30px rgba(80, 55, 10, .4);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.hub-card:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -28px rgba(80, 55, 10, .5); text-decoration: none; }
.hub-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.hub-card p { color: var(--ink-2); font-size: var(--t-sm); }
.hub-tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-tools li { padding: 3px 10px; border-radius: 999px; background: #F6E7C1; font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.hub-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--t-sm); color: var(--link); }
.hub-go svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.hub-card:hover .hub-go svg { transform: translateX(3px); }
.on-night .hub-card { background: var(--midnight-2); border-color: rgba(255, 248, 232, .1); border-top-color: var(--sun); color: var(--on-night); box-shadow: none; }
.on-night .hub-card p { color: var(--on-night-2); }
.on-night .hub-tools li { background: rgba(255, 248, 232, .08); color: var(--on-night); }
.on-night .hub-go { color: var(--sun); }
@media (max-width: 960px) {
  .canvas.canvas--sub { display: block; }
  .canvas--sub > * + * { margin-top: var(--s-3); }
  .subnav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .subnav a { white-space: nowrap; border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-go svg { transition: none; } }

/* ---------- round 4: finance tools ---------- */
.chart { --c-s3: var(--series-3); }
.on-night .chart { --c-s3: var(--series-3-night); }
.chart .m-s3 { fill: var(--c-s3); stroke: var(--c-s3); }
.chart .curve.m-s3 { fill: none; }
.legend-key.m-s3 { background: var(--series-3); } .on-night .legend-key.m-s3 { background: var(--series-3-night); }
.tip-key.m-s3 { background: var(--series-3-night); } .on-night .tip-key.m-s3 { background: var(--series-3); }
.chart .dot.dot-cross { fill: var(--c-surface); stroke: var(--c-ink); stroke-width: 2; }
.chart .dot.dot-hit { fill: var(--neg); stroke: var(--c-surface); }
.chart .curve.is-thin { stroke-width: 1.25; }
.chart .curve.is-dashed { stroke-dasharray: 5 4; }
.chart .pt-label { fill: var(--c-ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--c-surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.chart .pt-label.is-muted { fill: var(--c-text); font-weight: 600; }
.flow-grid-wrap { display: grid; gap: var(--s-3); min-width: 0; }
.flow-grid-wrap > .flow-grid { display: block; position: relative; overflow-x: auto; }
.flow-grid { border-collapse: separate; border-spacing: 6px 5px; margin: 0 -6px; font-size: var(--t-sm); }
.flow-grid th { text-align: left; font-weight: 700; vertical-align: bottom; }
.flow-grid thead th { font-size: var(--t-xs); color: var(--ink-3); }
.flow-grid tbody th { white-space: nowrap; padding-right: var(--s-2); color: var(--ink-2); }
.flow-grid td.is-num { text-align: right; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.flow-grid .input { min-height: 40px; padding: 6px 10px; }
.flow-grid .input-num { width: 100%; min-width: 88px; text-align: right; }
.flow-grid .input-name { min-width: 132px; font-weight: 600; }
.flow-key { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.flow-key .legend-key { flex: none; width: 10px; height: 10px; }
.measure-table td.cell-hi { background: #F7E9C3; font-weight: 700; }
.ration-grid .input-num { min-width: 80px; }
.icon-btn-sm { width: 36px; height: 36px; border-color: var(--rule-strong); color: var(--ink-2); }
.icon-btn-sm:hover { border-color: var(--bad-ink); color: var(--bad-ink); background: #FFF3EC; }
.icon-btn-sm:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn-sm:focus-visible { outline: 3px solid var(--midnight); outline-offset: 2px; }
.zone-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: var(--t-xs); }
.zone-chip.is-green { background: #EEF0E0; color: var(--good-ink); }
.zone-chip.is-yellow { background: #FBF0D2; color: var(--warn-ink); }
.zone-chip.is-red { background: #FBE6DB; color: var(--bad-ink); }
.weights-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.series-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.series-list li { padding: 3px 10px; border-radius: 999px; background: #F6E7C1; font-size: var(--t-xs); font-weight: 600; }
.chart .vline { stroke-width: 2; fill: none; }
@media (max-width: 760px) { .field-row.field-row-keep { grid-template-columns: 1fr 1fr; } .field-row-3.field-row-keep { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- round 4: market segmentation and the market map ---------- */

/* the map */
.map-controls .find-row { display: flex; gap: var(--s-2); }
.map-controls .find-row .input { flex: 1; min-width: 0; }
.map-figure { margin: 0; }
.map-figure figcaption { display: grid; gap: 2px; margin-bottom: var(--s-3); }
.map-figure figcaption .figure-title, .map-figure figcaption .figure-sub { margin: 0; }
.map-wrap { position: relative; width: 100%; aspect-ratio: 960 / 430; border-radius: var(--r-md); background: var(--paper); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: var(--t-sm); color: var(--ink-3); }
.map-svg { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.map-sphere { fill: #F2EBDC; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-land path, .map-dots circle { fill: #E6DFD0; stroke: var(--paper); stroke-width: .75; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill var(--t-ui) var(--ease-out); }
.map-dots circle { stroke-width: 1; }
.map-land .is-out, .map-dots .is-out { fill: #E6DFD0; cursor: default; }
.nodata-bg { fill: #F4EEE2; }
.nodata-line { stroke: #BFAE84; stroke-width: 1.4; }
.map-hover, .map-selected, .map-selected-halo { fill: none; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linejoin: round; }
.map-hover { stroke: var(--midnight); stroke-width: 1.5; }
.map-selected-halo { stroke: var(--paper); stroke-width: 5; }
.map-selected { stroke: var(--midnight); stroke-width: 2.25; }
@media (prefers-reduced-motion: reduce) { .map-land path, .map-dots circle { transition: none; } }

.map-legend { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-5); margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink-2); }
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .ramp-item { display: grid; gap: 4px; flex: 1 1 280px; max-width: 460px; }
.ramp, .ramp-labels { display: grid; gap: 2px; }
.ramp i { height: 12px; }
.ramp i:first-child { border-radius: 3px 0 0 3px; } .ramp i:last-child { border-radius: 0 3px 3px 0; }
.ramp-labels span { text-align: right; transform: translateX(50%); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }
.ramp-labels span:empty { visibility: hidden; }
.sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.sw-nodata { background: repeating-linear-gradient(45deg, #F4EEE2 0 3px, #BFAE84 3px 4.4px); box-shadow: inset 0 0 0 1px #E3D6B8; }
.sw-out { background: #E6DFD0; }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: #6da7ec; box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 2.5px #CDBB93; margin-inline: 5px; }

.map-detail:empty { display: none; }
.map-hint { margin: 0; }
.country-card { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid var(--rule); background: #FFFDF8; display: grid; gap: var(--s-4); }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.cc-head h3 { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.1; }
.cc-region { margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.cc-close { flex: none; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.cc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cc-grid .stat dd { font-size: 1.05rem; }

/* the ranking */
.rank-table td, .rank-table th { vertical-align: middle; }
.score-cell { display: inline-flex; align-items: center; gap: 8px; }
.rank-region { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.score-bar { position: relative; display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: #EFE6D2; overflow: hidden; }
.score-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--series-1); }
.score-cell strong { min-width: 2ch; text-align: right; }
.country-btn { padding: 4px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.country-btn:hover { text-decoration-color: currentColor; }
.country-btn:focus-visible { outline: 3px solid var(--midnight); outline-offset: 2px; border-radius: 2px; }
.select-sm { min-height: 40px; padding-block: 6px; font-size: var(--t-sm); }
.score-inputs #score-weights, .score-inputs #score-extra, .score-inputs .score-how { grid-column: 1 / -1; }
.score-inputs #score-weights, #score-extra fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4) var(--s-6); align-items: end; }
.score-inputs #score-weights legend, #score-extra legend { grid-column: 1 / -1; }
#score-extra:empty { display: none; }
#score-extra .select-sm { align-self: end; }
.score-reset { align-self: end; }
.score-how { max-width: var(--measure); }
#score-extra legend { font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s-2); padding: 0; float: left; width: 100%; }

/* attractiveness against reach */
.chart .zone { stroke: none; }
.chart .zone-invest { fill: #F5E6BC; }
.chart .zone-select { fill: #FAF3E2; }
.chart .zone-avoid { fill: transparent; }
.chart .zone-line { stroke: #E3D6B8; stroke-width: 1; stroke-dasharray: 3 3; }
.chart .zone-label { fill: var(--ink-3); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.chart .dot.is-selected { stroke: var(--midnight); stroke-width: 2.5; }
.shortlist { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; font-size: var(--t-sm); columns: 2 220px; }
.shortlist li { break-inside: avoid; }
.reach-def { margin-top: 2px; }

/* market segmentation */
.seg-heat td.heat { text-align: right; min-width: 74px; border: 2px solid var(--paper); border-radius: 6px; }
.seg-heat .heat strong { display: block; font-size: var(--t-sm); }
.seg-heat .heat span { display: block; font-size: 11px; font-weight: 400; }
.seg-heat thead th { white-space: normal; min-width: 92px; vertical-align: bottom; }
.seg-heat tbody tr.is-divider th, .seg-heat tbody tr.is-divider td { border-top: 1.5px solid var(--rule-strong); }
.heat-key { display: flex; align-items: center; gap: 8px; margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ink-3); }
.heat-key i { width: 120px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgb(208, 157, 130), rgb(236, 230, 218), rgb(142, 162, 188)); }
#sv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); min-width: 0; }
#sv-body[hidden] { display: none; }
.target-table th[scope="row"] { white-space: normal; min-width: 140px; }
.target-table td.is-total { font-weight: 700; }
.target-table tr.is-pick th, .target-table tr.is-pick td { background: #F7E9C3; }
.strengths { display: grid; gap: var(--s-2); }
.strength-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); font-size: var(--t-sm); }
.strength-row .segmented label { padding-inline: 10px; min-height: 36px; }
@media (max-width: 520px) {
  .ramp-labels span { font-size: 11px; }
  .shortlist { columns: 1; }
  .strength-row { grid-template-columns: 1fr; }
}

/* ---------- round 4: supervised and unsupervised learning ---------- */
/* the shared question (outcome and predictors) under the dataset picker */
.question { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: var(--s-4) var(--s-6); align-items: start; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.question legend { font-weight: 700; font-size: var(--t-sm); margin-bottom: var(--s-2); padding: 0; }
.on-night .question { border-top-color: rgba(255, 248, 232, .1); }
@media (max-width: 720px) { .question { grid-template-columns: 1fr; } }

/* empty message slots take no room */
#cmp-error:empty, #tree-error:empty, #imp-error:empty, #cls-error:empty, #hc-error:empty, #pca-error:empty { display: none; }

/* "working" state while the comparison runs in the background */
.work-status { font-size: var(--t-sm); color: var(--ink-3); min-height: 0; margin: 0; }
.work-status:empty { display: none; }
.on-night .work-status { color: #F3D77A; }
.is-busy #cmp-body, .is-busy #imp-body { opacity: .55; transition: opacity var(--t-fast); }

/* fold-by-fold plot */
.chart .fold-row { transition: opacity var(--t-fast); }
.chart .fold-row.is-dim { opacity: .45; }
.chart .whisker { stroke-width: 2; fill: none; }
.chart .fold-dot { stroke: none; opacity: .8; }
.chart .mean-mark { stroke: var(--c-surface); stroke-width: 1.5; }
.chart .tick-cat.is-strong, .chart .tick.is-strong { font-weight: 700; fill: var(--c-ink); }
.data-table tr.is-picked th::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--series-2); vertical-align: 1px; }
.on-night .data-table tr.is-picked th::before { background: var(--sun); }

/* ROC overlay */
.chart path.curve, .on-night .chart path.curve { fill: none; }
.chart circle.dot.m-muted, .on-night .chart circle.dot.m-muted { stroke: var(--c-surface); }
.chart .curve.is-strong { stroke-width: 2.75; }
.chart .curve.m-muted { stroke-width: 1.5; }
.chart .diag { stroke-dasharray: 4 4; }
.tip-key.m-muted { background: #C9B98F; }
.on-night .tip-key.m-muted { background: #56637A; }

/* readable decision tree */
.tree-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.tree-scroll .tree-svg { display: block; margin-inline: auto; overflow: visible; max-width: none; }
.tree-hint { font-size: var(--t-xs); color: var(--ink-3); margin: var(--s-2) 0 0; }
.on-night .tree-hint { color: var(--on-night-3); }
.tree-svg:focus-visible { outline: 3px solid var(--midnight); outline-offset: 4px; }
.on-night .tree-svg:focus-visible { outline-color: var(--sun); }
.tree-node .node-box { fill: var(--c-surface); stroke: var(--c-axis); stroke-width: 1; }
.tree-node.is-leaf .node-box { stroke-dasharray: 0; }
.tree-node .node-main { fill: var(--c-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tree-node .node-sub { fill: var(--c-text); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tree-node .node-rule { fill: var(--c-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tree-node .leaf-track { fill: var(--c-grid); }
.tree-node .leaf-bar { fill: var(--c-s2); }
.tree-node.is-leaf { cursor: default; }
.tree-node.is-path .node-box { stroke: var(--c-s2); stroke-width: 2.25; }
.tree-edge path { fill: none; stroke: var(--c-axis); stroke-width: 1.25; }
.tree-edge .edge-label { fill: var(--c-text); font-size: 11px; font-weight: 700; }
.tree-edge.is-path path { stroke: var(--c-s2); stroke-width: 2.5; }
.tree-edge.is-path .edge-label { fill: var(--c-ink); }
.tree-rules { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: var(--t-sm); max-width: var(--measure); }
.on-night .tree-rules { color: var(--on-night-2); }
.on-night .tree-rules strong { color: var(--on-night); }

/* dendrogram */
.chart path.dendro, .on-night .chart path.dendro { fill: none; stroke-width: 1.1; }
.chart .dendro.is-strong { stroke-width: 1.6; }
.chart .dendro-top { stroke: var(--c-ink); opacity: .55; }
.chart .cut-line { stroke-dasharray: 5 4; }
.chart .group-span rect { stroke: none; }

/* biplot */
.chart .load-arrow { stroke: var(--c-ink); stroke-width: 1.6; }
.chart .arrow-head { fill: var(--c-ink); }
.chart .load-label { fill: var(--c-ink); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--c-surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .loadings { pointer-events: none; }
.pc-pick { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pc-pick .field { min-width: 120px; }

/* loadings table: a small diverging bar beside each value, centred on zero */
.load-cell .load-in { display: inline-flex; align-items: center; gap: 8px; }
.load-track { position: relative; width: 44px; height: 8px; border-radius: 2px; background: var(--rule); flex: none; }
.load-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); }
.load-track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.load-track i.is-pos { background: var(--series-1); }
.load-track i.is-neg { background: #B4532A; }
.on-night .load-track { background: rgba(255, 248, 232, .1); }
.on-night .load-track::after { background: var(--on-night-3); }
.on-night .load-track i.is-pos { background: var(--series-1-night); }
.on-night .load-track i.is-neg { background: #E08A5C; }
.load-cell .load-num { min-width: 3.4em; text-align: right; }
.data-table td.is-big { font-weight: 700; }

/* highlight pickers sit at their natural width, with room before the chart */
.highlight-field { margin-bottom: var(--s-3); }
.highlight-field .segmented { justify-self: start; }
.question--one { grid-template-columns: 1fr; }

/* long button labels wrap on narrow phones instead of pushing the page sideways */
#compare .bench-inputs .btn, #pca .bench-inputs .btn, #hierarchy .bench-inputs .btn, #segment .bench-inputs .btn, #classify .bench-inputs .btn { max-width: 100%; white-space: normal; }

/* ---------- Learn: lessons (plates) ---------- */
.plate-no { font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F6D58A; margin-top: var(--s-4); }
.lesson { max-width: 46rem; }
.lesson-status:empty { display: none; }
.lesson-status { font-size: var(--t-sm); color: var(--ink-3); }
.lesson-part { margin-top: var(--s-8); scroll-margin-top: calc(var(--header-h) + 16px); }
.lesson-part:first-child { margin-top: 0; }
.lesson-part > h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: var(--s-4); }
.lesson-part > p, .lesson-part li { font-size: 1.1rem; line-height: 1.65; }
.lesson-part > p + p { margin-top: var(--s-4); }
.lesson-part b { font-weight: 700; color: var(--ink); }
/* the formula */
.formula-box { display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-6); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.lesson-formula { font-size: 1.15rem; line-height: 2.4; text-align: center; overflow-x: auto; overflow-y: hidden; padding: 4px 2px; font-variant-numeric: tabular-nums; }
.f-part { display: inline-block; white-space: nowrap; }
.f-sep { margin-right: .6em; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.25; margin: 0 2px; }
.frac > span { padding: 0 4px; white-space: nowrap; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.frac > span:last-child { padding-top: 2px; }
.terms { display: grid; gap: 8px; margin: 0; font-size: var(--t-sm); }
.terms > div { display: grid; grid-template-columns: minmax(64px, max-content) 1fr; gap: 4px 16px; align-items: baseline; }
.terms dt { font-style: italic; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.terms dd { margin: 0; color: var(--ink-2); }
/* the worked example, framed like a drawing-course plate */
.plate { position: relative; margin: 0; padding: var(--s-6) clamp(18px, 3vw, 36px) var(--s-5); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--rule); }
.plate-cap { position: absolute; top: -0.8em; left: 22px; padding: 0 10px; background: var(--ivory); font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.05rem; color: var(--link); }
.plate-setup { font-size: 1.08rem; line-height: 1.6; }
.plate-steps { list-style: none; counter-reset: step; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.plate-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 var(--s-3); font-size: 1.04rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.plate-steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: #C96F36; text-align: right; padding-top: 2px; }
.plate-result { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); font-size: 1.04rem; line-height: 1.6; }
/* the calculator */
.lesson-calc { margin-top: 0; }
.calc-intro { font-size: var(--t-sm); color: var(--ink-2); }
#calc-note.is-error { color: var(--bad-ink); font-weight: 600; }
.lesson-calc .hero-value { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); }
/* the common mistake */
.mistake { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-5); border-left: 4px solid #C96F36; background: #FBF0E6; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--bad-ink); }
.mistake svg { width: 22px; height: 22px; margin-top: 3px; }
.mistake h3 { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
.mistake p { color: var(--ink); font-size: 1.04rem; line-height: 1.6; }
/* remember: seeds for bullets */
.remember { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.remember li { position: relative; padding-left: 28px; }
.remember li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7A4E00; transform: rotate(-24deg); }
.lesson-check { margin-top: var(--s-4); }
.lesson-part .q-card p, .lesson-part .q-card li { font-size: inherit; }
/* previous / next */
.lesson-pager { max-width: 46rem; margin-top: var(--s-9); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: stretch; }
.lesson-pager a { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 1px solid var(--rule-strong); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--t-sm); background: var(--paper); }
.lesson-pager a span { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.lesson-pager a:hover { border-color: var(--midnight); }
.lesson-pager .pager-next { text-align: right; }
.lesson-pager .pager-all { align-content: center; }
@media (max-width: 640px) {
  .lesson-pager { grid-template-columns: 1fr 1fr; }
  .lesson-pager .pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .formula-box { padding: var(--s-4); }
  .terms > div { grid-template-columns: 1fr; }
  .plate-steps li { grid-template-columns: 1.6rem 1fr; }
}
/* the library */
.lesson-next { max-width: 46rem; padding: var(--s-5) var(--s-6); background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid #C96F36; border-radius: 0 var(--r-lg) var(--r-lg) 0; display: grid; gap: var(--s-2); }
.lesson-next h2, .lesson-next-title { font-family: var(--f-display); font-weight: 800; line-height: 1.15; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.lesson-next h2 a, .lesson-next-title a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lesson-next p { color: var(--ink-2); }
.lesson-progress { font-size: var(--t-sm); font-weight: 700; color: var(--ink-3) !important; }
.lesson-group { margin-top: var(--s-8); scroll-margin-top: calc(var(--header-h) + 16px); }
.lesson-group > h2 { margin-bottom: var(--s-5); }
.plate-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.plate-card { height: 100%; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.plate-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); text-decoration: none; }
.plate-num { font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #C96F36; text-align: center; padding-top: 4px; }
.plate-body { display: grid; gap: 6px; align-content: start; }
.plate-title { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.plate-hook { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.plate-meta { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.plate-card.is-read .plate-status { color: var(--good-ink); }
.plate-card.is-mastered { border-color: #D9B44A; }
.plate-card.is-mastered .plate-num { color: #A97A0C; }
.plate-card.is-mastered .plate-status { color: var(--good-ink); font-weight: 700; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-4) var(--s-6); max-width: 60rem; }
.method-grid h3 { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.method-grid p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
/* the lessons strip on the Learn page */
.learn-lessons { max-width: var(--measure); margin-bottom: var(--s-8); }
@media (prefers-reduced-motion: reduce) { .plate-card { transition: none; } .plate-card:hover { transform: none; } }
.subnav a[aria-current="true"] { box-shadow: inset 0 0 0 1.5px currentColor; }
