/* ==========================================================================
   Snake Guide India — stylesheet
   Theme: "field journal at night" — forest greens on tinted black, lime accent
   ========================================================================== */

:root {
  --bg: #0a100c;
  --bg-2: #0e1712;
  --surface: #121e17;
  --surface-2: #17271e;
  --surface-3: #1d3126;
  --line: rgba(196, 232, 168, 0.11);
  --line-strong: rgba(196, 232, 168, 0.22);
  --text: #e7eee4;
  --text-soft: #c4d2c6;
  --muted: #92a898;
  --lime: #b6e04f;
  --lime-2: #d4f08a;
  --lime-soft: rgba(182, 224, 79, 0.12);
  --forest: #2f5a3c;

  --venom: #ff7d5c;
  --venom-soft: rgba(255, 125, 92, 0.13);
  --mild: #f0c25a;
  --mild-soft: rgba(240, 194, 90, 0.13);
  --safe: #7ed3a6;
  --safe-soft: rgba(126, 211, 166, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* fixed atmospheric glow */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(76, 140, 74, 0.18), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(40, 92, 58, 0.16), transparent 60%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-2); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
em.sci, .sci { font-style: italic; }
::selection { background: var(--lime); color: #0b140c; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--lime); color: #0b140c; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Emergency strip ---------- */
.alert-strip {
  background: linear-gradient(90deg, #3a130b, #2a1209 60%, #1c120a);
  border-bottom: 1px solid rgba(255, 125, 92, 0.3);
  color: #ffd9cd; font-size: 0.88rem;
}
.alert-strip .container { display: flex; align-items: center; justify-content: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 0.5rem; text-align: center; }
.alert-strip strong { color: #fff; }
.alert-strip a { color: #ffb59f; font-weight: 700; }
.alert-strip a:hover { color: #fff; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--venom); box-shadow: 0 0 0 0 rgba(255, 125, 92, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 125, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 125, 92, 0); } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 16, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--lime); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px; color: var(--text-soft);
  text-decoration: none; font-weight: 600; font-size: 0.94rem; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: #0b140c; background: var(--lime); }
.nav-cta { margin-left: 0.4rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: rgba(10, 16, 12, 0.98); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-links a { padding: 0.9rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 0.75rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  padding: 0.82rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime); color: #0b140c; box-shadow: 0 10px 30px -12px rgba(182, 224, 79, 0.55); }
.btn-primary:hover { background: var(--lime-2); color: #0b140c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--lime); }
.btn-danger { background: var(--venom); color: #1d0a05; }
.btn-danger:hover { background: #ff9a80; color: #1d0a05; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--lime); font-weight: 500; }
.hero .lede { margin-bottom: 2rem; }

.search-box { position: relative; max-width: 560px; }
.search-field {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-field:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 1rem var(--font-body); padding: 0.7rem 0;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { filter: invert(0.7); }
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 0.4rem; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow);
}
.suggestions[hidden] { display: none; }
.suggestions a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.65rem 0.8rem; border-radius: 10px; color: var(--text); text-decoration: none;
}
.suggestions a:hover, .suggestions a.is-active { background: var(--surface-3); }
.suggestions .sci { color: var(--muted); font-size: 0.86rem; }
.search-hint { margin-top: 0.85rem; font-size: 0.88rem; color: var(--muted); }
.search-hint a { color: var(--text-soft); }

.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--surface);
  animation: rise 1s var(--ease) both;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: slowzoom 18s ease-in-out infinite alternate; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 16, 12, 0.85)); }
.hero-scales { position: absolute; inset: -12% -18% auto auto; width: 70%; opacity: 0.5; z-index: -1; color: var(--forest); }
.hero-tag {
  position: absolute; left: -1.25rem; bottom: 2rem; z-index: 2; max-width: 250px;
  background: rgba(18, 30, 23, 0.92); backdrop-filter: blur(8px); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 0.85rem 1rem; box-shadow: var(--shadow); animation: rise 1s 0.25s var(--ease) both;
}
.hero-tag .tag-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hero-tag strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.hero-tag .sci { color: var(--lime); font-size: 0.9rem; }
.photo-credit { position: absolute; right: 1rem; bottom: 0.8rem; z-index: 2; font-size: 0.68rem; color: rgba(231, 238, 228, 0.7); max-width: 70%; text-align: right; }
.photo-credit a { color: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slowzoom { to { transform: scale(1.12); } }

.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.fact-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fact-row div { font-size: 0.9rem; color: var(--muted); }
.fact-row strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--text); line-height: 1.1; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 420px); }
  .hero-frame { aspect-ratio: 5 / 4; border-radius: 28px; }
  .hero-tag { left: 0.75rem; bottom: 0.75rem; }
  .hero-scales { display: none; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--text-soft); }

/* ---------- Category tiles (asymmetric) ---------- */
.cat-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--text); overflow: hidden; min-height: 210px;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}
.cat-tile:hover { transform: translateY(-4px); color: var(--text); }
.cat-tile:first-child { grid-row: span 2; min-height: 100%; }
.cat-tile::before { content: ""; position: absolute; inset: auto -30% -50% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--tile-glow); filter: blur(30px); opacity: 0.8; }
.cat-tile[data-cat="venomous"] { --tile-glow: var(--venom-soft); }
.cat-tile[data-cat="venomous"]:hover { border-color: rgba(255, 125, 92, 0.5); }
.cat-tile[data-cat="mildly-venomous"] { --tile-glow: var(--mild-soft); }
.cat-tile[data-cat="mildly-venomous"]:hover { border-color: rgba(240, 194, 90, 0.5); }
.cat-tile[data-cat="non-venomous"] { --tile-glow: var(--safe-soft); }
.cat-tile[data-cat="non-venomous"]:hover { border-color: rgba(126, 211, 166, 0.5); }
.cat-tile h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0.6rem 0 0.4rem; }
.cat-tile p { color: var(--text-soft); margin: 0; max-width: 46ch; font-size: 0.95rem; }
.cat-count { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.2rem); line-height: 0.9; font-weight: 500; }
.cat-tile[data-cat="venomous"] .cat-count { color: var(--venom); }
.cat-tile[data-cat="mildly-venomous"] .cat-count { color: var(--mild); }
.cat-tile[data-cat="non-venomous"] .cat-count { color: var(--safe); }
.cat-foot { display: flex; justify-content: space-between; align-items: end; position: relative; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem; }
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
a:hover .arrow-link svg, .arrow-link:hover svg { transform: translateX(4px); }
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile:first-child { grid-row: auto; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem; border-radius: 999px;
  font: 700 0.72rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-venomous { color: var(--venom); background: var(--venom-soft); }
.badge-mildly-venomous { color: var(--mild); background: var(--mild-soft); }
.badge-non-venomous { color: var(--safe); background: var(--safe-soft); }
.badge-bigfour { color: #ffd9cd; background: #4a1a10; border-color: rgba(255, 125, 92, 0.6); }
.badge-bigfour::before { display: none; }

/* ---------- Snake cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.15rem; }
.snake-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
}
.snake-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--text); }
.snake-card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.snake-card:hover .card-media img { transform: scale(1.06); }
.card-media .badge { position: absolute; left: 0.75rem; top: 0.75rem; backdrop-filter: blur(6px); background: rgba(10, 16, 12, 0.75); }
.card-media .badge-bigfour { left: auto; right: 0.75rem; background: rgba(74, 26, 16, 0.85); }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card-body h3 { font-size: 1.22rem; margin: 0; }
.card-body .sci { color: var(--lime); font-size: 0.92rem; font-family: var(--font-display); }
.card-meta { margin-top: auto; padding-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.8rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.card-meta svg { width: 14px; height: 14px; }

.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 0.8rem; padding: 1rem; background:
  repeating-linear-gradient(135deg, rgba(196, 232, 168, 0.035) 0 12px, transparent 12px 24px), var(--surface-2); }
.img-fallback svg { width: 64px; height: 64px; margin: 0 auto 0.5rem; color: var(--forest); }

/* skeleton */
.skeleton { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.skeleton .sk-media { aspect-ratio: 4 / 3; }
.skeleton .sk-line { height: 14px; margin: 1rem 1.15rem 0; border-radius: 6px; }
.skeleton .sk-line.short { width: 50%; margin-bottom: 1.2rem; }
.skeleton .sk-media, .skeleton .sk-line { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Big four band ---------- */
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.bigfour-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bigfour-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.bigfour-list a {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; padding: 0.7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.bigfour-list a:hover { border-color: rgba(255, 125, 92, 0.45); transform: translateX(4px); color: var(--text); }
.bigfour-list .thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.bigfour-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bigfour-list strong { font-family: var(--font-display); font-size: 1.12rem; display: block; }
.bigfour-list .sci { color: var(--muted); font-size: 0.88rem; }
.bigfour-list .num { font-family: var(--font-mono); color: var(--venom); font-size: 0.82rem; padding-right: 0.5rem; }
@media (max-width: 880px) { .bigfour-layout { grid-template-columns: 1fr; } }

/* ---------- Safety teaser ---------- */
.safety-teaser {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px; background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 125, 92, 0.13), transparent 60%),
    var(--surface);
  border: 1px solid rgba(255, 125, 92, 0.25);
}
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 0.9rem; align-items: baseline; padding: 0.75rem 1rem; background: rgba(10, 16, 12, 0.5); border-radius: 12px; border: 1px solid var(--line); }
.steps-mini li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); color: var(--venom); font-size: 0.8rem; }
.dont-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dont-list li { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px dashed rgba(255, 125, 92, 0.45); color: #ffc9b9; font-size: 0.85rem; }
@media (max-width: 880px) { .safety-teaser { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--lime); }

/* ---------- Directory toolbar ---------- */
.toolbar {
  position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 40;
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; align-items: center;
  padding: 0.75rem; border-radius: 20px; background: rgba(18, 30, 23, 0.9); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.toolbar .search-field { max-width: none; border-radius: 14px; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 0.85rem 2.4rem 0.85rem 1rem;
  font: 600 0.92rem var(--font-body); cursor: pointer; min-width: 180px; width: 100%;
}
.select-wrap select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-soft);
  font: 600 0.88rem var(--font-body); cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--lime); color: var(--text); }
