/* Bird Smart — parrot intelligence sub-hub.
   Extends the shared Human field-guide system in assets/css/components.css.
   Adds only the evidence-grading vocabulary this branch needs. */

.smart-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s-4), 5vw, var(--s-8));
}

.smart-hero h1 {
  margin: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -0.03em;
}

.smart-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(var(--t-body), 1.8vw, 1.2rem);
}

.smart-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.smart-links a {
  min-height: var(--tap);
  color: inherit;
  text-decoration: none;
}

.smart-links .badge {
  margin-bottom: var(--s-2);
}

/* --- Persistent Bird Smart room bar --------------------------------- */

.smart-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--gold-faint);
}

.smart-rooms a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
}

.smart-rooms a:hover,
.smart-rooms a:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
}

.smart-rooms a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--gold-faint);
  color: var(--ink);
}

/* --- Evidence badges ------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.24rem 0.62rem;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--proven {
  color: var(--safe);
  background: var(--safe-bg);
}

.badge--preliminary {
  color: var(--caution);
  background: var(--caution-bg);
}

.badge--myth {
  color: var(--danger);
  background: var(--danger-bg);
}

.badge--record {
  color: #7a6023;
  background: var(--gold-faint);
}

.badge--unverified {
  color: #3f5468;
  background: #e2e9ef;
}

.badge--unreviewed {
  color: #5d5171;
  background: #e9e5ef;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

/* --- Graded claim blocks -------------------------------------------- */

.claim-list {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
}

.claim {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
}

.claim--proven { border-left-color: var(--safe); }
.claim--preliminary { border-left-color: var(--caution); }
.claim--myth { border-left-color: var(--danger); }
.claim--record { border-left-color: var(--gold); }
.claim--unverified { border-left-color: var(--slate); }
.claim--unreviewed { border-left-color: var(--lavender); }

.claim h3 {
  margin: var(--s-2) 0 var(--s-2);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: 1.25;
}

.claim p {
  margin: 0 0 var(--s-3);
  color: var(--ink-soft);
}

.claim p:last-child { margin-bottom: 0; }

.claim cite {
  display: block;
  margin-top: var(--s-3);
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-style: normal;
}

.claim cite a {
  color: var(--leaf);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

/* --- Evidence key legend -------------------------------------------- */

.evidence-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding: 0;
  list-style: none;
}

.evidence-key li {
  padding: var(--s-4);
  border-top: 2px solid var(--gold);
  background: var(--paper-warm);
}

.evidence-key p {
  margin: var(--s-2) 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* --- Superlatives / records ----------------------------------------- */

.superlatives td:first-child {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.superlatives .badge {
  font-size: 0.64rem;
}

/* --- Shared source list --------------------------------------------- */

.source-list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding-left: 1.25rem;
}

.source-list a {
  color: var(--leaf);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

/* Card titles are standalone controls, not inline prose links, so they get a real
   tap target rather than the 21px height of a single text line. */
#pairs-with .guide-card h3 a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
}

.smart-note {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-left: 4px solid var(--sage);
  background: var(--safe-bg);
  color: var(--ink-soft);
}

.smart-note strong { color: var(--ink); }

@media (max-width: 780px) {
  .evidence-key { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .smart-hero { grid-template-columns: 1fr; }
  .smart-hero .plate { width: 82px; height: 82px; }
  .smart-links { grid-template-columns: 1fr; }
  .claim { padding: var(--s-4); }
}
