/* ==========================================================================
   Taxogre — Enciclopédia das Aves do Brasil
   Paleta derivada do logotipo: verde-limão, ciano, magenta e violeta
   sobre uma base clara de papel de atlas.
   ========================================================================== */

:root {
  /* Cores da marca */
  --lime: #93cf2e;
  --lime-dark: #6a9b16;
  --cyan: #4fbecf;
  --cyan-dark: #2b8f9f;
  --magenta: #ec3d8c;
  --violet: #7857ee;
  --violet-dark: #5a3bcc;

  /* Base clara */
  --paper: #fbfaf6;
  --paper-2: #f4f2ea;
  --surface: #ffffff;
  --line: #e4e0d4;
  --line-strong: #cec8b6;

  /* Texto */
  --ink: #16241c;
  --ink-2: #3c4b41;
  --ink-3: #6c7b70;
  --ink-4: #94a099;

  /* Verde institucional (headers, footer) */
  --forest: #0f2a20;
  --forest-2: #17392c;

  /* Semânticos */
  --ok: #2e8b57;
  --warn: #d69b24;
  --danger: #c2334b;

  /* Métricas */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 30, .05), 0 2px 8px rgba(20, 40, 30, .04);
  --shadow: 0 2px 6px rgba(20, 40, 30, .06), 0 12px 28px -8px rgba(20, 40, 30, .12);
  --shadow-lg: 0 4px 12px rgba(20, 40, 30, .07), 0 28px 56px -16px rgba(20, 40, 30, .18);
  --wrap: 1200px;
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* display:grid e display:flex sobrepõem o atributo hidden */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; }

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- topbar -- */

.topbar {
  background: var(--forest);
  color: #cfe6d8;
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar-marks { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-marks span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
/* Caixa alta em serifa precisa de entreletra positiva: o kerning negativo
   que serve ao texto em caixa mista empasta as maiúsculas. */
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-transform: uppercase;
  letter-spacing: .05em; line-height: 1;
}
.brand-tag {
  font-size: .64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; color: var(--ink-2); line-height: 1;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
  padding: 9px 13px; border-radius: 10px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--forest); background: rgba(147, 207, 46, .17); font-weight: 600; }

.nav-cta {
  background: var(--forest) !important; color: #fff !important;
  padding: 10px 18px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--forest-2) !important; }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 19px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 950px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 18px 20px;
    gap: 2px; box-shadow: var(--shadow-lg); display: none;
  }
  .nav.is-open { display: flex; }
  body.nav-locked { overflow: hidden; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% 8%, rgba(79, 190, 207, .22), transparent 62%),
    radial-gradient(760px 420px at 6% 90%, rgba(147, 207, 46, .22), transparent 60%),
    radial-gradient(600px 340px at 55% 110%, rgba(120, 87, 238, .12), transparent 62%),
    linear-gradient(178deg, #ffffff 0%, var(--paper) 55%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 36, 28, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 36, 28, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(75% 65% at 50% 40%, #000 20%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 54px; align-items: center; padding: 74px 0 68px;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding: 52px 0 46px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: .78rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}

.hero h1 { margin-bottom: .55em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--lime-dark), var(--cyan-dark) 48%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.13rem; color: var(--ink-2); max-width: 56ch; }

.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin: 30px 0 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s;
  text-decoration: none !important; line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--forest), #1d4634);
  color: #fff; box-shadow: 0 8px 22px -8px rgba(15, 42, 32, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(15, 42, 32, .55); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 17px; font-size: .88rem; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { min-width: 92px; }
.hero-stats b {
  display: block; font-family: var(--serif); font-size: 1.85rem;
  color: var(--ink); line-height: 1; font-weight: 600;
}
.hero-stats span { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

/* Composição visual do hero: uma única foto grande.
   O quadro recebe a proporção exata do arquivo, calculada no build, então a
   foto preenche a moldura inteira sem faixas vazias e sem recorte. */
.hero-art { position: relative; margin-right: -26px; }
@media (max-width: 980px) { .hero-art { margin-right: 0; } }

.hero-art::before {
  content: ""; position: absolute; z-index: 0;
  inset: -8% -6% -12% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 190, 207, .28), transparent 78%);
  filter: blur(18px);
}

