/* =====================================================================
   St. Lawrence Valley SPCA — warm & welcoming design system
   Plain CSS, no build step. Tokens first, then base, layout, components.
   ===================================================================== */

:root {
  /* Warm palette */
  --cream:     #FBF6EE;
  --cream-2:   #F4E9D9;
  --surface:   #FFFFFF;
  --ink:       #2C2118;
  --ink-soft:  #4A3B2E;
  --muted:     #6A5947;
  --line:      #EADDCB;

  --brand:     #C2562E;  /* terracotta */
  --brand-600: #A8461F;
  --brand-700: #8A3917;
  --brand-100: #F7E3D7;

  --sage:      #5F7355;  /* humane green */
  --sage-700:  #495B40;
  --sage-100:  #E5EBDD;

  --gold:      #E7A53A;
  --gold-100:  #FBEDD2;

  --info:      #2C6E7E;
  --danger:    #B23A3A;
  --danger-100:#F6E2DF;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(44,33,24,.05), 0 1px 3px rgba(44,33,24,.07);
  --shadow:    0 6px 16px -6px rgba(44,33,24,.16), 0 2px 6px rgba(44,33,24,.06);
  --shadow-lg: 0 22px 48px -16px rgba(44,33,24,.28);

  --r-sm: 9px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);

  --ff-head: "Lora", Georgia, "Times New Roman", serif;
  --ff-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-600); text-decoration-color: color-mix(in srgb, var(--brand-600) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem); }
p { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 55%, transparent); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(48px, 6vw, 90px); }
.section--tint { background: var(--cream-2); }
.section--sage { background: var(--sage-100); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section[id], [id].anchor { scroll-margin-top: 132px; }

.eyebrow {
  font-family: var(--ff-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; font-size: .82rem; color: var(--brand-600);
  display: inline-flex; align-items: center; gap: .5em;
}
.section--ink .eyebrow { color: var(--gold); }
.section-head { max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: .6rem; }
.section--ink .section-head p { color: color-mix(in srgb, var(--cream) 82%, transparent); }

.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--ff-body); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: .85em 1.4em; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); }
.btn-primary:hover { --btn-bg: var(--brand-700); }
.btn-sage { --btn-bg: var(--sage); --btn-bd: var(--sage); }
.btn-sage:hover { --btn-bg: var(--sage-700); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--brand); box-shadow: none; }
.btn-outline:hover { --btn-bg: var(--brand-100); --btn-fg: var(--brand-700); }
.btn-ghost { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--brand); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.7em; }
.btn-block { width: 100%; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--brand-700); --btn-bd: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
/* NOTE: no backdrop-filter/transform/filter here — they would trap the
   position:fixed mobile nav menu inside the header instead of the viewport. */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--cream) 92%, #fff); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: var(--cream); font-size: .86rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; padding-block: 7px; }
.topbar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 640px) { .topbar__item.hide-sm { display: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 4px rgba(44,33,24,.15)); }
.brand__text { display: grid; line-height: 1.02; }
.brand__text strong { font-family: var(--ff-head); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.brand__text span { font-family: var(--ff-body); font-weight: 800; letter-spacing: .18em; font-size: .72rem; color: var(--brand-600); text-transform: uppercase; }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a:not(.btn) {
  font-weight: 700; color: var(--ink-soft); text-decoration: none;
  padding: .55em .8em; border-radius: var(--r-pill); transition: background .15s, color .15s;
}
.nav__menu a:not(.btn):hover { background: var(--brand-100); color: var(--brand-700); }
.nav__menu a.is-active:not(.btn) { color: var(--brand-700); background: var(--brand-100); }
.nav__menu .btn { margin-left: .4rem; }

.nav__toggle { display: none; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); width: 46px; 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: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); padding: 88px 22px 28px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a:not(.btn) { padding: .8em 1em; font-size: 1.1rem; }
  .nav__menu .btn { margin-left: 0; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background:
  radial-gradient(1200px 500px at 85% -10%, var(--gold-100), transparent 60%),
  radial-gradient(900px 500px at 0% 110%, var(--sage-100), transparent 55%),
  var(--cream);
  overflow: hidden; }
