/* Page timeline (see timeline.js): a rail on wide screens, a chip on phones. Hidden until the page is scrolled. */
.tl { position: fixed; z-index: 70; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; font: 500 .8rem/1.2 var(--body, system-ui, sans-serif); }
.tl.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl a { color: #eef2f6; text-decoration: none; }
.tl-chip { display: none; }
@media (min-width: 1100px) {
  .tl { right: 20px; top: 50%; transform: translateY(-50%); padding: 4px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
  .tl-list { position: relative; display: flex; flex-direction: column; gap: 20px; }
  /* The line runs centre to centre, so the first and last dots cover its ends */
  .tl-list::before, .tl-list::after { content: ""; position: absolute; right: 5px; top: 6px; width: 2px; height: calc(100% - 12px); background: rgba(255, 255, 255, .4); }
  .tl-list::after { background: var(--coral, #f65946); height: calc((100% - 12px) * var(--tl-p, 0)); }
  .tl li { position: relative; }
  .tl a { display: block; position: relative; height: 12px; }
  .tl-dot { display: block; position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #9aa7b5; transition: transform .25s, background .25s; }
  .tl a.is-past .tl-dot { background: var(--coral, #f65946); }
  .tl a.is-active .tl-dot { background: #fff; transform: scale(1.3); }
  .tl-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; padding: 5px 0; border-radius: 999px; background: rgba(8, 14, 22, .86); transition: max-width .3s ease, opacity .25s ease; }
  .tl a.is-active .tl-label, .tl a:hover .tl-label, .tl a:focus-visible .tl-label { max-width: 240px; opacity: 1; padding: 5px 10px; }
  .tl a:not(.is-active) .tl-label { color: rgba(238, 242, 246, .85); }
  .tl a.is-active .tl-label { color: #fff; }
  .tl a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
}
@media (max-width: 1099px) {
  .tl { left: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
  .tl-chip { display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden; padding: 10px 14px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 14, 22, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: inherit; cursor: pointer; }
  .tl-count { color: var(--coral, #f65946); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
  .tl-name { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl-name::after { content: " \2191"; opacity: .6; }
  .tl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
  .tl-bar i { display: block; height: 100%; width: 0; background: var(--coral, #f65946); }
  .tl-list { display: none; position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: calc(100vw - 28px); max-height: 60vh; overflow-y: auto; padding: 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(8, 14, 22, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .tl.open .tl-list { display: block; }
  .tl .tl-list a { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
  .tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4654; flex: none; }
  .tl a.is-past .tl-dot { background: var(--coral, #f65946); }
  .tl a.is-active { background: rgba(255, 255, 255, .1); }
  .tl a.is-active .tl-dot { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .tl, .tl.on, .tl-dot, .tl-label { transition: none; } }
@media print { .tl { display: none; } }
