/* Dinos.info - Time Machine v2 ([dn_era_slider]; era-slider.js). Rules ported from the approved boards'
   stylesheet (design/phase-1/source/pages.css, the tm2-* block, TimeMachine2 and TM2-* boards), scoped to the module.
   The look of .dn-band / .dn-ics-*, .dn-btn, .dn-filter-row, .dn-combo, .dn-dropdown, .dn-listbox and the species card
   comes from the design system (bundle.css) and dn-site.css. Additions not on the boards are marked "Added". */

/* The page (its title is the site's page header band, dn_page_head(), since 2026-10-14) and the wrap (board sp-wrap) */
.dn-tm2-page { background: var(--surface-dark); color: var(--text-on-dark); font-family: var(--font-body); font-size: 16px; line-height: 26px; }
.dn-tm2-wrap { box-sizing: border-box; width: 100%; max-width: var(--site-width, 1700px); margin: 0 auto; padding-inline: var(--space-6); }
.dn-tm2-main { padding-block: var(--space-7) var(--space-8); }

.tm2, .tm2 * { box-sizing: border-box; }
.tm2 [hidden] { display: none !important; }
.tm2 { display: flex; flex-direction: column; gap: 14px; color: var(--text-on-dark); font-family: var(--font-body); font-size: 16px; line-height: 26px; }
.tm2 button { font-family: inherit; }
.tm2-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.tm2-read { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm2-ma { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 50px; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.tm2-ma small { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted-on-dark); margin-left: 6px; }
.tm2-where { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; min-height: 22px; }
.tm2-where a { padding: 0; text-decoration: none; }
.tm2-where a > span { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.tm2-where a:hover > span { text-decoration: underline; }
.tm2-where a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); border-radius: 4px; }
.tm2-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tm2-seg { display: inline-flex; border: 1px solid var(--border-control-dark, #8a8273); border-radius: var(--radius-sm); overflow: hidden; }
.tm2-seg > span, .tm2-seg > button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .04em; color: var(--text-on-dark); background: transparent; border: 0; border-left: 1px solid var(--border-control-dark, #8a8273); border-radius: 0; cursor: pointer; }
.tm2-seg > :first-child { border-left: 0; }
.tm2-seg .is-on { background: var(--action); color: var(--on-action); }
.tm2-seg .is-off { color: #9b9384; cursor: not-allowed; background: #ffffff08; }
.tm2-seg > :focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--bone-white); }
.tm2-ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border-control-dark, #8a8273); border-radius: var(--radius-sm); background: transparent; color: var(--text-on-dark); font-size: 22px; line-height: 1; cursor: pointer; }
.tm2-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tm2-ib:disabled { opacity: .45; cursor: default; }
.tm2-ib:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.tm2-scale { display: flex; flex-direction: column; gap: 3px; }
.tm2-scale small { font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.tm2-share { position: relative; }
.tm2-share .dn-btn { min-height: 40px; height: 40px; padding: 0 16px; gap: 8px; }
.tm2-share .dn-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tm2-sharepop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 420px; max-width: calc(100vw - 32px); padding: 14px 16px; background: #202123; border: 1px solid #ffffff38; border-radius: var(--radius-md); box-shadow: 0 14px 30px #00000099; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 19px; }
.tm2-sharepop[hidden] { display: none; }
.tm2-sharepop b { font-family: var(--font-heading); font-size: 14px; }
.tm2-sharepop .row { display: flex; gap: 8px; }
.tm2-sharepop input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; font: 13px/1 ui-monospace, Menlo, Consolas, monospace; color: #121417; background: var(--bone-white); border: 1px solid #8a8273; border-radius: var(--radius-sm); }
.tm2-sharepop .dn-btn { height: 40px; min-height: 40px; padding: 0 14px; }
.tm2-sharepop p { margin: 0; color: var(--text-muted-on-dark); }
.tm2-sharepop .tm2-copied:empty { display: none; }

/* Group chips (board pg-chip) */
.tm2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm2 .pg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--text-on-dark); text-decoration: none; background: var(--surface-dark-raised); border: 1px solid var(--border-control-dark); border-radius: var(--radius-full); cursor: pointer; }
.tm2 .pg-chip:hover { border-color: var(--action); color: var(--accent-on-dark); }
.tm2 .pg-chip small { color: var(--text-muted-on-dark); font-size: 12px; }
.tm2 .pg-chip.is-on { background: var(--action); border-color: var(--action); color: var(--on-action); }
.tm2 .pg-chip.is-on small { color: var(--on-action); }
.tm2 .pg-chip:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }

