/* © 2026 Waystone (Matt Bramhall). All rights reserved. Proprietary and confidential: no licence is granted (see LICENSE). */
/* research.css — waystone-ai.org/research.
   The page reads like a report: a title, the live map, then eight numbered sections beside a contents list.
   Structure comes from type and space, not boxes. Panels sit only behind charts and tables; historic material
   sits on paper. Gold marks links, the live line and Waystone's own figures in the charts, nothing else.
   Built on _shared.css tokens (--bg, --surface, --t1, --t2, --gold, --gold-ink, the three families). */

/* No mono on this page (Matt, 11-09: DM Mono and JetBrains Mono are out of Waystone's design language). IM Fell
   English takes mono's jobs: numbers and dates that are read. Shared parts that ask for --font-mono get it too. */
:root { --font-mono: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; --rx-fell: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; }

.rx {
  --rx-bench: #6F7A93;         /* the benchmark's ink in every chart (validated against #11141C) */
  --rx-way: #B09040;            /* Waystone's ink in every chart */
  --rx-paper: #EFE7D3;          /* mount for anything printed or engraved */
  --rx-gilt: #8B6820;           /* marks drawn on paper */
  --rx-line: rgba(237, 233, 226, 0.09);
  --rx-line-2: rgba(237, 233, 226, 0.18);
  --rx-soft: rgba(237, 233, 226, 0.84);
  --rx-panel: #10131A;
  display: block;
  color: var(--t1);
  font-variant-numeric: lining-nums;
}
.rx a { color: var(--gold-ink); text-decoration: underline; text-decoration-color: rgba(244, 213, 141, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
.rx a:hover { color: #FBE6B4; text-decoration-color: currentColor; }
.rx a:focus-visible, .rx button:focus-visible, .rx summary:focus-visible, .rx input:focus-visible, .rx [tabindex]:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 3px; }
.rx p { margin: 0 0 1.05em; font: 400 17px/1.7 var(--font-body); color: var(--rx-soft); max-width: 66ch; }
.rx i { font-style: italic; }

/* ── the opening ── */
.rx-top { padding-top: clamp(100px, 11vh, 128px); padding-bottom: 22px; }
.rx-title {
  margin: 0 0 12px;
  font: 400 clamp(38px, 3.8vw, 56px)/1.06 var(--font-display); letter-spacing: -0.005em; color: var(--t1);
  text-wrap: balance;
}
.rx-top-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 48px; }
.rx .rx-intro { margin: 0; font-size: 18px; line-height: 1.6; max-width: 72ch; }
.rx .rx-updated { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--t2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rx-live { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); align-self: center; flex: none; }
.rx-updated a[hidden] { display: none; }

/* ── the map ── */
/* the map runs nearly edge to edge and nearly screen-high */
.rx-map { width: min(100% - 2 * clamp(16px, 2.6vw, 40px), 1840px); margin: 0 auto; }
.rx-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 10px; }
.rx .rx-map-bar p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--t2); }
.rx-map-bar p b { color: var(--t1); font-weight: 600; margin-right: 6px; }
.rx-map-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rx .rx-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 8px;
  background: transparent; border: 1px solid var(--rx-line-2); color: var(--t1); cursor: pointer;
  font: 500 14px/1.2 var(--font-body); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.rx .rx-btn:hover { border-color: rgba(201, 168, 76, 0.6); background: rgba(201, 168, 76, 0.06); color: var(--t1); }
