/* Species page v4 (core 0.16.0): the content model in the species page, to the approved boards V4-TRex-1440 / Mobile,
   V4-Barosaurus and V4-Order option A (Ben 2026-10-16). From the board's layout4.css (design/species-page/source/sp4v/
   assets/sp4/), prefixes v4-, bm-, nt-, with the current V4-States look for the reading layers and block states (the
   redrawn layers-and-states board waits for Ben's approval; restyle then). Loads after species-page.css.
   No "sample length" bars here: they are board-only and never ship. */

.sp4 {
  --v4-dim: #8b8378;          /* greyed text of an empty block (4.9:1 on Prehistoric Slate) */
  --v4-gap: #a99c88;          /* gap lines */
  --v4-dash: #4a4741;         /* dashed outlines of empty blocks */
  --v4-off: #6f6a62;          /* an empty status dot */
  --v4-panel: #17191c;        /* body map, naming timeline, table heads */
}

/* ---------- hero edits: labelled chips; image notes small in the bottom right; side view about 40% larger ---------- */
.v4-chip-l { font-weight: 400; opacity: .8; margin-right: 2px; }
.v4-hero { position: relative; }
.v4-hero .sp-hero-frame-cut { align-self: end; }
.v4-hero .sp-hero-cut { transform: scale(1.4); transform-origin: 100% 100%; }
/* Narrower windows: the side view grows less, so its head stays on screen (the boards are drawn at 1440 and 400). */
@media (max-width: 1360px) { .v4-hero .sp-hero-cut { transform: scale(1.25); transform-origin: 100% 100%; } }
@media (max-width: 1140px) { .v4-hero .sp-hero-cut { transform: scale(1.12); transform-origin: 100% 100%; } }
.v4-hero .il { position: absolute; right: 16px; bottom: 10px; z-index: 4; display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; max-width: 560px; }
.v4-hero .il-links { margin: 0; display: flex; gap: 12px; padding: 2px 8px; }
.v4-hero .il-links a { font-size: 11px; }
.v4-hero .sp-hero-credit-top { font-size: 10px; }
/* AI disclosure policy v2: the small "AI art" chip, the credit (with the full label) in its popover */
.v4-hero .il .il-tag { font-size: 11px; line-height: 16px; padding: 2px 8px; align-items: center; }
.v4-hero .il .il-tag svg { width: 11px; height: 11px; margin-top: 0; }
.v4-hero .il-pop { left: auto; right: 0; }

/* ---------- section tabs: twelve, a thin Fossil Stone rule between tabs, amber and gold icons ---------- */
.v4-tab-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.v4-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.v4-tabs::-webkit-scrollbar { display: none; }
/* core 0.26.1 (Ben 2026-11-29: "can we center the navigation icons"): centred in the content width wherever the tabs fit on
   one line; where they overflow (narrow screens, scrolling sideways) "safe" keeps them start-aligned, so the first tab is
   never cut off. Without "safe" (older browsers) species-v4.js measures and adds .is-fit to centre them when they fit. */
.v4-tabs { justify-content: flex-start; }
.v4-tabs.is-fit { justify-content: center; }
@supports (justify-content: safe center) { .v4-tabs, .v4-tabs.is-fit { justify-content: safe center; } }
.v4-tabs a { flex: none; white-space: nowrap; font-size: 11.5px; padding-left: 10px; padding-right: 10px; }
.v4-tabs a + a { border-left: 1px solid rgba(201, 183, 154, .22); }
.v4-tabs a:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.v4-tab-ic { overflow: visible; }
.sp-tabs .v4-tab-ic path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sp-tabs .v4-tab-ic .u { stroke: #5e3317; stroke-width: 3.6; }
.sp-tabs .v4-tab-ic .g { stroke: url(#dn-tab-gold); stroke-width: 2; }
.sp-tabs a.on .v4-tab-ic .u { stroke: #7a4420; }

/* ---------- shared: status chips, legend, lead, notes, gaps ---------- */
.v4-st { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted-on-dark); white-space: nowrap; }
.v4-st i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--action); box-sizing: border-box; }
.v4-st.is-full i { background: var(--action); }
.v4-st.is-partial i { background: linear-gradient(90deg, var(--action) 50%, transparent 50%); }
.v4-st.is-empty i { border-color: var(--v4-off); }
.v4-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: -8px 0 18px; }
.v4-lead { margin: -6px 0 18px; max-width: 820px; color: var(--text-muted-on-dark); font-size: 16px; line-height: 25px; }
.v4-note { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--text-muted-on-dark); }
.v4-gap { margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--v4-gap); }
.v4-gap b { color: var(--text-muted-on-dark); }
.v4-gaps { margin: 4px 0 0; padding-left: 18px; }
ul.v4-gap.v4-gaps { padding-left: 18px; }
.v4-ns { color: var(--v4-dim); font-style: italic; }
.v4-h3.v4-h3 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font: 700 16px/22px var(--font-heading); letter-spacing: .04em; text-transform: uppercase; color: var(--text-on-dark); }
.v4-ic, .v4-h3.v4-h3 svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--action); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v4-sec .sp-sec-ic { fill: none; stroke: var(--action); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v4-tell { display: inline-block; margin-top: 10px; font: 700 12px/18px var(--font-heading); letter-spacing: .04em; color: var(--accent-on-dark); text-decoration: none; border-bottom: 1px solid currentColor; }
.v4-tell:hover, .v4-tell:focus-visible { color: var(--bone-white); }

/* ---------- block cards with the three reading layers (V4-States, current look) ---------- */
.v4-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v4-grid.is-bio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v4-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v4-card { position: relative; padding: 16px 18px 18px; border-radius: var(--radius-md); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); border-top: 3px solid var(--action); min-width: 0; scroll-margin-top: 72px; }
.v4-card.is-wide { grid-column: 1 / -1; }
.v4-card.is-partial { border-top-color: rgba(245, 138, 31, .55); }
.v4-card.is-empty { background: transparent; border: 1px dashed var(--v4-dash); border-top: 3px dashed var(--v4-dash); }
.v4-card.is-empty .v4-card-h.v4-card-h h3, .v4-card.is-empty .v4-card-h .v4-ic { opacity: .7; }
.v4-card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.v4-card-h.v4-card-h h3 { margin: 0; flex: 1; font: 700 17px/22px var(--font-heading); color: var(--text-on-dark); }
.v4-take { margin: 0 0 8px; font: 700 17px/25px var(--font-body); color: var(--text-on-dark); }
.v4-body p { margin: 0; font-size: 15px; line-height: 24px; color: var(--text-on-dark); }
.v4-body-s { margin: 8px 0 10px; font-size: 14px; line-height: 21px; color: var(--text-on-dark); }
.v4-body-s .v4-body p { font-size: 14px; line-height: 21px; }
.v4-empty-t { margin: 0; font-size: 14px; color: var(--v4-dim); }
.v4-deep { margin-top: 12px; border-top: 1px solid var(--line-dark); }
.v4-deep summary { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; cursor: pointer; list-style: none; font: 700 13px/18px var(--font-heading); letter-spacing: .03em; color: var(--accent-on-dark); }
.v4-deep summary::-webkit-details-marker { display: none; }
.v4-deep summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.v4-deep summary small { font: 400 12px/18px var(--font-body); color: var(--text-muted-on-dark); letter-spacing: 0; }
.v4-deep-ic { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; line-height: 1; transition: transform .15s; }
.v4-deep[open] .v4-deep-ic { transform: rotate(45deg); }
.v4-deep-in { padding-top: 10px; font-size: 14px; line-height: 21px; color: var(--text-on-dark); }
.v4-deep-in p { margin: 0; }
.v4-stat { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--v4-panel); border-left: 3px solid var(--action); }
.v4-stat b { font: 900 26px/1.1 var(--font-display); color: var(--text-on-dark); }
.v4-stat small { color: var(--text-muted-on-dark); }
.v4-part-photo { margin: 0 0 12px; }
.v4-part-photo figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-dark); }
.v4-part-photo img { display: block; width: 100%; height: 160px; object-fit: contain; background: #f2f2f2; }
.v4-part-photo figcaption { padding: 6px 10px; font-size: 12px; color: var(--text-on-dark); }
.v4-part-photo figcaption small { display: block; color: var(--text-muted-on-dark); }

/* terms: a dfn with its cited definition on hover, focus or tap */
.v4-term { font-style: normal; border-bottom: 1.5px dotted var(--accent-on-dark); cursor: help; position: relative; }
.v4-term:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.v4-term-def { position: absolute; z-index: 20; width: 260px; max-width: calc(100vw - 32px); margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--prehistoric-slate);
  border: 1px solid var(--action); box-shadow: 0 12px 28px rgba(0, 0, 0, .6); font: 400 13px/19px var(--font-body); color: var(--text-on-dark); }
.v4-terms { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.v4-terms li { position: relative; display: inline-block; margin-right: 12px; }

/* citation popover (species-v4.js): source, the quote the sentence rests on, Go to Sources */
.v4-pop { position: absolute; z-index: 30; width: 340px; max-width: calc(100vw - 24px); padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-dark-raised);
  border: 1px solid var(--action); box-shadow: 0 14px 32px rgba(0, 0, 0, .6); font: 400 13px/19px var(--font-body); color: var(--text-on-dark); text-align: left; }
.v4-pop-h { margin: 0 0 4px; font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--fossil-stone); }
.v4-pop-c { margin: 0; }
.v4-pop blockquote { margin: 8px 0 0; padding: 6px 0 6px 10px; border-left: 3px solid var(--action); font-style: italic; color: var(--bone-white); }
.v4-pop blockquote small { display: block; margin-top: 4px; font-style: normal; color: var(--text-muted-on-dark); }
.v4-pop-go { display: inline-block; margin-top: 8px; font: 700 12px/18px var(--font-heading); color: var(--accent-on-dark); }
.v4-pop-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--fossil-stone); font-size: 18px; line-height: 1; cursor: pointer; }
.v4-pop-x:hover, .v4-pop-x:focus-visible { color: var(--bone-white); outline: 2px solid var(--action); }
.sp-cite[aria-expanded="true"] { outline: 2px solid var(--action); outline-offset: 1px; }

/* ---------- body map ---------- */
.v4-bodymap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 10px 28px; align-items: center; margin: 0 0 22px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--v4-panel); border: 1px solid var(--line-dark); }
.v4-bodymap.is-chips { grid-template-columns: minmax(0, 1fr); }
.v4-bodymap > svg { width: 100%; height: auto; }
.bm-base { fill: #24262a; } .bm-line { fill: none; stroke: var(--v4-off); stroke-width: .8; }
.bm-part { fill: transparent; stroke: none; } .bm-part.is-full { fill: rgba(245, 138, 31, .85); } .bm-part.is-partial { fill: rgba(245, 138, 31, .45); }
.bm-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bm-chip { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-dark); font: 700 12px/1 var(--font-heading); color: var(--text-on-dark); text-decoration: none; }
.bm-chip:hover, .bm-chip:focus-visible { border-color: var(--action); }
.bm-chip:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.bm-chip i { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--v4-off); flex: none; }
.bm-chip.is-full i { background: var(--action); border-color: var(--action); } .bm-chip.is-partial i { background: linear-gradient(90deg, var(--action) 50%, transparent 50%); border-color: var(--action); }
.bm-chip.is-empty { color: var(--v4-dim); border-style: dashed; }
.bm-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bm-chip.is-full .bm-ic, .bm-chip.is-partial .bm-ic { stroke: var(--action); }
.bm-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--text-muted-on-dark); }
#anatomy .sp-dyk { margin-bottom: 18px; }

