@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F3EADF;
  --bg-elev: #FFF8EE;
  --panel: #FFFCF7;
  --panel-2: #FFF3E6;
  --ink: #1C1610;
  --ink-dim: #4A4036;
  --muted: #74685C;
  --faint: #A29486;
  --line: rgba(40, 26, 14, 0.11);
  --line-2: rgba(40, 26, 14, 0.18);
  --amber: #E07A3D;
  --amber-2: #F09555;
  --amber-dim: rgba(224, 122, 61, 0.16);
  --pink: #E28B99;
  --pink-dim: rgba(226, 139, 153, 0.18);
  --mint: #2C9A78;
  --mint-2: #3BB08C;
  --mint-dim: rgba(44, 154, 120, 0.16);
  --gold: #C9971A;
  --gold-dim: rgba(201, 151, 26, 0.18);
  --glass: rgba(255, 252, 247, 0.72);
  --shadow: 0 1px 2px rgba(28, 22, 16, 0.04), 0 16px 40px -24px rgba(28, 22, 16, 0.28);
  --shadow-hover: 0 8px 28px -16px rgba(28, 22, 16, 0.35);
  --radius: 12px;
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); }
body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(224, 122, 61, 0.13), transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(44, 154, 120, 0.10), transparent 52%),
    radial-gradient(700px 400px at 70% 120%, rgba(226, 139, 153, 0.10), transparent 50%),
    var(--bg);
  color: var(--ink);
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(28, 22, 16, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 22, 16, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%);
}
body > * { position: relative; z-index: 1; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--amber); }
img, svg { display: block; max-width: 100%; }
button, select, input { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Sample banner */
.sample {
  background: var(--gold);
  color: #1C1610;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.sample span { font-weight: 500; letter-spacing: 0.06em; }

/* Header */
.topbar {
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--panel);
  color: var(--amber);
}
.mark::before, .mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--amber);
  border-style: solid;
}
.mark::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 2px 0 0 0; }
.mark::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 2px 0; }
.mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--amber); }
.brand-loc {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
nav.prim {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow: auto hidden;
  scrollbar-width: none;
}
nav.prim::-webkit-scrollbar { display: none; }
nav.prim a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
nav.prim a:hover, nav.prim a.is-on {
  color: var(--ink);
  border-bottom-color: var(--amber);
}
.desk-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px;
  min-width: 210px;
  border-radius: 10px;
}
.desk-search svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 1.7; }
.desk-search input {
  background: none; border: 0; outline: none; color: var(--ink);
  font: 500 12px/1 Inter, sans-serif; letter-spacing: 0.04em; width: 100%;
}
.desk-search input::placeholder { color: var(--faint); }

/* Disclaimer tape */
.tape {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.tape b { color: var(--mint); font-weight: 700; }

/* Place key + freshness */
.placebar { border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.placebar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.pkey { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkey .k, .fresh-lab {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.pkey code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: none;
}
.fresh-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.fresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-dim);
}
.fresh-chip b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-dim);
  flex: none;
}
.dot.stale { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.fresh-meta { font-size: 12px; color: var(--muted); }

/* Breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 22px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--amber); }
.crumb .sep { color: var(--faint); }

main { padding: 0 0 80px; }

/* Hero */
.hero { padding: 22px 0 8px; }
.kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 14px;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 46rem;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.stat {
  background: var(--panel);
  padding: 12px 18px 14px;
  min-width: 128px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 11.5em;
}
.note { margin-top: 14px; font-size: 12px; color: var(--faint); }

.notice {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-dim);
  box-shadow: var(--shadow);
}
.notice strong { color: var(--ink); font-weight: 600; }