.rx .rx-btn:active { background: rgba(201, 168, 76, 0.12); }
.rx-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rx-btn[hidden] { display: none !important; }
.rx-map-exit { position: absolute; top: 12px; right: 12px; z-index: 3; display: none !important; background: rgba(11, 13, 18, 0.88) !important; }
.rx-map-frame:fullscreen .rx-map-exit, .rx-map-frame:-webkit-full-screen .rx-map-exit { display: inline-flex !important; }
.rx-map-frame:fullscreen, .rx-map-frame:-webkit-full-screen { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
.rx-map-frame:fullscreen .rx-map-guard, .rx-map-frame:-webkit-full-screen .rx-map-guard { display: none; }
/* the window-filling fallback */
.rx-map-frame.is-max { position: fixed; inset: 0; z-index: 1000; width: auto; height: auto; min-height: 0; max-height: none; border: 0; border-radius: 0; }
.rx-map-frame.is-max .rx-map-exit { display: inline-flex !important; }
.rx-map-frame.is-max .rx-map-guard { display: none; }
html.rx-noscroll, html.rx-noscroll body { overflow: hidden; }
.rx-map-frame {
  position: relative; height: clamp(560px, calc(100vh - 120px), 1100px);
  border: 1px solid var(--rx-line-2); border-radius: 12px; overflow: hidden;
  background: #0E1117 url("assets/research/decoder/hero-fallback.jpg") center / cover no-repeat;
  transition: border-color .2s;
}
.rx-map-frame.is-active { border-color: rgba(201, 168, 76, 0.45); }
.rx-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0E1117; }
.rx-map-guard {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rx-map-guard.is-off { pointer-events: none; }
.rx-map-guard.is-off .rx-map-hint { opacity: 0 !important; }
.rx-map-hint {
  font: 500 14px/1 var(--font-body); color: var(--t1);
  background: rgba(11, 13, 18, 0.86); border: 1px solid var(--rx-line-2); border-radius: 8px;
  padding: 11px 15px; opacity: 0; transition: opacity .18s ease; pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.rx-map-guard:hover .rx-map-hint, .rx-map-guard:focus-visible .rx-map-hint, .rx-map-guard.is-hinting .rx-map-hint { opacity: 1; transition-delay: .08s; }
.rx-map-guard:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -4px; border-radius: 12px; }

.rx-map-cap { margin-top: 18px; }
.rx-map-help {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px;
  font: 400 15px/1.55 var(--font-body); color: var(--t2);
}
.rx-map-help b { color: var(--t1); font-weight: 600; }
.rx-map-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rx-line); display: flex; gap: 12px 40px; align-items: baseline; justify-content: space-between; }
.rx .rx-map-foot p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--t2); max-width: 110ch; }
.rx-out { flex: none; font: 500 14px/1.4 var(--font-body); white-space: nowrap; }

/* ── the body: contents beside the sections ── */
.rx-body {
  display: grid; grid-template-columns: 216px minmax(0, 1fr); column-gap: clamp(40px, 5.5vw, 96px);
  margin-top: clamp(56px, 7vw, 96px); align-items: start;
}
.rx-main { min-width: 0; max-width: 900px; }

.rx-toc { position: sticky; top: 100px; padding-top: 4px; }
.rx .rx-toc-title { margin: 0 0 12px; font: 600 13px/1.4 var(--font-body); color: var(--t1); }
.rx-toc ol { list-style: none; margin: 0; padding: 0; }
.rx .rx-toc a {
  display: grid; grid-template-columns: 22px 1fr; padding: 6px 0;
  font: 400 14.5px/1.4 var(--font-body); color: var(--t2); text-decoration: none;
  transition: color .15s;
}
.rx-toc a span { font: 400 16px/1.25 var(--rx-fell); color: var(--t2); transition: color .15s; }
.rx .rx-toc a:hover { color: var(--t1); }
.rx-toc a:hover span { color: var(--t1); }
.rx .rx-toc a[aria-current="true"] { color: var(--t1); font-weight: 500; }
.rx-toc a[aria-current="true"] span { color: var(--gold); }

/* ── sections ── */
.rx-sec { padding: 64px 0 56px; border-top: 1px solid var(--rx-line); scroll-margin-top: 84px; }
.rx-sec:first-child { padding-top: 0; border-top: 0; }
.rx-sec h2 {
  margin: 0 0 22px; display: flex; align-items: baseline; gap: 14px;
  font: 400 clamp(32px, 3vw, 42px)/1.12 var(--font-display); color: var(--t1); text-wrap: balance;
}
.rx-n { flex: none; min-width: 0.7em; font-family: var(--rx-fell); font-size: 1em; color: var(--gold); font-variant-numeric: normal; }
.rx-sec h3 { margin: 48px 0 12px; font: 600 18px/1.35 var(--font-body); color: var(--t1); scroll-margin-top: 96px; }
.rx-sec h3.rx-h3-first { margin-top: 0; }