.hero-photo {
  position: relative; z-index: 1; margin: 0; width: 100%;
  overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #f6f4ec, #e7ece5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------- sections -- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 1.04rem; margin-bottom: 0; }
.kicker {
  font-size: .76rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 12px;
}

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px; flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ------------------------------------------------------------ cards grid -- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

/* Card de espécie */
.bird-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bird-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.bird-card:hover .bird-card-media img { filter: saturate(1.1) contrast(1.03); }

/* As fotos aparecem inteiras, sem recorte: em uma enciclopédia, cortar a
   cauda ou a cabeça da ave destrói justamente a informação que interessa.
   Daí object-fit: contain no lugar de cover, em todas as imagens de espécie. */
.bird-card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; padding: 10px;
  background: linear-gradient(140deg, var(--paper-2), #e9eee6);
}
.bird-card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: filter .35s ease;
}
.bird-card-media .no-photo {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: .84rem; color: var(--ink-4); text-align: center; padding: 16px;
}

.bird-card-body { padding: 17px 18px 19px; display: flex; flex-direction: column; flex: 1; }
.bird-card h3 { margin: 0 0 3px; font-size: 1.12rem; }
.bird-card h3 a { color: inherit; }
.bird-card h3 a:hover { color: var(--cyan-dark); text-decoration: none; }
.bird-sci { font-style: italic; font-size: .84rem; color: var(--ink-3); margin: 0 0 11px; }
.bird-card-note { font-size: .88rem; color: var(--ink-2); margin: 0 0 14px; flex: 1; }
.bird-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-3);
}
.bird-card-foot .more { font-weight: 600; color: var(--cyan-dark); }

.bird-card-link { position: absolute; inset: 0; z-index: 4; }
.bird-card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Etiquetas */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 100px;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag-lime { background: rgba(147, 207, 46, .16); border-color: rgba(147, 207, 46, .4); color: #4f7410; }
.tag-cyan { background: rgba(79, 190, 207, .16); border-color: rgba(79, 190, 207, .42); color: #1e7686; }
.tag-violet { background: rgba(120, 87, 238, .13); border-color: rgba(120, 87, 238, .34); color: #4f34ba; }
.tag-magenta { background: rgba(236, 61, 140, .13); border-color: rgba(236, 61, 140, .32); color: #b31e63; }

.media-badges {
  position: absolute; z-index: 3; left: 11px; top: 11px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.media-badges .tag {
  background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(10, 30, 20, .16);
}

.cons-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* -------------------------------------------------------------- biblioteca -- */

.library { display: grid; grid-template-columns: 288px 1fr; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .library { grid-template-columns: 1fr; } }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 6px 20px 20px;
  box-shadow: var(--shadow-sm); position: sticky; top: 92px;
  max-height: calc(100vh - 116px); overflow-y: auto;
}
@media (max-width: 1000px) {
  .filters { position: static; max-height: none; display: none; }
  .filters.is-open { display: block; }
}
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group > summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem;
  color: var(--ink); padding: 2px 0;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after {
  content: "+"; font-size: 1.2rem; color: var(--ink-3); line-height: 1; font-weight: 400;
}
.filter-group[open] > summary::after { content: "–"; }
.filter-options { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }

.check {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: .88rem; color: var(--ink-2); padding: 5px 7px;
  border-radius: 8px; transition: background .13s;
}
.check:hover { background: var(--paper-2); }
.check input { width: 16px; height: 16px; accent-color: var(--lime-dark); flex-shrink: 0; margin: 0; }
.check .count { margin-left: auto; font-size: .74rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.check input:checked ~ .label-text { color: var(--ink); font-weight: 600; }
.check.is-empty { opacity: .42; cursor: default; }
.check.is-empty:hover { background: none; }

.library-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.search-field { position: relative; flex: 1; min-width: 240px; }
.search-field svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-4); pointer-events: none;
}
.search-field input {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 14px 16px 14px 44px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.search-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(79, 190, 207, .16); }
.search-field input::placeholder { color: var(--ink-4); }

.select-field {
  font-family: var(--sans); font-size: .92rem; color: var(--ink);
  padding: 13px 38px 13px 16px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c7b70'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
}

.filters-toggle { display: none; }
@media (max-width: 1000px) {
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink);
    padding: 13px 20px; border-radius: 100px; cursor: pointer;
    border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm);
  }
}

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
  font-size: .9rem; color: var(--ink-3);
}
.result-bar b { color: var(--ink); font-variant-numeric: tabular-nums; }