/* ---------- name and meaning ---------- */
.v4-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v4-mini { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); min-width: 0; }
.v4-mini > b { display: block; margin-bottom: 8px; font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.v4-mini.is-empty { background: transparent; border-style: dashed; border-color: var(--v4-dash); } .v4-mini.is-empty p { margin: 0; color: var(--v4-dim); font-size: 14px; }
.v4-mini.is-empty p.v4-gap { margin-top: 8px; color: var(--v4-gap); }
.v4-auth { margin: 0; font: 900 28px/1.1 var(--font-display); color: var(--text-on-dark); }
.v4-auth .sp-cite { font-family: var(--font-body); vertical-align: super; }
.v4-pub { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--text-muted-on-dark); }
.v4-nt { position: relative; margin-top: 18px; padding: 16px 20px 18px; border-radius: var(--radius-md); background: var(--v4-panel); border: 1px solid var(--line-dark); }
.v4-nt .dn-fact-label { margin: 0 0 6px; }
.nt-line { position: relative; list-style: none; margin: 0; padding: 26px 60px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; min-height: 70px; }
.nt-line::before { content: ""; position: absolute; left: 0; right: 60px; top: 10px; height: 2px; background: linear-gradient(90deg, var(--action), var(--v4-dash)); }
.nt-pt { position: relative; min-width: 120px; max-width: 220px; padding-top: 4px; }
.nt-pt::before { content: ""; position: absolute; left: 0; top: -22px; width: 14px; height: 14px; border-radius: 50%; background: var(--action); border: 3px solid var(--v4-panel); box-shadow: 0 0 0 2px var(--action); }
.nt-pt b { display: block; font: 900 20px/1 var(--font-display); color: var(--text-on-dark); }
.nt-pt span { font-size: 13px; color: var(--text-muted-on-dark); }
.nt-now { position: absolute; right: 20px; top: 46px; font: 700 11px/1 var(--font-heading); text-transform: uppercase; letter-spacing: .08em; color: var(--v4-dim); }
.v4-nt-text { margin-top: 12px; }

/* ---------- describer portraits (At a glance) ---------- */
.v4-desc { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.v4-ports { display: flex; gap: 6px; flex: none; }
.v4-port { flex: none; display: grid; place-items: center; width: 56px; height: 56px; margin: 0; border-radius: 50%; background: #2c2a26; border: 2px solid var(--fossil-stone); font: 900 24px/1 var(--font-display); color: var(--fossil-stone); }
.v4-port.is-photo { overflow: hidden; position: relative; }
.v4-port.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.v4-port.is-photo figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v4-desc p { margin: 0; display: flex; flex-direction: column; } .v4-desc b { font: 700 15px/20px var(--font-heading); color: var(--text-on-dark); } .v4-desc small { font-size: 12px; color: var(--text-muted-on-dark); }

/* ---------- tables (size estimates, specimens, name opinions) ---------- */
.v4-tablewrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line-dark); }
.v4-tablewrap:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.v4-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.v4-table th, .v4-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-dark); vertical-align: top; color: var(--text-on-dark); }
.v4-table thead th { background: var(--v4-panel); font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); white-space: nowrap; }
.v4-table tbody th { font-weight: 700; white-space: nowrap; }
.v4-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.v4-est { margin-top: 8px; }
.v4-size-text { margin-top: 18px; }
.v4-role { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 10px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-dark); color: var(--text-muted-on-dark); white-space: nowrap; }
.v4-role.is-holotype { background: var(--action); color: var(--on-action); border-color: var(--action); }
.v4-role.is-paratype { border-color: var(--action); color: var(--accent-on-dark); }

/* ---------- fossil record (the Bones redesign) ---------- */
.v4-fr { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.v4-fr.is-one { grid-template-columns: minmax(0, 1fr); }
.v4-fr-ad { position: sticky; top: 90px; margin: 0; min-width: 0; width: 300px; max-width: 100%; }
.v4-fr-ad:empty, .v4-fr-ad:has(> .dn-collapse:only-child) { display: none; }
.v4-fr:not(:has(> .v4-fr-ad)), .v4-fr:has(> .v4-fr-ad > .dn-collapse:only-child) { grid-template-columns: minmax(0, 1fr); }
.v4-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v4-statcard { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); }
.v4-statcard svg { grid-row: span 3; align-self: start; width: 28px; height: 28px; fill: none; stroke: var(--action); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v4-statcard b { font: 900 36px/1 var(--font-display); color: var(--text-on-dark); }
.v4-statcard span { font: 700 12px/16px var(--font-heading); text-transform: uppercase; letter-spacing: .06em; color: var(--text-on-dark); }
.v4-statcard small { font-size: 12px; line-height: 17px; color: var(--text-muted-on-dark); }
.v4-frc.sp-fr { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; }
.v4-fr-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.v4-holo { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid var(--action); background: rgba(245, 138, 31, .06); }
.v4-holo-h { margin: 0; font: 700 15px/20px var(--font-heading); color: var(--text-on-dark); }
.v4-holo dl { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.v4-holo dl div { min-width: 0; }
.v4-holo dt { margin: 0; }
.v4-holo dd { margin: 2px 0 0; font: 900 22px/1.15 var(--font-display); color: var(--text-on-dark); }
.v4-holo dd .sp-cite { font-family: var(--font-body); }
.v4-holo p { margin: 0; color: var(--text-muted-on-dark); }
.v4-holo.is-empty { border-style: dashed; border-color: var(--v4-off); background: transparent; }
.v4-holo.is-empty > p, .v4-holo.is-empty .v4-gap, .v4-holo.is-empty .v4-tell { flex-basis: 100%; margin-top: 0; }
.v4-material { padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-dark-raised); border: 1px solid var(--line-dark); }
.v4-material p { margin: 0; color: var(--text-on-dark); font-size: 15px; line-height: 22px; }
.v4-material .dn-fact-label { margin-bottom: 4px; }
.v4-fr-known { font-size: 14px; color: var(--text-on-dark); margin: 18px 0 10px; }
.v4-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v4-photos figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-dark-raised); border: 1px solid var(--line-dark); }
.v4-photos img { display: block; width: 100%; height: 180px; object-fit: contain; background: #f2f2f2; }
.v4-photos figcaption { padding: 8px 10px; font-size: 13px; color: var(--text-on-dark); } .v4-photos figcaption small { display: block; font-size: 11px; color: var(--text-muted-on-dark); }
.v4-photos figcaption a { color: inherit; }
.v4-photos.is-empty { display: block; padding: 16px; border: 1px dashed var(--v4-dash); border-radius: var(--radius-md); } .v4-photos.is-empty p { margin: 0; color: var(--v4-dim); }

/* ---------- when and where ---------- */
.v4-kv { list-style: none; margin: 0; padding: 0; } .v4-kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.v4-kv b { color: var(--text-on-dark); font-weight: 600; } .v4-kv span { color: var(--text-muted-on-dark); white-space: nowrap; }
.v4-rel li a { color: var(--text-on-dark); }

/* ---------- classification history ---------- */
.v4-classhist { margin-top: 20px; }


/* ---------- what we don't know yet ---------- */
.v4-unk .sp-unk-intro { margin: 0 0 6px; max-width: 820px; color: var(--text-muted-on-dark); }
.v4-unk-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.v4-unk-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; color: var(--text-muted-on-dark); min-width: 0; }
.v4-unk-list li b { color: var(--text-on-dark); white-space: nowrap; }
.v4-unk-list li.v4-q { grid-column: 1 / -1; align-items: flex-start; color: var(--text-on-dark); }
.v4-unk-list li.v4-q b { white-space: normal; margin-right: 6px; }

