/*
 * Didaflow Commons (hub) and the AI Map — prototype v0.2.
 * Builds on editorial.css (body.page-editorial): same measure, type and tokens.
 * Coral marks where the reader is and what they chose; ink carries facts.
 * Status, evidence and legal flags always pair a shape and a word with colour.
 */

.commons { --soft: var(--surface); --text: var(--muted); }
.commons a.u { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--muted); }

/* ─── Hub ─────────────────────────────────────────────────── */
.hub-head { max-width: 980px; padding-block: 72px 48px; }
.hub-head h1 { margin: 22px 0; font-size: clamp(52px, 6vw, 92px); line-height: 1; letter-spacing: -0.05em; }
.hub-head h1 em { color: var(--ed-coral); }
.hub-head .lead { max-width: 720px; font: 500 21px/1.55 var(--ed-heading); }
.hub-head .lead + p { max-width: 720px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 110px; border-top: 1px solid var(--ink); }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 30px 30px 30px 0; border-bottom: 1px solid var(--line); }
.hub-card + .hub-card { padding-left: 30px; border-left: 1px solid var(--line); }
.hub-card h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.hub-card p { color: var(--text); font-size: 15px; line-height: 1.75; }
.hub-card .tag { width: fit-content; padding: 3px 9px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hub-card .tag--live { color: var(--ink); }
.hub-card .tag--soon { color: var(--muted); border-style: dashed; }
.hub-card .text-link { margin-top: auto; width: fit-content; }
.hub-card--live h2 a::after { content: ""; position: absolute; inset: 0; }
.hub-card--live:has(a:focus-visible) { outline: 2px solid var(--ed-coral); outline-offset: 4px; }
.hub-card--live:hover h2 { color: var(--ed-coral); }
.hub-card--soon { color: var(--muted); }
.hub-card--soon h2 { color: var(--foreground); opacity: .7; }
.hub-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 110px; font-size: 14px; color: var(--text); line-height: 1.8; }
.hub-foot h3 { margin-bottom: 10px; font-size: 20px; color: var(--foreground); }

/* ─── Map header ──────────────────────────────────────────── */
.map-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-block: 44px 30px; }
.map-top h1 { font-size: clamp(44px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -0.045em; }
.map-top h1 em { color: var(--ed-coral); }
.map-top .lead { max-width: 560px; margin-top: 14px; color: var(--text); font-size: 15px; line-height: 1.75; }
.map-top__links { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; }
.map-top__links a { display: inline-flex; align-items: center; min-height: 44px; }
.crumb-hub { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; font-size: 13px; color: var(--muted); }
.crumb-hub:hover { color: var(--ed-coral); }

/* ─── Steps ───────────────────────────────────────────────── */
.steps { padding-bottom: 110px; }
.step { border-top: 1px solid var(--ink); scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.step + .step { margin-top: 0; }
.step__head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 22px 0; }
.step__num { color: var(--ed-coral); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.step__title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.step__choice { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--ed-heading); letter-spacing: -0.02em; }
.step__choice small { display: block; margin-bottom: 2px; color: var(--muted); font: 600 10.5px/1.6 var(--ed-body); letter-spacing: .08em; text-transform: uppercase; }
.step--done .step__head { padding: 16px 0; }
.step__body { padding: 0 0 48px 68px; }
.step--locked { color: var(--muted); }
.step--locked .step__title { opacity: .45; }

.change { min-height: 44px; padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--foreground); font: 400 13px var(--ed-body); cursor: pointer; }
.change:hover { color: var(--ed-coral); }
.change:focus-visible, .pick:focus-visible, .task:focus-visible, .tool-row button:focus-visible { outline: 2px solid var(--ed-coral); outline-offset: 3px; }

