/* The Register: the landing with its finder, the archive behind it, the line-up of published cars, questions.
   Each screen is one screen tall (md-system.css). The line-up's track is a horizontal scroller. Held, the page's scroll
   sets its position; as a row you swipe it. md-register.js sets each car's --s, --o, --yo and --yx from its distance
   to the middle. */

/* The landing: centred, rising in. The archive's heading shows beneath it. */
.rg-hero {
  --peek: clamp(64px, 12svh, 130px);
  min-height: calc(var(--screen) - var(--peek)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  padding-block: clamp(24px, 5svh, 72px) clamp(18px, 3.6svh, 48px); text-align: center;
}
.rg-hero-inner { display: grid; justify-items: center; }
.rg-title { margin-top: clamp(14px, 2.4svh, 26px); font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, min(1.4rem + 5.4vw, 12svh), 7.5rem); line-height: 0.92; letter-spacing: -0.03em; }
.rg-title span, .rg-title em { display: block; }
.rg-title em { color: var(--burgundy); font-size: 0.56em; line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.1em; }
.rg-lead { max-width: 46ch; margin-top: clamp(14px, 2.6svh, 28px); color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.5; }
.rg-find {
  position: relative; z-index: 5; display: flex; width: min(34rem, 100%); margin-top: clamp(18px, 3.4svh, 36px);
  background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; text-align: left;
  transition: box-shadow 200ms var(--ease-out);
}
.rg-find:focus-within { box-shadow: 0 0 0 3px rgba(94, 1, 9, 0.16), 0 18px 40px -28px rgba(50, 30, 10, 0.45); }
.rg-find input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: 500 1.0625rem/1 var(--sans); }
.rg-find input::placeholder { color: #8f8a7e; }
.rg-find input:focus { outline: none; }
.rg-find .md-button { min-height: 56px; margin: -1px -1px -1px 0; }
/* Suggestions as you type: published cars first, otherwise a Chassis Check for the number. */
.rg-suggest {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); display: grid; padding: 6px;
  background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: 0 30px 60px -36px rgba(40, 25, 10, 0.6);
  animation: rg-drop 220ms var(--ease-out);
}
.rg-suggest[hidden] { display: none; }
@keyframes rg-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rg-option { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 2px; cursor: pointer; }
.rg-option img { width: 76px; height: auto; }
.rg-option strong { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.rg-option small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-3); }
.rg-option.is-plain { grid-template-columns: minmax(0, 1fr); color: var(--ink-2); font-size: 0.9375rem; cursor: default; }
.rg-option.is-check { grid-template-columns: minmax(0, 1fr); color: var(--burgundy); font-weight: 600; font-size: 0.9375rem; }
.rg-option[aria-selected="true"] { background: var(--sand-deep); }
.rg-find-result { min-height: 1.5em; max-width: 52ch; margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.rg-find-result a { color: var(--burgundy); font-weight: 600; }
.rg-sign { margin-top: clamp(8px, 1.6svh, 18px); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--ink-3); }
@keyframes rg-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.md-js .rg-rise { animation: rg-rise 1200ms var(--ease-out) both; }
.md-js .rg-hero .md-kicker.rg-rise { animation-delay: 40ms; }
.md-js .rg-title .rg-rise:first-child { animation-delay: 120ms; }
.md-js .rg-title em.rg-rise { animation-delay: 260ms; }
.md-js .rg-lead.rg-rise { animation-delay: 420ms; }
.md-js .rg-find.rg-rise { animation-delay: 560ms; }
.md-js .rg-sign.rg-rise { animation-delay: 700ms; }