/* ── figures ── */
.rx-fig { margin: 26px 0 30px; }
.rx-fig figcaption { margin-top: 12px; font: 400 13.5px/1.6 var(--font-body); color: var(--t2); max-width: 78ch; }
.rx-fig figcaption b { color: var(--t1); font-weight: 600; }
.rx-panel { position: relative; background: var(--rx-panel); border: 1px solid var(--rx-line); border-radius: 10px; padding: 22px 24px; }
.rx-panel--flush { padding: 0; overflow: hidden; }
.rx-plate { background: var(--rx-paper); border-radius: 6px; padding: 12px; }
.rx-plate img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.rx-stack .rx-plate + .rx-plate { margin-top: 10px; }
.rx-img { display: block; width: 100%; height: auto; border-radius: 8px; }
.rx-data { margin-top: 10px; }
.rx-data summary, .rx-log-more summary {
  display: inline-block; cursor: pointer; list-style: none;
  font: 500 13.5px/1.4 var(--font-body); color: var(--gold-ink);
}
.rx-data summary::-webkit-details-marker, .rx-log-more summary::-webkit-details-marker { display: none; }
.rx-data summary::before, .rx-log-more summary::before { content: "+"; display: inline-block; width: 1em; color: var(--t2); }
.rx-data[open] summary::before, .rx-log-more[open] summary::before { content: "−"; }
.rx-data table { margin-top: 10px; }

/* plain tables (data views, the case, the status, the styles) */
.rx table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.45 var(--font-body); color: var(--rx-soft); }
.rx th, .rx td { text-align: left; vertical-align: baseline; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rx-line); }
.rx thead th { font: 600 12.5px/1.3 var(--font-body); color: var(--t2); padding-top: 4px; }
.rx tbody th { font-weight: 600; color: var(--t1); }
.rx tbody tr:last-child > * { border-bottom: 0; }
.rx td.num, .rx th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rx-panel--flush table th:first-child, .rx-panel--flush table td:first-child { padding-left: 22px; }
.rx-panel--flush table th:last-child, .rx-panel--flush table td:last-child { padding-right: 22px; }
.rx-panel--flush thead th { padding-top: 14px; }

/* ── 1: the findings and the words ── */
.rx-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rx-line); }
.rx-facts li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rx-line); }
.rx-facts b { font: 400 40px/1 var(--font-display); color: var(--t1); font-variant-numeric: lining-nums; white-space: nowrap; }
.rx-facts span { font: 400 16px/1.55 var(--font-body); color: var(--rx-soft); }
.rx-facts span a { white-space: nowrap; margin-left: 4px; }

.rx-terms { margin: 0; border-top: 1px solid var(--rx-line); }
.rx-terms > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--rx-line); }
.rx-terms dt { font: 600 15px/1.5 var(--font-body); color: var(--t1); }
.rx-terms dd { margin: 0; font: 400 15.5px/1.6 var(--font-body); color: var(--rx-soft); max-width: 62ch; }
.rx-terms--sets { margin: 6px 0 22px; }
.rx-terms--sets > div, .rx-terms--sources > div { grid-template-columns: 13rem minmax(0, 1fr); }

/* ── 2: flows, the case, further reading ── */
.rx-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rx-flow li { position: relative; padding-top: 16px; border-top: 1px solid var(--rx-line-2); }
.rx-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: -4px; right: -1px; width: 7px; height: 7px;
  border-top: 1px solid var(--t2); border-right: 1px solid var(--t2); transform: rotate(45deg);
}
.rx-flow li::before { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--t1); }
.rx-flow b { display: block; margin-bottom: 6px; font: 600 16px/1.4 var(--font-body); color: var(--t1); }
.rx .rx-flow p { margin: 0; font-size: 15px; line-height: 1.6; }

.rx-case td.rx-case-what { font: italic 400 21px/1.3 var(--font-display); color: var(--t1); }
.rx-case tbody th { white-space: nowrap; width: 8.5rem; font: 400 17px/1.4 var(--rx-fell); color: var(--t1); }
.rx-case thead th:last-child { width: 38%; }

