/* P.A.W.S. public design system. LAYOUT.md describes it.
   Cream ground, white cards, forest-green text, terracotta for primary
   buttons. Colour, radius and spacing come from the tokens in :root and
   nowhere else; derived values are those tokens at reduced opacity.
   Icons are one stroke sprite (/assets/icons.svg) drawn with currentColor.
   The admin dashboard loads this file first, then admin/admin.css, which
   reads the colour and radius tokens under its own adm- prefix. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --sand: #F4EDE2;        /* page ground (cream) */
  --paper: #FBF8F3;       /* quiet panels inside cards: notes, review, groups */
  --white: #FFFFFF;       /* cards, inputs, header */
  --dune: #E8DCC8;        /* alternating section ground */
  --driftwood: #8A7560;   /* secondary marks */
  --jungle: #22402F;      /* text, headings, footer ground */
  --canopy: #35684A;      /* links, "yes" marks */
  --ocean: #1D5A66;       /* information */
  --sunset: #B94A26;      /* primary buttons, urgent */
  --sunset-deep: #9A3C1E; /* primary button hover */
  --mango: #E0A13A;       /* focus ring, arrival glow */
  --ink: #1E2723;

  /* Derived (token + alpha). */
  --text: var(--jungle);
  --text-muted: rgba(34, 64, 47, 0.76);
  --line: rgba(34, 64, 47, 0.12);
  --line-strong: rgba(34, 64, 47, 0.3);
  --scrim: rgba(22, 42, 31, 0.82);
  --on-dark-muted: rgba(251, 248, 243, 0.8);
  --sunset-tint: rgba(185, 74, 38, 0.09);
  --ocean-tint: rgba(29, 90, 102, 0.09);
  --mango-tint: rgba(224, 161, 58, 0.2);

  /* Radius: one per kind of thing. */
  --r-sm: 8px;      /* inputs, chips, thumbnails, notes */
  --r-md: 14px;     /* cards, panels, photos */
  --r-pill: 999px;  /* buttons, tabs, toggles */
  --radius: var(--r-md);      /* kept for admin.css */
  --radius-sm: var(--r-sm);   /* kept for admin.css */

  /* Spacing: 4px base. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: var(--s-4);
}

@media (min-width: 600px) {
  :root { --gutter: var(--s-5); }
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-4);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 800px) {
  body { font-size: 18px; }
}

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

/* Fraunces only for page titles and major section titles (h1, h2).
   Everything smaller is Figtree. */
h1, h2, h3, h4 {
  color: var(--jungle);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
}
h3, h4 { font-family: var(--font-body); font-weight: 650; }
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

a { color: var(--canopy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jungle); }

