.clock-transport{position:relative}
#date{cursor:pointer}
#date-input{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--edge-strong);padding:2px 6px;width:13ch;margin-right:12px}
#date-input.invalid{border-color:#c0392b}
#date-note{position:absolute;left:0;top:100%;margin-top:4px;font-size:9px;letter-spacing:.04em;color:#c0392b;white-space:nowrap}

/* Timeline window: keep the existing range; its two neighbours change scale. */
html[data-combined] .time-scale{grid-template-columns:24px minmax(0,1fr) 24px;column-gap:4px}
html[data-combined] .time-labels{position:relative;display:block;grid-column:2;grid-row:1;height:12px;margin:0 7px}
html[data-combined] .time-labels span{height:12px;line-height:12px;position:absolute;transform:translateX(-50%);font-size:8px;white-space:nowrap}
html[data-combined][data-time=box] .time-labels span:nth-child(n){display:block}
html[data-combined] .time-scale #timeline{grid-column:2;grid-row:2;min-width:0;width:100%}
.time-zoom{display:contents}
html[data-combined] .time-zoom button{grid-row:2;min-height:20px;padding:0;font-size:16px;line-height:1}
#time-zoom-out{grid-column:1}#time-zoom-in{grid-column:3}
#time-window{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-combined] .clock-heading #today{margin-left:auto;padding:2px 5px;color:var(--mint);border:1px solid var(--edge)}
/* The same ruler follows story chronology beside the story's single transport. */
html[data-combined][data-time=box] body.story-on .time-scale{display:grid;grid-column:1/-1;grid-row:2;border-top:1px solid var(--edge)}
@media(min-width:761px){
 html[data-combined][data-time=box] body.story-on .time-scale{grid-column:1;grid-row:1;align-self:end;width:220px;box-sizing:border-box;z-index:1}
 html[data-combined][data-time=box] body.story-on .clock-heading{grid-column:1;grid-row:1;padding-bottom:48px}
 html[data-combined][data-time=box] body.story-on .time-labels span{font-size:7px}
}
html[data-combined] .time-labels span::after{content:'';position:absolute;left:50%;top:100%;height:3px;border-left:1px solid var(--edge)}
@media(min-width:761px){
 html[data-combined][data-time=box] body.story-on .time-scale:is(:has([data-window="500"]),:has([data-window="1"])) .time-labels span:nth-child(even){font-size:0}
}
@media(max-width:760px){
 html[data-combined] .time-scale{grid-template-columns:44px minmax(0,1fr) 44px}
 html[data-combined] .time-zoom button{min-height:44px}
}
@media(min-width:801px) and (max-width:1200px){
 html[data-combined][data-time=box] body:not(.story-on) .time-scale:has([data-window="500"]) .time-labels span:nth-child(even){font-size:0}
}
#date .julian{font-size:.7em;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
