/* Dinos.info - site blocks (backlog B18): the empty-section collapse rule, and the structure of
   the header, footer, archive and term shortcodes. Structure only (layout, show / hide, spacing from
   the design tokens); colours and type come from the design system's dn- classes. The final look
   follows the stage 2A-2C boards once Ben approves them. */

/* Empty sections collapse: a shortcode with nothing to show prints <span class="dn-collapse" hidden>,
   and the Avada container holding it (rendered as .fusion-fullwidth) is hidden, padding and all. */
.dn-collapse { display: none !important; }
.fusion-fullwidth:not(.dn-lc-railed):has(.dn-collapse) { display: none !important; }

/* Species page: the sections beside the ad rail share one container, so there an empty section hides its
   own Text element instead (scripts/build_layouts.py), and the container hides only when all of it is empty. */
.dn-lc-railed .fusion-text:has(.dn-collapse) { display: none !important; }
.fusion-fullwidth.dn-lc-railed:not(:has(.fusion-text:not(:has(.dn-collapse)))) { display: none !important; }
/* The reading row and its rail ad (layout v2) are laid out in the species page CSS (assets/species/species-page.css). */

/* Header (SiteHeader and Nav boards). The bar runs the full browser width (its Avada container is 100% width) and
   its contents sit on the site width, like .dn-wrap (Ben's staging review 2026-10-13, item 1). Tightened (Ben's review
   2026-10-13 evening, item 3): a 64 px bar, and nothing under it before the page's first band. Avada gives every column
   a 20 px bottom margin (Global Options, column margin) and the Layout's three header containers (bar, mobile menu,
   search) each kept theirs, so 40 px of slate sat under the nav on desktop; the header containers, and the full-width
   bands that follow them, have no margin or padding of their own. */
.dn-header-bar { background: var(--surface-dark); border-bottom: 1px solid var(--line-dark); }
.dn-header-inner { box-sizing: border-box; width: 100%; margin: 0 auto; padding-inline: var(--space-5); display: flex; align-items: center; gap: var(--space-6); min-height: 64px; }
/* The header bar spans the browser (Ben, 2026-10-24 10:50: "Can our nav and header be the width of the browser and not
   our container"; core 0.17.2, reversing the 2026-10-13 review's site-width cap): the logo at the left edge, search at
   the right, 32 px side padding from 1280 px. The header bar only: the page content, the signup band and the footer keep
   the site width; the drawer and search panel are unchanged. */
@media (min-width: 1280px) { .dn-header-inner { padding-inline: 32px; } }
.fusion-fullwidth:is(.dn-lc-header-bar, .dn-lc-header-mobile, .dn-lc-header-search), .fusion-fullwidth:is(.dn-lc-header-bar, .dn-lc-header-mobile, .dn-lc-header-search) :is(.fusion-builder-row, .fusion-layout-column, .fusion-column-wrapper, .fusion-text),
.fusion-fullwidth:is([class*="dn-lc-home-"], [class*="dn-lc-page-"], .dn-lc-404, .dn-lc-footer-signup) :is(.fusion-layout-column, .fusion-column-wrapper, .fusion-text) {
  margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; --awb-margin-top: 0px; --awb-margin-bottom: 0px; --awb-padding-top: 0px; --awb-padding-bottom: 0px; }
.fusion-fullwidth.dn-lc-header-search:not(:has(.dn-search:not([hidden]))) { height: 0; overflow: visible; }
/* The search overlay and the menu drawer sit above everything: the hero, sticky rails, maps, ads and Avada's own
   layers (its sticky header, sliding bar, to-top button and privacy bar). dn-site.js also moves them to the end of
   <body>, out of any stacking context the header's containers make. */
html.dn-search-is-open { overflow: hidden; }
.dn-header-logo { display: block; flex: none; }
.dn-header-logo img, .dn-header-logo .custom-logo { display: block; height: 52px; width: auto; }
.dn-header-logo a:focus-visible, a.dn-header-logo:focus-visible, .dn-footer-logo a:focus-visible, a.dn-footer-logo:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); border-radius: var(--radius-sm); }
.dn-header-name { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; line-height: 32px; color: var(--text-on-dark); text-decoration: none; }
.dn-header-nav { flex: 1; min-width: 0; }
.dn-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.dn-nav a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-on-dark); text-decoration: none; }
.dn-header-nav .dn-nav > li > a { padding: 20px 0 17px; border-bottom: 3px solid transparent; }
.dn-nav a:hover { color: var(--accent-on-dark); }
.dn-nav .current-menu-item > a, .dn-nav .dn-current-section > a { color: var(--accent-on-dark); }
.dn-header-nav .dn-nav > .current-menu-item > a, .dn-header-nav .dn-nav > .dn-current-section > a { border-bottom-color: var(--action); }
.dn-nav-ic { width: 24px; height: 24px; object-fit: contain; flex: none; display: block; }
.dn-header-nav .dn-nav-sec-coming-soon { padding-left: 14px; border-left: 1px solid var(--line-dark); }
.dn-nav .sub-menu { display: none; }
/* Eight items with the Kids item (SiteHeader board, 2026-10-13): 14 px apart; below 1080 px the menu button in the bar
   replaces the menu (the drawer). Icons (Ben, 2026-10-15 22:29): with the six items left since the Time Machine item
   went (core 0.15.5), labels and icons fit one row with Start here from 1090 px (measured 2026-10-16: 19 px to spare at
   1090, 6 px over at 1080), so they showed from 1120 px; with Extinction and the full-width bar, see below (0.17.2). */
/* What the full-width row holds (core 0.17.2, measured with staging's labels, "Kids Corner", and the Extinction icon;
   tests/smoke/start-here.mjs reports the room left): the compass goes first, then the menu icons. With icons and the
   compass the row needs about 1,290 px, so the compass shows from 1320 px (31 px to spare); the icons alone fit from
   1243 px, so they show from 1280 px (21 px to spare there, row 59's breakpoint); the labels alone fit down to 1080 px
   (47 px to spare), where the drawer takes over as before. Row 58's wider gaps (13 px between items, the icon 8 px from
   its label) need 32 px more, which there is from 1440 px (139 px to spare); row 59's 10 and 6 px below that. */