:focus-visible {
  outline: 2px solid var(--mango);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden, .honeypot {
  position: absolute !important;
  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: var(--s-3); top: -80px;
  z-index: 100;
  background: var(--white);
  color: var(--jungle);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 650;
}
.skip-link:focus { top: var(--s-3); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }

main { display: block; }
.section { padding-block: var(--s-7); }
.section-tight { padding-block: var(--s-6); }
.section-alt { background: var(--dune); }
@media (min-width: 800px) {
  .section { padding-block: var(--s-8); }
}

.page-head { padding-block: var(--s-6) var(--s-2); }
.page-head h1 { margin-bottom: 0.3em; max-width: 22ch; }
.lead { font-size: 1.08em; max-width: 60ch; }
.muted { color: var(--text-muted); }
.prose { max-width: 66ch; }
@media (min-width: 800px) {
  .page-head { padding-block: var(--s-7) var(--s-4); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: var(--s-3) var(--s-5);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: 600 17px/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
/* Every primary action is terracotta. */
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: var(--sunset-deep); color: #fff; }
.btn-secondary { background: var(--white); color: var(--jungle); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--jungle); color: var(--jungle); }
.btn-ghost { background: transparent; color: var(--jungle); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--jungle); color: var(--jungle); background: var(--white); }
.btn-small { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row-center { justify-content: center; }
@media (max-width: 599px) {
  .btn-row-stack { flex-direction: column; }
  .btn-row-stack .btn { width: 100%; }
}

.link-button {
  background: none;
  border: 0;
  padding: var(--s-2) 0;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: var(--canopy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link { font-weight: 600; }

/* ---------- Header ---------- */

/* Logo, Find a pet, Resources, the terracotta "Post a pet" button and
   EN | ES. No menu toggle: on phones the logo and language share the first
   row and the links the second; from 720px it is one row. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-3);
  padding-top: var(--s-1);
  padding-bottom: var(--s-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--jungle);
  text-decoration: none;
}
.brand:hover { color: var(--jungle); }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: var(--text-muted);
}
.lang-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s-3);
  background: none;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0;
  cursor: pointer;
}
.lang-btn:hover { color: var(--jungle); }
.lang-btn[aria-pressed="true"] { color: var(--jungle); background: var(--sand); }
.lang-sep { opacity: 0.5; }

.site-nav { order: 3; flex: 1 1 100%; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  color: var(--jungle);
  text-decoration: none;
  font-weight: 550;
  font-size: 16px;
  white-space: nowrap;
}
.nav-list a:hover { background: var(--sand); color: var(--jungle); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-post-item { margin-left: auto; }
.nav-list .nav-post {
  padding: 0 var(--s-4);
  background: var(--sunset);
  color: #fff;
  font-weight: 600;
}
.nav-list .nav-post:hover { background: var(--sunset-deep); color: #fff; }
.nav-list .nav-post[aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--sunset); }

@media (min-width: 720px) {
  .header-inner { flex-wrap: nowrap; gap: var(--s-4); min-height: 68px; padding-top: 0; padding-bottom: 0; }
  .site-nav { order: 0; flex: 0 1 auto; margin-left: auto; }
  .nav-list { gap: var(--s-2); }
  .nav-list a { padding: 0 var(--s-3); }
  .nav-post-item { margin-left: var(--s-2); }
  .lang-switch { margin-left: 0; }
}

/* ---------- Hero ---------- */

/* Compact, so the pets start on the first screen of a phone. The photo (a
   local dog on the beach) fills the band; a green scrim behind the one
   heading keeps it readable over the bright sky. Phones: heading at the
   top, the dog below it. From 800px: heading on the left. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 200px;
  background: var(--jungle);
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 78%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, var(--scrim) 0%, rgba(22, 42, 31, 0.6) 46%, rgba(22, 42, 31, 0) 72%);
}
.hero-inner { position: relative; z-index: 2; padding-top: var(--s-5); padding-bottom: var(--s-5); }
.hero-title {
  max-width: 17ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 560;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(22, 42, 31, 0.35);
}
@media (min-width: 800px) {
  .hero { min-height: 320px; align-items: center; }
  .hero-photo { object-position: 50% 64%; }
  .hero::after {
    background: linear-gradient(100deg, var(--scrim) 0%, rgba(22, 42, 31, 0.55) 36%, rgba(22, 42, 31, 0) 58%);
  }
}

/* ---------- Home: tabs, filters, list ---------- */

.section-list { padding-block: var(--s-4) var(--s-2); }
@media (min-width: 800px) {
  .section-list { padding-block: var(--s-6) var(--s-4); }
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--s-5);
}
.tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--s-2) var(--s-2);
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font: 550 16px/1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
}
.tab:hover { color: var(--jungle); }
.tab[aria-selected="true"] { color: var(--jungle); font-weight: 650; border-bottom-color: var(--jungle); }
.tab:focus-visible { outline-offset: -3px; }
@media (min-width: 640px) {
  .tab { flex: 0 0 auto; padding: var(--s-2) var(--s-5); font-size: 17px; }
}

.tab-panel { min-width: 0; }
.list-head { margin-bottom: var(--s-4); }
.list-head h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
.list-head p { margin: var(--s-1) 0 0; color: var(--text-muted); max-width: 60ch; }

.finder { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.finder-bar { display: grid; gap: var(--s-3); }
.finder-row { display: flex; gap: var(--s-2); }
.finder-row .control { flex: 1 1 auto; min-width: 0; }
.filters-toggle { flex: 0 0 auto; white-space: nowrap; }
.finder-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.result-count { margin: 0; color: var(--text-muted); }
.species-toggle {
  display: flex;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  min-width: 0;
}
.seg { position: relative; display: flex; flex: 1 1 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 42px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-weight: 550;
  white-space: nowrap;
}
.seg:hover span { background: var(--sand); }
.seg input:checked + span { background: var(--jungle); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--mango); outline-offset: 2px; }
.filters-panel { min-width: 0; }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.filters-grid .field { margin: 0; }
.control.control-compact { min-height: 48px; padding-block: var(--s-2); }
@media (min-width: 600px) {
  .finder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
  .species-toggle { display: inline-flex; flex: 0 0 auto; }
  .seg { flex: 0 0 auto; }
  .finder-row { flex: 1 1 320px; max-width: 460px; }
  .filters-grid { grid-template-columns: repeat(3, minmax(140px, 220px)); }
}

.cta-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.cta-card h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); margin: 0 0 var(--s-1); }
.cta-card p { margin: 0; color: var(--text-muted); max-width: 52ch; }
@media (max-width: 599px) {
  .cta-card .btn { width: 100%; }
}
@media (min-width: 700px) {
  .cta-card { grid-template-columns: 1fr auto; align-items: center; padding: var(--s-6); }
}
.tails-line { margin: var(--s-4) 0 0; text-align: center; color: var(--text-muted); }

