/* Roadmap page: the filterable timeline, the climb slider, the wishlist picker, the gate list and the ETA readout.
   Uses the tokens from site.css (--panel, --line, --text, --muted, --accent, --accent-2, --radius). */

.rm-tools[hidden], .rm-empty[hidden], .rm-gtools[hidden], .rm-stage[hidden], .rm-item[hidden],
.rm-eta[hidden], .rm-etahint[hidden], .rm-climb[hidden], .wl[hidden], .wl-nojs[hidden], .wl-empty[hidden],
.wl-order[hidden], .wl-undo[hidden] { display: none; }

/* ---------- shared chip ---------- */
.rm-label {
  flex: 0 0 4.75rem; color: var(--muted); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.rm-chip {
  font: inherit; font-size: .875rem; line-height: 1.2; color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 62.4375rem; padding: .4375rem .875rem; min-height: 2.25rem;
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.rm-chip:hover { border-color: var(--accent-2); }
.rm-chip[aria-pressed="true"] { background: rgba(78, 201, 255, .14); border-color: rgba(78, 201, 255, .65); color: #fff; }
.rm-chip .rm-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-chip[aria-pressed="true"] .rm-n { color: var(--accent-2); }
.rm-chip.rm-clear { color: var(--muted); }
.rm-chip:focus-visible, .rm-mini:focus-visible, .rm-eta:focus-visible, .wl-btn:focus-visible,
.cl-range:focus-visible, .wl-tick input:focus-visible, .cl-new a:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

/* ---------- the climb ---------- */
.rm-climb {
  margin-top: 2.5rem; padding: 1.375rem 1.5rem 1.5rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.rm-climb .subhead { margin-top: 0; }
.rm-climb-sub { margin: .25rem 0 1rem; color: var(--muted); max-width: 46rem; }
.cl-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.cl-range { flex: 1 1 16rem; min-width: 0; accent-color: var(--accent); height: 2rem; cursor: pointer; }
.cl-stops { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.cl-head { margin: 0 0 1rem; color: #c3cde2; }
.cl-head b { color: var(--accent); }
.cl-bars { display: grid; gap: .625rem; max-width: 52rem; }
.cl-row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 6.5rem; align-items: center; gap: .75rem; }
.cl-name { color: var(--text); font-size: .9375rem; }
.cl-track {
  display: flex; height: .75rem; border-radius: 62.4375rem; overflow: hidden; background: rgba(141, 154, 181, .16);
}
.cl-track i { display: block; height: 100%; transition: width .55s cubic-bezier(.2, .7, .2, 1); }
.cl-had { background: var(--accent-2); }
.cl-add { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, rgba(255, 138, 61, .6) 6px 12px); }
.cl-still .cl-track i { transition: none; }
.cl-num { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cl-newl { margin: 1.25rem 0 .5rem; color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cl-new { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4375rem; }
.cl-new li { min-width: 0; }
.cl-new a {
  display: inline-block; max-width: 100%; font-size: .8125rem; color: #c3cde2; text-decoration: none;
  border: 1px solid var(--line); border-radius: .5rem; padding: .25rem .625rem; background: rgba(5, 7, 13, .45);
}
.cl-new a:hover { border-color: var(--accent-2); color: var(--text); }
.cl-new li.is-mine a { border-color: rgba(255, 138, 61, .55); color: var(--text); }
.cl-new li.is-mine a::before { content: "\2605 "; content: "\2605 " / ""; color: var(--accent); }

/* ---------- toolbar ---------- */
.rm-tools {
  display: grid; gap: .875rem; margin: 0 0 2.25rem; padding: 1.125rem 1.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.rm-group, .rm-row2 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rm-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 18rem; min-width: 0; }
.rm-search input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: .9375rem; color: var(--text);
  background: rgba(5, 7, 13, .65); border: 1px solid var(--line); border-radius: .625rem; padding: .5rem .75rem;
}
.rm-search input::placeholder { color: #5f6b85; }
.rm-search input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-color: transparent; }
.rm-result { margin: 0; color: var(--muted); font-size: .875rem; }

/* ---------- timeline ---------- */
.rm-stages { display: grid; gap: 2.75rem; }
.rm-stage { position: relative; padding-left: 2.25rem; --node: var(--accent-2); }
.rm-stage[data-stage="demo"] { --node: var(--accent); }
.rm-stage[data-stage="ea"] { --node: rgba(78, 201, 255, .6); }
.rm-stage[data-stage="full"] { --node: #5a6888; }
.rm-stage[data-stage="after"] { --node: #a77bff; }
.rm-stage::before {
  content: ""; position: absolute; left: .5rem; top: .875rem; bottom: -2.75rem; width: 2px;
  background: linear-gradient(var(--node), rgba(28, 39, 64, .9));
}
.rm-stage:last-child::before, .rm-stage.is-last::before { bottom: 0; }
.rm-stage > h3 { position: relative; margin: 0; font-size: 1.375rem; line-height: 1.3; }
.rm-stage > h3::before {
  content: ""; position: absolute; left: -2.25rem; top: .3rem; width: 1.0625rem; height: 1.0625rem;
  border-radius: 50%; border: 2px solid var(--node); background: var(--bg, #05070d);
  box-shadow: 0 0 0 4px rgba(5, 7, 13, .9), 0 0 14px var(--node);
}
.rm-scount {
  margin-left: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.rm-stage-sub { margin: .25rem 0 0; color: var(--muted); font-size: .9375rem; max-width: 42.5rem; }
.rm-list {
  list-style: none; margin: 1.125rem 0 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
}

/* ---------- feature cards ---------- */
.rm-item {
  display: flex; flex-direction: column; gap: .5rem; min-width: 0; overflow-wrap: anywhere;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #3a4766;
  border-radius: var(--radius); padding: 1.125rem 1.25rem 1rem; scroll-margin-top: 5.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.rm-item[data-status="built"] { border-left-color: var(--accent-2); }
.rm-item:hover { border-color: #2f4270; }
.rm-item[data-status="built"]:hover { border-left-color: var(--accent-2); }
.rm-item h4 { margin: 0; font-size: 1.125rem; line-height: 1.3; color: var(--text); }
.rm-item p { margin: 0; color: var(--muted); font-size: .9375rem; }
.rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.rm-item .rm-head { font-size: .8125rem; }
.rm-pill {
  display: inline-flex; align-items: center; gap: .375rem; font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: 3px .625rem; border-radius: 62.4375rem;
}
.rm-pill.built { background: rgba(78, 201, 255, .12); color: var(--accent-2); }
.rm-pill.planned { background: rgba(141, 154, 181, .14); color: var(--muted); }
.rm-area { color: #b6c1d9; }
.rm-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: auto !important; padding-top: .375rem; }
.rm-mini {
  font: inherit; font-size: .8125rem; color: #b6c1d9; background: rgba(5, 7, 13, .5);
  border: 1px solid var(--line); border-radius: .5rem; padding: .3125rem .625rem; min-height: 2rem; cursor: pointer;
}
.rm-mini:hover { border-color: var(--accent-2); color: var(--text); }
.rm-pick[aria-pressed="true"] { color: var(--accent); border-color: rgba(255, 138, 61, .5); }
.rm-item.is-picked { border-color: rgba(255, 138, 61, .35); border-left-color: var(--accent); }
.rm-item.is-linked { box-shadow: 0 0 0 2px var(--accent-2); }
.rm-item.rm-secret { border-left-color: #a77bff; background: rgba(40, 24, 70, .55); }
.rm-item.rm-secret .rm-pill { background: rgba(167, 123, 255, .16); color: #c7adff; }
.rm-empty { margin-top: 1.5rem; padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.rm-empty p { margin: 0 0 .75rem; }

/* ---------- wishlist picker ---------- */
.wl-nojs { color: var(--muted); }
.wl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.wl-col {
  min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.375rem 1.375rem;
}
.wl-h { display: flex; align-items: center; gap: .625rem; margin: 0 0 .5rem; font-size: 1.125rem; }
.wl-col .wl-h + .wl-hint { margin-top: 0; }
.wl-col > .wl-h:not(:first-child) { margin-top: 1.5rem; }
.wl-step {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-size: .875rem; font-weight: 700; color: var(--bg, #05070d); background: var(--accent-2);
}
.wl-hint { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; }
.wl-groups { display: grid; gap: 1rem; }
.wl-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.wl-legend {
  padding: 0; margin-bottom: .5rem; color: var(--accent); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.wl-gcount { color: var(--muted); letter-spacing: .04em; }
.wl-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.wl-tick {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; align-items: start;
  padding: .4375rem .5rem; border-radius: .5rem; border: 1px solid transparent; cursor: pointer; font-size: .9375rem;
}
.wl-tick:hover { background: rgba(78, 201, 255, .06); }
.wl-tick.is-on { border-color: rgba(255, 138, 61, .4); background: rgba(255, 138, 61, .07); }
.wl-tick input { margin: .25rem 0 0; width: 1.0625rem; height: 1.0625rem; accent-color: var(--accent); cursor: pointer; }
.wl-tname { color: var(--text); overflow-wrap: anywhere; }
.wl-tarea { grid-column: 2; color: #6d7894; font-size: .75rem; }

.wl-order { list-style: none; margin: 0 0 .25rem; padding: 0; display: grid; gap: .4375rem; }
.wl-oitem {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .625rem;
  padding: .5rem .625rem; border: 1px solid var(--line); border-radius: .625rem; background: rgba(5, 7, 13, .5);
}
.wl-oitem.is-top { border-color: rgba(255, 138, 61, .45); }
.wl-rank {
  display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; border-radius: .4375rem;
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(141, 154, 181, .14);
}
.wl-oitem.is-top .wl-rank { color: var(--bg, #05070d); background: var(--accent); }
.wl-obody { display: grid; min-width: 0; }
.wl-otitle { color: var(--text); overflow-wrap: anywhere; }
.wl-owhere { color: #6d7894; font-size: .75rem; }
.wl-octl { display: flex; gap: .25rem; }
.wl-btn {
  font: inherit; font-size: 1rem; line-height: 1; color: #b6c1d9; background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: .4375rem; width: 2.125rem; height: 2.125rem;
}
.wl-btn:hover:not(:disabled) { border-color: var(--accent-2); color: var(--text); }
.wl-btn:disabled { opacity: .35; cursor: default; }
.wl-rm:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wl-empty { margin: 0; padding: .875rem 1rem; border: 1px dashed var(--line); border-radius: .625rem; color: var(--muted); font-size: .9375rem; }

.wl-sh { margin: 1.25rem 0 .625rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wl-land { display: grid; gap: .5rem; }
.wl-lrow { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2rem; align-items: center; gap: .625rem; font-size: .875rem; }
.wl-lname { color: var(--text); }
.wl-ltrack { height: .625rem; border-radius: 62.4375rem; background: rgba(141, 154, 181, .16); overflow: hidden; }
.wl-lfill { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.wl-l-demo { background: var(--accent); }
.wl-l-ea { background: var(--accent-2); }
.wl-l-full { background: #7d8db0; }
.wl-l-after { background: #a77bff; }
.wl-lnum { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.wl-landnote { margin: .625rem 0 0; color: #c3cde2; font-size: .875rem; }

.wl-text {
  display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 8.5rem;
  font: .875rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text);
  background: rgba(5, 7, 13, .7); border: 1px solid var(--line); border-radius: .625rem; padding: .75rem .875rem;
}
.wl-text:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.wl-text::placeholder { color: #5f6b85; }
.wl-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .75rem; }
.wl-actions .btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.wl-status { min-height: 1.5em; margin: .5rem 0 0; color: var(--accent-2); font-size: .875rem; }

/* ---------- gates ---------- */
.faq.rm-gates { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); align-items: start; }
.rm-gates summary { display: flex; align-items: baseline; gap: .5rem; }
.rm-gates summary::before { flex: 0 0 auto; }
.rm-gstate {
  margin-left: auto; flex: 0 0 auto; font-size: .6875rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 2px .5rem; border-radius: 62.4375rem;
  background: rgba(141, 154, 181, .14); color: var(--muted);
}
.rm-gtools { margin: 1rem 0 0; }

/* ---------- why no date ---------- */
.rm-why { margin-bottom: 2rem; }
.rm-etawrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.5rem; }
.rm-eta {
  display: inline-flex; align-items: center; gap: .75rem; font: inherit; font-size: .875rem; cursor: pointer;
  color: var(--muted); background: rgba(5, 7, 13, .7); border: 1px dashed #2f4270; border-radius: .625rem;
  padding: .5rem .875rem; min-height: 2.5rem; letter-spacing: .08em; text-transform: uppercase;
}
.rm-eta:hover { border-color: var(--accent); }
.rm-eta b {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--accent); letter-spacing: .04em;
  text-transform: none; font-weight: 600; text-shadow: 0 0 10px rgba(255, 138, 61, .45);
}
.rm-eta.is-blink b { animation: rm-flick .35s steps(2, end) 1; }
@keyframes rm-flick { 0% { opacity: .2; } 100% { opacity: 1; } }
.rm-etahint { color: #6d7894; font-size: .8125rem; }
.rm-banner { margin-top: 2.5rem; }

/* ---------- narrower screens ---------- */
@media (max-width: 900px) {
  .wl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rm-label { flex-basis: 100%; }
  .rm-search { flex-wrap: wrap; }
  .rm-tools, .rm-climb { padding: 1rem; }
  .wl-col { padding: 1rem; }
  .rm-stage { padding-left: 1.75rem; }
  .rm-stage::before { left: .375rem; }
  .rm-stage > h3::before { left: -1.75rem; width: .9375rem; height: .9375rem; }
  .rm-item { padding: 1rem; }
  .cl-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: .25rem; }
  .cl-track { grid-column: 1 / -1; grid-row: 2; }
  .wl-lrow { grid-template-columns: 6rem minmax(0, 1fr) 1.75rem; }
  .wl-oitem { grid-template-columns: auto minmax(0, 1fr); }
  .wl-octl { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .rm-eta.is-blink b { animation: none; }
  .cl-track i, .wl-lfill, .rm-chip, .rm-item { transition: none; }
}