/* Step 1: roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 190px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); color: var(--foreground); text-align: left; cursor: pointer; transition: border-color var(--duration-fast, 120ms), transform var(--duration-fast, 120ms); }
.pick:hover { border-color: var(--foreground); transform: translateY(-2px); }
.pick b { font: 500 26px/1.15 var(--ed-heading); letter-spacing: -0.025em; }
.pick span { color: var(--text); font-size: 14px; line-height: 1.65; }
.pick .count { margin-top: auto; color: var(--muted); font-size: 12px; }

.role-intro { max-width: 760px; margin: -6px 0 26px; padding-left: 16px; border-left: 2px solid var(--ed-coral); color: var(--text); font-size: 15px; line-height: 1.8; }

/* Step 2: tasks */
.tasks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.task { display: grid; grid-template-columns: minmax(0, 1fr) 230px 24px; align-items: center; gap: 24px; width: 100%; min-height: 72px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--foreground); text-align: left; cursor: pointer; }
.task:hover .task__q { color: var(--ed-coral); }
.task__q { font: 500 20px/1.3 var(--ed-heading); letter-spacing: -0.015em; }
.task__q small { display: block; margin-top: 3px; color: var(--muted); font: 400 13px/1.5 var(--ed-body); letter-spacing: 0; }
.task__meta { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.task__arrow { color: var(--muted); font-size: 18px; }

/* Evidence marks */
.ev { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.ev svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; }
.ev circle, .ev path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.ev .fill { fill: var(--ink); stroke: none; }

/* Legal flags */
.flag { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 2px 9px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.flag--prohibited { color: var(--danger-strong); background: var(--danger-tint); }
.flag--high-risk { color: var(--warning-strong); background: var(--warning-tint); }
.flag--caution { color: var(--ink); background: var(--ink-tint); }
.flag::before { font-size: 11px; }
.flag--prohibited::before { content: "⛔"; }
.flag--high-risk::before { content: "▲"; }
.flag--caution::before { content: "ⓘ"; }
.legal { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid currentColor; font-size: 14px; line-height: 1.7; }
.legal--prohibited { color: var(--danger-strong); background: var(--danger-tint); }
.legal--high-risk { color: var(--warning-strong); background: var(--warning-tint); }
.legal--caution { color: var(--ink); background: var(--ink-tint); }
.legal p { color: var(--foreground); }
.legal strong { font-weight: 600; }
.legal ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--foreground); }

/* Step 3: task overview */
.overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; margin-bottom: 38px; }
.verdict-box { padding: 22px 24px; border: 1px solid var(--ink); }
.verdict-box h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 21px; }
.verdict-box h3 svg { width: 20px; height: 20px; }
.verdict-box p { color: var(--text); font-size: 15px; line-height: 1.8; }
.outcomes h4, .side-h { margin-bottom: 12px; color: var(--muted); font: 600 11px/1.6 var(--ed-body); letter-spacing: .08em; text-transform: uppercase; }
.outcome-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.outcome-list li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; color: var(--muted); }
.outcome-list li.on { border-color: var(--ink); color: var(--foreground); }
.outcome-list li::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--muted); border-radius: 50%; }
.outcome-list li.on::before { border-color: var(--ink); background: var(--ink); }
.outcomes p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.more { border-top: 1px solid var(--line); }
.more:last-of-type { border-bottom: 1px solid var(--line); }
.more > summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.more[open] > summary::after { content: "−"; }
.more > div { padding-bottom: 20px; }
.more p, .more li { color: var(--text); font-size: 14.5px; line-height: 1.8; }

/* Tool comparison */
.compare-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin: 44px 0 14px; }
.compare-head h3 { font-size: 28px; letter-spacing: -0.025em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 44px; padding: 6px 13px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--card-bg); font: 400 13px var(--ed-body); cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare th { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.compare td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.tool-row { cursor: pointer; }
.tool-row:hover td { background: var(--soft); }
.tool-row[aria-current="true"] td { background: var(--brand-tint-hex); }
.tool-row td:first-child { padding-left: 10px; }
.tool-row button { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--foreground); font: 500 17px/1.25 var(--ed-heading); text-align: left; cursor: pointer; }
.tool-row button small { display: block; margin-top: 2px; color: var(--muted); font: 400 12px var(--ed-body); }
.tool-row .open { color: var(--ed-coral); white-space: nowrap; }
.compare-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.stars { color: var(--ink); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--border-strong); }