.empty-state {
  padding: var(--s-6) var(--s-5);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.empty-state h2, .empty-state h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.3rem; margin-bottom: var(--s-2); }
.empty-state .empty-title { margin-top: 0; }
.empty-state p { color: var(--text-muted); max-width: 46ch; margin: 0 auto var(--s-4); }

.loading { color: var(--text-muted); padding: var(--s-4) 0; }
.load-error {
  padding: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--sunset-tint);
  color: var(--jungle);
}

/* ---------- Chips ---------- */

.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-1) 6px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  background: var(--sand);
  color: var(--jungle);
}
.chip-adoption, .chip-in-foster { background: var(--sand); }
.chip-foster-needed { background: var(--ocean-tint); color: var(--ocean); }
.chip-urgent { background: var(--sunset); color: #fff; }
.chip-medical { background: var(--mango-tint); color: var(--ink); }

/* ---------- Pet cards ---------- */

/* The main visual: one photo crop for every card (4:5), then name, the
   found / lost line, area and age, chips, the summary and one action. */
.dog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5) var(--s-5);
}
@media (min-width: 540px) { .dog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); } }
@media (min-width: 960px) { .dog-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); } }

.dog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.dog-card-media { position: relative; }
.dog-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--dune);
}
.dog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
  padding: var(--s-4) var(--s-4) var(--s-5);
}
.dog-card-body > .dog-card-link { margin-top: auto; }
.dog-card-body > :nth-last-child(2) { margin-bottom: var(--s-2); }
.dog-card-name { margin: 0; font-size: 1.3rem; font-weight: 650; }
.dog-seen, .dog-loc { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--text-muted); font-size: 0.95em; line-height: 1.35; }
.dog-seen { color: var(--jungle); font-weight: 550; }
.dog-seen .icon, .dog-loc .icon { width: 1.1em; height: 1.1em; margin-top: 0.12em; }
.dog-summary {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dog-card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 var(--s-5);
  border: 1.5px solid var(--sunset);
  border-radius: var(--r-pill);
  color: var(--sunset);
  font-weight: 600;
  text-decoration: none;
}
/* The whole card is clickable through its one link. */
.dog-card-link::after { content: ""; position: absolute; inset: 0; }
.dog-card:hover .dog-card-link { background: var(--sunset); color: #fff; }
.dog-card:focus-within { outline: 2px solid var(--mango); outline-offset: 3px; }
.dog-card-link:focus-visible { outline: none; }
.dog-card-found, .dog-card-lost { border-color: var(--line); }

/* ---------- Pet profile ---------- */

.dog-profile { padding-block: var(--s-4) var(--s-7); }
.back-link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-weight: 600; text-decoration: none; }
.dog-layout { display: grid; gap: var(--s-6); margin-top: var(--s-2); }
@media (min-width: 900px) {
  .dog-layout { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: start; }
  .dog-layout .gallery { position: sticky; top: var(--s-4); }
}
.dog-name { margin: 0 0 var(--s-1); font-size: clamp(2.2rem, 1.7rem + 2.6vw, 3.4rem); }
.dog-meta { font-size: 1.05em; color: var(--text-muted); margin: 0 0 var(--s-3); }
.dog-block { margin-top: var(--s-6); }
.dog-block h2 { font-size: 1.5rem; }
.dog-info { min-width: 0; }

