/* rohin.me - the time control (js/timestrip.js), one for the whole site: Live · ▶ · bars, the clock's hours under the
   bars and the chosen moment under the thumb. One row of 44 px plus a line of ticks. Tokens only. Used by Signals; Now
   and the Machine room can take it as it is. */
.ts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: var(--tap) auto; column-gap: .4rem; row-gap: 2px; align-items: center; min-width: 0; }
.ts-live, .ts-play { grid-row: 1; }
.ts-line { grid-row: 1 / 3; grid-column: 3; display: grid; grid-template-rows: var(--tap) auto; row-gap: 2px; min-width: 0; }
.ts-live { display: inline-flex; align-items: center; gap: .45rem; height: var(--tap); padding: 0 .85rem 0 .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.ts-live[aria-pressed="true"] { color: var(--ink); border-color: var(--line-strong); }
.ts-live[aria-pressed="false"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }      /* at an earlier moment: plainly the way back */
.ts-live[aria-pressed="false"] .ts-live-dot { background: var(--ink-3); animation: none; box-shadow: none; }
.ts-play { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.ts-play .ico { fill: currentColor; stroke-width: 1; }
.ts-play[data-on] { border-color: var(--accent); }
.ts-live:hover, .ts-play:hover { border-color: var(--line-strong); }
.ts-live:active, .ts-play:active { transform: scale(.94); }
.ts-track { position: relative; height: var(--tap); min-width: 0; }
.ts-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--ts-cols, 25), minmax(0, 1fr)); align-items: end; gap: 2px; padding: 4px 0; border-bottom: 1px solid var(--line-strong); }
.ts-bars i { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--c-quiet); opacity: .55; }
.ts-bars i.none { background: none; border-bottom: 1px dashed var(--line-strong); min-height: 0; }
.ts-bars i.on { background: var(--accent); opacity: 1; }
.ts-bars i.ts-nowcol { align-self: stretch; background: none; border-left: 1px dashed var(--line-strong); border-radius: 0; opacity: 1; }
.ts-bars i.ts-nowcol.on { background: var(--accent-soft); border-left: 2px solid var(--accent); }
.ts:not([data-live]) .ts-bars { border-bottom-color: var(--accent); }
.ts-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; touch-action: none; }
.ts-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ts-range::-moz-range-track { height: 100%; background: transparent; }
.ts-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.ts-range::-moz-range-thumb { width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.ts-range:focus-visible { outline-offset: 4px; }
/* under the bars: the clock's hours, and the moment chosen right under the thumb */
.ts-under { position: relative; height: .95rem; min-width: 0; font-size: .6875rem; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ts-ticks { position: absolute; inset: 0; }
.ts-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; transition: opacity var(--fast); }
.ts-tick.is-first { transform: none; }
.ts-tick.is-under { opacity: 0; }
.ts-at { position: absolute; top: 0; white-space: nowrap; color: var(--accent); font-weight: 600; }
.ts-at[hidden] { display: none; }
@media (max-width: 380px) { .ts-live { padding: 0 .65rem 0 .6rem; } }
@media (prefers-reduced-motion: reduce) { .ts-live, .ts-play, .ts-tick { transition: none; } .ts-live:active, .ts-play:active { transform: none; } }