.rx .rx-further {
  display: grid; gap: 4px; margin: 30px 0 4px; padding: 18px 22px;
  border: 1px solid var(--rx-line-2); border-radius: 10px; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.rx .rx-further:hover { border-color: rgba(201, 168, 76, 0.5); background: rgba(201, 168, 76, 0.04); }
.rx-further-k { font: 500 13px/1.4 var(--font-body); color: var(--t2); }
.rx-further-t { font: 500 24px/1.25 var(--font-display); color: var(--gold-ink); }
.rx-further-d { font: 400 14.5px/1.6 var(--font-body); color: var(--t2); max-width: 70ch; }

/* ── 3: the lettering ── */
.rx-key { margin: 6px 0 22px; border-top: 1px solid var(--rx-line); }
.rx-key > div { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rx-line); }
.rx-key dt { display: grid; gap: 2px; font: 600 14px/1.4 var(--font-body); color: var(--t2); }
.rx-key-spec { font-family: var(--face), var(--font-display); font-size: 32px; line-height: 1.15; font-weight: 400; color: var(--t1); }
.rx-key-spec.rx-caps { text-transform: uppercase; font-size: 25px; letter-spacing: 0.02em; }
.rx-key dd { margin: 0; font: 400 15.5px/1.6 var(--font-body); color: var(--rx-soft); }

.rx-try-label { display: block; margin-bottom: 8px; font: 600 13px/1.4 var(--font-body); color: var(--t2); }
.rx-try-input {
  width: min(380px, 100%); padding: 12px 14px; border-radius: 8px;
  background: var(--rx-panel); border: 1px solid var(--rx-line-2); color: var(--t1);
  font: 400 18px/1.3 var(--font-body); transition: border-color .15s;
}
.rx-try-input:hover { border-color: rgba(237, 233, 226, 0.3); }
.rx .rx-try-input:focus { border-color: var(--gold-ink); outline: none; }
.rx-try-rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rx-line); }
.rx-try-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 4px 24px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rx-line); }
.rx-try-sample {
  font-family: var(--face), var(--font-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.rx-try-rows li.rx-caps .rx-try-sample { text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: 0.02em; }
.rx-try-name { font: 400 14px/1.45 var(--font-body); color: var(--t2); }
.rx-try-name b { display: block; color: var(--t1); font-weight: 600; font-size: 15px; }

.rx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: end; }
.rx-crop { position: relative; width: min(calc(var(--w) * 1.5px), 100%); border-radius: 6px; overflow: hidden; background: var(--rx-paper); }
.rx-crop img { display: block; width: 100%; height: auto; }
.rx-crop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-plate.rx-crop { padding: 0; }
.rx-base { stroke: var(--rx-gilt); stroke-width: 1.6; stroke-dasharray: 5 4; fill: none; }
.rx .rx-pair-t { margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
.rx-pair-t b { color: var(--t1); font-weight: 600; margin-right: 4px; }

/* the OS 404 page viewer */
.rx-doc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.rx-doc figcaption { grid-column: 1 / -1; margin-top: 0; }
.rx .rx-doc-open { position: relative; display: block; cursor: zoom-in; border-radius: 6px; overflow: hidden; border: 1px solid var(--rx-line); text-decoration: none; }
.rx-doc-open img { display: block; width: 100%; height: auto; background: #E9E6DD; }
.rx-doc-mark { position: absolute; left: 10.6%; top: 37.1%; width: 83%; height: 5.3%; box-sizing: border-box; border: 2px solid var(--gold); border-radius: 3px; background: rgba(201, 168, 76, 0.14); pointer-events: none; transition: opacity .2s; }
.rx-doc-mark.is-off { opacity: 0; }
.rx .rx-doc-title { margin: 0 0 14px; font: italic 400 22px/1.25 var(--font-display); color: var(--t1); }
.rx-doc-title span { display: block; margin-top: 4px; font: 400 15px/1.3 var(--rx-fell); font-style: normal; color: var(--t2); }
.rx-doc-pages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rx-doc-pages button {
  display: grid; gap: 6px; width: 100%; padding: 5px; border-radius: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--rx-line); color: var(--t2);
  font: 500 12px/1.2 var(--font-body); text-align: center; transition: border-color .15s, color .15s;
}
.rx-doc-pages button:hover { border-color: var(--rx-line-2); color: var(--t1); }
.rx-doc-pages button[aria-current="true"] { border-color: var(--gold); color: var(--t1); }
.rx-doc-pages img { display: block; width: 100%; height: auto; border-radius: 3px; }
.rx .rx-doc-note { min-height: 6.6em; margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }
.rx .rx-doc-src { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--t2); }

/* the lettering sheet, 1847 and later */
.rx-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rx-plate--tight { padding: 10px 14px; }
.rx .rx-sheets-t { margin: 10px 0 0; font-size: 15px; line-height: 1.4; }
.rx-sheets-t b { font: 400 18px/1 var(--rx-fell); color: var(--gold); margin-right: 8px; }

/* ── 4: five steps ── */
.rx .rx-cite { font-size: 14.5px; color: var(--t2); }
.rx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.rx-steps li { min-width: 0; }
.rx-step-out {
  position: relative; height: 128px; padding: 12px; border-radius: 8px;
  background: var(--rx-panel); border: 1px solid var(--rx-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
}
.rx-steps li:not(:last-child) .rx-step-out::after {
  content: ""; position: absolute; top: 50%; right: -13px; width: 7px; height: 7px; margin-top: -4px;
  border-top: 1px solid var(--t2); border-right: 1px solid var(--t2); transform: rotate(45deg);
}
.rx-step-out--crop { padding: 0; background: var(--rx-paper); border-color: transparent; overflow: hidden; }
.rx-zoom { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; }
.rx-zoom-in { position: absolute; width: 138.82%; left: -17.65%; top: -47.06%; }
.rx-zoom-in img { display: block; width: 100%; height: auto; }
.rx-zoom-in svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-box { fill: none; stroke: var(--rx-gilt); stroke-width: 2; }
.rx-step-out small { font: 400 12.5px/1.35 var(--font-body); color: var(--t2); }
.rx-read { font: 400 30px/1.1 var(--font-display); color: var(--t1); letter-spacing: 0.01em; }
.rx-face-sample { font-family: var(--face), var(--font-display); font-size: 27px; line-height: 1.15; color: var(--t1); }
.rx-meaning { font: 500 15px/1.35 var(--font-body); color: var(--t1); }
.rx-entry-name { font: 500 23px/1.1 var(--font-display); color: var(--t1); margin-bottom: 2px; }
.rx-step-out--entry { gap: 1px; }
.rx-steps b { display: flex; gap: 8px; margin: 14px 0 4px; font: 600 15px/1.35 var(--font-body); color: var(--t1); }
.rx-steps b span { font: 400 17px/1.15 var(--rx-fell); color: var(--gold); }
.rx .rx-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--t2); }

