/* Dinos.info - Timeline, "Journey through time" ([dn_timeline]; assets/timeline/timeline.js). Built from Claude
   Design's Timeline boards (Phase 1 canvas v63, hand-off n-tl, night/timeline.css): desktop stage 640 px with the 96 px
   controls bar over its foot, phones 560 px with a 134 px bar. Period neon accents from the colour and life pass
   (life.css --neon-*), with the same values as fallbacks until the site-wide tokens ship; the ICS fills stay the
   official colours. Movement is transforms only; Still / reduced motion turns off animation. */

.dn-tl-page { background: var(--surface-dark); color: var(--text-on-dark); }
.dn-page.dn-page-timeline.is-over { padding-top: 0; }   /* no band: the block starts right under the header (timeline3.css) */
.dn-timeline, .dn-tl-after {
  --tl-neon-triassic: var(--neon-triassic, #c77dff); --tl-neon-triassic-rgb: var(--neon-triassic-rgb, 199, 125, 255);
  --tl-neon-jurassic: var(--neon-jurassic, #3cc8f0); --tl-neon-jurassic-rgb: var(--neon-jurassic-rgb, 60, 200, 240);
  --tl-neon-cretaceous: var(--neon-cretaceous, #8ee05c); --tl-neon-cretaceous-rgb: var(--neon-cretaceous-rgb, 142, 224, 92);
  --period: var(--action); --period-rgb: 245, 138, 31;
}
/* The side gutter of the Timeline block (its controls bar and title) and of the Time Machine under it, which spans the
   same full width (Ben, 2026-10-16 11:49; core 0.16.2): --dn-gutter-wide (dn-pages.css), 28 px, 16 px on phones. */
.dn-timeline { --tl-ctl: 128px; position: relative; font-family: var(--font-body); color: var(--text-on-dark); }
:is(.dn-timeline, .dn-tl-after) [data-period="triassic"] { --period: var(--tl-neon-triassic); --period-rgb: var(--tl-neon-triassic-rgb); }
:is(.dn-timeline, .dn-tl-after) [data-period="jurassic"] { --period: var(--tl-neon-jurassic); --period-rgb: var(--tl-neon-jurassic-rgb); }
:is(.dn-timeline, .dn-tl-after) [data-period="cretaceous"] { --period: var(--tl-neon-cretaceous); --period-rgb: var(--tl-neon-cretaceous-rgb); }

/* ---------- stage ---------- */
/* The stage fills the window under the site header (Ben, 2026-10-15 18:11): 100svh minus the header (--tl-head, set by
   timeline.js), 560 to 1080 px; the figures and rows scale with its height. */
/* core 0.20.6 (approval row 69, Tl-Fit A): one window tall, playing or not (640 to 1048 px); the narration docks inside it */
.dn-timeline .tl-stage { box-sizing: border-box; scroll-margin-top: var(--tl-head, 0px); height: clamp(640px, calc(100vh - var(--tl-head, 0px)), 1048px); height: clamp(640px, calc(100svh - var(--tl-head, 0px)), 1048px); position: relative; overflow: hidden; background: #0e1012; border-top: 1px solid rgba(245, 138, 31, .3); border-bottom: 1px solid var(--line-dark); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; contain: layout paint; }
.dn-timeline.is-dragging .tl-stage { cursor: grabbing; }
.dn-timeline .tl-pano { position: absolute; inset: 0; overflow: hidden; }
.dn-timeline .tl-layer { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
/* The horizon above the dinosaur rows (Ben, 18:07: "it just looks like tree leaves in the back"): the far and mid
   layers raised, the near foliage lower and lighter. */
.dn-timeline.pano-layers .tl-layer-far { top: calc(-1 * var(--tl-far-up, 0px)); }
.dn-timeline.pano-layers .tl-layer-mid { top: calc(-1 * var(--tl-mid-up, 0px)); }
.dn-timeline.pano-layers .tl-layer-near { top: var(--tl-near-down, 0px); }
.dn-timeline .tl-tile { position: absolute; top: 0; left: 0; height: 100%; background-repeat: no-repeat; background-position: left bottom; transform-origin: center; }
.dn-timeline .tl-tile.is-flip { background-position: right bottom; }
.dn-timeline .tl-tile.is-blend { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-blend, 140px)); mask-image: linear-gradient(to right, transparent 0, #000 var(--tl-blend, 140px)); }
.dn-timeline .tl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 16, 18, .7) 0, rgba(14, 16, 18, .15) 22%, rgba(14, 16, 18, 0) 40%, rgba(14, 16, 18, 0) 58%, rgba(14, 16, 18, .55) 74%, rgba(14, 16, 18, .96) 100%); }
/* Background (Ben, 2026-10-15; Timeline v2, n-tl 1): dimmed by default so the dinosaurs read first (land layers 42%,
   sky 30%, each its own composited layer); Show for the full art; Hide leaves the dark ground with a faint wash of each
   period's colour under the period bands. */
/* Dim is one still scrim of the ground colour over the moving layers (the same look as the layers at 42%, the sky at 30%,
   over the dark ground): opacity on the four moving layers cost a third of the frame rate. */
.dn-timeline .tl-pano::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(180deg, rgba(14, 16, 18, .7) 0, rgba(14, 16, 18, .7) 34%, rgba(14, 16, 18, .58) 52%, rgba(14, 16, 18, .58) 100%); }
.dn-timeline.bg-dim .tl-pano::after { opacity: 1; }
.dn-timeline.bg-hide .tl-pano { visibility: hidden; }
.dn-timeline .tl-wash { position: absolute; top: 0; left: 0; height: 100%; width: 1px; display: none; pointer-events: none; will-change: transform; }
.dn-timeline.bg-hide .tl-wash { display: block; }
.dn-timeline .tl-wash-p { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(180deg, rgba(var(--period-rgb), .16) 0, rgba(var(--period-rgb), .07) 45%, rgba(var(--period-rgb), .02) 80%, transparent); }
/* What waits off screen (Timeline v2, n-tl 4). */
.dn-timeline .tl-edge { position: absolute; top: 0; z-index: 7; padding: 1px 8px; border-radius: 999px; background: rgba(18, 20, 23, .78); font-size: 11px; line-height: 16px; color: var(--text-muted-on-dark); pointer-events: none; }
.dn-timeline .tl-edge:empty { display: none; }
.dn-timeline .tl-edge.is-l { left: 12px; }
.dn-timeline .tl-edge.is-r { right: 12px; }
.dn-timeline.pano-fallback .tl-shade { background: linear-gradient(180deg, rgba(14, 16, 18, .78) 0, rgba(14, 16, 18, .3) 24%, rgba(14, 16, 18, .2) 50%, rgba(14, 16, 18, .6) 74%, rgba(14, 16, 18, .96) 100%); }

/* ---------- ICS bands across the top ---------- */
.dn-timeline .tl-bands { position: absolute; left: 0; right: 0; top: 8px; z-index: 2; pointer-events: none; }
.dn-timeline .tl-band-row { position: relative; height: 20px; will-change: transform; }
.dn-timeline .tl-band-row.is-period { height: 58px; }
.dn-timeline .tl-band { position: absolute; top: 0; left: 0; height: 100%; box-sizing: border-box; border-right: 1px solid rgba(14, 16, 18, .7); opacity: .92; }
.dn-timeline .is-period .tl-band { opacity: 1; box-shadow: inset 0 -3px 0 var(--period), 0 8px 26px -10px rgba(var(--period-rgb), .9); }
.dn-timeline .is-period .tl-band.dn-ics-period-triassic { background: rgba(129, 43, 146, .82); }
.dn-timeline .is-period .tl-band.dn-ics-period-jurassic { background: rgba(52, 178, 201, .78); }
.dn-timeline .is-period .tl-band.dn-ics-period-cretaceous { background: rgba(127, 198, 78, .78); }
.dn-timeline .tl-band-label { position: absolute; left: 0; top: 0; height: 100%; padding: 0 8px; box-sizing: border-box; white-space: nowrap; display: flex; flex-direction: column; justify-content: center; align-items: center; will-change: transform; }
.dn-timeline .is-period .tl-band-name { font: 700 19px/22px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.dn-timeline .tl-band-dates { font-size: 13px; line-height: 17px; color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.dn-timeline .is-epoch .tl-band-name, .dn-timeline .is-stage .tl-band-name { font: 700 10px/20px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: #121417; }
.dn-timeline .is-stage .tl-band-name { text-transform: none; letter-spacing: 0; font-size: 11px; }
/* core 0.20.7 (queue 2026-11-07 step 3): the band labels at AA on their ICS fills, which stay as they are. Each label is
   Prehistoric Slate or Bone White, whichever is higher on its band; where neither reaches 4.5:1 at its size (the Middle
   Triassic epoch and the Anisian stage, Slate 4.3 to 4.5:1 where the landscape shows through; the Olenekian stage, Bone
   White 4.1:1) it gets a small pill of the other one behind it. Measured on the worst pixel behind each label at
   1920, 1440, 1024, 760 and 400, idle and playing (tests/smoke/timeline-band-labels.mjs). */
.dn-timeline .is-period .dn-ics-period-triassic :is(.tl-band-name, .tl-band-dates) { color: var(--bone-white); }
.dn-timeline .is-period :is(.dn-ics-period-jurassic, .dn-ics-period-cretaceous) :is(.tl-band-name, .tl-band-dates) { color: var(--prehistoric-slate); text-shadow: none; }
.dn-timeline :is(.is-epoch .dn-ics-epoch-early-triassic, .is-stage .dn-ics-stage-induan, .is-stage .dn-ics-stage-olenekian) .tl-band-name { color: var(--bone-white); }
.dn-timeline .is-stage .dn-ics-stage-olenekian .tl-band-name { background: var(--prehistoric-slate); border-radius: 3px; padding: 0 4px; line-height: 14px; }   /* Bone White about 4.1:1 there, Slate 3.3: Bone White on a Slate pill */
.dn-timeline :is(.is-epoch .dn-ics-epoch-middle-triassic, .is-stage .dn-ics-stage-anisian) .tl-band-name { color: var(--prehistoric-slate); background: var(--bone-white); border-radius: 3px; padding: 0 4px; line-height: 14px; }

/* ---------- the moment the slider points at ---------- */
.dn-timeline .tl-now { position: absolute; left: 0; top: 70px; bottom: var(--tl-ctl); z-index: 3; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--action), rgba(245, 138, 31, .15)); box-shadow: 0 0 14px rgba(245, 138, 31, .8); pointer-events: none; will-change: transform; }
.dn-timeline:is([data-zoom="period"], [data-zoom="epoch"]) .tl-now { top: 90px; }
.dn-timeline[data-zoom="stage"] .tl-now { top: 110px; }

/* ---------- dinosaurs and pins ---------- */
.dn-timeline .tl-track { position: absolute; top: 0; left: 0; height: 100%; width: 1px; z-index: 4; will-change: transform; }
.dn-timeline .tl-item { position: absolute; left: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--text-on-dark); font: inherit; cursor: pointer; }
/* Depth rows (Ben, 2026-10-15, item 2): row 0 in front; each row further back stands higher (--tl-row-N, set by the
   script), is smaller (--tl-fig-N) and dimmer, and draws behind. Its top always clears the row in front. */
/* Stagger (Ben, 2026-10-16 18:10, item 2): a raised figure (.st-up) stands --st (12% of its height) higher, and each
   row further back --ep higher still (timeline.js), so screen neighbours never share a baseline; set when the Row
   spacing changes, never per frame. The button moves with its figure, so its hit area stays its own. */
.dn-timeline .tl-dn { --st: var(--tl-st-0, 0px); --ep: 0px; --up: 0; width: calc(var(--tl-fig-0) * 2); height: var(--tl-fig-0); bottom: calc(var(--tl-ctl) + 34px + var(--tl-row-0, 0px) + var(--ep) + var(--up) * var(--st)); border-radius: 6px; z-index: 4; }
.dn-timeline .tl-dn.row-1 { --st: var(--tl-st-1, 0px); --ep: var(--tl-ep-1, 0px); width: calc(var(--tl-fig-1) * 2); height: var(--tl-fig-1); bottom: calc(var(--tl-ctl) + 34px + var(--tl-row-1) + var(--ep) + var(--up) * var(--st)); z-index: 3; }
.dn-timeline .tl-dn.row-2 { --st: var(--tl-st-2, 0px); --ep: var(--tl-ep-2, 0px); width: calc(var(--tl-fig-2) * 2); height: var(--tl-fig-2); bottom: calc(var(--tl-ctl) + 34px + var(--tl-row-2) + var(--ep) + var(--up) * var(--st)); z-index: 2; }
.dn-timeline .tl-dn.row-3 { --st: var(--tl-st-3, 0px); --ep: var(--tl-ep-3, 0px); width: calc(var(--tl-fig-3) * 2); height: var(--tl-fig-3); bottom: calc(var(--tl-ctl) + 34px + var(--tl-row-3) + var(--ep) + var(--up) * var(--st)); z-index: 1; }
.dn-timeline .tl-dn.st-up { --up: 1; }
.dn-timeline .tl-dn img, .dn-timeline .tl-dn svg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); transition: transform .25s var(--life-ease, ease), filter .25s; transform-origin: 50% 100%; }
/* each row's dim (Row spacing, Timeline v3: below today's rows it fades to the front row's; the script sets the variables) */
.dn-timeline .tl-dn.row-1 img, .dn-timeline .tl-dn.row-1 svg { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)) brightness(var(--tl-br-1, 1)) saturate(var(--tl-sa-1, 1)); }
.dn-timeline .tl-dn.row-2 img, .dn-timeline .tl-dn.row-2 svg { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)) brightness(var(--tl-br-2, 1)) saturate(var(--tl-sa-2, 1)); }
.dn-timeline .tl-dn.row-3 img, .dn-timeline .tl-dn.row-3 svg { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)) brightness(var(--tl-br-3, 1)) saturate(var(--tl-sa-3, 1)); }
.dn-timeline .tl-dn.is-sil svg { transform: scale(.74); fill: var(--fossil-stone); }
.dn-timeline .tl-dn.is-sil.g-theropoda svg { fill: var(--data-theropoda); }
.dn-timeline .tl-dn.is-sil.g-sauropodomorpha svg { fill: var(--data-sauropodomorpha); }
.dn-timeline .tl-dn.is-sil.g-ornithischia svg { fill: var(--data-ornithischia); }
.dn-timeline .tl-dn.is-sil.g-early-saurischia svg { fill: var(--data-early-saurischia); }
.dn-timeline .tl-dn.is-sil.g-mesozoic-birds svg { fill: var(--data-mesozoic-birds); }
.dn-timeline .tl-dn:is(:hover, :focus-visible, .is-open) img { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(var(--period-rgb), .9)) drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); }
.dn-timeline .tl-dn.is-sil:is(:hover, :focus-visible, .is-open) svg { transform: scale(.8); filter: drop-shadow(0 0 14px rgba(var(--period-rgb), .9)); }
.dn-timeline .tl-dn:hover, .dn-timeline .tl-dn:focus-visible { z-index: 6; }
.dn-timeline .tl-dn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-timeline .tl-dn-name { position: absolute; left: 50%; bottom: var(--tl-tag-b, -24px); transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; background: rgba(18, 20, 23, .85); font: italic 700 12px/16px var(--font-name); color: var(--text-on-dark); white-space: nowrap; border-bottom: 2px solid var(--period); pointer-events: none; }
.dn-timeline .tl-dn:not(.is-named) .tl-dn-name, .dn-timeline.no-names .tl-dn-name { display: none; }
/* Two rows of name tags: a raised figure's tag sits 22 px above the lower row, wherever its figure stands. */
.dn-timeline .tl-dn.st-up .tl-dn-name { bottom: calc(var(--tl-tag-b, -24px) + max(22px, var(--st)) - var(--st)); }   /* one step (at least 22 px) over the lower tags (core 0.17.3) */
.dn-timeline .tl-dn:is(:hover, :focus-visible) .tl-dn-name { display: block; z-index: 2; }
.dn-timeline .tl-pin { width: 34px; height: 44px; margin-left: -17px; bottom: calc(var(--tl-ctl) + 46px + var(--tl-row-3) + var(--tl-fig-3) + var(--tl-ep-3, 0px) + var(--tl-st-3, 0px)); z-index: 7; }
.dn-timeline .tl-pin svg { width: 34px; height: 44px; fill: var(--period); filter: drop-shadow(0 0 10px rgba(var(--period-rgb), .8)); }
.dn-timeline .tl-pin b { position: absolute; left: 0; right: 0; top: 9px; text-align: center; font: 700 11px/14px var(--font-heading); color: #121417; }
.dn-timeline .tl-pin:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); border-radius: 6px; }
.dn-timeline .tl-pin:hover svg { filter: drop-shadow(0 0 16px rgba(var(--period-rgb), 1)); }
.dn-timeline.is-zooming .tl-track { animation: tl-fade .3s ease; }
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }

