/* Owner-approved categorical contrast (2026-10-31). Hue identifies a slice; width, not darkness, is quantity. */
:root { --wild-blue:#2367b7; --wild-orange:#bd5908; --wild-purple:#4b1a68; --wild-teal:#005149; --wild-gold:#7d2800; }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { --wild-blue:#5f9fe7; --wild-orange:#f6a34f; --wild-purple:#edb7f3; --wild-teal:#218b78; --wild-gold:#fff1a0; } }
:root[data-theme="dark"] { --wild-blue:#5f9fe7; --wild-orange:#f6a34f; --wild-purple:#edb7f3; --wild-teal:#218b78; --wild-gold:#fff1a0; }
.wild-eyebrow { font-size:.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin:0 0 7px; }
.wild-page-links { display:flex; gap:12px 24px; flex-wrap:wrap; align-items:center; margin:0 0 20px; font-size:.9rem; }
/* "Open all sections" (common.js initDisclosures, as on the methodology): every disclosure on the page, for a browser
   whose find-in-page does not search closed ones (the owner's answer of 2026-11-09, G). At least 24px tall; not in an
   embed, which shows its disclosures open, nor in print. */
.wild-page-links .toc-all { min-height: 24px; font-size: .85rem; }
.embed .wild-page-links .toc-all { display: none !important; }
#why-assumptions:empty { display:none; }
/* The step circle's width (--wild-step) and the gap after it (--wild-step-gap): the totals under a title are indented
   by both, so they line up with the title whatever the circle's size (GBS-2 review fix). The circle grows with very
   large text, so its number stays inside it (1.3 times the number's .78rem; GBS-2); at the default size it is 25px. */
.wild-view { padding:13px 0 4px; --wild-step:max(25px, calc(.78rem * 1.3)); --wild-step-gap:10px; }
.wild-view-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:13px; }
.wild-view-title { display:flex; align-items:flex-start; gap:var(--wild-step-gap); max-width:61%; }
.wild-step { display:grid; place-items:center; flex:none; width:var(--wild-step); height:var(--wild-step); border:1px solid var(--border-strong); border-radius:50%; font-size:.78rem; color:var(--ink-2); }
.wild-view h3 { font-size:1rem; padding-top:2px; line-height:1.35; }
.wild-view-total { text-align:right; flex:none; line-height:1.35; }
.wild-view-total strong { display:block; font-size:1.05rem; font-weight:650; }
.wild-view-total span { display:block; font-size:.8rem; color:var(--muted); margin-top:3px; max-width:100%; }
/* With very large text on a phone a word wider than the line ("quintillion", "backbones") breaks inside it instead of
   widening the title or the total past the screen's edge (GBS-2). */
.wild-view-title > h3, .wild-view-total strong, .wild-view-total span { min-width:0; overflow-wrap:break-word; }
/* Above 600px the total sits beside the title, which needs about 25em and 50px (the total's "About 4 quintillion" in a
   39% column). Where very large text leaves less (a 768px tablet at 300% text pushed the totals 56px past the screen),
   the total goes under the title, as on a phone. Before the phone rules below, which keep their own spacing at 600px and
   less; at the default text size every wider screen keeps the total beside the title (GBS-2). */
.wild-view { container:wild-view / inline-size; }
@container wild-view (width < calc(25em + 50px)) {
  .wild-view-head { display:block; }
  .wild-view-title { max-width:none; }
  .wild-view-total { text-align:left; margin:8px 0 0 calc(var(--wild-step) + var(--wild-step-gap)); display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; }
}
.wild-bar { display:block; width:100%; height:28px; overflow:visible; }
.wild-labels { display:grid; grid-template-columns:1fr 1fr; gap:7px 26px; list-style:none; margin:13px 0 0; padding:0; font-size:.85rem; line-height:1.4; }
.wild-labels li { display:grid; grid-template-columns:10px minmax(0,1fr) auto; gap:7px; align-items:baseline; }
.wild-key { width:10px; height:10px; margin-top:5px; align-self:start; border:1px solid transparent; }
.wild-labels strong { font-weight:600; font-variant-numeric:tabular-nums; }
.wild-labels .zoom-caption { display:block; color:var(--muted); font-size:.74rem; }
/* overflow-wrap: anywhere lets the note's text (a flex item beside the arrow) narrow below its longest word, so with
   very large text a word wider than the line breaks instead of running past the screen's edge (GBS-2). */
.wild-zoom-note { display:flex; align-items:center; gap:8px; margin:18px 0 5px; color:var(--ink-2); font-size:.84rem; overflow-wrap:anywhere; }
.wild-zoom-note::before { content:"↳"; font-size:1.6rem; line-height:1; }
.wild-reference { margin-top:18px; padding-top:13px; border-top:1px solid var(--grid); }
.wild-reference-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; margin-bottom:8px; }
.wild-reference-head h4 { margin:0; font-size:inherit; font-weight:600; }
.wild-reference-head strong { white-space:nowrap; }
.wild-reference-track { height:20px; border-bottom:1px solid var(--grid); }
.wild-reference-track div { height:20px; border:1.5px solid var(--ink); }
.wild-reference p { font-size:.8rem; color:var(--muted); margin:6px 0 0; }
.wild-chart-notes { font-size:.86rem; color:var(--ink-2); margin-top:18px; padding-top:12px; border-top:1px solid var(--grid); }
.wild-chart-notes p { margin-bottom:8px; }
.wild-neurons { margin:34px 0; }
.wild-neurons>h2 { margin-bottom:15px; }
.wild-method { margin:30px 0; max-width:80ch; }
.wild-method h2 { margin-bottom:12px; }
.wild-empty { padding:14px 0; color:var(--ink-2); }
#why-download .dl-head { margin-top:20px; }
@media(max-width:600px) {
  .wild-view { --wild-step:max(23px, calc(.78rem * 1.3)); --wild-step-gap:8px; }
  .wild-view-head { display:block; margin-bottom:11px; }
  .wild-view-title { max-width:none; }
  .wild-view h3 { font-size:.95rem; }
  /* Under the title, indented by the circle and its gap (31px at the default size, as before). */
  .wild-view-total { text-align:left; margin:8px 0 0 calc(var(--wild-step) + var(--wild-step-gap)); display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; }
  .wild-view-total strong { font-size:.96rem; }
  .wild-view-total span { margin:0; font-size:.76rem; }
  .wild-labels { grid-template-columns:1fr; font-size:.83rem; gap:7px; }
  .wild-labels .zoom-caption { display:inline; margin-left:5px; }
  .wild-zoom-note { font-size:.8rem; }
  .wild-reference-head { font-size:.8rem; align-items:flex-start; }
  .wild-reference p { font-size:.76rem; }
}
/* Where the card is too narrow for the grown circle, its gap and a title's or total's longest word side by side
   ("Mammals,", "backbones", "quadrillion": a phone with very large text, 320px from 250% text, up to 375px at 300%),
   the number goes above the title and the totals lose their indent, so the circle takes no width from the words, which
   stay whole and line up with the title. Elsewhere, at the default size on every phone too, the number stays beside
   the title (GBS-2 review fix; the grown circle beside the title had broken "Mammal / s," and "backbone / s" at 320px
   with 300% text). */
@container wild-view (width < calc(6.5rem + 8px)) {
  .wild-view-title { flex-direction:column; gap:6px; }
  .wild-view-total { margin-left:0; }
}
@media(forced-colors:active) {
  .wild-bar rect { fill:Canvas; stroke:CanvasText; stroke-width:1; forced-color-adjust:none; }
  .wild-bar rect:nth-of-type(even) { fill:CanvasText; }
  .wild-key { background:Canvas!important; border-color:CanvasText; }
  .wild-labels li:nth-child(even) .wild-key { background:CanvasText!important; }
  .wild-labels strong { font-weight:750; }
}
@media print { #wild-page { --wild-blue:#2367b7; --wild-orange:#bd5908; --wild-purple:#4b1a68; --wild-teal:#005149; --wild-gold:#7d2800; } }