/* ── charts ── */
.rx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rx-chart text { font-family: var(--font-body); }
.rx-chart .tick { font-size: 12px; fill: var(--t2); }
.rx-chart .val { font-size: 13px; fill: var(--t1); font-weight: 500; }
.rx-chart .lab { font-size: 13px; fill: var(--t2); }
.rx-chart .grid { stroke: var(--rx-line); stroke-width: 1; }
.rx-chart .hit { fill: transparent; cursor: default; outline: none; }
.rx-chart .hit:focus-visible { stroke: var(--gold-ink); stroke-width: 1.5; }
.rx-tip {
  position: absolute; z-index: 5; max-width: 280px; pointer-events: none;
  padding: 9px 11px; border-radius: 7px; background: #1A1E29; border: 1px solid var(--rx-line-2);
  font: 400 13px/1.45 var(--font-body); color: var(--rx-soft); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rx-tip b { display: block; color: var(--t1); font-weight: 600; margin-bottom: 2px; }
.rx-tip[hidden] { display: none; }

/* sheets by year */
.rx-years .bar { fill: #7D8391; transition: fill .12s; }
.rx-years .bar.is-in { fill: #B7A780; }
.rx-years .bar.is-on { fill: var(--t1); }
.rx-years .band { fill: rgba(201, 168, 76, 0.09); }
.rx-years .band-l { font-size: 13px; fill: var(--gold-ink); font-weight: 500; }
.rx-years .zone-l { font-size: 13px; fill: var(--t2); }

/* bars: found and read */
.rx-bars { display: grid; gap: 22px; }
.rx-bars h4 { margin: 0 0 8px; font: 600 15px/1.3 var(--font-body); color: var(--t1); }
.rx-bar { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem; gap: 14px; align-items: center; padding: 5px 0; border-radius: 4px; outline: none; }
.rx-bar-who { font: 400 13.5px/1.2 var(--font-body); color: var(--t2); }
.rx-bar-track { position: relative; height: 14px; border-radius: 3px; background: rgba(237, 233, 226, 0.06); }
.rx-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.rx-bar-ci { position: absolute; top: 50%; height: 1px; margin-top: -0.5px; background: var(--t1); opacity: 0; transition: opacity .12s; }
.rx-bar-ci::before, .rx-bar-ci::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--t1); }
.rx-bar-ci::before { left: 0; }
.rx-bar-ci::after { right: 0; }
.rx-bar-val { font: 500 14px/1.2 var(--font-body); color: var(--t1); text-align: right; font-variant-numeric: tabular-nums; }
.rx-bar:hover .rx-bar-ci, .rx-bar:focus-visible .rx-bar-ci { opacity: 0.85; }
.rx-bar:hover .rx-bar-who, .rx-bar:focus-visible .rx-bar-who { color: var(--t1); }
.rx-bar:focus-visible { box-shadow: 0 0 0 2px var(--gold-ink); }
.rx-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; font: 400 13.5px/1.3 var(--font-body); color: var(--t2); }
.rx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }

