/* Dinosaurs.info preview - species page layout (backlog B14), from the approved species page board
   (design/species-page/source/species.css). In production this layout is the Avada Layout's
   containers and columns; only the preview uses this file. The interactive blocks' styles are the
   plugin's (wp/plugin/assets/species/species.css). Tokens come from dn-tokens.css. */

.sp-page { background: var(--surface-dark); color: var(--text-on-dark); font-family: var(--font-body); font-size: 16px; line-height: 26px; min-width: 0; }
/* Full-bleed bands (hero, section backgrounds, strata) reach past the centred column; the page never scrolls sideways. */
.sp-page:not(.sp-page-plugin) { overflow-x: clip; }
body:has(.sp-page-plugin) { overflow-x: clip; }
.sp-page *, .sp-page *::before, .sp-page *::after { box-sizing: border-box; }
.sp-page a { color: inherit; }
.sp-page a:focus-visible, .sp-page button:focus-visible, .sp-page input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.sp-wrap { width: 100%; max-width: var(--site-width, 1700px); margin: 0 auto; padding: 0 var(--space-6); }
.sp-preview-bar { background: var(--jurassic-green); color: var(--bone-white); font-size: 13px; line-height: 20px; }
.sp-preview-bar .sp-wrap { padding-top: 6px; padding-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Header (Avada header in production; the preview has no logo file, so the name is set as text) */
.sp-header { background: var(--surface-dark); border-bottom: 1px solid var(--line-dark); }
.sp-header .sp-wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; flex-wrap: wrap; }
.sp-wordmark { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 36px; text-decoration: none; color: var(--text-on-dark); }
.sp-wordmark span { color: var(--accent-on-dark); }
.sp-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.sp-nav a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 24px 0 21px; border-bottom: 3px solid transparent; }
.sp-nav a.on { color: var(--accent-on-dark); border-bottom-color: var(--action); }

/* Breadcrumb */
.sp-crumbs { padding: var(--space-4) 0; }
.sp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sp-crumbs li { display: inline-flex; gap: 8px; align-items: center; }

/* Hero (board: "Hero: the period landscape behind every species", rounds 6-7). The landscape runs the full
   browser width whatever the width of the container holding the block; text and image sit on the site width. */