.active-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; cursor: pointer;
  padding: 5px 11px; border-radius: 100px; background: rgba(147, 207, 46, .17);
  border: 1px solid rgba(147, 207, 46, .4); color: #46680d;
  transition: background .14s, border-color .14s;
}
.chip b { font-weight: 700; }
.chip > span[aria-hidden] {
  display: grid; place-items: center; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(15, 42, 32, .13);
  font-size: .82rem; line-height: 1;
}
.chip:hover { background: rgba(147, 207, 46, .3); border-color: var(--lime-dark); }
.chip:hover > span[aria-hidden] { background: rgba(15, 42, 32, .26); }
.chip-clear {
  background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--ink-3);
}
.chip-clear:hover { background: transparent; border-color: var(--danger); color: var(--danger); }

.empty-state {
  text-align: center; padding: 70px 24px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-3); max-width: 42ch; margin-inline: auto; }

/* ------------------------------------------------------------------ mapa -- */

.biome-explorer { display: grid; gap: 30px; }

/* Palco do mapa: o fundo com brilhos radiais dá profundidade e separa o
   mapa do resto da página sem precisar de uma moldura de cartão. */
.biome-stage {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px; align-items: center;
  padding: 26px 30px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(58% 52% at 26% 26%, rgba(147, 207, 46, .16), transparent 70%),
    radial-gradient(52% 48% at 80% 72%, rgba(79, 190, 207, .18), transparent 72%),
    linear-gradient(165deg, #fdfdfa, var(--paper-2));
}
@media (max-width: 980px) {
  .biome-stage { grid-template-columns: 1fr; gap: 24px; padding: 20px 18px 26px; }
}

.biome-map { position: relative; min-width: 0; }
.biome-map svg {
  display: block; width: 100%; height: auto; max-height: 78vh;
  filter: drop-shadow(0 18px 34px rgba(12, 40, 26, .16));
}

.biome-land path { fill: #e6e3d4; }
.biome-areas { isolation: isolate; }
.biome-labels { user-select: none; }

.biome-region {
  cursor: pointer; stroke: #fbfaf6; stroke-width: 1.3;
  transition: opacity .18s ease, filter .18s ease;
}
.biome-region:hover { filter: brightness(1.09) saturate(1.12); }
.biome-region.is-dim { opacity: .2; }
.biome-region.is-active { filter: brightness(1.04) drop-shadow(0 6px 16px rgba(10, 40, 25, .34)); }
.biome-region:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Divisas estaduais: presentes para orientação, discretas para não competir
   com a leitura dos biomas. */
.biome-uf { stroke: rgba(255, 255, 255, .62); stroke-width: 1; }

.biome-coast-halo {
  stroke: rgba(251, 250, 246, .8); stroke-width: 9;
  stroke-linecap: round; stroke-linejoin: round;
}
.biome-coast {
  stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-width .18s ease, opacity .18s ease;
}
.biome-coast:hover { stroke-width: 9; }
.biome-coast.is-active { stroke-width: 11; }

.biome-label {
  font-family: var(--sans); font-weight: 700; letter-spacing: .09em;
  fill: #fff; paint-order: stroke; stroke: rgba(12, 32, 22, .42); stroke-width: 4px;
  transition: opacity .18s ease;
}
.biome-label.is-dim { opacity: .16; }

/* Leitura do bioma em foco */
.biome-hud {
  align-self: center;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lg);
}
.biome-hud h3 { margin: 4px 0 10px; }
.biome-hud p { font-size: .94rem; color: var(--ink-2); margin-bottom: 0; }
.biome-hud-count {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-3);
}
.biome-hud-count b {
  font-family: var(--serif); font-size: 1.6rem; color: var(--ink);
  margin-right: 5px; line-height: 1;
}
.biome-hud .btn { margin-top: 16px; }

/* Espécies do bioma escolhido */
.biome-result:empty { display: none; }
.biome-result-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.biome-result-head h3 { margin: 0; }
.biome-result-marks { columns: 2; column-gap: 34px; margin-bottom: 24px; }
@media (max-width: 700px) { .biome-result-marks { columns: 1; } }