@media (max-width: 1319.98px) { .dn-header-inner > .dn-start-btn .dn-start-ic { display: none; } }   /* the bar only: the drawer keeps the compass */
@media (max-width: 1279.98px) { .dn-header-nav .dn-nav-ic { display: none; } }
/* The header with the new pages (Claude Design's Nav boards, overnight 2026-10-14, item 6; nav.css and navmenu.css; hand-off
   n-nav): Dinosaurs, Evolution, Timeline, Time Machine, Discovery Map, Size Comparison and Kids in the bar, 12 px labels on
   one row (13 px apart from 1440 px, 11 px below), the icons from 1120 px (the rule above; 1280 px before 2026-10-16), all seven with Start here and
   search at 1100 px; Coming soon and About leave the bar for the drawer (after a divider) and the footer. "Start here" is an
   outlined pill first in the menu row, before the menu items (since 0.17.1; before search until then; dn-start-btn,
   printed by [dn_header]), hidden under 600 px where the drawer opens with
   it, full width (is-wide). Its signpost icon in the bar (approval row 50 item 2, icon B, 0.16.4) goes below 1120 px
   with the menu icons. */
.dn-header-inner { gap: 20px; }
.dn-nav .dn-nav-caret { width: 14px; height: 14px; margin-left: -3px; opacity: .8; }
.dn-header-nav .dn-nav { gap: 0 10px; flex-wrap: nowrap; }
.dn-header-nav .dn-nav > li > a { gap: 6px; }   /* approval row 59 (NAV2_CSS): 10 px between items, the icon 6 px from its label */
@media (min-width: 1440px) { .dn-header-nav .dn-nav { column-gap: 13px; } .dn-header-nav .dn-nav > li > a { gap: 8px; } }   /* row 58's gaps, where the full-width bar has room (0.17.2) */
.dn-header-nav .dn-nav > li > a { font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.dn-header-nav .dn-nav > .dn-nav-sec { display: none; }
.dn-start-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(245, 138, 31, .75); border-radius: 999px;
  background: rgba(245, 138, 31, .08); color: var(--text-on-dark); font: 700 12px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 18px -8px rgba(245, 138, 31, .8); transition: box-shadow .2s, background-color .2s; }
.dn-start-btn img { width: 22px; height: 22px; display: block; }
.dn-start-btn:hover, .dn-start-btn.is-current { background: rgba(245, 138, 31, .16); box-shadow: 0 0 0 1px rgba(245, 138, 31, .9), 0 0 24px -6px rgba(245, 138, 31, .9); color: var(--accent-on-dark); }
.dn-start-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
@media (max-width: 1439.98px) { .dn-header-inner { gap: 14px; } }
.dn-header-inner > .dn-start-btn { margin-right: 6px; }   /* row 59: a little more room after Start here, first in the row */
@media (max-width: 599.98px) { .dn-header-inner > .dn-start-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .dn-start-btn { transition: none; } }
/* The menu button and the drawer (navmenu.css, Nav-Drawer-Mobile): the button orange while open (it shows the close icon);
   rows 52 px with the 24 px icons; Start here first, full width; Dinosaurs with its 44 px submenu toggle (dn-site.js; without
   JavaScript the submenu shows); Coming soon and About after a divider, quieter. */
.dn-header-btn.dn-menu-toggle[aria-expanded="true"] { border-color: var(--action); color: var(--accent-on-dark); }
.dn-drawer .dn-nav-mobile { gap: 0; align-items: stretch; }
.dn-drawer .dn-nav-mobile > li { border-bottom: 1px solid var(--line-dark); position: relative; }
.dn-drawer .dn-nav-mobile > li > a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--text-on-dark); text-decoration: none;
  font: 700 15px/1.2 var(--font-heading); letter-spacing: .05em; text-transform: uppercase; }