.chip .count { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.75; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip[data-cat="venomous"] .dot { background: var(--venom); }
.chip[data-cat="mildly-venomous"] .dot { background: var(--mild); }
.chip[data-cat="non-venomous"] .dot { background: var(--safe); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0b140c; }
.chip[aria-pressed="true"] .dot { background: #0b140c; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; color: var(--muted); font-size: 0.92rem; }
.results-bar strong { color: var(--text); }
.link-btn { background: none; border: 0; padding: 0.25rem 0; color: var(--lime); font: 700 0.9rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--lime-2); }
.link-btn[hidden] { display: none; }
.empty-state { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-state svg { width: 72px; height: 72px; color: var(--forest); margin: 0 auto 1rem; }
.empty-state h2 { font-size: 1.6rem; }
@media (max-width: 880px) {
  .toolbar { grid-template-columns: 1fr 1fr; position: static; }
  .toolbar .search-field { grid-column: 1 / -1; }
  .select-wrap select { min-width: 0; }
}
@media (max-width: 420px) { .toolbar { grid-template-columns: 1fr; } }

/* ---------- Detail page ---------- */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.detail-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail-figure .media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow); }
.detail-figure img { width: 100%; height: 100%; object-fit: cover; }
.detail-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; }
.detail-figure figcaption a { color: var(--text-soft); }
.detail-title .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.detail-title h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0.15em; }
.detail-title .sci-name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--lime); margin-bottom: 0.3rem; }
.detail-title .aka { color: var(--muted); font-size: 0.92rem; }
.venom-panel { margin: 1.5rem 0; padding: 1.15rem 1.25rem; border-radius: 16px; border: 1px solid; }
.venom-panel h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0.02em; margin: 0 0 0.4rem; text-transform: uppercase; }
.venom-panel p { margin: 0 0 0.5rem; }
.venom-panel p:last-child { margin: 0; }
.venom-panel.venomous { border-color: rgba(255, 125, 92, 0.45); background: var(--venom-soft); }
.venom-panel.venomous h2 { color: var(--venom); }
.venom-panel.mildly-venomous { border-color: rgba(240, 194, 90, 0.45); background: var(--mild-soft); }
.venom-panel.mildly-venomous h2 { color: var(--mild); }
.venom-panel.non-venomous { border-color: rgba(126, 211, 166, 0.4); background: var(--safe-soft); }
.venom-panel.non-venomous h2 { color: var(--safe); }
.quick-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.quick-facts div { padding: 0.8rem 0.95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.quick-facts dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.quick-facts dd { margin: 0; font-weight: 600; font-size: 0.94rem; }
.detail-sections { display: grid; gap: 1rem; margin-top: 2.5rem; }
.info-block { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; }
.info-block h2 { font-size: 1.25rem; margin: 0; display: flex; gap: 0.6rem; align-items: center; }
.info-block h2 svg { width: 20px; height: 20px; color: var(--lime); flex: none; }
.info-block p { margin: 0; color: var(--text-soft); }
.info-block.note { border-style: dashed; border-color: rgba(240, 194, 90, 0.45); background: rgba(240, 194, 90, 0.05); }
.info-block.note h2 svg { color: var(--mild); }
.chip-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-links a { padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.chip-links a:hover { border-color: var(--lime); color: var(--lime); }
.disclaimer-box { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 16px; border: 1px solid rgba(255, 125, 92, 0.35); background: rgba(255, 125, 92, 0.06); font-size: 0.94rem; color: #ffd9cd; }
.disclaimer-box strong { color: #fff; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.2s; }
.pager a:hover { border-color: var(--lime); color: var(--text); }
.pager small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pager strong { font-family: var(--font-display); font-size: 1.1rem; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 880px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-figure { position: static; }
  .info-block { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 480px) { .quick-facts { grid-template-columns: 1fr; } .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* ---------- Safety page ---------- */
.emergency-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 22px;
  background: linear-gradient(120deg, #4a170c, #2c120a); border: 1px solid rgba(255, 125, 92, 0.5); color: #ffe5dc;
}
.emergency-banner svg.warn { width: 48px; height: 48px; color: var(--venom); }
.emergency-banner h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 0 0.3rem; color: #fff; }
.emergency-banner p { margin: 0; }
.emergency-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 720px) { .emergency-banner { grid-template-columns: 1fr; } .emergency-actions .btn { flex: 1; } }

.toc { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.toc a { padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.toc a:hover { color: var(--lime); border-color: var(--lime); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 1.4rem 1.4rem 1.4rem 4.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(st); position: absolute; left: 1.25rem; top: 1.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0b140c; font: 700 1rem var(--font-mono); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.steps .acr { font-family: var(--font-mono); color: var(--lime); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.do-dont > div { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.do-dont h3 { display: flex; align-items: center; gap: 0.6rem; }
.do-dont h3 svg { width: 24px; height: 24px; }
.do-dont .do h3 { color: var(--safe); }
.do-dont .dont { border-color: rgba(255, 125, 92, 0.35); }
.do-dont .dont h3 { color: var(--venom); }
.do-dont ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.do-dont li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; color: var(--text-soft); }
.do-dont li svg { width: 20px; height: 20px; margin-top: 3px; }
.do-dont .do li svg { color: var(--safe); }
.do-dont .dont li svg { color: var(--venom); }
.do-dont li strong { color: var(--text); }
@media (max-width: 720px) { .do-dont { grid-template-columns: 1fr; } }

.symptom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.symptom-grid > div { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.symptom-grid h3 { font-size: 1.1rem; }
.symptom-grid ul { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 880px) { .symptom-grid { grid-template-columns: 1fr; } }

.myths { display: grid; gap: 0.75rem; }
.myth { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.myth summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; font-weight: 700; }
.myth summary::-webkit-details-marker { display: none; }
.myth summary .tag { font: 700 0.68rem var(--font-mono); letter-spacing: 0.1em; color: var(--venom); border: 1px solid rgba(255, 125, 92, 0.5); padding: 0.2rem 0.5rem; border-radius: 6px; }
.myth summary .chev { width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s var(--ease); }
.myth[open] summary .chev { transform: rotate(180deg); }
.myth[open] { border-color: var(--line-strong); }
.myth .answer { padding: 0 1.25rem 1.2rem 1.25rem; color: var(--text-soft); }
.myth .answer .fact { font: 700 0.68rem var(--font-mono); letter-spacing: 0.1em; color: var(--safe); margin-right: 0.4rem; }

.prevent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.prevent-grid > div { padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.prevent-grid svg { width: 28px; height: 28px; color: var(--lime); margin-bottom: 0.75rem; }
.prevent-grid h3 { font-size: 1.08rem; }
.prevent-grid p { color: var(--text-soft); font-size: 0.94rem; margin: 0; }

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; }
.resource-list a { display: block; height: 100%; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 0.2s; }
.resource-list a:hover { border-color: var(--lime); color: var(--text); }
.resource-list strong { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--font-display); font-size: 1.08rem; }
.resource-list strong svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 4px; }
.resource-list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Prose (about) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose p, .prose li { color: var(--text-soft); }
.credits-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
.credits-table th, .credits-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.credits-table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); background: var(--bg-2); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.site-footer p { color: var(--text-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer ul a { color: var(--text-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--lime); }
.footer-disclaimer { padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid rgba(255, 125, 92, 0.3); background: rgba(255, 125, 92, 0.05); color: #ffd9cd; font-size: 0.88rem; }
.footer-disclaimer p { color: inherit; margin: 0 0 0.5rem; }
.footer-disclaimer p:last-child { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.footer-bottom a { color: var(--text-soft); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--lime); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.not-found .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--lime); font-weight: 500; }
.not-found .actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .alert-strip, .site-footer, .to-top, .toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}