/* Step 4: analysis */
.analysis { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.analysis__nav { position: sticky; top: calc(var(--header-h, 64px) + 20px); align-self: start; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.analysis__nav a { padding: 6px 0; color: var(--muted); }
.analysis__nav a:hover, .analysis__nav a[aria-current="true"] { color: var(--foreground); }
.analysis__body { max-width: 800px; }
.analysis__body > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.analysis__body > section:last-child { border-bottom: 0; }
.analysis__body h3 { margin-bottom: 16px; font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; }
.analysis__body h4 { margin: 22px 0 8px; font: 600 14px/1.5 var(--ed-body); }
.analysis__body p, .analysis__body li { color: var(--text); font-size: 15px; line-height: 1.85; }
.analysis__body p { margin-bottom: 14px; }
.analysis__body ul, .analysis__body ol { margin: 0 0 16px; padding-left: 1.2em; }
.analysis__body a:not(.button):not(.text-link) { text-decoration: underline; text-underline-offset: 4px; }
.tool-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.tool-title h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -0.04em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 30px; font-size: 13px; color: var(--muted); }
.share output { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0 0 12px; font-size: 14px; }
.facts div { padding: 11px 0; border-top: 1px solid var(--line); }
.facts .wide { grid-column: 1 / -1; }
.facts dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; line-height: 1.55; }
.undeclared { color: var(--muted); font-style: italic; }

.kind { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; padding: 1px 7px; border: 1px solid currentColor; border-radius: var(--radius-sm); font: 600 10px/1.6 var(--ed-body); letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.kind::before { font-size: 8.5px; }
.kind--vendor { color: var(--muted); } .kind--vendor::before { content: "◇"; }
.kind--research { color: var(--ink); } .kind--research::before { content: "●"; }
.kind--interpretation { color: var(--ed-coral); } .kind--interpretation::before { content: "▲"; }
.kind--experience { color: var(--muted); } .kind--experience::before { content: "■"; }
.kind--law { color: var(--danger-strong); } .kind--law::before { content: "§"; }

.finding { padding: 14px 0; border-top: 1px solid var(--line); }
.finding p { margin: 0 0 6px !important; }
.finding .rel { color: var(--muted) !important; font-size: 13.5px !important; }
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.balance ul { list-style: none; padding: 0 !important; }
.balance li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px !important; line-height: 1.7 !important; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 15px; width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); }
.noai { margin-top: 10px; padding: 18px 20px; background: var(--soft); }
.noai h4 { margin-top: 0 !important; }

/* Community (experience, never evidence) */
.community-note { padding: 12px 16px; border-left: 2px solid var(--muted); background: var(--soft); font-size: 13.5px !important; }
.rating-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 14px 0 20px; }
.rating-sum .stars { font-size: 22px; }
.form { display: grid; gap: 14px; max-width: 620px; margin: 10px 0 26px; padding: 22px; border: 1px solid var(--border); background: var(--card-bg); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: 400 14px/1.5 var(--ed-body); }
.form textarea { min-height: 110px; resize: vertical; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 2px 3px; color: var(--border-strong); font-size: 28px; line-height: 1; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--ink); }
.star-input input:focus-visible + label { outline: 2px solid var(--ed-coral); outline-offset: 2px; }
.form .hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.post { padding: 16px 0; border-top: 1px solid var(--line); }
.post header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.post header b { color: var(--foreground); font-weight: 600; }
.post p { margin: 0 0 8px !important; }
.post .replies { margin: 8px 0 0 22px; padding-left: 16px; border-left: 1px solid var(--line); }
.post-actions { display: flex; gap: 18px; font-size: 12.5px; }