.dn-drawer .dn-nav-mobile > .current-menu-item > a { color: var(--accent-on-dark); box-shadow: inset 3px 0 0 var(--action); padding-left: 10px; }
.dn-drawer .dn-drawer-start { border-bottom: 0; padding: 4px 0 16px; }
.dn-drawer .dn-nav-mobile > li.dn-drawer-start > a.dn-start-btn.is-wide { display: flex; justify-content: center; width: 100%; min-height: 48px; font-size: 14px; box-sizing: border-box; color: var(--text-on-dark); }
.dn-drawer .dn-sub-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--border-control-dark); border-radius: var(--radius-sm); color: var(--text-on-dark); cursor: pointer; }
.dn-drawer .dn-sub-toggle:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-drawer .dn-sub-toggle .dn-nav-caret { width: 18px; height: 18px; margin: 0; }
.dn-drawer .has-sub.is-open .dn-sub-toggle .dn-nav-caret { transform: rotate(180deg); }
.dn-drawer.is-enhanced .has-sub:not(.is-open) > .sub-menu { display: none; }
.dn-drawer .sub-menu { list-style: none; margin: 0 0 12px; padding: 0 0 0 36px; }
.dn-drawer .sub-menu a { display: flex; align-items: center; min-height: 44px; color: var(--text-muted-on-dark); text-decoration: none; font-size: 15px; }
.dn-drawer .sub-menu li > a { font: 400 16px/1.3 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text-on-dark); }
.dn-drawer .dn-nav-mobile > .dn-nav-sec-coming-soon { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.dn-drawer .dn-nav-mobile > li.dn-nav-sec-coming-soon > a, .dn-drawer .dn-nav-mobile > li.dn-nav-sec > a { color: var(--text-muted-on-dark); font-size: 13px; min-height: 44px; }
/* Home hero (Nav-Home): Browse dinosaurs, Start here (secondary, with its icon), then Open the Time Machine as a text link */
.dn-home-actions { align-items: center; }
.dn-hero-start { display: inline-flex; align-items: center; gap: 8px; }
.dn-hero-start img { width: 22px; height: 22px; display: block; }
.dn-hero-tm { margin-left: 6px; }
/* Coming soon (Nav-ComingSoon): the pages that just launched carry a small New tag */
.dn-soon-here li { display: inline-flex; align-items: center; gap: 8px; }
.nv-new { padding: 2px 8px; border-radius: 999px; background: rgba(245, 138, 31, .14); border: 1px solid rgba(245, 138, 31, .6); color: var(--accent-on-dark); font: 700 10px/14px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; }
.dn-header-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; margin-left: auto; }
.dn-header-btn.dn-menu-toggle { display: none; }
@media (max-width: 1079.98px) { .dn-header-nav { display: none; } .dn-header-btn.dn-menu-toggle { display: inline-flex; } }
.dn-header-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 44px; min-height: 44px; padding: 0 var(--space-3); background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-control-dark); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dn-header-btn:focus-visible, .dn-nav a:focus-visible, .dn-footer-links a:focus-visible, .dn-pagination a:focus-visible, .dn-related a:focus-visible, .dn-terms a:focus-visible, .dn-species-card a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-header-mobile { display: contents; }
.dn-drawer { position: fixed; inset: 0; top: 64px; z-index: 2147483000; overflow: auto; background: var(--surface-dark); padding: var(--space-5) var(--space-4); }
.dn-drawer[hidden] { display: none; }
.dn-nav-mobile { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.dn-nav-mobile .sub-menu { display: block; list-style: none; margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.dn-search { position: fixed; inset: 0; z-index: 2147483600; background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; padding: var(--space-8) var(--space-4); }
.dn-search[hidden] { display: none; }
.dn-search-inner { position: relative; width: 100%; max-width: 640px; background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.dn-search-inner .dn-panel-title.dn-panel-title { margin: 0 48px 0 0; }
.dn-search-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.dn-search-row .dn-field { flex: 1 1 240px; min-width: 0; }
.dn-search-results { list-style: none; margin: 0; padding: 0; }
.dn-search-results a { display: block; padding: var(--space-2) 0; border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark); text-decoration: none; font-style: italic; }
.dn-search-results a.is-term { font-style: normal; }
.dn-search-page { display: flex; flex-direction: column; gap: var(--space-5); }
.dn-search-page > p { margin: 0; }
.dn-search-group .dn-panel-title.dn-panel-title { margin: 0 0 var(--space-3); }
.dn-search-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.dn-search-news a { color: var(--text-on-dark); }
.dn-search-close { position: absolute; top: var(--space-3); right: var(--space-3); }
.dn-search-status { margin: 0; }
@media (max-width: 760px) {
  .dn-header-inner { gap: var(--space-3); justify-content: space-between; min-height: 64px; padding-inline: var(--space-4); }
  .dn-header-logo img, .dn-header-logo .custom-logo { height: 44px; }
}

/* Footer (SiteFooter board, rebalanced in Ben's review 2026-10-13, item 8): the brand column (logo, motto, line), then
   Explore, Browse (Groups and Periods side by side under one heading) and Site, on one grid; then the credit row and
   the copyright row. Two columns on tablets, the brand across the top; one column of pairs on phones. */
.dn-footer-menus { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
.dn-footer-col { min-width: 0; }
.dn-footer-brand { display: flex; flex-direction: column; gap: var(--space-3); }
.dn-footer-logo { display: block; align-self: flex-start; }
.dn-footer-logo img, .dn-footer-logo .custom-logo { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.dn-footer-brand p { margin: 0; }
.dn-footer-motto { font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); }
.dn-footer-about { font-size: 14px; line-height: 21px; color: var(--text-muted-on-dark); }
.dn-footer-col .dn-fact-label, .dn-footer-head { margin: 0 0 var(--space-3); font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dn-footer-browse-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.dn-footer-sub .dn-fact-label { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-muted-on-dark); margin-bottom: var(--space-2); }
.dn-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dn-footer-links a { display: inline-block; padding-block: 2px; font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: none; color: var(--text-on-dark); text-decoration: none; }
.dn-footer-legal-row .dn-footer-links a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.dn-footer-links a:hover { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.dn-footer-credits { display: flex; flex-wrap: wrap; gap: 6px var(--space-5); margin: 0; padding-block: 14px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 20px; color: var(--text-muted-on-dark); }
.dn-footer-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5); padding-block: 14px 22px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 20px; color: var(--text-muted-on-dark); }
.dn-footer-legal-row p { margin: 0; }
.dn-footer-legal-row .dn-footer-links { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
.dn-footer-legal a { color: var(--text-on-dark); }
@media (max-width: 1023.98px) {
  .dn-footer-menus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 639.98px) {
  .dn-footer-menus { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-6) var(--space-5); }
  .dn-footer-menus > nav.dn-footer-col .dn-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-4); }
  .dn-footer-links a { padding-block: 6px; }
  .dn-footer-legal-row { flex-direction: column; align-items: flex-start; }
}
/* The site-width footer containers have no side padding of their own: keep the gutter below the site width. */
@media (max-width: 1319.98px) { .dn-footer-menus, .dn-footer-credits, .dn-footer-legal.dn-ai-line, .dn-footer-legal-row { padding-inline: var(--space-5); } }
@media (max-width: 639.98px) { .dn-footer-menus, .dn-footer-credits, .dn-footer-legal.dn-ai-line, .dn-footer-legal-row { padding-inline: var(--space-4); } }