/* The archive behind it: one dot for every 100 Ferraris with information on file, the published cars marked. */
.rg-scale { min-height: var(--screen); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: clamp(20px, 5svh, 72px); border-top: 1px solid var(--rule); }
.rg-scale-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.rg-scale-title { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, min(1.2rem + 3.4vw, 8.4svh), 5rem); line-height: 1; letter-spacing: -0.025em; }
.rg-count { color: var(--burgundy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-scale-title em { display: block; }
.rg-scale-text { display: grid; gap: 12px; justify-items: start; color: var(--ink-2); font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.5; }
.rg-scale-text .md-button { margin-top: 6px; }
.rg-field { margin: clamp(22px, 4.4svh, 52px) 0 0; }
.rg-dots {
  --cols: 100; --rows: 25;
  position: relative; width: min(100%, 42svh * 4); aspect-ratio: 4 / 1; margin-inline: auto;
  background-image: radial-gradient(circle, var(--rule-strong) 0 1.6px, transparent 2.2px);
  background-size: calc(100% / var(--cols)) calc(100% / var(--rows));
}
.md-js .rg-dots { background: none; }
.rg-dots canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-lit {
  position: absolute; z-index: 1; left: calc((var(--c) + 0.5) / var(--cols) * 100%); top: calc((var(--r) + 0.5) / var(--rows) * 100%);
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; text-decoration: none; color: var(--ink);
}
.rg-lit::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--burgundy); box-shadow: 0 0 0 3px var(--sand), 0 0 0 4px rgba(94, 1, 9, 0.28);
  transition: transform 300ms var(--ease-out);
}
.md-js .rg-lit::before { transform: scale(0); }
.md-js .rg-lit.is-on::before { transform: scale(1); transition: transform 600ms cubic-bezier(0.3, 1.6, 0.4, 1) calc(var(--d) * 45ms); }
.rg-lit:hover::before, .rg-lit:focus-visible::before { transform: scale(1.35); transition-delay: 0s; }
.rg-lit:focus-visible { outline: none; }
.rg-lit-tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); display: grid; gap: 4px; width: 200px; padding: 10px 12px 12px;
  background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: 0 24px 40px -26px rgba(40, 25, 10, 0.55);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; text-align: left;
  opacity: 0; visibility: hidden; translate: -50% 6px; pointer-events: none;
  transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out), visibility 0s linear 200ms;
}
.rg-lit-tip img { width: 100%; height: auto; margin-bottom: 4px; }
.rg-lit-tip .md-mono { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-3); }
.rg-lit:hover .rg-lit-tip, .rg-lit:focus-visible .rg-lit-tip { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out), visibility 0s; }
.rg-lit.is-l .rg-lit-tip { left: -6px; translate: 0 6px; }
.rg-lit.is-l:hover .rg-lit-tip, .rg-lit.is-l:focus-visible .rg-lit-tip { translate: 0 0; }
.rg-lit.is-r .rg-lit-tip { left: auto; right: -6px; translate: 0 6px; }
.rg-lit.is-r:hover .rg-lit-tip, .rg-lit.is-r:focus-visible .rg-lit-tip { translate: 0 0; }
.rg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ink-3); }
/* Each key keeps its dot and its words together, so a wrap never leaves a dot at the end of a line. */
.rg-key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rg-key i { flex: none; width: 5px; height: 5px; margin-inline: 1.5px; border-radius: 50%; background: var(--rule-strong); }
.rg-key .rg-key-lit { width: 8px; height: 8px; margin-inline: 0; background: var(--burgundy); }

/* The line-up. As a row you swipe it is one screen. Held, the section is taller and its stage stays on screen while
   scrolling the page carries the cars past; each car gets less scroll as the line-up grows (--step), so it never gets long. */