.gallery { display: grid; gap: var(--s-2); }
.gallery-stage {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dune);
  touch-action: pan-y;
}
.gallery-stage:focus-visible { outline-offset: 4px; }
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--jungle);
  cursor: pointer;
}
.gallery-nav .icon { width: 24px; height: 24px; }
.gallery-prev { left: var(--s-2); }
.gallery-next { right: var(--s-2); }
.gallery-count {
  position: absolute;
  right: var(--s-2); bottom: var(--s-2);
  margin: 0;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--scrim);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.gallery-thumbs {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--dune);
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--jungle); }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th { font-weight: 450; padding-right: var(--s-3); }
.info-table td { font-weight: 550; text-align: right; white-space: nowrap; }
.status-mark { display: inline-flex; vertical-align: middle; }
.status-yes { color: var(--canopy); }
.status-no { color: var(--sunset); }

.dog-actions { display: grid; gap: var(--s-2); margin: var(--s-5) 0 var(--s-2); }
.dog-actions .btn { width: 100%; }
@media (min-width: 600px) {
  .dog-actions .btn { width: auto; justify-self: start; }
}
.share-panel {
  margin-top: var(--s-2);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.share-panel p { margin: 0 0 var(--s-2); }
.share-status { font-weight: 600; color: var(--canopy); min-height: 1.6em; margin: var(--s-2) 0 0; }

/* Found / lost: when and where, near the top of the profile. */
.seen-block {
  margin: var(--s-4) 0 0;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.seen-title { margin: 0 0 var(--s-2); font-family: var(--font-body); font-weight: 650; font-size: 1.15rem; }
.seen-list { margin: 0; display: grid; gap: var(--s-2); }
.seen-list dt { font-size: 0.92em; color: var(--text-muted); }
.seen-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.adopted-banner {
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.adopted-head { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); font-family: var(--font-body); font-weight: 650; font-size: 1.3rem; }
.adopted-head .icon { color: var(--sunset); }
.adopted-banner p { margin: 0; }
.adopted-banner a { font-weight: 600; }

/* ---------- Forms ---------- */

.form { display: grid; gap: var(--s-5); }
.form-card {
  padding: var(--s-5) var(--s-4);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
@media (min-width: 600px) {
  .form-card { padding: var(--s-6); }
}
.form-page { padding-top: var(--s-4); padding-bottom: var(--s-8); }
.form-section-title { font-family: var(--font-body); font-weight: 650; font-size: 1.25rem; margin: var(--s-2) 0 calc(-1 * var(--s-2)); }
.field { display: grid; gap: 6px; margin: 0; }
.field-label, .choice-group legend {
  font-weight: 600;
  color: var(--jungle);
  font-size: 1em;
  line-height: 1.35;
}
.field-hint { font-size: 0.92em; color: var(--text-muted); margin: 0; }
.field-optional { font-weight: 400; color: var(--text-muted); }
.control {
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font: 17px/1.4 var(--font-body);
  appearance: none;
}
.control::placeholder { color: rgba(30, 39, 35, 0.5); }
.control:hover { border-color: var(--jungle); }
.control:focus-visible { outline-offset: 1px; border-color: var(--jungle); border-radius: var(--r-sm); }
.control[aria-invalid="true"] { border-color: var(--sunset); box-shadow: 0 0 0 1px var(--sunset); }
textarea.control { min-height: 120px; resize: vertical; }
select.control {
  padding-right: 42px;
  background-image: url("/assets/img/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.control-date { max-width: 260px; }

.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: var(--s-2); }
.choice-group .field-hint { margin: calc(-1 * var(--s-1)) 0 var(--s-2); }
/* Choices size to their label and wrap, so short sets (Yes / No / Not sure)
   sit on one row and longer ones flow without orphan-shaped gaps. */
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choices .choice { flex: 1 1 auto; }
.choices-wide { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .choices-wide { grid-template-columns: 1fr 1fr; }
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.3;
}
.choice:hover { border-color: var(--jungle); }
.choice input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--jungle);
}
.choice:has(input:checked) { border-color: var(--jungle); background: var(--paper); box-shadow: inset 0 0 0 1px var(--jungle); }
.choice:has(input:focus-visible) { outline: 2px solid var(--mango); outline-offset: 2px; }
.choice-group[aria-invalid="true"] .choice,
.choice-group[aria-invalid="true"] .kind { border-color: var(--sunset); }

.check-line { display: flex; gap: var(--s-3); align-items: flex-start; min-height: 44px; cursor: pointer; }
.check-line input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--jungle); flex: 0 0 auto; }

