/* =========================================================
   Gold Strike Simulations: roadmap look (Kes, Dec 2, 2026)
   For /roadmap and the product-page strips. Load AFTER gs-kit.css.
   Uses gs-kit tokens (--gs-*). Breakpoints 900 and 480 match gs-kit.css.
   No inline styles needed: the bar is made of one box per stage, so the
   stamped HTML needs only class names (works with no JS, no CSP trouble).
   Marks are drawn in CSS. The STATE WORD is always in the HTML; the mark
   is aria-hidden decoration. Never color alone: each state has its own
   shape AND its own word.

   HTML contract (Icheb):
   <section class="rm-card" aria-labelledby="rm-dp">
     <h2 class="rm-card__name" id="rm-dp">Debrief Pro</h2>
     <p class="rm-card__stage">Now: <b>Stage title</b></p>
     <div class="rm-bar" role="progressbar" aria-valuemin="0" aria-valuemax="5" aria-valuenow="3"
          aria-valuetext="3 of 5 stages done" aria-label="Debrief Pro progress">
       one <span class="rm-seg rm-seg--done"></span> per counted stage:
       rm-seg--done | rm-seg--building | rm-seg--next   (exploring is never counted)
     </div>
     <p class="rm-bar__text">3 of 5 stages</p>
     <p class="rm-new"><span class="rm-new__label">What's new</span> one line</p>
     <ol class="rm-list">
       <li class="rm-row rm-row--done">
         <span class="rm-mark" aria-hidden="true"></span>
         <div class="rm-row__body"><span class="rm-state">Done</span>
           <strong class="rm-row__title">..</strong><span class="rm-row__note">..</span></div></li>
       (rm-row--building "Building now", rm-row--next "Up next", rm-row--exploring "Exploring")
     </ol>
   </section>
   NOTE: p and ul rules are written as ".gs .rm-x" so they beat gs-kit ".gs p { margin:0 }".
   Strip: <aside class="rm-strip" aria-label="Roadmap"> ... (see bottom of this file)
   ========================================================= */

:root {
  --rm-quiet: #b9aecb;       /* exploring text, solid. 8.6:1 on card #141329 */
  --rm-quiet-line: #8a82a6;  /* dashed borders and empty bar boxes. 5.0:1 on card */
  --rm-ink-soft: #e8def0;    /* "up next" ring and word */
}