.sp-crumbs, .sp-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.sp-crumbs { position: relative; z-index: 1; background: var(--surface-dark); }
.sp-hero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--surface-dark); border-bottom: 1px solid var(--line-dark); min-height: 540px; }
.sp-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; }
.sp-hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #121417f0 0%, #121417e0 38%, #12141780 62%, #12141726 84%, transparent 100%), linear-gradient(0deg, #121417e6 0%, transparent 34%); }
.sp-hero .sp-wrap { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-7); min-height: 540px; padding-top: var(--space-7); padding-bottom: var(--space-7); }
.sp-hero-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sp-hero-name.sp-hero-name { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 88px; line-height: 84px; margin: 0; letter-spacing: 0; color: var(--text-on-dark); overflow-wrap: anywhere; text-shadow: 0 1px 12px #12141799; }
.sp-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; line-height: 22px; color: var(--text-on-dark); text-shadow: 0 1px 12px #12141799; }
.sp-hero-meta span b { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); margin-right: 6px; }
.sp-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.sp-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-sm); }
.sp-badge-group { background: var(--surface-dark-raised); color: var(--text-on-dark); border: 1px solid var(--border-control-dark); }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: var(--space-2); }
.sp-page .sp-dl { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; line-height: 20px; text-decoration: none; }
.sp-dl svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-dl-meta { font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); }
.sp-hero-credit { position: absolute; right: max(var(--space-6), calc(50vw - 608px)); top: var(--space-3); font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); background: #121417cc; padding: 2px 8px; border-radius: var(--radius-sm); }
.sp-hero-credit-m { display: none; }
/* the image column: about 45% of the site width */
.sp-hero-frame { flex: 0 0 45%; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-hero-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background: #1d1f22e6; box-shadow: 0 18px 40px #00000066; }
.sp-hero-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; display: block; }
.sp-hero-frame-photo .sp-hero-pic { background: #0e0f10; }
.sp-hero-frame-photo .sp-hero-pic > img { object-fit: contain; }
.sp-hero-nopic { display: flex; align-items: center; justify-content: center; }
.sp-hero-nopic svg { width: 62%; max-width: 360px; height: auto; fill: var(--stone-brown); }
.sp-hero-ai { position: absolute; left: 10px; bottom: 10px; font-size: 12px; line-height: 16px; color: var(--bone-white); background: #121417d9; padding: 3px 8px; border-radius: var(--radius-sm); }
.sp-hero-frame figcaption { font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); background: #121417b3; align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-sm); }
.sp-hero-frame figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* the species' approved artwork: a cutout standing on the landscape, no frame (decided 2026-10-12) */
.sp-hero-frame-cut { gap: 10px; align-items: flex-start; }
.sp-hero-cut { position: relative; align-self: stretch; height: 330px; display: flex; align-items: flex-end; justify-content: center; }
.sp-hero-cu { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.sp-hero-ground { position: absolute; left: 12%; right: 12%; bottom: 4px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at center, #000000a6 0%, #00000059 45%, transparent 72%); }
/* image label: the label is a button, the full credit shows on hover or keyboard focus */
.il { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
.il-tag { display: inline-flex; align-items: flex-start; gap: 7px; max-width: 100%; margin: 0; text-align: left; font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--bone-white); background: #121417eb; border: 1px solid #ffffff38; border-radius: var(--radius-sm); padding: 5px 10px; cursor: help; }
.il-tag svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: var(--action); }
.il-tag:hover, .il-tag:focus-visible { border-color: var(--action); outline: none; }
.il-tag:focus-visible { box-shadow: 0 0 0 2px #121417, 0 0 0 4px var(--action); }
.il-pop { display: none; position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 6; width: 380px; max-width: 86vw; padding: 12px 14px; background: #202123; border: 1px solid #ffffff38; border-radius: var(--radius-md); box-shadow: 0 12px 28px #00000080; font-size: 13px; line-height: 19px; color: var(--bone-white); text-align: left; }
.il-pop > b { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--fossil-stone); margin-bottom: 4px; }
.il-pop > span { display: block; }
.il-tag:hover + .il-pop, .il-tag:focus + .il-pop { display: block; }
.il-links { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 13px; line-height: 20px; background: #121417d9; padding: 3px 10px; border-radius: var(--radius-sm); }
.il-links a { color: var(--bone-white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #f5f1e680; }
.il-links a:hover, .il-links a:focus-visible { color: var(--action); text-decoration-color: var(--action); }
.sp-hero-nolinks { align-self: flex-start; }

/* Sticky section tabs */
.sp-tabs { position: sticky; top: 0; z-index: 5; background: var(--surface-dark); border-bottom: 1px solid var(--line-dark); }
.sp-tabs .sp-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sp-tabs a { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 5px; font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text-on-dark); padding: 11px 12px 9px; border-bottom: 3px solid transparent; white-space: nowrap; }
.sp-tabs a.on { color: var(--accent-on-dark); border-bottom-color: var(--action); }
.sp-tab-ic { flex: none; fill: none; stroke: var(--text-muted-on-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-tabs a.on .sp-tab-ic { stroke: currentColor; }

/* Sections */
.sp-sec { padding: var(--space-7) 0; scroll-margin-top: 72px; }
/* Section spacing (core 0.33.0; DECISIONS 2026-12-03): the species page's sections had 48 px above and below (32 on phones),
   three quarters of the site's old 64; they read --dn-section-gap at the same share (90 px from 1,281 px, 72 on tablets, 40 on
   phones). The side of a section facing an ad band keeps 48 px. */
.sp-sec { padding-block: calc(var(--dn-section-gap) * .75); }
.sp-sec:has(+ .sp-adband) { padding-bottom: var(--space-7); }
.sp-adband + .sp-sec { padding-top: var(--space-7); }
.sp-sec-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.sp-sec-head .dn-section-title.dn-section-title { font-size: 24px; line-height: 30px; }
/* Section heading icons (board): 28 px line icons in front of every section title, decorative */
.sp-sec-ic { display: inline-block; width: 28px; height: 28px; margin-right: 12px; vertical-align: -6px; fill: none; stroke: var(--accent-on-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-sec-ic-sm { width: 22px; height: 22px; margin-right: 10px; vertical-align: -5px; }
/* Backgrounds (board): full-bleed Panel Slate (sp-alt), the period landscape (sp-sec-land), the rock-strata divider */
.sp-alt, .sp-sec-land { position: relative; isolation: isolate; }
.sp-alt::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--surface-dark-raised); z-index: -1; }
.sp-alt :is(.sp-spec, .sp-review, .sp-citebox, .sp-chip, .sp-empty-line, .sp-naming, .sp-gal-img, .sp-fr-chart) { background-color: var(--prehistoric-slate); }
.sp-sec-land::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: linear-gradient(180deg, #121417 0%, #121417d1 20%, #121417c9 70%, #121417 100%), var(--land) center 62% / cover no-repeat; }
.sp-land-credit { position: absolute; right: 0; bottom: 10px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); background: #121417cc; padding: 2px 8px; border-radius: var(--radius-sm); }
.sp-strata { position: relative; height: 112px; margin: 0 calc(50% - 50vw); overflow: hidden; background: var(--prehistoric-slate); }
.sp-strata img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.sp-strata::after { content: ""; position: absolute; inset: 0; }
.sp-strata-in::after { background: linear-gradient(180deg, #121417 0%, #12141700 34%, #20212300 66%, #202123 100%); }
.sp-strata-out::after { background: linear-gradient(180deg, #202123 0%, #20212300 34%, #12141700 66%, #121417 100%); }
.sp-strata-credit { position: absolute; z-index: 1; right: max(var(--space-6), calc(50vw - 608px)); bottom: 8px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); background: #121417cc; padding: 2px 8px; border-radius: var(--radius-sm); }
/* The stone panel texture (gfx-stone-texture, shipped with the blocks) */
.sp-stone { background-color: var(--surface-dark-raised); background-image: linear-gradient(#202123e3, #202123e3), url("../../data/species-blocks/art/gfx-stone-texture-900.webp"); background-size: cover, 900px auto; background-position: center; }

/* Quick facts */
.sp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.sp-fact { position: relative; padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 22px + var(--space-3)); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); min-width: 0; margin-bottom: -1px; }
/* The icon sits in the dt (a dl's div may hold only dt and dd: launch checks 2026-10-14), placed in its own column. */
.sp-fact svg { position: absolute; left: var(--space-5); top: calc(var(--space-4) + 2px); color: var(--accent-on-dark); }
.sp-fact:nth-child(3n) { border-right: 0; }
.sp-fact dt { margin: 0; }
.sp-fact dd { margin: 2px 0 0; }
.sp-fact dt, .sp-fact dd { min-width: 0; overflow-wrap: anywhere; }

/* In-content ad band (placeholders in the preview) */
.sp-adband { padding: var(--space-7) 0; display: flex; justify-content: center; }
.sp-adband .dn-ad { margin: 0; }
.sp-ad-mobile { display: none; }
.sp-ad-size { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--text-muted-on-dark); }

/* Railed region */
/* Railed region (board): Bones and fossil record, About and What we don't know yet on Panel Slate, with the
   300 px rail beside them; the ad is sticky (top 88 px) for the whole region. In the Layout: dn-site.css. */
.sp-railed { display: flex; gap: var(--space-7); align-items: stretch; }
.sp-main { flex: 1 1 auto; min-width: 0; }
.sp-rail { flex: 0 0 300px; padding: var(--space-7) 0; }
.sp-rail .dn-ad { margin: 0; position: sticky; top: 88px; }
.dn-lc-railed .fusion-column-wrapper { position: relative; isolation: isolate; }

/* Bones */
.sp-bones { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.sp-spec { background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--space-5); }
.sp-spec.sp-spec h3 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 22px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--text-on-dark); }
.sp-spec p { margin: 0 0 var(--space-2); font-size: 15px; line-height: 24px; }
.sp-spec p:last-child { margin-bottom: 0; }
.sp-spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; line-height: 22px; }
.sp-spec dd { margin: 0; }
.sp-empty-line { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--surface-dark-raised); border: 1px dashed var(--line-dark); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); color: var(--text-muted-on-dark); font-size: 15px; line-height: 24px; }
.sp-empty-line svg { flex: none; margin-top: 1px; }
.sp-empty-line p { margin: 0; }

/* About */
.sp-prose { max-width: 720px; }
.sp-prose.sp-prose h3 { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 24px; margin: var(--space-6) 0 var(--space-2); color: var(--text-on-dark); }
.sp-prose.sp-prose h3:first-child { margin-top: 0; }
.sp-prose p { margin: 0 0 var(--space-3); color: var(--text-on-dark); }

/* Lived alongside */
.sp-groups { display: flex; flex-direction: column; gap: var(--space-5); }
.sp-group-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.sp-group-head.sp-group-head h3 { margin: 0; }
.sp-group-note { margin: 0 0 12px; font-size: 14px; line-height: 20px; }
.sp-match { font-family: var(--font-heading); font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-sm); }
.sp-match-strong { background: var(--action); color: var(--on-action); }
.sp-match-loose { border: 2px dashed var(--fossil-stone); padding: 2px 7px; background: var(--surface-dark); color: var(--text-on-dark); }
.sp-match-kin { border: 2px solid var(--bone-white); padding: 2px 7px; background: var(--surface-dark); color: var(--text-on-dark); }
.sp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.sp-chip { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-md); text-decoration: none; min-height: 56px; height: 100%; }
.sp-chip:hover { border-color: var(--action); }
/* Each kind of match has its own outline (core 0.14.2, Ben 2026-10-14), repeated by the label beside its heading, so
   colour is never the only signal (the heading, the label's words and the line style differ too): Same time and place
   in Fossil Stone, dashed, like its "Looser match" label; Relatives in Bone White, solid, like its "By classification"
   label; Found together keeps the plain card edge under its orange "Strongest evidence" label. Both outlines are over
   3:1 against the chip and the section (non-text contrast, WCAG 1.4.11); the labels are Bone White on Prehistoric Slate. */
.sp-rel-place .sp-chip { border: 2px dashed var(--fossil-stone); padding: calc(var(--space-3) - 1px); }
.sp-rel-kin .sp-chip { border: 2px solid var(--bone-white); padding: calc(var(--space-3) - 1px); }
.sp-rel-place .sp-chip:hover, .sp-rel-kin .sp-chip:hover { border-color: var(--action); }
.sp-chip svg.sil { flex: none; width: 52px; height: 32px; fill: var(--stone-brown); }
/* Thumbnails (item 8): the approved artwork cutout, else the first fossil photo, else the group artwork */
.sp-thumb { flex: none; width: 72px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); overflow: hidden; }
.sp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-thumb.is-cut img { object-fit: contain; }
.sp-thumb:not(:has(img)) svg.sil { width: 52px; }
.sp-chip-t { min-width: 0; }
.sp-chip .sp-chip-cr { margin-top: 2px; font-size: 11px; line-height: 14px; overflow-wrap: anywhere; }
.sp-chip .sil-none { flex: none; width: 52px; display: flex; justify-content: center; }
.sp-chip > span:last-child { min-width: 0; }
.sp-chip b { display: block; font-family: var(--font-name, "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif); font-weight: 700; font-style: italic; font-size: 18px; line-height: 20px; overflow-wrap: break-word; }
.sp-chip small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
/* "See all": a secondary button (core 0.14.2): 44 px tall at least, the design system's focus ring (bundle.css). */
.sp-more.dn-btn { display: inline-flex; justify-content: center; min-height: 44px; margin-top: 12px; max-width: 100%; text-align: center; white-space: normal; cursor: pointer; }

/* Discovery */
.sp-disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.sp-naming { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.sp-naming svg { color: var(--accent-on-dark); flex: none; }
.sp-naming p { margin: 0; font-size: 15px; line-height: 24px; }

/* Sources */
.sp-sources { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); }
.sp-sources.sp-sources h3 { margin-bottom: 12px; }
.sp-srclist { margin: 0; padding: 0 0 0 28px; font-size: 14px; line-height: 22px; }
.sp-srclist li { margin-bottom: var(--space-2); padding-left: 4px; overflow-wrap: anywhere; }
.sp-srclist li::marker { font-family: var(--font-heading); font-weight: 700; color: var(--accent-on-dark); }
.sp-credits { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 22px; }
.sp-credits li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line-dark); }
.sp-review { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-top: var(--space-6); padding: var(--space-4) var(--space-5); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.sp-review > span:first-child { font-size: 14px; line-height: 20px; }
.sp-review .dn-fact-label { margin-right: 8px; }
.sp-review .sp-gap { flex: 1; }
.sp-citebox { margin-top: var(--space-4); padding: var(--space-4); background: var(--surface-dark); border: 1px solid var(--border-control-dark); border-radius: var(--radius-sm); font-size: 13px; line-height: 20px; color: var(--text-on-dark); }
.sp-citebox p { margin: 0 0 10px; overflow-wrap: anywhere; }
.sp-citebox .dn-fact-label { margin: 0 0 6px; }
.sp-citebox .dn-btn { padding: 8px 16px; }
.sp-copied { margin-left: var(--space-3); font-size: 13px; color: var(--text-muted-on-dark); }

/* Previous / next */
.sp-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-6) 0; }
.sp-pn a { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-md); text-decoration: none; min-height: 72px; min-width: 0; }
.sp-pn a.next { justify-content: flex-end; text-align: right; grid-column: 2; }
.sp-pn a > svg:not(.sil) { flex: none; color: var(--accent-on-dark); }
.sp-pn svg.sil { width: 64px; height: 38px; fill: var(--stone-brown); flex: none; }
.sp-pn .dn-fact-label { display: block; }
.sp-pn b { font-family: var(--font-name, "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif); font-weight: 700; font-style: italic; font-size: 20px; overflow-wrap: break-word; }
/* Layout v2's previous / next names (.sp2-pn-t b) stay Barlow Condensed Black at 34 px on desktop; on phones (24 px) they
   take the name face like every species name under about 32 px (Names-Type board, note n-names). */
@media (max-width: 760px) { .sp2-pn-card .sp2-pn-t b { font-family: var(--font-name, "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif); font-weight: 700; overflow-wrap: break-word; } }

/* Footer */
.sp-footer { padding: var(--space-6) 0 0; }
.sp-footer .row1 { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; align-items: center; padding-bottom: var(--space-5); }
.sp-footer .row1 > div { display: flex; flex-direction: column; gap: 12px; }
.sp-footer .row2 { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding: 14px 0 20px; }
.sp-footer .dn-footer-links { display: flex; gap: 22px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.sp-footer .dn-signup { display: flex; flex-direction: column; gap: 8px; max-width: 440px; flex: 1 1 320px; }
.sp-footer .srow { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-footer .srow .dn-field { flex: 1 1 200px; min-width: 0; }

@media (max-width: 760px) {
  .sp-wrap { padding: 0 var(--space-4); }
  .sp-nav { display: none; }
  .sp-header .sp-wrap { gap: var(--space-3); justify-content: space-between; min-height: 64px; }
  .sp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-fact { padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 22px + var(--space-3)); }
  .sp-fact svg { left: var(--space-4); top: calc(var(--space-3) + 2px); }
  .sp-fact:nth-child(3n) { border-right: 1px solid var(--line-dark); }
  .sp-fact:nth-child(2n), .sp-fact:last-child:nth-child(odd) { border-right: 0; }
  .sp-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sp-tab-ic { display: none; }
  .sp-tabs a { flex-direction: row; padding: 16px 12px 13px; }
  .sp-tabs .sp-wrap { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .sp-sec { scroll-margin-top: 56px; padding: var(--space-6) 0; }
  .sp-sec { padding-block: calc(var(--dn-section-gap) * .5); }
  .sp-ad-desk { display: none; }
  .sp-ad-mobile { display: block; }
  .sp-sources, .sp-disc { grid-template-columns: minmax(0, 1fr); }
  .sp-chips { grid-template-columns: minmax(0, 1fr); }
  .sp-pn { grid-template-columns: minmax(0, 1fr); }
  .sp-pn a.next { grid-column: auto; }
  .sp-footer .srow { flex-direction: column; }
  .sp-footer .srow .dn-field { flex: 0 0 auto; }
}

/* ---------- Blocks from approval sheet rows 1 and 20 (At a glance, What we don't know yet, fossil record,
   Did you know?, group card, group at a glance, Save PDF fact sheet). Built from the written hand-offs in
   docs/DECISIONS.md with the design system's tokens and dn- classes; no new colours. ---------- */
/* At a glance (source-tier boards, row 20): one paragraph on the green panel */
.sp-ataglance { max-width: 860px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--jurassic-green); border: 1px solid #2c5a41; }
.sp-ag-p { margin: 0; font-size: 17px; line-height: 28px; color: var(--bone-white); }
.sp-ag-note { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: #c9d6cc; }
/* How to say the genus name (core 0.19.9): the respelling as printed, its source line, the symbols label and the other sources */
.sp-ag-say { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(240, 233, 214, .22); font-size: 14px; line-height: 22px; color: var(--bone-white); }
.sp-ag-say-l { font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; }
.sp-ag-say-t { font: 900 22px/1.2 var(--font-display); letter-spacing: .02em; overflow-wrap: anywhere; }
.sp-ag-say-sym, .sp-ag-say-src, .sp-ag-say-other { display: block; }
.sp-ag-say-sym, .sp-ag-say-other { color: #c9d6cc; }
.sp-ag-say-src a:not(.sp-cite) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Did you know (board: on the stone panel at the top of About) */
.sp-dyk { max-width: 720px; margin: 0 0 var(--space-5); padding: 16px 20px; border: 1px solid var(--line-dark); border-left: 4px solid var(--action); border-radius: var(--radius-md); }
.sp-dyk-h { margin: 0 0 6px; font-family: var(--font-heading); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-dark); }
.sp-dyk-t { margin: 0; font-size: 18px; line-height: 28px; }

/* What we don't know yet (source-tier boards) */
.sp-unknowns { max-width: 860px; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--prehistoric-slate); border: 1px solid var(--line-dark); border-left: 4px solid var(--fossil-stone); }
.sp-unk-intro { margin: 0 0 12px; font-size: 14px; line-height: 22px; color: #e4dccb; }
.sp-unk-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.sp-unk-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface-dark-raised); border: 1px solid #2c2d30; }
.sp-unk-list .dn-fact-label { font-size: 13px; color: var(--bone-white); }
.sp-unk-why { font-size: 13px; line-height: 19px; color: var(--fossil-stone); }

/* Fossil record panel (board: inside Bones and fossil record) */
.sp-fr { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); margin-bottom: var(--space-3); align-items: stretch; }
.sp-fr-strip { display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: var(--radius-md); overflow: hidden; }
.sp-fr-strip > div { flex: 1 1 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.sp-fr-strip > div + div { border-top: 1px solid var(--line-dark); }
.sp-fr-strip b { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 36px; color: var(--accent-on-dark); }
.sp-fr-strip > div > span { font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); }
.sp-fr-sparse { grid-template-columns: minmax(0, 1fr); }
.sp-fr-sparse .sp-fr-strip { flex-direction: row; }
.sp-fr-sparse .sp-fr-strip > div + div { border-top: 0; border-left: 1px solid var(--line-dark); }
.sp-fr-chart { margin: 0; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: var(--prehistoric-slate); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-vbars { display: flex; align-items: flex-end; gap: 3px; height: 112px; border-bottom: 1px solid var(--line-dark); margin-top: 4px; }
.sp-vbars > span { flex: 1 1 0; min-width: 2px; background: var(--fossil-stone); border-radius: 3px 3px 0 0; }
.sp-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sp-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 2px 8px; align-items: center; font-size: 12px; line-height: 16px; }
.sp-hbars .lbl { grid-column: 1 / -1; color: var(--text-on-dark); }
.sp-hbars .track { height: 10px; }
.sp-hbars .bar { display: block; height: 10px; min-width: 2px; background: var(--fossil-stone); border-radius: 0 4px 4px 0; }
.sp-hbars .val { text-align: right; color: var(--text-muted-on-dark); }
.sp-fr-note { margin: 0 0 var(--space-5); }
.sp-glance-ct { 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); }
.sp-glance-axis { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.sp-glance-small { margin: 0; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.sp-stage-ends { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 14px; color: var(--text-muted-on-dark); }

/* Classification (board): the tree and the group artwork card on the left, "[Family] at a glance" in 300 px on the right */
.sp-class-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-7); align-items: start; }
.sp-class-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.sp-class-main { min-width: 0; }
.sp-groupart { margin-top: var(--space-6); max-width: 720px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--surface-dark-raised); overflow: hidden; }
.sp-groupart-fig { margin: 0; }
.sp-groupart-fig > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--prehistoric-slate); }
.sp-groupart-fig figcaption { padding: 8px var(--space-5) 0; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.sp-groupart-body { padding: var(--space-3) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sp-groupart-h { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 28px; }
.sp-groupart-h .dn-mark { flex: none; margin-top: 7px; }
.sp-groupart-t { display: flex; flex-direction: column; gap: 2px; }
.sp-groupart-sci { font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 18px; color: var(--text-muted-on-dark); }
.sp-groupart-line { margin: 0; font-size: 15px; line-height: 24px; }
.sp-groupart .dn-link-more { margin-top: 4px; }
.sp-glance { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); min-width: 0; }
.sp-glance-h { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 22px; letter-spacing: .04em; text-transform: uppercase; }
.sp-glance-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.sp-glance-stats > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-glance-stats > div + div { border-left: 1px solid var(--line-dark); }
.sp-glance-stats b { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 30px; color: var(--accent-on-dark); overflow-wrap: anywhere; }
.sp-glance-stats span { font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.sp-glance-map, .sp-glance-chart { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-glance-mapbox { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-dark); background: #25272b; }
.sp-glance-mapbox svg { display: block; width: 100%; height: auto; }
.sp-gg-land { fill: #3b3e43; }
.sp-gg-dots, .sp-gg-mine { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-gg-dots { stroke: var(--fossil-stone); stroke-width: 6px; }
.sp-gg-mine { stroke: var(--action); stroke-width: 10px; }
.sp-glance-map figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.sp-glance-map figcaption > span:first-child { color: var(--text-on-dark); }
.sp-glance-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-glance-key i, .sp-glance-axis i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sp-glance-key i.me, .sp-glance-axis i.me { background: var(--action); }
.sp-glance-key i.oth { background: var(--fossil-stone); margin-left: 8px; }
.sp-glance-key i.oth:first-child { margin-left: 0; }
.sp-stage-cols { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid var(--line-dark); }
.sp-stage-cols > span { flex: 1 1 0; min-width: 3px; background: var(--fossil-stone); border-radius: 3px 3px 0 0; }
.sp-stage-cols > span.is-me { background: var(--action); }
.sp-stage-strip { display: flex; gap: 2px; }
.sp-stage-strip > span { height: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font-size: 11px; line-height: 14px; color: var(--text-on-dark); background: #3b3e43; border-radius: 2px; }

/* Gallery (board): approved fossil photos with their credit lines */
.sp-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.sp-gal { margin: 0; min-width: 0; }
.sp-gal-img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background-color: var(--surface-dark-raised); overflow: hidden; }
.sp-gal-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-gal figcaption { font-size: 12px; line-height: 18px; color: var(--text-muted-on-dark); margin-top: 6px; overflow-wrap: anywhere; }
.sp-gal figcaption span { display: block; color: var(--text-on-dark); font-style: italic; }
.sp-gal figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.sp-print { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.sp-print[hidden] { display: none; }
.sp-print small { font-size: 13px; line-height: 18px; }
.sp-hero-text .sp-print { margin-top: var(--space-2); }

/* Fact sheet: the page's print layout only (hidden on screen, and so is its Layout container). */
.sp-factsheet { display: none; }
@media screen { .fusion-fullwidth:has(.sp-factsheet) { display: none !important; } }

@media (max-width: 1023px) {
  .sp-railed { display: block; }
  .sp-rail { display: none; }
  .sp-class-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .sp-fr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-fr-strip { grid-column: 1 / -1; flex-direction: row; }
  .sp-fr-strip > div + div { border-top: 0; border-left: 1px solid var(--line-dark); }
  .sp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sp-crumbs .sp-wrap, .sp-hero .sp-wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .sp-hero, .sp-hero .sp-wrap { min-height: 0; }
  .sp-hero { background: var(--prehistoric-slate); }
  .sp-hero-img, .sp-hero-scrim, .sp-hero-credit { display: none; }
  .sp-hero .sp-wrap { flex-direction: column; align-items: stretch; padding-top: 0; padding-bottom: 0; gap: var(--space-4); }
  .sp-hero-name.sp-hero-name { font-size: 52px; line-height: 52px; }
  /* the image frame runs full width at the top; the landscape sits faded behind the title block */
  .sp-hero-frame { order: -1; flex: none; margin: 0 calc(var(--space-4) * -1); }
  .sp-hero-pic { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .sp-hero-frame figcaption { margin: 0 var(--space-4); }
  .sp-hero-frame-cut { gap: 8px; }
  .sp-hero-frame-cut .sp-hero-cut { height: 240px; background: linear-gradient(180deg, #12141700 60%, #121417b3 100%), var(--hero-bg) 58% 60% / cover no-repeat; padding: 20px 16px 6px; box-sizing: border-box; }
  .sp-hero-frame-cut .il, .sp-hero-frame .il-links { margin: 0 var(--space-4); }
  .il-pop { width: 330px; }
  .sp-hero-text { position: relative; isolation: isolate; margin: 0 calc(var(--space-4) * -1); padding: var(--space-5) var(--space-4) var(--space-4); }
  .sp-hero-text::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #121417 0%, #121417bf 26%, #121417b3 100%), var(--hero-bg) 58% 45% / cover no-repeat; }
  .sp-hero-credit-m { display: block; align-self: flex-end; margin-top: var(--space-2); font-size: 11px; line-height: 14px; color: var(--text-muted-on-dark); background: #121417cc; padding: 2px 6px; border-radius: var(--radius-sm); }
  .sp-hero-actions .sp-print { flex: 1 1 100%; }
  .sp-hero-actions .sp-dl { flex: 1 1 100%; justify-content: center; }
  .sp-sec-ic { width: 24px; height: 24px; margin-right: 10px; vertical-align: -5px; }
  .sp-strata { height: 72px; }
  .sp-strata-credit { right: var(--space-4); bottom: 6px; font-size: 11px; }
  .sp-land-credit { font-size: 11px; bottom: 6px; }
  .sp-fr, .sp-unk-list { grid-template-columns: minmax(0, 1fr); }
  .sp-fr-strip > div { padding: 12px; }
  .sp-fr-strip b { font-size: 28px; line-height: 30px; }
  .sp-dyk-t { font-size: 16px; line-height: 26px; }
  .sp-ataglance, .sp-unknowns { padding: 16px; }
  .sp-ag-p { font-size: 16px; line-height: 26px; }
  .sp-groupart { margin-top: var(--space-5); }
  .sp-groupart-body { padding: var(--space-3) var(--space-4) var(--space-4); }
  .sp-groupart-fig figcaption { padding: 8px var(--space-4) 0; }
  .sp-groupart-h { font-size: 20px; line-height: 26px; }
  .sp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  @page { size: auto; margin: 0; }   /* the printer's own paper: the 186 x 255 mm sheet fits A4 and US Letter */
  /* Print only the fact sheet: everything that neither holds it nor sits inside it is left out, and the
     elements around it lose their spacing, so the sheet is the one page whatever theme wraps it. */
  body:has(.sp-factsheet) *:not(:has(.sp-factsheet)):not(.sp-factsheet):not(.sp-factsheet *) { display: none !important; }
  body:has(.sp-factsheet), body:has(.sp-factsheet) *:has(.sp-factsheet) { display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; width: auto !important; max-width: none !important; min-height: 0 !important; height: auto !important; overflow: visible !important; transform: none !important; }
  .sp-factsheet { display: grid !important; box-sizing: border-box; width: 186mm; height: 255mm; margin: 12mm auto 0; overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 4mm;
                  background: #fff; color: #121417; -webkit-print-color-adjust: exact; print-color-adjust: exact; font: 9.2pt/1.42 var(--font-body); }
  .sp-factsheet * { box-sizing: border-box; color: inherit; }
  .sp-fs-top { border-bottom: 2.5pt solid var(--sunset-orange); padding-bottom: 2mm; }
  .sp-fs-top p { margin: 0; }
  .sp-factsheet .sp-fs-brand { font: 700 8pt var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: #5b5f66; }
  .sp-factsheet .sp-fs-name { font: italic 900 28pt/1.05 var(--font-display); }
  .sp-fs-chips { display: flex; gap: 2mm; flex-wrap: wrap; margin-top: 1.5mm; }
  .sp-fs-chip { display: inline-flex; align-items: center; gap: 1.2mm; padding: .6mm 2mm; border-radius: 1mm; background: #f1ede4; font: 700 7.5pt var(--font-heading); letter-spacing: .04em; text-transform: uppercase; }
  .sp-fs-hero { display: flex; gap: 5mm; align-items: flex-start; }
  .sp-fs-art { margin: 0; flex: 0 0 70mm; }
  .sp-fs-art img { display: block; width: 70mm; height: 39mm; object-fit: cover; border-radius: 1.5mm; }
  .sp-fs-art.is-cut img { object-fit: contain; object-position: center bottom; background: #f1ede4; }   /* the side view, whole */
  .sp-fs-art.is-sil svg { display: block; width: 70mm; height: 39mm; padding: 3mm 8mm 2mm; border-radius: 1.5mm; background: #f1ede4; fill: #6b4f2e; }
  .sp-factsheet .sp-fs-art figcaption { font-size: 6.5pt; line-height: 1.3; color: #5b5f66; margin-top: 1mm; }
  .sp-fs-art .sp-art-tag { font-size: 6pt; padding: 0 1mm; border-color: #d9d2c3; }
  .sp-fs-facts { margin: 0; flex: 1 1 auto; display: grid; grid-template-columns: 30mm 1fr; gap: 1.2mm 3mm; }
  .sp-factsheet .sp-fs-facts dt { font: 700 7pt var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: #5b5f66; padding-top: .5mm; }
  .sp-fs-facts dd { margin: 0; }
  .sp-fs-body { display: grid; grid-template-columns: minmax(0, 1fr) 70mm; gap: 6mm; min-height: 0; overflow: hidden; }
  .sp-fs-main, .sp-fs-side { min-width: 0; min-height: 0; overflow: hidden; }
  /* Dark at AA whatever the theme's heading colours (they printed pale on staging): slate on white, 18:1. */
  html body .sp-factsheet.sp-factsheet h3 { margin: 0 0 1.5mm; font: 700 8.5pt var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: #121417 !important; opacity: 1 !important; }
  .sp-fs-main.sp-fs-main > h3:not(:first-child) { margin-top: 3mm; }
  .sp-factsheet p { margin: 0 0 2mm; }
  .sp-factsheet sup { font-size: 6pt; color: #a24d08; }
  .sp-fs-glance { margin: 0; padding-left: 4mm; }
  .sp-fs-glance li { margin-bottom: 1mm; }
  .sp-factsheet .sp-fs-src { margin: 0; padding-left: 5mm; font-size: 6.6pt; line-height: 1.35; color: #3a3d42; }
  .sp-fs-box { border: .4pt solid #d9d2c3; border-radius: 1.5mm; padding: 2.5mm 3mm; margin-bottom: 3mm; }
  .sp-factsheet .sp-fs-box p { font-size: 7pt; color: #5b5f66; margin: 1.5mm 0 0; }
  .sp-fs-nums { display: flex; gap: 4mm; }
  .sp-factsheet .sp-fs-nums b { display: block; font: 900 17pt/1 var(--font-display); color: #a24d08; }
  .sp-factsheet .sp-fs-nums span { font: 700 6.5pt var(--font-heading); text-transform: uppercase; letter-spacing: .06em; color: #5b5f66; }
  .sp-fs-map { display: block; width: 100%; height: auto; }
  .sp-fs-land { fill: #e6e0d4; }
  .sp-fs-dots { fill: none; stroke: var(--sunset-orange); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .sp-factsheet .sp-fs-foot { border-top: .4pt solid #d9d2c3; padding-top: 1.5mm; font-size: 6.5pt; color: #5b5f66; display: flex; justify-content: space-between; gap: 4mm; }
  .sp-factsheet .dn-mark path { fill: currentColor; }
}

/* ---------- Species page layout v2 (Claude Design, overnight 2026-10-13; boards V2-TRex, V2-Sparse, V2-Velociraptor,
   V2-PrevNext and V2-Bands; hand-off n-v2; styles from design/species-page/source/sp2v/assets/sp2/layout2.css).
   Same blocks and rules, a new arrangement printed by the server (scripts/build_preview_species.py, layout_v2()):
   every row is full width or two balanced columns, short summaries before detail, and neighbouring bands never share
   a surface. Scoped to .sp2: the preview's page wrapper and each block's wrapper in WordPress. ---------- */
:root { --sp2-gap: 32px; }

/* Rule 4, section separation: the rows alternate Slate (#121417) and Band (#24262A, token surface-band), full bleed,
   each with a 1 px Line Dark top edge; the server counts the rows that render. The landscape bands keep their art and
   are a tone of their own. Cards flip with the band: Slate fills on Band, Raised (#202123) on Slate. */
.sp2 .sp2-b { position: relative; isolation: isolate; }
.sp2 .sp2-b::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: var(--prehistoric-slate); border-top: 1px solid var(--line-dark); }
.sp2 .sp2-b.is-band::before { background: var(--surface-band, #24262a); }
.sp2 .sp-sec-land::before { border-top: 1px solid var(--line-dark); }
.sp2 .sp2-b.is-band :is(.sp-spec, .sp-citebox, .sp-chip, .sp-empty-line, .sp-naming, .sp-gal-img, .sp-fr-chart, .sp-facts, .sp-glance, .sp-groupart, .sp2-toc,
  .sp2-credits-card, .sp2-endbar, .sp2-pn-card, .sp-unknowns, .sp-map-wrap) { background-color: var(--prehistoric-slate); }
.sp2 .sp2-b.is-band .sp-unk-list li { background-color: var(--surface-dark-raised); }
.sp2 .sp2-b:not(.is-band) :is(.sp-fr-chart, .sp-unknowns) { background-color: var(--surface-dark-raised); }
.sp2 .sp2-b:not(.is-band) .sp-unk-list li { background-color: var(--prehistoric-slate); }
/* the strata dividers fade into the bands either side (--sf above, --st below, set by the server) */
.sp2 .sp-strata::after { background: linear-gradient(180deg, var(--sf, #121417) 0%, transparent 34%, transparent 66%, var(--st, #121417) 100%); }

/* ---------- Rows ---------- */
.sp2-row { display: grid; gap: var(--sp2-gap); }
.sp2-row > .sp-sec { min-width: 0; }

/* 1. Summary row: At a glance (7) beside Quick facts (5), equal height; facts two per row */
.sp2-summary { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; padding: calc(var(--dn-section-gap) * .75) 0; }
.sp2-summary.is-one { grid-template-columns: minmax(0, 1fr); }
.sp2-summary > .sp-sec { padding: 0; display: flex; flex-direction: column; }
.sp2-summary .sp-ataglance { max-width: none; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.sp2-summary:not(.is-one) .sp-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1; }
.sp2-summary:not(.is-one) .sp-fact { border-right: 1px solid var(--line-dark); padding: 14px 16px 14px calc(16px + 22px + 12px); }
/* the icon sits in the dt (valid dl, launch checks), absolutely in the left gutter the padding keeps */
.sp2-summary:not(.is-one) .sp-fact svg { left: 16px; top: 16px; }
.sp2-summary:not(.is-one) .sp-fact:nth-child(2n) { border-right: 0; }

/* 2a. Bones and fossil record: full width, the three panels across */
.sp2-bones > .sp-sec { padding: calc(var(--dn-section-gap) * .75) 0; }
.sp2-bones .sp-fr { grid-template-columns: 220px minmax(0, 1.2fr) minmax(0, 1fr); }

/* 2b. Reading row: (sparse Bones,) About and What we don't know yet (8) beside the aside (4) */
.sp2 .sp-railed.sp2-read { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--sp2-gap); align-items: start; }
.sp2 .sp2-read .sp-main { min-width: 0; }
.sp2 .sp2-read .sp-unknowns { max-width: 760px; }
.sp2-aside { align-self: stretch; display: flex; flex-direction: column; gap: 24px; padding: var(--space-7) 0; min-width: 0; }
.sp2-stickzone { flex: 1 1 auto; }
.sp2-stick { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.sp2-toc { padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: var(--surface-dark-raised); }
.sp2-toc .dn-fact-label { margin: 0 0 8px; }
.sp2-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp2-toc a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; margin: 0 -10px; border-radius: var(--radius-sm); color: var(--text-on-dark); text-decoration: none; font-size: 15px; }
.sp2-toc a::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--line-dark); flex: none; }
.sp2-toc a:hover, .sp2-toc a:focus-visible { background: #ffffff0d; color: var(--accent-on-dark); }
.sp2-toc a:hover::before { background: var(--action); }
.sp2-toc a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring-dark); }
.sp2-aside-ad .dn-ad { margin: 0; }
.sp2-aside-ad .dn-ad-frame { height: 600px; max-width: 300px; }
.sp2-aside-ad .sp2-ad-short .dn-ad-frame { height: 250px; }

/* 3. The group card beside the group at a glance (blocks group-card and group-glance; layout v3 takes them off the
   species page, see below) */
.sp2-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.sp2-groups.is-one { grid-template-columns: minmax(0, 1fr); }
.sp2 .sp2-groups .sp-groupart { margin: 0; max-width: none; display: flex; flex-direction: column; }
.sp2-groups .sp-groupart-fig > img { aspect-ratio: 2 / 1; }
.sp2-groups .sp-groupart-body { flex: 1; display: flex; flex-direction: column; }
.sp2-groups .sp-groupart-body > :last-child { margin-top: auto; }
/* the group at a glance as a card the same height as the group card: stats and map left, the stage chart right */
.sp2 .sp2-groups .sp-glance { position: static; width: auto; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; column-gap: 24px; row-gap: 14px; align-content: start; padding: 22px 24px; }
.sp2-groups .sp-glance > * { grid-column: 1 / -1; margin: 0; }
.sp2-groups .sp-glance > .sp-glance-stats { grid-column: 1; grid-row: 2; }
.sp2-groups .sp-glance > .sp-glance-map { grid-column: 1; grid-row: 3; }
.sp2-groups .sp-glance > .sp-glance-chart { grid-column: 2; grid-row: 2 / 4; }
.sp2-groups .sp-glance > .sp-glance-wider { align-self: end; }
.sp2-groups .sp-glance > a.dn-link-more { justify-self: start; }

/* 5. Sources and credits: the list (7) beside the credits (5); species.js shows 8, then "Show all n sources" */
.sp2 .sp2-sources { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp2-gap); align-items: start; }
.sp2-credits-card { padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--surface-dark-raised); min-width: 0; }
.sp2-sources > .sp2-credits-card:last-child { position: sticky; top: 88px; }
.sp2-sources .sp-credits li:last-child { border-bottom: 0; }
.sp-srclist.is-collapsed > li.sp2-more { display: none; }
.sp2-src-all { margin-top: 6px; min-height: 44px; }

/* "This page" card (item 3; was the Last reviewed bar): one primary with its hint right under it, two equal
   secondaries, every button 48 px; the citation opens inside the card */
.sp2-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sp2-endbar { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--surface-dark-raised); }
.sp2-endbar.is-under { margin-top: var(--space-5); max-width: 560px; }
.sp2-end-h { margin: 0; }
.sp2-reviewed { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-on-dark); }
.sp2-reviewed .dn-fact-label { margin: 0; color: var(--text-muted-on-dark); }
.sp2-pdf .sp-print:not([hidden]) { display: flex; flex-direction: column; gap: 6px; }
.sp2 .sp2-pdf .sp-pdf { width: 100%; justify-content: center; min-height: 48px; }
.sp2-pdf .sp-dl-meta { text-align: center; }
.sp2-end-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sp2-end-two > :only-child { grid-column: 1 / -1; }
.sp2 .sp2-sec-btn { min-height: 48px; padding: 0 10px; letter-spacing: .04em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 16px; box-sizing: border-box; }
.sp2 .sp2-sec-btn[hidden] { display: none; }
.sp2-endbar .sp-citebox { margin: 0; }

/* Previous / next (item 2): big cards with the neighbour's picture, the name large, group and epoch chips, an orange
   arrow disc; hover lifts with an orange glow, keyboard focus adds the ring, reduced motion keeps only border and glow */
.sp2 .sp2-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: calc(var(--dn-section-gap) * .75) 0; }
.sp2-pn-card { position: relative; display: flex; align-items: center; gap: 20px; min-height: 148px; min-width: 0; box-sizing: border-box; padding: 16px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--surface-dark-raised); color: var(--text-on-dark); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sp2-pn-card.is-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.sp2-pn-pic { position: relative; flex: none; width: 196px; height: 116px; border-radius: var(--radius-md); overflow: hidden; background: #0e0f10; }
.sp2-pn-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sp2-pn-pic > svg.sil { position: absolute; inset: 18px 24px; width: calc(100% - 48px); height: calc(100% - 36px); fill: var(--stone-brown); }
/* the cutout on its period ground, as on the species cards: dark radial and an ICS epoch ground line */
.sp2-pn-pic.is-cut { background: radial-gradient(ellipse at 50% 85%, #2c2e31 0%, #1a1b1d 70%); }
.sp2-pn-pic.is-cut img { object-fit: contain; object-position: center bottom; padding: 8px 10px 11px; box-sizing: border-box; }
.sp2-pn-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.sp2-pn-pic.is-cut .sp2-pn-il { bottom: 10px; }
.sp2-pn-il { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: var(--radius-sm); background: #121417e0; font-size: 10.5px; line-height: 15px; color: var(--bone-white); }
.sp2-pn-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp2-pn-card.is-next .sp2-pn-t { align-items: flex-end; }
.sp2-pn-t b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 34px; overflow-wrap: break-word; }
.sp2-pn-t b i { font-style: inherit; }
.sp2-pn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sp2-pn-card.is-next .sp2-pn-chips { justify-content: flex-end; }
.sp2-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--prehistoric-slate); border: 1px solid var(--line-dark); font-size: 12.5px; font-weight: 600; color: var(--text-on-dark); }
.sp2-chip .sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #ffffff40; }
.sp2-pn-disc { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--action); box-shadow: 0 6px 18px #f58a1f40; transition: transform .2s ease; }
.sp2-pn-disc svg { width: 24px; height: 24px; fill: none; stroke: var(--on-action); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp2-pn-card:hover, .sp2-pn-card:focus-visible { transform: translateY(-4px); border-color: var(--action); box-shadow: 0 0 0 1px var(--action), 0 14px 36px #f58a1f33; }
.sp2-pn-card:hover .sp2-pn-pic img, .sp2-pn-card:focus-visible .sp2-pn-pic img { transform: scale(1.05); }
.sp2-pn-card.is-prev:hover .sp2-pn-disc, .sp2-pn-card.is-prev:focus-visible .sp2-pn-disc { transform: translateX(-4px); }
.sp2-pn-card.is-next:hover .sp2-pn-disc, .sp2-pn-card.is-next:focus-visible .sp2-pn-disc { transform: translateX(4px); }
.sp2-pn-card:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--prehistoric-slate), 0 0 0 5px var(--action), 0 14px 36px #f58a1f33; }

/* About pass (addendum 7): section heads, rhythm, the Did you know box and citations (layout v3: no picture) */
.sp2 #about .sp-sec-head { margin-bottom: 20px; }
.sp2 #about .sp-dyk { max-width: 760px; margin: 0 0 36px; padding: 18px 22px 20px; border: 1px solid var(--line-dark); border-left: 4px solid var(--action); border-radius: var(--radius-md); }
.sp2 #about .sp-dyk-h { display: flex; align-items: center; gap: 2px; margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; }
.sp2 #about .sp-dyk-t { font-size: 19px; line-height: 30px; color: var(--bone-white); }
.sp2 .sp-prose { max-width: 700px; }
.sp2 .sp-prose.sp-prose h3 { position: relative; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 21px; line-height: 28px; letter-spacing: .01em; scroll-margin-top: 88px; }
.sp2 .sp-prose.sp-prose h3::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--action); border-radius: 2px; }
.sp2 .sp-prose.sp-prose h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sp2 .sp-prose.sp-prose h3:first-child::before { display: none; }
.sp2 .sp-prose p { margin: 0 0 18px; font-size: 17px; line-height: 29px; }
.sp2 .sp-prose a.sp-cite, .sp2 .sp-dyk a.sp-cite { display: inline-block; min-width: 18px; margin-left: 1px; padding: 0 4px; border-radius: 4px; vertical-align: super; font-family: var(--font-heading); font-weight: 700; font-size: 11px; line-height: 15px; color: var(--accent-on-dark); text-align: center; text-decoration: none; background: #f58a1f1f; }
.sp2 .sp-prose a.sp-cite:hover, .sp2 .sp-dyk a.sp-cite:hover { background: var(--action); color: var(--on-action); }
.sp2 a.sp-cite:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--prehistoric-slate), 0 0 0 4px var(--action); }

@media (max-width: 1100px) {
  .sp2-summary { grid-template-columns: minmax(0, 1fr); }
  .sp2-summary:not(.is-one) .sp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp2-summary:not(.is-one) .sp-fact:nth-child(2n) { border-right: 1px solid var(--line-dark); }
  .sp2-summary:not(.is-one) .sp-fact:nth-child(3n) { border-right: 0; }
  .sp2 .sp-railed.sp2-read { grid-template-columns: minmax(0, 1fr) 300px; }
  .sp2-groups { grid-template-columns: minmax(0, 1fr); }
  .sp2-bones .sp-fr { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); }
  .sp2-pn-pic { width: 150px; height: 96px; }
  /* under 32 px the names take the name face (Names-Type board, note n-names) */
  .sp2-pn-card .sp2-pn-t b { font-family: var(--font-name, "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif); font-weight: 700; font-size: 28px; line-height: 30px; }
}
@media (max-width: 760px) {
  :root { --sp2-gap: 20px; }
  .sp2-summary { padding: calc(var(--dn-section-gap) * .5) 0; }
  /* phones: one fact per row, so names never break mid-word */
  .sp2-summary .sp-facts, .sp2-summary:not(.is-one) .sp-facts { grid-template-columns: minmax(0, 1fr); }
  .sp2-summary .sp-fact, .sp2-summary .sp-fact:nth-child(n) { border-right: 0; grid-column: auto; padding: 12px 14px 12px calc(14px + 22px + 12px); }
  .sp2-summary .sp-fact svg { left: 14px; top: 14px; }
  .sp2-summary .sp-fact > div { overflow-wrap: break-word; }
  .sp2-bones .sp-fr { grid-template-columns: minmax(0, 1fr); }
  /* the aside (contents, rail ad) is not shown */
  .sp2 .sp-railed.sp2-read { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sp2-aside { display: none; }
  .sp2 .sp-prose p { font-size: 16px; line-height: 27px; }
  .sp2 #about .sp-dyk-t { font-size: 17px; line-height: 27px; }
  .sp2 .sp2-groups .sp-glance { grid-template-columns: minmax(0, 1fr); }
  .sp2-groups .sp-glance > * { grid-column: 1 !important; grid-row: auto !important; }
  .sp2 .sp2-sources { grid-template-columns: minmax(0, 1fr); }
  .sp2-sources > .sp2-credits-card:last-child, .sp2-side { position: static; }
  .sp2-end-two { grid-template-columns: minmax(0, 1fr); }
  .sp2 .sp2-pn { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: calc(var(--dn-section-gap) * .5) 0; }
  .sp2 .sp2-pn > span:empty { display: none; }
  .sp2-pn-card { min-height: 0; gap: 12px; padding: 12px 14px; }
  .sp2-pn-card.is-next { justify-content: flex-start; text-align: left; grid-column: auto; }
  .sp2-pn-card.is-next .sp2-pn-t { align-items: flex-start; order: 2; }
  .sp2-pn-card.is-next .sp2-pn-chips { justify-content: flex-start; }
  .sp2-pn-card.is-next .sp2-pn-pic { order: 1; }
  .sp2-pn-card.is-next .sp2-pn-disc { order: 3; margin-left: auto; }
  /* the label stays with the picture on phones (rule 8: AI images are always labelled), as a line under it */
  .sp2-pn-pic { width: 104px; height: auto; }
  .sp2-pn-pic img { position: relative; display: block; height: 72px; }
  .sp2-pn-pic > svg.sil { position: relative; display: block; inset: auto; width: 88px; height: 52px; margin: 10px 8px; }
  .sp2-pn-pic .sp2-pn-ground { bottom: auto; top: 67px; }
  .sp2-pn-il, .sp2-pn-pic.is-cut .sp2-pn-il { position: static; display: block; padding: 3px 6px 4px; border-radius: 0; font-size: 10px; line-height: 13px; }
  .sp2-pn-card .sp2-pn-t b { font-size: 22px; line-height: 25px; }
  .sp2-pn-disc { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp2-pn-card, .sp2-pn-pic img, .sp2-pn-disc { transition: none; }
  .sp2-pn-card:hover, .sp2-pn-card:focus-visible { transform: none; }
  .sp2-pn-card:hover .sp2-pn-pic img, .sp2-pn-card:focus-visible .sp2-pn-pic img, .sp2-pn-card .sp2-pn-disc { transform: none !important; }
}

/* ---------- Layout v2 in the Avada Layout (wp/layouts/dinosaur-content.txt) ----------
   The reading row's container holds [dn_species block="read"] and [dn_ad slot="species-rail"]. From 1,024 px the
   column is one grid: the reading column spans it, the picture and contents fill the aside's zone and the ad sits under
   them, so the sticky picture never runs over the ad. The rail ad is 300 x 250 beside a short write-up. */
.dn-lc-railed .dn-ad-slot--species-rail { position: static; }
.dn-lc-railed:has(.sp2-read:not(.is-long)) .dn-ad-slot--species-rail { --ad-h: 250px; }
.fusion-fullwidth.dn-lc-railed:not(:has(.sp2-read)) { display: none !important; }
@media (min-width: 1024px) {
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read) { display: grid !important; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: 1fr auto; column-gap: var(--sp2-gap); align-items: start; }
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read) > .fusion-text:has(.sp2-read),
  .dn-lc-railed .fusion-text > .sp-page:has(.sp2-read), .dn-lc-railed .sp2 .sp-railed.sp2-read { display: contents; }
  .dn-lc-railed .sp2-read > .sp-main { grid-column: 1; grid-row: 1 / span 2; }
  .dn-lc-railed .sp2-read > .sp2-aside { grid-column: 2; grid-row: 1; padding-bottom: 0; }
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read) > .fusion-text:has(.dn-ad-slot--species-rail) { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: var(--space-7); }
  .dn-lc-railed .dn-ad-slot--species-rail { margin: var(--space-5) 0 0; }
}
/* The in-content ad band shares the band of the row above it (rule 4). */
.fusion-fullwidth.dn-lc-ad-inline { position: relative; isolation: isolate; }
.fusion-fullwidth.dn-lc-ad-inline::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: var(--prehistoric-slate); }
.fusion-fullwidth:has(.sp2-b.is-band) + .fusion-fullwidth.dn-lc-ad-inline::before { background: var(--surface-band, #24262a); }
.sp2 .sp-adband.sp2-b::before { border-top: 0; }

/* ---------- Species page layout v3 (Claude Design, 2026-10-14; boards V3-TRex and V3-Sparse at 1440, 1280 and Mobile;
   hand-off n-v3; styles from design/species-page/source/sp3v/assets/sp3/layout3.css). One image per place: the hero
   has the side view (or, without the species' own images, the generic group silhouette on the period landscape),
   Classification the habitat image (or the group artwork, its only place on the page), About none. Classification in
   two columns: the full tree always open beside the habitat image and a small details card. ---------- */

/* Hero without species art: the generic group silhouette standing on the period landscape, labelled */
.sp3-hero-sil { gap: 10px; align-items: flex-start; }
.sp3-sil { position: relative; align-self: stretch; height: 330px; display: flex; align-items: flex-end; justify-content: center; }
.sp3-sil svg { position: relative; z-index: 1; width: 62%; height: auto; max-height: 92%; }
.sp3-sil path { fill: #121417b3; stroke: var(--fossil-stone); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sp3-hero-sil figcaption { max-width: 100%; font-size: 13px; line-height: 19px; color: var(--bone-white); background: #121417eb; border: 1px solid #ffffff38; padding: 5px 10px; }
.sp3-sil-tag { font-family: var(--font-heading); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fossil-stone); margin-right: 6px; }

/* Classification: the tree left, the habitat image and the details card right; two equal-height columns from 1001 px */
.sp3-class { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: stretch; }
.sp3-tree-col { min-width: 0; }
.sp3-tree-card { height: 100%; box-sizing: border-box; padding: 22px 24px 18px; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background: var(--surface-dark-raised); display: flex; flex-direction: column; }
.sp3-tree-card .sp-tree { flex: 1; margin: 0; }
.sp3-tree-card .sp-tree li > .sp-node { margin: 7px 0; }
.sp3-tree-top { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); font-size: 13px; line-height: 19px; color: var(--text-muted-on-dark); }
.sp3-tree-top i { color: var(--text-on-dark); }
.sp3-tree-card .sp-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
/* the quiet count chip on each group: species in our list (species-clades.json) */
.sp3-ct { display: inline-flex; align-items: center; min-width: 18px; height: 18px; padding: 0 6px; margin-left: 2px; border-radius: 9px; background: #ffffff0f; border: 1px solid #ffffff1f; font: 600 11px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-muted-on-dark); }
.sp-tree a.sp-node:hover .sp3-ct, .sp-tree a.sp-node:focus-visible .sp3-ct { color: var(--text-on-dark); border-color: #ffffff38; }

.sp3-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp3-hab { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sp3-hab-pic { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-dark); background: #1d1f22; }
.sp3-hab-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sp3-hab-tag { position: absolute; left: 10px; bottom: 10px; font-size: 12px; line-height: 16px; color: var(--bone-white); background: #121417d9; padding: 3px 8px; border-radius: var(--radius-sm); }
.sp3-hab figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.sp3-hab figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sp3-il { display: inline-flex; gap: 6px; align-items: flex-start; }
.sp3-il svg { flex: none; width: 12px; height: 12px; margin-top: 2px; fill: var(--action); }

.sp3-facts { flex: 1; padding: 18px 20px 16px; border-radius: var(--radius-md); border: 1px solid var(--line-dark); background: var(--surface-dark-raised); }
.sp3-facts-h.sp3-facts-h { margin: 0 0 6px; font: 700 15px/20px var(--font-heading); letter-spacing: .04em; text-transform: uppercase; color: var(--text-on-dark); }
.sp3-facts-h.sp3-facts-h small { margin-left: 6px; font: 400 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-muted-on-dark); }
.sp3-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; margin: 10px 0 0; }
.sp3-stats > div { display: flex; flex-direction: column; gap: 2px; }
.sp3-stats b { font: 900 30px/30px var(--font-display); color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }
.sp3-stats span { font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.sp3-lived { margin: 6px 0 0; }
/* the age span on the Mesozoic scale: the group in Fossil Stone, this species in orange */
.sp3-span { position: relative; display: block; height: 22px; margin: 8px 0 4px; }
.sp3-span-p { position: absolute; top: 0; height: 14px; box-sizing: border-box; border-left: 1px solid #ffffff2e; padding-left: 4px; font: 600 9px/14px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); overflow: hidden; white-space: nowrap; }   /* core 0.20.2: .42 measured 4.10:1, .5 about 5.3:1 */
.sp3-span::after { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 4px; border-radius: 2px; background: #ffffff14; }
.sp3-span i { position: absolute; top: 16px; height: 6px; border-radius: 3px; z-index: 1; }
.sp3-span i.g { background: var(--fossil-stone); }
.sp3-span i.me { background: var(--action); top: 15px; height: 8px; box-shadow: 0 0 0 2px var(--prehistoric-slate); }
.sp3-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; line-height: 16px; color: var(--text-muted-on-dark); }
.sp3-key i { display: inline-block; width: 12px; height: 6px; border-radius: 3px; }
.sp3-key i.g { background: var(--fossil-stone); }
.sp3-key i.me { background: var(--action); margin-left: 6px; }
.sp3-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 48%); gap: 16px; align-items: start; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.sp3-where p { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-on-dark); }
.sp3-lab { display: block; margin-bottom: 4px; font: 700 11px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.sp3-map { display: block; margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-dark); background: #25272b; }
.sp3-map svg { display: block; width: 100%; height: auto; }
.sp3-src { margin: 10px 0 0; font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.sp3-links { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 22px; margin-top: 10px; }
.sp3-links .dn-link-more { display: inline-block; padding: 6px 0; }
/* Cards flip with the band (rule 4): Slate on Band, Raised on Slate */
.sp2 .sp2-b.is-band :is(.sp3-tree-card, .sp3-facts) { background-color: var(--prehistoric-slate); }

@media (max-width: 1340px) { .sp3-class { gap: 28px; } }
/* 761 to 1000 px: the tree full width, then the image and the details side by side */
@media (max-width: 1000px) { .sp3-class { grid-template-columns: minmax(0, 1fr); } .sp3-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; } }
/* phones: tree, image, details; 11 px indent and 11 px rank text so a 13-level tree fits 400 px */
@media (max-width: 760px) {
  .sp3-class { gap: 20px; }
  .sp3-side { display: flex; }
  .sp3-tree-card { padding: 16px 14px 14px; }
  .sp3-tree-card .sp-tree li > .sp-node { font-size: 12.5px; padding: 5px 8px; gap: 6px; }
  .sp3-tree-card .sp-tree li { padding-left: 11px; }
  .sp3-tree-card .sp-tree li > .sp-node small { font-size: 11px; }
  .sp3-ct { padding: 0 5px; }
  .sp3-where { grid-template-columns: minmax(0, 1fr); }
  .sp3-hero-sil { gap: 8px; }
  .sp3-sil { height: 240px; background: linear-gradient(180deg, #12141700 60%, #121417b3 100%), var(--hero-bg) 58% 60% / cover no-repeat; padding: 20px 16px 6px; box-sizing: border-box; }
  .sp3-hero-sil figcaption { margin: 0 var(--space-4); }
}

/* Lists: the generic group silhouette for species without their own art (the group artwork appears once per page) */
.sp3-thumb-sil { display: flex; align-items: flex-end; justify-content: center; background: #25272b; }
.sp3-tsil { width: 86%; height: auto; margin-bottom: 6%; fill: var(--stone-brown, #6b4f2e); }
.sp3-pn-sil { display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, #12141726 0%, #121417a6 100%), var(--pn-bg, none) center 62% / cover no-repeat; }
.sp3-psil { position: relative; width: 62%; height: auto; margin-bottom: 8%; }
.sp3-psil path { fill: #121417cc; stroke: var(--fossil-stone); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (max-width: 760px) { .sp2-pn-pic.sp3-pn-sil { height: 72px; } .sp2-pn-pic > svg.sp3-psil { width: 64px; margin-bottom: 6px; } }

/* ---------- Core 0.14.2 (Ben's species page edits, 2026-10-14 evening; brief next-prompt-species-page-2026-10-14-evening)
   1. The hero never shows a fossil photo (renderer). 2. Bones and fossil record: a house ad in its empty right column.
   3. Classification's right column: the species gallery (assets/species/species-gallery.css). 4. The credit line under
   the Classification picture wraps cleanly under it at every width. ---------- */

/* 4. The group artwork's credit line (shown when a species has no images at all): plain block flow under the picture,
   wrapping anywhere it must; nothing clipped, nothing laid over it. The gallery's lines: .dn-sg-cap. */
.sp3-hab figcaption { display: block; min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 18px; }
.sp3-hab figcaption .sp3-il { display: flex; }
.sp3-hab figcaption .sp3-il > span { min-width: 0; }
.sp3-hab figcaption > a { display: inline-block; margin-top: 4px; }
.sp3-side > .dn-sg { flex: none; }

/* 2. Bones beside its ad. A sparse record puts Bones in the reading row (layout v2); the column beside it was empty.
   The row (has-bones) wraps Bones and the rest of the column apart, so the ad sits in the right column beside Bones
   only: 300 x 600 from 1,024 px, sticky inside the section (top 88 px), the section at least as tall as the ad's box;
   300 x 250 from 761 px; on phones 300 x 250 under Bones. The rail ad and the contents keep their places under it.
   Preview: the placeholder .sp2-bones-ad; the Layout: [dn_ad slot="species-bones"] in the row's container (below). */
.sp2 .sp-railed.sp2-read.has-bones { grid-template-rows: auto 1fr; }
.sp2-read.has-bones > .sp-main { display: contents; }
.sp2-read.has-bones .sp2-read-bones { grid-column: 1; grid-row: 1; min-width: 0; align-self: stretch; }
.sp2-read.has-bones .sp2-read-rest { grid-column: 1; grid-row: 2; min-width: 0; }
.sp2-read.has-bones > .sp2-bones-ad { grid-column: 2; grid-row: 1; align-self: stretch; padding-top: var(--space-7); }
.sp2-read.has-bones > .sp2-aside { grid-column: 2; grid-row: 2; }
.sp2-bones-ad .dn-ad { position: sticky; top: 88px; margin: 0; }
.sp2-bones-ad .dn-ad-frame { height: 600px; max-width: 300px; }
@media (max-width: 1023px) { .sp2-bones-ad .dn-ad-frame { height: 250px; } }
@media (max-width: 760px) {
  .sp2-read.has-bones > .sp2-bones-ad { grid-column: 1; grid-row: 2; padding: 0 0 var(--space-6); }
  .sp2-read.has-bones .sp2-read-rest { grid-row: 3; }
  .sp2-bones-ad .dn-ad { position: static; max-width: 300px; margin: 0 auto; }
}
/* In the Layout: the reading row's container holds [dn_species block="read"], [dn_ad slot="species-bones"] and
   [dn_ad slot="species-rail"]; with Bones in the row the column wrapper is one grid at every width. The slot keeps its
   reserved box (dn-ads.css), so nothing moves when the ad shows; off, or with no ad, its Text element hides
   (dn-site.css) and Bones simply has the column to itself. */
.dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) { display: grid !important; grid-template-columns: minmax(0, 1fr); column-gap: var(--sp2-gap); align-items: start; }
.dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) > .fusion-text:has(.sp2-read),
.dn-lc-railed .fusion-text > .sp-page:has(.sp2-read.has-bones), .dn-lc-railed .sp2 .sp-railed.sp2-read.has-bones,
.dn-lc-railed .sp2-read.has-bones > .sp-main { display: contents; }
.dn-lc-railed .sp2-read.has-bones .sp2-read-bones { grid-column: 1; grid-row: 1; align-self: stretch; }
.dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) > .fusion-text:has(.dn-ad-slot--species-bones) { grid-column: 1; grid-row: 2; min-width: 0; }
.dn-lc-railed .sp2-read.has-bones .sp2-read-rest { grid-column: 1; grid-row: 3; }
.dn-lc-railed .dn-ad-slot--species-bones { margin: 0 auto var(--space-6); }
@media (min-width: 761px) {
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 1fr auto; }
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) > .fusion-text:has(.dn-ad-slot--species-bones) { grid-column: 2; grid-row: 1; align-self: stretch; padding-top: var(--space-7); }
  .dn-lc-railed .sp2-read.has-bones .sp2-read-rest { grid-row: 2 / span 2; }
  .dn-lc-railed .sp2-read.has-bones > .sp2-aside { grid-column: 2; grid-row: 2; padding-bottom: 0; }
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) > .fusion-text:has(.dn-ad-slot--species-rail) { grid-column: 2; grid-row: 3; align-self: end; padding-bottom: var(--space-7); }
  /* on the column's right edge, lined up with the card below it (staging-vs-boards-2026-10-15 item 5) */
  .dn-lc-railed .dn-ad-slot--species-bones { position: sticky; top: 88px; margin: 0 0 0 auto; }
}
@media (min-width: 1024px) {
  .dn-lc-railed .fusion-column-wrapper:has(.sp2-read.has-bones) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
/* The note on a page not written yet (2026-10-21): the Tip Rex note card under the hero, in the page's width. */
.sp-unwritten { margin-block: 20px 4px; }

/* core 0.20.8: running text keeps a measure of about 72 characters in the 1,700 px wrapper (Ben, 2026-11-15) */
.sp-ag-p, .sp-srclist > li { max-width: 72ch; }

/* core 0.33.0: phones under 640 px (--dn-section-gap 60): the sections keep 40 px, 1.25 x their old 32 */
@media (max-width: 639.98px) { .sp-sec, .sp2-bones > .sp-sec { padding-block: calc(var(--dn-section-gap) * .6667); } .sp2-summary, .sp2 .sp2-pn { padding-block: calc(var(--dn-section-gap) * .6667); } .sp-sec:has(+ .sp-adband) { padding-bottom: var(--space-6); } .sp-adband + .sp-sec { padding-top: var(--space-6); } }
