/* TIME SCALES: what is specific to this page, in the tokens of ../ad/roomc.css (Room C's art direction; load that first).
   Black ground and white at the steps of the alpha stair. The canvas is drawn by time-scales.js in white; the one colour scale it
   uses is the quantity colour map of the memory and of the cells (inferno, with its scale bar), as on the GENESIS page.
   No cue colour: what arises and what ends are told by the direction of a tick, not by a colour. No external resources. */

.ts { margin: 0 var(--rc-margin); }
.lead { max-width: var(--rc-measure); margin: calc(20 * var(--u)) 0 0; color: var(--rc-fg-sub); font-size: var(--rc-fs-read); line-height: var(--rc-lh-read); }

/* the stage: the canvas in a thin frame, as the plans of the LIVE pages; the transport under it, as on the GENESIS page */
.ts-stage { margin-top: calc(32 * var(--u)); padding-top: calc(32 * var(--u)); border-top: var(--rc-w) solid var(--rc-aux); }
#ts { display: block; width: 100%; height: clamp(560px, min(58vw, calc(100svh - 150px)), 1100px); background: var(--rc-bg); border: var(--rc-w) solid var(--rc-aux); }

.ts-bar { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(12 * var(--u)); font-family: var(--rc-mono); font-size: var(--rc-fs-mono); letter-spacing: var(--rc-ls-sub); }
.ts-bar button { flex: none; min-height: calc(40 * var(--u)); padding: 0 calc(14 * var(--u)); font: inherit; letter-spacing: inherit; color: var(--rc-fg-sub); background: transparent; border: var(--rc-w) solid var(--rc-line); border-radius: 0; cursor: pointer; }
.ts-bar button[aria-pressed="true"] { color: var(--rc-fg-now); border-color: var(--rc-fg-now); }
.ts-bar button:hover, .ts-bar button:focus-visible { color: var(--rc-fg-now); }
.ts-bar button:focus-visible, .ts-scrub:focus-visible { outline: var(--rc-w) solid var(--rc-fg-now); outline-offset: calc(2 * var(--u)); }
#ts-play { min-width: calc(76 * var(--u)); }
.ts-scrub { position: relative; flex: 1 1 auto; min-width: 0; height: calc(40 * var(--u)); cursor: pointer; touch-action: none; }
.ts-track { position: absolute; left: 0; right: 0; top: 50%; height: var(--rc-w); background: var(--rc-line); }
.ts-seg { position: absolute; top: 0; height: 100%; padding-left: calc(5 * var(--u)); border-left: var(--rc-w) solid var(--rc-line); color: var(--rc-fg-head); font-size: var(--rc-fs-foot); line-height: calc(12 * var(--u)); white-space: nowrap; overflow: hidden; }
.ts-seg-a { left: 5%; width: 28.3%; } .ts-seg-b { left: 33.3%; width: 35%; } .ts-seg-c { left: 68.3%; width: 26.7%; }   /* A 3–20 s, B 20–41 s, C 41–57 s */
.ts-head { position: absolute; top: 20%; width: var(--rc-w2); height: 60%; margin-left: calc(-1 * var(--u)); background: var(--rc-fg-now); }
.ts-time { flex: none; color: var(--rc-fg-head); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* how to read it */
.ts-about { max-width: var(--rc-measure); margin-top: calc(40 * var(--u)); padding-top: calc(24 * var(--u)); border-top: var(--rc-w) solid var(--rc-aux); }
.ts-about .rc-label { margin-bottom: calc(14 * var(--u)); }
.ts-prose p { color: var(--rc-fg-sub); font-size: var(--rc-fs-read); line-height: var(--rc-lh-read); }
.ts-prose p + p { margin-top: calc(14 * var(--u)); }
.ts-about .note { margin-top: calc(18 * var(--u)); color: var(--rc-fg-foot); font-size: var(--rc-fs-credit); line-height: 1.7; }
.ts + .rc-foot { margin-top: calc(48 * var(--u)); }

@media (max-width: 700px) {
  #ts { height: clamp(640px, 228vw, 960px); }
  .ts-bar { flex-wrap: wrap; gap: calc(8 * var(--u)); }
  .ts-scrub { flex-basis: 100%; order: 3; }
  .ts-time { margin-left: auto; }
}