/* one square per label */
.rx-units { display: grid; gap: 20px; }
.rx-units h4 { margin: 0 0 8px; font: 600 15px/1.3 var(--font-body); color: var(--t1); }
.rx-unit-row { display: grid; grid-template-columns: 6.5rem max-content auto; gap: 14px 18px; align-items: center; padding: 4px 0; }
.rx-unit-row .rx-bar-val { text-align: left; }
.rx-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.rx-cells i { width: 14px; height: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(237, 233, 226, 0.16); }
.rx-cells.bench i.on { background: var(--rx-bench); box-shadow: none; }
.rx-cells.way i.on { background: var(--rx-way); box-shadow: none; }

/* lettering styles table */
.rx-sn { display: grid; grid-template-columns: 12.5rem auto; align-items: baseline; gap: 0 18px; }
.rx-styles .rx-spec { font-family: var(--face), var(--font-display); font-size: 25px; line-height: 1.2; font-weight: 400; color: var(--t1); white-space: nowrap; }
.rx-styles .rx-spec.rx-caps { text-transform: uppercase; font-size: 19px; letter-spacing: 0.02em; }
.rx-styles .rx-spec-name { font: 400 14px/1.4 var(--font-body); color: var(--t2); }
.rx-styles tr.rx-all .rx-spec-name { grid-column: 1 / -1; font-weight: 600; color: var(--t1); font-size: 14.5px; }
.rx-styles td.rx-pct { font: 600 16px/1.2 var(--font-body); color: var(--t1); }
.rx-styles tr.rx-all > * { border-top: 1px solid var(--rx-line-2); }

/* run by run */
.rx-runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rx-run { padding: 18px 18px 12px; }
.rx-run h4 { margin: 0; font: 600 14.5px/1.35 var(--font-body); color: var(--t1); min-height: 2.7em; }
.rx .rx-run .of { margin: 2px 0 8px; font-size: 13px; color: var(--t2); }
.rx-run .pt { fill: var(--rx-way); stroke: var(--rx-panel); stroke-width: 2; }
.rx-run .ring { fill: none; stroke: var(--t1); stroke-width: 1.5; opacity: 0; }
.rx-run .ring.is-on { opacity: 1; }
.rx-run .note { font-size: 11.5px; fill: var(--t1); }
.rx-run .tick { font-size: 11.5px; }
.rx-run .note-line { stroke: var(--t2); stroke-width: 1; stroke-dasharray: 2 3; }

/* status, next, log, sources */
.rx-status td:nth-child(2) { color: var(--t1); white-space: nowrap; }
.rx-next { margin: 0; padding: 0 0 0 1.1em; }
.rx-next li { margin: 0 0 8px; font: 400 16.5px/1.65 var(--font-body); color: var(--rx-soft); max-width: 66ch; }
.rx-next li::marker { color: var(--t2); }
.rx-log { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rx-line); }
.rx-log li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rx-line); }
.rx-log time { font: 400 16px/1.5 var(--rx-fell); color: var(--t2); }
.rx-log h4 { margin: 0 0 4px; font: 600 16px/1.4 var(--font-body); color: var(--t1); }
.rx .rx-log p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.rx-log-more { margin-top: 14px; }
.rx-log-more .rx-log { margin-top: 12px; }
.rx .rx-end { margin-top: 28px; font-size: 14.5px; color: var(--t2); }
.rx .rx-note { font-size: 14.5px; line-height: 1.6; color: var(--t2); }