.dn-timeline .tl-credit { position: absolute; right: 12px; top: 84px; z-index: 5; margin: 0; max-width: 60%; font-size: 11px; line-height: 15px; padding: 2px 8px; border-radius: 999px; background: rgba(18, 20, 23, .78); color: var(--bone-white); pointer-events: none; }
.dn-timeline .tl-credit:empty { display: none; }
.dn-timeline .tl-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; color: var(--text-muted-on-dark); }
.dn-timeline .tl-loading.is-error { color: var(--bone-white); background: var(--surface-dark-raised); padding: var(--space-4); border-radius: var(--radius-md); }

/* ---------- controls bar ---------- */
/* Controls (Ben, 2026-10-15, items 4 and 5): the slider the full width inside the side padding, the period colours
   under it, then one row: play, the readout, zoom, background, settings (three rows on phones). */
.dn-timeline .tl-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: var(--tl-ctl); box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 var(--dn-gutter-wide) 8px;
  background: linear-gradient(180deg, rgba(14, 16, 18, .25), rgba(14, 16, 18, .92) 30%); cursor: default; contain: layout style; }
.dn-timeline .tl-ctl-slider { position: relative; }
.dn-timeline .tl-scrub-periods { position: relative; height: 13px; margin-top: -10px; pointer-events: none; }
.dn-timeline .tl-sp { position: absolute; top: 0; height: 13px; box-sizing: border-box; border-right: 1px solid rgba(14, 16, 18, .8); overflow: hidden; font: 700 9px/13px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; }
.dn-timeline .tl-sp.dn-ics-period-triassic { background: rgba(129, 43, 146, .9); }
.dn-timeline .tl-sp.dn-ics-period-jurassic { background: rgba(52, 178, 201, .85); }
.dn-timeline .tl-sp.dn-ics-period-cretaceous { background: rgba(127, 198, 78, .85); }
.dn-timeline .tl-sp.dn-ics-period-triassic { color: var(--bone-white); }
.dn-timeline .tl-sp:is(.dn-ics-period-jurassic, .dn-ics-period-cretaceous) { color: var(--prehistoric-slate); text-shadow: none; }   /* core 0.20.7: Slate, as above */
.dn-timeline .tl-ctl-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dn-timeline .tl-ctl-row .tl-zoom { margin-left: auto; }
/* The page title and the group chips over the stage, under the bands (Timeline-Page boards, timeline3.css). */
.dn-timeline .tl-over { position: absolute; left: var(--dn-gutter-wide); top: 112px;   /* top set under the bands by timeline.js */
  z-index: 6; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: calc(100% - 420px); pointer-events: none; }
