/* ============================================================
   SNAKE GUIDE — what this guide needs on top of field-guide.css
   (loaded after it on every /guides/snake-guide page)
   ============================================================ */

/* The Tick Guide's step and don't grids are built for four cards. This
   guide runs five of each, and a four-column grid leaves the fifth card
   stranded on its own row. Five columns above 1180px, and a five-item
   grid drops to a clean 3 + 2 at tablet width rather than 2 + 2 + 1. */
@media (min-width: 1180px) {
  .steps-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .donts-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; }
}
@media (min-width: 760px) and (max-width: 1179px) {
  .steps-grid, .donts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Snakes are wide subjects. The Tick Guide's 4:5 hero crops them in half. */
.species-hero-photo { aspect-ratio: 4 / 3; }
.placeholder.tall   { aspect-ratio: 4 / 3; }

/* Frequency tiers replace the Tick Guide's risk tiers. The dot is a
   Blue Slate ramp: how often a species is actually recorded in the
   county, in four steps, plus an open ring for the unconfirmed one.
   Venom is a separate axis and never a dot — it is a pill (below). */
.risk-dot.abundant    { background: var(--blue-slate); }
.risk-dot.common      { background: var(--blue-slate); opacity: .72; }
.risk-dot.uncommon    { background: var(--blue-slate); opacity: .46; }
.risk-dot.rare        { background: var(--blue-slate); opacity: .24; }
.risk-dot.unconfirmed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }

/* Venom pill. The single loud element on a species card, and the only
   place Alert Red appears outside the Bitten route. */
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 9999px;
  border: 1px solid var(--hairline);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); background: var(--canvas);
  white-space: nowrap;
}
.tag-pill.venom {
  color: var(--canvas); background: var(--alert); border-color: var(--alert);
}
.tag-pill.aka { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; font-style: italic; }
.species-card:hover .tag-pill { border-color: var(--ink); color: var(--ink); }
.species-card:hover .tag-pill.venom { color: var(--canvas); border-color: var(--alert); }
.tags-list { display: flex; flex-wrap: wrap; gap: 5px; }

/* Records bar on a species card: the county count drawn to scale against
   the ratsnake's 201, so the long tail reads as a long tail. */
.rec-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rec-track { flex: 1; height: 2px; background: var(--surface-soft); position: relative; }
.rec-fill  { position: absolute; inset: 0 auto 0 0; background: var(--blue-slate); }
.rec-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ink-soft); white-space: nowrap;
}

/* Told-apart section: a two-column confusion table. Left is what it
   gets mistaken for, right is the one tell that settles it. */
.mixup-list { border-top: 1px solid var(--ink); }
.mixup-row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
@media (min-width: 760px) { .mixup-row { grid-template-columns: 240px 1fr; gap: 28px; align-items: baseline; } }
.mixup-row .mixup-with {
  font-family: 'Plantin', 'ItalicAmpersand', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.mixup-row .mixup-with small {
  display: block; margin-top: 3px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.mixup-row p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.mixup-row p b { color: var(--ink); font-weight: 700; }

/* The four-tell key on the Identify route. Numbered like the removal
   steps on the Tick Guide, but text-only: there is no photograph that
   teaches a scale count. */
.tell-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .tell-grid { grid-template-columns: 1fr 1fr; gap: 0 40px; } }
.tell {
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
}
.tell .tell-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft);
  padding-top: 3px;
}
.tell h4 {
  font-family: 'Plantin', 'ItalicAmpersand', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 5px;
}
.tell p { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.tell p + p { margin-top: 7px; }
.tell.no h4 { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Habitat picker on the Yard route. Same shape as the Tick Guide's
   state picker; different question. */
.habitat-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 4px; }
.habitat-chip {
  appearance: none; cursor: pointer;
  padding: 9px 16px; border-radius: 9999px;
  border: 1px solid var(--hairline); background: var(--canvas);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted);
  transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.habitat-chip:hover { color: var(--blue-slate); border-color: var(--blue-slate); }
.habitat-chip[aria-pressed="true"] { background: var(--signal-yellow); border-color: var(--signal-yellow); color: #000; }
.habitat-result { margin-top: 22px; }

/* Law block. Alert Red rule, because "it is a misdemeanor" is the
   one line on this page a reader may not believe on first reading. */
.law-note {
  border-left: 2px solid var(--alert);
  background: var(--surface-tint);
  padding: 20px 22px; margin: 28px 0;
}
.law-note .law-eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--alert); margin-bottom: 7px;
}
.law-note p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.law-note p + p { margin-top: 10px; }
.law-note a { color: var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; }

/* Size ladder on the Identify route: the county's snakes drawn to scale
   against each other, because "two feet" means nothing in leaf litter. */
.ladder { border-top: 1px solid var(--ink); margin-top: 18px; }
.ladder-row {
  display: grid; grid-template-columns: 128px 1fr 58px; gap: 12px;
  align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hairline);
}
.ladder-row .l-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.25;
}
.ladder-row .l-name.venom { color: var(--alert); }
.ladder-bar { height: 9px; background: var(--surface-soft); position: relative; }
.ladder-bar span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.ladder-bar span.venom { background: var(--alert); }
.ladder-row .l-len {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft); text-align: right;
}
@media (max-width: 560px) { .ladder-row { grid-template-columns: 96px 1fr 48px; gap: 8px; } }

/* Season strip footnote: says whether the chart is this county's own
   records or a typical season. Never let a 2-record species look charted. */
.season-source {
  margin-top: 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; color: var(--ink-soft); font-style: italic;
}

/* Photo credit under a hero. Small, gray, and never the caption itself. */
.photo-credit {
  display: block; margin-top: 4px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px; font-style: normal; letter-spacing: 0.02em; color: var(--ink-soft);
}
.photo-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.photo-credit a:hover { color: var(--ink); border-color: var(--ink); }

@media print {
  .tell-grid, .mixup-list, .ladder { break-inside: auto; }
  .habitat-row, .habitat-chip { display: none !important; }
  .law-note { background: #fff; border-left: 2px solid #000; }
}
