/* PROTOTYPE — overpass/timeline.css: the transport block and the one flat timeline (the direction's §8.5 and §8.6).
   Owned with overpass/timeline.js and overpass/transport.js. */

/* ---- the transport block: desktop 380 x 168, aligned navigation, playback and speed rows ---- */
.transport { min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--rule-dark); }
.tp-keys { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: start; }
.tp-key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 36px; padding: 0 8px; font-size: var(--fs-ui); font-weight: 600; color: var(--pale); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color var(--t-quick); }
.tp-key:hover, .tp-key:focus-visible { border-color: var(--track-lit); }
.tp-key .ico { width: 16px; height: 16px; }
.tp-key[aria-disabled="true"] { opacity: .5; }
#tpStormPrev { grid-column: 1 / span 3; grid-row: 1; }
#tpPrev { grid-column: 4 / span 3; grid-row: 1; }
#tpNext { grid-column: 7 / span 3; grid-row: 1; }
#tpStormNext { grid-column: 10 / span 3; grid-row: 1; }
#tpAll { grid-column: 1 / span 5; grid-row: 2; height: 40px; }
.tp-play { grid-column: 6 / span 7; grid-row: 2; justify-content: center; height: 40px; padding: 0 12px; gap: 8px; font-weight: 700; background: var(--cloudtop); color: var(--ink); border-color: transparent; }
.tp-disc { width: 22px; height: 22px; color: inherit; display: grid; place-items: center; flex: none; }
.tp-disc .ico { width: 20px; height: 20px; }
.tp-cap { grid-column: 1 / span 8; grid-row: 3; align-self: center; text-align: left; margin-top: -2px; font-size: 11.5px; line-height: 1.2; color: var(--pale-2); min-height: 1.2em; }
/* Build up (Marc, 16 Nov 2026): a small switch beside Play's caption; on, a month keeps every month before it */
.tp-build { grid-column: 9 / -1; grid-row: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 18px; margin-top: -2px; padding: 0 2px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--pale); background: none; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.tp-sw { position: relative; width: 24px; height: 14px; flex: none; border-radius: 7px; background: rgba(255, 255, 255, .22); transition: background var(--t-quick); }
.tp-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--pale); transition: transform var(--t-quick); }
.tp-build[aria-checked="true"] .tp-sw { background: var(--track-lit); }
.tp-build[aria-checked="true"] .tp-sw::after { transform: translateX(10px); background: #fff; }
.tp-build:focus-visible { outline: 2px solid var(--track-lit); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tp-sw, .tp-sw::after { transition: none; } }
.tp-more { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-speed { display: inline-flex; align-items: center; gap: 2px; background: var(--under-2); border-radius: var(--r-pill); padding: 3px; }
.tp-speed-l { font-size: var(--fs-small); color: var(--pale-2); padding: 0 6px 0 8px; }
.tp-speed button { height: 30px; padding: 0 9px; font-size: 12.5px; font-weight: 600; color: var(--pale); background: none; border: 0; border-radius: var(--r-pill); cursor: pointer; }
.tp-speed button[aria-checked="true"] { background: var(--cloudtop); color: var(--ink); }
.tp-storms { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 10px; font-size: var(--fs-ui); font-weight: 600; color: var(--pale); background: var(--under-2); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; cursor: pointer; }
.tp-storms .ico { color: var(--track-lit); }
.tp-storms[aria-disabled="true"] { opacity: .55; }

/* ---- the timeline: 168 px on desktop, 120 on a phone ---- */
.timeline { position: relative; min-width: 0; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.tl-svg { display: block; width: 100%; overflow: visible; font-family: var(--font-sans); }
.tl-range { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.inst:has(#tlRange:focus-visible) .timeline { outline: 3px solid var(--track-lit); outline-offset: -3px; }
.tl-hair { stroke: rgba(255, 255, 255, .1); stroke-width: 1; fill: none; }
.tl-horizon { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; fill: none; }
.tl-looks { fill: #FF5FA8; opacity: .85; }
.tl-backed { fill: #6FD3FF; }
.tl-ghost { fill: rgba(196, 228, 255, .28); }
.tl-false { fill: url(#tl-hatch); }
.tl-caret { fill: #BFE9FF; }
.tl-tape { fill: url(#tl-hatch); }
.tl-guide { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 2 4; fill: none; }
.tl-ax { fill: var(--pale-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.tl-ax-in { paint-order: stroke; stroke: #07142B; stroke-width: 3px; stroke-linejoin: round; font-size: 10px; }
.tl-note { transition: opacity var(--t-quick); }
.tl-yr { fill: var(--pale-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.tl-ti { fill: var(--pale); font-size: 12px; font-weight: 600; }
.tl-dots circle { fill: #fff; stroke: #07142B; stroke-width: 1; }
.tl-name path { stroke: rgba(255, 255, 255, .28); fill: none; }
.tl-name text { fill: var(--pale-2); font-size: 11.5px; font-weight: 500; paint-order: stroke; stroke: #07142B; stroke-width: 3px; stroke-linejoin: round; }
.tl-name.on text { fill: #fff; font-weight: 700; }
.tl-name { transition: opacity var(--t-quick); }
.tl-note { fill: var(--note); font-family: var(--font-log); font-style: italic; font-size: 12.5px; paint-order: stroke; stroke: #07142B; stroke-width: 3px; stroke-linejoin: round; }
.tl-bracket { stroke: rgba(247, 198, 221, .7); fill: none; }
.tl-head path { stroke: #FF5FA8; stroke-width: 2; fill: none; }
.tl-head .disc { fill: #0A1B33; stroke: #FF5FA8; stroke-width: 2.6; }
.tl-head .ring { display: none; fill: none; stroke: #fff; stroke-width: 2.5; }
.inst:has(#tlRange:focus-visible) .tl-head .ring { display: block; }
.tl-head use { color: #fff; }
.tl-tag { fill: #fff; font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #07142B; stroke-width: 4px; stroke-linejoin: round; }
.tl-tag-st { fill: #fff; font-size: 11.5px; font-weight: 500; paint-order: stroke; stroke: #07142B; stroke-width: 4px; stroke-linejoin: round; }
.tl-loading .tl-head { opacity: 0; }
.tl-plate { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; font-size: 12.5px; line-height: 1.3; color: #fff; background: rgba(10, 27, 51, .94); border-left: 3px solid var(--track-lit); padding: 5px 9px; white-space: nowrap; }
.tl-plate b { display: block; font-weight: 650; }
.tl-plate span { display: block; color: var(--pale-2); }
.tl-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; max-width: 90%; font-size: var(--fs-ui); color: var(--pale); background: rgba(10, 27, 51, .95); padding: 8px 12px; }

@media (max-width: 1179px) {
  .transport { border-right: 0; }
}
/* On a phone, retain two clear rows rather than squeezing five labelled buttons together. */
@media (max-width: 760px) {
  .transport { display: contents; }
  .tp-keys { gap: 6px; padding: 8px 12px; }
  .tp-key { padding: 0 4px; font-size: .78rem; gap: 3px; }
  .tp-key .ico { width: 14px; height: 14px; }
  .tp-play { gap: 6px; }
  .tp-cap { display: none; }
  /* on a phone Build up joins the Play row, its switch over its word, so the keys and the timeline still share one screen */
  #tpAll { grid-column: 1 / span 4; }
  .tp-play { grid-column: 5 / span 5; }
  .tp-build { grid-column: 10 / -1; grid-row: 2; justify-self: stretch; flex-direction: column; justify-content: center; gap: 3px; height: 40px; margin: 0; padding: 0 2px; font-size: .7rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .035); }
  .tp-more { padding: 6px 12px 10px; flex-wrap: wrap; }
  .tp-speed-l { display: none; }
  .timeline { padding: 0 2px; }
}
@media (pointer: coarse) {
  .tp-key, #tpAll, .tp-play, .tp-speed button, .tp-storms, .tp-build { min-height: var(--hit); }
  .transport { height: auto; }
}
@media (min-width: 1180px) and (pointer: coarse) {
  /* 224 px since 16 Nov 2026: Build up's switch takes a full touch row (the review measured 218 px of transport) */
  .inst { grid-template-rows: auto minmax(0, 1fr) 224px; }
}
