/* Redirect figure (rd3): one stage, two ways to challenge the GPUs.
   Scoped under .rd3; colours and fonts come only from the post's tokens. */
/* layout: static (no JS / reduced motion) = two panels, each with its end state */
.rd3 .rd3-wrap { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
.rd3 .rd3-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: .6rem; width: 100%; max-width: 25rem; min-width: 0; margin: 0 auto; }
.rd3 .rd3-name { margin: 0; font: 600 14.5px/1.3 var(--sans); color: var(--ink); }
.rd3 .rd3-stage { position: relative; width: 100%; max-width: 25rem; min-width: 0; margin: 0 auto; }
.rd3 .rd3-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rd3 .rd3-text { margin: 0; font: 15px/1.5 var(--sans); color: var(--soft); }
.rd3 .rd3-tabs, .rd3 .rd3-play { display: none; }@container (min-width: 700px) { .rd3 .rd3-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; } }

/* layout: live = one stage, two tabs, the active state's text */
.rd3.rd3-live .rd3-wrap { grid-template-columns: minmax(0, 1fr); row-gap: .75rem; max-width: 25rem; margin: 0 auto; }
.rd3.rd3-live .rd3-panel { display: contents; }
.rd3.rd3-live .rd3-name, .rd3.rd3-live .rd3-p2 .rd3-stage { display: none; }
.rd3.rd3-live .rd3-tabs { grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.rd3.rd3-live .rd3-stage { grid-row: 2; }
.rd3.rd3-live .rd3-text { grid-area: 3 / 1; padding: 0 .15rem; visibility: hidden; }   /* both texts share one cell, so the figure never changes height */
.rd3.rd3-live .rd3-on .rd3-text { visibility: visible; }
.rd3 .rd3-tab { display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; padding: 0 .1rem; border: 0; border-radius: 4px 4px 0 0; background: none; color: var(--muted); font: 600 14.5px/1.3 var(--sans); cursor: pointer; box-shadow: inset 0 -1px 0 var(--line); transition: color .15s; -webkit-tap-highlight-color: transparent; }
.rd3 .rd3-tab:hover { color: var(--ink); }
.rd3 .rd3-tab[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--fg-a); }
.rd3 .rd3-tab:focus-visible, .rd3 .rd3-play:focus-visible { outline: 2px solid var(--fg-a); outline-offset: 2px; }@container (min-width: 640px) {
  .rd3.rd3-live .rd3-wrap { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 1.9rem; max-width: none; }
  .rd3.rd3-live .rd3-stage { grid-area: 1 / 1 / -1 / 2; }
  .rd3.rd3-live .rd3-tabs { grid-area: 2 / 2; }
  .rd3.rd3-live .rd3-text { grid-area: 3 / 2; font-size: 15.5px; }
}

/* round playback button, bottom-left of the stage, as on the site */
.rd3.rd3-live .rd3-play { position: absolute; left: 2px; bottom: 0; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.rd3 .rd3-play svg { width: 15px; height: 15px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd3 .rd3-play path { display: none; }
.rd3 .rd3-play[data-icon="play"] .rd3-i-play { display: block; fill: currentcolor; }
.rd3 .rd3-play[data-icon="pause"] .rd3-i-pause { display: block; stroke-width: 3; }
.rd3 .rd3-play[data-icon="replay"] .rd3-i-replay { display: block; }

/* drawing: single-class selectors, so they also reach the shared base drawn through <use> */
.rd3-head { font: 600 13.5px var(--sans); fill: var(--ink); }
.rd3-lab { font: 12px var(--sans); fill: var(--muted); }
.rd3-val { font: 500 12px var(--mono); fill: var(--ink); }
.rd3-late { fill: var(--fg-late); }
.rd3-dc { fill: var(--wash); stroke: var(--muted); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; }
.rd3-box { fill: var(--paper); stroke: var(--muted); stroke-width: 1.3; }
.rd3-pins { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.rd3-cell { fill: var(--ink); fill-opacity: .035; stroke: var(--line); stroke-width: 1; }
.rd3-act { fill: var(--fg-a); }
.rd3-bad { fill: var(--fg-late); fill-opacity: .14; stroke: var(--fg-late); stroke-width: 1.2; }
.rd3-bad-hatch { stroke: var(--fg-late); stroke-width: 1.1; }
.rd3-arrow { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.rd3-ah { fill: var(--ink); }
.rd3-idle { opacity: .3; }
.rd3-redir { fill: none; stroke: var(--fg-late); stroke-width: 1.5; }
.rd3-redir-ah { fill: var(--fg-late); }
.rd3-route { fill: none; stroke: none; }
.rd3-back { fill: var(--paper); }
.rd3-watch-face { fill: var(--paper); }
.rd3-watch-rim { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.rd3-watch-late { fill: var(--fg-late); fill-opacity: .22; }
.rd3-watch-mark { fill: none; stroke: var(--fg-late); stroke-width: 1.5; }
.rd3-hand { stroke: var(--fg-a); stroke-width: 2; stroke-linecap: round; }
.rd3-pivot { fill: var(--fg-a); }
.rd3-late-ring { fill: var(--paper); stroke: var(--fg-late); stroke-width: 1.3; }
.rd3-late-mark { fill: none; stroke: var(--fg-late); stroke-width: 1.4; stroke-linecap: round; }
/* GPU B's lane and row are quiet while it is not being challenged */
.rd3 .rd3-laneb, .rd3 .rd3-rowb { transition: opacity .3s; }
.rd3 .rd3-s0 .rd3-laneb, .rd3 .rd3-s0 .rd3-rowb { opacity: .3; }@media (prefers-reduced-motion: reduce) { .rd3 * { animation: none !important; transition: none !important; } }