.sources { list-style: none; padding: 0 !important; counter-reset: s; }
.sources li { counter-increment: s; position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-size: 13.5px !important; line-height: 1.65 !important; }
.sources li::before { content: counter(s); position: absolute; left: 0; top: 12px; color: var(--muted); font-size: 12px; }
.sources .note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.refs a { color: var(--ink); font-size: .85em; }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 20px; }
.dates div { padding: 10px 0; border-top: 1px solid var(--ink); }
.dates dt { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.dates dd { margin: 0; font-size: 14px; }
.draft-note { margin-bottom: 26px; padding: 14px 18px; border: 1px dashed var(--ink); background: var(--ink-tint); font-size: 13.5px; line-height: 1.65; }

/* Method page */
.method-content { max-width: 800px; padding-bottom: 100px; }
.method-content section { padding-block: 40px; border-top: 1px solid var(--line); }
.method-content h2 { margin-bottom: 18px; font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; }
.method-content p, .method-content li { color: var(--text); font-size: 15px; line-height: 1.85; }
.method-content p { margin-bottom: 14px; }
.method-content strong { color: var(--foreground); font-weight: 600; }
.method-content a { text-decoration: underline; text-underline-offset: 4px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .analysis { grid-template-columns: 1fr; gap: 0; }
  .analysis__nav { position: static; flex-direction: row; gap: 18px; overflow-x: auto; margin-bottom: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; scrollbar-width: none; }
}
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card, .hub-card + .hub-card { min-height: 0; padding: 28px 0; border-left: 0; }
  .hub-foot { grid-template-columns: 1fr; gap: 30px; }
  .roles { grid-template-columns: 1fr; gap: 10px; }
  .pick { min-height: 0; padding: 20px; }
  .step__head { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .step__body { padding-left: 0; }
  .task { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 14px; }
  .task__meta { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .task__arrow { grid-row: 1 / 3; grid-column: 2; }
  .overview { grid-template-columns: 1fr; gap: 26px; }
  /* Comparison table becomes a list of cards. */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .tool-row { padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .tool-row td { padding: 3px 0 !important; border: 0; }
  .tool-row td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .tool-row td:first-child { margin-bottom: 6px; }
  .balance { grid-template-columns: 1fr; gap: 0; }
  .facts, .dates { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .map-top { padding-block: 30px 22px; }
  .hub-head { padding-block: 44px 32px; }
  .hub-head .lead { font-size: 18px; }
  .step__title { font-size: 24px; }
  .step__choice { font-size: 20px; }
  .task__q { font-size: 18px; }
  .legal { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .verdict-box { padding: 18px; }
  .form { padding: 16px; }
  }
@media (prefers-reduced-motion: reduce) {
  .pick { transition: none; }
  .pick:hover { transform: none; }
}
.fit { display: inline-block; margin-top: 4px; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; }
.fit--declared { color: var(--ink); }
.fit--kind { color: var(--muted); border-style: dashed; }
.fit-line { margin-bottom: 24px !important; font-size: 14px !important; }
.study summary { display: flex; align-items: center; min-height: 44px; padding: 4px 0; cursor: pointer; color: var(--ink); font-size: 13px; }
.study .facts { margin-top: 8px; font-size: 13px; }
.legal > .flag { align-self: start; }
.legal__rules summary { margin-top: 6px; cursor: pointer; color: var(--foreground); font-size: 13.5px; font-weight: 600; }
.legal__rules ul { font-size: 13.5px; }
.compare .group th { padding: 22px 0 8px; border-bottom: 1px solid var(--line); color: var(--foreground); font-size: 12px; }
.compare .group th .muted { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.compare .group-toggle td { padding: 14px 0; }
@media (max-width: 900px) {
  .compare .group, .compare .group th, .compare .group-toggle { display: block; }
}
/* Beat .page-editorial h2/h3 (editorial.css) inside the map. */
.commons .step__title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.commons .step__choice { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.commons .compare-head h3 { font-size: clamp(22px, 2.2vw, 28px); }
.commons .tool-title h2 { font-size: clamp(30px, 3.4vw, 50px); }
.commons .hub-card h2 { font-size: clamp(28px, 2.6vw, 34px); }
.commons .method-content h2 { font-size: clamp(26px, 2.6vw, 32px); }

/* ═══ v0.3 "Chapters": more vertical rhythm, clearer separation ═══════════ */

/* Hub: one tool per row, number · text · Bruegel figure, stacked. */
.hub-head { padding-block: clamp(72px, 9vw, 130px) clamp(48px, 6vw, 80px); }
.hub-list { margin-bottom: clamp(96px, 11vw, 160px); border-top: 1px solid var(--foreground); }
.hub-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 700px) minmax(140px, 1fr); align-items: center; gap: 40px; padding-block: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.hub-row--live { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); border-bottom-color: transparent; }
.hub-row__num { align-self: start; font: 500 clamp(54px, 6vw, 88px)/0.85 var(--ed-heading); letter-spacing: -0.05em; color: var(--ed-coral); }
.hub-row--soon .hub-row__num { color: var(--muted); opacity: .55; }
.hub-row__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.commons .hub-row h2 { font-size: clamp(36px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.04em; }
.hub-row p:not(.hub-row__num) { max-width: 620px; color: var(--text); font-size: 17px; line-height: 1.75; }
.hub-row--live h2 a::after { content: ""; position: absolute; inset: 0; }
.hub-row--live:hover h2 { color: var(--ed-coral); }
.hub-row--live:has(a:focus-visible) { outline: 2px solid var(--ed-coral); outline-offset: -2px; }
.hub-row--soon h2 { color: var(--muted); }
.hub-row__art { justify-self: end; width: clamp(130px, 15vw, 220px); margin: 0; }
.hub-row__art img { display: block; width: 100%; height: auto; }
.hub-row--soon .hub-row__art { filter: grayscale(1); opacity: .5; }
.hub-row .tag { width: fit-content; padding: 3px 9px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Map: steps read like chapters; the active one sits on a stone band. */
.steps { padding-bottom: clamp(96px, 11vw, 150px); }
.step { border-top-color: var(--line); }
.step__head { grid-template-columns: 110px minmax(0, 1fr) auto; padding: 30px 0; }
.step__num { font: 500 clamp(44px, 4.6vw, 68px)/0.9 var(--ed-heading); letter-spacing: -0.05em; color: var(--ed-coral); }
.step--done .step__num, .step--locked .step__num { font-size: clamp(28px, 2.6vw, 38px); color: var(--muted); }
.step--done .step__head { padding: 20px 0; }
.step--active { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); border-top-color: transparent; padding-bottom: clamp(48px, 6vw, 80px); }
.step--active + .step { border-top-color: transparent; }
.commons .step--active .step__title { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -0.04em; }
.step__body { padding: 8px 0 24px 122px; }
.step--active .pick, .step--active .tool-card, .step--active .verdict-box, .step--active .legal { box-shadow: var(--elevation-1); }
.step--active .verdict-box { background: var(--card-bg); }
.role-intro { margin-bottom: 36px; font-size: 17px; }
.task { min-height: 84px; padding: 22px 0; }
.overview { gap: 56px; margin-bottom: 48px; }

/* Tool comparison as stacked cards. */
.tool-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 44px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--foreground); font: 600 12px/1.5 var(--ed-body); letter-spacing: .08em; text-transform: uppercase; }
.tool-group span { color: var(--ed-coral); }
.tool-group small { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); cursor: pointer; transition: border-color var(--duration-fast, 120ms); }
.tool-card:hover { border-color: var(--foreground); }
.tool-card[aria-current="true"] { border-color: var(--ed-coral); box-shadow: inset 3px 0 0 var(--ed-coral); }
.tool-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tool-card header button { padding: 0; border: 0; background: none; color: var(--foreground); font: 500 24px/1.15 var(--ed-heading); letter-spacing: -0.02em; text-align: left; cursor: pointer; }
.tool-card header button::after { content: ""; position: absolute; inset: 0; }
.tool-card header button:focus-visible { outline: none; }
.tool-card:has(header button:focus-visible) { outline: 2px solid var(--ed-coral); outline-offset: 3px; }
.tool-card header small { color: var(--muted); font-size: 12.5px; }
.tool-card header .flag { margin-top: 6px; }
.tool-card__facts { display: grid; gap: 0; margin: 0; font-size: 13.5px; }
.tool-card__facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.tool-card__facts dt { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.tool-card__facts dd { margin: 0; line-height: 1.5; }
.tool-card__open { margin-top: auto; color: var(--ed-coral); font-size: 13px; }

@media (max-width: 900px) {
  .hub-row { grid-template-columns: 1fr; gap: 18px; }
  .hub-row__num { font-size: 48px; }
  .hub-row__art { grid-row: 1; justify-self: start; width: 120px; }
  .step__head { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .step__num { font-size: 40px; }
  .step__body { padding-left: 0; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tool-card__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* v0.4: no numbering. Hub rows and map steps align on text alone. */
.hub-row { grid-template-columns: minmax(0, 760px) minmax(140px, 1fr); }
.step__head { grid-template-columns: minmax(0, 1fr) auto; }
.step__body { padding-left: 0; }
.step--done .step__choice small { color: var(--ed-coral); }
@media (max-width: 900px) { .step__head { grid-template-columns: minmax(0, 1fr) auto; } }

/* ═══ v0.8 feedback: practice vs evidence, structured experiences, reports ═══ */
.practice { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 56px; margin: 0 0 40px; padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); }
.practice__q { margin: 0 0 12px; font: 500 19px/1.35 var(--ed-heading); letter-spacing: -0.01em; }
.practice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.practice__opts .filter { min-height: 44px; }
.practice__thanks { margin-top: 12px; color: var(--muted); font-size: 13px; }
.practice__agg { grid-column: 2; grid-row: 1 / span 3; padding-left: 28px; border-left: 1px solid var(--line); }
.practice__agg h4 { margin-bottom: 10px; color: var(--muted); font: 600 11px/1.6 var(--ed-body); letter-spacing: .08em; text-transform: uppercase; }
.practice__agg p { font-size: 13.5px; line-height: 1.6; }
.practice__agg ul { margin: 8px 0; padding: 0; list-style: none; font-size: 13.5px; }
.bar { display: flex; height: 10px; margin: 6px 0 10px; overflow: hidden; border-radius: var(--radius-pill); background: var(--line); }
.bar--yes { background: var(--ink); } .bar--partly { background: var(--ochre); } .bar--no { background: var(--ed-coral); }
.practice__note { grid-column: 1; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.practice > div:first-child { grid-column: 1; }

.useful-wrap { padding-bottom: 32px !important; }
.useful { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--soft); }

.report { margin-top: 18px; }
.report summary { display: flex; align-items: center; min-height: 44px; width: fit-content; padding: 6px 0; border-bottom: 1px solid currentColor; color: var(--ink); font-size: 13.5px; cursor: pointer; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { margin-bottom: 10px; }
.form--compact { max-width: 560px; margin: 0; padding: 18px; }

.post-form > summary { width: fit-content; margin: 6px 0 14px; padding: 10px 16px; border: 1px solid var(--foreground); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; list-style: none; }
.post-form > summary::-webkit-details-marker { display: none; }
.post-form[open] > summary { display: none; }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__opts label { display: inline-flex; font-weight: 400; cursor: pointer; }
.choice__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 13px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: 13px; }
.choice__opts input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.choice__opts input:focus-visible + span { outline: 2px solid var(--ed-coral); outline-offset: 2px; }
.consent { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important; }
.consent input { min-height: 0 !important; margin-top: 3px; }
.form .hint { color: var(--muted); font-size: 12px; font-weight: 400; }

.seen-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; padding: 0; list-style: none; }
.seen-sum li { padding: 4px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; }
.seen-sum b { margin-left: 4px; color: var(--ink); }
.post__ctx { color: var(--muted) !important; font-size: 13px !important; }
.post__seen { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; padding: 0 !important; list-style: none; }
.post__seen li { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--soft); font-size: 12.5px !important; line-height: 1.6 !important; }
.post__update { margin: 8px 0; padding: 10px 14px; border-left: 2px solid var(--ink); background: var(--ink-tint); }
.post__update span { color: var(--ink); font-size: 12px; font-weight: 600; }
.post__update p { margin: 4px 0 0 !important; }
.mine-tag { padding: 0 7px; border: 1px solid var(--ed-coral); border-radius: var(--radius-sm); color: var(--ed-coral); font-size: 11px; }
.post--mine { border-top-color: var(--ed-coral); }

@media (max-width: 900px) {
  .practice { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .practice__agg { grid-column: 1; grid-row: auto; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
}
.practice { grid-template-rows: auto auto 1fr; align-items: start; }
.practice__opts { align-items: center; }
@media (max-width: 900px) { .practice { grid-template-rows: none; } }

/* Anti-spam field: invisible to people, filled only by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ─── Questionnaire (guided path) ─────────────────────────
 * One question per screen; the report is also the print layout ("Save as PDF").
 * Chosen options carry a filled mark and a word, never colour alone. */
.quiz { max-width: 780px; margin: 0 auto; padding: 48px max(16px, 3vw) 96px; }
.quiz-top { display: flex; justify-content: flex-end; margin: 0 0 8px; font-size: 13px; }
.quiz-explore { display: inline-flex; align-items: center; min-height: 44px; color: var(--ed-coral); }
.quiz-resumed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.quiz-linkbtn { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: var(--ed-coral); font: inherit; cursor: pointer; }
.quiz-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.quiz-maplink { display: inline-flex; align-items: center; min-height: 44px; color: var(--ed-coral); font-size: 13px; }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress span { flex: 1; height: 4px; border-radius: var(--radius-sm); background: var(--line); }
.quiz-progress span.done { background: var(--ink); }
.quiz-progress span.now { background: var(--ed-coral); }
.quiz-step { margin: 10px 0 28px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.quiz h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.quiz h3 { margin-top: 6px; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.quiz-title em { color: var(--ed-coral); }
.quiz .quiz-step { margin: 14px 0 0; }
.quiz h2 { margin: 12px 0 0; }
.quiz .quiz-lede { margin: 14px 0 28px; }
.quiz .btn { padding: 12px 24px; min-height: 44px; }
.quiz-lede { max-width: 640px; margin: 14px 0 28px; color: var(--text); font-size: 16px; line-height: 1.65; }
.quiz-hint, .quiz-note, .quiz-privacy { color: var(--muted); font-size: 13px; line-height: 1.7; }
.quiz-hint { margin-top: 14px; }
.quiz-privacy { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--background); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; }
.quiz-opt:hover { border-color: var(--ink); }
.quiz-opt .mark { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--muted); border-radius: 50%; }
.quiz-opt[data-multi] .mark { border-radius: var(--radius-sm); }
.quiz-opt[aria-pressed="true"] { border-color: var(--ed-coral); box-shadow: inset 0 0 0 1px var(--ed-coral); }
.quiz-opt[aria-pressed="true"] .mark { border-color: var(--ed-coral); background: var(--ed-coral); box-shadow: inset 0 0 0 3px var(--background); }
.quiz-opt .t { display: block; font-weight: 600; }
.quiz-opt .d { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.quiz-opt:focus-visible, .quiz-seg button:focus-visible { outline: 2px solid var(--ed-coral); outline-offset: 2px; }
.quiz-matrix { display: grid; gap: 14px; }
.quiz-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px 22px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quiz-cat .t { display: block; font-weight: 600; }
.quiz-cat .d { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.quiz-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-seg button { min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--background); color: var(--foreground); font: inherit; font-size: 13px; cursor: pointer; }
.quiz-seg button[aria-pressed="true"] { border-color: var(--ed-coral); box-shadow: inset 0 0 0 1px var(--ed-coral); font-weight: 600; }
.quiz-seg button[aria-pressed="true"]::before { content: "✓ "; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.quiz-nav .btn { min-height: 44px; }
.quiz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.quiz-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; margin: 0 0 8px; padding: 18px 0; border-block: 1px solid var(--line); }
.quiz-summary dt { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.quiz-summary dd { margin: 2px 0 0; font-size: 14px; }
.quiz-task { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--ink); }
.quiz-pill { display: inline-block; padding: 3px 9px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; }
.quiz-q { margin: 6px 0 10px; color: var(--muted); }
.quiz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; margin-top: 14px; }
.quiz-cols ul, .quiz-grp ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; font-size: 14px; line-height: 1.65; }
.quiz-lbl { margin-top: 18px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.quiz-tools { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: q; }
.quiz-tools li { counter-increment: q; display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quiz-tools li > * { grid-column: 2; }
.quiz-tools .quiz-maplink { justify-self: start; }
.quiz-tools li::before { content: counter(q); grid-column: 1; grid-row: span 4; font-weight: 600; color: var(--ed-coral); }
.quiz .meta { color: var(--muted); font-size: 12.5px; }
.quiz .why { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz .why span { padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; }
.quiz .why span::before { content: "+ "; }
.quiz .why span.neg::before { content: "− "; }
.quiz-all { margin-top: 14px; }
.quiz-all summary { cursor: pointer; font-weight: 600; }
.quiz-all .quiz-grp li { margin-bottom: 6px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.quiz-print-foot { display: none; }
@media (max-width: 640px) {
  .quiz { padding-top: 32px; }
  .quiz-row, .quiz-cols { grid-template-columns: 1fr; }
  .quiz-nav .btn { flex: 1; }
}
@media print {
  @page { margin: 16mm; }
  .skip-link, .site-header, .site-footer, .quiz-top, .quiz-resumed, .quiz-open, .quiz-maplink, .quiz-progress, .quiz-step, .quiz-nav, .quiz-actions, .quiz-hint, .quiz-privacy, .quiz-all summary { display: none !important; }
  body.commons { background: Canvas; color: CanvasText; }
  .quiz { max-width: none; padding: 0; }
  .quiz h2 { font-size: 24pt; }
  .quiz h3 { font-size: 15pt; }
  .quiz-task { margin-top: 16pt; padding-top: 10pt; }
  .quiz-task h3, .quiz-lbl, .quiz-pill { break-after: avoid; }
  .quiz-tools li { break-inside: avoid; }
  .quiz-all { margin-top: 8pt; }
  .quiz a { color: inherit; text-decoration: none; }
  .quiz-pill, .quiz .why span { border-color: CanvasText; }
  .quiz-print-foot { display: block; margin-top: 18pt; color: var(--muted); font-size: 9pt; }
}