/* Sections */
.sec { margin-top: 40px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.sec-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-head p, .sec-head a.more { font-size: 13px; color: var(--muted); }
.sec-head a.more:hover { color: var(--amber); }

/* Carousel */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 44px 10px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { flex: 1 0 220px; max-width: 280px; scroll-snap-align: start; }
.car-btn {
  position: absolute;
  top: 38%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 2;
}
.car-btn:hover { border-color: var(--amber); color: var(--amber); }
.car-btn.prev { left: 0; }
.car-btn.next { right: 0; }
.car-btn.is-off { display: none; }

/* Spotlights */
.spots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.spot {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  min-height: 148px;
}
a.spot:hover { border-color: var(--amber); color: var(--ink); box-shadow: var(--shadow-hover); }
.spot .photo { aspect-ratio: auto; height: 100%; border-radius: 0; }
.spot-body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.spot-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.spot-body p { font-size: 13px; color: var(--muted); }

/* Board filters */
.board-filter {
  position: sticky;
  top: 0;
  z-index: 15;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(14px);
  padding: 10px 0 12px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.board-filter-lab {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.board-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.board-filter-q, .board-filter-row select {
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font: 500 14px/1.3 Inter, sans-serif;
  padding: 10px 12px;
  border-radius: 10px;
}
.board-filter-q { flex: 1 1 220px; min-width: 0; }
.board-filter-row select { flex: 0 1 150px; }
.board-filter-q:focus, .board-filter-row select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.board-filter-clear, .view-toggle button {
  flex: none;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-dim);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 10px;
}
.board-filter-clear:hover, .view-toggle button:hover,
.view-toggle button.is-on {
  border-color: var(--amber);
  color: var(--amber);
}
.view-toggle { display: flex; gap: 6px; margin-left: auto; }
.board-filter-count { font-size: 12.5px; color: var(--muted); width: 100%; }
.board-filter-empty { margin: 14px 0 0; font-size: 14px; color: var(--muted); display: none; }
.wall.is-empty + .board-filter-empty, .wall:empty + .board-filter-empty { display: block; }

/* Wall + cards */
.wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--amber-2); }
.photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #EEDFCC;
  overflow: hidden;
}
.photo img, .photo svg { width: 100%; height: 100%; object-fit: cover; }
.photo .badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.fileid {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.86);
  padding: 3px 6px;
  border-radius: 4px;
}
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--amber);
  padding: 3px 7px;
  border-radius: 4px;
}
.meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.cname {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card:hover .cname { color: var(--amber); }
.cwhere, .cwhen { font-size: 12px; color: var(--muted); line-height: 1.35; }
.adopt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 1px solid var(--mint);
  background: var(--mint-dim);
  color: #1A5C47;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 8px;
}
.adopt:hover { background: var(--mint); color: #fff; }
.card.home .adopt { display: none; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid currentColor;
  background: rgba(255, 252, 247, 0.88);
  color: var(--ink);
  border-radius: 4px;
}
.chip.adoptable { color: #1A5C47; border-color: var(--mint); background: rgba(44, 154, 120, 0.16); }
.chip.staff { color: #8A3044; border-color: var(--pink); background: var(--pink-dim); }
.chip.waiting { color: #8A3E12; border-color: var(--amber); background: var(--amber-dim); }
.chip.home { color: #6B5210; border-color: var(--gold); background: var(--gold-dim); }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.key .lab {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
}

.tag {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  color: var(--ink-dim);
  border-radius: 6px;
}

/* Shelter / city rows */
.jails, .shelter-grid { display: grid; gap: 10px; }
.jail, .shelter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 16px 18px;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.jail .tag, .shelter-card .tag { margin-bottom: 8px; }
a.jail:hover, a.shelter-card:hover { border-color: var(--amber); color: var(--ink); }
.jail h3, .shelter-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.jail p, .shelter-card p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.jail .go, .shelter-card .go {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.shelter-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.city {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
a.city:hover { border-color: var(--amber); color: var(--ink); }
.city h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.city p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Map */
.map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}
.map-art {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
  aspect-ratio: 10 / 9;
  position: relative;
}
.map-art svg { width: 100%; height: 100%; }
.map-legend { display: grid; gap: 10px; align-content: start; }
.map-legend .shelter-card { grid-template-columns: 1fr; align-items: start; }
.map-legend .go { justify-self: start; margin-top: 10px; }
.map-view { display: none; }
.map-view.is-on { display: block; }
.wall.is-hidden { display: none; }

/* Went Home */
.went .card { background: #FFF9EC; border-color: rgba(201, 151, 26, 0.28); }
.went .photo { filter: saturate(0.9); }

/* Person / pet file */
.file {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding-top: 22px;
  align-items: start;
}
.jacket {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jacket-photo { position: relative; aspect-ratio: 4 / 5; background: #EEDFCC; }
.jacket-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jacket-photo .badge { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.jacket-body { padding: 16px 16px 18px; }
.jacket-body h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.03em; }
.also-known { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ids { display: grid; gap: 8px; margin: 14px 0; }
.idrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.idrow .l {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
}
.idrow .v { font-variant-numeric: tabular-nums; text-align: right; }
.adopt-box {
  border: 1px solid var(--mint);
  background: var(--mint-dim);
  color: #1A5C47;
  font-size: 13px;
  padding: 12px 14px;
  margin-top: 4px;
  line-height: 1.45;
  border-radius: 10px;
}
.adopt-box .adopt { width: 100%; margin-top: 10px; background: var(--mint); color: #fff; }
.adopt-box .adopt:hover { background: #22785C; }
.disclaimer-box {
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  line-height: 1.45;
  border-radius: 10px;
}

.timeline { min-width: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
}
.rail { position: relative; }
.rail::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: -8px;
  width: 1px;
  background: var(--line-2);
}
.tl-item:last-child .rail::before { display: none; }
.tl-dot {
  width: 11px;
  height: 11px;
  margin: 6px auto 0;
  background: var(--bg);
  border: 2px solid var(--amber);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.tl-item.is-done .tl-dot { border-color: var(--gold); background: var(--gold); }
.entry {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 16px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.entry h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.when { font-size: 12px; color: var(--muted); margin-top: 3px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td {
  text-align: left;
  font-size: 13px;
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  width: 8.5rem;
}
.src { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.fbrand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.fbrand em { font-style: normal; color: var(--amber); }
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--amber); }
footer ul { list-style: none; display: grid; gap: 6px; }
footer h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-row, .file, .foot-in, .map-panel, .spots { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .jail, .shelter-card { grid-template-columns: 1fr; }
  .jacket { position: static; max-width: 380px; }
  .spot { grid-template-columns: 120px 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-in { min-height: 60px; gap: 14px; }
  .desk-search { display: none; }
  h1 { font-size: 36px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-row { gap: 16px; }
  .placebar-in { align-items: start; }
  .fresh-stamp { justify-content: flex-start; }
  .car-btn { display: none; }
  .carousel .card { flex-basis: 68vw; }
  .spot { grid-template-columns: 96px 1fr; }
  .board-filter-q, .board-filter-row select { flex: 1 1 100%; }
  .view-toggle { margin-left: 0; width: 100%; }
  .jacket { max-width: none; }
  nav.prim { gap: 14px; }
  .sec-head { flex-wrap: wrap; }
  .carousel { padding: 4px 2px 10px; }
  .carousel .card { flex: 0 0 68vw; max-width: none; }
  .file { padding-top: 12px; }
}


/* ---- Pet finder ---- */
.finder {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  margin: 8px 0 16px;
}
.finder-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}
.finder-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.finder-lede { font-size: 14px; color: var(--ink-dim); max-width: 46rem; }
.alert-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
  cursor: pointer;
}
.alert-toggle input { accent-color: var(--mint); width: 16px; height: 16px; }
.alert-toggle:has(input:checked) { border-color: var(--mint); color: #1A5C47; background: var(--mint-dim); }
.finder-primary {
  display: grid;
  grid-template-columns: 112px 168px repeat(5, minmax(118px, 1fr)) minmax(292px, auto);
  gap: 10px 8px;
  align-items: end;
}
.f-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}
.f-field input, .f-field select {
  font: 500 14px/1.3 Inter, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 10px;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.f-field input::placeholder { color: var(--faint); font-weight: 500; }
.f-radius input[type="range"] { padding: 10px 0 0; height: auto; accent-color: var(--amber); }
.finder .board-filter-q { flex: 0 0 auto; height: 40px; }
.f-grow { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.finder-actions { grid-column: 8; grid-row: 1; justify-content: flex-end; flex-wrap: nowrap; }
.radius-ticks { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.06em; color: var(--faint); }
.radius-ticks i { font-style: normal; }
.finder-actions { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.btn-all {
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  color: #8A3E12;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 10px;
}
.btn-all:hover, .btn-all[aria-expanded="true"] { background: var(--amber); color: #fff; }
.finder-drawer {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.finder-drawer.is-open { display: block; }
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.finder fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.finder legend {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0 6px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-family: Inter, sans-serif;
  color: var(--ink);
  padding: 6px 0;
}
.chk input { accent-color: var(--mint); width: 15px; height: 15px; }
.finder-note, .saved-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.saved-note { color: #1A5C47; }

/* ---- Network cards ---- */
.net-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.net-card, .resource {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
a.resource:hover, a.net-card:hover { border-color: var(--amber); color: var(--ink); }
.net-card h3, .resource h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.net-card .more { font-size: 12px; color: var(--amber); margin-top: 6px; }
.kind-recall .tag, .kind-toxin .tag, .kind-health .tag { color: #8A3E12; border-color: var(--amber); }
.kind-weather .tag { color: #1A5C47; border-color: var(--mint); }
.kind-lost .tag { color: #8A3044; border-color: var(--pink); }
.kind-found .tag, .kind-reunited .tag { color: #1A5C47; border-color: var(--mint); }

.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.news-list a:hover .nt { color: var(--amber); }
.news-list .nd {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.news-list .nt { font-size: 16px; font-weight: 500; }

@media (max-width: 1100px) {
  .finder-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder-actions, .f-grow { grid-column: 1 / -1; grid-row: auto; }
  .finder-actions { flex-wrap: wrap; justify-content: flex-start; }
  .drawer-grid, .net-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .finder-head { flex-direction: column; align-items: start; }
}
@media (max-width: 720px) {
  .finder-primary, .drawer-grid, .net-grid, .resource-grid, .finder fieldset { grid-template-columns: 1fr; }
  .finder-actions, .f-grow { grid-column: 1 / -1; grid-row: auto; }
  .news-list a { grid-template-columns: 1fr; gap: 2px; }
  .alert-toggle { white-space: normal; }
}