.dn-timeline .tl-over > * { pointer-events: auto; }
.dn-timeline .tl-h1.tl-h1, .dn-timeline .tl-over.tl-over h1 { margin: 0; font: 900 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: normal; color: var(--text-on-dark); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.dn-timeline .tl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dn-timeline .tl-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-control-dark); border-left: 4px solid var(--gc, var(--action));
  background: rgba(27, 29, 32, .88); color: var(--text-on-dark); font: 700 12px/1 var(--font-heading); cursor: pointer; }
.dn-timeline .tl-chip .dn-mark { width: 20px; height: 13px; }
.dn-timeline .tl-chip.is-on { background: rgba(245, 138, 31, .18); border-color: var(--action); box-shadow: var(--glow-rest, 0 0 12px rgba(245, 138, 31, .45)); }
.dn-timeline .tl-chip:focus-visible, .dn-timeline .tl-down:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-timeline .tl-ct { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--action); color: #121417; font: 700 11px/14px var(--font-heading); text-align: center; }
.dn-timeline .tl-ro-alive { grid-column: 1 / -1; font-size: 11px; line-height: 15px; color: var(--accent-on-dark); }
.dn-timeline .tl-ro-alive:empty { display: none; }
/* The way down to the Time Machine, at the end of the controls row. */
.dn-timeline .tl-down { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, .25); background: rgba(18, 20, 23, .9); color: var(--text-on-dark); text-decoration: none; }
.dn-timeline .tl-down svg { width: 18px; height: 18px; flex: none; color: var(--action); }
.dn-timeline .tl-down span { display: flex; flex-direction: column; font: 700 12px/15px var(--font-heading); letter-spacing: .04em; text-transform: uppercase; }
.dn-timeline .tl-down small { font: 400 12px/15px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-muted-on-dark); }
.dn-timeline .tl-down:hover { border-color: var(--action); }
.dn-timeline .tl-play { flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; filter: drop-shadow(0 0 16px rgba(245, 138, 31, .55)); }
.dn-timeline .tl-play svg { width: 56px; height: 56px; display: block; }
.dn-timeline .tl-bg { display: flex; align-items: center; gap: 8px; }
.dn-timeline .tl-bg-label { font: 700 10px/1 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dn-timeline .tl-gear { flex: none; }
.dn-timeline .tl-ctl-row .tl-zseg { flex-wrap: nowrap; white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1500px) {
  .dn-timeline .tl-bg-label, .dn-timeline .tl-down small { display: none; }
  .dn-timeline .tl-down span { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1365px) {
  .dn-timeline .tl-down { padding: 4px 10px; gap: 6px; }
  .dn-timeline .tl-down span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .dn-timeline .tl-ctl-row { gap: 10px; }
  /* in the row (more specific than the base rule below, which it lost to until 0.17.3, item F) */
  .dn-timeline .tl-ctl-row .tl-readout { width: 204px; }
  .dn-timeline.ages-years .tl-ctl-row .tl-readout { width: 236px; }
  .dn-timeline .tl-ctl-row :is(.tl-zseg, .tl-bg-seg) button { padding: 0 9px; }
  .dn-timeline .tl-bg-label { display: none; }
  .dn-timeline .tl-down small { display: none; }
}
/* Under 1024 px the row (about 953 px of controls, measured on the plugin's render) doesn't fit on one line: two lines
   (core 0.17.3, item F), Play and the readout on the first, with room after the readout for row 61's narration control
   (a later release); zoom, Background, the Time Machine link and Settings on the second, at the right. The controls grow
   to the phones' height so the stage's ground line, the figures and the name tags move up with them. */
@media (min-width: 761px) and (max-width: 1023.98px) {
  .dn-timeline { --tl-ctl: 186px; }
  .dn-timeline .tl-ctl-row { flex-wrap: wrap; row-gap: 8px; }
  .dn-timeline .tl-ctl-row::after { content: ""; order: 1; flex: 0 0 100%; }
  .dn-timeline .tl-ctl-row > :not(.tl-play, .tl-readout) { order: 2; }
}
.dn-timeline :is(.tl-play, .tl-gear, .tl-zb, .tl-zseg button, .tl-bg-seg button, .tl-card-x, .tl-card-pick, .tl-seg button):focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-timeline .tl-scrub { position: relative; height: 44px; cursor: pointer; touch-action: none; }
.dn-timeline .tl-scrub-track { position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; box-shadow: 0 0 12px rgba(255, 255, 255, .15);
  background: linear-gradient(90deg, var(--tl-neon-triassic) 0 27.17%, var(--tl-neon-jurassic) 27.17% 58.53%, var(--tl-neon-cretaceous) 58.53% 100%); }
.dn-timeline .tl-scrub-ticks { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.dn-timeline .tl-tick { position: absolute; top: 18px; width: 1px; height: 8px; background: rgba(255, 255, 255, .28); }
.dn-timeline .tl-tick.is-epoch { top: 16px; width: 2px; height: 12px; margin-left: -1px; background: rgba(255, 255, 255, .45); }
.dn-timeline .tl-scrub-win { position: absolute; left: 0; top: 12px; height: 20px; box-sizing: border-box; border: 1px solid rgba(245, 241, 230, .5); border-radius: 4px; pointer-events: none; will-change: transform; }
.dn-timeline .tl-handle { position: absolute; left: 0; top: 9px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--action), 0 0 18px rgba(245, 138, 31, .9); will-change: transform; cursor: grab; }
.dn-timeline .tl-handle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--action), 0 0 0 5px var(--prehistoric-slate), 0 0 0 7px var(--bone-white); }
.dn-timeline .tl-readout { flex: none; width: 232px; box-sizing: border-box; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, .25); background: rgba(18, 20, 23, .9); contain: layout paint; will-change: transform; }
.dn-timeline .tl-ro-num { font: 900 34px/34px var(--font-display); color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.dn-timeline.ages-years .tl-readout { width: 270px; }
.dn-timeline.ages-years .tl-ro-num { font-size: 26px; }
.dn-timeline .tl-ro-unit { font: 700 11px/13px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--text-on-dark); max-width: 84px; }
.dn-timeline .tl-ro-where { grid-column: 1 / -1; font-size: 11px; line-height: 15px; color: var(--text-muted-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-timeline .tl-zoom { display: flex; align-items: center; gap: 6px; }
.dn-timeline .tl-zb, .dn-timeline .tl-gear { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .3); background: rgba(18, 20, 23, .9); color: var(--text-on-dark); font: 700 18px/1 var(--font-heading); cursor: pointer; }
.dn-timeline .tl-zb:disabled { opacity: .4; cursor: default; }
.dn-timeline .tl-zseg, .dn-timeline .tl-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-sm); overflow: hidden; }
.dn-timeline .tl-zseg button, .dn-timeline .tl-seg button { min-height: 44px; padding: 0 12px; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); background: rgba(18, 20, 23, .9); color: var(--text-on-dark); font: 700 11px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.dn-timeline .tl-zseg button:first-child, .dn-timeline .tl-seg button:first-child { border-left: 0; }
.dn-timeline .tl-zseg button[aria-pressed="true"], .dn-timeline .tl-seg button[aria-pressed="true"] { background: var(--action); color: #121417; box-shadow: 0 0 18px -4px rgba(245, 138, 31, .8); }
.dn-timeline .tl-zseg button:hover:not([aria-pressed="true"]), .dn-timeline .tl-seg button:hover:not([aria-pressed="true"]), .dn-timeline .tl-zb:hover:not(:disabled), .dn-timeline .tl-gear:hover { color: var(--action); }
.dn-timeline .tl-gear svg { width: 24px; height: 24px; }
.dn-timeline .tl-gear.is-on { border-color: var(--action); box-shadow: 0 0 0 1px rgba(245, 138, 31, .45), 0 6px 20px -8px rgba(245, 138, 31, .65); }

/* ---------- settings ---------- */
.dn-timeline .tl-settings { position: absolute; right: 24px; bottom: calc(var(--tl-ctl) + 12px); z-index: 8; width: 330px; max-width: calc(100% - 32px); box-sizing: border-box; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background: rgba(29, 31, 34, .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); cursor: default; }
.dn-timeline .tl-settings.tl-settings h3 { margin: 0 0 8px; font: 700 15px/20px var(--font-heading); text-transform: uppercase; letter-spacing: .06em; color: var(--text-on-dark); }
.dn-timeline .tl-settings fieldset { margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--line-dark); min-width: 0; }
.dn-timeline .tl-settings legend { padding: 0 0 6px; font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dn-timeline .tl-seg button { min-height: 38px; padding: 0 10px; }
.dn-timeline .tl-settings p { margin: 8px 0 0; font-size: 12px; color: var(--text-muted-on-dark); }

/* ---------- cards ---------- */
.dn-timeline .tl-cards { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.dn-timeline .tl-card { position: absolute; top: 0; left: 0; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; pointer-events: auto; border-radius: var(--radius-md); border: 1px solid var(--line-dark); border-top: 3px solid var(--period); background: rgba(29, 31, 34, .97); color: var(--text-on-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, .65), 0 0 30px -10px rgba(var(--period-rgb), .7); overflow: hidden; }
.dn-timeline .tl-card:focus { outline: none; }
.dn-timeline .tl-card:focus-visible, .dn-timeline .tl-card:focus-within { box-shadow: 0 18px 40px rgba(0, 0, 0, .65), 0 0 0 2px var(--period), 0 0 30px -10px rgba(var(--period-rgb), .9); }
.dn-timeline .tl-card-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px; background: rgba(255, 255, 255, .04); cursor: grab; touch-action: none; }
.dn-timeline .tl-grip { width: 18px; height: 10px; flex: none; background: radial-gradient(circle, #ffffff70 1.2px, transparent 1.6px) 0 0 / 6px 5px; }
.dn-timeline .tl-card-hint { flex: 1; font-size: 11px; color: var(--text-muted-on-dark); }
.dn-timeline .tl-card-x { width: 28px; height: 28px; flex: none; padding: 0; border-radius: 50%; border: 1px solid #ffffff33; background: transparent; color: var(--text-on-dark); font-size: 16px; line-height: 1; cursor: pointer; }
.dn-timeline .tl-card-pic { position: relative; height: 118px; display: flex; align-items: flex-end; justify-content: center; padding: 6px 12px 0; background: radial-gradient(ellipse at 50% 90%, rgba(var(--period-rgb), .2) 0%, #1d1f22 60%); border-bottom: 2px solid rgba(var(--period-rgb), .7); }
.dn-timeline .tl-card-pic img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.dn-timeline .tl-card-sil { width: 70%; height: 80%; fill: var(--fossil-stone); }
.dn-timeline .tl-card-sil.g-theropoda { fill: var(--data-theropoda); }
.dn-timeline .tl-card-sil.g-sauropodomorpha { fill: var(--data-sauropodomorpha); }
.dn-timeline .tl-card-sil.g-ornithischia { fill: var(--data-ornithischia); }
.dn-timeline .tl-card-sil.g-early-saurischia { fill: var(--data-early-saurischia); }
.dn-timeline .tl-card-sil.g-mesozoic-birds { fill: var(--data-mesozoic-birds); }
.dn-timeline .tl-card-tag { position: absolute; left: 8px; top: 8px; font-size: 11px; line-height: 15px; padding: 1px 6px; border-radius: 4px; background: rgba(18, 20, 23, .85); color: var(--bone-white); }
.dn-timeline .tl-card-body { padding: 10px 14px 14px; }
.dn-timeline .tl-card-name { margin: 0; font: 700 20px/24px var(--font-name); overflow-wrap: break-word; }
.dn-timeline .tl-card-name:not(:has(i)) { font: 700 15px/20px var(--font-heading); }
.dn-timeline .tl-card-il { display: flex; gap: 6px; margin: 4px 0 6px; font-size: 11px; line-height: 15px; color: var(--text-muted-on-dark); }
.dn-timeline .tl-card-il svg { flex: none; width: 11px; height: 11px; margin-top: 2px; fill: var(--action); }
.dn-timeline .tl-card dl { margin: 6px 0 10px; }
.dn-timeline .tl-card dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-dark); }
.dn-timeline .tl-card dt { font: 700 10px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dn-timeline .tl-card dd { margin: 0; font-size: 12px; line-height: 17px; }
.dn-timeline .tl-card dd small { display: block; font-size: 11px; color: var(--text-muted-on-dark); }
.dn-timeline .tl-card dd a { color: var(--text-muted-on-dark); }
.dn-timeline .tl-badge { display: inline-block; font: 700 9px/14px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; vertical-align: 1px; }
.dn-timeline .tl-card .dn-mark { width: 16px; height: 10px; margin-right: 2px; vertical-align: -1px; }
.dn-timeline .tl-card-go { width: 100%; justify-content: center; box-sizing: border-box; }
.dn-timeline .tl-card-go svg { width: 16px; height: 16px; }
.dn-timeline .tl-card.is-drag { box-shadow: 0 30px 60px rgba(0, 0, 0, .75), 0 0 0 2px var(--action), 0 0 40px -6px rgba(var(--period-rgb), .8); }
.dn-timeline .tl-card.is-drag .tl-card-bar { cursor: grabbing; background: rgba(245, 138, 31, .16); }
.dn-timeline .tl-card-note { margin: 4px 0 8px; font-size: 12px; color: var(--text-muted-on-dark); }
.dn-timeline .tl-card-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.dn-timeline .tl-card-pick { width: 100%; text-align: left; padding: 7px 8px; margin: 0 0 4px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--surface-dark); color: var(--bone-white); font: inherit; font-size: 13px; cursor: pointer; }
.dn-timeline .tl-card-pick span { color: var(--text-muted-on-dark); font-size: 11px; }
.dn-timeline .tl-card-pick:hover { border-color: var(--action); }

/* ---------- below the stage (printed by the PHP) ---------- */
.dn-tl-after { padding-block: 48px 64px; color: var(--text-on-dark); }
.dn-tl-after-in { box-sizing: border-box; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; padding-inline: var(--dn-gutter-wide, 28px); }
/* Jump to a period in one column (approval row 47 item 5): full-width 52 px buttons, the name left, the dates right */
.dn-tl-after .tl-jumps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dn-tl-after .tl-jumps li { margin: 0; }
.dn-tl-after .tl-jumps .tl-chip { display: flex; width: 100%; box-sizing: border-box; justify-content: flex-start; min-height: 52px; }
.dn-tl-after .tl-jumps .tl-chip small { margin-left: auto; }
.dn-tl-after .tl-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(var(--period-rgb), .55); background: rgba(var(--period-rgb), .10); color: var(--text-on-dark); font: 700 13px/1 var(--font-heading); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.dn-tl-after .tl-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--period); box-shadow: 0 0 8px rgba(var(--period-rgb), .9); }
.dn-tl-after .tl-chip small { margin-left: 6px; font: 400 11px/1 var(--font-body); color: var(--text-muted-on-dark); text-transform: none; letter-spacing: 0; }
.dn-tl-after .tl-chip:hover { border-color: var(--period); box-shadow: 0 0 0 1px var(--period), 0 0 20px -2px rgba(var(--period-rgb), .7); }
.dn-tl-after .tl-chip:focus-visible { outline: none; box-shadow: var(--focus-ring-dark), 0 0 20px -2px rgba(var(--period-rgb), .7); }
/* How to read it (row 47 item 6): the shared .dn-howto boxes (dn-worktable.css), the credit line under the row */
.dn-tl-after .tl-credits { max-width: 1040px; margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--text-muted-on-dark); }
.dn-tl-after .tl-credits a { color: var(--text-muted-on-dark); }

/* ---------- above the tool on the Timeline page (head="over"; core 0.20.6, approval row 69 Tl-Fit A, the hand-off's
   sections 5 and 6): one compact block, the page's h1 in its banner heading, Jump to a period as a row of the period
   pills, What ended it? as the secondary button, How to read it's four boxes in one row, the credit line ---------- */
.dn-tl-top.dn-tl-after { padding-block: 0; background: #121417; border-bottom: 1px solid rgba(245, 241, 230, .1); }
.dn-tl-top-in { box-sizing: border-box; max-width: 1920px; margin: 0 auto; padding: 14px var(--dn-gutter-wide, 28px) 16px; }
.dn-tl-top .tl-top-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.dn-tl-top .tl-top-r1 > .dn-bh { margin: 0; padding-top: 6px; }
.dn-tl-top .tl-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dn-tl-top .tl-lab { margin: 0; font: 700 12px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #C9B79A; }
.dn-tl-top .tl-jumps { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.dn-tl-top .tl-jumps .tl-chip { width: auto; min-height: 44px; padding: 0 16px; }
.dn-tl-top .tl-jumps .tl-chip small { margin-left: 8px; }
/* What ended it?: the site's secondary button, clearly not a period pill (the narration's end brings it forward) */
.dn-tl-top .tl-xt-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; box-sizing: border-box; padding: 0 16px 0 10px; border-radius: 10px; border: 2px solid #F58A1F; background: #121417;
  color: #F5F1E6; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(245, 138, 31, .25); }
.dn-tl-top .tl-xt-btn:hover { background: #1E1C19; }
.dn-tl-top .tl-xt-btn:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 2px; }
.dn-tl-top .tl-xt-btn img { width: 34px; height: 34px; flex: none; }
.dn-tl-top .tl-xt-btn span { display: grid; }
.dn-tl-top .tl-xt-btn small { font: 700 11px/14px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #F58A1F; }
.dn-tl-top .tl-xt-btn b { font: 700 15px/20px var(--font-heading); color: #F5F1E6; }
.dn-tl-top .tl-xt-btn i { font: normal 700 20px/1 var(--font-heading); color: #F58A1F; }
.dn-tl-top .tl-xt-btn.nar-come { border-radius: 10px; }
.dn-tl-top .tl-top-r2 { margin-top: 12px; }
.dn-tl-top .tl-how { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.dn-tl-top .tl-how > summary { list-style: none; padding-top: 6px; }
.dn-tl-top .tl-how > summary::-webkit-details-marker { display: none; }
.dn-tl-top .tl-how .tl-lab { white-space: nowrap; }
.dn-tl-top .dn-howto { margin: 0; gap: 10px; }
.dn-tl-top .dn-howto-box { padding: 10px 12px; }
.dn-tl-top .dn-howto-box p { margin-top: 4px; font-size: 13px; line-height: 19px; }
.dn-tl-top .dn-howto-h h3 { font-size: 14px; line-height: 18px; }
.dn-tl-top .dn-howto-ic { width: 30px; height: 30px; }
.dn-tl-top .tl-credits { max-width: none; margin: 8px 0 0; font-size: 12px; line-height: 17px; color: #C9B79A; }
.dn-tl-top .tl-credits a { color: #F5F1E6; }
@media (min-width: 761px) { .dn-tl-top .tl-how > summary { pointer-events: none; } .dn-tl-top .tl-jumps { flex-wrap: nowrap; } }   /* the three pills one row from 761 px */
@media (max-width: 1100px) { .dn-tl-top .tl-how { grid-template-columns: minmax(0, 1fr); } .dn-tl-top .dn-howto.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: the title; the pills as three equal columns (names only); the button full width; How to read it closed under
   its label with a "+" (timeline.js closes it); the credit line */
@media (max-width: 760px) {
  .dn-tl-top-in { padding: 10px 12px 12px; }
  .dn-tl-top .tl-top-r1 { gap: 10px; }
  .dn-tl-top .tl-jump { width: 100%; }
  .dn-tl-top .tl-jumps { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dn-tl-top .tl-jumps .tl-chip { width: 100%; justify-content: center; padding: 0 6px; font-size: 12px; }
  .dn-tl-top .tl-jumps .tl-chip small { display: none; }
  .dn-tl-top .tl-xt-btn { width: 100%; }
  .dn-tl-top .tl-xt-btn i { margin-left: auto; }
  .dn-tl-top .tl-how { gap: 8px; }
  .dn-tl-top .tl-how > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding-top: 0; }
  .dn-tl-top .tl-how > summary .tl-lab::after { content: " +"; color: #F58A1F; }
  .dn-tl-top .tl-how[open] > summary .tl-lab::after { content: ""; }
  .dn-tl-top .dn-howto.is-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- no JavaScript ---------- */
.dn-timeline .tl-nojs { max-width: calc(var(--site-width, 1700px) - 64px); margin: 0 auto; padding: var(--space-6) var(--space-5); }
.dn-timeline .tl-nojs-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.dn-timeline .tl-nojs-sw { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 3px; }
.dn-timeline .tl-nojs-list { columns: 2; padding-left: 18px; }
.dn-timeline .tl-nojs a { color: var(--accent-on-dark, var(--sunset-orange)); }
.dn-tl-link { padding-block: var(--space-5); }

/* ---------- phones (Timeline-Mobile, Timeline-Sheet-Mobile) ---------- */
@media (max-width: 760px) {
  .dn-timeline { --tl-ctl: 186px; }
  .dn-timeline .tl-stage { height: clamp(640px, calc(100vh - var(--tl-head, 0px)), 900px); height: clamp(640px, calc(100svh - var(--tl-head, 0px)), 900px); }   /* core 0.20.6: one window tall, 640 to 900 px */
  .dn-timeline .is-period .tl-band-name { font-size: 13px; line-height: 16px; }
  .dn-timeline .tl-band-dates { font-size: 10px; line-height: 12px; }
  .dn-timeline .tl-band-row.is-period { height: 46px; }
  .dn-timeline .tl-band-label { padding: 0 2px; }
  .dn-timeline .tl-now { top: 66px; }
  .dn-timeline .tl-credit { right: 8px; max-width: calc(100% - 16px); font-size: 10px; }
  .dn-timeline .tl-ctrl { padding: 0 var(--dn-gutter-wide) 8px; gap: 4px; }
  .dn-timeline .tl-ctl-row { flex-wrap: wrap; gap: 6px 8px; }
  /* row 2: play, the readout, background; row 3: zoom and settings */
  .dn-timeline .tl-ctl-row .tl-zoom { order: 5; flex: 1 0 calc(100% - 60px); margin-left: 0; justify-content: space-between; }
  .dn-timeline .tl-ctl-row .tl-gear { order: 6; }
  /* the way down to the Time Machine: a row of its own */
  .dn-timeline.has-tm { --tl-ctl: 248px; }
  .dn-timeline .tl-ctl-row .tl-down { order: 8; flex: 1 1 100%; min-height: 44px; }
  .dn-timeline .tl-down span { flex: 1; }
  .dn-timeline .tl-over { left: 12px; right: 12px; max-width: none; gap: 8px; }
  .dn-timeline .tl-over.tl-over h1 { font-size: 26px; }
  .dn-timeline .tl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .dn-timeline .tl-chip { min-height: 36px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
  .dn-timeline .tl-ctl-row .tl-readout { flex: 1 1 0; grid-template-columns: auto minmax(0, 1fr); }
  .dn-timeline .tl-ro-unit { font-size: 9px; line-height: 11px; max-width: 64px; }
  .dn-timeline .tl-bg-label { display: none; }
  .dn-timeline .tl-bg-seg button { padding: 0 7px; }
  .dn-timeline .tl-play { width: 48px; height: 48px; } .dn-timeline .tl-play svg { width: 48px; height: 48px; }
  .dn-timeline .tl-readout, .dn-timeline.ages-years .tl-readout { width: auto; min-width: 0; padding: 6px 10px; }
  .dn-timeline .tl-ro-num { font-size: 28px; line-height: 28px; }
  .dn-timeline.ages-years .tl-ro-num { font-size: 18px; }
  .dn-timeline .tl-ctl-row .tl-zseg button { padding: 0 6px; font-size: 10px; letter-spacing: .03em; }
  .dn-timeline .tl-zb { width: 34px; height: 44px; }
  .dn-timeline .tl-zoom { gap: 2px; }
  .dn-timeline .tl-settings { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(var(--tl-ctl) + 8px); }
  .dn-timeline { --tl-tag-b: -20px; }
  .dn-timeline .tl-dn-name { font-size: 10px; }
  .dn-timeline .tl-sheets .tl-card.is-sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 78vh; overflow: auto; border-radius: 16px 16px 0 0; z-index: 1000; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dn-timeline .tl-card.is-sheet .tl-card-bar { justify-content: center; position: relative; }
  .dn-timeline .tl-card.is-sheet .tl-card-hint { display: none; }
  .dn-timeline .tl-card.is-sheet .tl-grip { width: 44px; height: 5px; border-radius: 3px; background: #ffffff60; }
  .dn-timeline .tl-card.is-sheet .tl-card-x { position: absolute; right: 6px; top: 1px; }
  .dn-timeline .tl-card.is-sheet .tl-card-pic { height: 96px; }
  .dn-tl-after-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dn-timeline .tl-nojs-list { columns: 1; }
}

/* ---------- Still / reduced motion ---------- */
.dn-timeline.is-reduced .tl-dn img, .dn-timeline.is-reduced .tl-dn svg, .dn-timeline.is-reduced .tl-card, .dn-timeline.is-reduced .tl-pano::after { transition: none; }
.dn-timeline.is-reduced .tl-dn:is(:hover, :focus-visible, .is-open) img { transform: none; }
.dn-timeline.is-reduced.is-zooming .tl-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .dn-timeline .tl-dn img, .dn-timeline .tl-card { transition: none; }
  .dn-timeline.is-zooming .tl-track { animation: none; }
}

/* ---------- Row spacing (Timeline v3, board 43, hand-off 1 and 6) ---------- */
/* The rail on the stage's left edge: left 10 px, 64 px wide, Prehistoric Slate at 78% with a 1 px line, radius 32; the
   ends in Montserrat 700 10 px, a 4 px Fossil Stone track, the orange fill from the bottom to the thumb, a 24 px orange
   thumb, a Bone White tick at today's rows (its label on hover and focus); above the edge counts. Phones: in Settings. */
.dn-timeline .tl-rows { --v: 50%; --tick: 50%; position: absolute; left: 10px; z-index: 8; width: 64px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; border-radius: 32px; background: rgba(18, 20, 23, .78); border: 1px solid var(--line-dark); cursor: pointer; touch-action: none; }
.dn-timeline .tl-rows:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-timeline .tl-rows-end { font: 700 10px/12px var(--font-heading); letter-spacing: .04em; text-transform: uppercase; text-align: center; color: var(--bone-white); width: 54px; pointer-events: none; }
.dn-timeline .tl-rows-track { position: relative; flex: 1; width: 4px; border-radius: 2px; background: var(--fossil-stone); }
.dn-timeline .tl-rows-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); border-radius: 2px; background: var(--action); }
.dn-timeline .tl-rows-thumb { position: absolute; left: 50%; bottom: var(--v); width: 24px; height: 24px; margin: 0 0 -12px -12px; border-radius: 50%; background: var(--action); border: 3px solid var(--bone-white); box-sizing: border-box; box-shadow: 0 0 10px rgba(245, 138, 31, .6); }
.dn-timeline .tl-rows-tick { position: absolute; left: 50%; bottom: var(--tick); width: 16px; height: 2px; margin-left: -8px; background: var(--bone-white); }
.dn-timeline .tl-rows-tick-l { position: absolute; left: 22px; top: -8px; padding: 1px 6px; border-radius: 4px; background: rgba(18, 20, 23, .92); font: 700 10px/16px var(--font-heading); color: var(--bone-white); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.dn-timeline .tl-rows:is(:hover, :focus-visible) .tl-rows-tick-l { opacity: 1; }
.dn-timeline .tl-settings .tl-rows-set { display: none; }
.dn-timeline .tl-rows-range { display: flex; align-items: center; gap: 10px; font: 700 10px/12px var(--font-heading); letter-spacing: .04em; text-transform: uppercase; color: var(--bone-white); }
.dn-timeline .tl-rows-range input { flex: 1; min-height: 44px; accent-color: var(--action); }
@media (max-width: 760px) {
  .dn-timeline .tl-rows { display: none; }
  .dn-timeline .tl-settings .tl-rows-set { display: block; }
}

/* ---------- the Time Machine below, on the Timeline page ([dn_era_slider linked="timeline"]; timeline3.css) ---------- */
/* The bridge as the Tip Rex feature (board 43, hand-off 10; Ben 2026-10-16: "Tip Rex says"): Tip Rex at 112 px with an
   orange glow, a 6 px orange rule, the eyebrow, the heading, the line with the age, the words, three computed chips and
   the button. */
.dn-tm-bridge { padding: 32px 0 12px; border-top: 1px solid var(--line-dark); background: var(--surface-dark); }
.dn-rex-feature-in { display: flex; align-items: flex-start; gap: 28px; padding: 24px 28px; border-radius: var(--radius-lg, 16px); background: var(--surface-dark-raised, #202123); border: 1px solid var(--line-dark); border-left: 6px solid var(--action); }
.dn-rex-feature-in > .dn-rex { flex: none; width: 112px; height: 112px; border-radius: 50%; filter: drop-shadow(0 0 18px rgba(245, 138, 31, .55)); }
.dn-rex-feature-body { flex: 1; min-width: 0; }
.dn-rex-feature .dn-rex-feature-h { margin: 2px 0 6px; font: 900 34px/38px var(--font-display); color: var(--bone-white); text-transform: none; }
.dn-rex-feature .dn-rex-feature-lead { margin: 0 0 8px; font: 700 18px/26px var(--font-heading); color: var(--bone-white); }
.dn-rex-feature .dn-rex-feature-lead b { color: var(--accent-on-dark); }
.dn-rex-feature .dn-rex-feature-text { margin: 0 0 14px; max-width: 760px; font-size: 15px; line-height: 23px; color: var(--text-on-dark); }
.dn-rex-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dn-rex-chips li { display: inline-flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 4px 12px; box-sizing: border-box; border-radius: 999px; background: rgba(245, 138, 31, .1); border: 1px solid rgba(245, 138, 31, .45); font-size: 14px; color: var(--text-on-dark); }
.dn-rex-chips b { font: 700 15px/20px var(--font-heading); color: var(--accent-on-dark); }
.dn-tm-bridge .dn-btn svg { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
.dn-tm-linked { padding: 36px 0 0; background: var(--surface-dark); color: var(--text-on-dark); scroll-margin-top: var(--tl-head, 0px); }
/* While the Timeline moves and the Time Machine is wholly out of view, it rests (timeline.js restTM): not rendered, its
   size kept, so the browser doesn't re-layerize its moving parts on every Timeline frame. */
.dn-tm-linked.is-resting .dn-tm2-page { content-visibility: hidden; contain-intrinsic-size: auto 1400px; }
.dn-tm-linked .dn-section-title.dn-section-title { margin-top: 2px; }
.dn-tm-linked .dn-bh { margin-bottom: 14px; }
.dn-tm-linked .dn-tm-lead { margin: 8px 0 18px; max-width: 760px; color: var(--text-muted-on-dark); }
.dn-tm-linked .dn-era-slider { min-height: 640px; }   /* holds its place until it loads (n-tl3 8) */
/* Full width (Ben, 2026-10-16 11:49; core 0.16.2): the heading, the chart, the stage strip, the Alive at list and the
   Earlier and Later window span the page like the Timeline block above, inside its gutter. The list keeps its 340 px
   (era-slider.css .tm2-body) and the chart takes the rest. Only here: the standalone [dn_era_slider] keeps the site
   width. Phones keep their stack (chart, list, sticky window) at the 16 px gutter. */
.dn-tm-linked > .dn-wrap, .dn-tm-linked .dn-tm2-wrap { max-width: var(--site-width, 1700px); padding-inline: var(--dn-gutter-wide); }   /* core 0.20.8: was the full window; capped at the site width (Ben, 2026-11-15) */
.dn-era-slider .tm2-linked { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 8px 12px; border-radius: 999px; border: 1px dashed rgba(245, 138, 31, .6); font-size: 13px; color: var(--text-muted-on-dark); }
.dn-era-slider .tm2-linked svg { width: 18px; height: 18px; color: var(--action); flex: none; }
.dn-era-slider .tm2-linked b { color: var(--text-on-dark); margin-right: 4px; }
@media (max-width: 760px) {
  .dn-rex-feature-in { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; padding: 18px 16px; }
  .dn-rex-feature-in > .dn-rex { width: 64px; height: 64px; grid-row: 1 / span 2; align-self: center; }
  .dn-rex-feature-body { display: contents; }
  .dn-rex-feature .dn-rex-eyebrow, .dn-rex-feature .dn-rex-feature-h { grid-column: 2; align-self: end; }
  .dn-rex-feature .dn-rex-feature-h { align-self: start; }
  .dn-rex-feature .dn-rex-feature-h { font-size: 28px; line-height: 32px; margin: 0; }
  .dn-rex-feature :is(.dn-rex-feature-lead, .dn-rex-feature-text, .dn-rex-chips, .dn-btn) { grid-column: 1 / -1; }
  .dn-rex-feature .dn-btn { justify-content: center; }
  .dn-era-slider .tm2-linked { border-radius: var(--radius-md); }
}
/* Under 961 px Jump to a period goes above How to read it (row 47 item 5); the buttons stay one column. */
@media (max-width: 960px) { .dn-tl-after-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .dn-tl-after .tl-jumps { max-width: 560px; } }
/* core 0.19.0: the narration spotlight's box over the figure rows ([data-spot="tl-figures"]), never seen or clicked */
.dn-timeline .tl-figbox { position: absolute; left: 3%; right: 3%; top: 34%; bottom: calc(var(--tl-ctl, 120px) + 30px); pointer-events: none; z-index: 0; }

/* core 0.20.8: running text keeps a measure of about 72 characters in the 1,700 px wrapper (Ben, 2026-11-15) */
.dn-tl-top .tl-credits, .dn-timeline .tl-credits { max-width: 72ch; }

/* core 0.23.0: /timeline/ with layout="fit" (approval row 72, Tl-Fit2 A; briefs/handoff-fit-timeline-design-2026-11-15.md
   sections 1 to 3), from 1,280 px on screens only: the header band, then one compact row (the pills with their dates
   under the name, How to read it as the shared slim row, the asteroid), the credit line under it, and the Timeline one
   window tall less the admin bar only (the site header isn't sticky). Phones and print as today. */
@media screen and (min-width: 1280px) {
  .dn-page-timeline.is-fit > .dn-page-head > .dn-wrap, .dn-page-timeline.is-fit .dn-tl-top-in { box-sizing: border-box; max-width: calc(var(--site-width, 1700px) + 48px); padding-inline: 24px; margin-inline: auto; }
  .dn-page-timeline.is-fit .dn-tl-top-in { padding-block: 14px 12px; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r1 { flex-wrap: nowrap; align-items: center; gap: 20px; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-jump { flex: none; display: grid; gap: 4px; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-jumps { flex-wrap: nowrap; gap: 6px; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-jumps .tl-chip { display: grid; grid-template-columns: auto auto; grid-template-rows: 18px 14px; align-content: center; column-gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
    font: 700 13px/18px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-jumps .tl-chip i { grid-row: 1 / 3; align-self: center; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-jumps .tl-chip small { grid-column: 2; margin: 0; font: 400 11px/14px var(--font-body); color: #C9B79A; letter-spacing: 0; text-transform: none; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r1 > .dn-hiw { flex: 1 1 auto; min-width: 0; margin: 0; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-xt-btn { flex: none; margin-left: auto; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r2 { margin: 0; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r2 > .tl-how { display: block; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r2 > .tl-how > summary { display: none; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r2 .dn-howto.is-hiw { margin: 12px 0 0; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-credits { max-width: none; margin: 8px 0 0; }   /* one line, as drawn (not 0.20.8's 72ch) */
  /* the Timeline: one window tall, less the WordPress toolbar when it is fixed (--dn-admin, timeline.js measureHead()) */
  .dn-page-timeline.is-fit .dn-timeline { --tl-head: var(--dn-admin, 0px) !important; }
  .dn-page-timeline.is-fit .dn-timeline .tl-stage { scroll-margin-top: var(--dn-admin, 0px); height: clamp(640px, calc(100vh - var(--dn-admin, 0px)), 1048px); height: clamp(640px, calc(100svh - var(--dn-admin, 0px)), 1048px); }
}
/* under 1,600 px (1,366 and 1,440 wide windows) the row wraps, How to read it on its own line */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r1 { flex-wrap: wrap; row-gap: 10px; }
  .dn-page-timeline.is-fit .dn-tl-top .tl-top-r1 > .dn-hiw { order: 3; flex: 1 1 100%; }
}
