/* The species dossier extends the existing CANO DIDGE editorial world. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #728873 #edf0e4; }
body.especies-page, body.cano-adventure.especies-page {
  --paper: #edf0e4; --bg: #edf0e4; --panel: #dde5d4; --ink: #193c30;
  --muted: #526858; --line: #b7c7b4; --accent: #775921; --accent-soft: #dce4cb;
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 'Segoe UI', sans-serif; caret-color: #193c30;
  scrollbar-color: #728873 #edf0e4;
}
[hidden] { display: none !important; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
svg { width: 22px; height: 22px; flex: none; }
button, input { border: 1px solid var(--line); border-radius: 6px; }
button { min-height: 44px; padding: 9px 17px; background: #193c30; color: #f0eedb; }
button:hover { background: #30573e; }
button:disabled, input:disabled { opacity: .65; cursor: wait; }
body.especies-page :focus-visible { outline: 3px solid #a27124; outline-offset: 4px; }
body.especies-page ::selection { background: #dfbc6f; color: #193c30; }
body.especies-page :is(h1,h2,h3) { font-family: var(--cano-display, 'Barlow Condensed', sans-serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; line-height: 1.05; }
h1, h2, h3, p, figure, dl { margin: 0; }
.species-skip { position: absolute; left: 20px; top: -80px; z-index: 100; padding: 10px 18px; background: #e8bc69; color: #173b30; }
.species-skip:focus { top: 12px; }
body.cano-adventure.especies-page header.cano-shell { display: flex; gap: 14px 40px; min-height: 86px; padding: 8px max(24px, calc((100vw - 1380px) / 2)); background: #173b30; color: #f1edda; border-color: #3a5945; }
.especies-page .cano-shell .brand img { display: block; width: 112px; height: 64px; object-fit: contain; filter: brightness(0) invert(95%) sepia(20%); }
.especies-page .cano-shell nav.cano-nav { justify-content: flex-end; }
.especies-page .cano-nav .cano-nav-panel { --ink: #f1edda; --paper: #254b3b; --line: #55745e; --accent: #f0cf80; color: #f1edda; background: #193d2f; border: 0; }
.especies-page .cano-nav .cano-nav-group > summary { border-radius: 6px; }
.especies-page .cano-nav .cano-nav-group[open] > summary, .especies-page .cano-nav .cano-nav-group[data-current] > summary { color: #f1edda; background: #305740; }
.especies-page .cano-shell :focus-visible { outline-color: #e8bc69; }
.especies-page .cano-nav-toggle { color: #f1edda; border-color: #70896c; background: transparent; }
main { max-width: 1440px; padding: 0 40px 64px; margin: auto; }
.species-wayfinding { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 23px 0; font-size: 13px; color: var(--muted); }
.species-wayfinding > span { display: flex; gap: 10px; align-items: center; }
.return-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.return-link:hover { text-decoration: underline; }
.return-link svg { width: 18px; }
.species-browser { border-block: 1px solid var(--line); }
.species-browser > summary { display: flex; align-items: center; gap: 20px; min-height: 56px; list-style: none; font-size: 14px; }
.species-browser > summary::-webkit-details-marker { display: none; }
.species-browser > summary > svg { width: 18px; transition: transform 180ms ease-out; }
.species-browser[open] > summary > svg { transform: rotate(180deg); }
.browser-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.browser-content { padding: 8px 0 24px; }
.browser-content form { max-width: 620px; }
.browser-content label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.search-field { display: flex; gap: 10px; }
.search-field input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; background: #f8f9f0; color: var(--ink); border-color: #718972; }
.search-field input::placeholder { color: #5b6f5e; opacity: 1; }
.search-status { font-size: 13px; color: var(--muted); margin: 12px 0; }
.species-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; max-height: 330px; overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 4px 6px 4px 0; scrollbar-width: thin; }
.species-results li { min-width: 0; border-bottom: 1px solid #c9d3c0; }
.species-results a { display: flex; flex-direction: column; justify-content: center; min-height: 66px; padding: 10px 12px; text-decoration: none; }
.species-results a:hover { background: #dce6d0; }
.species-results a[aria-current=page] { background: #224b36; color: #f1edda; }
.species-results strong { font-weight: 600; line-height: 1.4; }
.species-results small { font-size: 12px; color: var(--muted); }
.species-results a[aria-current=page] small { color: #dae4ce; }
.page-message { max-width: 760px; padding: 70px 0 100px; }
.page-message h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 24px; }
.page-message p { max-width: 60ch; font-size: 18px; color: var(--muted); }
.page-message button { margin-top: 24px; }
.species-opening { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); align-items: center; gap: 50px; padding: 55px 0 40px; }
.species-introduction { min-width: 0; }
.species-introduction h1 { font-size: clamp(48px, 6vw, 86px); overflow-wrap: anywhere; margin-bottom: 18px; }
.species-classification { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.species-summary { font-size: clamp(18px, 1.65vw, 22px); line-height: 1.6; max-width: 42ch; }
.name-meaning { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 48ch; }
.source-jump { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 28px; min-height: 44px; text-decoration: none; }
.source-jump:hover { text-decoration: underline; }
.source-jump svg { width: 17px; height: 17px; }
.source-jump span { color: var(--muted); }
.species-art { min-width: 0; }
.species-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #1b372b; border-radius: 16px 16px 16px 48px; }
.species-art figcaption { margin: 14px 0 0; padding-left: 2px; max-width: 75ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.species-opening.without-art { grid-template-columns: minmax(0, 860px); gap: 20px; }
.species-opening.without-art .species-summary { max-width: 65ch; }
.art-unavailable { font-size: 13px; color: var(--muted); }
.species-record { background: #193c30; color: #f1edda; padding: 10px 30px; border-radius: 12px; }
.species-record dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 30px; }
.species-record dl > div { padding: 22px 0; min-width: 0; border-bottom: 1px solid #3d5b46; }
.species-record dt { font-size: 12px; color: #c3d1b8; margin-bottom: 6px; }
.species-record dd { margin: 0; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.species-reading { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, .8fr); gap: 80px; padding: 62px 0; }
.species-reading h2 { font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 24px; }
.species-story section + section { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.species-story h3 { font-size: 25px; margin: 25px 0 9px; }
.species-story p { max-width: 72ch; }
.species-story p + p { margin-top: 14px; }
.evidence-notes { padding-top: 2px; }
.evidence-notes h2 { font-size: 32px; }
.evidence-notes ul { margin: 0; padding: 0; list-style: none; }
.evidence-notes li { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.75; color: #405c47; }
.evidence-notes li:last-child { margin-bottom: 0; }
.scientific-status { font-size: 13px; color: var(--muted); }
.species-reading.brief-record { display: block; max-width: 850px; }
.species-reading.brief-record .evidence-notes li { font-size: 17px; }
.species-sources { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; border-top: 1px solid #8fa78b; padding: 42px 0; scroll-margin-top: 24px; }
.species-sources h2 { font-size: 36px; margin-bottom: 16px; }
.species-sources p { font-size: 14px; color: var(--muted); max-width: 50ch; }
.species-sources .review-date { margin-top: 16px; font-size: 12px; }
.species-sources ol { margin: 0; padding-left: 24px; }
.species-sources li { padding: 0 0 17px 8px; font-size: 14px; overflow-wrap: anywhere; }
.species-sources li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }
.species-sources a { display: inline-block; min-height: 30px; }
.species-sources small { display: block; color: var(--muted); font-size: 12px; }
.sheet-end { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 25px 0 0; border-top: 1px solid var(--line); }
.sheet-end a { min-height: 44px; display: inline-flex; gap: 14px; align-items: center; font-size: 15px; }
.sheet-end a:last-child { font-weight: 600; }
.species-footer { background: #193c30; color: #e7ecd8; padding: 28px max(24px, calc((100vw - 1360px) / 2)); display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.species-footer a { font-family: var(--cano-display); font-size: 24px; font-weight: 600; text-decoration: none; }
.species-footer a span { display: block; font: 12px/1.6 'Segoe UI', sans-serif; color: #c3d1b8; }
.species-footer p { font-size: 13px; color: #c3d1b8; }
.noscript-note { padding: 25px 0; max-width: 65ch; }
@media (max-width: 1190px) {
  body.cano-adventure.especies-page header.cano-shell { padding: 8px 28px; }
  .especies-page .cano-shell nav.cano-nav { flex-wrap: wrap; flex-basis: 100%; justify-content: flex-start; }
  .especies-page .cano-shell .cano-nav-toggle { display: block; margin-inline-start: auto; }
  .especies-page .cano-shell.cano-nav-ready[data-nav-open] nav.cano-nav { display: flex; }
  .species-opening { gap: 32px; }
  .species-reading { gap: 42px; }
}
@media (max-width: 900px) {
  main { padding-inline: 28px; }
  .species-opening { grid-template-columns: 1fr; padding-top: 38px; gap: 28px; }
  .species-introduction h1 { font-size: clamp(50px, 8vw, 76px); }
  .species-summary { max-width: 65ch; }
  .species-classification { margin-bottom: 16px; }
  .source-jump { margin-top: 15px; }
  .species-art img { max-height: 560px; }
  .species-record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species-reading { grid-template-columns: 1fr; gap: 42px; padding-block: 42px; }
  .evidence-notes { max-width: 72ch; padding-top: 30px; border-top: 1px solid var(--line); }
  .species-reading.brief-record .evidence-notes { border: 0; padding-top: 0; }
  .species-sources { grid-template-columns: 1fr; gap: 26px; }
  .species-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  main { padding: 0 20px 42px; }
  body.cano-adventure.especies-page header.cano-shell { padding: 6px 20px; }
  .especies-page .cano-shell .brand img { width: 100px; height: 56px; }
  .species-wayfinding { padding: 12px 0; }
  .species-wayfinding > span { display: none; }
  .species-browser > summary { gap: 10px; font-size: 14px; }
  .browser-count { font-size: 11px; }
  .species-results { grid-template-columns: 1fr; max-height: 310px; }
  .species-results a { min-height: 64px; }
  .species-opening { padding: 32px 0 28px; }
  .species-introduction h1 { font-size: clamp(44px, 12vw, 65px); margin-bottom: 12px; }
  .species-summary { font-size: 18px; }
  .species-classification { font-size: 13px; }
  .species-art img { border-radius: 12px 12px 12px 30px; }
  .species-record { padding-inline: 20px; }
  .species-record dl { gap: 0 20px; }
  .species-record dl > div { padding-block: 17px; }
  .species-record dd { font-size: 15px; }
  .species-record dt { font-size: 11px; }
  .species-sources { padding-block: 30px; }
  .species-footer { display: block; padding: 24px 20px; }
  .species-footer p { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .species-browser > summary > svg { transition: none; } }
