/* Page components. Started as a copy of mockups/mockups.css (the approved design); shared by all steps. */

.ph { border: 2px dashed var(--muted); border-radius: var(--radius); background: var(--white); color: var(--muted);
  padding: 0.8rem 1rem; font-size: var(--step--1); }
.ph-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--yellow-soft); color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 0 0.35rem; }
.ph-box { min-height: 10rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.ph-tall { min-height: 18rem; }
.ph-num { font-weight: 700; color: var(--muted); }

.section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2-1 { grid-template-columns: 2fr 1fr; } }

/* Live counter */
.counters { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.counter { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.counter:last-child { border-bottom: 0; }
.counter-num { font-size: var(--step-3); font-weight: 800; line-height: 1.1; }
.counter-label { color: var(--muted); }
@media (min-width: 48rem) { .counters { grid-template-columns: repeat(3, 1fr); }
  .counter { border-bottom: 0; border-right: 1px solid var(--line); } .counter:last-child { border-right: 0; } }

/* Five rule cards: sideways scroll on mobile */
.rule-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 0.75rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.rule-cards > * { scroll-snap-align: start; }
@media (min-width: 64rem) { .rule-cards { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.rule-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem; }
.rule-card h3 { margin: 0; }
.rule-card p { margin: 0; }
.rule-card .more { margin-top: auto; font-weight: 700; }

/* Result bars (widths by class; no inline styles under the CSP) */
.bars { display: grid; gap: 0.4rem; margin: 0.5rem 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 2.6rem; gap: 0.5rem; align-items: center; font-size: var(--step--1); }
.bar { display: block; height: 0.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); }
.bar-row.lead .bar > span { background: var(--yellow); border-right: 2px solid var(--ink); }
.w0 { width: 0; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
.mini-bar { height: 0.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: var(--yellow); }

/* Roadmap strip: full circles sitting ON the line (the marker lives inside the phase's padding, so nothing clips it) */
.roadmap { list-style: none; margin: 0; padding: 0 0 0.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr);
  overflow-x: auto; scroll-snap-type: x proximity; }
.phase { position: relative; padding: 1.9rem 0.75rem 0 0; font-size: var(--step--1); scroll-snap-align: start; }
.phase::after { content: ""; position: absolute; top: 0.75rem; left: 0; right: 0; height: 4px; background: var(--line); }
.phase.done::after { background: var(--ink); }
.phase::before { content: ""; position: absolute; z-index: 1; top: 0.3rem; left: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink); box-sizing: content-box; }
.phase.done::before { background: var(--ink); }
.phase.current::before { background: var(--yellow); top: 0.15rem; width: 1.2rem; height: 1.2rem; }
.phase a { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 0.25rem; }
.phase a:hover strong, .phase a:focus-visible strong { text-decoration: underline; }
.phase strong { display: block; font-size: var(--step-0); }
.phase .muted { display: block; }
.phase.current strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.phase-art { display: block; width: 100%; max-width: 7.5rem; height: auto; margin-bottom: 0.4rem; }
.roadmap-in-prose { margin: 1rem 0; }

/* Pills / tabs / filters */
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; padding: 0; list-style: none; }
.pill { display: inline-block; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.3rem 0.8rem;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); }
.pill[aria-current], .pill.on { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* Vote cards */
.vote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.vote-card h3 { margin: 0 0 0.25rem; }
.vote-card .options { display: grid; gap: 0.3rem; margin: 0.5rem 0; }
.vote-card.done { border-left: 5px solid var(--yellow); }
.vote-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.check-done { font-weight: 700; }

/* Progress ring button */
.progress-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--white); border: 2px solid var(--ink);
  border-radius: 999px; padding: 0.3rem 0.9rem 0.3rem 0.35rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.ring { width: 2.2rem; height: 2.2rem; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--ink); }
.badge { display: inline-block; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.1rem 0.7rem; font-weight: 700; font-size: var(--step--1); }

/* Sticky table of contents (desktop) / details on mobile */
.with-toc { display: grid; gap: 1.5rem; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.toc li { margin: 0.2rem 0; }
@media (min-width: 64rem) { .with-toc { grid-template-columns: 16rem 1fr; } .toc { position: sticky; top: 1rem; align-self: start; } }
.rule-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1rem 1.25rem; margin: 1rem 0; }
.rule-box h3 { margin-top: 0; }