.privacy-note, .info-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s-3) 14px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.95em;
  margin: 0;
}
.privacy-note .icon, .info-strip .icon { margin-top: 0.12em; }
.info-strip { margin-top: var(--s-3); background: var(--white); }
.info-strip .icon { color: var(--sunset); }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.is-error { color: var(--sunset); }
.form-status:empty { min-height: 0; }

.form-success {
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.form-success h2, .form-success h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.5rem; }
.form-success p:last-child { margin-bottom: 0; }
.success-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin: 0 0 var(--s-4);
  border-radius: 50%;
  background: var(--canopy);
  color: #fff;
}
.success-icon .icon { width: 26px; height: 26px; }

.form-part { display: grid; gap: var(--s-5); border: 0; margin: 0; padding: 0; min-width: 0; }
.form-part[hidden] { display: none; }

/* A labelled group inside a step: "Shown on the listing", "Only our team
   sees this", "A bit more about them". */
.form-group {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: var(--s-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  min-width: 0;
}
.form-group-title {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  font-weight: 650;
  color: var(--jungle);
}
.form-group-title + * { clear: both; }
.form-group-private { background: var(--sand); }
.form-group > .field-hint { margin-top: calc(-1 * var(--s-3)); }

/* ---------- Post a pet ---------- */

.post-form { gap: var(--s-5); }
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.stepper-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: var(--s-2);
  border-top: 3px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.25;
}
.stepper-num { font-weight: 650; }
.stepper-text { min-width: 0; overflow-wrap: anywhere; }
.stepper-item.is-done { border-top-color: var(--canopy); }
.stepper-item[aria-current="step"] { border-top-color: var(--jungle); color: var(--jungle); font-weight: 600; }
.step { display: grid; gap: var(--s-5); scroll-margin-top: var(--s-4); }
.step-title { font-family: var(--font-body); font-weight: 650; font-size: 1.35rem; margin: 0; }
.step-title:focus { outline: none; }
.step-title .step-of { position: absolute; }
.step-title:focus-visible { outline: 2px solid var(--mango); }

.kind-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (min-width: 640px) { .kind-choices { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .kind-choices-2 { grid-template-columns: repeat(2, 1fr); } }
.kind {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: var(--s-3) var(--s-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--jungle);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind .icon { width: 28px; height: 28px; }
.kind:hover { border-color: var(--jungle); }
.kind:has(input:checked) { border-color: var(--jungle); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--jungle); }
.kind:has(input:focus-visible) { outline: 2px solid var(--mango); outline-offset: 2px; }

.photo-picker { display: grid; gap: var(--s-3); }
.photo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.photo-add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 56px;
  padding: var(--s-2) var(--s-3);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--jungle);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.photo-add:hover { border-color: var(--jungle); background: var(--paper); }
.photo-add:focus-within { outline: 2px solid var(--mango); outline-offset: 3px; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: var(--s-2);
}
.photo-list:empty { display: none; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--dune); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute;
  top: var(--s-1); right: var(--s-1);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--jungle);
  cursor: pointer;
}
.photo-remove .icon { width: 20px; height: 20px; }
.photo-status:empty { display: none; }