/* ---------- sources: what each one supports ---------- */
.v4-sup { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font: 700 10px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.v4-sup { min-width: 0; max-width: 100%; }
.v4-sup a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; padding: 0 6px; border-radius: 3px; background: rgba(245, 138, 31, .12); color: var(--accent-on-dark); text-decoration: none; letter-spacing: .02em; }
.v4-sup a:hover, .v4-sup a:focus-visible { background: rgba(245, 138, 31, .25); }
.v4-src-link { word-break: break-all; }
.sp4 .sp-srclist > li { overflow-wrap: anywhere; min-width: 0; }
/* A deep classification tree (Carnotaurus: 14 levels) scrolls inside its card on phones rather than running off the page. */
@media (max-width: 760px) { .sp4 .sp3-tree-card .sp-tree { overflow-x: auto; } }
.sp-srclist li:target { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 1100px) {
  .v4-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-fr { grid-template-columns: minmax(0, 1fr); }
  .v4-fr-ad { position: static; justify-self: center; }
}
@media (max-width: 760px) {
  .v4-grid, .v4-grid.is-bio, .v4-grid.is-3, .v4-minis, .v4-stats, .v4-unk-list, .v4-frc.sp-fr { grid-template-columns: minmax(0, 1fr); }
  .v4-bodymap { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .bm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-chip { font-size: 11px; padding: 0 8px; gap: 6px; }
  .v4-hero .sp-hero-cut { transform: scale(1.25); transform-origin: 50% 100%; }
  .v4-hero .il { position: static; justify-content: flex-start; margin: 8px var(--space-4) 0; }
  .v4-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-table { font-size: 13px; } .v4-table th, .v4-table td { padding: 8px 10px; }
  .v4-unk-list li b { white-space: normal; }
  .v4-deep summary { flex-wrap: wrap; } .v4-deep summary small { flex-basis: 100%; padding-left: 30px; }
  .v4-card { scroll-margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .v4-deep-ic { transition: none; } }

/* ===== Species page v5 treatment (board 45), approval row 45, Ben 10:19): from the board's layout5.css (design/species-page/source/sp4v/assets/sp4/),
   scoped to .sp5 (the page wrapper; the board used body.v5). Bone White reading panels, 34 px headings with gold-to-amber
   tiles, 48 px icon discs, states by colour, shape and edge, three columns for the sub-blocks. Amber and Gold are for
   icons and the partial state only, never text on Bone White. ===== */
.sp5 {
  --amber: #F7A531;           /* icon discs and the partial state */
  --gold: #E9C46A;            /* icon discs, tab icons */
  --bone: #F5F1E6;
  --ink: #121417;             /* text on Bone White: 16.3:1 */
  --ink-soft: #4A3D2C;        /* secondary text on Bone White: 9.3:1 */
  --brown: #6B4F2E;           /* citations and labels on Bone White: 6.7:1 */
  --green: #0E2F1F;           /* Jurassic Green: the full state, takeaways on Bone White (12.9:1) */
  --stone: #C9B79A;
}

/* ---------- section headings: bigger, with an amber-to-gold icon tile ---------- */
.sp5 .sp-sec .sp-sec-head .dn-section-title.dn-section-title { display: flex; align-items: center; gap: 16px; font-size: 34px; line-height: 40px; letter-spacing: .01em; }
.sp5 .sp-sec .sp-sec-head .dn-section-title.dn-section-title::before { display: none; }
.v5-secic { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--amber)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.v5-secic svg.sp-sec-ic { width: 30px; height: 30px; margin: 0; fill: none; stroke: var(--ink); stroke-width: 2; }
.sp5 .v4-legend { gap: 12px; margin: 6px 0 18px; }

/* ---------- section tabs: amber and gold icons ---------- */
.sp5 .v4-tabs a { font-size: 11.5px; gap: 6px; padding-top: 12px; padding-bottom: 12px; }   /* board: 12 px; 11.5 keeps the twelve tabs on one row at 1280 px */
.sp5 .v4-tabs a svg.sp-tab-ic { width: 24px; height: 24px; stroke: var(--amber); fill: rgba(233, 196, 106, .18); stroke-width: 1.9; }
.sp5 .v4-tabs a:nth-child(even) svg.sp-tab-ic { stroke: var(--gold); fill: rgba(247, 165, 49, .16); }
.sp5 .v4-tabs a.on svg.sp-tab-ic { fill: rgba(247, 165, 49, .35); }

/* ---------- grids: three columns at desktop, two on tablets, one on phones ---------- */
.sp5 .v4-grid.v5-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp5 .v4-grid.v5-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .sp5 .v4-grid.v5-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sp5 .v4-grid.v5-3, .sp5 .v4-grid.v5-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- block cards: Bone White reading panels; the state reads from the left bar, the pill and the icon ---------- */
.sp5 .v4-card { padding: 20px 22px 22px 26px; border-radius: 14px; background: var(--bone); color: var(--ink); border: 0; border-left: 8px solid var(--green); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.sp5 .v4-card.is-partial { border-left-color: var(--amber); }
.sp5 .v4-card-h { gap: 14px; margin: 0 0 14px; align-items: center; }
.sp5 .v4-card-h.v4-card-h h3 { font: 700 22px/28px var(--font-heading); color: var(--ink); }
.v5-ic { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--amber)); box-shadow: inset 0 0 0 2px rgba(18, 20, 23, .12); }
.v5-ic svg { width: 26px; height: 26px; margin: 0; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.sp5 .v4-card .v4-take { font: 700 19px/27px var(--font-body); color: var(--green); }
.sp5 .v4-card .v4-body, .sp5 .v4-card .v4-body p { font-size: 16px; line-height: 26px; color: var(--ink); }
.sp5 .v4-card .v4-body i, .sp5 .v4-card .v4-take i { color: inherit; }
.sp5 .v4-card a.sp-cite { color: var(--bone); background: var(--brown); border-radius: 4px; padding: 0 4px; font-size: 11px; }
.sp5 .v4-card a.sp-cite:hover { background: var(--green); color: var(--bone); }
.sp5 .v4-card dfn.v4-term { border-bottom-color: var(--brown); color: var(--ink); }
.sp5 .v4-card .v4-gap, .sp5 .v4-card .v4-miss { color: var(--ink-soft); }
/* partial: the missing part in a Fossil Stone strip */
.sp5 .v4-card.is-partial .v4-miss, .sp5 .v4-card.is-partial .v4-gap { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #e7dcc6; color: var(--ink); font-size: 14px; line-height: 21px; }
.sp5 .v4-card.is-partial .v4-miss b, .sp5 .v4-card.is-partial .v4-gap b { color: var(--brown); }

/* For the curious: a Jurassic Green pill */
.sp5 .v4-card .v4-deep { margin-top: 16px; border-top: 1px solid #ddd1bb; }
.sp5 .v4-card .v4-deep summary { display: inline-flex; margin-top: 14px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--green); color: var(--bone); font-size: 14px; }
.sp5 .v4-card .v4-deep summary small { color: #c9d6cc; font-size: 12px; }
.sp5 .v4-card .v4-deep-ic { border-color: var(--bone); color: var(--bone); }
.sp5 .v4-card .v4-deep[open] summary { background: var(--brown); }
/* core 0.19.7 (the deep contrast check, 2026-10-31): opened, For the curious's text (and The full story's) takes the card's
   own ink on a parchment card, Slate #121417 (16.3:1); it was Bone White on Bone White (1.00:1) on every light card since
   0.19.2. On an empty (dark) card it keeps that card's own text colour; on a dark band (.lf-band and the other bands,
   no card around it) .v4-deep-in stays Bone White as before. */
.sp5 .v4-card .v4-deep-in { color: inherit; }

/* status pills: a shape and a colour (full: check on Jurassic Green; partial: half disc on amber; empty: dash on outline) */
.sp5 .v4-st { gap: 6px; padding: 5px 11px 5px 7px; border-radius: 999px; font: 700 11px/14px var(--font-heading); letter-spacing: .07em; }
.sp5 .v4-st i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 0; border-radius: 50%; background: none; }
.sp5 .v4-st i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp5 .v4-st i svg .f { fill: currentColor; stroke: none; }
.sp5 .v4-st.is-full { background: var(--green); color: var(--bone); }
.sp5 .v4-st.is-partial { background: var(--amber); color: var(--ink); }
.sp5 .v4-st.is-empty { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1.5px var(--stone); }
.sp5 .v4-legend .v4-st { font-size: 12px; padding: 6px 13px 6px 9px; }
.sp5 .v4-card .v4-st + .v4-sampletag, .sp5 .v4-card .v4-st ~ span:not(.v4-st) { background: #e4dac8; color: var(--brown); }

/* empty: a dark dashed card, the icon faded, the gap in Fossil Stone */
.sp5 .v4-card.is-empty { background: rgba(18, 20, 23, .55); color: var(--stone); border: 2px dashed #6f6556; border-left: 8px solid #6f6556; box-shadow: none; }
.sp5 .v4-card.is-empty .v4-card-h.v4-card-h h3 { color: var(--stone); opacity: 1; }
.sp5 .v4-card.is-empty .v5-ic { background: #3a352d; box-shadow: none; }
.sp5 .v4-card.is-empty .v5-ic svg { stroke: var(--stone); opacity: .9; }
.sp5 .v4-card.is-empty .v4-empty-t { font: 700 16px/24px var(--font-body); color: var(--bone); }
.sp5 .v4-card.is-empty .v4-gap { color: var(--stone); font-size: 14px; }
.sp5 .v4-card.is-empty .v4-tell { color: var(--amber); }

/* data figures inside a card (bite force): a Jurassic Green panel */
.sp5 .v4-card .v4-stat { background: var(--green); border-left: 6px solid var(--gold); }
.sp5 .v4-card .v4-stat b { color: var(--bone); font-size: 30px; }
.sp5 .v4-card .v4-stat small, .sp5 .v4-card .v4-stat span { color: #d8e3dc; }
.sp5 .v4-card .v4-stat a.sp-cite { background: var(--gold); color: var(--ink); }

/* tables and lists inside cards (When and where) on Bone White */
.sp5 .v4-card table, .sp5 .v4-card li, .sp5 .v4-card dd, .sp5 .v4-card dt, .sp5 .v4-card td, .sp5 .v4-card th, .sp5 .v4-card p, .sp5 .v4-card span:not(.v4-st):not(.v5-ic):not(.v4-term-def) { color: inherit; }
.sp5 .v4-card small, .sp5 .v4-card .dn-muted { color: var(--ink-soft); }
.sp5 .v4-card .v4-row, .sp5 .v4-card tr { border-color: #ddd1bb; }

/* period colour where it carries meaning: When and where cards carry the species' period on their bar */
.sp5 .v5-per .v4-card:not(.is-empty) { border-left-color: var(--v5-per); }
.sp5 .v5-per .v4-card:not(.is-empty) .v4-st.is-full { background: var(--green); }

/* Size: three figures first, Bone White tiles */
.v5-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 22px; }
.v5-sz { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--bone); color: var(--ink); border-left: 8px solid var(--green); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.v5-sz .v5-ic { grid-row: span 2; }
.v5-sz-l { margin: 0; font: 700 13px/18px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.v5-sz-v { margin: 0; font: 700 19px/26px var(--font-body); color: var(--ink); }
.v5-sz-v a.sp-cite, .v5-sz-v sup a { color: var(--bone); background: var(--brown); border-radius: 4px; padding: 0 4px; font-size: 11px; text-decoration: none; }
.v5-sz.is-empty { background: rgba(18, 20, 23, .55); border: 2px dashed #6f6556; border-left: 8px solid #6f6556; box-shadow: none; }
.v5-sz.is-empty .v5-sz-l { color: var(--stone); } .v5-sz.is-empty .v5-sz-v { color: var(--bone); font-size: 16px; font-weight: 400; }
.v5-sz.is-empty .v5-ic { background: #3a352d; } .v5-sz.is-empty .v5-ic svg { stroke: var(--stone); }
@media (max-width: 760px) {
  .v5-sizes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sp5 .sp-sec .sp-sec-head .dn-section-title.dn-section-title { font-size: 26px; line-height: 32px; gap: 12px; }
  .v5-secic { width: 44px; height: 44px; border-radius: 12px; } .v5-secic svg.sp-sec-ic { width: 24px; height: 24px; }
  .sp5 .v4-card { padding: 16px 16px 18px 18px; }
  .sp5 .v4-card-h.v4-card-h h3 { font-size: 19px; line-height: 24px; }
  .v5-ic { width: 42px; height: 42px; } .v5-ic svg { width: 22px; height: 22px; }
}

.sp5 .v4-card .v4-smp { padding: 3px 7px; border-radius: 4px; background: #e4dac8; color: var(--brown); font: 700 10px/14px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; }

/* key-value lists inside cards (When and where) */
.sp5 .v4-card .v4-kv li { border-bottom-color: #ddd1bb; font-size: 15px; }
.sp5 .v4-card .v4-kv b { color: var(--ink); }
.sp5 .v4-card .v4-kv span { color: var(--ink-soft); }
.sp5 .v4-card .v4-note { color: var(--ink-soft); }
.sp5 .v4-card .v4-stat .dn-fact-label { color: var(--gold) !important; }

/* card header: icon beside the title, the state pills on a second line so titles never squeeze */
.sp5 .v4-card-h { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; }
.sp5 .v4-card-h > .v5-ic { grid-row: 1 / span 2; }
.sp5 .v4-card-h.v4-card-h > h3 { grid-column: 2; align-self: end; }
.v5-tags { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: start; }
.sp5 .v4-grid.v5-3 .v4-deep summary small, .sp5 .v4-grid.is-3 .v4-deep summary small { display: none; }

/* Did you know: a smaller tile beside its label */
.sp5 .sp-dyk-h { display: flex; align-items: center; gap: 12px; }
.sp5 .sp-dyk-h .v5-secic { width: 40px; height: 40px; border-radius: 10px; }
.sp5 .sp-dyk-h .v5-secic svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; }

/* ---------- plugin additions to the board's layout5.css ---------- */
/* tabs: the board's amber and gold icons (odd tabs amber, even gold, a faint fill), one stroke */
.sp5 .sp-tabs .v4-tab-ic { width: 24px; height: 24px; }
.sp5 .sp-tabs .v4-tab-ic .u { display: none; }
.sp5 .sp-tabs .v4-tab-ic .g { stroke: var(--amber); fill: rgba(233, 196, 106, .18); stroke-width: 1.9; }
.sp5 .sp-tabs a:nth-of-type(even) .v4-tab-ic .g { stroke: var(--gold); fill: rgba(247, 165, 49, .16); }
.sp5 .sp-tabs a.on .v4-tab-ic .g { fill: rgba(247, 165, 49, .35); }
/* links, lists and definitions inside the Bone White panels */
.sp5 .v4-card a:not(.sp-cite):not(.v4-tell) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brown); text-underline-offset: 3px; }
.sp5 .v4-card .v4-term-def { color: var(--bone); background: var(--ink); }
.sp5 .v4-card.is-empty .v4-gaps, .sp5 .v4-card.is-empty .v4-gaps li { color: var(--stone); }
.sp5 .v4-card.is-partial .v4-gap .v4-gaps { margin: 4px 0 0; }
.sp5 .v4-card .v4-terms li { color: var(--ink); }
.sp5 .v4-card .v4-kv span { white-space: normal; }
/* the citation popover: a 2 px Gold border on Prehistoric Slate (the popover is added to the page body) */
.v4-pop { background: var(--prehistoric-slate); border: 2px solid #E9C46A; }
.v4-pop blockquote { border-left-color: #E9C46A; }
/* the status pills in What we don't know yet carry only their shape */
.sp5 .v4-unk-list .v4-st { padding: 3px; }

/* Sources and credits (Ben, 2026-10-16 18:40, item 1; core 0.16.2): Sources with Image credits under it on the left,
   This page on the right (sticky beside them, as before); phones stack them in the markup's order: Sources, This page,
   Image credits. Tip Rex on This page (item 2): the shared tip (dn-site.css .dn-rex-tip), fitted to the card. */
.sp5 .sp2-sources.sp5-src { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "list page" "credits page"; gap: var(--sp2-gap, 24px); align-items: start; }
.sp5 .sp5-src-list { grid-area: list; min-width: 0; }
.sp5 .sp5-src-page { grid-area: page; min-width: 0; position: sticky; top: 88px; }
.sp5 .sp5-src > .sp5-src-credits { grid-area: credits; position: static; }
.sp5 .sp5-src-page .sp2-endbar { margin: 0; max-width: none; }
/* The tip's own rules repeated here (scoped) so it holds where dn-site.css isn't loaded (the preview pages). */
.sp5 .sp5-rex-tip { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-dark); border-left: 4px solid var(--action); border-radius: var(--radius-md, 12px); background: var(--prehistoric-slate, #121417); color: var(--text-on-dark); }
.sp5 .sp5-rex-tip > .dn-rex { display: block; flex: none; width: 48px; height: 48px; border-radius: 50%; }
.sp5 .sp5-rex-tip p { margin: 0; font-size: 14px; line-height: 20px; }
.sp5 .sp5-rex-tip .dn-rex-eyebrow { margin: 0 0 2px; font: 700 12px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-dark); }
@media (max-width: 760px) {
  .sp5 .sp2-sources.sp5-src { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "page" "credits"; }
  .sp5 .sp5-src-page { position: static; }
}

/* ===== Muted tiles, option B (Ben, 2026-10-16 20:05; approval row 49; board V5-Tiles-Muted,
   design/species-page/source/sp4v/assets/sp4/tiles.css .opt-b): the non-empty content cards (Sourced, Partly sourced)
   and the Size tiles on Fossil Stone at low strength, #423E39 with a faint Fossil Stone wash at the top; Bone White text,
   takeaways in Gold. Unchanged: the state edges, the pills, the icon discs and the empty dashed cards. ===== */
.sp5 { --mt-p: #423E39; --mt-ln: #5a554d; --mt-t1: #F5F1E6; --mt-t2: #E2D6C0; --mt-tk: #E9C46A; --mt-strip: #4c4842; }
.sp5 .v4-card:not(.is-empty), .sp5 .v5-sz:not(.is-empty) { background-color: var(--mt-p); background-image: linear-gradient(180deg, rgba(201, 183, 154, .08), rgba(201, 183, 154, 0) 60%); color: var(--mt-t1); box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--mt-ln); }
.sp5 .v4-card:not(.is-empty) .v4-card-h.v4-card-h h3 { color: var(--mt-t1); }
.sp5 .v4-card:not(.is-empty) .v4-take { color: var(--mt-tk); }
.sp5 .v4-card:not(.is-empty) .v4-body, .sp5 .v4-card:not(.is-empty) .v4-body p, .sp5 .v4-card:not(.is-empty) .v4-terms li, .sp5 .v4-card:not(.is-empty) .v4-kv b { color: var(--mt-t1); }
.sp5 .v4-card:not(.is-empty) small, .sp5 .v4-card:not(.is-empty) .dn-muted, .sp5 .v4-card:not(.is-empty) .v4-kv span, .sp5 .v4-card:not(.is-empty) .v4-note,
.sp5 .v4-card:not(.is-empty) .v4-gap, .sp5 .v4-card:not(.is-empty) .v4-miss { color: var(--mt-t2); }
.sp5 .v4-card:not(.is-empty) .v4-kv li, .sp5 .v4-card:not(.is-empty) .v4-row, .sp5 .v4-card:not(.is-empty) tr, .sp5 .v4-card:not(.is-empty) .v4-deep { border-color: var(--mt-ln); }
.sp5 .v4-card:not(.is-empty) dfn.v4-term { color: var(--mt-t1); border-bottom-color: var(--mt-t2); }
.sp5 .v4-card:not(.is-empty) a:not(.sp-cite):not(.v4-tell) { color: var(--mt-t1); text-decoration-color: var(--mt-t2); }
.sp5 .v4-card:not(.is-empty) a.sp-cite, .sp5 .v5-sz:not(.is-empty) a.sp-cite, .sp5 .v5-sz:not(.is-empty) sup a { background: #C9B79A; color: #121417; }
.sp5 .v4-card:not(.is-empty) a.sp-cite:hover { background: var(--mt-tk); color: #121417; }
.sp5 .v4-card:not(.is-empty) .v4-st + .v4-sampletag, .sp5 .v4-card:not(.is-empty) .v4-st ~ span:not(.v4-st) { background: var(--mt-strip); color: var(--mt-t2); }
.sp5 .v4-card:not(.is-empty) .v4-deep summary { box-shadow: inset 0 0 0 1px rgba(245, 241, 230, .35); }
/* Still missing: a darker strip with an amber inner edge (the strip's place and words unchanged) */
.sp5 .v4-card.is-partial .v4-miss, .sp5 .v4-card.is-partial .v4-gap { background: var(--mt-strip); color: var(--mt-t1); box-shadow: inset 3px 0 0 #F7A531; }
/* the "Still missing:" label in Gold, not the board's amber: amber on the strip is 4.49:1, just under AA; Gold is 5.4:1 */
.sp5 .v4-card.is-partial .v4-miss b, .sp5 .v4-card.is-partial .v4-gap b { color: var(--mt-tk); }
/* Size tiles */
.sp5 .v5-sz:not(.is-empty) .v5-sz-l { color: var(--mt-t2); }
.sp5 .v5-sz:not(.is-empty) .v5-sz-v { color: var(--mt-t1); }

/* ===== Name and discovery v2 (core 0.17.8; DECISIONS 2026-10-27 "Species page polish"; mock
   design/species-page/source/nd2/nd2.css on the muted tiles' tokens): the name plate, the Name history lanes, How it was
   found as compact cards, one Still missing list. The cards keep the site's state edges, pills and cite chips. ===== */
.sp5 { --nd-same: #5DBB84; --nd-orange: #F58A1F; }
.sp5 .nd-naming { display: grid; gap: 18px; }
.sp5 #naming, .sp5 #discovery-story, .sp5 #name-history { scroll-margin-top: 72px; }
/* the name plate */
.sp5 .v4-card.nd-plate { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.sp5 .nd-eyebrow { margin: 0 0 4px; font: 700 11px/16px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--mt-t2); }
.sp5 .v4-card .nd-big { margin: 0 0 14px; font: italic 900 64px/1 var(--font-display); letter-spacing: .005em; color: var(--mt-t1); overflow-wrap: anywhere; }
.sp5 .nd-big i { font-style: italic; }
.sp5 .nd-parts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp5 .v4-card .nd-parts li { position: relative; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px; padding: 10px 34px 10px 14px; border-radius: 10px; background: var(--mt-strip); box-shadow: inset 0 3px 0 var(--nd-orange); }
.sp5 .v4-card .nd-parts b { font: italic 900 26px/1 var(--font-display); color: var(--mt-t1); }
.sp5 .v4-card .nd-parts .nd-lang { font: 700 10px/14px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--mt-t2); }
.sp5 .v4-card .nd-parts .nd-mean { grid-column: 1 / -1; font: 700 15px/20px var(--font-body); color: var(--mt-tk); }
.sp5 .v4-card .nd-parts a.sp-cite { position: absolute; top: 8px; right: 8px; padding: 0 5px; border-radius: 4px; background: #C9B79A; color: #121417; font: 700 11px/16px var(--font-body); vertical-align: baseline; text-decoration: none; }   /* the card chip, pinned to the part's corner */
.sp5 .nd-meaning .v4-take { font-size: 17px; line-height: 26px; }
.sp5 .nd-facts { margin: 0; padding-left: 28px; border-left: 1px solid var(--mt-ln); display: grid; align-content: start; min-width: 0; }
.sp5 .nd-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--mt-ln); }
.sp5 .nd-row:first-child { border-top: 0; padding-top: 4px; }
.sp5 .v4-card .nd-row dt { display: flex; align-items: center; gap: 8px; align-self: start; padding-top: 5px; font: 700 11px/16px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--mt-t2); }
.sp5 .nd-ic { flex: none; width: 16px; height: 16px; margin: 0; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp5 .nd-row dd { margin: 0; min-width: 0; }
.sp5 .v4-card .nd-say, .sp5 .v4-card .nd-auth { margin: 0; font: 900 30px/1.1 var(--font-display); letter-spacing: .02em; color: var(--mt-t1); overflow-wrap: anywhere; }
.sp5 .nd-say a.sp-cite, .sp5 .nd-auth a.sp-cite { font-family: var(--font-body); vertical-align: super; letter-spacing: 0; }
.sp5 .v4-card .nd-pub { margin: 4px 0 0; font-size: 13px; line-height: 19px; color: var(--mt-t2); }
.sp5 .v4-card .nd-small, .sp5 .v4-card .nd-small p, .sp5 .v4-card .nd-small-t { margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--mt-t1); }
.sp5 .v4-card .nd-small .v4-take { font-size: 15px; line-height: 23px; margin-bottom: 4px; }
.sp5 .v4-card .nd-small .v4-body, .sp5 .v4-card .nd-small .v4-body p { font-size: 14px; line-height: 22px; }
.sp5 .v4-card .nd-small-t a:not(.sp-cite) { color: var(--gold); text-decoration-color: var(--gold); }
/* the name history lanes */
.sp5 .nd-ch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sp5 .v4-card .nd-ch.nd-ch h3 { margin: 0; font: 700 19px/24px var(--font-heading); color: var(--mt-t1); }
.sp5 .nd-ch .v5-ic { width: 40px; height: 40px; } .sp5 .nd-ch .v5-ic svg { width: 22px; height: 22px; }
.sp5 .v4-card .nd-count, .sp5 .nd-count { margin-left: auto; padding: 3px 10px; border-radius: 12px; background: var(--mt-strip); font: 700 11px/16px var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--mt-t1); }
.sp5 .nd-lanes { list-style: none; margin: 0; padding: 0; }
.sp5 .v4-card .nd-lanes li.nd-lane { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 16px; padding: 7px 0; border-top: 1px solid rgba(90, 85, 77, .55); }
.sp5 .v4-card .nd-lanes li.nd-lane:first-child { border-top: 0; }
.sp5 .v4-card .nd-nm { display: block; font: 700 15px/20px var(--font-body); color: var(--mt-t1); }
.sp5 .v4-card .nd-lane.is-acc .nd-nm { color: var(--amber); font-size: 16px; }
.sp5 .v4-card .nd-ln-name small { display: block; font-size: 12px; line-height: 17px; color: var(--mt-t2); }
.sp5 .nd-track { position: relative; height: 22px; margin-right: 8px; }
.sp5 .nd-bar { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--stone); }
.sp5 .nd-bar.is-acc { top: 8px; height: 6px; background: linear-gradient(90deg, var(--nd-orange), var(--amber)); }
.sp5 .nd-bar.is-after { background: repeating-linear-gradient(90deg, rgba(201, 183, 154, .45) 0 4px, transparent 4px 8px); }
.sp5 .nd-pt { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 2px var(--mt-p); }
.sp5 .nd-pt.is-acc { top: 3px; width: 16px; height: 16px; margin-left: -8px; background: var(--nd-orange); }
.sp5 .nd-pt.is-moved { background: var(--mt-p); box-shadow: inset 0 0 0 2.5px var(--stone), 0 0 0 2px var(--mt-p); }
.sp5 .nd-pt.is-same { border-radius: 3px; transform: rotate(45deg); background: var(--nd-same); }
.sp5 .nd-axis { position: relative; margin: 4px 8px 0 316px; height: 20px; border-top: 1px solid var(--mt-ln); }
.sp5 .v4-card .nd-axis span { position: absolute; top: 4px; transform: translateX(-50%); font: 700 11px/14px var(--font-heading); color: var(--mt-t2); white-space: nowrap; }
.sp5 .v4-card .nd-axis .is-now { transform: translateX(-100%); color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
.sp5 .v4-card .nd-axis span.is-thin { visibility: hidden; }   /* core 0.20.5: a year label with no room (species-sp6.js thinAxis) */
.sp5 .v4-card .nd-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 4px; font-size: 12px; line-height: 18px; color: var(--mt-t2); }
.sp5 .v4-card .nd-key span { display: inline-flex; align-items: center; gap: 6px; }
.sp5 .nd-k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--stone); }
.sp5 .nd-k.is-acc { background: var(--nd-orange); }
.sp5 .nd-k.is-moved { background: transparent; box-shadow: inset 0 0 0 2.5px var(--stone); }
.sp5 .nd-k.is-same { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--nd-same); }
.sp5 .v4-card p.nd-src { margin: 0 0 16px; font-size: 12px; line-height: 18px; color: var(--mt-t2); }
.sp5 .nd-hist-text { max-width: 72ch; padding-top: 14px; border-top: 1px solid var(--mt-ln); }
.sp5 .v4-card .nd-ops td, .sp5 .v4-card .nd-ops th { font-size: 13px; line-height: 19px; }
.sp5 .v4-card .nd-ref { min-width: 220px; color: var(--mt-t2); }
/* How it was found: compact cards in two columns */
.sp5 .nd-subh.nd-subh { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font: 700 15px/20px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-dark); }
.sp5 .nd-subic { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), var(--amber)); }
.sp5 .nd-subic svg { width: 18px; height: 18px; margin: 0; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sp5 .nd-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp5 .v4-card.nd-dc { padding: 18px 20px 18px 24px; }
.sp5 .v4-card.nd-dc .v4-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sp5 .nd-dc .v4-card-h .v5-ic { width: 36px; height: 36px; } .sp5 .nd-dc .v4-card-h .v5-ic svg { width: 20px; height: 20px; }
.sp5 .v4-card.nd-dc .v4-card-h.v4-card-h h3 { flex: 1; font-size: 17px; line-height: 22px; }
.sp5 .nd-dc .v5-tags { margin-left: auto; flex: none; }
.sp5 .v4-card.nd-dc .v4-take { font-size: 16px; line-height: 24px; }
.sp5 .v4-card.nd-dc .v4-body, .sp5 .v4-card.nd-dc .v4-body p { font-size: 15px; line-height: 24px; }
/* Still missing: one list for the section */
.sp5 .nd-miss { margin-top: 18px; padding: 16px 22px 18px; border-radius: 14px; background: #1d1b18; box-shadow: inset 4px 0 0 var(--amber), inset 0 0 0 1px #3a352d; }
.sp5 .nd-miss.nd-miss h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 14px/20px var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sp5 .nd-miss.nd-miss h3 .nd-count { margin-left: 0; }
.sp5 .nd-miss ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.sp5 .nd-miss li { break-inside: avoid; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 14px; line-height: 21px; color: var(--stone); }
.sp5 .nd-miss li b { color: var(--bone); }
.sp5 .nd-miss .v4-st { padding: 3px; }
.sp5 .nd-miss .v4-tell { color: var(--amber); }
/* fossil record and classification: "Show all" tables */
.sp5 .v4-more { margin: 10px 0 0; }
.sp5 .v4-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; list-style: none; font: 700 14px/20px var(--font-heading); color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber); }
.sp5 .v4-more > summary::-webkit-details-marker { display: none; }
.sp5 .v4-more > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sp5 .v4-more[open] > summary { margin-bottom: 10px; }
.sp5 .nd-place .v4-h3.v4-h3 { margin-top: 0; }
@media (max-width: 1100px) { .sp5 .v4-card .nd-lanes li.nd-lane { grid-template-columns: 220px minmax(0, 1fr); } .sp5 .nd-axis { margin-left: 236px; } }
@media (max-width: 760px) {
  .sp5 .v4-card.nd-plate { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp5 .v4-card .nd-big { font-size: 44px; }
  .sp5 .nd-facts { padding-left: 0; border-left: 0; border-top: 1px solid var(--mt-ln); }
  .sp5 .nd-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sp5 .nd-row:first-child { padding-top: 14px; }
  .sp5 .v4-card .nd-lanes li.nd-lane { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sp5 .nd-track { height: 20px; }
  .sp5 .nd-axis { margin-left: 0; }
  .sp5 .nd-dgrid { grid-template-columns: minmax(0, 1fr); }
  .sp5 .nd-miss ul { columns: 1; }
  .sp5 .nd-miss { padding: 14px 16px 16px; }
}

/* ---------------------------------------------------------------- core 0.19.2: the species page, round 6
   Approval row 66, as recommended (briefs/handoff-species-sp6-design-2026-10-29.md; Claude Design's prototype
   design/phase-1/canvas-2/source/sp6/sp6.css, its board switches taken out): 1. the cards on parchment (B) 2. the name
   in Barlow Semi Condensed Black Italic (B) 3. Hear it 4. Closest relatives with pictures 5. Name history 6. What it
   looked like 7. Size (A) 8. When and where 9. Myth or fact. Tokens only: Jurassic Green #0E2F1F, Stone Brown
   #6B4F2E, Fossil Stone #C9B79A, Sunset Orange #F58A1F, Prehistoric Slate #121417, Bone White #F5F1E6 (plus the page's
   amber #F7A531 and gold #E9C46A). */

/* ---------------------------------------------------------------- 1. cards */
/* core 0.20.2 (approval row 68 item 1, card A, Ben 2026-10-31 20:36: "A Fossil stone parchment"): Fossil Stone parchment
   (#D6C8B1, a Stone Brown 12% wash to #C9B9A1 at the foot), a third darker than round 6's Bone White. Measured on the
   worst pixel (#C9B9A1): titles and body Slate 9.61:1, lead line Jurassic Green 7.57:1, small text #3E3223 6.49:1, links
   Jurassic Green 7.57:1, cite chips Bone White on Stone Brown 6.69:1, Not known yet 6.49:1, the Still missing strip
   Jurassic Green on #CDBDA2 7.89:1, For the curious opened 9.61:1 (sp7contrast.json). */
.sp5 { --mt-p: #D6C8B1; --mt-ln: #B5A386; --mt-t1: #121417; --mt-t2: #3E3223; --mt-tk: #0E2F1F; --mt-strip: #CDBDA2; }
.sp5 .v4-card:not(.is-empty), .sp5 .v5-sz:not(.is-empty) {
  background-color: #D6C8B1; background-image: linear-gradient(180deg, rgba(201, 185, 161, 0) 55%, #C9B9A1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(107, 79, 46, .45); }
/* cite chips: unchanged, Bone White on Stone Brown; hover Slate */
.sp5 .v4-card:not(.is-empty) a.sp-cite, .sp5 .v5-sz:not(.is-empty) a.sp-cite,
.sp5 .v5-sz:not(.is-empty) sup a { background: #6B4F2E; color: #F5F1E6; }
.sp5 .v4-card:not(.is-empty) a.sp-cite:hover { background: #121417; color: #F5F1E6; }
.sp5 .v4-card:not(.is-empty) a:not(.sp-cite):not(.v4-tell):not(.sp6-btn) { color: #0E2F1F; text-decoration-color: #6B4F2E; text-decoration-thickness: 1.5px; }
.sp5 .v4-card:not(.is-empty) .v4-st.is-empty { color: #3E3223; box-shadow: inset 0 0 0 1.5px #3E3223; }
.sp5 .v4-card:not(.is-empty) .v4-deep summary { box-shadow: none; }
.sp5 .v4-card.is-partial .v4-miss b, .sp5 .v4-card.is-partial .v4-gap b { color: #0E2F1F; }
.sp5 .v4-card.is-partial .v4-miss, .sp5 .v4-card.is-partial .v4-gap { background: #CDBDA2; color: #121417; box-shadow: inset 3px 0 0 #3E3223; }
.sp5 .v4-card:not(.is-empty) .v4-table thead th { background: #CDBDA2; color: #3E3223; }
.sp5 .v4-card:not(.is-empty) .v4-table td, .sp5 .v4-card:not(.is-empty) .v4-table th { color: #121417; }
.sp5 .v4-card:not(.is-empty) dfn.v4-term { color: #121417; }
/* For the curious, opened: the card's own text colour (keeps the 0.19.7 fix whatever the fill) */
.sp5 .v4-card .v4-deep-in, .sp5 .v4-card .v4-deep-in p, .sp5 .v4-card .v4-deep-in li { color: var(--mt-t1); }
.sp5 .v4-card .v4-deep { border-top-color: var(--mt-ln); }
.sp5 .v4-card .v4-deep summary small { color: #F5F1E6; }
/* the name plate's chips: the strip stays the darker parchment, with the orange inset kept as the accent */
.sp5 .v4-card .nd-parts li { background: #CDBDA2; }
.sp5 .v4-card .nd-parts li b { color: #121417; }
/* the Name history chart keeps its own dark plate inside the parchment card, so its marks keep their colours */
.sp5 .nd-hist .sp6-plot { --mt-p: #17191C; --mt-t1: #F5F1E6; --mt-t2: #C9B79A; --mt-ln: #3a3833; }
/* body text 17/28 for reading comfort (0.19.1: 16/26) */
.sp5 .v4-card:not(.is-empty) .v4-body p { font-size: 17px; line-height: 28px; }
/* the Name history plate: the lanes, axis and key on one dark panel */
.sp5 .nd-hist .sp6-plot { margin: 0 -6px; padding: 10px 12px 8px; border-radius: 10px; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .2); }
.sp5 .nd-hist .sp6-plot .nd-ln-name i, .sp5 .nd-hist .sp6-plot .nd-nm { color: #F5F1E6; }
.sp5 .nd-hist .sp6-plot .nd-lane.is-acc .nd-nm, .sp5 .nd-hist .sp6-plot .nd-lane.is-acc .nd-nm i { color: #F7A531; }
.sp5 .nd-hist .sp6-plot .nd-key, .sp5 .nd-hist .sp6-plot .nd-src { color: #C9B79A; }

/* ---------------------------------------------------------------- 2. the name */
/* Barlow Semi Condensed Black Italic (B): the homepage title's family, about 12% wider, still italic; never capitals */
.sp-hero-name.sp-hero-name, .sp5 .v4-card .nd-big, .sp5 .nd-big i { font-family: "Barlow Semi Condensed", "Barlow Condensed", sans-serif; font-style: italic; font-weight: 900; letter-spacing: 0; }
/* core 0.19.6: never capitals, stated (Avada's .post-content h1 sets uppercase; the class doubled to outrank its 0,1,1) */
.sp-hero-name.sp-hero-name { text-transform: none; }
.sp-hero-name.sp-hero-name { font-size: 80px; line-height: 80px; }
.sp5 .v4-card .nd-big { font-size: 58px; line-height: 60px; }
@media (max-width: 760px) {
  .sp-hero-name.sp-hero-name { font-size: 46px; line-height: 48px; }
  .sp5 .v4-card .nd-big { font-size: 40px; line-height: 44px; }
}

/* ---------------------------------------------------------------- 3. say it (the narration family's button) */
.sp6-say { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(245, 241, 230, .35); background: rgba(18, 20, 23, .4); color: #F5F1E6; font: 700 14px/18px Montserrat, sans-serif; white-space: nowrap; }
.sp6-say .sp6-say-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F58A1F; color: #121417; flex: none; }
.sp6-say svg { width: 16px; height: 16px; fill: currentColor; }
.sp6-say .sp6-eq { display: none; gap: 2px; align-items: end; height: 14px; }
.sp6-say .sp6-eq i { display: block; width: 3px; background: #121417; border-radius: 1px; animation: sp6eq .7s ease-in-out infinite alternate; }
.sp6-say .sp6-eq i:nth-child(2) { animation-delay: -.25s; } .sp6-say .sp6-eq i:nth-child(3) { animation-delay: -.5s; }
@keyframes sp6eq { from { height: 4px; } to { height: 14px; } }
.sp6-say[aria-pressed="true"] { border-color: #F58A1F; }
.sp6-say[aria-pressed="true"] .sp6-say-play { display: none; }
.sp6-say[aria-pressed="true"] .sp6-eq { display: inline-flex; }
.sp6-say.is-noaudio { cursor: default; border-style: dashed; border-color: rgba(201, 183, 154, .6); color: #C9B79A; background: transparent; }
.sp6-say.is-noaudio .sp6-say-ic { background: transparent; color: #C9B79A; box-shadow: inset 0 0 0 1.5px #C9B79A; }
.sp6-say:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sp6-say .sp6-eq i { animation: none; height: 10px; } }
.sp6-say-v { display: block; margin-top: 4px; font: 500 12px/16px "Open Sans", sans-serif; color: #C9B79A; }
/* on a parchment card the button inverts to the card's ink */
.v4-card .sp6-say { border-color: rgba(18, 20, 23, .35); background: #fff8; color: #121417; }
.v4-card .sp6-say[aria-pressed="true"] { border-color: #6B4F2E; }
.v4-card .sp6-say.is-noaudio { color: #6B4F2E; border-color: #6B4F2E; }
.v4-card .sp6-say.is-noaudio .sp6-say-ic { color: #6B4F2E; box-shadow: inset 0 0 0 1.5px #6B4F2E; }
.v4-card .sp6-say-v { color: #6B4F2E; }
/* At a glance: the button in the describer row, to the right of "Osborn described it in 1905" */
.v4-desc.sp6-has-say { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.v4-desc .sp6-say-wrap { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.v4-desc .sp6-say-wrap .sp6-say-t { font: 600 15px/20px "Open Sans", sans-serif; color: #F5F1E6; }
.v4-desc .sp6-say-wrap .sp6-say-v { margin: 0; }
/* the Say it row: the button under the speaker icon and the label (the column Ben circled) */
.nd-row.sp6-say-row dt { display: grid; align-content: start; gap: 10px; }
.nd-row.sp6-say-row dt .sp6-say { justify-self: start; }
@media (max-width: 760px) {
  .v4-desc .sp6-say-wrap { margin-left: 0; flex-basis: 100%; }
}

/* ---------------------------------------------------------------- 4. closest relatives */
.sp5 .v4-rel.sp6-rel li a { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 6px 0; }
.sp5 .v4-rel.sp6-rel li a > .sp6-th { grid-row: 1 / span 2; width: 96px; height: 48px; display: block; border-radius: 2px; background: #EAE0CB; overflow: hidden; }
.sp5 .v4-rel.sp6-rel li a > .sp6-th img { width: 96px; height: 48px; object-fit: contain; object-position: 50% 96%; display: block; }
.sp5 .v4-rel.sp6-rel li a > .sp6-th svg { width: 96px; height: 48px; padding: 4px 10px; box-sizing: border-box; fill: #8b7a5f; display: block; }
.sp5 .v4-rel.sp6-rel li a > i { align-self: end; }
.sp5 .v4-rel.sp6-rel li a > span:not(.sp6-th) { align-self: start; }
@media (max-width: 760px) {
  .sp5 .v4-rel.sp6-rel li a { grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; }
  .sp5 .v4-rel.sp6-rel li a > .sp6-th, .sp5 .v4-rel.sp6-rel li a > .sp6-th img, .sp5 .v4-rel.sp6-rel li a > .sp6-th svg { width: 80px; height: 40px; }
}

/* ---------------------------------------------------------------- 5. name history */
.sp5 .nd-hist .sp6-hbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.sp5 .nd-hist .sp6-hbar p { margin: 0; font: 500 13px/18px "Open Sans", sans-serif; color: var(--mt-t2); }
.sp6-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer; border: 1.5px solid currentColor; background: transparent; font: 700 13px/18px Montserrat, sans-serif; color: var(--mt-t1, #F5F1E6); }
.sp6-btn svg { width: 16px; height: 16px; fill: currentColor; }
.sp6-btn:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
.sp6-btn.is-primary { background: #F58A1F; border-color: #F58A1F; color: #121417; }
.sp5 .nd-lane .sp6-lnb { all: unset; display: block; cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; }
.sp5 .nd-lane .sp6-lnb:focus-visible { outline: 3px solid #F58A1F; outline-offset: 1px; }
.sp5 .nd-lanes.has-sel .nd-lane:not(.is-sel) .nd-track { opacity: .3; }
.sp5 .nd-lanes .nd-lane.is-sel { background: rgba(245, 138, 31, .12); box-shadow: inset 3px 0 0 #F58A1F; }
.sp5 .nd-lanes .nd-lane.is-sel .nd-bar:not(.is-after) { height: 6px; top: 8px; }
.sp5 .nd-pt.sp6-pt { cursor: pointer; }
.sp5 .nd-pt.sp6-pt:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 3px; }
.sp5 .nd-pt.sp6-pt.is-on { box-shadow: 0 0 0 2px #17191C, 0 0 0 4px #F5F1E6; }
/* the opinion behind a mark */
.sp6-op { position: absolute; z-index: 5; width: 300px; padding: 12px 14px; border-radius: 10px; background: #F5F1E6; color: #121417; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); font: 400 14px/20px "Open Sans", sans-serif; }
.sp6-op::before { content: ""; position: absolute; top: -7px; left: var(--ax, 24px); width: 14px; height: 14px; background: #F5F1E6; transform: rotate(45deg); }
.sp6-op b.sp6-op-k { display: block; margin-bottom: 4px; padding-right: 26px; font: 700 11px/16px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6B4F2E; }
.sp6-op p { margin: 0 0 6px; } .sp6-op p:last-child { margin: 0; }
.sp6-op .sp6-op-src { font-size: 12px; line-height: 17px; color: #6B4F2E; }
.sp6-op .sp6-op-x { all: unset; position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #121417; font: 700 18px/1 Montserrat, sans-serif; }
/* the selected name's opinions, under the chart */
.sp6-sel { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--mt-strip); }
.sp6-sel[hidden] { display: none; }
.sp6-sel h4 { margin: 0 0 6px; font: 700 14px/20px Montserrat, sans-serif; color: var(--mt-t1); }
.sp6-sel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp6-sel li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; font: 400 14px/20px "Open Sans", sans-serif; color: var(--mt-t1); }
.sp6-sel li b { font-family: Montserrat, sans-serif; }
.sp6-sel li small { color: var(--mt-t2); }
/* playing through time: a playhead over the tracks and the year */
.sp5 .nd-hist .sp6-plot { position: relative; }
.sp6-head { position: absolute; top: 0; bottom: 26px; width: 2px; background: #F58A1F; pointer-events: none; display: none; }
.sp6-head b { position: absolute; top: -2px; left: 6px; padding: 1px 6px; border-radius: 4px; background: #F58A1F; color: #121417; font: 700 12px/16px Montserrat, sans-serif; }
.nd-hist.is-playing .sp6-head { display: block; }
.nd-hist.is-playing .nd-pt.is-future, .nd-hist.is-playing .nd-bar.is-future { opacity: 0; }
.nd-hist .nd-pt, .nd-hist .nd-bar { transition: opacity .25s; }
@media (prefers-reduced-motion: reduce) { .nd-hist .nd-pt, .nd-hist .nd-bar { transition: none; } }
/* the two "For the curious" panels in the right column beside the long text */
.sp5 .sp6-hcols { display: grid; grid-template-columns: minmax(0, 72ch) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 14px; border-top: 1px solid var(--mt-ln); }
.sp5 .sp6-hcols .nd-hist-text { border-top: 0; padding-top: 0; }
.sp5 .sp6-hside { display: grid; gap: 12px; position: sticky; top: 84px; }
.sp5 .sp6-hside > details.v4-deep { margin: 0; border: 0; padding: 0; }
.sp5 .sp6-hside > details.v4-deep > summary { width: 100%; box-sizing: border-box; }
.sp5 .sp6-hside .v4-tablewrap { max-height: 520px; overflow: auto; }
.sp5 .sp6-hside .nd-ops thead { display: none; }
.sp5 .sp6-hside .nd-ops, .sp5 .sp6-hside .nd-ops tbody { display: block; }
.sp5 .sp6-hside .nd-ops tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--mt-ln); }
.sp5 .sp6-hside .nd-ops td, .sp5 .sp6-hside .nd-ops th { display: block; padding: 0; border: 0; text-align: left; font-size: 13px; line-height: 19px; }
.sp5 .sp6-hside .nd-ops tr > :first-child { grid-row: 1 / span 9; font-weight: 700; }
.sp5 .sp6-hside .nd-ops td.nd-ref { font-size: 12px; line-height: 17px; color: var(--mt-t2); }
/* little text: the panels sit side by side under the chart, full width */
.sp5 .sp6-hcols.is-short { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sp5 .sp6-hcols.is-short .nd-hist-text { grid-column: 1 / -1; }
.sp5 .sp6-hcols.is-short .sp6-hside { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); position: static; }
@media (max-width: 1100px) { .sp5 .sp6-hcols { grid-template-columns: minmax(0, 1fr); } .sp5 .sp6-hside { position: static; } }

/* ---------------------------------------------------------------- 6. what it looked like */
.sp6-lk-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin: 0 0 22px; }
.sp6-lk-top.is-one { grid-template-columns: minmax(0, 1fr); }
.sp6-lk-top .sp5-rex-tip { margin: 0; align-items: center; }
.sp6-lk-top .sp5-rex-tip p { font-size: 16px; line-height: 25px; }
.sp6-lk-top .sp5-rex-tip .dn-rex-eyebrow { font-size: 12px; line-height: 16px; }
.sp5 .sp6-lk-top .sp5-rex-tip > .dn-rex { width: 64px; height: 64px; }
.sp6-qx { padding: 14px 18px 16px; border-radius: 12px; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .28); color: #F5F1E6; }
.sp6-qx.sp6-qx h3 { margin: 0 0 6px; font: 700 13px/18px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #F58A1F; }
.sp6-qx p { margin: 0 0 10px; font: 400 15px/23px "Open Sans", sans-serif; }
.sp6-qx dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 0; }
.sp6-qx dd { margin: 0; font: 400 14px/20px "Open Sans", sans-serif; color: #E6DCC7; }
.sp6-lk-legend-hidden { display: none !important; }
/* the parts as vertical tabs on the left */
.sp6-parts { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.sp6-tabs { display: grid; gap: 6px; position: sticky; top: 84px; }
.sp6-tab { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-items: center; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 10px; cursor: pointer; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); color: #F5F1E6; }
.sp6-tab .v5-ic { grid-row: 1 / span 2; width: 36px; height: 36px; }
.sp6-tab .v5-ic svg { width: 20px; height: 20px; }
.sp6-tab b { font: 700 15px/19px Montserrat, sans-serif; }
.sp6-tab .sp6-tst { display: flex; align-items: center; gap: 6px; font: 700 10px/14px Montserrat, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #C9B79A; }
.sp6-tab .sp6-tst i { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 2px solid #F7A531; }
.sp6-tab .sp6-tst.is-full i { background: #5DBB84; border-color: #5DBB84; }
.sp6-tab .sp6-tst.is-partial i { background: linear-gradient(90deg, #F7A531 50%, transparent 50%); }
.sp6-tab .sp6-tst.is-empty i { border-color: #8b8378; }
.sp6-tab .sp6-tst.is-empty { color: #a99c88; }
.sp6-tab.is-empty b { color: #a99c88; }
.sp6-tab[aria-selected="true"] { background: #F5F1E6; color: #121417; box-shadow: inset 4px 0 0 #F58A1F, 0 6px 16px rgba(0, 0, 0, .35); }
.sp6-tab[aria-selected="true"] .sp6-tst { color: #6B4F2E; }
.sp6-tab[aria-selected="true"] b { color: #121417; }
.sp6-tab:hover:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1.5px #F58A1F; }
.sp6-tab:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
.sp6-panels > article.v4-card { scroll-margin-top: 84px; }
.sp6-panels > article.v4-card:not(.is-shown) { display: none; }
.sp6-acc { display: none; }
/* photos tagged for the part */
.sp6-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--mt-ln); }
.sp6-ph h4 { grid-column: 1 / -1; margin: 0; font: 700 12px/16px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--mt-t2); }
.sp6-ph figure { margin: 0; }
.sp6-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #17191C; }
.sp6-ph figcaption { margin-top: 6px; font: 400 13px/18px "Open Sans", sans-serif; color: var(--mt-t1); }
.sp6-ph figcaption small { display: block; font-size: 12px; line-height: 17px; color: var(--mt-t2); }
@media (max-width: 1100px) { .sp6-parts { grid-template-columns: 230px minmax(0, 1fr); } .sp6-lk-top { grid-template-columns: minmax(0, 1fr); } }
/* phones: an accordion, one part open at a time */
@media (max-width: 760px) {
  .sp6-parts { display: block; }
  .sp6-tabs { display: none; }
  .sp6-panels { display: grid; gap: 8px; }
  .sp6-acc { display: grid; width: 100%; }
  .sp6-panels > article.v4-card:not(.is-shown) { display: none; }
  .sp6-acc[aria-expanded="true"] { border-radius: 10px 10px 0 0; }
  .sp6-acc::after { content: "+"; grid-column: 3; grid-row: 1 / span 2; font: 700 22px/1 Montserrat, sans-serif; }
  .sp6-acc[aria-expanded="true"]::after { content: "\2212"; }
  .sp6-acc { grid-template-columns: 36px minmax(0, 1fr) 20px; }
  .sp6-panels > article.v4-card.is-shown { margin-top: -8px; border-top-left-radius: 0; border-top-right-radius: 0; }
  .sp6-ph { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- 7. size */
.sp6-size { margin: 0 0 22px; padding: 20px 22px 18px; border-radius: 14px; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); color: #F5F1E6; }
.sp6-size.sp6-size h3 { margin: 0; font: 700 13px/18px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #F58A1F; }
.sp6-sz-lines { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 6px 0 14px; }
.sp6-sz-line { display: grid; gap: 2px; }
.sp6-sz-line .sp6-sz-big { font: 900 italic 40px/44px "Barlow Semi Condensed", "Barlow Condensed", sans-serif; color: #F5F1E6; }
.sp6-sz-line .sp6-sz-big small { font: 700 18px/22px Montserrat, sans-serif; font-style: normal; color: #C9B79A; margin-left: 6px; }
.sp6-sz-line .sp6-sz-k { font: 700 11px/16px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #C9B79A; }
.sp6-sz-line .sp6-sz-m { font: 400 14px/20px "Open Sans", sans-serif; color: #E6DCC7; }
.sp6-sz-line .sp-cite { margin-left: 4px; }
.sp6-stage { position: relative; height: 260px; margin: 8px 0 26px; border-bottom: 2px solid #6B4F2E; }
.sp6-stage > * { position: absolute; bottom: 0; }
.sp6-stage img { display: block; }
.sp6-stage .sp6-band { bottom: -14px; height: 8px; border-radius: 4px; background: rgba(245, 138, 31, .35); box-shadow: inset 0 0 0 1.5px #F58A1F; }
.sp6-stage .sp6-band::before, .sp6-stage .sp6-band::after { content: ""; position: absolute; top: -4px; width: 2px; height: 16px; background: #F58A1F; }
.sp6-stage .sp6-band::before { left: 0; } .sp6-stage .sp6-band::after { right: 0; }
.sp6-stage .sp6-lab { bottom: auto; font: 700 12px/16px Montserrat, sans-serif; color: #E6DCC7; white-space: nowrap; }
.sp6-stage svg.sp6-sil { fill: #8b7a5f; }
.sp6-stage svg.sp6-sil.is-dashed { fill: none; stroke: #8b8378; stroke-width: 1.4; stroke-dasharray: 5 4; }
.sp6-sz-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.sp6-sz-add > span { font: 700 12px/16px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #C9B79A; }
.sp6-chipb { all: unset; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(245, 241, 230, .35); font: 600 13px/18px "Open Sans", sans-serif; color: #F5F1E6; }
.sp6-chipb[aria-pressed="true"] { background: #F5F1E6; color: #121417; box-shadow: none; }
.sp6-chipb:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
.sp6-sz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(201, 183, 154, .2); }
.sp6-sz-foot p { margin: 0; font: 400 12px/18px "Open Sans", sans-serif; color: #C9B79A; max-width: 70ch; }
.sp6-sz-foot a.sp6-go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #F58A1F; color: #121417 !important; font: 700 14px/18px Montserrat, sans-serif; text-decoration: none !important; }
/* B: the estimate slider */
/* C: the fact strip, no picture */
/* mass: a range band on its own scale, numbers only */
.sp6-mass { margin: 6px 0 0; }
.sp6-mass .sp6-mbar { position: relative; height: 10px; margin: 10px 0 4px; border-radius: 5px; background: rgba(201, 183, 154, .18); }
.sp6-mass .sp6-mbar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: rgba(245, 138, 31, .5); box-shadow: inset 0 0 0 1.5px #F58A1F; }
/* the no-length state */
.sp6-size.is-none .sp6-stage { height: 125px; border-bottom: 0; }
.sp6-size.is-none .sp6-none { margin: 10px 0 0; font: 400 15px/23px "Open Sans", sans-serif; color: #E6DCC7; max-width: 64ch; }
.sp6-size.is-none .sp6-none b { color: #F5F1E6; }
.sp6-size.is-none .sp6-none a { color: #F5F1E6; }
.sp6-hide { display: none !important; }
@media (max-width: 760px) {
  .sp6-size { padding: 16px 14px 14px; }
  .sp6-stage { height: 170px; }
  .sp6-sz-line .sp6-sz-big { font-size: 32px; line-height: 36px; }
  .sp6-sz-foot a.sp6-go { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- 8. when and where */
.sp6-envs { display: grid; gap: 10px; margin: 22px 0 0; }
details.sp6-env { border-radius: 12px; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); }
details.sp6-env > summary { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 64px; padding: 10px 16px 10px 12px; cursor: pointer; border-radius: 12px; }
details.sp6-env > summary::-webkit-details-marker { display: none; }
details.sp6-env > summary .v5-ic { grid-row: 1 / span 2; width: 40px; height: 40px; }
details.sp6-env > summary .v5-ic svg { width: 22px; height: 22px; }
details.sp6-env > summary b { font: 700 17px/22px Montserrat, sans-serif; color: #F5F1E6; }
details.sp6-env > summary .sp6-sum { grid-column: 2; font: 400 14px/20px "Open Sans", sans-serif; color: #C9B79A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.sp6-env > summary .v4-st { grid-column: 3; grid-row: 1 / span 2; }
details.sp6-env > summary::after { content: "+"; grid-column: 4; grid-row: 1 / span 2; justify-self: center; font: 700 24px/1 Montserrat, sans-serif; color: #F58A1F; }
details.sp6-env[open] > summary::after { content: "\2212"; }
details.sp6-env > summary:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
details.sp6-env > summary:hover { box-shadow: inset 0 0 0 1.5px #F58A1F; }
details.sp6-env > article.v4-card { margin: 0 8px 8px; }
details.sp6-env > article.v4-card > .v4-card-h { display: none; }
@media (max-width: 760px) {
  details.sp6-env > summary { grid-template-columns: 36px minmax(0, 1fr) 24px; grid-template-rows: auto auto auto; padding: 10px 12px; }
  details.sp6-env > summary .v5-ic { grid-row: 1 / span 3; width: 36px; height: 36px; }
  details.sp6-env > summary .v4-st { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
  details.sp6-env > summary::after { grid-column: 3; grid-row: 1 / span 3; }
  details.sp6-env > summary .sp6-sum { white-space: normal; }
}


/* ---------------------------------------------------------------- the plate's axis, the relatives' rows, phones */
/* inside the parchment card the plate keeps its own ink: the card's spans inherit (".sp5 .v4-card span:not(...)"), so
   the plate sets Bone White and the axis wins over that rule */
.sp5 .v4-card .sp6-plot { color: #F5F1E6; }
.sp5 .v4-card.nd-hist .sp6-plot .nd-axis span:not(.v4-st) { color: #C9B79A; }
.sp5 .v4-card.nd-hist .sp6-plot .nd-axis span.is-now { color: #F7A531; }
.sp5 .nd-hist .sp6-plot .nd-axis { border-top-color: #3a3833; }
.sp5 .v4-rel.sp6-rel li a > i { grid-column: 2; grid-row: 1; }
.sp5 .v4-rel.sp6-rel li a > span:not(.sp6-th) { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; margin: 0; font-size: 13px; line-height: 18px; color: var(--mt-t2); }
@media (max-width: 760px) {
  .sp6-panels > article.v4-card.is-shown > .v4-card-h { display: none; }
  .sp6-sz-line .sp6-sz-big small { display: block; margin: 2px 0 0; }
}
.sp6-size.is-none .sp6-stage { margin-bottom: 4px; }
.sp6-none-lab { margin: 0; font: 700 14px/20px Montserrat, sans-serif; color: #E6DCC7; }
.sp6-stage svg.sp6-sil.is-dashed { stroke-width: 1.6; }
.sp6-sz-line .sp6-sz-big.is-none { color: #a99c88; }
.sp5 .v4-rel.sp6-rel li a > .sp6-th.is-none { background: transparent; }
.sp5 .v4-rel.sp6-rel li > i { display: block; padding: 6px 0 6px 110px; }
/* the no-length state: the group's dashed outline at 190 px (Sp6-Size), not to scale */
.sp6-size.is-none .sp6-stage svg.sp6-sil { width: 190px; height: 115px; display: block; }
/* core 0.19.5: the old #environment anchor at the top of When it lived (the When and where section is gone) */
.sp-anchor { display: block; height: 0; }

/* ---------------------------------------------------------------- round 7 (core 0.20.0; Ben, 2026-10-31 19:39): more tabs,
   Where it lived in two columns, Sources and Image credits closed, previous / next titled */
/* the parts of Name and discovery, Size, Classification and Fossil record: dn_v4_tabset()'s plain panels */
.sp6-panels > .sp6-pan { min-width: 0; scroll-margin-top: 84px; }
.sp6-panels > .sp6-pan:not(.is-shown) { display: none; }
.sp6-pan > .v4-card, .sp6-pan > .v4-est, .sp6-pan > .nd-place, .sp6-pan > .sp6-parts { margin-top: 0; }
.sp7-parts { margin-top: 18px; }
.sp6-tab .sp6-tst.is-count { font-size: 11px; letter-spacing: .04em; }
/* How it was found's own tabs inside its tab: a row across the top of the panel (phones keep the accordion) */
@media (min-width: 761px) {
  .sp6-parts.sp7-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sp7-row > .sp6-tabs { display: flex; flex-wrap: wrap; gap: 6px; position: static; }
  .sp7-row > .sp6-tabs > .sp6-tab { flex: 1 1 190px; min-height: 52px; }
}
/* Where it lived: the map at 3/5, the facts at 2/5, top-aligned; stacked under 1024 px */
@media (min-width: 1024px) {
  .sp7-where { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
  .sp7-where-facts .sp6-envs { margin-top: 0; }
  .sp7-where-facts details.sp6-env > summary { grid-template-columns: 36px minmax(0, 1fr) auto 24px; column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .sp7-where-facts details.sp6-env > summary .sp6-sum { white-space: normal; }
}
/* Sources and Image credits: closed at first, the count in the summary */
details.sp7-disc { border-radius: 12px; background: #17191C; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); }
details.sp7-disc + details.sp7-disc, .sp5-src-credits details.sp7-disc { margin-top: 0; }
details.sp7-disc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer; border-radius: 12px; }
details.sp7-disc > summary::-webkit-details-marker { display: none; }
details.sp7-disc > summary .dn-panel-title { margin: 0; }
details.sp7-disc > summary::after { content: "+"; font: 700 24px/1 Montserrat, sans-serif; color: #F58A1F; }
details.sp7-disc[open] > summary::after { content: "\2212"; }
details.sp7-disc > summary:hover { box-shadow: inset 0 0 0 1.5px #F58A1F; }
details.sp7-disc > summary:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
details.sp7-disc > ol, details.sp7-disc > ul, details.sp7-disc > .sp2-src-all { margin-left: 16px; margin-right: 16px; }
details.sp7-disc[open] { padding-bottom: 12px; }
/* previous and next under their section title */
.sp-pn-sec .sp2-pn { padding-top: 0; }
@media (max-width: 760px) {
  .sp6-panels > .sp6-pan.is-shown { margin-top: -2px; }
}
/* the credits card around its disclosure: the disclosure is the box */
.sp5 .sp2-credits-card:has(> details.sp7-disc) { padding: 0; background: none; border: 0; box-shadow: none; }

/* ---------------------------------------------------------------- core 0.20.2: the species page, round 7 looks
   (approval row 68, approved in full 2026-10-31; briefs/handoff-species-sp7-design-2026-10-31.md). The round 7 tabs
   (0.20.0) stay; these looks go on top of them. */
/* ---------------------------------------------------------------- 2. section headings: the site's banner heading */
.sp-sec-head .dn-bh { margin: 0 0 18px; }
.dn-bh.sp-bh { --med: 64px; --t: 36px; --pad-x: 26px; padding-top: 12px; }
.dn-bh.sp-bh .dn-bh-mid { padding-top: 20px; padding-bottom: 12px; }
.dn-bh.sp-bh .dn-bh-eyebrow { font-size: 11px; line-height: 15px; }
.dn-bh.sp-bh h2.dn-bh-title.dn-bh-title { margin: 0; }
.sp5 .sp-sec-head { margin-bottom: 0; }
@media (max-width: 760px) { .dn-bh.sp-bh { --med: 48px; --t: 26px; --pad-x: 16px; } .dn-bh.sp-bh .dn-bh-eyebrow { font-size: 10px; } }
@media (max-width: 480px) { .dn-bh.sp-bh { --med: 44px; --t: 24px; --pad-x: 14px; } }
/* ---------------------------------------------------------------- 3. Lived alongside: three trays */
.sp5 #alongside .sp-groups { display: grid; gap: 22px; }
.sp5 #alongside .sp-rel { position: relative; padding: 0 20px 20px; border-radius: 14px; background: rgba(18, 20, 23, .78); box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22), 0 10px 26px rgba(0, 0, 0, .35); }
.sp5 #alongside .sp-rel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; background: var(--tray); }
.sp5 #alongside .sp-rel-found { --tray: #F58A1F; }
.sp5 #alongside .sp-rel-place { --tray: repeating-linear-gradient(90deg, #C9B79A 0 12px, transparent 12px 20px); }
.sp5 #alongside .sp-rel-kin { --tray: #F5F1E6; }
.sp5 .sp-gh { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "ic t" "ic d"; gap: 2px 14px; align-items: center; margin: 0 -20px 16px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(201, 183, 154, .2); }
.sp5 .sp-gh-ic { grid-area: ic; position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #3a2c20 0%, #241b14 58%, #1b1510 100%); box-shadow: inset 0 0 0 2px #6B4F2E, 0 3px 8px rgba(0, 0, 0, .5); }
.sp5 .sp-gh-ic img { width: 34px; height: 34px; }
.sp5 .sp-gh-ic.is-pair img + img { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.sp5 .sp-gh-t { grid-area: t; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.sp5 .sp-gh h3.sp-gh-h.sp-gh-h { margin: 0; font: 700 22px/28px Montserrat, sans-serif; letter-spacing: .01em; color: #F5F1E6; text-transform: none; }
.sp5 .sp-gh .sp-match { margin: 0; }
.sp5 .sp-gh-d { grid-area: d; margin: 0; font: 400 15px/22px "Open Sans", sans-serif; color: #C9B79A; }
@media (max-width: 760px) {
  .sp5 #alongside .sp-rel { padding: 0 12px 14px; }
  .sp5 .sp-gh { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "ic t" "d d"; margin: 0 -12px 12px; padding: 14px 12px 12px; gap: 6px 12px; }
  .sp5 .sp-gh-ic { width: 44px; height: 44px; } .sp5 .sp-gh-ic img { width: 26px; height: 26px; }
  .sp5 .sp-gh h3.sp-gh-h.sp-gh-h { font-size: 19px; line-height: 24px; }
}
/* ---------------------------------------------------------------- 5. What we don't know yet: two tabs */
.sp-u-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 18px; max-width: 80ch; font: 400 17px/26px "Open Sans", sans-serif; color: #F5F1E6; }
.sp-u-count b { margin-right: 4px; font: 900 34px/1 "Barlow Condensed", sans-serif; color: #F58A1F; }
.sp-u-count .sp-u-stat { white-space: nowrap; }
.sp-u-count p { flex-basis: 100%; margin: 0; font-size: 15px; line-height: 22px; color: #C9B79A; }
.sp-u-tabs { display: flex; gap: 6px; margin: 0; padding: 0; border-bottom: 2px solid rgba(201, 183, 154, .3); }
.sp-u-tab { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: -2px; padding: 0 20px; border: 0; border-radius: 12px 12px 0 0; background: rgba(18, 20, 23, .7); color: #F5F1E6; font: 700 16px/20px Montserrat, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); }
.sp-u-tab .sp-u-tab-n { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 12px; background: rgba(201, 183, 154, .2); font: 800 13px/1 Montserrat, sans-serif; color: #F5F1E6; }
.sp-u-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-u-tab[aria-selected="true"] { background: #F5F1E6; color: #121417; box-shadow: inset 0 -4px 0 #F58A1F; }
.sp-u-tab[aria-selected="true"] .sp-u-tab-n { background: #121417; color: #F5F1E6; }
.sp-u-tab:focus-visible { outline: 3px solid #F58A1F; outline-offset: 2px; }
.sp-u-panel { padding: 22px 24px 24px; border-radius: 0 12px 12px 12px; background: rgba(18, 20, 23, .82); box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .22); }
.sp-u-panel[hidden] { display: none; }
.sp-u-lead { max-width: 80ch; margin: 0 0 16px; font: 400 16px/24px "Open Sans", sans-serif; color: #C9B79A; }
/* core 0.31.1: the Open questions takeaway, the tab's first line */
.sp-u-take { max-width: 80ch; margin: 0 0 12px; font: 600 18px/27px "Open Sans", sans-serif; color: #F5F1E6; }
.sp-u-oq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sp-u-oq li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 12px; background: #1F2022; box-shadow: inset 0 0 0 1px rgba(201, 183, 154, .18); font: 400 16px/25px "Open Sans", sans-serif; color: #F5F1E6; }
.sp-u-oq li::before { content: "?"; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #F58A1F; color: #121417; font: 900 26px/1 "Barlow Condensed", sans-serif; }
.sp-u-gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.sp-u-gg h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(201, 183, 154, .3); font: 700 15px/20px Montserrat, sans-serif; letter-spacing: .02em; text-transform: none; color: #F5F1E6; }
.sp-u-gg h4 a { color: inherit; text-decoration: none; } .sp-u-gg h4 a:hover { text-decoration: underline; }
.sp-u-gg h4 small { margin-left: auto; font: 700 12px/16px Montserrat, sans-serif; color: #C9B79A; }
.sp-u-gg ul { margin: 0; padding: 0; list-style: none; }
.sp-u-gg li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(201, 183, 154, .12); font: 400 15px/21px "Open Sans", sans-serif; color: #F5F1E6; }
.sp-u-gg li em { font: 600 12px/16px Montserrat, sans-serif; font-style: normal; letter-spacing: .04em; color: #C9B79A; white-space: nowrap; }
.sp-u-shape { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.sp-u-shape svg { width: 20px; height: 20px; }
.sp-u-shape.is-partial circle { fill: none; stroke: #F7A531; stroke-width: 2; } .sp-u-shape.is-partial path { fill: #F7A531; }
.sp-u-shape.is-empty circle { fill: none; stroke: #C9B79A; stroke-width: 2; stroke-dasharray: 3 2.6; }
.sp-u-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; font: 600 13px/18px Montserrat, sans-serif; color: #F5F1E6; }
.sp-u-key span { display: inline-flex; align-items: center; gap: 8px; }
.sp5 a.sp-u-tell { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; padding: 0 18px; border-radius: 999px; background: #F58A1F; color: #121417; font: 700 14px/18px Montserrat, sans-serif; text-decoration: none; }
.sp-u-empty { margin: 0; padding: 18px; border-radius: 12px; border: 1.5px dashed rgba(201, 183, 154, .5); font: 400 16px/24px "Open Sans", sans-serif; color: #C9B79A; }
@media (max-width: 1100px) { .sp-u-oq, .sp-u-gaps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .sp-u-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .sp-u-tab { min-height: 64px; padding: 8px 10px; font-size: 14px; line-height: 18px; justify-content: center; text-align: left; gap: 8px; }
  .sp-u-tab svg { display: none; }
  .sp-u-panel { padding: 16px 14px 18px; border-radius: 0 0 12px 12px; }
  .sp-u-oq li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 14px; font-size: 15px; line-height: 23px; }
  .sp-u-oq li::before { width: 32px; height: 32px; font-size: 22px; }
  .sp-u-take { font-size: 16px; line-height: 24px; }
  .sp-u-count b { font-size: 28px; }
}
/* ---------------------------------------------------------------- 6. Keep exploring A: the heading, the cards unchanged */
.sp-pn-sec .sp-sec-head .dn-bh { margin-bottom: 14px; }

/* ================================================================ core 0.27.0 (approval row 76 C): Pronounce name
   beside the species name (includes/species-blocks.php dn_species_say_name()); a 44 px pill, the line under the name */
.sp-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.sp-name-row h1 { margin: 0; }
.sp-say { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: rgba(18, 20, 23, .82); box-shadow: inset 0 0 0 1.5px #F58A1F, 0 8px 22px -10px rgba(0, 0, 0, .9);
  color: #F5F1E6; font: 700 13px/16px var(--font-heading, Montserrat, sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: box-shadow .2s, background .15s; }
.sp-say .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #F58A1F; }
.sp-say .c svg { width: 14px; height: 14px; fill: #121417; }
.sp-say .c .pl { transform: translateX(1px); }
.sp-say .c .wv { display: none; }
.sp-say:hover, .sp-say:focus-visible { box-shadow: inset 0 0 0 1.5px #F58A1F, 0 0 22px -4px rgba(245, 138, 31, .7); }
.sp-say:focus-visible { outline: 3px solid #F5F1E6; outline-offset: 3px; }
.sp-say.is-playing { background: #F58A1F; color: #121417; }
.sp-say.is-playing .c { background: #121417; }
.sp-say.is-playing .c svg { fill: #F58A1F; }
.sp-say.is-playing .c .pl { display: none; }
.sp-say.is-playing .c .wv { display: inline; }
.sp-say-line { max-width: 72ch; margin: 10px 0 0; font: 400 13px/20px var(--font-body, 'Open Sans', sans-serif); color: #E6DCC7; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.sp-say-line a { color: #F5F1E6; text-decoration: underline; text-underline-offset: 2px; }
.sp-say-line .dot { margin: 0 6px; color: #C9B79A; }
@media (max-width: 760px) {
  .sp-name-row { display: block; }
  .sp-name-row .sp-say { margin-top: 10px; }
}
@media print { .sp-say, .sp-say-link { display: none !important; } }
/* core 0.28.1, Pronounce in Name and discovery: the name clip's Listen button (.dn-say, dn-tours.css; printed hidden,
   species-v4.js shows it) beside the respelling, or the name, in the name plate's Say it row; the lines under them stay
   full width. Print hides the button (dn-tours.css), so the respelling keeps its place. */
.sp5 .nd-row dd.nd-hear { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.sp5 .nd-row dd.nd-hear > * { grid-column: 1 / -1; }
.sp5 .nd-row dd.nd-hear > .dn-say { grid-column: 1; }
.sp5 .nd-row dd.nd-hear > .dn-say:not([hidden]) + .nd-say { grid-column: 2; }
@media print { .sp5 .nd-row dd.nd-hear { display: block; } }