/* ── narrower screens ── */
@media (max-width: 1100px) {
  .rx-top { grid-template-columns: 1fr; }
  .rx-title { grid-row: auto; margin-bottom: 16px; }
  .rx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .rx-steps li:nth-child(3) .rx-step-out::after { display: none; }
}
@media (max-width: 1000px) {
  .rx-body { grid-template-columns: 1fr; }
  .rx-toc { position: static; margin-bottom: 40px; padding: 18px 20px; border: 1px solid var(--rx-line); border-radius: 10px; }
  .rx-toc ol { columns: 2; column-gap: 32px; }
  .rx-toc li { break-inside: avoid; }
  .rx-main { max-width: none; }
  .rx-map-help { grid-template-columns: 1fr; gap: 8px; }
  .rx-runs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .rx p { font-size: 16.5px; }
  .rx-top { padding-top: 88px; padding-bottom: 18px; }
  .rx-title { font-size: 34px; line-height: 1.08; margin-bottom: 12px; }
  .rx .rx-intro { font-size: 16px; line-height: 1.55; margin-bottom: 10px; }
  .rx .rx-updated { font-size: 13.5px; }
  .rx-map-frame { height: 70vh; min-height: 420px; border-radius: 10px; }
  .rx-map-bar p { display: none; }
  .rx-map-bar { justify-content: flex-start; }
  .rx-map-foot { flex-direction: column; }
  .rx-toc ol { columns: 1; }
  .rx-sec { padding: 48px 0 40px; }
  .rx-facts li, .rx-terms > div, .rx-terms--sets > div, .rx-terms--sources > div, .rx-key > div, .rx-log li { grid-template-columns: 1fr; }
  .rx-facts b { font-size: 36px; margin-bottom: 6px; }
  .rx-flow { grid-template-columns: 1fr; gap: 20px; }
  .rx-flow li:not(:last-child)::after { display: none; }
  .rx-pair { grid-template-columns: 1fr; }
  .rx-doc { grid-template-columns: 1fr; }
  .rx-doc-pages { grid-template-columns: repeat(5, 64px); overflow-x: auto; }
  .rx .rx-doc-note { min-height: 0; }
  .rx-sheets { grid-template-columns: 1fr; }
  .rx-try-rows li { grid-template-columns: 1fr; gap: 2px; }
  .rx-steps { grid-template-columns: 1fr; row-gap: 16px; }
  .rx-steps li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 16px; align-items: center; }
  .rx-steps li .rx-step-out { grid-row: span 2; height: 96px; }
  .rx-steps li .rx-step-out::after { display: none !important; }
  .rx-steps b { margin: 0 0 2px; align-self: end; }
  .rx .rx-steps p { align-self: start; }
  .rx-read { font-size: 24px; }
  .rx-face-sample { font-size: 22px; }
  .rx-entry-name { font-size: 19px; }
  .rx-meaning { font-size: 13.5px; }
  .rx-runs { grid-template-columns: 1fr; }
  .rx-bar, .rx-unit-row { grid-template-columns: 5.2rem minmax(0, 1fr) 4.8rem; gap: 10px; }
  .rx-cells i { width: 9px; height: 9px; }
  .rx-cells { gap: 3px; }
  .rx-case thead { display: none; }
  .rx-case tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--rx-line); }
  .rx-case th, .rx-case td { border: 0; padding: 2px 0; width: auto !important; }
  .rx-case tbody tr:last-child { border-bottom: 0; }
  .rx-status thead { display: none; }
  .rx-status tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 18px; border-bottom: 1px solid var(--rx-line); }
  .rx-status th, .rx-status td { border: 0; padding: 2px 0 !important; }
  .rx-status td:last-child { grid-column: 1 / -1; color: var(--t2); }
  .rx-status tbody tr:last-child { border-bottom: 0; }
  .rx-styles thead th:nth-child(3), .rx-styles td:nth-child(3) { display: none; }
  .rx-sn { grid-template-columns: 1fr; }
  .rx-styles .rx-spec { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx *, .rx *::before, .rx *::after { transition: none !important; }
}
