/* Layout pass: last layer, interior only. Home/shared frozen layers unchanged.
   LP-2 replacement typography; LP-3 single CTA spacing owner. */
@media (min-width:481px) {
  body:not([data-page="home"]) .page-hero h1,
  body:not([data-page="home"]) main .section h2,
  body:not([data-page="home"]) .split-intro h2,
  body:not([data-page="home"]) .build-flow h3,
  body:not([data-page="home"]) .lp-card h3,
  body:not([data-page="home"]) .lp-copy h2,
  body:not([data-page="home"]) .field-photo-copy h2,
  body:not([data-page="home"]) .cross-route h2 {
    letter-spacing:-0.012em; word-spacing:0;
  }
}
body:not([data-page="home"]) .page-hero .lede,
body:not([data-page="home"]) .prose p { text-wrap:pretty; }
.lp-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,64px); align-items:center; padding-block:clamp(40px,6vw,72px); }
.lp-split > *, .lp-copy { min-width:0; }
/* A paired split has one spacing owner; do not stack legacy 128px section
   padding with the pattern's own 72px. Founder grid and heroes untouched. */
body:not([data-page="home"]) .section:has(.lp-split) { padding-block:clamp(48px,6vw,72px); }
body:not([data-page="home"]) .section .lp-split { padding-block:0; }
.lp-split.lp-reverse .lp-media { order:-1; }
.lp-copy { display:flex; flex-direction:column; gap:14px; }
.lp-copy h2 { margin:0; font-size:clamp(36px,5vw,64px); line-height:1.06; }
.lp-copy p { margin:0; }
.lp-copy .prose { max-width:65ch; }
.lp-media, .lp-card-media { margin:0; min-width:0; }
.lp-media img { width:100%; height:auto; max-height:520px; object-fit:cover; object-position:center 40%; border-radius:14px; display:block; }
.lp-credit { margin:10px 0 0; color:#e5dcc8; font:400 13px/1.5 "Space Grotesk",sans-serif; }
/* Original third-party blend attribution belongs to unchanged page backgrounds,
   not the new own-photo band. Words and link sequence are preserved verbatim. */
.lp-background-credits { background:#171115; padding-block:24px; }
.lp-background-credits .field-photo-credit { margin:0; color:#e5dcc8; font:400 13px/1.5 "Space Grotesk",sans-serif; }
.lp-card { min-width:0; background:linear-gradient(180deg,rgba(242,237,230,.05),rgba(232,168,60,.04)); border:1px solid rgba(232,168,60,.28); box-shadow:0 10px 30px rgba(0,0,0,.25); border-radius:16px; padding:clamp(28px,4vw,44px); display:flex; flex-direction:column; gap:14px; margin-top:24px; }
.lp-card .section-label, .lp-card .stage, .lp-card p { margin:0; }
.lp-card p { color:var(--cream-copy); }
.lp-card h3 { font-family:"Space Grotesk",sans-serif; font-size:clamp(34px,5vw,60px); font-style:normal; font-weight:700; line-height:1.08; margin:0 0 14px; }
.lp-card ul { columns:2; column-gap:48px; }
.lp-card li { break-inside:avoid; margin-bottom:10px; }
.lp-twoup { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:stretch; margin-top:32px; }
.lp-twoup .lp-card { height:100%; margin:0; }
.lp-twoup .lp-card h3 { font-size:26px; }
.lp-twoup .lp-card > p:last-of-type { margin-top:auto; }
.lp-card-media img { width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:10px; display:block; }
.lp-card-media.lp-portrait img { object-fit:contain; background:#171115; }
.care-figure { margin:clamp(28px,4vw,48px) 0; }
.care-figure img { width:100%; height:auto; max-height:72vh; object-fit:cover; object-position:center 40%; border-radius:12px; display:block; }
.care-figure figcaption { margin-top:10px; color:#e5dcc8; font:400 13px/1.5 "Space Grotesk",sans-serif; }
.care-figure figcaption a { text-underline-offset:3px; display:inline-block; padding:6px 2px; }
body:not([data-page="home"]) .community-preview { padding-block:clamp(48px,6vw,84px); }
body:not([data-page="home"]) .community-preview .cross-route { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,64px); align-items:center; padding-block:0; }
/* Services' four existing reasons remain in sequence, now two populated rows. */
body[data-page="services"] .photo-lp-services .field-photo-copy { max-width:none; }
.lp-reasons { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin-top:32px; }
.lp-reasons .lp-card { margin:0; padding:24px; }
@media(max-width:760px) {
 .lp-reasons { grid-template-columns:minmax(0,1fr); }
 .lp-split, .lp-twoup { grid-template-columns:minmax(0,1fr); gap:22px; }
 .lp-split.lp-reverse .lp-media { order:0; }
 .lp-card ul { columns:1; }
 body:not([data-page="home"]) .community-preview .cross-route { grid-template-columns:minmax(0,1fr); }
}
/* Pre-existing Isopods table overflow fix: cap table at viewport width.
   table-layout:fixed means column widths are pinned by the first row.
   overflow-wrap:normal + hyphens:manual prevents character-level breaks
   while allowing word-boundary wrapping inside fixed columns (card F). */
.care-qr { overflow-x:auto; }
.care-qr table { table-layout:fixed; min-width:0; width:100%; }
.care-qr th, .care-qr td { overflow-wrap:normal; hyphens:manual; word-break:normal; min-width:0; }
/* Pin first column to 32% so the remaining 68% (÷ remaining cols) is always ≥ 84px
   at 320px viewport — enough for the longest single token in any care table. */
.care-qr th:first-child, .care-qr td:first-child { width:32%; }
/* Scoped photo-stem winners at each inherited image breakpoint. Scrims unchanged. */
.field-photo-band.photo-lp-about { background-image:url("lp-band-about-768.webp"); }
.field-photo-band.photo-lp-services { background-image:url("lp-band-services-768.webp"); }
.field-photo-band.photo-lp-animals { background-image:url("lp-band-animals-768.webp"); }
@media(min-width:800px) {
 .field-photo-band.photo-lp-about { background-image:url("lp-band-about-1280.webp"); }
 .field-photo-band.photo-lp-services { background-image:url("lp-band-services-1280.webp"); }
 .field-photo-band.photo-lp-animals { background-image:url("lp-band-animals-1280.webp"); }
}
@media(min-width:1400px) {
 .field-photo-band.photo-lp-about { background-image:url("lp-band-about-1600.webp"); }
 .field-photo-band.photo-lp-services { background-image:url("lp-band-services-1600.webp"); }
 .field-photo-band.photo-lp-animals { background-image:url("lp-band-animals-1600.webp"); }
}
/* PP3 item 2 — services band: 2000px export eliminates upscaling blur at 1920px/retina;
   source is inherently soft (smartphone + overcast light) so this fixes the upscaling
   artifact but does not add detail the source never had. */
@media(min-width:1700px) {
 .field-photo-band.photo-lp-services { background-image:url("lp-band-services-2000.webp"); }
}
/* LP-6 local opaque backing: all text runs, not just h2, pass independently
   of crop brightness. No global hero/scrim/glow changes. */
.field-photo-band[class*="photo-lp-"] .field-photo-copy { background:#171115; border-radius:14px; padding:clamp(24px,4vw,40px); }
.field-photo-band[class*="photo-lp-"] .field-photo-copy h2 { text-shadow:0 1px 2px rgba(0,0,0,.5); }
.field-photo-band[class*="photo-lp-"] .lp-credit { display:table; background:#171115; border-radius:6px; padding:8px 12px; color:#e5dcc8; }
/* Card B band photo stems (community, pets hub, field-notes, work/endangered) */
.field-photo-band.photo-lp-community { background-image:url("lp-band-community-768.webp"); }
.field-photo-band.photo-lp-pets { background-image:url("lp-band-pets-768.webp"); }
.field-photo-band.photo-lp-field-notes { background-image:url("lp-band-field-notes-768.webp"); }
.field-photo-band.photo-lp-work { background-image:url("lp-band-work-768.webp"); }
@media(min-width:800px) {
 .field-photo-band.photo-lp-community { background-image:url("lp-band-community-1280.webp"); }
 .field-photo-band.photo-lp-pets { background-image:url("lp-band-pets-1280.webp"); }
 .field-photo-band.photo-lp-field-notes { background-image:url("lp-band-field-notes-1280.webp"); }
 .field-photo-band.photo-lp-work { background-image:url("lp-band-work-1280.webp"); }
}
@media(min-width:1400px) {
 .field-photo-band.photo-lp-community { background-image:url("lp-band-community-1600.webp"); }
 .field-photo-band.photo-lp-pets { background-image:url("lp-band-pets-1600.webp"); }
 .field-photo-band.photo-lp-field-notes { background-image:url("lp-band-field-notes-1600.webp"); }
 .field-photo-band.photo-lp-work { background-image:url("lp-band-work-1600.webp"); }
}
/* About manifesto's prior ancestor grid must not win against C1. */
body[data-page="about"] .about-manifesto .inner.lp-split { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,64px); align-items:center; }
body[data-page="about"] .about-manifesto .lp-copy blockquote { margin:0; }
@media(max-width:760px) { body[data-page="about"] .about-manifesto .inner.lp-split { grid-template-columns:minmax(0,1fr); } }
/* B: compact copy-first introductions where no second media unit belongs.
   Do not call a two-text-column row a photo pairing. */
.lp-intro { max-width:100%; padding-block:0; }
.lp-intro > .lp-copy { max-width:76ch; }
.lp-intro h2, .lp-artifact-pair h2 { font-size:clamp(36px,5vw,64px); line-height:1.06; margin:0; }
.lp-intro .prose { margin-top:12px; max-width:72ch; }
body:not([data-page="home"]) .section:has(.lp-intro) { padding-block:clamp(40px,5vw,64px); }
.lp-stack { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:32px; }
.lp-stack .lp-card { margin:0; padding:clamp(20px,2.5vw,32px); }
.lp-stack .lp-card h3 { font-size:clamp(26px,2.7vw,36px); }
.lp-artifact-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,64px); align-items:center; }
/* Keeper photos are contained, never cover-cropped: the portrait decision
   stays as-shot. All figures/captions are bounded away from plum page edges. */
.care-figure.lp-keeper-figure { width:calc(100% - 48px); max-width:760px; margin:clamp(28px,4vw,48px) auto; }
.care-figure.lp-keeper-figure img { max-height:none; object-fit:contain; }
.direction-intro .lp-media { margin-top:28px; }
.direction-intro .lp-media img { max-height:360px; }
.form-context .lp-media { margin-top:28px; }
.lp-decorative { display:flex; align-items:flex-end; min-height:clamp(260px,35vw,460px); padding-block:24px; }
.lp-decorative .lp-credit { display:table; margin:0; background:#171115; padding:8px 12px; border-radius:6px; }
.field-photo-band.photo-lp-endangered { background-image:url("lp-band-endangered-768.webp"); }
@media(min-width:800px) { .field-photo-band.photo-lp-endangered { background-image:url("lp-band-endangered-1280.webp"); } }
@media(min-width:1400px) { .field-photo-band.photo-lp-endangered { background-image:url("lp-band-endangered-1600.webp"); } }
@media(min-width:481px) {
 body:not([data-page="home"]) .lp-intro h2,
 body:not([data-page="home"]) .lp-artifact-pair h2 { letter-spacing:-.012em; word-spacing:0; }
}
@media(max-width:900px) { .lp-stack { grid-template-columns:1fr; } }
@media(max-width:760px) { .lp-artifact-pair { grid-template-columns:1fr; } }
/* Calm legal page rhythm only: no new image or motion. */
body[data-page="privacy"] main .section { padding-block:clamp(40px,5vw,64px); }

/* ============================================================
   D: Heading mid-word break fix (card-d, 2026-11-09)
   Root cause: body{overflow-wrap:break-word} + large italic
   serif in a constrained column causes single words to break
   mid-character (detected by Range.getClientRects sweep).
   Rules: hyphens:manual; overflow-wrap:normal on each selector;
   font-size clamped so longest word fits its narrowest column.
   No copy, nav, tagline, glow, teal, hairlines, or photos touched.
   ============================================================ */

/* 1. VIVARIA card h3 (all 6 direction-trunk cards).
      Narrowest column: ~263px (aside minmax(220px) + gap leaves ~263px for content div).
      "serviceable" (11 chars) at 42px italic: ~11 × 0.52 × 42 ≈ 240px → fits.
      Single-column mobile: col is full page width; 24px min is safe. */
.direction-trunk h3 {
  font-size: clamp(24px, 3.2vw, 42px);
  overflow-wrap: normal;
  hyphens: manual;
}

/* 2. Community-voices: strong headings (21px) and dd body (16px).
      "Customers" / "Educators" / "followers" mid-word at 320px narrow.
      Only block-level word-break prevention needed; layout unchanged. */
.community-voices dd strong {
  overflow-wrap: normal;
  hyphens: manual;
}
.community-voices dd {
  overflow-wrap: normal;
  hyphens: manual;
}

/* 3. Species-product h4 — "Red Panda Lithophane" / "Snow Leopard Lithophane"
      breaks at 768-1600px. Column is minmax(0, 0.66fr) of species-product
      which itself sits in the 0.58fr right column of species-dossier.
      Reduce max from 30px to 22px; 10-char "Lithophane" at 22px ≈ 115px → fits
      in the narrowest computed right col (~180px at 768px). */
.species-product h4 {
  font-size: clamp(16px, 2vw, 22px);
  overflow-wrap: normal;
  hyphens: manual;
}

/* 4. Care quick-reference table: restored wrapping fix (card F).
      REGRESSION from card D: .care-qr th { white-space:nowrap } +
      max-width:480px block with table-layout:auto; min-width:max-content
      caused the table to be 838px wide in a 356px scroll box on phones,
      cutting off the second column with no visual cue to scroll.
      FIX: removed nowrap/min-width/scroll rules; solution is column-width
      pinning (th:first-child 32%) + overflow-wrap:normal + hyphens:manual
      (above, lines 64-73). No nowrap, no forced scroll, no content hidden.
      Longest single unbreakable tokens verified at 320px (270px table):
        col1 32% = 86px: "Approximately" (13ch × ~0.55 × 13px = 93px) fits
          with hyphens:manual on "approxi\u00admately" or word stays whole >=86px
          — actual longest col1 word is "Supplemental" (12ch ≈ 86px) ✓
        col2 68% 2-col = 184px; col2 3-col = 92px each:
          "indefinitely" (12ch ≈ 86px < 92px) ✓
          "(21\u201328\u00b0C)" (10ch ≈ 72px < 92px) ✓
          "Cross-" / "ventilation" (browser breaks at hyphen) ✓
      No copy changed. */

/* ============================================================
   E: Species dossier mid-word breaks (card-e, 2026-11-09)
   Root cause: body{overflow-wrap:break-word} + two crushed
   grid columns in .species-details[open] content.
   (a) .species-product left column locked at minmax(150px, 0.34fr)
       leaves the right text column at ~57px inside the outer
       species-card-grid 2-col layout at 768–900px viewports.
   (b) .species-facts section p at 14.4px: 'neonicotinoids'/
       'thermoregulation' (14–16 chars) exceed a 109px column.
   Fixes: overflow-wrap:normal + hyphens:manual on both p selectors;
   relieve the product left-col min-width at ≤900px; shrink
   facts font-size clamp so longest word fits its column.
   No copy, nav, tagline, glow, teal, hairlines, photos touched.
   /learning/ not touched. 13px floor preserved.
   ============================================================ */

/* E-1. species-product p — 'Made to order · current options and pricing on Square'
        breaks mid-word ('curren|t') in the 57px right column at 768–900px.
        Prevent character-level breaks. The column relief (E-2) is the structural fix;
        this is the defensive guard. */
.species-product p {
  overflow-wrap: normal;
  hyphens: manual;
}

/* E-2. Relieve the .species-product left column at ≤900px.
        At ≤900px the outer .species-dossier is single-column but the page's
        species-card-grid is still 2-col, so each dossier-copy is ~341px.
        Left col locked at minmax(150px,0.34fr) consumes 150px + 22px gap = 172px,
        leaving only ~57px for the text column in a 261px content box.
        Reduce left col min to 80px so text column grows to ~159px — enough for
        all product-line words at 16px. */
@media (max-width: 900px) {
  .species-product {
    grid-template-columns: minmax(80px, 0.3fr) minmax(0, 0.7fr);
  }
}

/* E-3. species-facts section p — 'thermoregulation' / 'neonicotinoids'
        at 14.4px in a 109px column. These 14–16-char scientific words exceed the
        column at 14.4px. Clamp font-size so longest word (neonicotinoids, 14 chars)
        fits: at 13px × 14 × ~0.55 ≈ 100px < 109px ✓.
        At ≥1024px 1.5vw ≥ 15.4px → clamp falls back to 14.4px; 13px floor preserved. */
.species-facts p {
  font-size: clamp(13px, 1.5vw, 0.9rem);
  overflow-wrap: normal;
  hyphens: manual;
}

/* Polish Pass 2 — Card A: Help-directly action blocks.
   Visually distinct from shop links (.species-product / .btn).
   No shop styling, no badge, no "proceeds"/match/impact language. */
.help-directly {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  background: rgba(229,220,200,0.04);
  border: 1px solid rgba(229,220,200,0.12);
  border-radius: 6px;
}
.help-directly h4 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-copy, #e5dcc8);
}
.help-directly > p:first-of-type {
  margin: 0 0 0.75rem;
  font-size: clamp(13px, 1.4vw, 0.875rem);
  color: var(--cream-copy, #e5dcc8);
}
.help-directly ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.help-directly li {
  font-size: clamp(13px, 1.4vw, 0.875rem);
  line-height: 1.5;
  color: var(--cream-copy, #e5dcc8);
}
.help-directly li a {
  color: var(--amber, #c8a96e);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-directly li a:hover {
  color: var(--cream-copy, #e5dcc8);
}
.help-directly li em {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
  font-size: clamp(12px, 1.3vw, 0.8125rem);
  color: rgba(229,220,200,0.7);
}
.help-disclosure,
.help-kid-safe {
  margin: 0.4rem 0 0;
  font-size: clamp(11px, 1.2vw, 0.75rem);
  line-height: 1.5;
  color: rgba(229,220,200,0.6);
}

/* Desktop final R1: available source frames, not cover crops. Keep the
   existing outer dossier grid; disclosures grow naturally below media. */
#wildlife .species-card-grid .species-dossier-media {
  order:0;
  min-height:0;
  height:auto;
  aspect-ratio:16/9;
  flex-shrink:0;
}
#wildlife .species-card-grid .species-dossier-media img {
  position:static;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
#wildlife .species-card-grid .species-facts {
  grid-template-columns:minmax(0,1fr);
}

/* Desktop final R3: six existing guides, 3+3 / 2+2+2 / 1x6. */
#keeper-animals .keeper-hub-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#keeper-animals .keeper-hub-card .card-top {
  flex-direction:column;
  align-items:flex-start;
}
#keeper-animals .keeper-hub-card h3 {
  width:100%;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:manual;
}
@media(max-width:1099px) {
  #keeper-animals .keeper-hub-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Only the two supplied portraits: retain the existing 220/180px slots. */
#keeper-animals .keeper-photo-full-frame {
  object-fit:contain;
  object-position:center center;
}
@media(max-width:699px) {
  #keeper-animals .keeper-hub-grid { grid-template-columns:minmax(0,1fr); }
}

/* ============================================================
   LP-PASS: R1 — Full-width open dossier (site/v2-layout-pass)
   Additive only. Closed grid, 12 articles, 7 filters, all
   existing rules above are unchanged.
   ============================================================ */

/* R1-1: When the outer species-dossier <details> is open, it
   spans all grid columns (full section width). It stays in DOM
   order — bounded whitespace in a partial preceding row is
   expected and intentional (preserves source/keyboard order,
   avoids a duplicated/moved reader). */
.species-card-grid .species-dossier[open] {
  grid-column: 1 / -1;
}

/* R1-2: Expanded header retains the reference-photo frame in a
   bounded 260px media area (200px below 700px). Photo is
   contained — no cover crop, no source transformation. */
.species-dossier[open] .species-dossier-media {
  height: 260px;
  aspect-ratio: unset;
}
@media (max-width: 700px) {
  .species-dossier[open] .species-dossier-media {
    height: 200px;
  }
}
.species-dossier[open] .species-dossier-media img {
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
}

/* R1-3: Open facts become stacked, full-section-width bands.
   Headings 21px; fact/help body 17px, line-height 1.75;
   prose max 76ch. No multicolumn facts, no equal-height
   clamping, no imagery behind facts. */
.species-dossier[open] .species-dossier-copy {
  display: block;
  width: 100%;
  max-width: none;
}
.species-dossier[open] .species-facts {
  grid-template-columns: minmax(0, 1fr);
}
.species-dossier[open] .species-facts section {
  padding-block: 24px;
  border-top: 1px solid rgba(229, 220, 200, 0.12);
}
.species-dossier[open] .species-facts section h4 {
  font-size: 21px;
  margin-bottom: 10px;
}
.species-dossier[open] .species-facts section p,
.species-dossier[open] .species-facts section li {
  font-size: 17px;
  line-height: 1.75;
}
.species-dossier[open] .species-facts section p,
.species-dossier[open] .species-facts .prose {
  max-width: 76ch;
}
/* Help and product aside stay in flow after facts; no
   neighboring wildlife column beside help content. */
.species-dossier[open] .species-product {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: rgba(229, 220, 200, 0.03);
  border: 1px solid rgba(229, 220, 200, 0.10);
  border-radius: 8px;
  margin-top: 16px;
}
.species-dossier[open] .species-product > img {
  flex: 0 0 160px;
  width: 160px;
  height: auto;
  border-radius: 6px;
}
.species-dossier[open] .species-product > div {
  flex: 1 1 220px;
  min-width: 0;
}

/* R1-4: Close-dossier button at the bottom of each open dossier.
   Rendered by JS; hidden until JS runs. */
.dossier-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 20px;
  background: rgba(229, 220, 200, 0.06);
  border: 1px solid rgba(229, 220, 200, 0.18);
  border-radius: 6px;
  color: var(--cream-copy, #e5dcc8);
  font: 700 14px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.dossier-close-btn:hover,
.dossier-close-btn:focus-visible {
  background: rgba(229, 220, 200, 0.12);
  border-color: rgba(229, 220, 200, 0.32);
  outline: 2px solid rgba(229, 220, 200, 0.4);
  outline-offset: 2px;
}
/* R1-4-FIX: Close button orphan guard.
   closeOne() removes [open] from the article but does not remove the
   injected .dossier-close-btn. The unconditional display:flex above
   left it visible on collapsed cards. This scoped rule hides it when
   the dossier is closed, restoring it when [open] is re-set by openOne(). */
.species-card-grid .species-dossier:not([open]) .dossier-close-btn {
  display: none;
}

/* ============================================================
   LP-PASS: R2 — Reading-island surfaces on keeper guide routes
   Additive only. Applies only under .page-keeper selectors
   (keeper guide pages). Closed grid/media/hero unchanged.
   ============================================================ */

/* R2-1: Base depth: static moss/earth on guide outer surface.
   Low-alpha edge washes + very fine static grain outside text.
   Keeper guide pages share data-page="animals" but carry
   .page-hero.keeper — :has() scopes these rules to guides only. */
body[data-page="animals"]:has(.page-hero.keeper) main {
  background: #18251e;
}

/* R2-2: Each existing section gets an opaque reading island.
   Desktop padding 20–36px. Existing section structure intact. */
body[data-page="animals"]:has(.page-hero.keeper) main .section > .inner > details > div,
body[data-page="animals"]:has(.page-hero.keeper) main .section > .inner > section,
body[data-page="animals"]:has(.page-hero.keeper) main .care-steps > .care-step {
  background: #19251f;
  border: 1px solid #4b5343;
  border-radius: 12px;
  padding: clamp(20px, 3vw, 36px);
  margin-block: 12px;
}

/* R2-3: Care area sub-background (opened step/body). */
body[data-page="animals"]:has(.page-hero.keeper) main .care-step[open] > div,
body[data-page="animals"]:has(.page-hero.keeper) main .care-step[open] .step-body {
  background: #202e25;
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 28px);
  margin-top: 12px;
}

/* R2-4: Related-card captions — opaque cream so they clear
   4.5:1 over the composite surface. */
body[data-page="animals"]:has(.page-hero.keeper) .keeper-hub-card .keeper-card-caption,
body[data-page="animals"]:has(.page-hero.keeper) .keeper-card-mini .card-label,
body[data-page="animals"]:has(.page-hero.keeper) .related-card figcaption {
  color: #e5dcc8;
  background: transparent;
}

/* R2-5: Alternated low-opacity earth tint on section boundaries.
   Quiet, not alternating loud coloured panels. */
body[data-page="animals"]:has(.page-hero.keeper) main .section:nth-child(even) {
  background: rgba(42, 55, 38, 0.18);
}

/* R2-6: Below 700px — keep 20px vertical padding but remove
   added inline padding/borders. This preserves baseline table
   width and prevents the five pre-identified squeezed cells. */
@media (max-width: 700px) {
  body[data-page="animals"]:has(.page-hero.keeper) main .section > .inner > details > div,
  body[data-page="animals"]:has(.page-hero.keeper) main .section > .inner > section,
  body[data-page="animals"]:has(.page-hero.keeper) main .care-steps > .care-step {
    padding-inline: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  body[data-page="animals"]:has(.page-hero.keeper) main .care-step[open] > div,
  body[data-page="animals"]:has(.page-hero.keeper) main .care-step[open] .step-body {
    padding-inline: 0;
    border-radius: 0;
  }
}

/* ============================================================
   LP-PASS: R3 — Four explicit hero background overrides
   Additive only. Scoped to exact page + hero class.
   styles.css global .page-hero.learning (bengal tiger) is
   intentionally left in place — only these four slots override.
   Scrims from hero-warmth.css ::before layer are unchanged.
   ============================================================ */

/* R3-A: /animals/ hub → Red Panda (Mathias Appel · CC0 1.0)
   Source: Wikimedia Commons [13].
   Hook class hero-animals-hub added to that page's <section>. */
body[data-page="animals"] .page-hero.learning.hero-animals-hub {
  background-image: url("/assets/species-red-panda-768.webp");
  background-position: center 40%;
}
@media (min-width: 800px) {
  body[data-page="animals"] .page-hero.learning.hero-animals-hub {
    background-image: url("/assets/species-red-panda-1280.webp");
  }
}
@media (min-width: 1400px) {
  body[data-page="animals"] .page-hero.learning.hero-animals-hub {
    background-image: url("/assets/species-red-panda-1920.webp");
  }
}

/* R3-B: /animals/endangered/ → Gopher Frog
   (MH Herpetology · CC BY-SA 4.0, source [8]).
   Known baked-in watermark is expected — not a bug (SF-2).
   Hook class hero-endangered added to that page's <section>. */
body[data-page="animals"] .page-hero.learning.hero-endangered {
  background-image: url("/assets/species-gopher-frog-768.webp");
  background-position: center 50%;
}
@media (min-width: 800px) {
  body[data-page="animals"] .page-hero.learning.hero-endangered {
    background-image: url("/assets/species-gopher-frog-1280.webp");
  }
}

/* v1.3 endangered subpage heroes — three bounded per-slug background-image rules,
   authorized by Theo (decision batch two, brain 8384465) as the named exception to
   the no-new-CSS rule. Twins of the .hero-endangered rule above. background-image ONLY. */
body[data-page="animals"] .page-hero.learning.hero-vaquita {
  background-image: url("/assets/species-vaquita6-768.webp");
  background-position: center 50%;
}
@media (min-width: 800px) {
  body[data-page="animals"] .page-hero.learning.hero-vaquita {
    background-image: url("/assets/species-vaquita6-1252.webp");
  }
}
/* MF-1 fix: at mobile widths the default center-50% horizontal crop shows empty water
   between the two vaquitas. Shift focal point left to show the near-surface animal.
   Desktop (≥800px) rule above is unchanged. */
@media (max-width: 799px) {
  body[data-page="animals"] .page-hero.learning.hero-vaquita {
    background-position: 25% 50%;
  }
}
/* Live-saola is an unmodified editorial panel, never cover/cropped/overlaid. */
body[data-page="animals"] .page-hero.learning.hero-saola {
  background-image: none;
}
.saola-original img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 0;
}
.saola-original { background: #171115; }
/* Override the hub's higher-specificity 16:9 slot and hidden overlay credit.
   Keep the original raster at native size or smaller, caption in separate flow. */
#wildlife .species-card-grid #saola .saola-original {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
}
#wildlife .species-card-grid #saola .saola-original img {
  position: static;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
#wildlife .species-card-grid #saola .saola-original figcaption {
  display: block;
  position: static;
  margin: 12px;
  padding: 0;
  background: none;
  color: #e5dcc8;
}
/* Candidate B hero: Charles J. Sharp head portrait, CC BY-SA 4.0, via Wikimedia Commons.
   Approved Theo 2026-11-19. Source: a/af/African_wild_dog_(Lycaon_pictus_pictus)_head.jpg
   background-position: center 30% — face/eyes centered; avoids blank forehead crop. */
body[data-page="animals"] .page-hero.learning.hero-african-wild-dog {
  background-image: url("/assets/species-african-wild-dog-head-768.webp");
  background-position: center 30%;
}
@media (min-width: 800px) {
  body[data-page="animals"] .page-hero.learning.hero-african-wild-dog {
    background-image: url("/assets/species-african-wild-dog-head-1280.webp");
  }
}

/* R3-B-FIX: Endangered hero heading — scroll-margin-top clearance.
   Rook reproduced: fixed header bottom=69px; at scrollY=110, kicker top=54px,
   ~15px overlap. Root cause: ordinary fixed-header scroll occlusion.
   Fix: targeted scroll-margin-top on #page-title so hash-linked navigation
   (CTAs, skip-nav, section jumps) lands with clearance below the fixed header.
   Does NOT add global padding or force scroll-to-top on deliberate reader scroll.
   Header height is ~69px at mobile (body padding-top:74px per parity.css:800). */
body[data-page="animals"] .page-hero.learning.hero-endangered #page-title {
  scroll-margin-top: 80px;
}

/* R3-C: /animals/pets/ hub → Dart frog founder photo
   (Photo: Tevazirus · site-use permission, no open CC licence).
   contain treatment — full portrait frame, no crop.
   Hook class hero-pets added to that page's <section>. */
body[data-page="animals"] .page-hero.learning.hero-pets {
  background-image: url("/assets/lp-fig-dart-frog-768.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #0b1710;
}
@media (min-width: 800px) {
  body[data-page="animals"] .page-hero.learning.hero-pets {
    background-image: url("/assets/lp-fig-dart-frog-1280.webp");
  }
}

/* R3-D: /services/ → band-animals source02 founder photo
   (Photo: Tevazirus). source01 (lp-band-services-*) is already
   used for the existing .photo-lp-services band on this page —
   source02 avoids doubling. Approved deviation SF-3.
   services data-page="services" is already unique; no hook class
   needed beyond the existing .page-hero.learning. */
body[data-page="services"] .page-hero.learning {
  background-image: url("/assets/lp-band-animals-768.webp");
  background-position: center 50%;
}
@media (min-width: 800px) {
  body[data-page="services"] .page-hero.learning {
    background-image: url("/assets/lp-band-animals-1280.webp");
  }
}
@media (min-width: 1400px) {
  body[data-page="services"] .page-hero.learning {
    background-image: url("/assets/lp-band-animals-1600.webp");
  }
}

/* ============================================================
   SR-5: Services IA overview grid — four-category layout.
   Desktop 2×2 grid; mobile single-column stack.
   Cards use existing .lp-card styles; grid is additive only.
   ============================================================ */
.services-ia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.services-ia-card {
  display: flex;
  flex-direction: column;
}
.services-ia-card p:not(.stage) {
  flex: 1;
}
@media (max-width: 680px) {
  .services-ia-grid {
    grid-template-columns: 1fr;
  }
}