.review { display: grid; gap: var(--s-3); }
.review-title { margin: 0; }
.review-group { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--paper); }
.review-group + .review-group { margin-top: var(--s-2); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.review-head h4 { margin: 0; font-size: 1rem; }
.review-list { margin: 0; display: grid; gap: var(--s-1); }
.review-list div { display: grid; grid-template-columns: minmax(8em, 38%) 1fr; gap: var(--s-3); padding: 6px 0; border-top: 1px solid var(--line); }
.review-list dt { color: var(--text-muted); font-size: 0.95em; }
.review-list dd { margin: 0; overflow-wrap: anywhere; }

.step-nav { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.step-buttons { display: flex; gap: var(--s-3); }
.step-buttons .step-next, .step-buttons .step-submit { flex: 1 1 auto; }
.step-buttons .step-back { flex: 0 0 auto; padding-inline: var(--s-4); }
@media (min-width: 600px) {
  .step-buttons { justify-content: flex-end; }
  .step-buttons .step-next, .step-buttons .step-submit { flex: 0 0 auto; min-width: 200px; }
  .step-buttons .step-back { margin-right: auto; }
}

/* The question the form just moved to glows briefly. A ring, not a border,
   so nothing shifts. */
#post-form .choice-group, #post-form .field, #post-form .step-nav .btn { scroll-margin-top: 20px; }
#post-form .choice-group, #post-form .field { border-radius: var(--r-sm); }
@keyframes q-arrive {
  0% { box-shadow: 0 0 0 0 rgba(224, 161, 58, 0); background-color: rgba(224, 161, 58, 0); }
  20% { box-shadow: 0 0 0 8px rgba(224, 161, 58, 0.5); background-color: rgba(224, 161, 58, 0.16); }
  100% { box-shadow: 0 0 0 8px rgba(224, 161, 58, 0); background-color: rgba(224, 161, 58, 0); }
}
.q-arrive { animation: q-arrive 1.8s ease-out; }
.btn.q-arrive { animation-name: q-arrive-btn; }
@keyframes q-arrive-btn {
  0% { box-shadow: 0 0 0 0 rgba(224, 161, 58, 0); }
  20% { box-shadow: 0 0 0 8px rgba(224, 161, 58, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(224, 161, 58, 0); }
}

/* ---------- Apply ---------- */

.dog-context {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: var(--s-3);
  margin-bottom: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.dog-context img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--dune); }
.dog-context h2 { margin: 0; font-family: var(--font-body); font-weight: 650; font-size: 1.3rem; }
.dog-context p { margin: 0; }

/* ---------- Resources ---------- */

.jump-links { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--jungle);
  text-decoration: none;
  font-weight: 550;
  font-size: 16px;
}
.jump-links a:hover { border-color: var(--jungle); }
.jump-links .jump-emergency { color: var(--sunset); border-color: var(--sunset); }
.jump-links .icon { width: 1.1em; height: 1.1em; }
.help-section { scroll-margin-top: var(--s-2); }

/* "About: Canelo" above the message form. */
.about-pet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--s-3);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.about-pet-photo { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--dune); flex: 0 0 auto; }
.about-pet p { margin: 0; font-size: 1.1em; }
.about-pet-label { color: var(--text-muted); }