/* Sticky vote bar on mobile (detail page) */
.sticky-vote { position: sticky; bottom: calc(4rem + env(safe-area-inset-bottom)); background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 0.6rem 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; z-index: 5; }
@media (min-width: 48rem) { .sticky-vote { display: none; } }

/* Lists, tiles, tables */
.tiles { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--ink); }
.tile strong { display: block; font-size: var(--step-1); margin-bottom: 0.2rem; }
.tile .icon { margin-bottom: 0.3rem; }
.item-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; }
.item h3 { margin: 0 0 0.2rem; font-size: var(--step-1); }
.item-meta { color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; }
.score { display: inline-flex; flex-direction: column; align-items: center; min-width: 3rem; font-weight: 700; }
.score button { font: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 0 0.5rem; }
.with-score { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
table.data { border-collapse: collapse; width: 100%; background: var(--white); font-size: var(--step--1); }
table.data th, table.data td { border: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: left; }
table.data th { background: var(--paper); }
.table-wrap { overflow-x: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 1rem 0.8rem 3.2rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0.9rem; top: 0.75rem; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.video-thumb { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center; }
.status { display: inline-block; font-size: var(--step--1); font-weight: 700; border: 1px solid var(--ink); border-radius: 3px; padding: 0 0.4rem; background: var(--white); }
.status.wait { background: var(--yellow-soft); }
.verified { font-weight: 700; }
.verified::before { content: "✓ "; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.5rem 0; }
.kv dt { font-weight: 700; } .kv dd { margin: 0; }
.fingerprint { font-family: ui-monospace, monospace; font-size: 0.8rem; overflow-wrap: anywhere; }

/* Index and preview */
.index-group { margin-top: 1.5rem; }
.index-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.index-list li { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.9rem; }
.index-list .route { font-family: ui-monospace, monospace; font-size: var(--step--1); color: var(--muted); }
.index-list .grow { flex: 1; }
.preview { display: flex; gap: 1.5rem; align-items: flex-start; overflow-x: auto; padding: 1rem; }
.preview figure { margin: 0; }
.preview figcaption { font-weight: 700; margin-bottom: 0.4rem; }
.preview iframe { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); height: 820px; }
.preview .mob { width: 390px; }
.preview .desk { width: 1280px; }
.header-progress { padding-top: 0.75rem; display: flex; justify-content: flex-end; }
a.choice-card { color: var(--ink); text-decoration: none; } a.choice-card:hover { border-color: var(--ink); }

/* ---- added after the mockup review (docs/MOCKUP-REVIEW.md) ---- */
.narrow-wide { max-width: 52rem; }
.pills .pill { font: inherit; font-size: var(--step--1); cursor: pointer; }
button.pill { line-height: inherit; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Four result groups */
.groups { display: grid; gap: 0.35rem; margin: 0.5rem 0; }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; font-size: var(--step--1); }
.g-name { font-weight: 700; }
.g-val { order: 3; color: var(--muted); font-size: 0.8rem; }
@media (min-width: 40rem) { .groups-wide .g-row { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 12rem); align-items: center; gap: 0.5rem; } .groups-wide .g-val { order: 0; } }
.g-row .bar > span { background: var(--ink); }
.g-row.g-main .bar > span { background: var(--yellow); border-right: 2px solid var(--ink); }
.g-row.evidence .g-name, .g-row.evidence .g-val { color: var(--muted); font-weight: 400; }
.g-row.evidence .bar { border-style: dashed; }
.g-row.evidence .bar > span { background: var(--muted); }
.g-note { font-size: 0.8rem; color: var(--muted); margin: 0.2rem 0 0; }
.groups-full { display: grid; gap: 0.5rem; margin: 0.5rem 0; }
details.group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.9rem; }
details.group[open] { border-color: var(--ink); }
details.group summary { cursor: pointer; }
details.group.evidence { border-style: dashed; }
.tag.evidence { border-style: dashed; }
.counters-4 { grid-template-columns: 1fr 1fr; }
.counters-4 .counter { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counters-4 .counter-num { font-size: var(--step-2); }
.mini-bar.big { height: 1rem; margin: 0.5rem 0; }

/* Illustrations (ink + yellow line drawings) */
.illus { display: block; max-width: 100%; height: auto; }
.illus.rider { width: 9rem; margin: 0.25rem auto; }
.icon-light { width: 2.5rem; height: 2.5rem; display: inline-block; }
.icon-scene { width: 3rem; height: 2.25rem; display: inline-block; }
.icon-weather { width: 1.6rem; height: 1.6rem; display: inline-block; vertical-align: middle; }
.lights { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.3rem 0; }
.scenes { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.3rem 0; }
.scene { display: inline-flex; flex-direction: column; align-items: center; font-size: 0.8rem; }
.scene.no .illus { opacity: 0.35; }
.scene.no span:last-child { text-decoration: line-through; }
.light-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.light-list li { display: flex; gap: 0.75rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.8rem; }
figure.mini { margin: 0; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; }

/* Vote options, ballot, Byg din kører */
.vote-card .options { gap: 0.45rem; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.5rem; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.45rem 0.6rem; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.opt > .illus, .opt > .lights, .opt > .scenes { grid-column: 2; }
.opt .illus.rider { width: 6rem; margin: 0; }
.opt-name { display: block; font-weight: 700; }
.opt-sub { display: block; font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.followup { border-left: 4px solid var(--yellow); padding-left: 0.75rem; margin-top: 0.5rem; }
.opt-card .illus.rider { width: 8rem; }
.vote-layout { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .vote-layout { grid-template-columns: 1fr 17rem; align-items: start; } }
.model-panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.75rem; }
.model-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.model-pair figure, .model-big figure { margin: 0; text-align: center; }
.model-pair .illus.rider { width: 100%; }
.model-big { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
.model-big .illus.rider { width: 100%; max-width: 13rem; }
.model-big .pills, .model-big .actions { grid-column: 1 / -1; }
.share-card { margin: 1rem auto; max-width: 18rem; text-align: center; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1rem; }
.share-card .illus.rider { width: 12rem; }
.ballot-status .mini-bar { margin-top: 0; }

/* Pledge block */
.pledge-block { border-top: 4px solid var(--yellow); }
.pledge-form .grid { gap: 0.5rem; }

/* Phase pages */
.phase-head { display: flex; gap: 1rem; align-items: center; }
.phase-head .phase-art { width: 7rem; flex: none; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* Rides, meetings, weather, calendar */
.ride-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.wx { display: inline-flex; gap: 0.35rem; align-items: center; font-size: var(--step--1); }
.signup-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.signup-btns .btn { padding: 0.55rem 0.9rem; }
.elevation { width: 100%; }
.org-update { border-left: 5px solid var(--yellow); }
.filters { margin: 0.75rem 0; }
.filters .grid { gap: 0.5rem; }
.calendar { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-head { font-weight: 700; font-size: var(--step--1); text-align: center; }
.cal-day { min-height: 3.5rem; background: var(--white); border: 1px solid var(--line); padding: 0.2rem; font-size: 0.8rem; }
.cal-day.has { border-color: var(--ink); background: var(--yellow-soft); }
.cal-n { display: block; color: var(--muted); }

/* Forms added in the review */
.inline-pair { display: flex; gap: 0.5rem; }
.inline-pair > * { flex: 1; }
table.specs input { width: 100%; }
input.changed { border-color: var(--ink); background: var(--yellow-soft); }
.required-check { border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.5rem 0.7rem; background: var(--yellow-soft); }
.fig .fig-val { font-size: var(--step-2); font-weight: 800; color: var(--muted); margin: 0.2rem 0; }
.ph.shot { min-height: 7rem; margin-top: 0.5rem; }
.steps li .ph { margin-left: -2.2rem; }
.rule-fig { float: right; width: 9rem; margin: 0 0 0.5rem 0.75rem; }
.rule-box::after { content: ""; display: block; clear: both; }

/* ---- review items 26-31 ---- */
/* rider figure: side + rear view, labels, legend, light animations (item 29) */
.rider-model { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; }
.rider-model > figcaption { margin-bottom: 0.4rem; }
.rider-views { display: grid; gap: 0.5rem; }
@media (min-width: 40rem) { .rider-views { grid-template-columns: 1fr 1fr; } }
.rider-views figure { margin: 0; text-align: center; }
.rider-views figcaption { font-size: var(--step--1); font-weight: 700; }
.illus.rider-lg { width: 100%; max-width: 26rem; margin: 0 auto; }
.rider-model.compact .rider-views { grid-template-columns: 1fr 1fr; }
.rider-model.compact .illus.rider { width: 100%; }
.model-panel .rider-model { border: 0; padding: 0.25rem 0; }
.lbl-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lbl-btn { display: none; cursor: pointer; text-decoration: underline; font-size: var(--step--1); }
.lbl-toggle:focus-visible + .lbl-btn { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 39.99rem) { .lbl-btn { display: inline-block; } .lbl-toggle:checked ~ .rider-views .lbl { display: none; } }
.rider-legend { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--step--1); }
.rider-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.sw { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1.5px solid var(--ink); border-radius: 3px; }
.sw-white { background: #FFFFFF; } .sw-red { background: #C8201A; } .sw-amber { background: #F28C00; } .sw-yellow { background: var(--yellow); }
.brake-glow { animation: brake 3.2s ease-in-out infinite; }
@keyframes brake { 0%, 72%, 100% { opacity: 0.5; } 80%, 90% { opacity: 1; } }
.blink-l, .blink-r { animation: blink 1.4s steps(1, end) infinite; }
.blink-r { animation-delay: 0.7s; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .brake-glow, .blink-l, .blink-r { animation: none; } }
.model-layout { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .model-layout { grid-template-columns: 2fr 1fr; align-items: start; } }
.model-big { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.share-card .rider-model { border: 0; }
.share-card { max-width: 34rem; }

/* public vote comments (item 26) */
.comments { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.6rem; }
.comment { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.comment p { margin: 0.3rem 0; }
.c-head { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; font-size: var(--step--1); }
.c-vote { background: var(--yellow-soft); border: 1px solid var(--ink); border-radius: 3px; padding: 0 0.4rem; font-weight: 700; }
.c-vote.obs { background: var(--paper); font-weight: 400; }
.c-group { color: var(--muted); }
.c-prop { font-size: 0.75rem; }
.c-actions { display: flex; gap: 1rem; align-items: center; font-size: var(--step--1); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.replies { list-style: none; margin: 0.5rem 0 0 1rem; padding: 0 0 0 0.75rem; border-left: 3px solid var(--line); }
.c-tools { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.top-comments h4 { margin: 0.75rem 0 0.25rem; font-size: var(--step--1); }

/* hidden results (item 27) */
.locked { border-style: dashed; }
.participation { font-size: var(--step--1); }

/* per-country results (item 30) and overview (item 31) */
.country-rows { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.5rem; }
.country-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.7rem; background: var(--white); }
.cr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; }
.cr-spread { margin: 0.3rem 0; } .c-lead { font-weight: 700; }
.stack-bar { display: flex; height: 0.9rem; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; margin: 0.3rem 0; }
.stack-bar > span { display: block; height: 100%; border-right: 1px solid var(--white); }
.stack-bar > span:last-child { border-right: 0; }
.s0, .sw-seg.s0 { background: #1D1D1B; } .s1, .sw-seg.s1 { background: #5A5853; } .s2, .sw-seg.s2 { background: #8C8980; }
.s3, .sw-seg.s3 { background: #B7B3A8; } .s4, .sw-seg.s4 { background: #D8D4CA; }
.stack-bar > span.lead { background: var(--yellow); }
.sw-seg { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.25rem; vertical-align: middle; border: 1px solid var(--ink); }
.seg-key span { margin-right: 0.6rem; white-space: nowrap; }
.cmp-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; font-size: var(--step--1); }
.tag.diff { background: var(--yellow-soft); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.75rem 0; }
.filters select { width: auto; }
table.matrix td, table.matrix th { min-width: 7.5rem; vertical-align: top; }
table.matrix td a { display: block; color: var(--ink); text-decoration: none; }
.heat.h1 { background: #FBF6E0; } .heat.h2 { background: #F9EBA6; } .heat.h3 { background: #F5D64E; } .heat.h4 { background: var(--yellow); }
.heat-legend span { margin-right: 0.8rem; white-space: nowrap; }
.heat-sw { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1px solid var(--ink); margin-right: 0.3rem; vertical-align: middle; }
.heat-sw.h1 { background: #FBF6E0; } .heat-sw.h2 { background: #F9EBA6; } .heat-sw.h3 { background: #F5D64E; } .heat-sw.h4 { background: var(--yellow); }
table.matrix th[scope="row"], table.matrix thead th:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }

/* ---- step 3 ---- */
progress.goal { display: block; width: 100%; height: 1rem; margin: 0.4rem 0; accent-color: var(--yellow);
  appearance: none; border: 1px solid var(--ink); border-radius: 3px; background: var(--paper); overflow: hidden; }
progress.goal::-webkit-progress-bar { background: var(--paper); }
progress.goal::-webkit-progress-value { background: var(--yellow); }
progress.goal::-moz-progress-bar { background: var(--yellow); }
.empty-state { color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; }
.counter-small { font-size: var(--step-1); }
.pre { white-space: pre-wrap; }
.item-list > li.card { padding: 1rem; }
@media print {
  .site-header, .site-footer, .bottom-bar, .no-print, .toc, .rule-box, .profile-banner, .skip-link { display: none !important; }
  body { background: #fff; }
  .print-doc { max-width: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---- review item 35: live figure ---- */
.fig-flash { animation: figflash 0.9s ease-out; }
@keyframes figflash { from { box-shadow: 0 0 0 4px var(--yellow); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .fig-flash { animation: none; } }
.fig-change { font-size: var(--step--1); background: var(--yellow-soft); border-radius: 3px; padding: 0 0.3rem; }

/* ---- review item 36: comment icons ---- */
.c-head { position: relative; padding-right: 5.5rem; }
.c-icons, .c-more { position: absolute; top: 0; right: 0; display: flex; gap: 0.15rem; }
.c-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border: 0; background: none;
  color: var(--muted); border-radius: 4px; cursor: pointer; padding: 0; }
.c-ico .icon { width: 1.05rem; height: 1.05rem; }
.c-ico:hover, .c-ico:focus-visible { color: var(--ink); background: var(--paper); }
.c-ico.on { color: var(--ink); }
.c-ico.on .icon { fill: var(--yellow); }
.c-more { display: none; }
.c-more summary { list-style: none; cursor: pointer; }
.c-more summary::-webkit-details-marker { display: none; }
.c-more-menu { position: absolute; right: 0; top: 2rem; display: flex; gap: 0.2rem; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.25rem; z-index: 3; }
@media (max-width: 39.99rem) { .c-icons { display: none; } .c-more { display: block; } .c-head { padding-right: 2.2rem; } }
.c-actions .icon { width: 1rem; height: 1rem; vertical-align: -0.15em; }

/* ---- review item 34: owner console ---- */
.owner-strip { background: var(--ink); color: var(--white); padding: 0.5rem 1rem; font-size: var(--step--1); }

/* ---- review item 37: autosave, summary panel, glowing submit ---- */
.saved-tick { color: var(--ink); font-size: var(--step--1); font-weight: 700; animation: tickfade 2.5s ease-out forwards; }
@keyframes tickfade { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0.35; } }
.summary-panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; animation: slidein 0.35s ease-out; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.3rem; font-size: var(--step--1); }
.summary-list li { display: flex; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; }
@keyframes slidein { from { transform: translateX(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 63.99rem) { .summary-panel { position: sticky; bottom: 0; z-index: 6; animation-name: slideup; max-height: 70vh; overflow: auto; } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.btn-glow { box-shadow: 0 0 0 0 var(--yellow); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.7); } 50% { box-shadow: 0 0 0 0.6rem rgba(245, 196, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-glow, .summary-panel, .saved-tick { animation: none; } }

/* ---- step 7: data page ---- */
.cells { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.cells li { display: flex; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--line); padding: 0.15rem 0; }
.sw-key { display: inline-block; width: 0.8rem; height: 0.8rem; border: 1px solid var(--ink); vertical-align: -0.1em; margin-right: 0.2rem; }
.matrix details summary { cursor: pointer; }
.wheel-photo, .report-photo { max-width: 100%; height: auto; border-radius: var(--radius); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: end; }

/* ---- step 8: videos ---- */
/* Fix: a real 16:9 box so the play button sits inside it, never over the text */
.video-box-fig { margin: 1rem 0; max-width: 720px; }
.video-box { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 12px; overflow: hidden; text-decoration: none; }
.video-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: 0.7; }
.video-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem; text-align: center; }
.video-cta .btn { white-space: normal; }
.play-icon circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.play-icon path { fill: var(--ink); }
.video-box:hover .play-icon circle, .video-box:focus-visible .play-icon circle { fill: var(--white); }
.video-box-fig figcaption { margin-top: 0.4rem; }
.small-box { margin-bottom: 0.5rem; }
.small-box .play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-nothumb { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0.5rem; color: var(--white); font-size: var(--step--1); }
.video-frame { max-width: 720px; margin: 1rem 0; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; background: var(--ink); }
.tile img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 0.4rem; }

/* ---- step 9: community ---- */

.elevation { width: 100%; max-width: 640px; height: auto; display: block; background: var(--white); border: 1px solid var(--line); }
.ride-card h3 { margin: 0; }

/* ---- step 10: organisations ---- */
.statement { margin: 0; }
.statement img { float: right; max-width: 96px; height: auto; margin: 0 0 0.5rem 0.75rem; }
.statement footer { margin-top: 0.5rem; font-weight: 700; }

/* Proposal PDF viewer (item 39): bar on top, and at the bottom on phones */
.pdf-viewer { padding: var(--gap) 0; }
.pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: var(--gap); }
.pdf-bar h1 { margin: 0; flex: 1 1 14rem; }
.pdf-frame { display: block; width: 100%; height: calc(100vh - 12rem); min-height: 28rem; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.pdf-fallback { margin-top: .5rem; }
.pdf-bar-bottom { display: none; margin-top: var(--gap); }
@media (max-width: 700px) {
  .pdf-frame { height: 70vh; min-height: 20rem; }
  .pdf-bar-bottom { display: flex; margin-bottom: calc(var(--bar-h) + var(--gap)); }
}

/* Myths and facts (items 42, 46): two rows, no strikethrough.
   Grey "Mange tror:" row with a red ✗, white "Faktisk:" row with the yellow FAKTA label. */
.myth-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.myth-card p { margin: 0; }
.myth-row, .fact-row { padding: .8rem 1.25rem; display: grid; gap: .3rem; }
.myth-row { background: #EFEDE7; border-bottom: 1px solid var(--line); }
.fact-row { background: var(--white); }
.row-head { font-weight: 700; font-size: var(--step--1); display: flex; align-items: center; gap: .45rem; }
.myth-x { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); font-size: .8rem; line-height: 1; }
.myth-text { color: var(--ink); }
.fact-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 3px; background: var(--yellow); color: var(--ink); }
.myth-card .source { margin-top: auto; padding: .2rem 1.25rem .9rem; font-size: var(--step--1); }
.source-label { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; border: 2px solid var(--ink); }
.source-documented .source-label { background: var(--ink); color: var(--white); }
.source-riders .source-label { background: var(--yellow-soft); color: var(--ink); }
.source-study .source-label { background: var(--white); color: var(--ink); border-style: dashed; }
.tips { display: grid; gap: .5rem; padding-left: 1.2rem; }
.labels-explained dl { margin: 0; }

/* Review item 44: blur guide illustrations and the proposal's video evidence */
.blur-steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.blur-steps figure { margin: 0; }
.blur-steps img { width: 100%; height: auto; border: 1px solid var(--line, #D9D9D4); border-radius: 12px; }
.blur-steps figcaption { margin-top: 0.4rem; font-size: var(--step--1); }
.evidence { margin: 1rem 0; }
.evidence h3 { margin-top: 0; }

/* ---- review item 47: the vote sidebar follows the scroll ---- */
/* Desktop: the whole right column (figure on top, pros/cons under it, summary) is sticky
   and scrolls on its own when it is taller than the window. */
.panel-toggle { display: none; }
@media (min-width: 64rem) {
  .vote-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 1rem; align-content: start; }
}
/* Mobile: a compact bar above the bottom navigation (small figure + the first pro/con line);
   tap to expand. The page gets matching bottom padding so it never covers an option. */
@media (max-width: 63.99rem) {
  .model-panel.live { position: fixed; left: 0.5rem; right: 0.5rem; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 0.4rem); z-index: 40;
    max-height: 6.5rem; overflow: hidden; padding: 0.4rem 0.6rem; display: grid; grid-template-columns: auto 1fr; gap: 0 0.6rem; align-items: start;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); transition: max-height 0.25s ease-out; }
  .model-panel.live > * { grid-column: 1 / -1; }
  .model-panel.live > [data-live-fig] { grid-column: 1; grid-row: 2; }
  .model-panel.live > .pc-box { grid-column: 2; grid-row: 2; margin: 0; padding: 0; border: 0; }
  .model-panel.live:not(:has([data-live-fig])) > .pc-box { grid-column: 1 / -1; }
  .model-panel.live:not(.open) [data-live-fig] svg { max-height: 3.4rem; width: auto; }
  .model-panel.live [data-live-fig] .model-pair { grid-template-columns: auto auto; }
  .model-panel.live:not(.open) [data-live-fig] figcaption,
  .model-panel.live:not(.open) .pc-box h2,
  .model-panel.live:not(.open) .pc-box > p,
  .model-panel.live:not(.open) .pc-opt .muted,
  .model-panel.live:not(.open) .pc-opt br,
  .model-panel.live:not(.open) .pc-list li:not(:first-child),
  .model-panel.live:not(.open) > :not(.panel-toggle):not([data-live-fig]):not(.pc-box) { display: none; }
  .model-panel.live:not(.open) .pc-opt, .model-panel.live:not(.open) .pc-list li { font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .model-panel.live:not(.open) .pc-list { margin: 0; }
  .model-panel.live.open { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; grid-template-columns: 1fr; }
  .model-panel.live.open > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .model-panel.live.open > .panel-toggle { order: -1; }
  .model-panel.live.open > [data-live-fig] ~ .pc-box { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
  .model-panel.live .panel-toggle { display: block; grid-row: 1; justify-self: end; background: none; border: 0; padding: 0.1rem 0; font: inherit;
    font-size: var(--step--1); font-weight: 700; text-decoration: underline; color: var(--ink); cursor: pointer; min-height: 1.5rem; }
  .model-panel.live .panel-toggle[hidden] { display: none; }
  .vote-layout { padding-bottom: 7.5rem; }
  html:has(.model-panel.live) { scroll-padding-bottom: calc(var(--bar-h) + 8rem); }
  /* When every question is answered the summary takes the bottom instead. */
  .vote-side:has(.summary-panel) .model-panel.live { display: none; }
}
@media (prefers-reduced-motion: reduce) { .model-panel.live { transition: none; } }

/* ---- review item 48: wheel model pictures and filters ---- */
.model-filters { margin: 1rem 0 1.5rem; display: grid; gap: 0.3rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.filter-label { font-weight: 700; min-width: 9rem; font-size: var(--step--1); }
.filter-row .pills { margin: 0; }
.model-group { margin-top: 2rem; }
.model-grid { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.model-card { display: grid; grid-template-columns: 120px 1fr; gap: 0.9rem; align-items: start; margin: 0; }
.model-card h3 { margin: 0 0 0.3rem; font-size: var(--step-0); }
.model-card p { margin: 0 0 0.3rem; }
/* Fix 3: the source badge gets its own full-width row under picture and text, on one line */
.model-card > .model-badge-row { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.model-badge-row { margin: 0 0 0.6rem; }
.src-badge { display: inline-block; white-space: nowrap; font-size: var(--step--1); font-weight: 600; line-height: 1.4;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.65rem; }
.src-badge.unverified { background: #FBF1D6; border-color: #D9B860; color: #6B5310; }
.src-badge.confirmed { background: var(--white); border-color: var(--ink); }
.src-badge.confirmed::before { content: "✓ "; }
.model-thumb, .model-photo { margin: 0; }
.model-thumb img, .model-photo img, .model-thumb-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: #F4F2EC; }
.model-thumb img { width: 120px; }
.model-thumb figcaption, .model-photo figcaption { font-size: var(--step--1); color: var(--muted, #5B5A55); margin-top: 0.2rem; }
.model-head { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 400px) 1fr; align-items: start; }
.model-head .kv { margin-top: 0; }
@media (max-width: 40rem) {
  .model-head { grid-template-columns: 1fr; }
  .model-photo { max-width: 400px; }
  .filter-label { min-width: 0; width: 100%; }
}