/* Archives */
.dn-archive-header-text { display: flex; flex-direction: column; gap: var(--space-3); }
.dn-archive-header .dn-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dn-archive-header .dn-breadcrumb li + li::before { content: "›"; margin-right: var(--space-2); color: var(--text-muted-on-dark); }
.dn-archive-header.dn-archive-header h1, .dn-archive-header .dn-eyebrow { margin: 0; }
.dn-archive-summary { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.dn-archive-stat { display: flex; flex-direction: column; gap: var(--space-1); }
.dn-filter-bar .dn-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.dn-filter-bar .dn-filter { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dn-filter-bar .dn-select { max-width: 100%; }
.dn-archive-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.dn-archive-tools p { margin: 0; }
.dn-archive-sort { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.dn-archive-sort-set { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Sort and view buttons (Ben's review 2026-10-13, item 12): one size for all; the current sort in orange, the others
   the outlined secondary button (dark, Fossil Stone outline): Bone White text 16.3:1, outline 9.4:1, orange 7.5:1. */
.dn-sort-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 2px solid var(--border-control-dark); border-radius: var(--radius-sm);
  background-color: var(--surface-dark); color: var(--text-on-dark); font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
a.dn-sort-btn:hover { border-color: var(--action); color: var(--accent-on-dark); }
a.dn-sort-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-sort-btn.is-active { background-color: var(--action); border-color: var(--action); color: var(--on-action); }
.dn-archive-view { margin-left: var(--space-2); }
@media (max-width: 639px) { .dn-sort-btn { min-height: 44px; padding-inline: 12px; } .dn-archive-view { margin-left: 0; } }
/* Filters and sort as the design system's dark listbox (Ben's staging notes 2026-10-13, overnight item A2;
   assets/shared/dn-archive-filters.js on top of shared/dn-listbox.js, the Discovery Map FilterBar's dn-dropdown and
   dn-listbox from bundle.css). Without JavaScript the native selects and sort buttons above stay as they are.
   The count chip is Sunset Orange with Prehistoric Slate text, 7.5:1. Options are 44 px tall. The filters and the
   tools row sit above what follows them, so an open panel is never under the cards. */
/* The filter bar's container sits above the species grid, so an open list shows over the cards (Ben's staging note
   2026-10-14: the lists opened under the grid). Avada's own stylesheet loads after ours and sets every container's
   z-index from --awb-z-index (auto), which beat the plain z-index here; so its variable too, and !important. Above
   anything sticky on the page as well. */
.fusion-fullwidth.dn-lc-archive-filters, .dn-lc-archive-filters { position: relative; --awb-z-index: 60; z-index: 60 !important; }
.dn-archive-tools { position: relative; z-index: 20; }
.dn-filter-bar.is-enhanced select.dn-select, .dn-archive-sort-set[hidden] { display: none; }
.dn-filter-bar.is-enhanced .dn-filter { flex: 1 1 140px; position: relative; }
.dn-filter-bar.is-enhanced .dn-filter:has(.dn-dropdown[disabled]) { flex: 0 1 140px; }
.dn-filter-bar.is-enhanced .dn-filter-row > .dn-btn { flex: none; min-height: 48px; }
.dn-filter-bar.is-enhanced .dn-filter-clear { flex: none; }
.dn-filter-bar .dn-listbox, .dn-sort-filter .dn-listbox { max-width: min(420px, calc(100vw - 32px)); }
.dn-filter-bar .dn-listbox ul, .dn-sort-filter .dn-listbox ul { max-height: min(360px, 60vh); overflow-y: auto; }
.dn-filter-bar .dn-listbox ul:focus-visible, .dn-sort-filter .dn-listbox ul:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.dn-filter-bar .dn-option, .dn-sort-filter .dn-option { min-height: 44px; }
.dn-option .ct.dn-count-chip { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 11px;
  background-color: var(--action); color: var(--on-action); font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 1; }
.dn-archive-sort.is-enhanced { flex-wrap: nowrap; }
.dn-sort-filter { position: relative; flex: 0 1 210px; min-width: 0; }
.dn-sort-filter .dn-dropdown, .dn-archive-sort.is-enhanced .dn-sort-btn { height: 44px; min-height: 44px; }
.dn-filter-bar .dn-dropdown[disabled] { color: var(--text-muted-on-dark); cursor: default; }
.dn-filter-bar .dn-filter-clear { min-height: 44px; }
/* Search by name (core 0.18.3): the first field, the Time Machine's "Search species" combobox (bundle.css .dn-combo,
   its glass and its listbox), wider than a dropdown and the whole row on phones; its suggestions panel under it. */
.dn-filter-bar .dn-filter.is-name { flex: 2 1 240px; position: relative; }
.dn-filter-bar .dn-filter.is-name .dn-combo { height: 48px; }
.dn-filter-bar .dn-filter.is-name .dn-listbox { left: 0; right: auto; width: max-content; min-width: 100%; max-width: min(420px, calc(100vw - 32px)); }
.dn-filter-bar .dn-filter.is-name .dn-listbox[hidden] { display: none; }
.dn-filter-bar .dn-filter.is-name .dn-option.is-none { color: var(--text-muted-on-dark); cursor: default; }
@media (max-width: 560px) { .dn-filter-bar .dn-filter.is-name { flex-basis: 100%; } .dn-filter-bar .dn-filter.is-name .dn-listbox { right: 0; width: auto; max-width: none; } }
@media (max-width: 760px) {
  .dn-filter-bar.is-enhanced .dn-listbox, .dn-sort-filter .dn-listbox { left: 0; right: auto; width: max-content; min-width: 100%; }
  .dn-filter-bar.is-enhanced .dn-listbox.is-end, .dn-sort-filter .dn-listbox.is-end { left: auto; right: 0; }
}
.dn-species-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.dn-species-grid > li { min-width: 0; }
.dn-archive-grid.is-list .dn-species-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
/* Species card (approved SpeciesCard, Cards and CardImagery boards; pages.css .pg-card*). The image slot is filled
   when the page renders (includes/species-images.php dn_card_media; one rule since core 0.14.2): the species cutout on
   a dark backdrop with a ground line in its ICS epoch colour (is-cut), else the generic group silhouette standing on
   the same ground, tagged "Group silhouette" (is-sil), else the ring (is-ring). Never the group artwork or a fossil
   photo. Credits for artwork show on hover and keyboard focus. */
.dn-species-card { height: 100%; }
.dn-species-card > a { display: flex; flex-direction: column; height: 100%; }
.dn-species-card:hover { border-color: var(--bone-white); }
.dn-species-card > a:hover .dn-species-card-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dn-species-card-fig { box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; background: #18191b; border-bottom: 1px solid var(--line-dark); }
.dn-species-card-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-species-card-fig.is-cut { align-items: flex-end; padding: 10px 14px 0; background: radial-gradient(ellipse at 50% 85%, #2c2e31 0%, #1a1b1d 70%); }
.dn-species-card-fig.is-cut img.dn-card-cut { position: relative; inset: auto; width: 100%; height: calc(100% - 9px); margin-bottom: 9px; object-fit: contain; object-position: center bottom; }
.dn-card-cut-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.dn-species-card-fig .dn-sil { width: 82%; height: auto; max-height: 100%; }
.dn-species-card-fig.is-sil { align-items: flex-end; padding: 44px 14px 0; background: radial-gradient(ellipse at 50% 85%, #2c2e31 0%, #1a1b1d 70%); }   /* core 0.28.3: room for the two-line label */
.dn-species-card-fig.is-sil .dn-card-sil { width: auto; height: calc(100% - 9px); max-width: 100%; margin-bottom: 9px; }
.dn-card-ring { width: auto; height: 58%; fill: var(--fossil-stone); }
.dn-card-sil-tag { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); box-sizing: border-box;   /* above the silhouette (the padding keeps it clear), never over it */ font-family: var(--font-heading); font-weight: 700; font-size: 10px; line-height: 13px; letter-spacing: 0; color: var(--bone-white); background: #121417d9; padding: 1px 5px; border-radius: 3px; }   /* core 0.28.3: "Group silhouette, from the ... artwork", sentence case, up to two lines */
.dn-card-il.dn-card-sil-il { display: none; }   /* the same label under the facts, in the phone thumbnail's place (below) */
.dn-card-credit { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11px; line-height: 15px; color: var(--bone-white); background: #121417eb; opacity: 0; transition: opacity .15s; }
.dn-species-card > a:hover .dn-card-credit, .dn-species-card > a:focus-visible .dn-card-credit { opacity: 1; }
.dn-species-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.dn-species-card-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; font-size: 12px; line-height: 16px; color: var(--text-on-dark); }
.dn-species-card-tags > span { display: inline-flex; align-items: center; gap: 6px; }
.dn-species-card-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.dn-species-card .dn-species-card-name { margin: 2px 0 0; font-family: var(--font-name, "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif) !important; font-weight: 700; font-style: italic; font-size: 24px; line-height: 24px; overflow-wrap: break-word; }
.dn-species-card-auth { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.dn-species-card-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 18px; }
.dn-species-card-facts dt { font-family: var(--font-heading); font-weight: 700; font-size: 10px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dn-species-card-facts dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-species-card-facts dd.is-missing { color: var(--text-muted-on-dark); }
/* Tip Rex (board 43, hand-off 9): the card (tip: orange rule, trick: Bone White, note: Fossil Stone; dark, or light on
   Bone White), the eyebrow carrying the meaning, Tip Rex decorative at 48 px; the inline note with Tip Rex at 24 px. */
.dn-rex { display: block; border-radius: 50%; }
.dn-rex-eyebrow { margin: 0; font: 700 12px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-dark); }
.dn-rex-tip { --rule: var(--action); display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-md, 12px); background: var(--surface-dark-raised, #202123); border: 1px solid var(--line-dark); border-left: 4px solid var(--rule); color: var(--text-on-dark); }
.dn-rex-tip > .dn-rex { flex: none; width: 48px; height: 48px; }
.dn-rex-tip.is-trick { --rule: var(--bone-white); }
.dn-rex-tip.is-note { --rule: var(--fossil-stone); }
.dn-rex-tip.is-note .dn-rex-eyebrow { color: var(--fossil-stone); }
.dn-rex-tip.is-trick .dn-rex-eyebrow { color: var(--bone-white); }
.dn-rex-tip .dn-rex-title { margin: 2px 0 4px; font: 700 17px/24px var(--font-heading); }
.dn-rex-tip p:last-child { margin: 0; font-size: 15px; line-height: 23px; }
.dn-rex-tip.is-light { background: var(--bone-white); color: var(--prehistoric-slate); border-color: rgba(18, 20, 23, .15); }
.dn-rex-tip.is-light .dn-rex-eyebrow { color: #A44D05; }
.dn-rex-inline { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; }
.dn-rex-inline > .dn-rex { flex: none; width: 24px; height: 24px; }
/* The "isn't a dinosaur" verdict (search; v2 2026-10-20, v3 Ben 20:45: no T. rex beside the verdict). Its own component
   (the Tip Rex card is unchanged elsewhere) with the Tip Rex card's panel: the dark raised panel and the 4 px Sunset
   Orange rule; the row 52 search-bone icon in the clay medallion the Contact slabs use (dn-worktable.css .wt-med), 96 px
   left of the words, 64 px above them on phones; the h2 in Barlow Condensed, one clay badge as on the species profile
   card, the approved line, then field notes with the PBDB group and the sources. */
.dn-verdict { box-sizing: border-box; display: flex; gap: 24px; align-items: flex-start; max-width: 760px; margin: 0 auto; padding: 28px 32px; border-radius: var(--radius-md, 12px);
  background: var(--surface-dark-raised, #202123); border: 1px solid var(--line-dark); border-left: 4px solid var(--action); color: var(--text-on-dark); }
.dn-verdict > .dn-verdict-med { flex: none; width: 96px; height: 96px; margin: 0; }
.dn-verdict > .dn-verdict-med .dn-bh-ic { width: 60px; height: 60px; }
.dn-verdict-body { min-width: 0; }
.dn-verdict-eyebrow { margin: 0; font: 700 12px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-dark); }
.dn-verdict .dn-verdict-title { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 44px; letter-spacing: 0; text-transform: uppercase; color: var(--bone-white); }
.dn-verdict .dn-verdict-title .dn-verdict-genus { color: var(--accent-on-dark); }   /* v4: the searched name in Sunset Orange, 6.55:1 on the card */
.dn-verdict-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dn-verdict-badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font: 700 12px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: #F5F1E6; background: #8A4A1E; box-shadow: inset 0 1px 0 rgba(255, 220, 180, .3), inset 0 -1px 0 rgba(0, 0, 0, .3); }
.dn-verdict .dn-verdict-line { margin: 0 0 18px; font-size: 17px; line-height: 27px; color: var(--bone-white); }
.dn-verdict-notes { padding-top: 12px; border-top: 1px solid var(--line-dark); }
.dn-verdict .dn-verdict-notes p { margin: 0 0 4px; font-size: 13px; line-height: 20px; color: var(--text-muted-on-dark); }
.dn-verdict .dn-verdict-notes p:last-child { margin: 0; }
.dn-verdict-notes a { color: var(--text-on-dark); text-underline-offset: 2px; }
.dn-verdict-after { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }   /* v4: the primary button under the card, left-aligned with it, the hint below */
.dn-verdict-after p { margin: 0; font-size: 13px; line-height: 20px; }
/* the overlay's status line: the icon at 24 px, then the words */
.dn-search-status.dn-verdict-inline { display: flex; align-items: center; gap: 8px; }
.dn-search-status.dn-verdict-inline > .dn-bh-ic { flex: none; width: 24px; height: 24px; }
@media (max-width: 759px) {
  .dn-verdict { flex-direction: column; padding: 20px; gap: 12px; }
  .dn-verdict > .dn-verdict-med { width: 64px; height: 64px; }
  .dn-verdict > .dn-verdict-med .dn-bh-ic { width: 40px; height: 40px; }
  .dn-verdict .dn-verdict-title { font-size: 28px; line-height: 32px; }
}
.dn-card-il { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.dn-card-il svg { flex: none; width: 12px; height: 12px; margin-top: 2.5px; fill: var(--action); }
.dn-species-card-flag { align-self: flex-start; margin-top: 4px; font-size: 10px; line-height: 14px; padding: 2px 6px; }
@media (prefers-reduced-motion: reduce) { .dn-card-credit { transition: none; } }
/* Phones (board: CardImagery-Mobile, Index-Mobile): a 104 px square thumbnail beside the text; artwork credits stay
   on the species page. */
@media (max-width: 760px) {
  .dn-species-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .dn-species-card > a { flex-direction: row; align-items: flex-start; }
  .dn-species-card-fig { flex: 0 0 104px; width: 104px; height: 104px; aspect-ratio: 1 / 1; margin: 10px 0 10px 10px; border: 1px solid var(--line-dark); border-radius: 6px; }
  .dn-species-card-fig.is-cut { padding: 8px 6px 0; }
  .dn-species-card-fig.is-sil { padding: 10px 6px 0; }
  /* core 0.28.3: the long label doesn't fit the 104 px thumbnail: it moves under the facts (dn_card_media()'s label line) */
  .dn-card-sil-tag { display: none; }
  .dn-card-il.dn-card-sil-il { display: flex; }
  .dn-card-credit { display: none; }
  .dn-species-card-body { padding: 10px 10px 12px; }
  .dn-species-card .dn-species-card-name { font-size: 20px; line-height: 21px; }
  .dn-species-card-facts { gap: 2px 8px; }
}
/* List view: the same card in one row, a small thumbnail first. */
.dn-archive-grid.is-list .dn-species-card > a { flex-direction: row; align-items: center; }
.dn-archive-grid.is-list .dn-species-card-fig { flex: 0 0 128px; width: 128px; border-bottom: 0; border-right: 1px solid var(--line-dark); }
.dn-archive-grid.is-list .dn-card-credit, .dn-archive-grid.is-list .dn-card-sil-tag { display: none; }
.dn-archive-grid.is-list .dn-card-il.dn-card-sil-il { display: flex; }   /* core 0.28.3: the label under the facts instead */
.dn-archive-grid.is-list .dn-species-card-fig.is-sil { padding-top: 8px; }
.dn-archive-grid.is-list .dn-species-card-body { padding: var(--space-2) var(--space-4); }
.dn-pagination ul { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dn-pagination a, .dn-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); color: var(--text-on-dark); text-decoration: none; }
.dn-pagination span[aria-current] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.dn-related-list, .dn-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.dn-related-list a, .dn-terms.is-list a { color: var(--text-on-dark); }
/* Links in an empty state ("isn't a dinosaur" citation, 2026-10-20): the approved .dn-source-list link, as Ben chose. */
.dn-empty-meta a:not(.dn-link-more) { color: var(--text-on-dark); text-underline-offset: 2px; }
.dn-terms.is-list { flex-direction: column; gap: var(--space-2); }
.dn-terms.is-list .is-child { padding-left: var(--space-5); }
.dn-terms.is-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.dn-term-tile { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); text-decoration: none; height: 100%; }
.dn-card-single { max-width: 320px; }

/* Kids pages (Ben's review 2026-10-13, item 11): no ads and no email signup. The plugin prints neither there
   (includes/site-chrome.php); this also hides any that something else prints, and the containers holding them. */
.dn-kids :is(.dn-ad-slot, .dn-signup-band, .dn-footer-signup, .gform_wrapper:has(input[type="email"])) { display: none !important; }
.dn-kids .fusion-fullwidth:has(.dn-ad-slot, .dn-signup-band) { display: none !important; }

/* Signup band, as the SiteFooter board draws it (Ben, 2026-10-14: "must look like the approved design again"; Signup,
   Signup-Mobile, Signup-Done): one band on the faded bg-signup artwork, the dinosaur silhouettes along the bottom
   (centre 62%), under the board's dark gradient; the title with the orange bar and the lead on the left, the form block
   on the right (label, field and button on one row, the consent sentence as small text under them); the AI credit
   top right. Phones (760 px and under): stacked, the gradient top to bottom, the credit under the form. One design for
   home, Coming soon, the footer of every template and form 2 printed by anything else. Here, not in site/dn-pages.css,
   because this stylesheet loads on every page (species pages don't load dn-pages.css). */
.dn-signup-band { position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding-block: var(--space-8); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark);
  background-color: var(--prehistoric-slate, #121417); background-image: var(--dn-bg-1x); background-image: image-set(var(--dn-bg-1x) 1x, var(--dn-bg-2x) 2x); background-size: cover; background-position: center 62%; background-repeat: no-repeat; }
/* From 1281 px the 2560 file, whatever the pixel ratio (core 0.31.0; the note in site/dn-pages.css). */
@media (min-width: 1281px) { .dn-signup-band { background-image: var(--dn-bg-2x); } }
.dn-signup-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #121417eb 0%, #121417c2 48%, #121417a6 100%); }
.dn-signup-band .dn-signup-band-inner { position: relative; box-sizing: border-box; width: 100%; max-width: var(--site-width, 1700px); margin: 0 auto; padding-inline: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-7); }
.dn-signup-text { flex: 1 1 360px; max-width: 520px; min-width: 0; }
.dn-signup-text .dn-signup-title.dn-signup-title { margin: 0 0 8px; }
.dn-signup-note { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 26px; color: var(--text-on-dark); }
.dn-signup-band .dn-signup { flex: 1 1 420px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dn-signup-band .dn-signup-form, .dn-signup-band .dn-consent { min-width: 0; margin: 0; }
.dn-signup-band .dn-art-credit.is-corner { position: absolute; z-index: 1; top: var(--space-3); right: var(--space-6); bottom: auto; left: auto; margin: 0; max-width: calc(100% - 2 * var(--space-4)); text-align: right; padding: 2px 8px; border-radius: var(--radius-sm); background: #121417cc;
  font-family: var(--font-body); font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
/* The footer's container runs edge to edge and stays inside the window: on staging the species page's footer band sat
   past the left edge (screenshot 2), so its Avada container keeps no side margin or padding and its row no site width. */
.fusion-fullwidth.dn-lc-footer-signup { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; max-width: 100%; --awb-padding-left: 0px; --awb-padding-right: 0px; --awb-margin-left: 0px; --awb-margin-right: 0px; }
.fusion-fullwidth.dn-lc-footer-signup > .fusion-builder-row { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 760px) {
  .dn-signup-band { padding-block: var(--space-6) var(--space-4); }
  .dn-signup-band::before { background: linear-gradient(180deg, #121417b8 0%, #121417d9 45%, #121417f0 100%); }
  .dn-signup-band .dn-signup-band-inner { padding-inline: var(--space-4); gap: var(--space-5); }
  .dn-signup-band .dn-signup-text, .dn-signup-band .dn-signup { flex-basis: 100%; max-width: none; }
  .dn-signup-band .dn-art-credit.is-corner { position: relative; display: block; inset: auto; margin: var(--space-4) var(--space-4) 0; padding: 0; max-width: none; background: none; text-align: left; font-size: 11px; line-height: 15px; }
}

/* In-page links (Ben's evening review 2026-10-13): smooth scrolling while dn-site.js follows a link to a place on the same
   page (html.dn-smooth-scroll, only for that scroll, so other scripts' scrolling stays instant), a jump under
   prefers-reduced-motion. Targets stop below whatever is stuck to the top of the window: --dn-sticky-offset is measured
   by dn-site.js (the species section tabs, an Avada sticky container, the admin bar); the fallbacks are the species
   tabs' heights. Sections, headings, named anchors and the current :target get the margin. */
/* Before dn-site.js measures it (and without JavaScript), species pages fall back to their tab bar's height. No :has()
   on :root here: it is re-checked on every DOM change and forced whole-page style recalcs while the Time Machine drags. */
.sp-page { --dn-sticky-fallback: 72px; }
@media (max-width: 760px) { .sp-page { --dn-sticky-fallback: 56px; } }
:is(section, article, h1, h2, h3, h4, h5, h6)[id], a[name] { scroll-margin-top: calc(var(--dn-sticky-offset, var(--dn-sticky-fallback, 0px)) + var(--space-4, 16px)); }
@media (prefers-reduced-motion: no-preference) { html.dn-smooth-scroll { scroll-behavior: smooth; } }
.dn-scroll-target[tabindex="-1"]:focus { outline: none; }

/* Headline gradient (Ben's review 2026-10-13, item 14; the design system's "textured treatment for impact text only",
   after Michael's prototype): display headlines only (the home hero, page, archive and 404 header titles, the species
   hero name), never body or section titles. White line: stone-metal, light band near the top; the accent line: warm
   orange. One gradient per line (background-size 1lh), so a title that wraps on a phone keeps the light band on every
   line. Solid colours where background-clip: text isn't supported, plain text in Windows high-contrast. AA: the darkest
   stop (--dn-grad-dark) is what the hero contrast smoke test measures against the artwork behind it. */
:is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) { --dn-grad-dark: #C9B79A; color: var(--text-on-dark, #F5F1E6); }
:is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) .dn-accent { --dn-grad-dark: #F07D14; color: var(--accent-on-dark, #F58A1F); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name), :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) > span:not(.dn-accent) {
    background-image: linear-gradient(180deg, #FFFFFF 0%, #F5F1E6 35%, #DCCDB3 70%, #C9B79A 100%);
    background-size: 100% 1em; background-size: 100% 1lh; background-repeat: repeat-y;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) .dn-accent {
    background-image: linear-gradient(180deg, #FFC24A 0%, #F58A1F 60%, #F07D14 100%);
    background-size: 100% 1em; background-size: 100% 1lh; background-repeat: repeat-y;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  /* The shadow is the filter's: a text-shadow (species-page.css gives the hero name one) would show through the
     transparent fill and turn the letters muddy grey (Claude Design, staging-vs-boards-2026-10-15 item 1). */
  :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); text-shadow: none; }
  /* an inline line's background ends at its last letter's advance: keep the italic overhang inside it */
  :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) span { padding-inline-end: .08em; margin-inline-end: -.08em; }
}
@media (forced-colors: active) {
  :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name), :is(h1.dn-display.dn-display, .sp-hero-name.sp-hero-name) span { background: none !important; -webkit-text-fill-color: currentColor !important; color: CanvasText !important; filter: none !important; }
}

/* Section separation (rule 4, Claude Design board V2-Bands, overnight 2026-10-13): neighbouring bands never share a
   surface. Archive and type pages: under the header artwork, the summary and filter bar on Slate, the results grid on
   Band (#24262A, token surface-band) with Slate cards, the related groups or periods on Slate; each band full bleed with
   a 1 px Line Dark top edge, the signup band's artwork after it. The order of these blocks is fixed (an empty one
   collapses, and the grid between them always renders), so the tones never meet. Page template: the one body band on
   Slate between the header artwork and the signup artwork. The species page counts its rows on the server. */
.fusion-fullwidth:is(.dn-lc-archive-summary, .dn-lc-archive-filters, .dn-lc-archive-grid, .dn-lc-archive-related) { position: relative; isolation: isolate; }
.fusion-fullwidth:is(.dn-lc-archive-summary, .dn-lc-archive-filters, .dn-lc-archive-grid, .dn-lc-archive-related)::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw + var(--dn-scrollbar, 0px) / 2); right: calc(50% - 50vw + var(--dn-scrollbar, 0px) / 2); z-index: -1; background: var(--prehistoric-slate); }
.fusion-fullwidth:is(.dn-lc-archive-summary, .dn-lc-archive-grid, .dn-lc-archive-related)::before { border-top: 1px solid var(--line-dark); }
.fusion-fullwidth.dn-lc-archive-grid::before { background: var(--surface-band, #24262a); }
.fusion-fullwidth.dn-lc-archive-grid .dn-species-card { background-color: var(--prehistoric-slate); }
.dn-page-body { border-top: 1px solid var(--line-dark); background-color: var(--prehistoric-slate); }


/* AI disclosure policy v2 (Home v3, board 44 items 5 and 6): the footer line on every page (a small sparkle, 13/20
   Fossil Stone, the link Bone White underlined) and the species hero's small "AI art" chip, a link to How we make our
   images with the full label as its title */
.dn-footer-legal.dn-ai-line { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-block: 12px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 20px; color: var(--fossil-stone); }
.dn-ai-line svg { width: 14px; height: 14px; flex: none; margin-top: 3px; fill: var(--fossil-stone); }
.dn-ai-line a { color: var(--bone-white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.il a.il-tag.dn-ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(18, 20, 23, .82); border: 1px solid var(--line-dark); font: 700 11px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--bone-white); text-decoration: none; }
.il a.il-tag.dn-ai-chip svg { width: 12px; height: 12px; fill: var(--action); }
.il a.il-tag.dn-ai-chip:hover, .il a.il-tag.dn-ai-chip:focus-visible { border-color: var(--action); }

/* Links in to "The asteroid and the extinction" (/extinction/, core 0.17.0): the line under When it lived on the species
   pages of the species alive at the end of the Cretaceous; the end of the Timeline; Evolution's K-Pg marker. */
.dn-xt-line { margin: 12px 0 0; font: 400 15px/22px var(--font-body); color: var(--text-on-dark, #F5F1E6); }
.dn-xt-line a, .tl-xt-link { color: var(--sunset-orange, #F58A1F); font-weight: 600; }
.tl-xt { margin: 14px 0 0; font: 400 15px/22px var(--font-body); }
.evx-kpg-link text { text-decoration: underline; cursor: pointer; }
.evx-kpg-link:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 2px; }

/* ---------------------------------------------------------------- print (core 0.20.8; Ben, 2026-11-15, the Extinction
   Print fact sheet): what only the screen needs never prints, on every page. The live site's chrome is Avada's: its
   header and footer layout sections (.fusion-tb-header, .fusion-tb-footer), its back-to-top (section.to-top-container),
   sliding bar and privacy bar; the plugin's own header and footer (.dn-header, .dn-footer) where a page has them. The
   narration spotlight (.spot-layer: its quiet, rings and tags; .spot-edge) is placed in page coordinates measured on
   screen: in print the page reflows, and the quiet landed over the content that moved up under it (the blank pages).
   The plates (.nar-plate) are controls. A textured title (background-clip: text with a transparent fill, the drop-shadow
   filter) prints as solid black text, never an empty box. */
@media print {
  .fusion-tb-header, .fusion-tb-footer, .to-top-container, #toTop, .fusion-sliding-bar-wrapper, .fusion-privacy-bar, #wpadminbar,
  .dn-header, .dn-footer, .spot-layer, .spot-edge, .nar-plate { display: none !important; }
  :is(h1.dn-display, .dn-display, .sp-hero-name, .dn-bh-title), :is(h1.dn-display, .dn-display, .sp-hero-name, .dn-bh-title) span {
    background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
    -webkit-text-fill-color: #000 !important; color: #000 !important; filter: none !important; text-shadow: none !important;
    -webkit-mask: none !important; mask: none !important; box-shadow: none !important; }
}

/* ---------------------------------------------------------------- How it works, one slim row (core 0.22.0; row 71,
   section 1; dn-site.js DNHiw): from 1,280 px (screen) the four how-to boxes are a row, the boxes open in place; under
   1,280 px the row is hidden and the boxes show as today */
.dn-hiw { display: none; }
@media screen and (min-width: 1280px) {
  .dn-hiw { display: flex; align-items: center; gap: 8px; min-height: 56px; margin: 0 0 12px; padding: 6px 8px 6px 6px; box-sizing: border-box; border-radius: 14px;
    background: #202123; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .12); }
  .dn-hiw-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 10px; cursor: pointer;
    background: transparent; box-shadow: inset 0 0 0 1.5px rgba(245, 241, 230, .35); color: #F5F1E6; font: 700 13px/16px var(--font-heading, Montserrat, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
  .dn-hiw-h { flex: none; margin: 0; font: inherit; }
  .dn-hiw-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .dn-hiw-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 2px #F58A1F; }
  .dn-hiw-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .dn-hiw-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
  .dn-hiw-tips { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
  .dn-hiw-tip { position: relative; min-width: 0; margin: 0; }
  .dn-hiw-t { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px 0 6px; box-sizing: border-box; border: 0; border-radius: 10px; cursor: help;
    background: transparent; color: #F5F1E6; text-align: left; font: 700 13px/17px var(--font-heading, Montserrat, sans-serif); letter-spacing: .04em; text-transform: uppercase; }
  .dn-hiw-t:hover, .dn-hiw-t:focus-visible, .dn-hiw-tip.is-open .dn-hiw-t { background: rgba(245, 241, 230, .07); }
  .dn-hiw-t:focus-visible { outline: 2px solid #F58A1F; outline-offset: 1px; }
  .dn-hiw-t .dn-howto-ic { flex: none; width: 32px; height: 32px; margin: 0; }
  .dn-hiw-t span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dn-hiw-t::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--c, #F58A1F); }
  .dn-hiw-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: max(100%, 300px); box-sizing: border-box; padding: 12px 14px; border-radius: 10px;
    background: #121417; box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .18), 0 14px 30px -10px rgba(0, 0, 0, .9); border-top: 3px solid var(--c, #F58A1F);
    font: 400 14px/21px var(--font-body, 'Open Sans', sans-serif); color: #F5F1E6; text-transform: none; letter-spacing: 0; }
  .dn-hiw-pop[hidden] { display: none; }
  .dn-hiw-tip:last-child .dn-hiw-pop { left: auto; right: 0; }
  ul.dn-howto.is-hiw:not(.is-open) { display: none !important; }
  ul.dn-howto.is-hiw { margin: 0 0 12px; }
}
@media print { .dn-hiw { display: none !important; } ul.dn-howto.is-hiw { display: grid !important; } }
