/* rt404.css: RealTimes dead-end (404) page, all four variants in ONE page.
   Cloned from RealTimes products/web/404-proposals/rt404.css (7828a9dc);
   RTNS additions are the block at the end of this file only.
   Additive to the live chrome: loads AFTER styles.css (donor) and rtns.css.
   Every selector starts with .rt404 so nothing in the donor is overridden.
   House rules (RTNS carve-out): Domi's tokens only (--paper, --paper2, --ink,
   --muted, --line, --gold, --gold2, --green, --dark); small gold TEXT on paper
   is #8c6a32 (AA); Georgia display, Arial body, no webfont; square corners;
   44px targets; visible focus; reduced motion respected; dark surfaces use
   pure #ffffff text and full-brightness --gold2. No inline styles: the only
   runtime values (slider marker positions) are set through CSSOM. */

:root {
  --rt404-gold-text: #8c6a32;
  --rt404-ok: #113a32;
  --rt404-miss: #6c2a1f;
}

.rt404 { background: var(--paper2); color: var(--ink); }
.rt404 [hidden] { display: none !important; }
.rt404 :focus-visible { outline: 2px solid var(--rt404-gold-text); outline-offset: 3px; }
.rt404-dark :focus-visible { outline-color: var(--gold2); }

/* ---- hero ------------------------------------------------------------ */
.rt404-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.rt404-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.rt404-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--rt404-gold-text);
}
.rt404-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.rt404-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.rt404-title em {
  display: block;
  font-style: italic;
  color: var(--rt404-gold-text);
}
.rt404-lede {
  max-width: 34em;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.rt404-path {
  margin: 0 0 26px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rt404-path code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper2);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

/* did you mean */
.rt404-dym {
  margin: 0 0 26px;
  border-top: 3px solid var(--ink);
  padding-top: 12px;
  max-width: 36em;
}
.rt404-dym-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rt404-gold-text);
}
.rt404-dym-best {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease;
}
.rt404-dym-best:hover { border-color: var(--gold); background: var(--paper2); }
.rt404-dym-title {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.15;
  text-wrap: balance;
}
.rt404-dym-url {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rt404-dym-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rt404-gold-text);
  white-space: nowrap;
}
.rt404-dym-more {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.rt404-dym-more li { border-bottom: 1px solid var(--line); }
.rt404-dym-more a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.rt404-dym-more a:hover { color: var(--rt404-gold-text); }
.rt404-dym-more a::after { content: "\2192"; margin-left: auto; padding-left: 12px; color: var(--rt404-gold-text); }

.rt404-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rt404 .btn { min-height: 44px; cursor: pointer; background: transparent; }
.rt404 .btn.gold { background: var(--gold); border-color: var(--gold); color: #111; }
.rt404 .btn.gold:hover { background: var(--gold2); border-color: var(--gold2); }
.rt404 .btn.ink { color: var(--ink); border-color: var(--ink); }
.rt404 .btn.ink:hover { background: var(--ink); color: #fff; }

/* ---- the play card (shared) ---------------------------------------- */
.rt404-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 30px 30px 28px;
}
.rt404-card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rt404-gold-text);
}
.rt404-card-kicker span:last-child { color: var(--muted); font-weight: 400; letter-spacing: .06em; }
.rt404-q {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 22px;
  text-wrap: balance;
}
.rt404-reveal {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rt404-verdict {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rt404-verdict.is-ok { color: var(--rt404-ok); }
.rt404-verdict.is-miss { color: var(--rt404-miss); }
.rt404-fact {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.rt404-source {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.rt404-source a { color: var(--rt404-gold-text); text-decoration: underline; text-underline-offset: 2px; }
.rt404-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rt404-link-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- A: puzzle options --------------------------------------------- */
.rt404-options { display: grid; gap: 8px; }
.rt404-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  text-align: left;
  background: var(--paper2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.rt404-option:hover:not(:disabled) { border-color: var(--gold); background: #fff; }
.rt404-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
}
.rt404-option-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rt404-option:disabled { cursor: default; }
.rt404-option.is-answer { background: var(--rt404-ok); border-color: var(--rt404-ok); color: #fff; }
.rt404-option.is-wrong { background: #fff; border-color: var(--rt404-miss); color: var(--rt404-miss); }
.rt404-option.is-dim { opacity: 1; color: var(--muted); }

/* ---- B: fact card on dark ------------------------------------------ */
.rt404-dark {
  background: var(--dark);
  color: #fff;
  border: 1px solid #2a2d2a;
  border-top: 4px solid var(--gold2);
}
.rt404-dark .rt404-card-kicker { color: var(--gold2); }
.rt404-dark .rt404-card-kicker span:last-child { color: #fff; }
.rt404-figure {
  display: block;
  font-family: Georgia, serif;
  font-size: 84px;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--gold2);
  margin: 4px 0 18px;
  overflow-wrap: anywhere;
}
.rt404-dark .rt404-fact { font-family: Georgia, serif; font-size: 22px; line-height: 1.35; color: #fff; }
.rt404-dark .rt404-source { color: #fff; }
.rt404-dark .rt404-source a { color: var(--gold2); }
.rt404-dark .rt404-link-btn { color: #fff; }
.rt404-dots { display: flex; gap: 6px; margin: 0 0 18px; }
.rt404-dots span { width: 18px; height: 3px; background: #3a3d3a; }
.rt404-dots span.is-on { background: var(--gold2); }

/* ---- C: path chips -------------------------------------------------- */
.rt404-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.rt404-chip {
  min-height: 64px;
  padding: 12px 14px;
  text-align: left;
  background: var(--paper2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.15;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.rt404-chip:hover { border-color: var(--gold); background: #fff; }
.rt404-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rt404-path-title { font-family: Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }

/* ---- D: guess the number ------------------------------------------- */
.rt404-guess-out {
  display: block;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink);
}
.rt404-range {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.rt404-range-scale {
  display: flex;
  justify-content: space-between;
  margin: 0 0 20px;
  font-size: 11px;
  color: var(--muted);
}
.rt404-steppers { display: flex; gap: 8px; margin: 0 0 18px; }
.rt404-steppers .btn { min-width: 44px; padding: 0 12px; font-size: 16px; }
.rt404-track {
  position: relative;
  height: 64px;
  margin: 6px 0 16px;
  border-bottom: 2px solid var(--ink);
}
.rt404-mark {
  position: absolute;
  bottom: -7px;
  left: var(--rt404-x, 0%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: left 420ms ease;
}
.rt404-mark::after { content: ""; width: 12px; height: 12px; }
.rt404-mark.you { color: var(--muted); bottom: 22px; }
.rt404-mark.you::after { width: 2px; height: 22px; background: var(--muted); }
.rt404-mark.actual { color: var(--rt404-ok); }
.rt404-mark.actual::after { background: var(--rt404-ok); }

/* ---- ways out -------------------------------------------------------- */
.rt404-ways { padding: 48px 0 56px; }
.rt404-ways-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 4px solid var(--ink);
  padding-top: 10px;
  margin: 0 0 6px;
}
.rt404-ways-head h2 { font-family: Georgia, serif; font-weight: 400; font-size: 29px; margin: 0; }
.rt404-ways-head p { margin: 0; font-size: 11px; color: var(--muted); }
.rt404-ways-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}
.rt404-ways-grid li { border-bottom: 1px solid var(--line); }
.rt404-ways-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px 0;
  color: var(--ink);
}
.rt404-ways-grid a:hover .rt404-way-label { color: var(--rt404-gold-text); }
.rt404-way-label { font-family: Georgia, serif; font-size: 21px; line-height: 1.1; transition: color 180ms ease; }
.rt404-way-hint { grid-column: 1; font-size: 12px; line-height: 1.4; color: var(--muted); }
.rt404-way-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--rt404-gold-text); font-size: 18px; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .rt404-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rt404-title { font-size: 54px; }
  .rt404-ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .rt404-hero { padding: 36px 0 36px; }
  .rt404-title { font-size: 40px; }
  .rt404-lede { font-size: 15px; }
  .rt404-card { padding: 22px 18px 20px; }
  .rt404-q { font-size: 23px; }
  .rt404-figure { font-size: 60px; }
  .rt404-dark .rt404-fact { font-size: 19px; }
  .rt404-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt404-chip { font-size: 16px; }
  .rt404-guess-out { font-size: 44px; }
  .rt404-ways-grid { grid-template-columns: minmax(0, 1fr); }
  .rt404-dym-title { font-size: 19px; }
  .rt404-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rt404 *, .rt404 *::before, .rt404 *::after { transition: none !important; }
}

/* sr-only: the live chrome uses it (waitlist status) but neither styles.css
   nor rtns.css defines it, so it is scoped to the 404 page here. */
.rt404-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- RTNS additions (single 404.html, version picked client-side) ----
   rt404.js clones the chosen version's <template> into #rt404Copy and
   #rt404Play. Before it runs (or with no JS) the neutral copy and the ways
   out show, and the empty play column takes no space. The h3 above carries
   font-weight 400: serif display type is never bold (sans-serif bold only). */
.rt404-play:empty { display: none; }
.rt404-page:not([data-rt404-variant]) .rt404-grid { grid-template-columns: minmax(0, 1fr); }
/* Measured on the real background (headless Chrome): #8c6a32 small gold
   text on --paper (#f6f2ea, the hero) is 4.45:1, short of AA 4.5. #876630
   is 4.73:1 on --paper, 5.20:1 on --paper2, 5.29:1 on white. */
:root { --rt404-gold-text: #876630; }
