/* Linked after styles/site.css on every app page, and on the go poschte page, which defines the same colour
   tokens (--surface, --ink, --slate, --line, --accent, --signal, --mono) in its own <style>. */

/* Release timeline, under "Where it stands" on an app's page (DESIGN.md, "The release timeline"). A rail from the
   first day of work to today, stepped into one stratum per major version on the depth ramp (.d1 to .d4, lightest
   first, the same in both themes, from --from to --to). Each Store release is a diamond at its date (--x, the share
   of the span): signal orange for a major version (.major), a hollow steel one for an update. Labels sit above (.up)
   or below the rail, and end at their date (.end) near the right edge. Below 640px it becomes a list in date order,
   each entry edged in its stratum's colour. */
.tl{--d1:#a8c4e0;--d2:#6a95c0;--d3:#3d6f9f;--d4:#1d4368;margin:22px 0 18px;padding:16px 20px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.tl-track{position:relative;height:272px;margin:0 6px}
.tl-rail{position:absolute;left:0;right:0;top:50%;height:8px;margin-top:-4px;border-radius:4px;overflow:hidden}
.tl-rail span{position:absolute;top:0;bottom:0;left:var(--from);width:calc(var(--to) - var(--from))}
.tl .d1{--d:var(--d1)}.tl .d2{--d:var(--d2)}.tl .d3{--d:var(--d3)}.tl .d4{--d:var(--d4)}
.tl-rail span,.tl .key{background:var(--d,var(--accent))}
.tl-dots i{position:absolute;left:var(--x);top:50%;width:9px;height:9px;margin:-6.5px 0 0 -6.5px;transform:rotate(45deg);background:var(--surface);border:2px solid var(--accent)}
.tl-dots i.major{width:15px;height:15px;margin:-9.5px 0 0 -9.5px;background:var(--signal);border-color:var(--surface)}
.tl-dots i.start{transform:none;border-radius:50%;border-color:var(--slate)}
.tl-dots i.now{transform:none;width:2px;height:22px;margin:-11px 0 0 -1px;border:0;background:var(--ink)}
.tl-tick{position:absolute;left:var(--x);top:calc(50% + 9px);transform:translateX(-50%);font:500 10.5px var(--mono);letter-spacing:.06em;color:var(--slate);white-space:nowrap}
.tl-tick.end{transform:translateX(-100%)}
.tl ol{list-style:none;margin:0;padding:0}
.tl li{position:absolute;left:var(--x);width:clamp(110px,24%,165px);margin:0;padding-left:9px;border-left:1px solid var(--slate);font-size:.84rem;line-height:1.35;color:var(--slate)}
.tl li.up{bottom:calc(50% + 8px);padding-bottom:16px}
.tl li:not(.up){top:calc(50% + 8px);padding-top:16px}
.tl li.end{left:auto;right:calc(100% - var(--x));padding-left:0;padding-right:9px;border-left:0;border-right:1px solid var(--slate);text-align:right}
.tl li.major{border-color:var(--signal)}
.tl li time{display:block;font:500 11px var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--slate)}
.tl li b{display:block;color:var(--ink);font-weight:600;font-size:.95rem}
.tl li b em{font-style:normal;color:var(--signal)}
.tl figcaption{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px;padding-top:10px;border-top:1px solid var(--line);font-size:.82rem;color:var(--slate)}
.tl figcaption span{display:inline-flex;align-items:center;gap:7px}
.tl .key{display:inline-block;width:16px;height:8px;border-radius:4px}
.tl .key.major,.tl .key.minor{width:9px;height:9px;border-radius:0;transform:rotate(45deg);background:var(--signal)}
.tl .key.minor{width:6px;height:6px;background:var(--surface);border:2px solid var(--accent)}
@media (max-width:640px){
  .tl{padding:14px 16px 10px}
  .tl-track{height:auto;margin:0}
  .tl-rail,.tl-dots,.tl-tick{display:none}
  .tl li,.tl li.up,.tl li.end{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;text-align:left;
    margin-left:6px;padding:0 0 14px 20px;border:0;border-left:6px solid var(--d,var(--accent))}
  .tl li::before{content:"";position:absolute;left:-13.5px;top:3px;width:9px;height:9px;transform:rotate(45deg);background:var(--surface);border:2px solid var(--accent)}
  .tl li.major::before{left:-15.5px;top:1px;width:13px;height:13px;background:var(--signal);border-color:var(--surface)}
  .tl li:last-child{padding-bottom:4px}
}

/* A version that was built but never released: a hollow, dashed grey diamond, and its label in grey */
.tl-dots i.unreleased{background:var(--surface);border:2px dashed var(--slate)}
.tl .key.unreleased{width:6px;height:6px;border-radius:0;transform:rotate(45deg);background:var(--surface);border:2px dashed var(--slate)}
.tl li.unreleased b{color:var(--slate)}
@media (max-width:640px){
  .tl li.unreleased::before{border:2px dashed var(--slate)}
}