.rg-line {
  --car-w: min(46vw, 700px, 21svh * 3.45);
  --car-h: calc(var(--car-w) / 3.45);
  --slide: calc(var(--car-w) * 0.8);
  --step: clamp(120px, calc(480svh / (var(--n) - 1)), 30svh);
  position: relative; background: var(--paper); border-block: 1px solid var(--rule); overflow-x: clip; overflow-anchor: none;
}
.rg-stage {
  min-height: calc(var(--screen) - 2px); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  gap: clamp(10px, 1.9svh, 24px); padding-block: clamp(16px, 3.2svh, 44px);
}
.rg-line-head { display: flex; align-items: baseline; gap: 12px 28px; }
.rg-line-head .md-kicker { flex: none; }
/* The rows: a quiet line of words beside the title. The row being shown is in ink with a small burgundy block. */
.rg-rows { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; min-width: 0; }
.rg-rows[hidden], .rg-rows-pick[hidden] { display: none; }
.rg-row {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 0; border: 0; background: none;
  color: var(--ink-3); font: inherit; font-size: 0.875rem; cursor: pointer; transition: color 180ms var(--ease-out);
}
.rg-row .md-mono { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-3); }
.rg-row:hover { color: var(--ink); }
.rg-row[aria-pressed="true"] { color: var(--ink); }
.rg-row[aria-pressed="true"]::before { content: ""; align-self: center; width: 7px; height: 7px; border-radius: 1.5px; background: var(--burgundy); }
.rg-row:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.rg-rows-pick { display: none; }
.rg-line-count { margin-left: auto; }
.rg-line-count { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-line-count [data-rg-pos] { color: var(--ink); }
.rg-snaps { display: none; }
.rg-line.is-pinned { height: calc(var(--screen) + (var(--n) - 1) * var(--step)); }
.is-pinned .rg-stage { position: sticky; top: var(--header-h); height: var(--screen); min-height: 0; overflow: hidden; touch-action: pan-y; }
.is-pinned .rg-track { overflow: hidden; scroll-snap-type: none; cursor: default; }
.is-pinned .rg-snaps { display: block; position: absolute; inset: 0; pointer-events: none; }
.is-pinned .rg-snap { position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--i) * var(--step) + 16px); scroll-snap-align: start; }
/* The page settles on a car only while the line-up holds the screen (md-register.js sets .rg-snapping). */
html.rg-snapping { scroll-snap-type: y proximity; }

/* The track: the middle car at full size beneath its year in outline, its neighbours smaller at the sides. */
.rg-track {
  position: relative; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; padding-inline: calc(50% - var(--slide) / 2); outline: none; cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.rg-track::-webkit-scrollbar { display: none; }
.rg-track:focus-visible { box-shadow: inset 0 -2px 0 var(--burgundy); }
.rg-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rg-slide {
  --s: 1; --o: 1; --yo: 1; --yx: 0%;
  position: relative; flex: 0 0 var(--slide); min-width: 0; height: calc(var(--car-h) * 1.56); margin: 0;
  display: flex; align-items: flex-end; justify-content: center; scroll-snap-align: center; cursor: pointer;
}
.rg-slide[hidden] { display: none; }
.rg-slide img { flex: none; width: var(--car-w); max-width: none; height: auto; scale: var(--s); opacity: var(--o); transform-origin: 50% 100%; pointer-events: none; will-change: scale, opacity; }
.rg-slide-year {
  position: absolute; left: 50%; top: 0; translate: calc(-50% + var(--yx)) 0; opacity: var(--yo);
  font-family: var(--serif); font-size: calc(var(--car-h) * 0.9); line-height: 0.74; letter-spacing: -0.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong); pointer-events: none;
}

