/* ---------- double-ring sims (double-ring.js) ----------
   Reuses .sim, .sim-head, .st-cap, .follow, .f-*, .sim-ctl, .play, .legend, .sw from style.css.
   Only the new pieces are here, all under .dr-fig (both versions). */
.dr-fig .dr-map { display: block; width: 100%; aspect-ratio: 920 / 520; max-width: 100%; background: var(--void); }
.dr-fig .dr-map-tall { aspect-ratio: 920 / 630; }
.dr-fig .dr-where { font-variant-numeric: tabular-nums; }
.dr-fig .dr-st { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.dr-fig .dr-st > div { background: var(--void); min-width: 0; }
.dr-fig .dr-st span { display: block; padding: 6px 10px 4px; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1; color: var(--bone); }
.dr-fig .dr-st canvas { display: block; width: 100%; height: 170px; image-rendering: pixelated; }
.dr-fig .dr-phase { font-family: var(--f-display); font-weight: 400; font-size: var(--t-l); line-height: 1.15; color: var(--bone); }
.dr-fig .dr-phase[data-ph="jam"], .dr-fig .dr-phase[data-ph="wait"], .dr-fig .dr-phase[data-ph="stop"],
.dr-fig .dr-phase[data-ph="queue"], .dr-fig .dr-phase[data-ph="blocked"] { color: var(--signal); }
.dr-fig .dr-phase[data-ph="away"], .dr-fig .dr-phase[data-ph="speed"], .dr-fig .dr-phase[data-ph="exit"],
.dr-fig .dr-phase[data-ph="merge"] { color: var(--gold); }
.dr-fig .dr-why { color: var(--ash); font-size: var(--t-s); }
.dr-fig .dr-spark { display: block; width: 180px; height: 50px; }
.dr-fig .sim-ctl input[type=range] { accent-color: var(--signal); width: 110px; }
.dr-fig .dr-val { color: var(--bone); font-variant-numeric: tabular-nums; min-width: 3ch; }
.dr-fig .dr-read { flex-basis: 100%; color: var(--bone); font-variant-numeric: tabular-nums; }
.dr-fig .dr-notes { margin: 0; padding: 0 16px 20px; font-size: var(--t-s); color: var(--ash); line-height: 1.6; max-width: 72ch; }
.dr-fig .sim-head p { max-width: 72ch; line-height: 1.55; }
@media (max-width: 560px) {
  .dr-fig .dr-st { grid-template-columns: minmax(0, 1fr); }
  .dr-fig .dr-spark { width: 100%; max-width: 320px; }
  .dr-fig .dr-where { display: none; }
}