/* Filter bar (SpeciesFilters omit="tm": Species, Continent, Country, Diet) */
.tm2 .dn-filter-row.pg-fb3 { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; }
.tm2 .pg-fb-toggle { display: none; }
.tm2 .dn-listbox[hidden] { display: none; }
.tm2 .dn-listbox ul { max-height: 320px; overflow-y: auto; }
.tm2 .dn-options:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.tm2 .dn-dropdown.is-disabled { border-style: dashed; color: var(--text-muted-on-dark); cursor: default; }

/* Canvas and side */
.tm2-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.tm2-canvas { position: relative; min-width: 0; display: flex; flex-direction: column; background: #17181a; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.tm2-count { contain: layout style; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0; padding: 12px 16px 8px; font-size: 14px; line-height: 20px; color: var(--text-on-dark); border-bottom: 1px solid #ffffff12; }
/* Nobody alive at the moment (Added, Ben 2026-10-16 18:10, item 3): the next to appear, wrapped, and the jump button. */
.tm2-count.has-next { white-space: normal; border-bottom: 0; }
.tm2-next-go { margin: 0 16px 10px; align-self: flex-start; }
.tm2-next-go[hidden] { display: none; }
.tm2-lanes { position: relative; overflow: hidden; user-select: none; cursor: col-resize; contain: strict; }
.tm2-vls { position: absolute; inset: 0; pointer-events: none; }
.tm2-vl { position: absolute; top: 0; bottom: 0; width: 1px; background: #ffffff10; }
.tm2-dens { position: absolute; left: 0; top: 34px; width: 100%; height: calc(100% - 34px); pointer-events: none; }
.tm2-dens path { fill: #C9B79A1a; stroke: #C9B79A40; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.tm2-dens-l { position: absolute; left: 12px; top: 8px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); pointer-events: none; }
.tm2-dens-l.r { left: auto; right: 16px; }
.tm2-lscroll { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff40 transparent; }
.tm2-ltrack { position: relative; }
.tm2-lane { position: absolute; left: 0; right: 0; }
.tm2-rbar { position: absolute; bottom: 4px; height: 4px; border-radius: 2px; background: #C9B79A66; }
.tm2-rbar.fz { background: repeating-linear-gradient(90deg, #C9B79A99 0 6px, #C9B79A00 6px 10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.tm2-lane.sel .tm2-rbar { background: var(--action); -webkit-mask-image: none; mask-image: none; }
.tm2-riders { position: absolute; left: 0; top: 0; width: 0; height: 100%; will-change: transform; }
.tm2-rider { position: absolute; left: 0; top: 0; width: 0; }
.tm2-cut { position: absolute; bottom: 6px; left: 0; transform: translateX(-50%); display: block; padding: 0; border: 1.5px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.tm2-cut .cu { display: block; width: 100%; height: 100%; }
.tm2-cut img, .tm2-cut svg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.tm2-cut svg path { fill: var(--fossil-stone); }
.tm2-cut:hover { background: #ffffff10; }
.tm2-cut:focus-visible { outline: 2px solid transparent; border-color: var(--bone-white); box-shadow: var(--focus-ring-dark); background: #ffffff10; }
.tm2-rider.sel .tm2-cut { border-color: var(--action); }
.tm2-rider.sel .tm2-cut svg path { fill: #F58A1F38; stroke: var(--action); stroke-width: 2px; }
.tm2-nm { position: absolute; bottom: 11px; left: var(--off, 30px); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; line-height: 16px; color: var(--text-on-dark); text-shadow: 0 1px 6px #121417; pointer-events: none; }
.tm2-nm.l { left: auto; right: var(--off, 30px); }
.tm2-nm i { font-style: italic; }
.tm2-nm svg { flex: none; }
.tm2-flag { font-family: var(--font-heading); font-weight: 700; font-size: 10px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: #121417; background: var(--fossil-stone); padding: 1px 5px; border-radius: 3px; font-style: normal; text-shadow: none; }
.tm2-rider.sel .tm2-nm i { font-weight: 700; color: var(--action); }
.tm2-scrubline { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--action); box-shadow: 0 0 0 1px #12141799; z-index: 2; pointer-events: none; will-change: transform; }
.tm2-scrubtag { position: absolute; top: 6px; left: 0; z-index: 3; font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 16px; color: var(--on-action); background: var(--action); padding: 2px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; will-change: transform; }
.tm2-more { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, #17181a00, #17181a 80%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); z-index: 2; pointer-events: none; }
.tm2-more[hidden] { display: none; }
.tm2-skelwrap { position: absolute; inset: 0; }
.tm2-skelwrap[hidden] { display: none; }
.tm2-skel { position: absolute; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #26272a, #34363a, #26272a); }
.tm2-skel-c { position: absolute; left: 70%; width: 56px; height: 30px; margin-left: -28px; border-radius: 6px; background: #26272a; }
.tm2-loadmsg { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: #202123; border: 1px solid #ffffff2e; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; white-space: nowrap; }
.tm2-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #ffffff33; border-top-color: var(--action); animation: tm2-spin 1s linear infinite; }
@keyframes tm2-spin { to { transform: rotate(360deg); } }
.tm2-pinch { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13px; line-height: 18px; background: #202123f2; border: 1px solid #ffffff38; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.tm2-pinch[hidden] { display: none; }
.tm2-pinch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Added: the crowd standing on the axis (the species page's Timeline-Top10 crowd; Ben, 2026-10-13). Muted until hover;
   lit when alive at the scrubber's time. */
.tm2-crowd { position: relative; contain: layout style; height: 64px; border-top: 1px solid #ffffff12; background: linear-gradient(180deg, #17181a, #121417); cursor: col-resize; user-select: none; }
.tm2-cr { --h: 50px; position: absolute; left: 0; bottom: 0; height: var(--h); width: calc(var(--h) * 1.65); opacity: .5; filter: grayscale(1); cursor: pointer; transition: opacity .15s, filter .15s; }
.tm2-cr.has-art { width: calc(var(--h) * 2); }
.tm2-cr.bk { --h: 34px; bottom: 5px; opacity: .3; filter: grayscale(1) brightness(.85); }
.tm2-cr-fig { display: block; width: 100%; height: 100%; }
.tm2-cr-fig img, .tm2-cr-fig svg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.tm2-cr-fig svg path { fill: var(--fossil-stone); }
.tm2-cr.is-alive { opacity: 1; filter: none; }
.tm2-cr.is-alive .tm2-cr-fig svg path { fill: var(--bone-white); }
.tm2-cr.is-sel { filter: drop-shadow(0 0 1px #f58a1f) drop-shadow(0 0 1px #f58a1f) drop-shadow(0 0 7px #f58a1fb3); opacity: 1; }
.tm2-cr:hover { opacity: 1; filter: none; z-index: 400 !important; }
.tm2-cr-tag { display: none; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--bone-white); background: var(--prehistoric-slate); border: 1px solid var(--fossil-stone); border-radius: 4px; padding: 2px 8px; pointer-events: none; }
.tm2-cr:hover .tm2-cr-tag { display: block; }
.tm2-crowd .tm2-scrubline { z-index: 300; }
.tm2.is-dragging .tm2-cr { transition: none; }   /* the lit state follows the scrubber at once while dragging */

.tm2-axis { position: relative; contain: layout style; border-top: 1px solid #ffffff1f; background: #121417; padding: 6px 0 0; cursor: col-resize; user-select: none; }
.tm2-arow { position: relative; height: 20px; margin-bottom: 2px; overflow: hidden; }
.tm2-arow .dn-band { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 6px; overflow: hidden; white-space: nowrap; font-family: var(--font-heading); font-weight: 700; font-size: 11px; line-height: 14px; box-sizing: border-box; border-right: 1px solid #12141759; }
.tm2-ticks { position: relative; height: 22px; }
.tm2-ticks span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.tm2-ticks span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: #C9B79A80; }
.tm2-handle { position: absolute; bottom: 30px; left: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--action); border: 3px solid #121417; box-shadow: 0 0 0 1px var(--action); z-index: 4; cursor: grab; touch-action: none; will-change: transform; }
.tm2-handle:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px #121417, 0 0 0 4px var(--bone-white); }

.tm2-side { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.tm2-side-h { padding: 14px 16px 10px; border-bottom: 1px solid #ffffff14; }
.tm2-side-h[hidden] { display: none; }
.tm2-side-h.tm2-side-h h2 { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 24px; color: var(--text-on-dark); }
.tm2-side-h p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); }
.tm2-listbox { flex: 1 1 auto; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff40 transparent; }
.tm2-listbox[hidden] { display: none; }
.tm2-list { position: relative; list-style: none; margin: 0; padding: 4px 0; }
.tm2-list li { position: absolute; left: 0; right: 0; height: 52px; margin: 0; }
.tm2-list li a { display: grid; grid-template-columns: 28px 24px minmax(0, 1fr); align-items: center; gap: 8px; height: 100%; padding: 7px 16px; color: var(--text-on-dark); text-decoration: none; font-size: 14px; line-height: 19px; }
.tm2-list li a:hover { background: #ffffff0d; }
.tm2-list li a:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--focus-ring-dark); }
.tm2-list li.sel a { background: #F58A1F1f; box-shadow: inset 3px 0 0 var(--action); }
.tm2-list .rk { font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--text-muted-on-dark); text-align: right; }
.tm2-list .dn-mark { justify-self: center; }
.tm2-list .nm { min-width: 0; }
.tm2-list .nm i { display: block; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm2-list .nm small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm2-list li.tm2-list-empty { position: static; height: auto; padding: 14px 16px; font-size: 14px; line-height: 20px; color: var(--text-muted-on-dark); }
.tm2-list-more { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(180deg, #20212300, #202123 50%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); pointer-events: none; }
.tm2-list-more[hidden] { display: none; }
.tm2-listskel { padding: 10px 16px; display: flex; flex-direction: column; gap: 16px; }
.tm2-listskel[hidden] { display: none; }
.tm2 .pg-skel { display: block; height: 14px; border-radius: 3px; margin: 0; background: linear-gradient(90deg, #1b1c1e 0%, #26272a 50%, #1b1c1e 100%); }
.tm2-panel { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 18px; }
.tm2-panel[hidden] { display: none; }
.tm2-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tm2-panel-top.tm2-panel-top h2 { margin: 0; }
.tm2-panel-top button:not(.tm2-ib) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-control-dark, #8a8273); border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 700; font-size: 13px; cursor: pointer; }
.tm2-panel-top button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tm2-panel-top button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.tm2-panel .dn-link-more { align-self: flex-start; }
.tm2-card .dn-species-card { margin: 0; }

/* Scrub bar: Earlier, overview strip, Later */
.tm2-scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.tm2 .tm-steps { display: inline-flex; gap: 8px; }
.tm2 .tm-steps button { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 14px; font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-on-dark); background: var(--surface-dark); border: 1px solid var(--border-control-dark); border-radius: var(--radius-sm); cursor: pointer; }
.tm2 .tm-steps svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.tm2 .tm-steps button:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.tm2-scrub-mid { min-width: 0; }
.tm2-scrub-read { display: none; }
.tm2-ov { position: relative; height: 34px; cursor: pointer; }
.tm2-ov-row { position: absolute; left: 0; right: 0; top: 9px; height: 16px; display: flex; border-radius: 3px; overflow: hidden; }
.tm2-ov-row span { display: block; height: 100%; font-family: var(--font-heading); font-weight: 700; font-size: 10px; line-height: 16px; padding-left: 5px; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.tm2-ov-win { position: absolute; top: 3px; height: 28px; border: 2px solid var(--bone-white); border-radius: 4px; box-shadow: 0 0 0 1px #121417; box-sizing: border-box; background: #ffffff1a; cursor: grab; }
.tm2-ov-h { position: absolute; top: 0; left: 0; width: 4px; height: 34px; margin-left: -2px; background: var(--action); border-radius: 2px; box-shadow: 0 0 0 1px #121417; pointer-events: none; }
.tm2-ov-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 14px; color: var(--text-muted-on-dark); margin-top: 2px; }

.tm2-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: 13px; line-height: 20px; color: var(--text-muted-on-dark); }
.tm2-legend b { color: var(--text-on-dark); font-weight: 400; }
.tm2-legend a { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.tm2-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.tm2-legend .k i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; background: #C9B79A66; }
.tm2-legend .k i.fz { background: repeating-linear-gradient(90deg, #C9B79A99 0 5px, #C9B79A00 5px 8px); }

/* End of the Cretaceous (TM2-KPg) */
.tm2 .tm-kpg { position: relative; overflow: hidden; margin-top: var(--space-5); min-height: 340px; display: flex; align-items: flex-end; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--prehistoric-slate); }
.tm2 .tm-kpg[hidden] { display: none; }
.tm2 .tm-kpg > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; display: block; max-width: none; }
.tm2 .tm-kpg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #121417f7 0%, #121417ee 46%, #12141780 60%, #12141700 78%), linear-gradient(0deg, #12141799 0%, #12141700 40%); }
.tm2 .tm-kpg-text { position: relative; z-index: 2; max-width: 600px; padding: var(--space-6); display: flex; flex-direction: column; gap: 8px; }
.tm2 .tm-kpg-text.tm-kpg-text h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 44px; text-transform: uppercase; color: var(--text-on-dark); }
.tm2 .tm-kpg-text p { margin: 0; font-size: 15px; line-height: 24px; }
.tm2 .tm-kpg-text .tm-kpg-src { font-size: 12px; line-height: 18px; color: var(--text-muted-on-dark); }
.tm2 .tm-kpg-text .tm-kpg-src a { color: var(--text-on-dark); }
.tm2 .tm-kpg .pg-credit { position: absolute; z-index: 3; right: var(--space-6); top: 10px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); background: #121417cc; padding: 2px 8px; border-radius: var(--radius-sm); }

.tm2-dim, .tm2-sheet { display: none; }
.tm2-error { margin-bottom: var(--space-4); }

/* Reduced motion (TM2-Reduced): no sliding between frames; zoom changes in one step (era-slider.js) */
@media (prefers-reduced-motion: reduce) {
  .tm2-rider, .tm2-cr, .tm2-spin { transition: none !important; animation: none !important; }
}

/* No JavaScript (TM2-NoJS: the v1 TM-NoJS list) */
.tm-nojs-box { padding: var(--space-5); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.tm-nojs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tm-nojs.tm-nojs h3 { margin: 0 0 8px; }
.tm-nojs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.tm-nojs li a { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-on-dark); }
.tm-nojs li a .sw { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.tm-nojs li.ep { margin-top: 6px; font-weight: 700; }
.tm-nojs li.stg { padding-left: 18px; }
.tm-nojs-list { margin-top: var(--space-6); }
.tm-nojs-list .dn-species-grid { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }

/* Phones (TM2-Mobile, TM2-Mobile-Page, TM2-Mobile-Panel) */
@media (max-width: 760px) {
  .dn-tm2-wrap { padding-inline: var(--space-4); }
  .dn-tm2-title .dn-lead, .dn-tm2-title .dn-eyebrow { display: none; }
  .dn-tm2-main { padding-top: var(--space-4); }
  .tm2-bar { gap: 10px; }
  .tm2-ma { font-size: 36px; line-height: 36px; }
  .tm2-ctrls { width: 100%; gap: 8px; }
  .tm2-seg { flex: 1; }
  .tm2-seg > span, .tm2-seg > button { flex: 1; justify-content: center; padding: 0 6px; font-size: 12px; min-height: 44px; }
  .tm2-zseg { order: 0; flex: 1 1 100%; min-width: 0; }
  .tm2-ib { width: 44px; height: 44px; }
  .tm2-scale { flex: 1 1 0; min-width: 0; }
  .tm2-scale .tm2-seg { width: 100%; }
  .tm2-share .dn-btn { height: 44px; }
  .tm2-sharepop { width: 340px; right: -8px; }
  .tm2-body { grid-template-columns: 1fr; order: 2; }
  .tm2-nm { font-size: 12px; }
  .tm2-count { font-size: 13px; line-height: 18px; padding: 10px 12px 6px; }
  .tm2-dens-l { display: none; }
  .tm2-crowd { height: 46px; }
  .tm2-cr { --h: 34px; }
  .tm2-cr.bk { --h: 24px; }
  .tm2-scrub { order: 3; grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px; gap: 8px; position: sticky; bottom: 0; z-index: 20; box-shadow: 0 -8px 24px #00000099; }
  .tm2-scrub .tm-steps button { min-width: 44px; min-height: 44px; height: 44px; padding: 0 8px; justify-content: center; }
  .tm2-scrub .tm-steps .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tm2-scrub-read { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 18px; margin-bottom: 2px; }
  .tm2-ov-lbl span:nth-child(2) { display: none; }
  .tm2-chips { order: 4; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: calc(var(--space-4) * -1); }
  .tm2-chips .pg-chip { flex: none; }
  .tm2-filters { order: 5; }
  .tm2-legend { order: 6; }
  .tm2 .tm-kpg { order: 7; min-height: 0; flex-direction: column; align-items: stretch; }
  .tm2 .tm-kpg > img { position: relative; height: 180px; }
  .tm2 .tm-kpg::before { background: linear-gradient(180deg, #12141700 0, #12141700 120px, #121417 180px); }
  .tm2 .tm-kpg-text { padding: var(--space-4) var(--space-4) var(--space-5); }
  .tm2 .tm-kpg-text.tm-kpg-text h2 { font-size: 32px; line-height: 34px; }
  .tm2 .tm-kpg .pg-credit { right: var(--space-4); }
  .tm2 .dn-filter-row.pg-fb3 { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .tm2 .dn-filter-row.pg-fb3 .dn-filter:not(.is-search), .tm2 .dn-filter-row.pg-fb3 .dn-filter-clear { display: none; }
  .tm2 .dn-filter-row.pg-fb3.is-open .dn-filter, .tm2 .dn-filter-row.pg-fb3.is-open .dn-filter-clear { display: flex; grid-column: 1 / -1; }
  .tm2 .pg-fb-toggle { display: inline-flex; height: 48px; padding: 0 14px; }
  .tm2 .dn-filter-row .dn-filter.is-search { grid-column: auto; }
  .tm2-side .tm2-listbox { max-height: 420px; }
  .tm2-dim { display: block; position: fixed; inset: 0; z-index: 99990; background: #121417a6; }
  .tm2-sheet { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99991; max-height: 85vh; overflow-y: auto; flex-direction: column; gap: 12px; background: #202123; border-top: 1px solid #ffffff38; border-radius: 16px 16px 0 0; box-shadow: 0 -16px 36px #000000b3; padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .tm2-dim[hidden], .tm2-sheet[hidden] { display: none; }
  .tm2-sheet .grab { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #ffffff59; }
  .tm2-sheet .dn-btn { justify-content: center; }
  .tm-nojs { grid-template-columns: minmax(0, 1fr); }
}

/* Room for the module before its script draws it (the feeds load first), so the footer doesn't jump down under the
   reader: launch checks 2026-10-14, Lighthouse CLS 0.43 at 1600 px and 0.71 at 400 px. A little under the drawn height,
   so no gap is left; without JavaScript the no-script list sets the height. */
@media (scripting: enabled) {
  .dn-era-slider { min-height: 1200px; }
}
@media (scripting: enabled) and (max-width: 760px) {
  .dn-era-slider { min-height: 1900px; }
}

/* core 0.23.0: [dn_era_slider linked="timeline" layout="fit"] (approval row 72, Tl-Fit2 A; briefs/handoff-fit-timeline-
   design-2026-11-15.md sections 4 and 5). The slim row at the top of #time-machine (every width; stacked under 1,280 px
   as the Rex tip was), and from 1,280 px on screens the Time Machine inside the 1,700 px wrapper: one top bar, one
   filter row, the body from the window (--tm-body, era-slider.js fitBody), the scrubber, the legend as one line. */
/* core 0.27.0 (approval row 76, hand-off E; Critique 9): 56 px of room, the full banner (margin 0), 6 px, then the slim row,
   the "tip row". The section's scroll target is that row: its scroll-margin takes back the banner block's height
   (--tm-head: 172 px from 1,280 px as the hand-off measures it; era-slider.js fitBody sets the measured height), so links,
   Open the Time Machine and "Linked to the Time Machine" land on the tip row with the whole tool in the window. */
.dn-tm-linked.is-fit { --tm-head: 0px; padding-top: 56px; scroll-margin-top: calc(var(--dn-admin, 0px) - var(--tm-head)); }
.dn-tm-fit-h { padding-bottom: 6px; }
.dn-tm-fit-h .dn-bh { margin: 0; }
.dn-tm-slim { position: relative; }
.dn-tm-slim-in { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 8px; }
.dn-tm-slim-rex { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; width: 100%; box-sizing: border-box; padding: 12px; border-radius: 14px; background: #202123; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .12); }
.dn-tm-slim-rex .dn-rex { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.dn-tm-slim-t { flex: 1 1 200px; min-width: 0; }
.dn-tm-slim-t .dn-rex-feature-h { margin: 2px 0; font: 700 20px/26px var(--font-heading); color: #F5F1E6; text-transform: none; }
.dn-tm-slim-t .dn-rex-feature-lead { margin: 0; font: 400 15px/22px var(--font-body); color: #F5F1E6; }
.dn-tm-slim-t .dn-rex-feature-lead b { font-weight: 700; color: #F5F1E6; }
.dn-tm-slim-rex .dn-rex-chips { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dn-tm-slim-rex .dn-rex-chips li { margin: 0; min-height: 0; padding: 4px 10px; border-radius: 999px; background: #121417; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .16); font: 400 13px/18px var(--font-body); color: #C9B79A; white-space: nowrap; }
.dn-tm-slim-rex .dn-rex-chips b { font: 700 13px/18px var(--font-body); color: #F5F1E6; }
.dn-tm-more { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #2A2B2D; color: #F5F1E6; cursor: pointer;
  font: 700 13px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; }
.dn-tm-more:hover { background: #333436; }
.dn-tm-more:focus-visible { outline: 2px solid #F58A1F; outline-offset: 2px; }
.dn-tm-more svg { width: 16px; height: 16px; transition: transform .2s; }
.dn-tm-more[aria-expanded="true"] { box-shadow: inset 0 0 0 2px #F58A1F; }
.dn-tm-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.dn-tm-slim .dn-tm-open svg { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
.dn-tm-more-p { margin: 0 0 8px; padding: 14px 16px; border-radius: 12px; background: #121417; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .18); border-top: 3px solid #F58A1F; }
.dn-tm-more-p[hidden] { display: none; }
.dn-tm-more-p p { margin: 0; max-width: 72ch; font: 400 15px/24px var(--font-body); color: #F5F1E6; }
.dn-tm-more-p p + p { margin-top: 8px; }
@media screen and (min-width: 1280px) {
  .dn-tm-linked.is-fit > .dn-wrap, .dn-tm-linked.is-fit .dn-tm2-main.dn-tm2-wrap { box-sizing: border-box; max-width: calc(var(--site-width, 1700px) + 48px); padding-inline: 24px; margin-inline: auto; }
  .dn-tm-linked.is-fit { --tm-head: 172px; }
  /* section 4: the slim row, 77 px (73 since core 0.27.0: its compact heading gone, the full banner above it) */
  .dn-tm-slim-in { flex-direction: row; align-items: center; gap: 20px; min-height: 64px; padding: 8px 0; box-sizing: border-box; border-bottom: 1px solid rgba(245, 241, 230, .1); }
  .dn-tm-slim-rex { flex: 1 1 auto; width: auto; min-width: 0; flex-wrap: nowrap; gap: 12px; padding: 4px 6px 4px 4px; }
  .dn-tm-slim-t { flex: 0 1 auto; }
  .dn-tm-slim-t .dn-rex-eyebrow { display: none; }   /* the tip's eyebrow: the h2 says it (Critique 4); shown on phones */
  .dn-tm-slim-t .dn-rex-feature-h { margin: 0; font: 700 12px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #F58A1F; }
  .dn-tm-slim-t .dn-rex-feature-lead { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dn-tm-slim-rex .dn-rex-chips { flex: none; flex-wrap: nowrap; margin-left: auto; }
  .dn-tm-slim .dn-tm-open { flex: none; min-height: 44px; height: 44px; box-sizing: border-box; padding: 0 16px; font-size: 13px; }
  .dn-tm-more-p { position: absolute; z-index: 45; top: calc(100% - 4px); right: 0; width: 640px; max-width: 100%; box-sizing: border-box; margin: 0; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .18), 0 18px 36px -12px rgba(0, 0, 0, .9); }
  .dn-tm-more-p p { font-size: 14px; line-height: 21px; }
  /* section 5: the Time Machine inside the wrapper */
  .dn-tm-linked.is-fit .dn-tm2-main.dn-tm2-wrap { padding-block: 10px 12px; }
  .tm2.is-fit { gap: 10px; }
  .tm2.is-fit .tm2-bar { flex-wrap: nowrap; align-items: center; gap: 24px; min-height: 64px; }
  .tm2.is-fit .tm2-bar-l { flex: none; display: grid; gap: 2px; }
  .tm2.is-fit .tm2-bar-l .tm2-read { gap: 2px; }
  .tm2.is-fit .tm2-bar-l .tm2-ma { font-size: 40px; line-height: 38px; white-space: nowrap; }
  .tm2.is-fit .tm2-bar-l .tm2-ma small { font-size: 13px; line-height: 18px; }
  .tm2.is-fit .tm2-bar-l .tm2-where { flex-wrap: nowrap; }
  .tm2.is-fit .tm2-bar-m { flex: none; flex-wrap: nowrap; gap: 8px; margin-inline: auto; }
  .tm2.is-fit .tm2-bar-m .tm2-zseg { margin-right: 6px; }
  .tm2.is-fit .tm2-bar-r { flex: none; display: flex; align-items: center; gap: 12px; }
  .tm2.is-fit .tm2-bar-r .tm2-scale { gap: 2px; }
  .tm2.is-fit .tm2-bar-r .tm2-scale small { font-size: 12px; line-height: 16px; color: #C9B79A; }
  .tm2.is-fit .tm2-bar-r .nar-go-row { margin: 0; }
  .tm2.is-fit .tm2-bar-r .nar-start.nar-go { min-height: 44px; padding: 0 16px 0 6px; gap: 8px; }
  .tm2.is-fit .tm2-bar-r .nar-go .g-ic { width: 32px; height: 32px; }
  .tm2.is-fit .tm2-bar-r .nar-go b { font-size: 14px; line-height: 17px; white-space: nowrap; }
  .tm2.is-fit .tm2-bar-r .nar-go small { font-size: 11px; line-height: 14px; white-space: nowrap; }
  .tm2.is-fit .tm2-bar-r .tm2-linked { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 10px; box-sizing: border-box; border-radius: 10px; border: 1px dashed rgba(245, 138, 31, .55); }
  .tm2.is-fit .tm2-bar-r .tm2-linked > span { display: grid; font-size: 12px; line-height: 16px; color: #C9B79A; white-space: nowrap; }
  .tm2.is-fit .tm2-bar-r .tm2-linked b { font: 700 13px/16px var(--font-heading); color: #F5F1E6; }
  /* item 7: one filter row, the labels kept for screen readers */
  .tm2.is-fit .tm2-filt { display: flex; align-items: center; gap: 12px; min-height: 52px; }
  .tm2.is-fit .tm2-filt .tm2-chips { flex: none; flex-wrap: nowrap; gap: 6px; }
  .tm2.is-fit .tm2-filt .pg-chip { min-height: 40px; box-sizing: border-box; padding: 0 12px; white-space: nowrap; }
  .tm2.is-fit .tm2-filt .tm2-filters { flex: 1 1 auto; min-width: 0; margin: 0; }
  .tm2.is-fit .tm2-filt .dn-filter-bar.dn-filter-row { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
  .tm2.is-fit .tm2-filt .dn-filter { flex: 1 1 0; min-width: 0; gap: 0; }
  .tm2.is-fit .tm2-filt .dn-filter.is-search { flex: 1.4 1 0; }
  .tm2.is-fit .tm2-filt .dn-filter-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tm2.is-fit .tm2-filt .dn-combo, .tm2.is-fit .tm2-filt .dn-dropdown { min-height: 40px; height: 40px; box-sizing: border-box; }
  .tm2.is-fit .tm2-filt .dn-combo input { height: 38px; min-height: 38px; font-size: 14px; }
  .tm2.is-fit .tm2-filt .dn-dropdown .val { font-size: 14px; }
  .tm2.is-fit .tm2-filt .dn-filter-clear { flex: none; min-height: 40px; white-space: nowrap; }
  /* item 8: the body from the window; the side list scrolls inside */
  .tm2.is-fit .tm2-body { grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; height: var(--tm-body, auto); }
  .tm2.is-fit .tm2-canvas, .tm2.is-fit .tm2-side { min-height: 0; }
  .tm2.is-fit .tm2-count { padding: 8px 16px 6px; }
  .tm2.is-fit .tm2-side .tm2-listbox { min-height: 0; }
  /* item 9: the scrubber; item 10: the legend as one line, About this chart opening the rest */
  .tm2.is-fit .tm2-scrub { padding: 6px 12px; }
  .tm2.is-fit .tm2-scrub .tm-steps button { min-height: 40px; }
  .tm2.is-fit .tm2-legend { flex-wrap: nowrap; gap: 6px 16px; white-space: nowrap; }
  .tm2.is-fit .tm2-legend.is-open { flex-wrap: wrap; white-space: normal; }
  .tm2.is-fit .tm2-legend-rest { display: contents; }
  .tm2.is-fit .tm2-legend-rest[hidden] { display: none !important; }
  .tm2.is-fit .tm2-legend-rest > span { flex: 1 1 100%; }
  .tm2-about { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; box-sizing: border-box; border: 1px solid rgba(245, 241, 230, .28); border-radius: 999px; background: transparent; color: #F5F1E6; cursor: pointer;
    font: 700 12px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; }
  .tm2-about:hover { border-color: #F58A1F; }
  .tm2-about:focus-visible { outline: 2px solid #F58A1F; outline-offset: 2px; }
  .tm2-about svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .tm2-about[aria-expanded="true"] svg { transform: rotate(180deg); }
}
/* under 1,600 px the rows wrap rather than squeeze (the page may scroll a little; the hand-off's 1366 x 625) */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
  .dn-tm-slim-in { flex-wrap: wrap; row-gap: 8px; }
  .dn-tm-slim-rex { order: 3; flex: 1 1 100%; }
  .tm2.is-fit .tm2-bar { flex-wrap: wrap; row-gap: 10px; }
  .tm2.is-fit .tm2-bar-m { margin-inline: 0; }
  .tm2.is-fit .tm2-bar-r { flex: 1 1 100%; flex-wrap: wrap; }
  .tm2.is-fit .tm2-filt { flex-wrap: wrap; row-gap: 8px; }
  .tm2.is-fit .tm2-filt .tm2-filters { flex: 1 1 100%; }
  .tm2.is-fit .tm2-body { grid-template-columns: minmax(0, 1fr) 360px; }
}