/* The story of the middle car: all stories share one place, so changing car never moves the page. */
.rg-details { display: grid; }
.rg-detail + .rg-detail { margin-top: 40px; }
.md-js .rg-detail { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms; }
.md-js .rg-detail.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 480ms var(--ease-out) 80ms, transform 560ms var(--ease-out) 80ms, visibility 0s; }
.md-js .rg-details { touch-action: pan-y; }
.rg-caption { max-width: 72ch; margin: 0 auto clamp(12px, 2.4svh, 28px); text-align: center; color: var(--ink-3); font-size: 0.75rem; line-height: 1.45; }
.rg-text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 72px); }
.rg-text-main, .rg-text-side { display: grid; gap: 10px; align-content: start; }
.rg-id { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-3); }
.rg-headline { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, min(1.1rem + 1.8vw, 5svh), 3rem); line-height: 1.04; letter-spacing: -0.015em; }
.rg-story { max-width: 52ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.rg-strip .md-years-field { height: clamp(24px, 3.4svh, 38px); }
.rg-strip .md-years-note { margin-top: 6px; font-size: 0.75rem; }
.rg-headline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rg-story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rg-text-side { gap: 14px; }
.rg-strip-none { padding: 14px 16px; border: 1px dashed var(--rule-strong); color: var(--ink-3); font-size: 0.875rem; line-height: 1.5; }
.rg-read { justify-self: start; }

/* The strip of years: one column a year, one block a car, as in a file's record. The middle car's block is burgundy,
   framed, its year above; the cars outside the row being shown step back. Pressing a year or sliding along the strip
   moves to the nearest car. */
.rg-line-foot { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); }
.rg-time { --now: 0; position: relative; flex: 1; min-width: 0; padding-top: 22px; touch-action: pan-y; cursor: pointer; }
.rg-time-field { position: relative; height: clamp(20px, 2.8svh, 30px); }
.rg-time-years, .rg-time-cars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 2px; }
.rg-time-cars { grid-template-rows: repeat(var(--stack), minmax(0, 1fr)); }
.rg-time-years li { border-radius: 2px; background: rgba(11, 13, 10, 0.06); }
.rg-time-years li.is-undated { background: none; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.rg-time-cars li { display: grid; min-height: 0; }
.rg-time-car {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 2px; background: var(--ink-3); cursor: pointer;
  transition: background-color 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.rg-time-car::before { content: ""; position: absolute; inset: -6px -2px; }
.rg-time-car:hover { background: var(--ink); }
.rg-time-car.is-active { background: var(--burgundy); }
.rg-time-car.is-out { opacity: 0.16; pointer-events: none; }
.rg-time-car.is-undated:not(.is-active) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rg-time-car:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
/* Pointing at a car's block shows which car it is, as the dots above do. The card slides along with the block's place on
   the strip (--x), so the first and last cars' cards stay inside the page. */
.rg-time-tip {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 12px); display: grid; gap: 4px; width: 210px; padding: 10px 12px 12px;
  background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: 0 24px 40px -26px rgba(40, 25, 10, 0.55);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; text-align: left; color: var(--ink); white-space: normal;
  opacity: 0; visibility: hidden; translate: calc(var(--x) * -1%) 6px; pointer-events: none;
  transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out), visibility 0s linear 200ms;
}
.rg-time-tip img { width: 100%; height: auto; margin-bottom: 4px; }
.rg-time-tip .md-mono { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-3); }
.rg-time-car:hover .rg-time-tip, .rg-time-car:focus-visible .rg-time-tip { opacity: 1; visibility: visible; translate: calc(var(--x) * -1%) 0; transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out), visibility 0s; }
.rg-time-frame {
  position: absolute; z-index: 1; top: -4px; bottom: -4px; left: calc(var(--now) * 1%); width: calc(100% / var(--cols) + 4px); translate: -50% 0;
  border: 1.5px solid var(--burgundy); border-radius: 3px; pointer-events: none;
}
.rg-time-now {
  position: absolute; left: calc(var(--now) * 1%); top: 0; translate: -50% 0;
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--burgundy); white-space: nowrap; pointer-events: none;
}
.rg-time-now.is-end { translate: calc(-100% + 8px) 0; }
.rg-time-axis .is-undated { justify-self: center; }
.rg-time-axis { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; }
.rg-steps { display: flex; gap: 10px; }
.rg-step {
  position: relative; width: 48px; height: 48px; border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--paper); cursor: pointer;
  transition: border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.rg-step::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -2px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.rg-step.is-next::after { margin-left: -7px; transform: rotate(-135deg); }
.rg-step:hover { border-color: var(--ink); }
.rg-step:disabled { opacity: 0.3; cursor: default; }
.rg-step:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
/* Touch screens swipe; the arrows are for a mouse. */
@media (hover: none) { .rg-steps { display: none; } }

