/* roadmap: the Live / Up next / After swaps board, the six-step path, and one row per layer
   with a six-stage meter. Tokens only (css/tokens.css), no script; the meters are aria-hidden
   because each row states its stage in words. Holds still under reduced motion. */

/* 1. dot keys: done (filled), in progress (ring with a centre), to do (hollow) */
.rm-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted-2); vertical-align: -1px; }
.rm-key.is-done { background: var(--accent); border-color: var(--accent); }
.rm-key.is-now { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px); }
.rm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.rm-legend .rm-key:not(:first-child) { margin-left: 0.9rem; }

/* 2. the board: three columns from 900 px, stacked below */
.rm-board { display: grid; gap: 1rem; margin-top: 1.5rem; }
.rm-col { min-width: 0; padding: 1rem 1.1rem 0.3rem; background: var(--paper-2); border: 1px solid var(--rule); border-top: 2px solid var(--muted-2); }
.rm-col-live { border-top-color: var(--accent); }
.rm-col-next { border-top-color: var(--accent-ink); }
.rm-col-later { border-top-style: dashed; }
.rm-col-head { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rm-pills { list-style: none; margin: 0; padding: 0; }
.rm-pills a { display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; min-height: 44px; padding: 0.6rem 0; border-top: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-decoration: none; }
.rm-pills a:hover { color: var(--accent-ink); }
.rm-pills a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-pill-state { font-family: var(--mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
@media (min-width: 900px) { .rm-board { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }

/* 3. the path: numbered steps, a column below 900 px and a row of six above */
.rm-path { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: rm-step; display: grid; }
.rm-path > li { counter-increment: rm-step; position: relative; min-width: 0; padding: 0 0 1.2rem 2.9rem; }
.rm-path > li::before {
  content: counter(rm-step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2rem; padding: 0.25rem 0;
  text-align: center; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.06em; color: var(--accent-ink);
  background: var(--paper); border: 1px solid var(--accent-dim);
}
.rm-path > li::after { content: ""; position: absolute; left: 1rem; top: 1.75rem; bottom: 0.25rem; width: 1px; background: var(--rule); }
.rm-path > li:last-child::after { display: none; }
.rm-path h3 { margin: 0.1rem 0 0.3rem; font-size: 1.02rem; }
.rm-path p { margin: 0; color: var(--muted); font-size: var(--t-small); }
@media (min-width: 900px) {
  .rm-path { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
  .rm-path > li { padding: 2.7rem 0 0; }
  .rm-path > li::after { left: 2.4rem; right: -1.2rem; top: 0.85rem; bottom: auto; width: auto; height: 1px; }
}

/* 4. a layer's row: the name and what it does beside its meter, then the facts and links */
.rm-intro { max-width: 40rem; margin: 0.5rem 0 0; color: var(--muted); }
.rm-group { margin: 2.4rem 0 0; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.rm-tracks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.rm-group + .rm-tracks, .rm-group + .rm-intro + .rm-tracks { margin-top: 0.9rem; }
.rm-track { display: grid; gap: 1.1rem 2.4rem; min-width: 0; padding: 1.3rem; background: var(--paper-2); border: 1px solid var(--rule); }
.rm-track:target { border-color: var(--accent); }
.rm-feature { border-color: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.rm-track-head h3 { margin: 0 0 0.4rem; font-size: 1.2rem; line-height: 1.25; }
.rm-track-head p { margin: 0; color: var(--muted); }
.rm-track > :is(.rm-facts, .rm-note, .item-links) { grid-column: 1 / -1; }
.rm-track > .item-links { margin: 0; padding-top: 0; }
@media (min-width: 760px) { .rm-track { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* 5. the meter: six stages joined by a line; the line after a finished stage is copper */
.rm-meter { list-style: none; margin: 0; padding: 0.3rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-self: start; }
.rm-meter > li {
  position: relative; padding-top: 1.45rem; text-align: center;
  font-family: var(--sans); font-stretch: 75%; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2);
}
/* a phone gives each stage about 45 px: the narrowest cut of Archivo keeps "Research" whole */
@media (max-width: 520px) { .rm-meter > li { font-size: 0.56rem; font-stretch: 62%; letter-spacing: 0; } }
.rm-meter > li::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; box-sizing: border-box;
  border-radius: 50%; border: 1.5px solid var(--muted-2); background: var(--paper);
}
.rm-meter > li::after { content: ""; position: absolute; top: 5.5px; left: 50%; width: 100%; height: 2px; background: var(--rule); }
.rm-meter > li:last-child::after { display: none; }
.rm-meter > li.is-done { color: var(--muted); }
.rm-meter > li.is-done::before { background: var(--accent); border-color: var(--accent); }
.rm-meter > li.is-done::after { background: var(--accent-dim); }
.rm-meter > li.is-now { color: var(--accent-ink); }
.rm-meter > li.is-now::before {
  border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 2.5px, var(--paper) 3px);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
@keyframes rm-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }
/* the pulse runs only while the scene runs (main.js sets .scene-moving; pausing or losing the
   scene clears it), so the scene's pause control stops it and a page without the scene holds still */
@media (prefers-reduced-motion: no-preference) {
  .scene-moving .rm-meter > li.is-now::before { animation: rm-pulse 2.4s var(--ease) infinite; }
}

/* 6. the facts beside each other from 760 px */
.rm-facts { margin: 0; display: grid; gap: 0.9rem 2.4rem; }
.rm-facts > div { min-width: 0; }
.rm-facts dt { margin: 0 0 0.3rem; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.rm-facts dd { margin: 0; font-size: var(--t-small); }
.rm-facts dd :is(ul, ol) { margin: 0; padding-left: 1.2em; }
.rm-facts dd li { margin: 0 0 0.25rem; }
.rm-facts dd li::marker { color: var(--accent-ink); }
@media (min-width: 760px) { .rm-facts { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.rm-note { margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--t-small); }
.rm-foot { margin: 1.1rem 0 0; color: var(--muted-2); font-size: var(--t-small); }

/* 7. the four live cards sit in one row on a wide panel */
.panel.wide .rm-live { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

@media (forced-colors: active) {
  .rm-key.is-done, .rm-meter > li.is-done::before, .rm-meter > li.is-done::after { background: CanvasText; }
  .rm-meter > li.is-now::before { background: Canvas; border-color: Highlight; box-shadow: none; }
}
@media print {
  .rm-col, .rm-track { break-inside: avoid; background: none; }
  .rm-key, .rm-meter > li::before, .rm-meter > li::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