.biome-tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.biome-tile {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.biome-tile:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow); border-color: var(--line-strong);
}
.biome-tile-media {
  display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
  overflow: hidden; background: linear-gradient(150deg, var(--paper-2), #e9eee6);
}
.biome-tile-media img { width: 100%; height: 100%; object-fit: contain; }
.biome-tile-media .ph { display: block; width: 100%; height: 100%; }
.biome-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.biome-tile b {
  font-family: var(--serif); font-size: .92rem; font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.biome-tile i { font-style: italic; font-size: .74rem; color: var(--ink-3); }
.biome-tile:hover b { color: var(--cyan-dark); }

.biome-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.biome-legend button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); transition: all .15s;
}
.biome-legend button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.biome-legend button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; }
.biome-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.biome-highlights { list-style: none; padding: 0; margin: 0 0 20px; }
.biome-highlights li {
  position: relative; padding-left: 24px; font-size: .9rem; margin-bottom: 8px;
}
.biome-highlights li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}
/* ------------------------------------------------------------- comparador -- */

.compare-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
@media (max-width: 760px) { .compare-slots { grid-template-columns: 1fr; } }

.slot {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm);
}
.slot:not(.is-filled) { border-style: dashed; }
.slot:not(.is-filled) h4 { color: var(--ink-4); }
.slot.is-filled { border-color: var(--line-strong); box-shadow: var(--shadow); }
.slot-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px; padding: 8px;
  background: linear-gradient(150deg, var(--paper-2), #e9eee6);
}
.slot-media img { width: 100%; height: 100%; object-fit: contain; }
.slot-empty {
  display: grid; place-items: center; height: 100%; padding: 16px; text-align: center;
  font-family: var(--serif); font-size: .86rem; color: var(--ink-4);
}
.slot h4 { margin-bottom: 2px; font-size: 1.06rem; }
.slot h4 a { color: inherit; }
.slot h4 a:hover { color: var(--cyan-dark); text-decoration: none; }
.slot select {
  width: 100%; font-family: var(--sans); font-size: .92rem; color: var(--ink);
  padding: 11px 34px 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c7b70'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--paper-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; }
table.data tbody th { font-weight: 600; color: var(--ink); width: 190px; background: rgba(244, 242, 234, .5); }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
table.data td.na { color: var(--ink-4); }

/* -------------------------------------------------------------- ficha ave -- */

.bird-hero {
  background:
    radial-gradient(700px 340px at 82% 0%, rgba(79, 190, 207, .18), transparent 60%),
    radial-gradient(560px 300px at 4% 100%, rgba(147, 207, 46, .18), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 44px;
}
.breadcrumb { font-size: .82rem; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line-strong); }

.bird-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .bird-hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.bird-title { margin-bottom: 6px; }
.bird-title-sci { font-family: var(--serif); font-style: italic; font-size: 1.16rem; color: var(--ink-3); margin-bottom: 18px; }
.bird-othernames { font-size: .9rem; color: var(--ink-3); margin-bottom: 20px; }
.bird-resumo { font-size: 1.1rem; color: var(--ink-2); }

.bird-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper-2);
  aspect-ratio: 4 / 3; position: relative;
}
.bird-photo img { width: 100%; height: 100%; object-fit: contain; }
.bird-photo .no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); font-family: var(--serif); padding: 24px; text-align: center; }
.photo-credit { font-size: .74rem; color: var(--ink-4); margin-top: 9px; line-height: 1.45; }

/* Painel de dados rápidos */
.quick-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 42px;
}
.quick-facts div { background: var(--surface); padding: 17px 19px; }
.quick-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin-bottom: 5px; }
.quick-facts dd { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.quick-facts dd em { font-style: italic; }

.bird-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; align-items: start; }
@media (max-width: 980px) { .bird-layout { grid-template-columns: 1fr; gap: 34px; } }

.bird-body > section { margin-bottom: 42px; scroll-margin-top: 100px; }
.bird-body h2 {
  font-size: 1.5rem; padding-bottom: 11px; margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.bird-body h2::before {
  content: ""; width: 6px; height: 22px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--lime), var(--cyan));
}

.field-marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.field-marks li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 16px; font-size: .93rem; margin: 0;
}
.field-marks li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: .42em; flex-shrink: 0;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(79, 190, 207, .18);
}