/* Local groups: other people's Facebook groups and pages. */
.group-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
@media (min-width: 600px) and (max-width: 899px) { .group-list { grid-template-columns: repeat(2, 1fr); } }
.group-card {
  display: grid;
  align-content: start;
  gap: 2px;
  height: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.group-card:hover { border-color: var(--jungle); color: var(--text); }
.group-card:hover .group-name { text-decoration: underline; }
.group-kind { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.group-kind .icon { width: 1em; height: 1em; }
.group-name { font-size: 1.05rem; font-weight: 650; color: var(--jungle); line-height: 1.3; }
.group-desc { color: var(--text-muted); font-size: 0.95em; line-height: 1.45; }
.help-section > .wrap > h2 { margin-bottom: 0.2em; }
.res-section { padding-top: var(--s-5); scroll-margin-top: var(--s-2); }
.res-section > h3 { display: flex; align-items: center; gap: var(--s-2); font-size: 1.4rem; }
.res-emergency > h3 .icon { color: var(--sunset); }
.post-meta { list-style: none; margin: var(--s-1) 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.95em; }
.post-meta li { display: flex; align-items: flex-start; gap: var(--s-2); overflow-wrap: anywhere; }
.meta-icon { margin-top: 0.15em; color: var(--text-muted); width: 1.1em; height: 1.1em; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); align-items: start; }
@media (min-width: 700px) { .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .res-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.resource-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.resource-card h4 { margin: 0 0 var(--s-1); font-size: 1.1rem; line-height: 1.3; }
.resource-wildlife { border-color: var(--line); }
.res-desc { margin: 10px 0 0; }
.res-empty { color: var(--text-muted); margin: 0; }

/* The one alert on the page: no confirmed overnight vet locally. */
.vet-alert {
  margin: var(--s-2) 0 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.vet-alert h3 { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); font-size: 1.15rem; color: var(--sunset); }
.vet-alert p { margin: 0 0 var(--s-1); max-width: 80ch; font-size: 0.95em; line-height: 1.5; }
.vet-alert-link { margin-top: var(--s-2); background: var(--sunset); color: #fff; }
@media (min-width: 900px) {
  /* Text on the left, the button on the right: one compact band. */
  .vet-alert { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-6); align-items: center; }
  .vet-alert > :not(.vet-alert-link) { grid-column: 1; }
  .vet-alert-link { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
}

/* Send a message and local groups side by side on wide screens. */
.help-band { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .help-band { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.help-panel > h2 { margin: 0 0 0.2em; font-size: 1.5rem; }
.help-panel > .lead { margin: 0 0 var(--s-3); font-size: 1rem; }
.help-panel .form-card { padding: var(--s-5); }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vet-alert-link:hover { background: var(--sunset-deep); color: #fff; }

.res-filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3) var(--s-4); margin: var(--s-3) 0 0; }
.res-filters .field { min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.res-count { margin: 0; color: var(--text-muted); min-height: 1.6em; flex-basis: 100%; }
.res-count:empty { min-height: 0; }

.res-sub { margin: var(--s-4) 0 var(--s-1); font-size: 1.15rem; }
.res-intro { margin: 0 0 14px; color: var(--text-muted); max-width: 64ch; }
.res-warn {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ocean-tint);
  color: var(--ocean);
  font-weight: 600;
}
.res-warn .icon { margin-top: 0.12em; }
.res-wildlife > h3 { color: var(--ocean); }

.res-kind { margin: 0 0 2px; font-size: 0.9rem; color: var(--text-muted); }
.svc-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--sand);
  font-size: 0.9rem;
  color: var(--jungle);
}
.svc-strong { background: var(--jungle); color: #fff; }
.res-note {
  margin: var(--s-3) 0 0;
  padding: var(--s-2) var(--s-3);
  background: var(--mango-tint);
  border-radius: var(--r-sm);
}
.res-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 0; }
.res-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  color: var(--jungle);
  font-weight: 600;
  text-decoration: none;
}
.res-action .icon { width: 1.1em; height: 1.1em; }
.res-action:hover { border-color: var(--jungle); color: var(--jungle); }
.res-action:first-child { background: var(--sunset); border-color: var(--sunset); color: #fff; }
.res-action:first-child:hover { background: var(--sunset-deep); border-color: var(--sunset-deep); }
.res-foot { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }
.res-foot p { margin: 0 0 2px; }
.res-verified { display: flex; align-items: center; gap: 6px; color: var(--canopy); font-weight: 600; }
.res-unverified { font-style: italic; }
.res-callfirst { color: var(--text-muted); }
.res-report-toggle {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ocean);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.res-report { display: grid; gap: 10px; margin-top: 10px; }
.res-report textarea, .res-report input { width: 100%; }
.res-report-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.res-report-done { margin: 10px 0 0; font-weight: 600; color: var(--canopy); }

/* ---------- Happy tails ---------- */

.tails-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7); }
.tail-card { display: grid; gap: var(--s-4); }
.tail-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--dune); }
.tail-card h2 { margin: 0; }
.tail-story { max-width: 62ch; white-space: pre-line; }
@media (min-width: 900px) {
  .tail-card { grid-template-columns: 1.2fr 1fr; gap: var(--s-7); align-items: center; }
  .tail-card:nth-child(even) .tail-photo { order: 2; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--jungle);
  color: var(--on-dark-muted);
  padding: var(--s-6) 0;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--mango); }
.footer-inner { display: grid; gap: var(--s-4); }
.footer-about { max-width: 60ch; }
.footer-about p { margin: 0 0 var(--s-2); }
.footer-brand .brand-mark { color: var(--paper); font-size: 1.2rem; }
.footer-areas { color: var(--paper); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin: 0; padding-top: var(--s-4); border-top: 1px solid rgba(251, 248, 243, 0.16); font-size: 0.95em; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto; column-gap: var(--s-7); }
  .footer-links { flex-direction: column; }
  .footer-note { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.not-found { padding-block: var(--s-8) 96px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .gallery-main.is-changing { animation: fade-in 0.25s ease; }
  @keyframes fade-in { from { opacity: 0.4; } to { opacity: 1; } }
}