.rm { max-width: 1100px; margin: 0 auto; }
.gs .rm-promise { margin-top: 26px; max-width: 760px; font-size: 17px; line-height: 1.6; color: #e8def0dd; }
.rm-promise a { color: var(--gs-gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.rm-promise a:hover { color: #fff; }
.gs .rm-legend { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: 14px; color: #e8def0cc; }
.rm-legend li { display: flex; align-items: center; gap: 8px; }

/* ---------- Two cards ---------- */
.rm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.rm-card { padding: 28px; border-radius: 8px; background: var(--gs-card); border: 1px solid #ffe2a830; box-shadow: 0 24px 60px #0008; }
.rm-card__name { font-family: Anton, sans-serif; font-weight: 400; font-size: 40px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.gs .rm-card__stage { margin-top: 10px; font-size: 16px; color: var(--gs-gold-soft); }
.rm-card__stage b { font-weight: 700; color: var(--gs-ink); }

/* the bar: one box per counted stage (exploring is never counted) */
.rm-bar { display: flex; gap: 5px; height: 14px; margin-top: 20px; }
.rm-seg { flex: 1 1 0; min-width: 0; border-radius: 3px; border: 1px solid var(--rm-quiet-line); background: transparent; }
.rm-seg--done { background: var(--gs-gold); border-color: var(--gs-gold); }
.rm-seg--building { background: linear-gradient(90deg, var(--gs-gold) 50%, transparent 50%); border-color: var(--gs-gold); }
.rm-seg--next { background: transparent; border-color: var(--rm-ink-soft); }
.gs .rm-bar__text { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--gs-ink); }
.gs .rm-bar__fine { margin-top: 4px; font-size: 13.5px; color: #e8def0bb; line-height: 1.5; }

.gs .rm-new { margin-top: 18px; padding: 14px 16px; border-radius: 6px; background: #ffffff0d; border-left: 3px solid var(--gs-gold); font-size: 16px; line-height: 1.5; color: #fff3e4; }
.rm-new__label { display: block; font-size: 11px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--gs-gold); margin-bottom: 4px; }

/* ---------- Stage list ---------- */
.gs .rm-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.rm-row { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 6px; background: #ffffff08; border: 1px solid #ffffff14; }
.rm-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rm-row__title { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--gs-ink); overflow-wrap: anywhere; }
.rm-row__note { font-size: 15px; line-height: 1.5; color: #e8def0cc; overflow-wrap: anywhere; }

/* state word: a chip whose shape matches its mark */
.rm-state { align-self: flex-start; display: inline-block; font-size: 11.5px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; line-height: 1.4; }
.rm-row--done .rm-state { color: var(--gs-gold); border: 1px solid var(--gs-gold); }
.rm-row--building .rm-state { color: #1b1206; background: var(--gs-gold); border: 1px solid var(--gs-gold); }
.rm-row--next .rm-state { color: var(--rm-ink-soft); border: 1px solid var(--rm-ink-soft); }
.rm-row--exploring .rm-state { color: var(--rm-quiet); border: 1px dashed var(--rm-quiet-line); }

.rm-row--building { border-color: #f2c14e88; background: #f2c14e12; }
/* exploring: quieter on purpose. Dashed, no fill, softer text. Still 8.6:1. */
.rm-row--exploring { background: transparent; border: 1px dashed var(--rm-quiet-line); }
.rm-row--exploring .rm-row__title { color: var(--rm-quiet); font-weight: 500; }
.rm-row--exploring .rm-row__note { color: var(--rm-quiet); }
.rm-explore-note { font-size: 14px; font-style: italic; color: var(--rm-quiet); }

/* ---------- The four marks (drawn in CSS, aria-hidden in the HTML) ---------- */
.rm-mark { position: relative; display: inline-block; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; box-sizing: border-box; }
/* Done: solid gold disc with a check */
.rm-row--done .rm-mark, .rm-mark--done { background: var(--gs-gold); border: 2px solid var(--gs-gold); }
.rm-row--done .rm-mark::after, .rm-mark--done::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #1b1206; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* Building now: gold ring, left half filled */
.rm-row--building .rm-mark, .rm-mark--building { border: 2px solid var(--gs-gold); background: linear-gradient(90deg, var(--gs-gold) 50%, transparent 50%); }
/* Up next: plain hollow ring, light */
.rm-row--next .rm-mark, .rm-mark--next { border: 2px solid var(--rm-ink-soft); background: transparent; }
/* Exploring: dashed ring, quiet */
.rm-row--exploring .rm-mark, .rm-mark--exploring { border: 2px dashed var(--rm-quiet-line); background: transparent; }
/* legend uses the same marks, smaller */
.rm-legend .rm-mark { width: 16px; height: 16px; margin: 0; }
.rm-legend .rm-mark--done::after { left: 4px; top: 1px; width: 4px; height: 8px; border-width: 0 2px 2px 0; }

/* ---------- Footnotes, date, stale notice ---------- */
.gs .rm-fine { margin-top: 26px; max-width: 760px; font-size: 15px; line-height: 1.6; color: #e8def0cc; }
.gs .rm-updated { margin-top: 14px; font-size: 14.5px; color: var(--gs-gold-soft); }
.gs .rm-stale { margin-top: 12px; display: inline-block; padding: 10px 14px; border: 1px solid var(--gs-gold); border-radius: 4px; background: #f2c14e1a; color: var(--gs-ink); font-size: 15px; }
.rm-stale[hidden] { display: none; }
.gs .rm-links { margin-top: 12px; font-size: 14.5px; color: #e8def0cc; }
.rm-links a { color: var(--gs-gold); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 6px; }

/* ---------- Product-page strip (and home) ---------- */
/* Space is reserved even when hidden, so a Buy button never jumps. */
.rm-strip { margin: 26px 0 40px; min-height: 76px; display: grid; grid-template-columns: auto minmax(120px, 220px) 1fr auto; gap: 8px 20px; align-items: center; padding: 14px 20px; border-radius: 8px; border: 1px solid #f2c14e66; background: linear-gradient(90deg, #1d1934, #141226); }
.rm-strip[hidden] { display: grid; visibility: hidden; }
.rm-strip__label { font-size: 11px; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; color: var(--gs-gold); }
.rm-strip .rm-bar { margin: 0; height: 12px; }
.rm-strip__text { font-size: 15px; line-height: 1.4; color: var(--gs-ink); }
.rm-strip__text b { font-weight: 700; }
.rm-strip__text span { display: block; color: #e8def0cc; font-size: 14px; }
.gs .rm-strip__link { color: var(--gs-gold-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.gs .rm-strip__link:hover { color: #fff; }

/* keyboard focus, on the dark background */
.rm a:focus-visible, .rm-strip a:focus-visible { outline: 2px solid var(--gs-gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tablet and phone (same breakpoints as gs-kit.css) ---------- */
@media (max-width: 900px) {
  .rm-cards { grid-template-columns: 1fr; gap: 20px; }
  .rm-card__name { font-size: 34px; }
  .rm-bar { height: 12px; }
  .rm-strip { grid-template-columns: 1fr auto; margin-bottom: 80px; } /* the page's screenshot pulls up 50px on phones; keep a clear gap */
  .rm-strip__label { grid-column: 1 / -1; }
  .rm-strip .rm-bar { grid-column: 1 / -1; }
  .rm-strip__text { grid-column: 1; }
  .rm-strip__link { grid-column: 2; }
}
@media (max-width: 480px) {
  .rm-promise { font-size: 16px; }
  .rm-card { padding: 20px 16px; }
  .rm-card__name { font-size: 30px; }
  .rm-row { grid-template-columns: 22px 1fr; gap: 10px; padding: 12px; }
  .rm-bar__text { font-size: 16px; }
  .rm-strip { padding: 14px 14px; grid-template-columns: 1fr; }
  .rm-strip__link { grid-column: 1; }
  .rm-legend { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rm * { transition: none !important; animation: none !important; } }