.curiosities { list-style: none; padding: 0; margin: 0; counter-reset: c; display: grid; gap: 12px; }
.curiosities li {
  counter-increment: c; position: relative; padding: 16px 20px 16px 58px; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--lime); border-radius: var(--radius); font-size: .94rem;
}
.curiosities li::before {
  content: counter(c); position: absolute; left: 16px; top: 15px;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(147, 207, 46, .2); color: #4f7410;
  font-family: var(--serif); font-weight: 700; font-size: .88rem;
}

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--cyan); border-radius: var(--radius);
  padding: 20px 24px;
}
.callout h3 { font-size: 1.08rem; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-cons { border-left-color: var(--warn); }

.status-line { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.status-line .cons-dot { width: 13px; height: 13px; }
.status-line small { font-weight: 500; color: var(--ink-3); }

/* Coluna lateral da ficha */
.bird-aside { display: grid; gap: 22px; position: sticky; top: 96px; }
@media (max-width: 980px) { .bird-aside { position: static; } }

.aside-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.aside-box h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; font-family: var(--sans); }
.aside-nav { list-style: none; padding: 0; margin: 0; }
.aside-nav li { margin: 0; }
.aside-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2); border-left: 2px solid transparent;
}
.aside-nav a:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; border-left-color: var(--lime); }
.aside-nav a.is-active {
  background: rgba(147, 207, 46, .14); color: var(--forest);
  font-weight: 600; border-left-color: var(--lime-dark);
}

.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; margin: 0; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list dt, .aside-list .k { color: var(--ink-3); }
.aside-list .v { color: var(--ink); font-weight: 600; text-align: right; }

.related-list { display: grid; gap: 12px; }
.related-item { display: flex; gap: 12px; align-items: center; }
.related-item:hover { text-decoration: none; }
.related-item img, .related-item .ph {
  width: 58px; height: 58px; border-radius: 11px; object-fit: contain; flex-shrink: 0;
  background: linear-gradient(150deg, var(--paper-2), #e9eee6);
}
.related-item b { display: block; font-family: var(--serif); font-size: .96rem; color: var(--ink); font-weight: 600; line-height: 1.25; }
.related-item i { font-style: italic; font-size: .76rem; color: var(--ink-3); }
.related-item:hover b { color: var(--cyan-dark); }

/* ------------------------------------------------------------------ prose -- */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .55em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--lime); color: var(--ink-2); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.5em 0; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose thead th { background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.page-hero { padding: 44px 0 34px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero p { color: var(--ink-3); font-size: 1.06rem; max-width: 68ch; margin-bottom: 0; }

/* --------------------------------------------------------------- destaques -- */

.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.feature-icon svg { width: 23px; height: 23px; }
.ic-lime { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); }
.ic-cyan { background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); }
.ic-violet { background: linear-gradient(135deg, var(--violet), var(--violet-dark)); }
.ic-magenta { background: linear-gradient(135deg, var(--magenta), #b31e63); }
.feature-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature-card p { font-size: .93rem; color: var(--ink-2); margin-bottom: 0; }

.link-list { display: grid; gap: 10px; }
.link-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 18px; transition: all .17s;
}
.link-row:hover { text-decoration: none; border-color: var(--cyan); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.link-row b { font-family: var(--serif); color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.link-row p { margin: 2px 0 0; font-size: .87rem; color: var(--ink-3); }
.link-row .arrow { margin-left: auto; color: var(--cyan-dark); font-size: 1.1rem; flex-shrink: 0; }

.cta-band {
  background: linear-gradient(135deg, var(--forest), #1b4432 55%, #245640);
  color: #dff0e5; border-radius: var(--radius-lg); padding: 44px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 88% 12%, rgba(147, 207, 46, .3), transparent 65%),
    radial-gradient(360px 200px at 8% 92%, rgba(79, 190, 207, .28), transparent 62%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 62ch; }
.cta-band .btn-primary { background: #fff; color: var(--forest); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .32); }
@media (max-width: 620px) { .cta-band { padding: 30px 24px; } }

/* ----------------------------------------------------------------- footer -- */

.site-footer { background: var(--forest); color: #a9c6b4; padding: 56px 0 26px; margin-top: 72px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 15px; font-weight: 700; }
.site-footer a { color: #a9c6b4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand span {
  font-family: var(--serif); font-size: 1.22rem; color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.footer-about { max-width: 40ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: #86a794;
}

/* -------------------------------------------------------------- utilidades -- */

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 20px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.note {
  background: rgba(79, 190, 207, .09); border: 1px solid rgba(79, 190, 207, .3);
  border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; color: var(--ink-2);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

@media print {
  .site-header, .site-footer, .topbar, .bird-aside, .nav, .hero-actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .bird-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