/* Tablets */
@media (max-width: 1100px) {
  .rg-line { --car-w: min(64vw, 680px, 22svh * 3.45); }
  .rg-text { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rg-scale-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
}
/* Short landscape screens: the story is cut to two lines; the full story is one click away. */
@media (min-width: 768px) and (max-height: 760px) {
  .rg-line { --car-w: min(44vw, 640px, 17svh * 3.45); }
  .rg-caption { margin-bottom: 10px; }
  .rg-strip .md-years-note { display: none; }
  .rg-story { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rg-text-main, .rg-text-side { gap: 8px; }
}

/* Phones: the same line-up, a larger car and room to breathe. The record strip drops its empty boxes: each record stands
   as a bar on a single line, which reads at this size where 50 small boxes do not. */
@media (max-width: 767px) {
  .rg-title { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .rg-find { flex-direction: column; }
  .rg-find .md-button { margin: 0; }
  .rg-find input { min-height: 54px; text-align: center; }
  .rg-suggest { top: calc(100% + 4px); }
  .rg-line { --car-w: 82vw; --slide: 62vw; }
  .rg-stage { gap: 14px; padding-block: 18px; }
  .rg-slide { height: calc(var(--car-h) * 1.58); }
  .rg-caption { margin-bottom: 14px; font-size: 0.75rem; }
  .rg-text, .rg-text-main, .rg-text-side { gap: 10px; }
  .rg-headline { font-size: clamp(1.55rem, 7vw, 1.95rem); }
  .rg-story { font-size: 0.875rem; }
  .rg-strip .md-years-over { margin-top: 4px; }
  .rg-strip .md-years-gap { font-size: 0.9375rem; }
  .rg-strip .md-years-strip { display: none; }
  .rg-strip .md-years-field { height: 20px; }
  .rg-strip .md-years-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule-strong); }
  .rg-strip .md-years-marks { gap: 0 1px; }
  .rg-strip .md-years-axis { font-size: 0.75rem; }
  /* Phones: the rows are one select beside the title, so the head stays on one line. */
  .rg-rows, .rg-rows[hidden] { display: none; }
  .rg-rows-pick:not([hidden]) { display: block; flex: 1; min-width: 0; }
  .rg-rows-pick select {
    width: 100%; max-width: 240px; min-height: 44px; padding: 0 28px 0 10px; border: 1px solid var(--rule-strong); border-radius: 2px;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230b0d0a' stroke-width='1.4'/%3E%3C/svg%3E") right 10px center / 10px 6px no-repeat;
    color: var(--ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none;
  }
  .rg-line-head { align-items: center; }
  .rg-scale { padding-block: clamp(16px, 3svh, 32px); }
  .rg-scale-title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .rg-scale-title em { display: inline; }
  .rg-scale-text { gap: 8px; font-size: 0.9375rem; }
  .rg-scale-text .md-button { min-height: 48px; margin-top: 4px; }
  .rg-field { margin-top: 20px; }
  .rg-dots { --cols: 50; --rows: 50; width: min(100%, 38svh); aspect-ratio: 1; }
  .rg-lit { left: calc((var(--c2) + 0.5) / var(--cols) * 100%); top: calc((var(--r2) + 0.5) / var(--rows) * 100%); }
  .rg-lit-tip, .rg-time-tip { display: none; }
}
/* Short phones: the story waits behind "Read the story", so the record and the open question keep their room. */
@media (max-width: 767px) and (max-height: 760px) {
  .rg-line { --car-w: 74vw; --slide: 56vw; }
  .rg-stage { gap: 10px; padding-block: 12px; }
  .rg-caption { margin-bottom: 10px; }
  .rg-text, .rg-text-main, .rg-text-side { gap: 8px; }
  .rg-headline { font-size: 1.45rem; }
  .rg-story { display: none; }
  .rg-strip .md-years-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .md-js .rg-rise { animation: none; }
  .md-js .rg-lit::before { transform: scale(1); }
  .md-js .rg-detail, .md-js .rg-detail.is-active { transition: none; transform: none; }
  .rg-suggest { animation: none; }
}