.hero__paws { position: absolute; inset: 0; opacity: .05; background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%232C2118'%3E%3Cellipse cx='30' cy='44' rx='5' ry='6.5'/%3E%3Cellipse cx='44' cy='34' rx='5' ry='7'/%3E%3Cellipse cx='60' cy='34' rx='5' ry='7'/%3E%3Cellipse cx='74' cy='44' rx='5' ry='6.5'/%3E%3Cpath d='M52 78c-9-7-14-12-14-18 0-5 4-8 8-8s8 4 8 8c0-4 4-8 8-8s8 3 8 8c0 6-5 11-14 18z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero__title { margin: .4rem 0 .2rem; }
.hero__tagline { font-family: var(--ff-head); font-style: italic; font-size: 1.35rem; color: var(--brand-700); margin-bottom: .6rem; }
.hero p.lead { margin-bottom: 1.4rem; }
.hero__stats { display: flex; gap: 1.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.stat { }
.stat b { display: block; font-family: var(--ff-head); font-size: 2rem; color: var(--brand); line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 700; }

.hero__collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.hero__collage .ph { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); border: 4px solid #fff; transform: rotate(var(--rot, 0deg)); }
.hero__collage .ph:nth-child(1) { --rot: -2deg; }
.hero__collage .ph:nth-child(2) { --rot: 2deg; margin-top: 24px; }
.hero__collage .ph:nth-child(3) { --rot: 2deg; }
.hero__collage .ph:nth-child(4) { --rot: -2deg; margin-top: -10px; }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__collage { max-width: 460px; margin-inline: auto; order: -1; }
}
@media (max-width: 420px) { .hero__collage { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .15s, box-shadow .2s; }
.card-pad { padding: clamp(20px, 3vw, 30px); }

/* Feature / help cards */
.feature { display: flex; flex-direction: column; height: 100%; padding: 28px 26px; text-decoration: none; color: var(--ink); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.feature .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); margin-bottom: 14px; }
.feature.sage .ic { background: var(--sage-100); color: var(--sage-700); }
.feature.gold .ic { background: var(--gold-100); color: #9a6a12; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.feature .more { margin-top: auto; font-weight: 800; color: var(--brand-600); }
.feature:hover .more { color: var(--brand-700); }
.feature .ic svg { width: 28px; height: 28px; }

/* ---------- Animal cards ---------- */
.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.animal-card { display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; width: 100%; text-decoration: none; }
.animal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.animal-card__media { position: relative; aspect-ratio: 4/3; background: var(--cream-2); overflow: hidden; }
.animal-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .3s ease; }
.animal-card:hover .animal-card__media img { transform: scale(1.04); }
.animal-card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.animal-card__noimg svg { width: 64px; height: 64px; opacity: .5; }
.animal-card__species { position: absolute; top: 12px; left: 12px; }
.animal-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.animal-card__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.animal-card__sex { font-size: 1rem; }
.animal-card__meta { color: var(--muted); font-size: .92rem; font-weight: 700; }
.animal-card__chips { margin-top: auto; padding-top: .35rem; }

/* ---------- Chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .78rem; font-weight: 800; line-height: 1;
  padding: .42em .7em; border-radius: var(--r-pill);
  background: var(--cream-2); color: var(--ink-soft); border: 1px solid transparent;
}
.chip svg { width: 13px; height: 13px; }
.chip--dog { background: var(--brand-100); color: var(--brand-700); }
.chip--cat { background: var(--sage-100); color: var(--sage-700); }
.chip--good { background: var(--sage-100); color: var(--sage-700); }
.chip--no { background: var(--danger-100); color: var(--danger); }
.chip--info { background: var(--gold-100); color: #946410; }
.chip--special { background: #efe6f6; color: #6b4b8a; }
.chip--ghost { background: transparent; border-color: var(--line); color: var(--muted); }

/* ---------- Filter bar ---------- */
.filterbar { position: sticky; top: 86px; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, #fff); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.filterbar__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.segment { display: inline-flex; background: var(--cream-2); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.segment button { border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--ink-soft); padding: .5em 1em; border-radius: var(--r-pill); cursor: pointer; transition: background .15s, color .15s; }
.segment button[aria-pressed="true"] { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.field { position: relative; flex: 1; min-width: 180px; }
.field input, .field select {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink);
  padding: .7em 1em; border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field--search input { padding-left: 2.6em; }
.field--search .ic { position: absolute; left: .9em; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.field--select::after { content: ""; position: absolute; right: 1.1em; 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; }
.toggles { display: flex; flex-wrap: wrap; gap: .5rem; }
.toggle { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .92rem; color: var(--ink-soft); background: var(--surface); border: 2px solid var(--line); padding: .5em .9em; border-radius: var(--r-pill); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle:has(input:checked) { background: var(--sage-100); border-color: var(--sage); color: var(--sage-700); }
.toggle:has(input:focus-visible) { outline: 3px solid var(--brand-700); outline-offset: 2px; }

.result-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.result-meta__count { font-weight: 800; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 800; color: var(--brand-600); cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--brand-700); text-decoration: underline; }

/* ---------- States ---------- */
.state { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; }
.state svg { width: 56px; height: 56px; color: var(--muted); opacity: .6; margin: 0 auto 1rem; }
.state h3 { margin-bottom: .4rem; }
.state p { margin-inline: auto; color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 4px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 1rem; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(100deg, var(--cream-2) 30%, #fff 50%, var(--cream-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.skel-card .skel-img { aspect-ratio: 4/3; }
.skel-card .skel-line { height: 14px; border-radius: 6px; margin: 14px 18px; }
.skel-card .skel-line.short { width: 55%; }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); background: var(--gold-100); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: #7a5510; font-size: .95rem; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice--info { background: var(--sage-100); border-color: color-mix(in srgb, var(--sage) 35%, transparent); color: var(--sage-700); }

/* ---------- Modal (animal detail) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(30,22,15,.62); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; max-width: 880px; margin: clamp(12px, 4vh, 56px) auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.modal__close:hover { background: #fff; transform: scale(1.05); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .modal__grid { grid-template-columns: 1fr; } }
.modal__gallery { background: var(--cream-2); }
.modal__photo { aspect-ratio: 1/1; }
.modal__photo img { width: 100%; height: 100%; object-fit: contain; background: var(--cream-2); }
.modal__thumbs { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.modal__thumbs button { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.modal__thumbs button[aria-current="true"] { border-color: var(--brand); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(22px, 3vw, 34px); }
.modal__body h2 { margin-bottom: .2rem; }
.modal__sub { color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.deflist { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1rem 0; font-size: .95rem; }
.deflist dt { color: var(--muted); font-weight: 700; }
.deflist dd { font-weight: 700; }
.modal__desc { white-space: pre-line; color: var(--ink-soft); }

/* ---------- Info / prose ---------- */
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .3rem; }
.prose p, .prose ul, .prose ol { margin-top: .7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: .35rem; }
.prose li::marker { color: var(--brand); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.mission-quote { font-family: var(--ff-head); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.3; color: var(--ink); }
.mission-quote .accent { color: var(--brand); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.callout--sage { border-left-color: var(--sage); }
.callout--gold { border-left-color: var(--gold); }

.fee-card { text-align: center; padding: 26px; }
.fee-card .amt { font-family: var(--ff-head); font-size: 2.6rem; color: var(--brand); line-height: 1; }
.fee-card .who { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .85rem; margin-top: .3rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-top: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495B40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.85rem no-repeat; }

/* ---------- Tables (resources) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--ink); color: var(--cream); font-family: var(--ff-body); font-weight: 800; position: sticky; top: 0; }
table.data tbody tr:nth-child(even) { background: color-mix(in srgb, var(--cream-2) 55%, #fff); }
table.data tbody tr:hover { background: var(--brand-100); }
table.data a { font-weight: 700; }

.dir-list { list-style: none; padding: 0; display: grid; gap: .2rem; }
.dir-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.dir-list .name { font-weight: 700; }
.dir-list a { font-weight: 800; white-space: nowrap; }

/* Anchored sub-nav */
.subnav { position: sticky; top: 86px; z-index: 15; background: color-mix(in srgb, var(--cream) 92%, #fff); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.subnav a { white-space: nowrap; font-weight: 800; font-size: .92rem; color: var(--ink-soft); text-decoration: none; padding: .5em .9em; border-radius: var(--r-pill); }
.subnav a:hover { background: var(--brand-100); color: var(--brand-700); }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.legend b { color: var(--ink-soft); }

/* ---------- Map ---------- */
.map-embed { border: 0; width: 100%; aspect-ratio: 16/10; border-radius: var(--r-lg); box-shadow: var(--shadow); filter: saturate(.9); }

/* ---------- Donate ---------- */
.donate-embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px; min-height: 480px; }
.donate-embed iframe { width: 100%; min-height: 600px; border: 0; border-radius: var(--r); }
.donate-placeholder { display: grid; place-items: center; text-align: center; padding: 48px 24px; min-height: 460px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.amount-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--cream) 82%, transparent); margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 { color: #fff; font-family: var(--ff-body); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer__grid a { color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none; }
.footer__grid a:hover { color: var(--gold); }
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer__brand .brand__text strong { color: #fff; }
.footer__brand p { font-size: .95rem; margin-top: .8rem; max-width: 34ch; }
.footer__tag { font-family: var(--ff-head); font-style: italic; color: var(--gold); margin-top: .6rem; }
.footer__contact { font-size: .95rem; display: grid; gap: .55rem; font-style: normal; }
.footer__contact a { font-weight: 700; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bar .container { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 18px; font-size: .85rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }

.page-flex { display: flex; flex-direction: column; min-height: 100vh; }
.fadein { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fadein, .skeleton, .spinner { animation: none; } .btn:hover, .card:hover, .animal-card:hover, .feature:hover { transform: none; } }

/* Touch devices: neutralize hover lifts so :hover doesn't "stick" after a tap (iOS) */
@media (hover: none) {
  .btn:hover, .card:hover, .animal-card:hover, .feature:hover { transform: none; }
  .animal-card:hover .animal-card__media img { transform: none; }
}

/* Footer trust / anti-scam line */
.footer__trust { display: flex; gap: .5rem; align-items: flex-start; max-width: var(--container); margin-inline: auto; padding: 13px var(--gutter); font-size: .82rem; line-height: 1.5; color: color-mix(in srgb, var(--cream) 78%, transparent); border-bottom: 1px solid rgba(255,255,255,.10); }
.footer__trust b { color: var(--gold); font-weight: 800; }

/* FAQ accordion (native <details>, no JS) */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: .7rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; font-family: var(--ff-head); font-size: 1.5rem; color: var(--brand-600); line-height: 1; }
.faq[open] > summary::after { content: "\2013"; }
.faq > summary:hover { color: var(--brand-700); }
.faq__a { padding: 0 20px 18px; color: var(--ink-soft); max-width: 70ch; }
.faq__a a { font-weight: 700; }

/* Responsive data table -> stacked cards on small screens */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  table.data { min-width: 0; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data tr, table.data tbody tr:nth-child(even) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 14px; padding: 4px 6px 10px; }
  table.data tbody tr:hover { background: var(--surface); }
  table.data td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border: 0; padding: 7px 12px; text-align: right; }
  table.data td::before { content: attr(data-label); font-weight: 800; color: var(--muted); text-align: left; flex: none; }
  table.data td[data-label="Town"] { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); justify-content: flex-start; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 9px; }
  table.data td[data-label="Town"]::before { content: ""; }
}
