/* ==========================================================================
   Last Chance Animal Rescue
   Slab-serif display, grotesque body, warm off-white ground, soft rounded
   cards, and an arc cut along the bottom of every photo.
   ========================================================================== */

:root{
  /* Header height. The mobile nav panel hangs off this, so the two must
     never drift apart. */
  --hdh:74px;

  /* brand */
  --brown:#5A2E1B;          /* headings, dark UI */
  --brown-d:#3E1E10;
  --rust:#C2561F;           /* accent, links */
  --rust-d:#A14416;
  --amber:#E9A93C;          /* primary call to action */
  --amber-d:#D9942A;

  /* neutrals */
  --ink:#2A211B;
  --ink-2:#5C5048;
  --ink-3:#8B7F75;
  --paper:#FAF6F0;          /* page ground */
  --card:#FFFFFF;
  --tint:#F3EADC;
  --line:#E7DCCC;
  --line-2:#D6C7B2;

  --r-card:20px;
  --r-pill:999px;
  --r-img:14px;

  --w:1200px;
  --w-text:680px;

  --shadow:0 2px 10px rgba(42,33,27,.06);
  --shadow-h:0 14px 34px rgba(42,33,27,.14);

  --display:"Bricolage Grotesque","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;

  --arc:0 0 50% 50% / 0 0 11% 11%;   /* the curve under every photo */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--body);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

h1,h2,h3,h4{font-family:var(--display);color:var(--brown);margin:0;font-weight:700;
  font-variation-settings:"opsz" 96,"wdth" 100;
  letter-spacing:-.028em;text-wrap:balance}
h1{font-size:clamp(2.5rem,5.4vw,4.2rem);line-height:1.02;letter-spacing:-.035em}
h2{font-size:clamp(1.9rem,3.5vw,2.9rem);line-height:1.08;letter-spacing:-.032em}
h3{font-size:1.28rem;line-height:1.22;letter-spacing:-.02em;font-weight:600}
h4{font-size:1.05rem;font-weight:600;letter-spacing:-.015em}
h1 em,h2 em{font-style:normal;color:var(--rust)}
p{margin:0}
strong{font-weight:600}

.wrap{max-width:var(--w);margin:0 auto;padding:0 28px}
.text{max-width:var(--w-text)}
.s{padding:80px 0}
.s-sm{padding:52px 0}
.tint{background:var(--tint)}
.white{background:var(--card)}
.center{text-align:center}
.center .lede,.center .text{margin-left:auto;margin-right:auto}
.flow > * + *{margin-top:1.05em}
.lede{font-size:1.18rem;line-height:1.6;color:var(--ink-2)}
.sub{color:var(--ink-3);font-size:.95rem}
.hr{border:0;border-top:1px solid var(--line);margin:0}

/* ---------------------------------------------------------------- buttons */
.btn{
  display:inline-block;font-family:var(--body);font-size:1rem;font-weight:600;
  padding:14px 30px;border-radius:var(--r-pill);border:2px solid var(--amber);
  background:var(--amber);color:var(--brown-d);cursor:pointer;line-height:1.2;
  text-align:center;transition:background .16s,border-color .16s,color .16s,transform .16s;
}
.btn:hover{background:var(--amber-d);border-color:var(--amber-d);transform:translateY(-1px)}
.btn-2{background:transparent;border-color:var(--brown);color:var(--brown)}
.btn-2:hover{background:var(--brown);border-color:var(--brown);color:#fff}
.btn-3{background:#fff;border-color:#fff;color:var(--brown)}
.btn-3:hover{background:rgba(255,255,255,.9);border-color:rgba(255,255,255,.9);color:var(--brown)}
.btn-sm{padding:10px 22px;font-size:.92rem}
.btns{display:flex;flex-wrap:wrap;gap:14px}
.center .btns,.btns.center{justify-content:center}

.go{font-weight:600;color:var(--rust);display:inline-flex;align-items:center;gap:6px}
.go::after{content:"→";transition:transform .15s}
.go:hover::after{transform:translateX(3px)}

/* ------------------------------------------------------------- arc banner */
/* A photo with the signature curve cut out of its bottom edge. */
.banner{position:relative;background:var(--brown);overflow:hidden;
  border-radius:var(--arc)}
/* A fixed height meant the band grew wider but never taller, so the crop got
   worse the bigger the screen: 41% of the hero was being thrown away at
   1440px. An aspect ratio holds the crop steady at every width. */
.banner{aspect-ratio:var(--band);overflow:hidden}
.banner img{width:100%;height:100%;object-fit:cover;object-position:50% 34%;
  position:relative;z-index:1}

/* The blurred backdrop behind a zoomed-out hero.

   Zoom below 100% pulls back to show more of the photo than the band shape
   allows, which leaves the picture smaller than the band. Flat brown bars
   down the sides read as a bug; a blurred, darkened copy of the same photo
   reads as deliberate and keeps the headline legible over it. Only painted
   when a slide is actually zoomed out. */
.banner.hero-bleed::before{
  content:"";position:absolute;inset:0;z-index:0;
  background-image:var(--hero-bg);background-size:cover;background-position:50% 50%;
  filter:blur(26px) brightness(.72) saturate(.9);
  transform:scale(1.18);
}
.hero-car .hero-s{z-index:1}
.hero-car::after{z-index:2}
.hero-dots{z-index:3}

/* Hero height.
   It used to be hardcoded at 2.4/1, dropping to 4/3 on a phone, which meant
   the picture ate most of the first screen and pushed the headline and the
   adopt buttons below the fold. The ratio is now a variable with three
   settings, chosen in /admin/hero, and the middle one is the new default.

   Each setting gets shorter on narrow screens rather than taller: a tall
   band costs far more on a phone, where vertical space is the scarce thing. */
.banner{--band:2.6/1}                 /* medium, the default */
.banner.hero-h-medium{--band:2.6/1}   /* named so the class is not a no-op */
.banner.hero-h-short{--band:3.4/1}
.banner.hero-h-tall{--band:2.1/1}

@media(max-width:860px){
  .banner{--band:2/1}
  .banner.hero-h-medium{--band:2/1}
  .banner.hero-h-short{--band:2.5/1}
  .banner.hero-h-tall{--band:16/10}
}
@media(max-width:560px){
  .banner{--band:3/2}
  .banner.hero-h-medium{--band:3/2}
  .banner.hero-h-short{--band:16/9}
  .banner.hero-h-tall{--band:4/3}
}

.pagetop{background:var(--paper);padding-bottom:0}
.pagetop .wrap{padding-left:0;padding-right:0;max-width:none}
.pagehead{text-align:center;padding:46px 0 0}
.pagehead h1{margin:0 auto;max-width:17ch}
.pagehead p{margin:18px auto 0;max-width:56ch;font-size:1.12rem;color:var(--ink-2);line-height:1.6}
.pagehead .btns{margin-top:30px}

/* --------------------------------------------------------------- sections */
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin-bottom:34px;flex-wrap:wrap}
.head p{color:var(--ink-3);margin-top:8px;max-width:48ch}
.hd2{margin-bottom:32px}
.hd2 p{color:var(--ink-3);margin-top:10px;max-width:54ch;font-size:1.02rem}

.two{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.two-t{align-items:start}
@media(max-width:880px){.two{grid-template-columns:1fr;gap:36px}}

/* A short heading beside a long list.
   --------------------------------------------------------------------------
   Eight of these blocks pair a two-line intro with a column that runs three
   to a hundred and fifty times longer. On "The process" it was eleven
   characters against sixteen hundred, so the left half of the section was a
   tall empty hole next to six numbered steps.

   Two changes. The intro gets a narrower column, because a short heading does
   not need half the page. And it sticks, so it travels down beside the list
   instead of sitting at the top watching it go past.

   Sticking is switched off once the layout stacks, and on short viewports
   where a stuck element would cover the thing it is introducing. */
.two-stick{grid-template-columns:minmax(190px,.72fr) 1.7fr;align-items:start}
.two-stick > :first-child{
  position:sticky;top:calc(var(--hdh) + 30px);align-self:start;
}
@media(max-width:880px){
  .two-stick{grid-template-columns:1fr}
  .two-stick > :first-child{position:static}
}
@media(max-height:620px){
  .two-stick > :first-child{position:static}
}
@media(prefers-reduced-motion:reduce){
  /* sticky is not motion as such, but it reads as movement to some people */
  .two-stick > :first-child{position:static}
}

figure{margin:0}
figure img{border-radius:var(--r-img);width:100%}
figure.arc{border-radius:var(--arc);overflow:hidden}
figure.arc img{border-radius:0;max-height:440px;object-fit:cover}
figure figcaption{font-size:.88rem;color:var(--ink-3);margin-top:12px}

/* ------------------------------------------------------------- pet tiles */
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
@media(max-width:900px){.strip{grid-template-columns:repeat(2,1fr);gap:20px}}
.pet{display:block;background:var(--card);border-radius:var(--r-card);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.pet:hover{transform:translateY(-4px);box-shadow:var(--shadow-h)}
.pet .ph{position:relative;background:var(--tint);border-radius:var(--arc);overflow:hidden}
.pet .ph img{width:100%;aspect-ratio:1/1;object-fit:cover}
.pet .tx{padding:4px 22px 24px}
.pet b{display:block;font-family:var(--display);font-size:1.45rem;font-weight:700;color:var(--brown)}
.pet span{display:block;font-size:.95rem;color:var(--ink-2);margin-top:3px}

/* ------------------------------------------------------------ help tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(262px,1fr));gap:22px}
.tile{display:block;background:var(--card);border-radius:var(--r-card);padding:30px 28px 28px;
  box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.tile:hover{transform:translateY(-4px);box-shadow:var(--shadow-h)}
.tile .ic{width:46px;height:46px;border-radius:50%;background:var(--tint);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.tile .ic svg{width:23px;height:23px;stroke:var(--rust);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.tile h3{font-size:1.22rem;margin-bottom:9px}
.tile p{font-size:.97rem;color:var(--ink-2);line-height:1.6;margin-bottom:16px}

/* ----------------------------------------------------------- arrival row */
.waits{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:860px){.waits{grid-template-columns:1fr}}
.wait{display:block;background:var(--card);border-radius:var(--r-card);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.wait:hover{transform:translateY(-4px);box-shadow:var(--shadow-h)}
.wait .ph{position:relative;background:var(--tint);border-radius:var(--arc);overflow:hidden}
.wait .ph img{width:100%;aspect-ratio:4/3;object-fit:cover}
.wait > span:last-child{display:block;padding:4px 24px 26px}
.wait b{display:block;font-family:var(--display);font-size:1.4rem;font-weight:700;color:var(--brown)}
.wait .meta{display:block;font-size:.95rem;color:var(--ink-2);margin-top:2px}
.wait .since{display:inline-block;margin-top:12px;font-size:.85rem;font-weight:600;
  color:var(--brown);background:var(--amber);padding:6px 16px;border-radius:var(--r-pill)}

/* ---------------------------------------------------------------- ticker */
.ticker{background:var(--brown);color:#f0ded0;padding:16px 0;font-size:.98rem}
.ticker .wrap{display:flex;flex-wrap:wrap;gap:8px 28px;align-items:center;justify-content:center}
.ticker b{color:var(--amber);font-weight:700}
.ticker .sep{opacity:.3}

/* ------------------------------------------------------------------ misc */
ol.steps{list-style:none;counter-reset:n;margin:0;padding:0}
ol.steps li{counter-increment:n;display:grid;grid-template-columns:42px 1fr;gap:20px;
  padding:0 0 26px}
ol.steps li::before{content:counter(n);width:32px;height:32px;border-radius:50%;
  background:var(--amber);color:var(--brown-d);display:flex;align-items:center;
  justify-content:center;font-weight:700;font-size:.95rem}
ol.steps b{display:block;font-weight:600;font-size:1.05rem;margin-bottom:4px;color:var(--brown)}
ol.steps p{color:var(--ink-2);font-size:.98rem}

ul.list{list-style:none;margin:0;padding:0}
ul.list li{position:relative;padding:0 0 0 24px;margin-bottom:.65em;color:var(--ink-2)}
ul.list li::before{content:"";position:absolute;left:2px;top:.6em;width:8px;height:8px;
  border-radius:50%;background:var(--amber)}
ul.list li:last-child{margin-bottom:0}

.acc{background:var(--card);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden}
.acc-i + .acc-i{border-top:1px solid var(--line)}
.acc-b{width:100%;background:none;border:0;cursor:pointer;padding:22px 26px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;
  font-family:var(--display);font-size:1.15rem;font-weight:700;color:var(--brown)}
.acc-b:hover{color:var(--rust)}
.acc-b i{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--tint);
  position:relative;transition:background .2s}
.acc-b i::before,.acc-b i::after{content:"";position:absolute;background:var(--brown);
  transition:transform .2s}
.acc-b i::before{left:7px;top:12.2px;width:12px;height:1.6px}
.acc-b i::after{left:12.2px;top:7px;width:1.6px;height:12px}
.acc-b[aria-expanded=true] i{background:var(--amber)}
.acc-b[aria-expanded=true] i::after{transform:scaleY(0)}
.acc-p{display:none;padding:0 26px 26px;max-width:var(--w-text)}
.acc-p.on{display:block}
.acc-p > * + *{margin-top:.9em}

table.fees{width:100%;border-collapse:collapse;font-size:1rem}
table.fees caption{text-align:left;font-weight:700;padding:0 0 10px;font-family:var(--display);
  color:var(--brown);font-size:1.05rem}
table.fees td{padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink-2)}
table.fees td:last-child{text-align:right;color:var(--brown);font-weight:700;white-space:nowrap}
table.fees tr:last-child td{border-bottom:0}

.note{background:var(--card);border-radius:var(--r-card);padding:28px 30px;box-shadow:var(--shadow)}
.note h3{font-size:1.18rem;margin-bottom:9px}
.note > * + *{margin-top:.75em}
.note.warm{background:var(--tint);box-shadow:none}

.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:26px}
.person{background:var(--card);border-radius:var(--r-card);padding:30px;box-shadow:var(--shadow)}
.p-role{font-size:.85rem;color:var(--rust);font-weight:600;margin-bottom:5px}
.person h3{margin-bottom:12px}
.person p{color:var(--ink-2);font-size:.97rem}

.orgs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}
.org{background:var(--card);border-radius:var(--r-card);padding:28px;box-shadow:var(--shadow)}
.org h3{font-size:1.18rem;margin-bottom:9px}
.org p{font-size:.95rem;color:var(--ink-2);margin-bottom:16px}

.press{display:grid;gap:18px}
.press a{display:block;background:var(--card);border-radius:var(--r-card);padding:26px 28px;
  box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.press a:hover{transform:translateY(-3px);box-shadow:var(--shadow-h)}
.press .src{font-size:.86rem;color:var(--rust);font-weight:600}
.press h3{font-size:1.22rem;margin:6px 0 6px}
.press p{color:var(--ink-2);font-size:.97rem}

.quote{background:var(--tint);border-radius:var(--r-card);padding:40px 42px}
.quote blockquote{margin:0;font-family:var(--display);font-size:1.4rem;line-height:1.45;color:var(--brown)}
.quote cite{display:block;margin-top:18px;font-style:normal;font-size:.95rem;color:var(--ink-3)}
@media(max-width:620px){.quote{padding:28px 24px}.quote blockquote{font-size:1.18rem}}

.cx{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.cx > div{background:var(--card);border-radius:var(--r-card);padding:28px;box-shadow:var(--shadow)}
.cx h3{font-size:1.05rem;margin-bottom:10px}
.cx p,.cx a{color:var(--ink-2);font-size:1rem;line-height:1.7}
.cx a:hover{color:var(--rust)}

.fld{margin-bottom:18px}
.fld label{display:block;font-size:.93rem;font-weight:600;margin-bottom:7px;color:var(--brown)}
.fld input,.fld textarea{width:100%;padding:13px 16px;font:inherit;font-size:1rem;color:var(--ink);
  background:#fff;border:1.5px solid var(--line-2);border-radius:12px}
.fld input:focus,.fld textarea:focus{outline:0;border-color:var(--rust)}
.fld textarea{min-height:150px;resize:vertical}
.two-f{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
@media(max-width:560px){.two-f{grid-template-columns:1fr}}

.band{background:var(--brown);color:#fff;padding:74px 0;text-align:center}
.band h2{color:#fff;max-width:20ch;margin:0 auto}
.band p{margin:16px auto 0;max-width:52ch;color:rgba(255,255,255,.86);font-size:1.1rem}
.band .btns{margin-top:30px;justify-content:center}

/* ---------------------------------------------------------------- footer */
.ft{background:var(--brown-d);color:#c3b2a5;font-size:.96rem;padding:60px 0 0}
.ft a{color:#c3b2a5;transition:color .14s}
.ft a:hover{color:var(--amber)}
.ft-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:42px}
.ft-brand img{height:50px;width:auto;margin-bottom:16px}
.ft-brand p{max-width:32ch;line-height:1.65;font-size:.94rem}
.ft h4{font-family:var(--display);font-size:1.02rem;font-weight:700;color:#fff;margin-bottom:14px}
.ft ul{list-style:none;margin:0;padding:0}
.ft li{margin-bottom:9px}
.ft-bot{margin-top:52px;border-top:1px solid rgba(255,255,255,.12);padding:20px 0;
  display:flex;flex-wrap:wrap;gap:8px 26px;align-items:center;font-size:.88rem;color:#8e7f74}
@media(max-width:860px){.ft-top{grid-template-columns:1fr 1fr;gap:34px}.ft-brand{grid-column:1/-1}}
@media(max-width:500px){.ft-top{grid-template-columns:1fr}}

.skip{position:absolute;left:-9999px;background:#fff;padding:12px 20px;z-index:99;border-radius:0 0 10px 0}
.skip:focus{left:0}

@media(max-width:620px){
  body{font-size:16px}
  .wrap{padding:0 20px}
  .s{padding:54px 0}
  .s-sm{padding:38px 0}
  .pagehead{padding-top:34px}
  .btns .btn{flex:1 1 auto;min-width:150px}
  :root{--arc:0 0 50% 50% / 0 0 8% 8%}
}


/* ======================================================================
   /adopt page head.
   Kept deliberately short: this page exists to show animals, and the
   previous version put roughly a full screen of heading, blurb and
   controls above the first card.
   ====================================================================== */
.adopt-top{ text-align:center; padding:44px 0 0; }
.adopt-top h1{ margin:0 auto; max-width:16ch; }
.adopt-top .count-line{
  margin:12px auto 0; font-size:1.1rem; color:var(--ink-2);
}
.adopt-top .count-line b{ color:var(--brown); font-weight:700; }
.adopt-top .fineprint{
  margin:10px auto 0; max-width:64ch; font-size:.95rem; color:var(--ink-3);
}
.adopt-top .fineprint a{
  color:var(--rust); font-weight:600;
  border-bottom:1px solid rgba(194,86,31,.3);
}
.adopt-top .fineprint a:hover{ border-bottom-color:var(--rust); }

@media(max-width:620px){
  .adopt-top{ padding-top:32px; }
  .adopt-top .count-line{ font-size:1rem; }
  .adopt-top .fineprint{ margin-top:9px; font-size:.9rem; }
}


/* ======================================================================
   Home hero.
   .pagehead carried padding-bottom:0, so the button row sat flush against
   the ticker bar beneath it with literally zero gap.
   ====================================================================== */
.pagetop .pagehead{ padding-bottom:54px; }
.pagetop .pagehead .btns{ margin-top:32px; }

/* Long headings broke badly ("Adopt a rescued dog / or cat today"). Let the
   browser balance the lines instead of filling the first one. */
.pagehead h1{ text-wrap:balance; }
.adopt-top h1{ text-wrap:balance; }
.band h2, .hd2 h2{ text-wrap:balance; }

/* The ticker is a full-bleed strip, so give it a little more room to read
   as a band rather than a seam. */
.ticker{ padding:18px 0; }

@media(max-width:620px){
  .pagetop .pagehead{ padding-bottom:38px; }
  .pagetop .pagehead .btns{ margin-top:26px; }
}


/* ==========================================================================
   Header and navigation
   ========================================================================== */
.hd{position:sticky;top:0;z-index:60;background:var(--brown);color:#fff}
.hd-in{max-width:var(--w);margin:0 auto;padding:0 28px;height:var(--hdh);
  display:flex;align-items:center;gap:26px}
.lg{display:flex;align-items:center;gap:11px;flex-shrink:0}
.lg img{height:44px;width:auto}
.lg b{font-family:var(--display);font-size:1.08rem;font-weight:700;color:#fff;
  letter-spacing:-.01em;white-space:nowrap;line-height:1.1}

.nv{margin-left:auto;display:flex;align-items:center;gap:2px}
.nv-top,.nv-foot{display:none}
.nv .dd-row{display:flex;align-items:center}
.nv .dd-row > a,.nv .nv-flat{
  font-size:.95rem;font-weight:500;color:rgba(255,255,255,.86);
  padding:9px 13px;border-radius:999px;white-space:nowrap;
  transition:color .14s,background .14s;
}
.nv .dd-row > a:hover,.nv .nv-flat:hover,.nv .dd:hover .dd-row > a{
  color:#fff;background:rgba(255,255,255,.1)
}
.nv a[aria-current]{color:var(--amber)}
.nv .nv-donate{margin-left:12px;padding:10px 24px;font-size:.93rem;color:var(--brown-d)}
.nv .nv-donate:hover{color:var(--brown-d)}

/* desktop dropdown */
.dd{position:relative}
.dd-t{
  background:none;border:0;cursor:pointer;padding:0;margin-left:-6px;
  width:18px;height:18px;position:relative;
}
.dd-t::after{
  content:"";position:absolute;left:4px;top:5px;width:5px;height:5px;
  border-right:1.6px solid rgba(255,255,255,.65);
  border-bottom:1.6px solid rgba(255,255,255,.65);
  transform:rotate(45deg);transition:transform .2s;
}
.dd-m{position:absolute;top:100%;left:0;padding-top:10px;min-width:216px;
  opacity:0;visibility:hidden;transform:translateY(-5px);
  transition:opacity .15s,transform .15s,visibility .15s}
.dd:hover .dd-m,.dd:focus-within .dd-m{opacity:1;visibility:visible;transform:none}
.dd-m ul{list-style:none;margin:0;padding:8px;background:#fff;border-radius:14px;
  box-shadow:0 10px 34px rgba(42,33,27,.16)}
.dd-m a{display:block;padding:9px 14px;font-size:.94rem;color:var(--ink-2);border-radius:8px}
.dd-m a:hover{background:var(--tint);color:var(--brown)}

/* hamburger */
.bgr{display:none;margin-left:auto;background:none;border:0;padding:10px;cursor:pointer;
  position:relative;width:44px;height:44px}
.bgr span{display:block;width:23px;height:2px;background:#fff;border-radius:2px;
  margin:5px auto;transition:.22s}
.bgr[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.bgr[aria-expanded=true] span:nth-child(2){opacity:0}
.bgr[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* --------------------------------------------------------------- mobile nav */
@media(max-width:1040px){
  .bgr{display:block}

  /* A light sheet rather than a dark slab. The previous panel was six stacked
     divider rules on flat brown, which read as a table of contents. */
  .nv{
    position:fixed;inset:var(--hdh) 0 0;z-index:70;
    display:none;flex-direction:column;align-items:stretch;gap:0;margin:0;
    padding:26px 24px calc(26px + env(safe-area-inset-bottom));
    background:var(--paper);
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    box-shadow:inset 0 14px 22px -16px rgba(42,33,27,.3);
  }
  .nv.on{display:flex;animation:navin .24s cubic-bezier(.33,1,.68,1)}
  @keyframes navin{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

  /* the two things most visitors arrive for */
  .nv-top{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:30px}
  .nv-cta{
    display:flex;align-items:center;justify-content:center;min-height:56px;
    background:var(--amber);color:var(--brown-d);
    border-radius:14px;font-weight:700;font-size:1rem;line-height:1.2;
    text-align:center;box-shadow:0 2px 10px rgba(233,169,60,.3);
  }
  .nv-cta:active{transform:translateY(1px)}

  /* Top level set in the display face, which is what gives the menu the
     site's voice instead of generic bold sans. No rules between items:
     spacing does the separating. */
  .nv .dd{border:0}
  .nv .dd-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .nv .dd-row > a,
  .nv .nv-flat{
    font-family:var(--display);font-size:1.45rem;font-weight:700;
    color:var(--brown);letter-spacing:-.01em;line-height:1.2;
    padding:13px 0;border:0;border-radius:0;
  }
  /* flex:1 belongs only to the label inside a group row, where it pushes the
     chevron to the right edge. On .nv-flat, which is a direct child of the
     column, it made the item grow to absorb leftover height: those rows came
     out 77px against 54px for the groups. */
  .nv .dd-row > a{flex:1}
  .nv .nv-flat{display:block;flex:0 0 auto}
  .nv .dd-row > a:hover,.nv .nv-flat:hover,
  .nv .dd-row > a:active,.nv .nv-flat:active,
  .nv .dd:hover .dd-row > a{background:transparent;color:var(--rust)}
  .nv a[aria-current]{color:var(--rust)}

  .nv .dd-t{
    width:40px;height:40px;flex-shrink:0;margin:0;border-radius:50%;
    background:var(--paper-3);transition:background .18s,transform .22s;
  }
  .nv .dd-t::after{
    left:14px;top:14px;width:9px;height:9px;border-width:2px;
    border-color:var(--brown);
  }
  .nv .dd-t[aria-expanded=true]{background:var(--amber)}
  .nv .dd-t[aria-expanded=true]::after{transform:rotate(-135deg);top:17px}

  .nv .dd-m{
    position:static;opacity:1;visibility:visible;transform:none;
    display:none;min-width:0;padding:0;
  }
  .nv .dd-m.on{display:block;animation:subin .2s ease}
  @keyframes subin{from{opacity:0}to{opacity:1}}
  .nv .dd-m ul{
    background:transparent;box-shadow:none;border-radius:0;
    padding:2px 0 10px;margin-left:3px;border-left:2px solid var(--line);
  }
  .nv .dd-m a{
    color:var(--ink-2);font-size:1.02rem;font-weight:500;
    padding:11px 0 11px 18px;border-radius:0;
  }
  .nv .dd-m a:hover,.nv .dd-m a:active{background:transparent;color:var(--rust)}

  .nv .nv-donate{
    margin:30px 0 0;min-height:58px;display:flex;align-items:center;
    justify-content:center;font-size:1.05rem;border-radius:14px;
    box-shadow:0 2px 10px rgba(233,169,60,.3);
  }

  .nv-foot{
    display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;
    gap:6px 18px;
    margin-top:26px;padding-top:20px;
    border-top:1px solid var(--line);
  }
  .nv-foot a{color:var(--ink-3);font-size:.95rem;padding:5px 0;white-space:nowrap}
  .nv-foot a:hover{color:var(--rust)}

  /* the hamburger sits on the brown bar, so it stays light */
  .bgr span{background:#fff}
}


/* ==========================================================================
   Partner ribbon
   A quiet strip of supporters above the footer. Marquee by duplicating the
   track and translating it, so the loop never shows a seam.
   ========================================================================== */
.partners{
  background:var(--paper-2);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:26px 0 30px;
  overflow:hidden;
}
.pr-head{
  max-width:var(--w);margin:0 auto 18px;padding:0 28px;
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  flex-wrap:wrap;
}
.pr-head span{
  font-size:.78rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-3);
}
.pr-head a{font-size:.9rem;font-weight:600;color:var(--rust)}
.pr-head a:hover{text-decoration:underline}

.pr-strip{
  position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.pr-track{
  display:flex;align-items:center;width:max-content;
  animation:prscroll 46s linear infinite;
}
.pr-strip:hover .pr-track{animation-play-state:paused}
@keyframes prscroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.pr-item{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 38px;
  font-family:var(--display);font-size:1.22rem;font-weight:600;
  color:var(--brown);opacity:.62;white-space:nowrap;
  transition:opacity .18s,color .18s;
}
.pr-item:hover{opacity:1;color:var(--rust)}
/* a logo can be dropped in without changing anything else */
.pr-item img{max-height:40px;width:auto}

@media(prefers-reduced-motion:reduce){
  .pr-track{animation:none;flex-wrap:wrap;width:auto;justify-content:center}
  .pr-strip{mask-image:none;-webkit-mask-image:none}
  .pr-item{padding:8px 22px}
}
@media(max-width:620px){
  .partners{padding:20px 0 24px}
  .pr-head{margin-bottom:14px;padding:0 20px;align-items:center}
  /* 24px was too small a tap target; baseline alignment is swapped for
     centre alignment so the taller link does not skew the row. */
  .pr-head a{display:inline-flex;align-items:center;min-height:44px}
  .pr-item{padding:0 26px;font-size:1.08rem}
  .pr-track{animation-duration:34s}
}


/* ==========================================================================
   Events
   ========================================================================== */
.ev-h{text-align:center}
.ev-list{display:grid;gap:16px;max-width:820px;margin:34px auto 0}
.ev-card{
  display:grid;grid-template-columns:96px 1fr;gap:24px;align-items:center;
  background:var(--card);border-radius:var(--r-card);padding:22px 26px;
  box-shadow:var(--shadow);
}
.ev-date{
  text-align:center;border-right:1px solid var(--line);padding-right:20px;
}
.ev-date .m{
  display:block;font-size:.76rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--rust);
}
.ev-date .d{
  display:block;font-family:var(--display);font-size:2.1rem;font-weight:700;
  color:var(--brown);line-height:1.05;
}
.ev-date .y{display:block;font-size:.76rem;color:var(--ink-3);margin-top:2px}
.ev-card h3{font-size:1.25rem;margin-bottom:5px}
.ev-meta{font-size:.95rem;color:var(--ink-2)}
.ev-meta b{color:var(--brown);font-weight:600}
.ev-card p{font-size:.96rem;color:var(--ink-2);margin-top:8px;line-height:1.55}
.ev-card .go{margin-top:10px;font-size:.92rem}
@media(max-width:620px){
  .ev-card{grid-template-columns:1fr;gap:12px;padding:20px}
  .ev-date{display:flex;align-items:baseline;gap:8px;text-align:left;
    border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}
  .ev-date .d{font-size:1.5rem}
}

.ev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}
.ev-week{
  background:var(--card);border-radius:var(--r-card);padding:26px;
  box-shadow:var(--shadow);
}
.ev-week .season{
  font-size:max(.75rem,12px);font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--rust);
}
.ev-week h3{font-size:1.2rem;margin:8px 0 4px}
.ev-week .when{font-weight:600;color:var(--brown);font-size:.98rem}
.ev-week .where{font-size:.95rem;color:var(--ink-2);margin-top:3px}
.ev-week .note{font-size:.93rem;color:var(--ink-3);margin-top:12px;line-height:1.55}
.ev-empty{text-align:center;color:var(--ink-3);padding:28px 0}

/* ---- St. Francis Farm residents ---- */
.s-tight{padding-top:10px}
.sec-head{max-width:62ch;margin:0 0 30px}
.sec-head h2{margin:0 0 10px}
.sec-head p{margin:0;color:var(--ink-2)}
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:26px}
.res-msg{grid-column:1/-1;margin:0;color:var(--ink-2)}
.res-note{grid-column:1/-1;margin:0;background:var(--paper-2);border:1px solid var(--line);
  border-radius:var(--r-card);padding:26px 28px}
.res-note h3{margin:0 0 8px;font-size:1.15rem}
.res-note p{margin:0 0 10px;color:var(--ink-2);max-width:60ch}
.res-note p:last-child{margin:0}
.res-card{display:flex;flex-direction:column;background:var(--card);
  border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow)}
.res-ph{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--paper-2)}
.res-ph img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;display:block}
.res-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px;flex:1}
.res-body h3{margin:0;font-family:var(--display);font-size:1.3rem;font-weight:700;color:var(--brown)}
.res-meta{margin:0;font-size:.88rem;color:var(--ink-2);line-height:1.45}
.res-card .btn{margin-top:14px;width:100%;text-align:center;padding:10px 14px;font-size:.92rem}
.res-foot{margin:28px 0 0;color:var(--ink-2);font-size:.95rem}
.res-foot .go{margin-left:6px}

/* ---- event photos ---- */
.ev-card.has-pic{grid-template-columns:200px 96px 1fr}
.ev-pic{width:200px;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--paper-2)}
.ev-pic img{width:100%;height:100%;object-fit:cover;display:block}
.ev-week.has-pic{padding-top:0;overflow:hidden}
.evw-pic{margin:0 -26px 18px;aspect-ratio:16/9;overflow:hidden;background:var(--paper-2)}
.evw-pic img{width:100%;height:100%;object-fit:cover;display:block}
/* Between 620 and 860 the three-column card gets too tight, so the photo
   moves above the date and text rather than squeezing them. */
@media(max-width:860px){
  .ev-card.has-pic{grid-template-columns:96px 1fr;align-items:start}
  .ev-card.has-pic .ev-pic{grid-column:1/-1;width:100%;aspect-ratio:16/9;margin-bottom:2px}
  .ev-card.has-pic .ev-date{padding-top:2px}
}
/* Below 620 the card is already one column, so the photo just leads it. */
@media(max-width:620px){
  .ev-card.has-pic{grid-template-columns:1fr}
  .ev-card.has-pic .ev-pic{aspect-ratio:16/9;margin-bottom:2px}
}

/* A partner shows its logo when a file exists at the data-logo path, and its
   name when one does not, so logos can be added later with no code change. */
/* These were greyscale at rest, taking their colour only on hover. Lauren
   pointed out on the 27 Oct call that nobody hovers on a phone, so for most
   visitors the sponsors were permanently grey and rather small. Full colour,
   and bigger. */
.pr-item.has-logo{padding:0 34px;opacity:1}
.pr-item.has-logo img{max-height:56px;max-width:190px;width:auto;object-fit:contain;display:block;
  transition:transform .18s ease}
.pr-item.has-logo:hover img{transform:scale(1.04)}
@media(max-width:560px){.pr-item.has-logo{padding:0 22px}.pr-item.has-logo img{max-height:44px;max-width:150px}}

/* ------------------------------------------------------------------
   Narrow-device header.
   The wordmark was white-space:nowrap inside a flex item set never to
   shrink, so below about 400px the header was wider than the screen and
   every page scrolled sideways by ~47px, pushing the menu button off the
   right edge. The logo block is now allowed to shrink and the wordmark is
   allowed to wrap onto a second line.
   ------------------------------------------------------------------ */
@media(max-width:620px){
  .hd-in{padding:0 18px;gap:12px}
  .lg{flex:1 1 auto;min-width:0}
  .lg b{white-space:normal;font-size:1rem;line-height:1.14}
  .bgr{flex:0 0 auto;margin-left:0}
}
@media(max-width:400px){
  :root{--hdh:68px}
  .hd-in{padding:0 14px;gap:10px}
  .lg{gap:9px}
  .lg img{height:38px}
  .lg b{font-size:.92rem}
}
@media(max-width:340px){
  .lg img{height:34px}
  .lg b{font-size:.86rem}
}

/* Ribbon links were 29px tall, under the 36px that is comfortable to tap. */
.pr-item{padding-block:9px}

/* ====================================================================
   LAYOUT RHYTHM
   Three faults this fixes, all of them systemic rather than per-page:

   1. One axis for prose. `.text` had a max-width but no auto margins,
      so a block was flush left unless its section happened to carry
      `.center`. On /about the same `.text.flow` sat at left:68 in one
      section and left:300 in the next, so body copy jumped sideways as
      you scrolled. Columns inside `.two` keep their own edge.

   2. No more double padding. Two adjacent `.s` sections each added
      their own 80px, giving a 160px void. A section now only pays for
      its top padding when it opens a new background.

   3. One vertical scale. Section 80, band 74, ribbon 26/30 and the
      farm page's 10 were four different numbers doing one job.
   ==================================================================== */
:root{
  --sec-y:72px;      /* standing air above and below a section */
  --sec-y-sm:46px;   /* the same on a phone */
}

/* -- 1. one prose axis ----------------------------------------------- */
.text{margin-inline:auto}
.two .text,.two-t .text,.two .flow,.two-t .flow{margin-inline:0}

/* -- 2 & 3. one vertical scale, no doubling --------------------------- */
.s{padding:var(--sec-y) 0}
.s + .s{padding-top:0}
.s.tint,.s.white{padding-top:var(--sec-y)}
.tint + .s,.white + .s{padding-top:var(--sec-y)}
.s-tight{padding-top:0}
.band{padding:var(--sec-y) 0}
/* The compact variant was 52, off the scale by itself. Two thirds of a
   full section keeps it visibly tighter without inventing a number. */
.s-sm{padding:calc(var(--sec-y) * .66) 0}
.s + .s-sm,.s-sm + .s-sm{padding-top:0}
.s-sm.tint,.s-sm.white{padding-top:calc(var(--sec-y) * .66)}
.tint + .s-sm,.white + .s-sm{padding-top:calc(var(--sec-y) * .66)}

/* The page header carries its own bottom air, so the section under it
   does not need to add more. */
/* The section under the page header.
   This used to be padding-top:0, from when the header was plain text on
   the page background and the body was meant to continue straight out of
   it. The header is a distinct band now, so running the content flush
   against it is exactly what made the two look meshed together. */
.pagetop + .s,.pagetop + .s.tint,.pagetop + .s.white{
  padding-top:clamp(36px,4.8vw,62px);
}
.pagehead{padding:44px 0 var(--sec-y)}
.adopt-top{padding:44px 0 var(--sec-y)}

/* Short one-message pages (thanks, 404) want extra air, but 130px was
   hardcoded inline and did not shrink on a phone. */
.s.s-tall{padding:calc(var(--sec-y) * 1.6) 0}

.partners{padding:28px 0}

@media(max-width:620px){
  :root{--sec-y:var(--sec-y-sm)}
  .s{padding:var(--sec-y-sm) 0}
  .s-sm{padding:calc(var(--sec-y-sm) * .7) 0}
  .band{padding:var(--sec-y-sm) 0}
  .pagehead{padding:30px 0 var(--sec-y-sm)}
  .adopt-top{padding:30px 0 var(--sec-y-sm)}
  .partners{padding:22px 0}
}

/* Farm residents live in South Carolina; saying so on the card stops anyone
   turning up to a Long Island adoption event expecting to meet them. */
.res-where{margin:2px 0 0;font-size:.82rem;color:var(--ink-3);font-style:italic}

/* Social links have been through three versions. Dim grey text in the fine
   print was too quiet; three fully saturated brand-coloured pills was too
   loud against the brown footer. This is the middle: a restrained outlined
   pill with a small dot carrying the platform's colour, filling with that
   colour only on hover. The colour cue is still immediate, it just is not
   shouting on a page the visitor did not open to look at social buttons. */
.ft-soc{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.ft-soc b{
  flex:1 0 100%;font-weight:700;font-size:.74rem;letter-spacing:.09em;
  text-transform:uppercase;color:#c3b2a5;margin-bottom:2px;
}
.ft-soc a{
  font-weight:600;font-size:.9rem;text-decoration:none;border-radius:999px;
  padding:0;width:46px;height:46px;min-height:46px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#F6EFE7;background:rgba(246,239,231,.06);
  border:1px solid rgba(246,239,231,.26);
  transition:background-color .18s,border-color .18s,color .18s;
}
/* The coloured dot was a stand-in for a logo. The real marks are in
   assets/icons (Simple Icons, CC0), so the dot is gone and the brand
   colour now lives on the mark itself. */
.ft-soc a svg{
  width:19px;height:19px;flex:none;display:block;
  color:var(--dot);transition:color .18s;
}
.ft-soc a:hover,.ft-soc a:focus-visible{
  background:var(--dot);border-color:var(--dot);color:var(--on-dot);
  text-decoration:none;
}
.ft-soc a:hover svg,.ft-soc a:focus-visible svg{color:var(--on-dot)}

.ft-soc a.soc-fb{--dot:#4C8DF0;--on-dot:#10264A}
.ft-soc a.soc-ig{--dot:#E06C9A;--on-dot:#3B1024}
.ft-soc a.soc-tt{--dot:#4BD9D4;--on-dot:#06302F}

@media(max-width:620px){
  .ft-soc{margin-top:18px}
  .ft-soc a{flex:1 1 auto;justify-content:center}
}

/* ---- Shop embed (/merch only) ---- */
.shop-embed{min-height:220px}
.shop-fallback{color:var(--ink-2);text-align:center;padding:40px 0;margin:0}
.shop-embed .shopify-buy__collection{margin:0}
.shop-embed img{border-radius:10px}

/* ------------------------------------------------------------------
   .rows / .row — used on Help out, Merchandise and Success stories.
   These classes were in the markup but had no CSS at all, so the items
   stacked flush against each other with no gap and the text ran the
   full 1144px measure. Same card treatment as .orgs on the sponsors
   page, so the three pages match the rest of the site.
   ------------------------------------------------------------------ */
.rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:22px}
.row{
  background:var(--card);border-radius:var(--r-card);padding:26px 28px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;
}
.row h3{font-size:1.18rem;margin:0 0 9px}
.row p{font-size:.95rem;color:var(--ink-2);margin:0 0 16px;line-height:1.6}
/* the link or note sits on the bottom edge so cards line up */
.row .go,.row > span:last-child{margin-top:auto}
.row > span:last-child{font-size:.9rem;color:var(--ink-3)}
@media(max-width:560px){ .row{padding:22px 24px} .rows{gap:16px} }

/* ------------------------------------------------------------------
   Event pop-up.

   Jude asked for "a pop up when folks pull up the website". It shows the
   single soonest event from the calendar, so there is nothing extra to
   maintain: when the calendar has no upcoming event the pop-up never
   appears at all.

   It is deliberately a corner card rather than a full-screen interstitial.
   A modal over the hero on a first visit is the fastest way to lose a
   visitor, and Google treats full-page interstitials on mobile as a ranking
   problem. This sits out of the way, animates in after a beat, and
   remembers a dismissal for 14 days.
   ------------------------------------------------------------------ */
.evpop{
  position:fixed;z-index:65;right:20px;bottom:20px;width:min(354px,calc(100vw - 40px));
  background:var(--card,#fff);border:1px solid var(--line,#E3D6C6);
  border-radius:16px;box-shadow:0 18px 44px rgba(46,36,32,.22);
  overflow:hidden;opacity:0;transform:translateY(14px);
  transition:opacity .34s ease,transform .34s ease;
}
.evpop.in{opacity:1;transform:none}
.evpop img{display:block;width:100%;height:132px;object-fit:cover}
.evpop .bd{padding:17px 19px 19px}
.evpop .kicker{
  display:block;font-size:.7rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--rust,#A4502A);margin-bottom:7px;
}
.evpop h3{font-size:1.12rem;line-height:1.28;margin:0 0 5px}
.evpop .when{margin:0;font-size:.9rem;color:var(--ink-2,#6B5C52)}
.evpop .where{margin:2px 0 0;font-size:.86rem;color:var(--ink-3,#8A7B70)}
.evpop .go{
  display:inline-flex;align-items:center;min-height:42px;margin-top:14px;
  background:var(--brown,#5A2E1B);color:#fff;font-weight:600;font-size:.92rem;
  text-decoration:none;border-radius:999px;padding:0 20px;
}
.evpop .go:hover{background:var(--brown-d,#44210f);text-decoration:none}
.evpop .x{
  position:absolute;top:10px;right:10px;width:32px;height:32px;border:0;
  border-radius:50%;cursor:pointer;background:rgba(255,255,255,.92);
  color:var(--ink,#2E2420);font-size:1.15rem;line-height:1;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.evpop .x:hover{background:#fff}
@media(max-width:560px){
  .evpop{right:12px;left:12px;bottom:12px;width:auto}
  .evpop img{height:112px}
}
@media(prefers-reduced-motion:reduce){
  .evpop{transition:none}
}

/* ==========================================================================
   /adopt control bar
   --------------------------------------------------------------------------
   .controls, .searchwrap, .filters, .count and .sort were all in the markup
   with no CSS behind them, so each one fell back to default block flow: the
   search floated off to the left, the species buttons sat centred, and the
   match count and sort stacked underneath in a ragged column with a lot of
   dead space between them.

   One row, one baseline: search on the left, species as a single segmented
   control, count and sort pushed right. It collapses to three tidy rows on a
   phone rather than wrapping into the same mess at a smaller size.
   ========================================================================== */
/* ---- the adopt toolbar ------------------------------------------------
   Was: a 330px search box on the left, the filter group shoved right with
   margin-left:auto, and a 375px hole between them. And it scrolled away,
   so filtering from halfway down the page left you with no controls.

   Now: full-bleed sticky bar under the site header, three groups on a
   1fr/auto/1fr grid so the segmented control is genuinely centred and
   neither side can open a gap. */
.controls{
  position:sticky;top:var(--hdr,74px);z-index:40;
  max-width:none;margin:0 0 30px;
  padding-block:13px;
  padding-inline:max(24px, calc((100% - var(--w)) / 2));
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:14px 20px;
  background:color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter:blur(14px) saturate(1.5);
          backdrop-filter:blur(14px) saturate(1.5);
  border-bottom:1px solid var(--line-2);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)){
  .controls{background:var(--paper)}
}
.controls .searchwrap{justify-self:start}
.controls .filters{justify-self:center}
.controls .meta{justify-self:end}

/* search ------------------------------------------------------------------ */
.searchwrap{position:relative;flex:0 1 330px;width:100%;max-width:330px;min-width:0}
.searchwrap::before{
  content:"";position:absolute;left:17px;top:50%;width:15px;height:15px;
  margin-top:-7px;pointer-events:none;opacity:.5;
  background:currentColor;color:var(--ink-2);
  -webkit-mask:var(--ico-search) center/contain no-repeat;
          mask:var(--ico-search) center/contain no-repeat;
}
:root{
  --ico-search:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
}
#search{
  width:100%;font:inherit;font-size:.98rem;color:var(--ink);
  background:var(--card);border:1px solid var(--line-2);border-radius:var(--r-pill);
  padding:12px 18px 12px 42px;min-height:46px;
  transition:border-color .16s,box-shadow .16s;
}

/* the three species buttons share a border, so no gap between them */
.filters{display:flex;align-items:center;gap:0}
.filters button{
  font:inherit;font-weight:600;font-size:.95rem;cursor:pointer;color:var(--ink-2);
  background:var(--card);border:1px solid var(--line-2);
  padding:11px 22px;min-height:46px;
  margin-left:-1px;   /* collapse the shared border into one line */
  transition:background-color .16s,color .16s,border-color .16s;
}
.filters button:first-of-type{margin-left:0;border-radius:var(--r-pill) 0 0 var(--r-pill)}
.filters button:nth-of-type(3){border-radius:0 var(--r-pill) var(--r-pill) 0}
.filters button:hover{color:var(--brown);background:var(--tint)}
.filters button:focus-visible{outline:2.5px solid var(--rust);outline-offset:2px;z-index:1;position:relative}
.filters button.active{
  background:var(--amber);border-color:var(--amber-d);color:var(--brown-d);
  position:relative;z-index:1;
}

/* count + sort cluster. The count is fixed-width and tabular so that
   86 -> 56 -> 30 matches cannot nudge the Sort control sideways. */
.meta{display:flex;align-items:center;gap:18px;min-width:0}

/* count and sort ----------------------------------------------------------- */
.count{color:var(--ink-2);font-size:.95rem;white-space:nowrap;
  font-variant-numeric:tabular-nums;min-width:10ch;text-align:right}
.count:empty{display:none}
.sort{
  display:inline-flex;align-items:center;gap:9px;
  color:var(--ink-2);font-size:.95rem;white-space:nowrap;
}
#sort{
  font:inherit;font-size:.95rem;color:var(--ink);cursor:pointer;
  background:var(--card);border:1px solid var(--line-2);border-radius:var(--r-pill);
  padding:11px 38px 11px 17px;min-height:48px;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5048' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:15px;
}
#sort:focus{outline:none;border-color:var(--rust);box-shadow:0 0 0 3px rgba(194,86,31,.14)}

@media(max-width:860px){
  .controls{gap:14px;padding:0 20px}
  .searchwrap{flex:1 1 100%;max-width:none}
  .filters{margin-left:0;width:100%;justify-content:flex-start}
  .filters .count{order:3;flex:1 0 100%;margin-top:2px}
  .filters .sort{order:2;margin-left:auto}
  .filters .count{margin-left:0}
}
@media(max-width:430px){
  .filters button{flex:1;padding:11px 10px;font-size:.9rem;text-align:center;justify-content:center}
  .filters .sort{flex:1 0 100%;margin-left:0;justify-content:space-between}
  #sort{flex:1}
}

/* ==========================================================================
   Home hero carousel
   --------------------------------------------------------------------------
   The slides are stacked and cross-faded rather than scrolled sideways. The
   banner already has the arc cut along its bottom edge, and a horizontal
   track fights that shape every time it moves; a fade leaves the silhouette
   alone.

   Only the visible slide is painted, so a four-slide hero costs the same to
   composite as a one-slide hero.
   ========================================================================== */
.hero-car .hero-s{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 34%;
  opacity:0;transition:opacity .7s ease;
}
.hero-car .hero-s.on{opacity:1}

.hero-dots{
  position:absolute;left:0;right:0;bottom:clamp(16px,3.4vw,30px);
  display:flex;justify-content:center;gap:9px;z-index:2;
}
.hero-dot{
  width:10px;height:10px;padding:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.46);border:1px solid rgba(0,0,0,.18);
  transition:background-color .2s,transform .2s;
}
.hero-dot:hover{background:rgba(255,255,255,.78)}
.hero-dot.on{background:#fff;transform:scale(1.25)}
.hero-dot:focus-visible{outline:2.5px solid #fff;outline-offset:3px}

/* The dots sit over the photo's lower third, which on a pale picture is where
   they vanish. A soft scrim under them costs nothing and keeps them legible
   whatever Jude uploads. */
.hero-car::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:34%;
  background:linear-gradient(to top,rgba(0,0,0,.28),transparent);
  pointer-events:none;z-index:1;
}

@media(prefers-reduced-motion:reduce){
  .hero-car .hero-s{transition:none}
}
@media(max-width:560px){
  .hero-dot{width:9px;height:9px}
}

/* Hero video: poster plus a play button. The iframe only exists after a
   click, so the home page costs nothing extra to people who never watch. */
.hero-vid{position:relative}
.hero-play{
  position:absolute;inset:0;width:100%;height:100%;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  background:rgba(0,0,0,.22);border:0;cursor:pointer;color:#fff;
  transition:background-color .2s;
}
.hero-play:hover{background:rgba(0,0,0,.34)}
.hero-play:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.hero-play .tri{
  width:clamp(62px,7vw,84px);aspect-ratio:1;border-radius:50%;
  background:rgba(255,255,255,.94);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 22px rgba(0,0,0,.3);transition:transform .2s;
}
.hero-play .tri::after{
  content:"";border-style:solid;border-width:13px 0 13px 21px;
  border-color:transparent transparent transparent var(--brown);
  margin-left:5px;
}
.hero-play:hover .tri{transform:scale(1.06)}
.hero-play .lbl{
  font-family:var(--display);font-weight:700;font-size:clamp(1rem,2.1vw,1.4rem);
  text-shadow:0 2px 12px rgba(0,0,0,.5);max-width:22ch;text-align:center;line-height:1.25;
}
.hero-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(prefers-reduced-motion:reduce){ .hero-play .tri{transition:none} }



/* ==========================================================================
   Social proof band
   --------------------------------------------------------------------------
   This replaced Meta's Page Plugin. The plugin rendered its header and then a
   blank white rectangle where the timeline should be: Meta has been degrading
   that tab, and it comes back empty wherever third-party cookies are blocked,
   which is Safari and Firefox by default. A broken-looking void on the home
   page is worse than no widget.

   What was actually persuasive in the plugin was the follower count, so that
   is what this keeps. It is plain markup, so it loads instantly, sets no
   cookies on anyone, and the number is editable from /admin/pages like any
   other words on the site.
   ========================================================================== */
.social .soc-card{
  max-width:720px;margin:0 auto;text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);
  padding:clamp(30px,5vw,52px) clamp(22px,4vw,48px);box-shadow:var(--shadow);
}
.social .eyebrow{
  display:block;font-size:max(.75rem,12px);font-weight:700;letter-spacing:.11em;
  text-transform:uppercase;color:var(--rust);margin-bottom:14px;
}
.social .soc-n{margin:0;line-height:1}
.social .soc-n b{
  font-family:var(--display);font-weight:700;color:var(--brown);
  font-size:clamp(3rem,8.5vw,4.6rem);letter-spacing:-.02em;
}
.social .soc-l{margin:10px 0 0;font-size:1.05rem;color:var(--ink)}
.social .soc-p{
  margin:16px auto 0;max-width:46ch;color:var(--ink-2);font-size:.98rem;
}
.social .soc-links{
  display:flex;justify-content:center;gap:11px;flex-wrap:wrap;margin-top:28px;
}
.social .soc-links a{
  display:inline-flex;align-items:center;gap:9px;min-height:46px;
  padding:11px 22px;border-radius:999px;font-weight:600;font-size:.95rem;
  color:var(--ink);background:var(--paper);border:1px solid var(--line-2);
  transition:background-color .18s,border-color .18s,color .18s,transform .18s;
}
.social .soc-links a::before{
  content:"";width:9px;height:9px;border-radius:50%;flex:none;background:var(--dot);
}
.social .soc-links a:hover{
  background:var(--dot);border-color:var(--dot);color:var(--on-dot);transform:translateY(-2px);
}
.social .soc-links a:hover::before{background:var(--on-dot)}
.social .soc-links .soc-fb{--dot:#1159C9;--on-dot:#fff}
.social .soc-links .soc-ig{--dot:#C32AA3;--on-dot:#fff}
.social .soc-links .soc-tt{--dot:#0FBEB8;--on-dot:#fff}

@media(max-width:480px){
  .social .soc-links a{flex:1 1 auto;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .social .soc-links a:hover{transform:none}
}

/* ==========================================================================
   The application form (/apply)
   --------------------------------------------------------------------------
   Deliberately plain and wide-spaced. The people filling this in are often on
   a phone, often older, and have already been defeated once by the version
   with the CAPTCHA. Big targets, one question per line, nothing clever.
   ========================================================================== */
.ap-main{padding:clamp(28px,5vw,56px) 0 80px}
.ap-wrap{max-width:660px}
.ap-facts{list-style:none;margin:26px 0;padding:0;display:flex;flex-direction:column;gap:12px}
.ap-facts li{
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  padding:14px 18px;color:var(--ink-2);font-size:.98rem;
}
.ap-facts b{color:var(--ink)}
.ap-fee{color:var(--ink-2);font-size:.95rem;margin:0 0 24px}
.ap-resume{margin-top:18px;color:var(--ink-2);font-size:.95rem}
.linky{
  background:none;border:0;padding:0;font:inherit;color:var(--rust);
  font-weight:600;cursor:pointer;text-decoration:underline;
}

/* progress */
.ap-bar{margin-bottom:26px}
.ap-prog{height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.ap-prog span{display:block;height:100%;background:var(--amber);border-radius:999px;
  transition:width .3s ease;width:0}
.ap-step{margin:9px 0 0;font-size:.85rem;color:var(--ink-3);
  font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.ap-blurb{color:var(--ink-2);margin:6px 0 26px}

/* a field */
.ap-f{margin:0 0 22px}
.ap-f label{
  display:block;font-weight:600;color:var(--ink);margin-bottom:6px;font-size:1rem;
  line-height:1.4;
}
.ap-req{
  font-weight:600;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--rust);margin-left:6px;
}
.ap-help{display:block;color:var(--ink-2);font-size:.9rem;margin:-2px 0 8px;line-height:1.45}
.ap-feehelp{background:var(--tint);border-radius:8px;padding:10px 12px;margin-top:8px}
.ap-f input,.ap-f select,.ap-f textarea{
  width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--card);
  border:1.5px solid var(--line-2);border-radius:12px;padding:13px 15px;min-height:52px;
}
.ap-f textarea{min-height:96px;line-height:1.5;resize:vertical}
.ap-f input:focus,.ap-f select:focus,.ap-f textarea:focus{
  outline:none;border-color:var(--rust);box-shadow:0 0 0 3px rgba(194,86,31,.14);
}
.ap-f.bad input,.ap-f.bad select,.ap-f.bad textarea{border-color:#9C2C20}
.ap-fe{display:block;color:#9C2C20;font-size:.88rem;margin-top:6px;font-weight:600}
.ap-fe:empty{display:none}

/* yes / no as two big targets rather than a dropdown */
.ap-yn{display:flex;gap:10px;flex-wrap:wrap}
.ap-chip{
  flex:1 1 120px;display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:12px 18px;border:1.5px solid var(--line-2);border-radius:12px;
  background:var(--card);cursor:pointer;font-weight:600;color:var(--ink-2);
}
.ap-chip input{position:absolute;opacity:0;width:0;height:0}
.ap-chip.on{background:var(--amber);border-color:var(--amber-d);color:var(--brown-d)}
.ap-chip:focus-within{box-shadow:0 0 0 3px rgba(194,86,31,.18)}

.ap-err{color:#9C2C20;font-weight:600;min-height:1.4em;margin:0 0 10px}
.ap-nav{display:flex;gap:12px;margin-top:30px}
.ap-nav .btn{flex:1}
.ap-nav .btn[hidden]{display:none}
.ap-saved{margin:12px 0 0;font-size:.85rem;color:var(--ink-3);min-height:1.2em}
.ap-ref{font-size:1.15rem}
.ap-ref b{font-family:var(--display);font-size:1.6rem;letter-spacing:.06em;color:var(--brown)}

/* the honeypot: off-screen rather than display:none, which some bots skip */
.ap-pot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

@media(max-width:560px){
  .ap-nav{flex-direction:column-reverse}
  .ap-nav .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .ap-prog span{transition:none}
}

/* ==========================================================================
   Touch targets and small text
   --------------------------------------------------------------------------
   An audit of all 23 pages at 375px found no overflow, no broken images and
   no stranded gaps, but one problem on every single page: the footer links
   were 19px tall. That is less than half the 44px a thumb needs, in the one
   part of the site people reach for when they are already lost.

   Fixed by giving the links real padding rather than shrinking the gaps, so
   the hit area grows instead of the text. The footer gets taller on a phone,
   which is the correct trade: a footer nobody can tap is not worth the space
   it saves.
   ========================================================================== */
@media(max-width:700px){
  .ft li{margin-bottom:0}
  .ft-top ul a{
    display:block;padding:11px 0;min-height:44px;
    display:flex;align-items:center;
  }
  /* contact details are links too: phone, email, the social pair */
  .ft-top li{min-height:0}
}

/* Inline "→" links double as the only call to action in several sections, so
   on a phone they need to be tappable as well as readable. They stay inline
   inside running prose, where a 44px block would look absurd. */
@media(max-width:700px){
  .s .go,
  .text .go,
  .pagehead .go{
    min-height:44px;
    padding-block:8px;
  }
}

/* The contact page lists the phone number, the email and the two social
   accounts as bare links in plain paragraphs, 20px tall. These are the
   details someone reaches for when they have given up on the website, so
   they are the last thing that should be hard to hit. Scoped to the contact
   column rather than every paragraph link on the site, which would bloat
   line spacing inside running prose. */
@media(max-width:700px){
  .cx p a{display:inline-flex;align-items:center;min-height:44px;padding-block:6px}
}

/* The "Meet <name>" button on each animal card measured 37px. Three pixels
   short is still short, and this is the main action on the busiest page. */
.meet{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

/* Nothing on the site should be under 12px. The uppercase letter-spaced
   labels were 11 to 11.8px, which is small enough to be a squint on a phone
   and is already the hardest kind of text to read. */
.eyebrow,.ft-soc b,.pr-item,.ap-req,.rm-tag,.res-flag,.soc-n,
.tag,.season,.src,.ap-step{font-size:max(0.75rem,12px)}

/* A heading level is skipped on nine pages: an h1 followed straight by the
   h3 of a card, with no h2 in between. That breaks the outline a screen
   reader builds. These headings name the group and are not shown. */
.vh{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

/* The volunteer checklist. Thirteen yes/no radio pairs is the wrong shape for
   "tick all that apply": a single box per position reads as a list you scan,
   and an unticked box already means no upstream.

   Selectors are deliberately .ap-f-prefixed. The form's own `.ap-f label`
   sets display:block and `.ap-f input` sets a full-width text-input size,
   both of which outrank or tie a bare `.ap-pick` rule, so the first version
   of this rendered the box on one line and its label on the next. */
.ap-f .ap-pick{display:flex;gap:12px;align-items:flex-start;cursor:pointer;
  border:1px solid var(--line);border-radius:11px;padding:13px 15px;margin:0;
  font-size:1rem;color:var(--ink);letter-spacing:normal;text-transform:none;
  background:var(--paper-2);transition:border-color .12s,background .12s}
.ap-f .ap-pick:hover{border-color:var(--brown);background:#fff}
.ap-f .ap-pick.on{border-color:var(--brown);background:#fff;
  box-shadow:inset 0 0 0 1px var(--brown)}
.ap-f .ap-pick input[type=checkbox]{width:20px;height:20px;min-height:0;
  flex:0 0 20px;margin:2px 0 0;padding:0;border-radius:4px;
  accent-color:var(--brown);box-shadow:none}
.ap-f .ap-pick span{font-weight:600;line-height:1.4;flex:1;min-width:0}
.ap-f .ap-pick + .ap-help{display:block;margin:7px 0 0 47px}
@media(max-width:560px){ .ap-f .ap-pick + .ap-help{margin-left:0} }

/* Pointer from the LCAR farm page to the farm's own applications. */
.ap-xlink{margin:16px 0 0;color:var(--ink-2);font-size:.95rem;line-height:1.6}
.ap-xlink a{color:var(--rust);font-weight:600}

/* ===================================================================
   SECONDARY PAGE HEADERS

   Every page that is not the home page opened the same way: a centred
   headline and a paragraph on flat cream, with nothing else on screen
   until you scrolled. Structurally fine, which is why the earlier audits
   passed it, but it reads as an unstyled document rather than a designed
   page - and on the thinner pages that is the whole first screen.

   So the header becomes a band: a warm tint falling away to paper, a soft
   glow behind the title, and a short gradient rule under it. No markup
   change, which is what makes it worth doing - it lifts twenty pages at
   once and cannot drift out of sync.
   =================================================================== */
.pagehead,
.adopt-top{
  position:relative;
  text-align:center;
  padding:clamp(52px,7vw,88px) 24px clamp(38px,5vw,62px);
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(233,169,60,.18), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%);
  border-radius:0 0 var(--r-card) var(--r-card);
  overflow:hidden;
}

/* A hairline at the very top of the band so it reads as a deliberate
   surface rather than a colour that failed to load. */
.pagehead::before,
.adopt-top::before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--line-2),transparent);
}

.pagehead h1,
.adopt-top h1{
  font-size:clamp(2.1rem,4.6vw,3.3rem);
  line-height:1.08;
  max-width:18ch;
  margin:0 auto;
}

/* The accent rule. Small, but it is the thing that stops the title from
   floating in space, and it carries the brand colours onto pages that
   otherwise have none. */
.pagehead h1::after,
.adopt-top h1::after{
  content:"";display:block;width:62px;height:3px;border-radius:2px;
  margin:clamp(18px,2.4vw,24px) auto 0;
  background:linear-gradient(90deg,var(--amber),var(--rust));
}

.pagehead p,
.adopt-top .count-line{
  margin:clamp(16px,2.2vw,22px) auto 0;
  max-width:58ch;
  font-size:clamp(1.02rem,1.5vw,1.14rem);
  color:var(--ink-2);
  line-height:1.65;
}

.pagehead .btns,
.adopt-top .btns{margin-top:clamp(24px,3vw,32px)}

/* The home page already has a photograph doing this job. A tint under it
   would be a second competing surface, so the band is switched off when a
   hero banner sits directly above. Sibling selector rather than :has(),
   which the rest of this sheet also avoids. */
.pagetop .banner + .wrap .pagehead{
  background:none;
  border-radius:0;
  padding-top:clamp(34px,4.4vw,52px);
}
.pagetop .banner + .wrap .pagehead::before{display:none}

@media(max-width:560px){
  .pagehead,.adopt-top{padding-left:18px;padding-right:18px}
  .pagehead h1,.adopt-top h1{max-width:none}
}

/* ---------------------------------------------------------- offer cards
   Was two columns of text separated by a horizontal rule, which is how a
   Word document looks, not a page. Each offer is now a card that states
   the sponsor, whether it is running, what you get and what to do. */
.offers{display:grid;gap:clamp(18px,2.4vw,26px);max-width:860px;margin:0 auto}
.offer{
  position:relative;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-card);padding:clamp(24px,3.4vw,38px);
  box-shadow:var(--shadow);overflow:hidden;
}
/* A colour stripe down the edge, so a live offer is findable at a glance. */
.offer-live::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;
  background:linear-gradient(180deg,var(--amber),var(--rust));
}
.offer-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.offer-head h2{font-size:clamp(1.35rem,2.6vw,1.8rem);margin:0}
.offer-tag{
  display:inline-flex;align-items:center;min-height:26px;padding:3px 13px;
  border-radius:var(--r-pill);background:var(--tint);color:var(--brown);
  font-size:max(.75rem,12px);font-weight:700;letter-spacing:.09em;text-transform:uppercase;
}
.offer-live .offer-tag{background:var(--amber);color:var(--brown-d)}
.offer-body{margin:0;color:var(--ink-2);line-height:1.7;font-size:1.04rem}
/* The donation figure is the reason anyone reads this card. */
.offer-body strong{
  color:var(--brown);font-weight:700;
  background:linear-gradient(180deg,transparent 62%,rgba(233,169,60,.42) 62%);
  padding:0 2px;
}
.offer-go{margin:22px 0 0}
.offer-quiet{background:var(--paper-2,var(--tint));box-shadow:none}
.offer-quiet .offer-go{margin-top:12px}
@media(max-width:560px){ .offer-head h2{font-size:1.3rem} }

/* ================================================================ documents
   The guidelines pages. Thirteen sections of plain text with no way in and
   no way to navigate; the longest is 4,600px. Now: a pulled-out intro, a
   contents list that follows you down the page, and numbered sections with
   room to breathe.
   ======================================================================= */
.doc-lede{
  max-width:var(--w-text);margin:0 0 clamp(34px,4.6vw,52px);
  padding:clamp(20px,2.8vw,28px) clamp(22px,3vw,32px);
  background:var(--tint);border-left:4px solid var(--amber);
  border-radius:0 var(--r-img) var(--r-img) 0;
}
.doc-lede p{margin:0;font-size:clamp(1.06rem,1.7vw,1.2rem);line-height:1.6;color:var(--ink)}

.doc{display:grid;grid-template-columns:minmax(190px,220px) minmax(0,1fr);
  gap:clamp(28px,4.5vw,64px);align-items:start}

/* Contents. Sticky on desktop; on a phone it collapses to a plain list at
   the top, which is still better than nothing on a page this long. */
.doc-toc{position:sticky;top:calc(var(--hdh) + 20px)}
.doc-toc-t{
  margin:0 0 12px;font-size:max(.75rem,12px);font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);
}
.doc-toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.doc-toc li{margin:0}
.doc-toc a{
  display:flex;gap:10px;align-items:baseline;padding:9px 0 9px 16px;
  margin-left:-2px;border-left:2px solid transparent;
  color:var(--ink-2);font-size:.95rem;line-height:1.35;text-decoration:none;
}
.doc-toc a span{color:var(--ink-3);font-size:max(.75rem,12px);font-weight:700;letter-spacing:.04em}
.doc-toc a:hover{color:var(--brown);border-left-color:var(--amber);background:var(--tint)}

.doc-body{min-width:0}
.doc-sec{position:relative;padding:0 0 clamp(30px,4vw,44px);margin:0 0 clamp(30px,4vw,44px);
  border-bottom:1px solid var(--line)}
.doc-sec:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.doc-n{
  display:block;font-family:var(--display);font-size:.9rem;font-weight:700;
  letter-spacing:.1em;color:var(--rust);margin-bottom:6px;
}
.doc-sec h2{font-size:clamp(1.3rem,2.5vw,1.72rem);margin:0 0 14px;scroll-margin-top:calc(var(--hdh) + 24px)}
.doc-sec p{color:var(--ink-2);line-height:1.75;margin:0 0 14px}
.doc-sec p:last-child{margin-bottom:0}
.doc-sec .list{margin:0;padding-left:0;list-style:none}
.doc-sec .list li{
  position:relative;padding-left:28px;margin-bottom:12px;
  color:var(--ink-2);line-height:1.7;
}
.doc-sec .list li::before{
  content:"";position:absolute;left:4px;top:.62em;width:7px;height:7px;
  border-radius:50%;background:var(--amber);
}

@media(max-width:860px){
  .doc{grid-template-columns:1fr;gap:26px}
  .doc-toc{position:static;background:var(--card);border:1px solid var(--line);
    border-radius:var(--r-img);padding:18px 20px}
  .doc-toc ol{border-left:0}
  .doc-toc a{padding:7px 0;border-left:0}
}

/* ------------------------------------------------- press and people cards
   Both were flat white rectangles of text. They are the right structure,
   so this is finish rather than rebuild: a border so the card has an edge,
   an outlet badge, an arrow that moves on hover, and a role that reads as
   a label instead of a stray line. No markup change on either. */
.press a{
  position:relative;border:1px solid var(--line);
  padding-right:clamp(44px,6vw,62px);
}
.press a::after{
  content:"\2192";position:absolute;right:26px;top:50%;transform:translateY(-50%);
  color:var(--rust);font-size:1.2rem;opacity:.5;transition:transform .2s,opacity .2s;
}
.press a:hover{border-color:var(--line-2)}
.press a:hover::after{opacity:1;transform:translateY(-50%) translateX(5px)}
.press .src{
  display:inline-flex;align-items:center;min-height:24px;
  padding:2px 11px;margin-bottom:10px;border-radius:var(--r-pill);
  background:var(--tint);color:var(--brown);
  font-size:max(.72rem,12px);font-weight:700;letter-spacing:.07em;text-transform:uppercase;
}
.press h3{margin-top:0;line-height:1.3}
.press p{margin:0}

.people .person{border:1px solid var(--line)}
.p-role{
  display:inline-flex;align-items:center;min-height:24px;
  padding:2px 11px;margin:0 0 12px;border-radius:var(--r-pill);
  background:var(--brown);color:#fff;
  font-size:max(.72rem,12px);font-weight:700;letter-spacing:.07em;text-transform:uppercase;
}

/* =============================================================== /apply
   The application intro was the one page that never got the new header,
   so it opened with a left-aligned headline the size of a poster and three
   full-width white bars. It read as unfinished next to everything else.

   It is now centred on the same band as every other page, the facts are a
   tight checklist rather than three slabs, and the fee is a callout rather
   than a stray grey line.
   ==================================================================== */
.ap-main{padding:0 0 clamp(56px,7vw,88px)}
.ap-wrap{max-width:720px}

#ap-intro{
  position:relative;text-align:center;
  margin:0 0 clamp(26px,4vw,40px);
  padding:clamp(40px,6vw,66px) clamp(20px,4vw,40px) clamp(32px,4.4vw,46px);
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(233,169,60,.18), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%);
  border-radius:0 0 var(--r-card) var(--r-card);
}
.ap-eyebrow{
  margin:0 0 14px;font-size:max(.75rem,12px);font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--rust);
}
#ap-title{
  font-size:clamp(1.9rem,4.2vw,2.9rem);line-height:1.08;
  margin:0 auto;max-width:17ch;text-wrap:balance;
}
#ap-title::after{
  content:"";display:block;width:58px;height:3px;border-radius:2px;
  margin:20px auto 0;background:linear-gradient(90deg,var(--amber),var(--rust));
}
#ap-lede{
  margin:18px auto 0;max-width:52ch;color:var(--ink-2);
  font-size:clamp(1rem,1.5vw,1.1rem);line-height:1.6;
}

/* Three facts, as a checklist. The tick is the point: each line is a
   reassurance, and a bulleted slab did not read that way. */
.ap-facts{
  list-style:none;margin:clamp(24px,3.4vw,32px) auto 0;padding:0;
  display:grid;gap:10px;max-width:520px;text-align:left;
}
.ap-facts li{
  position:relative;background:transparent;border:0;border-radius:0;
  padding:0 0 0 32px;color:var(--ink-2);font-size:1rem;line-height:1.55;
}
.ap-facts li::before{
  content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;
  background:var(--amber) no-repeat center/11px 11px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.6l4 4L14 3.4' fill='none' stroke='%233E1E10' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ap-facts b{color:var(--ink);font-weight:700}

.ap-fee{
  margin:clamp(22px,3vw,28px) auto 0;max-width:520px;
  padding:13px 18px;border-radius:var(--r-img);
  background:var(--card);border:1px solid var(--line);
  color:var(--ink-2);font-size:.95rem;line-height:1.5;text-align:left;
}
.ap-fee:empty{display:none}

#ap-intro .btn{margin-top:clamp(24px,3.2vw,32px);font-size:1.05rem;padding:15px 34px}
.ap-resume{margin-top:16px}

@media(max-width:560px){
  .ap-facts{max-width:none}
  #ap-title{max-width:none}
}

/* ------------------------------------------------------- document pages
   The foster guidelines are maintained as a Word document and handed to
   every new foster. Retyping them into the page guaranteed two versions
   that drift, so the page now serves the real file and the file itself is
   replaceable from /admin. */
.docfile{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);
  padding:clamp(24px,3.4vw,36px);box-shadow:var(--shadow);
}
.docfile-head{display:flex;gap:18px;align-items:center;margin-bottom:16px}
.docfile-ico{
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:54px;height:54px;border-radius:14px;
  background:linear-gradient(160deg,var(--rust),var(--brown));color:#fff;
  font-size:max(.78rem,12px);font-weight:700;letter-spacing:.08em;
}
.docfile-head h2{margin:0;font-size:clamp(1.3rem,2.5vw,1.65rem)}
.docfile-meta{margin:4px 0 0;color:var(--ink-3);font-size:max(.8rem,12px);
  letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.docfile-note{margin:0 0 22px;color:var(--ink-2);line-height:1.7}
.docfile .btns{margin:0;display:flex;gap:10px;flex-wrap:wrap}

.docview{display:none}
@media(min-width:861px){
  .docview{
    display:block;margin-top:clamp(24px,3vw,34px);
    border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;
    background:var(--tint);box-shadow:var(--shadow);
  }
  .docview object{display:block;width:100%;height:min(1100px,88vh);border:0}
}
.docview-fallback{padding:28px;margin:0;color:var(--ink-2)}

.docfile-next{
  margin-top:clamp(30px,4vw,44px);padding-top:clamp(26px,3.4vw,36px);
  border-top:1px solid var(--line);
}
.docfile-next h2{font-size:clamp(1.25rem,2.4vw,1.55rem);margin:0 0 8px}
.docfile-next p{color:var(--ink-2);line-height:1.7;margin:0 0 18px;max-width:52ch}

/* ==================================================================
   SPLIT HERO

   The alternative to the full-width band: the slideshow sits beside the
   headline rather than above it. Worth having as an option rather than a
   replacement - a portrait photo survives it far better than a 3.4:1
   letterbox, and the Adopt buttons land above the fold instead of below a
   band that eats the first screen.

   Below 900px it falls back to the stacked layout, because a half-width
   photo next to half-width text on a phone is two things too small to
   read rather than one of each.
   ================================================================== */
@media(min-width:900px){
  .pagetop.hero-split{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);
    align-items:center;
    gap:clamp(34px,4.2vw,68px);

    /* Full-bleed tint, content held to the page width. Padding does the
       centring rather than max-width, so the background still reaches
       both edges of the screen. */
    padding-block:clamp(34px,4.4vw,64px) clamp(40px,5vw,72px);
    padding-inline:max(28px, calc((100vw - var(--w)) / 2));
    background:
      radial-gradient(70% 120% at 18% 0%, rgba(233,169,60,.16), transparent 60%),
      linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%);
  }

  /* DOM order is picture then text; the text reads first, so it is moved
     to the left column with order rather than by reordering the markup,
     which would put the photo before the headline for a screen reader. */
  .pagetop.hero-split > .wrap{order:1;max-width:none;padding:0}
  .pagetop.hero-split > .banner{
    order:2;
    aspect-ratio:4/3;
    border-radius:var(--r-card);
    box-shadow:var(--shadow-h);
  }
  .pagetop.hero-split .hero-car::after{border-radius:0 0 var(--r-card) var(--r-card)}

  /* The headline block stops being a centred band and becomes a column. */
  .pagetop.hero-split .pagehead{
    text-align:left;background:none;border-radius:0;padding:0;
  }
  .pagetop.hero-split .pagehead::before{display:none}
  .pagetop.hero-split .pagehead h1{
    margin:0;max-width:15ch;font-size:clamp(2.4rem,4.4vw,3.6rem);
  }
  .pagetop.hero-split .pagehead h1::after{margin-left:0;margin-right:0}
  .pagetop.hero-split .pagehead p{margin-left:0;margin-right:0;max-width:46ch}
  .pagetop.hero-split .pagehead .btns,
  .pagetop.hero-split .pagehead .btns.center{justify-content:flex-start}

  /* The dots sat over a full-bleed band before; inside a rounded card
     they need to come in off the corner. */
  .pagetop.hero-split .hero-dots{bottom:16px}
}

/* ===================================================================
   PHOTO BAND

   A strip of real animals from the adoption feed, used to break up the
   text-heavy pages. Full-bleed so it reads as photography rather than
   as another card, and every face is a link to that animal.
   =================================================================== */
.pband{
  position:relative;
  margin:clamp(24px,3vw,40px) 0;
  padding:0;
  background:var(--brown-d);
  overflow:hidden;
  isolation:isolate;
}
.pband[hidden]{display:none}

/* Portrait tiles. The source photographs are nearly all portrait, so a
   square tile was cropping the top of every head off. */
.pband-track{
  display:flex;
  width:max-content;
  animation:pband-slide var(--pband-dur,72s) linear infinite;
  will-change:transform;
}
/* Slides exactly one copy of the list, so the restart is invisible. */
@keyframes pband-slide{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.pband:hover .pband-track,
.pband:focus-within .pband-track{animation-play-state:paused}

.pband-i{
  position:relative;display:block;overflow:hidden;flex:0 0 auto;
  width:clamp(180px,17vw,250px);
  aspect-ratio:4/5;background:var(--brown-d);
  text-decoration:none;
}
.pband-i img{
  width:100%;height:100%;object-fit:cover;object-position:50% 30%;
  display:block;transition:transform .6s cubic-bezier(.2,.7,.3,1), filter .35s ease;
}
.pband-i:hover img,
.pband-i:focus-visible img{transform:scale(1.05)}

/* A hairline between tiles, drawn rather than gapped, so the strip reads
   as one piece of photography instead of six separate pictures. */
.pband-i + .pband-i::before{
  content:"";position:absolute;inset:0 auto 0 0;width:1px;z-index:2;
  background:rgba(255,255,255,.14);
}

/* The name sits at the TOP of the tile - the bottom belongs to the
   caption scrim. On a pointer device it appears on hover; on touch
   there is no hover to discover it with, so it is always there. */
.pband-n{
  position:absolute;left:0;right:0;top:0;z-index:2;
  padding:11px 14px 24px;
  background:linear-gradient(180deg,rgba(42,33,27,.78),rgba(42,33,27,0));
  color:#fff;font-weight:700;font-size:max(.8rem,12px);
  letter-spacing:.02em;
}
@media(hover:hover){
  .pband-n{opacity:0;transform:translateY(-6px);transition:opacity .25s,transform .25s}
  .pband-i:hover .pband-n,
  .pband-i:focus-visible .pband-n{opacity:1;transform:none}
}
.pband-i:focus-visible{outline:3px solid var(--amber);outline-offset:-3px}

/* The caption used to be a separate brown slab bolted under the photos,
   constrained to the content width while the photos ran full bleed, so
   the two lined up with nothing. It now sits ON the photography, over a
   scrim, aligned to the content column like everything else. */
.pband::after{
  content:"";position:absolute;inset:auto 0 0 0;height:66%;z-index:1;
  background:linear-gradient(180deg,
    rgba(42,33,27,0) 0%,
    rgba(42,33,27,.30) 34%,
    rgba(42,33,27,.72) 68%,
    rgba(42,33,27,.94) 100%);
  pointer-events:none;
}
.pband-cap{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  max-width:var(--w);margin:0 auto;
  padding:0 28px clamp(20px,2.4vw,30px);
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:20px 28px;flex-wrap:wrap;
  color:#EFE3D2;pointer-events:none;
}
.pband-cap > *{pointer-events:auto}
.pband-cap p{
  margin:0;max-width:52ch;
  font-size:clamp(.92rem,1.15vw,1.02rem);line-height:1.5;
  text-wrap:pretty;text-shadow:0 1px 14px rgba(42,33,27,.6);
}
.pband-cap b{
  display:block;margin-bottom:5px;
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.3rem,2.5vw,1.85rem);line-height:1.15;
  letter-spacing:-.01em;color:#fff;text-wrap:balance;
}
/* The link was bare text on its own row. It is the one action in the
   band, so it looks like one. */
.pband-cap .go{
  flex:none;display:inline-flex;align-items:center;gap:9px;
  padding:11px 20px;border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
  color:#fff;font-weight:700;font-size:.94rem;
  white-space:nowrap;text-decoration:none;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.pband-cap .go:hover{background:var(--amber);border-color:var(--amber);color:var(--brown-d);transform:translateY(-1px)}
.pband-cap .go:focus-visible{outline:3px solid var(--amber);outline-offset:3px}

/* Narrow screens: three tiles, and the caption drops below the strip
   rather than sitting on it - there is not enough photograph left to
   read text over once the tiles are a third of a phone wide. */
@media(max-width:720px){
  .pband-i{width:clamp(140px,38vw,180px);aspect-ratio:1/1}
  .pband::after{display:none}
  .pband-cap{
    position:static;max-width:none;
    padding:20px 22px 22px;
    align-items:flex-start;
  }
  .pband-cap p{text-shadow:none}
}

/* ---- how the band meets the sections around it -------------------
   The band is full bleed and sits between sections that already carry
   72px of their own padding. With the band's own margin on top of that
   the gap was ~150px of empty cream on each side - the single biggest
   reason the strip read as something dumped on the page rather than
   part of it. The neighbours give up some padding so the total gap
   lands at a normal section rhythm. */
.s:has(+ .pband),
.s-sm:has(+ .pband),
.doc-sec:has(+ .pband){padding-bottom:clamp(26px,3.2vw,42px)}

.pband + .band,
.pband + .s,
.pband + .s-sm{padding-top:clamp(26px,3.2vw,42px)}

/* Last thing on the page: the footer is the same brown as the band, so
   the photography runs straight into it as one continuous dark block
   instead of being separated from it by a stripe of cream. */
main > .pband:last-child{margin-bottom:0}

/* ------------------------------------------------- the embedded form
   The RescueGroups iframe. Its height cannot be measured from here - it
   is a different origin - so it is given a tall frame and allowed to
   scroll internally if a form runs past it. The alternative, a short
   frame, puts a scrollbar inside a scrollbar, which on a phone is
   genuinely hard to use. */
.rg-frame{
  display:block;width:100%;border:0;
  height:clamp(1400px, 190vh, 2600px);
  background:var(--paper);
  border-radius:var(--r-card);
}
#rg-host{
  margin-top:clamp(18px,2.6vw,28px);
  border:1px solid var(--line);
  border-radius:var(--r-card);
  overflow:hidden;
  background:var(--paper);
  box-shadow:var(--shadow);
}
.rg-loading{
  margin:30px 0;padding:26px;text-align:center;color:var(--ink-2);
  background:var(--card);border:1px dashed var(--line-2);border-radius:var(--r-card);
}
.rg-animal{
  margin:clamp(20px,2.6vw,26px) auto 0;max-width:560px;
  padding:14px 18px;border-radius:var(--r-img);
  background:var(--tint);border-left:4px solid var(--amber);
  color:var(--ink);text-align:left;line-height:1.55;
}
.rg-foot{
  margin:22px 0 0;text-align:center;color:var(--ink-2);font-size:.95rem;
}
.rg-fail{
  padding:clamp(28px,4vw,44px);text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);
}
.rg-fail h2{margin:0 0 10px}
.rg-fail p{color:var(--ink-2);margin:0 0 18px}
@media(max-width:700px){
  .rg-frame{height:clamp(1600px, 230vh, 3000px)}
  #rg-host{border-radius:var(--r-img)}
}

/* ------------------------------------------------- hero button row
   Four buttons in a half-width column wrapped three-then-one, leaving a
   single button stranded on its own line. A two-by-two grid keeps them
   balanced whatever the column width. */
@media(min-width:900px){
  .pagetop.hero-split .pagehead .btns,
  .pagetop.hero-split .pagehead .btns.center{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;max-width:440px;margin-left:0;
  }
  .pagetop.hero-split .pagehead .btns .btn{width:100%;justify-content:center}
}
@media(max-width:560px){
  /* Same problem on a phone, same answer. */
  .pagehead .btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pagehead .btns .btn{width:100%;justify-content:center}
}

/* ===================================================================
   TYPOGRAPHIC RHYTHM

   Two faults, both systemic rather than per-page, so both are fixed here
   once instead of nudged margin by margin.

   1. WIDOWS. Headings had text-wrap:balance, body copy did not, so every
      paragraph on the site could drop its last word onto a line of its
      own - "life." sitting alone under the foster lede being the one that
      got reported. `pretty` tells the browser to avoid a short last line;
      `balance` evens out short display text across its lines.

   2. SPACING. The gaps between a paragraph, the next paragraph, a button
      row and the fine print under it were 0px, 22px, 8px and 16px - four
      arbitrary values set at four different times. They are now four
      named steps, so the rhythm is the same on every page and there is
      one place to change it.
   =================================================================== */
:root{
  --t-para:18px;    /* paragraph to paragraph */
  --t-block:30px;   /* copy to a button row, or to a new block */
  --t-fine:14px;    /* button row to the fine print under it */
}

/* Short display text reads best balanced across its lines. */
h1,h2,h3,h4,
.lede,.sub,.pagehead p,.adopt-top .count-line,
.offer-head h2,.doc-sec h2,.docfile-head h2,.pband-cap p{
  text-wrap:balance;
}

/* Running copy: never leave the last word stranded. */
main p,main li,.mdesc,.doc-sec p,.ap-facts li,.offer-body{
  text-wrap:pretty;
}

/* Measure. Long lines are hard to read and short ones break badly; the
   lede is deliberately tighter than body copy so it sits as a block. */
.pagehead p,.adopt-top .count-line{max-width:52ch}
.flow p,.text p,.doc-sec p,.docfile-note{max-width:68ch}

/* One rhythm, applied to the stacked content blocks. */
.flow > * + *{margin-top:var(--t-para)}
.flow > * + .btns,
.flow > * + .acc{margin-top:var(--t-block)}
.flow > .btns + *{margin-top:var(--t-fine)}
.flow > .btns + .ap-xlink{margin-top:var(--t-fine)}

/* ===================================================================
   SEPARATING THE HEADER FROM THE BODY

   The header band and the page ran into each other, on every page, for
   three reasons at once:

     - its gradient finished on var(--paper), which IS the page
       background, so the bottom of the band was the same colour as the
       thing underneath it;
     - the gap between the band and the first section measured 0px, and
       that section carries no top padding;
     - there was no border and no shadow, so the 20px bottom radius had
       nothing to show itself against.

   The band now finishes on a tint that is still visibly warmer than the
   page, carries a hairline and a soft shadow so it reads as a surface
   sitting above the content, and the section beneath it gets real air.
   =================================================================== */
.pagehead,
.adopt-top{
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(233,169,60,.20), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, #F6EEE1 100%);
  border-bottom:1px solid var(--line-2);
  box-shadow:0 14px 28px -22px rgba(42,33,27,.45);
}

/* The home page is the exception: a photograph is already the boundary
   there, so the band, its edge and its shadow all stay switched off. */
.pagetop .banner + .wrap .pagehead{
  background:none;
  border-bottom:0;
  box-shadow:none;
}

/* The split hero is its own full-width surface and needs the same edge. */
@media(min-width:900px){
  .pagetop.hero-split{
    border-bottom:1px solid var(--line-2);
    box-shadow:0 14px 28px -22px rgba(42,33,27,.45);
  }
}

/* ------------------------------------------------- faces in the header
   Three real animals beside the heading, so the band carries the subject
   of the site rather than empty tint. Laid out as a row on a phone and
   moved alongside the type once there is room for two columns. */
.ph-faces{
  display:inline-flex;align-items:center;gap:14px;
  margin:clamp(24px,3.2vw,32px) auto 0;
  padding:9px 18px 9px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  box-shadow:0 2px 10px rgba(42,33,27,.07);
  text-decoration:none;
  transition:transform .18s, box-shadow .18s, background-color .18s;
}
.ph-faces:hover,.ph-faces:focus-visible{
  background:#fff;transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(42,33,27,.14);
}
.ph-face{
  width:46px;height:46px;border-radius:50%;overflow:hidden;flex:none;
  border:2px solid #fff;background:var(--tint);
  margin-right:-16px;                 /* overlap, so they read as a group */
}
.ph-face:last-of-type{margin-right:0}
.ph-face img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;display:block}
.ph-faces-t{
  margin-left:10px;color:var(--ink-2);font-size:max(.82rem,13px);line-height:1.35;
  text-align:left;
}
.ph-faces-t b{color:var(--brown);display:block;font-weight:700}

/* With room for two columns the header becomes type on the left and the
   faces on the right, which is what fills the space rather than
   stretching the text across it. */
@media(min-width:1000px){
  .pagehead.has-faces{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:clamp(30px,4vw,64px);
    text-align:left;
    max-width:var(--w);
    margin-inline:auto;
    padding-inline:28px;
  }
  /* The copy is one cell, so the lede stays under its own heading. */
  .pagehead.has-faces .ph-copy{grid-column:1;min-width:0}
  .pagehead.has-faces h1{margin:0;max-width:16ch}
  .pagehead.has-faces h1::after{margin-left:0;margin-right:0}
  .pagehead.has-faces p{margin-left:0;margin-right:0;max-width:46ch}
  .pagehead.has-faces .btns{justify-content:flex-start}
  .pagehead.has-faces .ph-faces{grid-column:2;justify-self:end;margin:0}
}
@media(max-width:999px){
  .pagehead.has-faces{display:flex;flex-direction:column;align-items:center}
  .pagehead.has-faces .ph-copy{width:100%}
}

/* ---- adopt toolbar: narrow screens -----------------------------------
   Three groups on one row needs ~900px. Below that the bar stacks:
   search on its own row, then the segmented control and the sort
   cluster sharing the next one. */
@media(max-width:900px){
  .controls{
    grid-template-columns:1fr;
    justify-items:stretch;
    gap:10px;
    padding-block:11px;
  }
  .controls .searchwrap{justify-self:stretch;max-width:none}
  .controls .filters,
  .controls .meta{justify-self:stretch}
  .controls .filters{display:grid;grid-template-columns:repeat(3,1fr)}
  .controls .filters button{padding-inline:10px;text-align:center}
  .meta{justify-content:space-between;gap:12px}
  .count{min-width:0}
}

/* ---- adopt header: it was 322px of tint for a title and two lines ---- */
.adopt-top{padding:clamp(32px,3.8vw,44px) 18px clamp(24px,2.8vw,32px)}
.adopt-top .count-line{
  margin-top:14px;font-size:clamp(1.05rem,1.5vw,1.2rem);
}
.adopt-top .count-line b{font-size:1.12em}
.adopt-top .fineprint{margin-top:12px}

/* ======================================================================
   HOMEPAGE: SECOND HALF
   Three stacked sections of centred prose, six cards whose link label
   repeated their own heading, and a social block that was a narrow
   column of text down the middle of a wide band. Relaid out.
   ====================================================================== */

/* ---- "what we actually do" as three steps ---------------------------
   Was three long paragraphs stacked down a centred column: roughly 520px
   of unbroken text that nobody reads. The same words across three
   columns are scannable, and the section gets about 300px shorter. */
.hd2-c{text-align:center;margin-bottom:36px}
.hd2-c h2{margin:0 auto;max-width:18ch}

.how{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(20px,2.4vw,30px);
  counter-reset:step;
}
.how-i{
  position:relative;
  background:var(--card);
  border:1px solid var(--line-2);
  border-radius:var(--r-card);
  padding:clamp(24px,2.4vw,30px);
  box-shadow:var(--shadow);
}
/* The rule under the numeral ties the three together as a sequence. */
.how-i::after{
  content:"";position:absolute;left:clamp(24px,2.4vw,30px);
  top:calc(clamp(24px,2.4vw,30px) + 46px);width:34px;height:2px;
  background:var(--amber);border-radius:2px;
}
.how-n{
  display:block;
  font-family:var(--display);font-weight:600;
  font-size:2.1rem;line-height:1;color:var(--amber-d);
  margin-bottom:26px;
  font-variant-numeric:tabular-nums;
}
.how-i p{
  margin:0;color:var(--ink-2);
  font-size:1rem;line-height:1.62;text-wrap:pretty;
}
.how-more{text-align:center;margin-top:34px}

@media(max-width:880px){
  .how{grid-template-columns:1fr;gap:14px}
  .how-i{padding:22px 24px}
  .how-n{font-size:1.6rem;margin-bottom:0;
    position:absolute;left:24px;top:24px}
  .how-i::after{display:none}
  .how-i p{padding-left:46px;min-height:34px}
}

/* ---- the six "ways to help" cards -----------------------------------
   The icon sat in its own 64px band above the heading, and every card
   ended with a link label that just said its own title again ("Foster
   ... Foster"). Icon moved into a left column beside the text, label
   dropped for one arrow that belongs to the card. ~90px shorter per
   row, and each card is one link instead of three. */
.tile{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:"ic head" "ic body";
  column-gap:17px;row-gap:7px;
  align-content:start;
  padding:26px 26px 24px;
  position:relative;
}
.tile .ic{grid-area:ic;margin-bottom:0;flex:none}
.tile h3{grid-area:head;margin-bottom:0;align-self:center;padding-right:26px}
.tile p{grid-area:body;margin-bottom:0}

/* One affordance, drawn, instead of a repeated word. */
.tile::after{
  content:"";position:absolute;top:30px;right:24px;
  width:17px;height:17px;opacity:.38;
  background:var(--brown);
  -webkit-mask:var(--ico-arr) center/contain no-repeat;
          mask:var(--ico-arr) center/contain no-repeat;
  transition:transform .2s ease,opacity .2s ease;
}
.tile:hover::after{opacity:1;transform:translateX(4px)}
:root{
  --ico-arr:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}
@media(max-width:420px){
  .tile{grid-template-columns:1fr;grid-template-areas:"ic" "head" "body";row-gap:10px}
  .tile h3{padding-right:0}
}

/* ---- follow along ---------------------------------------------------
   A centred column of five stacked items down the middle of a full
   width band. Split: the number is the whole point, so it gets its own
   side, and the copy plus the three buttons get the other. */
.social .soc-card{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  align-items:center;
  gap:clamp(28px,4vw,56px);
  max-width:var(--w);margin:0 auto;
  background:var(--card);
  border:1px solid var(--line-2);
  border-radius:var(--r-card);
  padding:clamp(28px,3.4vw,44px) clamp(26px,3.4vw,48px);
  box-shadow:var(--shadow);
  text-align:left;
}
.social .eyebrow{grid-column:1;grid-row:1;align-self:end;margin:0 0 6px}
.social .soc-n{grid-column:1;grid-row:2;margin:0}
.social .soc-n b{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2.6rem,5.4vw,3.9rem);line-height:.95;
  color:var(--brown);letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
.social .soc-l{grid-column:1;grid-row:3;margin:10px 0 0;
  color:var(--ink-2);font-size:1rem;line-height:1.45;max-width:22ch}
.social .soc-p{grid-column:2;grid-row:1 / span 2;align-self:end;
  margin:0;color:var(--ink-2);font-size:1.04rem;line-height:1.6;text-wrap:pretty}
.social .soc-links{grid-column:2;grid-row:3;
  display:flex;gap:12px;margin:18px 0 0;justify-content:flex-start}

@media(max-width:880px){
  .social .soc-card{grid-template-columns:1fr;gap:0;text-align:left}
  .social .eyebrow,.social .soc-n,.social .soc-l,
  .social .soc-p,.social .soc-links{grid-column:1}
  .social .eyebrow{grid-row:auto}
  .social .soc-n{grid-row:auto}
  .social .soc-l{grid-row:auto}
  .social .soc-p{grid-row:auto;margin-top:16px}
  .social .soc-links{grid-row:auto;margin-top:20px}
}

/* ---- ways-to-help grid: three across, not four ----------------------
   auto-fit at minmax(262px) gave four columns on a 1200px row, which
   left the body copy a 155px ribbon running one or two words per line,
   and stranded two orphan cards on a second row. Six cards want three
   columns: two clean rows, and ~370px of text measure. */
.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tiles{grid-template-columns:1fr}}

/* ---- social buttons: show the actual brand mark ---------------------
   These pills were built as a coloured dot plus a word. The word is in
   a .vh span (screen readers only) and the real brand SVG that was
   added later has no width or height rule, so it computed to 0x0 - the
   button rendered as a lone dot in a wide pill. Glyph sized, dot
   retired, pill squared off into a round icon button. */
.social .soc-links a{
  width:46px;padding:0;justify-content:center;gap:0;
}
.social .soc-links a::before{display:none}
.social .soc-links a svg{
  width:19px;height:19px;flex:none;
  fill:var(--dot);transition:fill .18s ease;
}
.social .soc-links a:hover svg{fill:var(--on-dot)}

/* The number and its caption sat 70px apart because the rows were
   centre-aligned against a taller neighbour. Align to the top. */
.social .soc-card{align-items:start}
.social .soc-p{align-self:start}
.social .soc-l{align-self:start;margin-top:12px}
.social .soc-links{align-self:start;margin-top:14px}

/* gap applied to rows as well as columns, so the caption sat ~56px
   under its own number. Rows tight, columns wide. */
.social .soc-card{gap:6px clamp(28px,4vw,56px)}

/* ======================================================================
   EVENTS
   Four centred headings each sitting on top of a left-aligned block, a
   single thin strip for the one event that actually matters, and a
   bordered card nested inside every weekly card. Rebuilt.
   ====================================================================== */

/* Headings now use .hd2 (left, with the grid under them), so the old
   centring rule has to go or the axes fight again. */
.ev-h{text-align:left}

/* ---- shared icon rows ---- */
.ev-rows{display:grid;gap:7px;margin-top:12px}
.ev-r{display:grid;grid-template-columns:17px 1fr;gap:10px;align-items:start}
.ev-r svg{
  width:17px;height:17px;margin-top:2px;
  fill:none;stroke:var(--rust);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.ev-r span{font-size:.96rem;line-height:1.45;color:var(--ink-2)}

/* ---- upcoming ---- */
.ev-list{display:grid;gap:16px;max-width:none;margin:0}

.ev-card{
  display:grid;grid-template-columns:96px 1fr;gap:0 24px;align-items:start;
  background:var(--card);border:1px solid var(--line-2);
  border-radius:var(--r-card);padding:24px 26px;box-shadow:var(--shadow);
}
.ev-body{min-width:0}
.ev-card h3{font-size:1.25rem;margin:0 0 2px}
.ev-card p{font-size:.97rem;color:var(--ink-2);margin-top:12px;line-height:1.6;text-wrap:pretty}

/* The date block: a real calendar chip rather than three loose lines. */
.ev-date{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:var(--tint);border-radius:14px;padding:12px 8px 11px;
  border:1px solid var(--line-2);
}
.ev-date .m{
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--rust);
}
.ev-date .d{
  display:block;font-family:var(--display);font-weight:600;
  font-size:2.3rem;line-height:1.02;color:var(--brown);
  font-variant-numeric:tabular-nums;
}
.ev-date .y{display:block;font-size:.76rem;color:var(--ink-3);margin-top:1px}

/* ---- the next event, featured ---- */
.ev-feature{
  grid-template-columns:132px 1fr;
  gap:0 34px;
  padding:clamp(26px,3vw,38px) clamp(26px,3vw,40px);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(233,169,60,.16) 0%, rgba(233,169,60,0) 58%),
    var(--card);
  border-color:var(--amber);
  box-shadow:var(--shadow-h);
}
.ev-feature .ev-date{
  background:var(--brown-d);border-color:var(--brown-d);padding:18px 10px 16px;
}
.ev-feature .ev-date .m{color:var(--amber)}
.ev-feature .ev-date .d{color:#fff;font-size:3.1rem}
.ev-feature .ev-date .y{color:rgba(255,255,255,.62)}
.ev-feature h3{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.12;margin-bottom:4px}
.ev-feature .ev-r span{font-size:1.02rem}
.ev-soon{
  display:inline-block;margin-bottom:10px;
  padding:5px 12px;border-radius:999px;
  background:var(--amber);color:var(--brown-d);
  font-size:.74rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
}
.ev-cta{margin-top:20px}

.ev-empty{
  text-align:center;color:var(--ink-3);
  background:var(--card);border:1px dashed var(--line-2);
  border-radius:var(--r-card);padding:34px 28px;margin:0;
}

/* ---- weekly ---- */
.ev-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
@media(max-width:940px){.ev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ev-grid{grid-template-columns:1fr}}

.ev-week{
  display:flex;flex-direction:column;
  background:var(--card);border:1px solid var(--line-2);
  border-radius:var(--r-card);padding:24px 26px 26px;box-shadow:var(--shadow);
}
.ev-week .season{
  align-self:flex-start;
  padding:5px 11px;border-radius:999px;
  background:var(--tint);color:var(--rust);
  font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}
.ev-week h3{font-size:1.18rem;margin:13px 0 0;line-height:1.25}

/* .note is a global CARD component - background, 30px of padding and a
   shadow. Reusing the name inside a card drew a second card inside the
   first one on every single weekly event. Its own class now. */
.evw-note{
  margin:16px 0 0;padding-top:15px;
  border-top:1px solid var(--line-2);
  font-size:.93rem;line-height:1.58;color:var(--ink-3);
  text-wrap:pretty;
}
.ev-week .ev-rows{margin-top:14px}

/* ---- "before you come" ---- */
.checks{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 34px;
}
@media(max-width:760px){.checks{grid-template-columns:1fr}}
.checks li{
  position:relative;padding-left:34px;
  font-size:1rem;line-height:1.6;color:var(--ink-2);text-wrap:pretty;
}
.checks li::before{
  content:"";position:absolute;left:0;top:1px;
  width:22px;height:22px;border-radius:50%;
  background:var(--tint) var(--ico-check) center/12px 12px no-repeat;
  border:1px solid var(--amber);
}
:root{
  --ico-check:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2561F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E");
}

@media(max-width:620px){
  .ev-card,.ev-feature{grid-template-columns:72px 1fr;gap:0 16px;padding:20px}
  .ev-feature .ev-date .d{font-size:2.2rem}
}

/* The site has a 12px floor for tracked uppercase labels, set during the
   small-text pass. These three were authored under it. */
.ev-date .m{font-size:max(.75rem,12px)}
.ev-soon{font-size:max(.75rem,12px)}
.ev-week .season{font-size:max(.75rem,12px)}



/* ======================================================================
   SUCCESS STORIES
   Four stacked text blocks, each ending in an empty <span>, on a page
   whose whole job is to make you feel something. They are quotes from
   families, so they are now typeset as quotes: the first one leads at
   full width, the rest pair up beneath it.
   ====================================================================== */
.stories{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(18px,2.2vw,26px);
}
@media(max-width:780px){.stories{grid-template-columns:1fr}}

.story{
  position:relative;margin:0;
  display:flex;flex-direction:column;
  background:var(--card);border:1px solid var(--line-2);
  border-radius:var(--r-card);
  padding:clamp(28px,2.8vw,36px) clamp(26px,2.6vw,34px) 24px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease;
}
.story:hover{transform:translateY(-3px);box-shadow:var(--shadow-h)}

/* An actual quote mark, set in the display face, sitting behind the
   first line rather than floating above it. */
.story::before{
  content:"\201C";position:absolute;left:clamp(16px,1.8vw,22px);top:-6px;
  font-family:var(--display);font-weight:600;
  font-size:clamp(4rem,6vw,5.6rem);line-height:1;
  color:var(--amber);opacity:.5;pointer-events:none;
}
.story blockquote{margin:0;position:relative;z-index:1;flex:1}
.story blockquote p{
  margin:0;color:var(--ink-2);
  font-size:1.02rem;line-height:1.64;text-wrap:pretty;
}

/* The lead story runs the full width and is set larger - it is the
   longest and the best one, so it opens the page. */
.st-lead{grid-column:1 / -1;background:
  radial-gradient(110% 160% at 0% 0%, rgba(233,169,60,.13), transparent 60%),
  var(--card);
}
.st-lead blockquote p{
  font-family:var(--display);font-weight:400;
  font-size:clamp(1.18rem,2.1vw,1.5rem);line-height:1.45;color:var(--brown);
  max-width:46ch;
}
.st-lead::before{font-size:clamp(5rem,7vw,7rem);opacity:.42}

.story figcaption{
  margin-top:20px;padding-top:15px;
  border-top:1px solid var(--line-2);
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.story figcaption h3{
  margin:0;font-family:var(--display);font-weight:600;
  font-size:1.08rem;color:var(--brown);line-height:1.2;
}
.st-tag{
  flex:none;padding:4px 11px;border-radius:999px;
  background:var(--tint);color:var(--rust);
  font-size:max(.72rem,12px);font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;
}

/* The header band carried the full page padding whether or not there
   was anything in it. On pages whose heading is two words and a line,
   that was ~340px of empty tint with a small pill adrift on the right. */
.pagehead.has-faces{align-items:center}
.pagehead.has-faces{padding-block:clamp(36px,4.2vw,56px)}

/* ======================================================================
   DESIGN SYSTEM — v2
   ----------------------------------------------------------------------
   The old system had one move: a white rounded card, 20px radius, same
   shadow, on cream. Every page was a stack of them, so every page looked
   like the same template with different words in it.

   Three changes, all at the system level, so they land on all 24 pages:
   surfaces stop shouting, type carries the hierarchy instead of boxes,
   and things move when they arrive.
   ====================================================================== */

:root{
  --r-card:14px;
  --r-img:10px;
  /* Shadows are now for things that lift on hover, not for everything
     that happens to be a container. */
  --shadow:0 1px 2px rgba(42,33,27,.04);
  --shadow-h:0 18px 40px -16px rgba(42,33,27,.26);
  --ease:cubic-bezier(.22,.7,.3,1);
}

/* ---- surfaces -------------------------------------------------------
   A hairline does the work a drop shadow was doing. Cards read as one
   calm family instead of a pile of floating tiles. */
.tile,.row,.story,.ev-week,.ev-card,.how-i,.cx > div,.note{
  box-shadow:none;
  border:1px solid var(--line);
  transition:border-color .22s var(--ease), box-shadow .28s var(--ease),
             transform .28s var(--ease);
}
.tile:hover,.row:hover,.story:hover,.ev-week:hover{
  border-color:var(--line-2);
  box-shadow:var(--shadow-h);
}

/* ---- type -----------------------------------------------------------
   Bricolage is a display face; at body sizes it needs to stop shouting,
   and at heading sizes it wants to be bigger and tighter than the serif
   it replaced. */
.eyebrow{
  font-family:var(--display);font-weight:600;
  font-size:max(.75rem,12px);letter-spacing:.1em;text-transform:uppercase;
  color:var(--rust);
}
.hd2{margin-bottom:clamp(26px,3vw,40px)}
.hd2 h2{max-width:20ch}
.hd2 p{color:var(--ink-3);margin-top:12px;max-width:54ch;font-size:1.04rem}

/* A centred section heading over a left-aligned grid was the single
   most common axis clash on the site. Centre the heading only where
   the content under it is genuinely centred too. */
.s.center .hd2{text-align:center}
.s.center .hd2 h2,.s.center .hd2 p{margin-left:auto;margin-right:auto}

/* ---- rhythm ---------------------------------------------------------
   Every section was the same height of padding, so the page had no
   breathing pattern - just evenly spaced slabs. Alternating bands get
   more air than the plain ones. */
.s{padding:clamp(56px,6.5vw,92px) 0}
.s.tint,.s.white{padding:clamp(68px,8vw,116px) 0}
.s-sm{padding:clamp(38px,4.4vw,60px) 0}

/* ---- motion ---------------------------------------------------------
   Content rises into place as it enters the viewport. Grid children are
   staggered off their index so a row of cards arrives as a row rather
   than all at once. Everything is opt-out under reduced motion, and the
   no-JS state is simply visible. */
.rv{opacity:0;transform:translateY(16px);
  transition:opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay:var(--rv-d,0ms);will-change:opacity,transform}
.rv.rv-in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none;transition:none}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* ---- interactive polish --------------------------------------------- */
.btn{transition:transform .2s var(--ease),background-color .2s var(--ease),
     border-color .2s var(--ease),color .2s var(--ease),box-shadow .2s var(--ease)}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.go{transition:color .18s var(--ease),gap .18s var(--ease)}
a:focus-visible,button:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:4px}



/* ======================================================================
   PHOTOGRAPHIC PAGE HERO  (.phero)

   Replaces the pale band. The band was a container with a title in it;
   this is a picture with the title set into it. The photograph is the
   page's first argument - these are the animals - and the type sits on
   it rather than above it in its own tray.
   ====================================================================== */
.phero{
  position:relative;isolation:isolate;
  min-height:clamp(380px,52vh,540px);
  display:flex;align-items:center;
  overflow:hidden;
  /* A built background rather than a photograph. The feed is mostly
     portrait phone snaps of wildly varying quality, so every page was
     rolling the dice on whether its hero cropped to a face or an eye.
     This is the same on all 20 pages, weighs nothing, and cannot
     arrive late or badly framed. */
  background:
    radial-gradient(120% 92% at 50% -8%,  rgba(233,169,60,.26), transparent 60%),
    radial-gradient(86% 70% at 88% 112%,  rgba(194,86,31,.30),  transparent 58%),
    radial-gradient(70% 60% at 8% 100%,   rgba(90,46,27,.55),   transparent 62%),
    linear-gradient(168deg, #4C2615 0%, #3E1E10 54%, #311709 100%);
}
/* A fine dot field, faded out at the edges. Texture, not pattern - it
   should register as depth rather than as decoration. */
.phero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size:24px 24px;
  -webkit-mask-image:radial-gradient(78% 72% at 50% 42%, #000 0%, transparent 78%);
          mask-image:radial-gradient(78% 72% at 50% 42%, #000 0%, transparent 78%);
}
/* Kept for pages that opt back into photography with data-photo. */
.phero-bg{
  position:absolute;inset:0;z-index:0;
  background-size:cover;background-position:50% 40%;
  transform:scale(1.04);
  opacity:0;transition:opacity .9s var(--ease), transform 9s linear;
}
.phero-bg.on{opacity:.55;transform:scale(1)}
.phero[data-photo] .phero-bg.on{opacity:.62}
.phero[data-photo]::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg, rgba(42,33,27,.42) 0%, rgba(42,33,27,.12) 44%, rgba(42,33,27,.72) 100%);
}
.phero-in{
  position:relative;z-index:2;
  width:100%;max-width:var(--w);margin:0 auto;
  padding:clamp(52px,6vw,88px) 28px;
  text-align:center;
}
.phero-eyebrow{
  display:block;margin-bottom:16px;
  font-family:var(--display);font-weight:600;
  font-size:max(.75rem,12px);letter-spacing:.16em;text-transform:uppercase;
  color:var(--amber);
}
.phero h1{
  color:#fff;margin:0 auto;
  font-size:clamp(2.8rem,6.6vw,5.4rem);
  line-height:.98;letter-spacing:-.04em;
  max-width:16ch;
}
.phero h1::after{display:none}
.phero p{
  margin:20px auto 0;max-width:52ch;
  color:rgba(255,255,255,.86);font-weight:500;
  font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.56;
  text-wrap:pretty;
}
.phero .btns{margin-top:32px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.btn-ghost{
  background:transparent;border-color:rgba(255,255,255,.5);color:#fff;
}
.phero .btn-ghost{color:#fff}
.btn-ghost:hover,
.phero .btn-ghost:hover{background:#fff;border-color:#fff;color:var(--brown-d)}

/* ---- the oversized opening statement --------------------------------
   The intro was body copy in the left half of a two-column block. It is
   the page's thesis, so it is set like one. */
/* ---- the opening statement ------------------------------------------
   First attempt: 2.5rem type capped at 24ch in the left half, with the
   supporting paragraph pushed to the bottom right by margin-left:auto.
   That ragged the statement into six short lines and opened a diagonal
   hole across the middle of the section.

   Now they are two columns of one block, tops aligned, with the
   statement given enough measure to set in three lines. Asymmetry comes
   from the column ratio and the type sizes, not from a gap. */
.stmt-sec .wrap{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:clamp(28px,4vw,64px);
  align-items:start;
}
@media(max-width:860px){
  .stmt-sec .wrap{grid-template-columns:1fr;gap:20px}
}
.stmt{
  margin:0;
  font-family:var(--display);font-weight:500;
  font-size:clamp(1.4rem,2.6vw,2.05rem);
  line-height:1.22;letter-spacing:-.028em;
  color:var(--brown);text-wrap:balance;
}
.stmt-sub{
  margin:0;padding-top:.45em;
  color:var(--ink-2);
  font-size:1.04rem;line-height:1.7;text-wrap:pretty;
}

/* ---- "what we ask" as numbered steps --------------------------------
   Was a bulleted list inside a card inside a column. Now a two-column
   editorial sequence with the numerals doing the structure. */
.asks{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(22px,2.6vw,36px) clamp(34px,4.4vw,70px);
}
@media(max-width:780px){.asks{grid-template-columns:1fr}}
.asks li{
  display:grid;grid-template-columns:auto 1fr;gap:18px;
  align-items:start;
  padding-top:18px;border-top:1px solid var(--line-2);
}
.ask-n{
  font-family:var(--display);font-weight:600;
  font-size:1.05rem;line-height:1.3;color:var(--amber-d);
  font-variant-numeric:tabular-nums;
}
.asks li p{margin:0;color:var(--ink-2);font-size:1.01rem;line-height:1.62;text-wrap:pretty}
.asks-foot{
  margin-top:clamp(30px,3.4vw,46px);
  color:var(--ink-3);font-size:1rem;
}
.asks-foot b{color:var(--brown);font-family:var(--display);margin-right:8px}

/* ---- hero variants + the copy inside it -----------------------------
   /adopt and /events put a sticky toolbar or a dense grid directly
   under the hero, so those get a shorter one - a 620px hero above a
   filter bar pushes every animal below the fold. */
.phero-sm{min-height:clamp(320px,42vh,440px)}
.phero-sm h1{font-size:clamp(2.6rem,6vw,4.6rem)}

.phero p + p{margin-top:10px}
.phero .count-line{
  font-weight:600;color:#fff;
  font-size:clamp(1.02rem,1.5vw,1.22rem);
}
.phero .count-line b{color:var(--amber);font-weight:700}
.phero .fineprint{
  font-size:.96rem;color:rgba(255,255,255,.74);max-width:58ch;font-weight:400;
}
.phero .fineprint a{color:var(--amber);border-bottom:1px solid rgba(233,169,60,.45)}
.phero .fineprint a:hover{color:#fff;border-bottom-color:#fff}
.phero p a:not(.btn){color:inherit}

/* The section that follows a hero should not also open with a slab of
   padding - the hero already gave the page its opening. */
.phero + .s,.phero + .s.tint,.phero + .s.white{padding-top:clamp(44px,5vw,72px)}

/* ======================================================================
   LIVE FACEBOOK FEED

   Facebook's page plugin is a fixed-size iframe with its own type and
   chrome, so dropped straight onto a page it reads as a foreign object.
   It gets our own frame around it instead: our heading above, our card
   under it, our corner radius clipping its square edges.

   The iframe cannot be restyled from here - it is cross-origin - so the
   job is framing, not theming. It is also lazy-loaded, because it is
   below the fold and it is the single heaviest thing on the page.
   ====================================================================== */
.social .wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,440px);
  gap:clamp(26px,3.4vw,52px);
  align-items:start;
}
@media(max-width:1000px){
  .social .wrap{grid-template-columns:1fr}
}
.social .soc-card{height:100%}

.fb-live-head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin-bottom:12px;
}
.fb-frame{
  position:relative;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r-card);
  overflow:hidden;              /* clips the plugin's square corners */
  min-height:200px;
}
.fb-frame iframe{
  display:block;width:100%;height:620px;border:0;
  position:relative;z-index:1;
}
/* Sits behind the iframe. If the plugin is blocked - ad blockers and
   tracking protection do block it - the iframe paints nothing and this
   shows through, instead of a blank white box. */
.fb-fallback{
  position:absolute;inset:0;z-index:0;
  display:flex;align-items:center;justify-content:center;
  margin:0;padding:28px;text-align:center;
  color:var(--ink-3);font-size:.96rem;line-height:1.6;
}
.fb-fallback a{color:var(--rust);font-weight:600}
@media(max-width:1000px){
  .fb-frame iframe{height:560px}
}

/* the incoming tile in a rotating photo band */
.pband-swap{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 30%;
  opacity:0;transition:opacity .75s ease;z-index:1;
}
.pband-swap.in{opacity:1}

/* a step card that carries a title as well as body copy */
.how-i b{
  display:block;margin-bottom:7px;
  font-family:var(--display);font-weight:600;
  font-size:1.08rem;line-height:1.25;letter-spacing:-.018em;
  color:var(--brown);
}
.how-more .btn{display:inline-block}

/* A one-line address does not need a card in a half-empty column. */
.addr{
  display:flex;align-items:baseline;justify-content:center;
  gap:10px 18px;flex-wrap:wrap;text-align:center;
}
.addr b{
  font-family:var(--display);font-weight:600;
  font-size:1.05rem;color:var(--brown);
}
.addr p{margin:0;color:var(--ink-2);font-size:1.02rem}

/* ======================================================================
   PROSE COLUMNS

   Measured across all 21 pages: text sections were using 37-49% of
   their own width. The cause is structural - .wrap is 1200px, .text is
   capped at 680px, and it was left-aligned inside it, so every prose
   section had ~520px of empty cream stacked down one side. That is the
   "empty page" problem, and it is one rule rather than twenty pages.

   A single column of body copy now centres itself and takes a measure
   set in characters rather than pixels, so the line length is right
   (~72 characters) and whatever space is left is symmetrical, which
   reads as a deliberate article column instead of a layout that failed.
   Columns inside .two / grids are untouched - direct children only. */
.s > .wrap > .text,
.s > .wrap > .flow,
.s > .wrap > .text.flow,
.s > .wrap > ul.list,
.s > .wrap > ol.steps,
.s-sm > .wrap > .text,
.s-sm > .wrap > .flow{
  max-width:min(100%, 72ch);
  margin-inline:auto;
}

/* The opening paragraph of a prose section carries the section. Giving
   it a size of its own stops a page being one undifferentiated grey
   block from top to bottom. */
.s > .wrap > .flow > p:first-child,
.s > .wrap > .text.flow > p:first-child{
  font-size:clamp(1.1rem,1.5vw,1.26rem);
  line-height:1.6;
  color:var(--ink);
}

/* Headings that sit above a centred prose column have to share its
   axis, or the section reads as two different layouts stacked. */
.s > .wrap > h2,
.s > .wrap > .hd2:only-of-type{max-width:min(100%, 72ch);margin-inline:auto}

/* A two-column block whose halves are wildly unequal becomes one
   centred column - symmetrical space reads as a margin, 700px of cream
   down one side reads as a bug. Set from script; see site.js. */
.two.two-uneven{
  grid-template-columns:minmax(0, 76ch);
  justify-content:center;
  gap:clamp(24px,3vw,38px);
}
.two.two-uneven > *{max-width:none}
.two.two-uneven .note{margin-top:0}

/* ======================================================================
   PROGRAM FEATURES

   Was three identical blocks, each a two-word <h2> sitting alone in a
   600px column beside a paragraph - so most of the page was an empty
   half-column repeated three times.

   Now each programme is a feature: a photograph on one side, a numeral,
   the heading and the copy on the other, alternating sides down the
   page so the three read as a sequence rather than a repeat.
   ====================================================================== */
.prog{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(28px,4.4vw,72px);
  align-items:center;
}
.prog-flip .prog-media{order:2}
@media(max-width:880px){
  .prog{grid-template-columns:1fr;gap:24px}
  .prog-flip .prog-media{order:0}
}

.prog-media{position:relative}
.prog-img{
  width:100%;aspect-ratio:4/3;
  border-radius:var(--r-card);
  background:var(--brown-d) center/cover no-repeat;
  box-shadow:var(--shadow-h);
  opacity:0;transform:scale(.985);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.prog-img.on{opacity:1;transform:none}
/* A soft brand wash so a cool phone photo still sits in a warm page. */
.prog-media::after{
  content:"";position:absolute;inset:0;border-radius:var(--r-card);
  pointer-events:none;
  background:linear-gradient(140deg, rgba(233,169,60,.14), rgba(194,86,31,.10) 60%, transparent);
  mix-blend-mode:multiply;
}

.prog-n{
  display:block;margin-bottom:10px;
  font-family:var(--display);font-weight:600;
  font-size:1.05rem;letter-spacing:.12em;
  color:var(--amber-d);font-variant-numeric:tabular-nums;
}
.prog-body h2{
  margin:0 0 16px;
  font-size:clamp(1.9rem,3.6vw,2.9rem);
  line-height:1.04;letter-spacing:-.035em;
}
.prog-body p{
  margin:0 0 14px;max-width:46ch;
  color:var(--ink-2);font-size:1.04rem;line-height:1.66;text-wrap:pretty;
}
.prog-body p:first-of-type{
  font-size:clamp(1.08rem,1.4vw,1.2rem);color:var(--ink);line-height:1.58;
}
.prog-body .btn{margin-top:10px}

/* ======================================================================
   ABOUT
   Was four stacked slabs of prose. Now: a lede with hard facts under
   it, the founding story as a single narrative column, and the
   problem/response pair set against each other as light and dark.
   ====================================================================== */
.lede-xl{
  /* 26ch at 2.7rem turned a full paragraph into eight short lines.
     Wider measure, smaller size: four lines that read as a statement. */
  max-width:36ch;margin:0 auto;text-align:center;
  font-family:var(--display);font-weight:500;
  font-size:clamp(1.38rem,2.7vw,2.1rem);line-height:1.18;
  letter-spacing:-.034em;color:var(--brown);text-wrap:balance;
}
.lede-sub{
  max-width:62ch;margin:clamp(20px,2.4vw,30px) auto 0;text-align:center;
  color:var(--ink-2);font-size:1.08rem;line-height:1.7;text-wrap:pretty;
}
.facts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,2.4vw,34px);
  margin:clamp(36px,4.4vw,64px) 0 0;padding:0;
}
@media(max-width:760px){.facts{grid-template-columns:1fr;gap:16px}}
.facts > div{
  padding-top:18px;border-top:2px solid var(--amber);
}
.facts dt{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.3rem,2.2vw,1.8rem);line-height:1.05;
  letter-spacing:-.03em;color:var(--brown);
}
.facts dd{margin:7px 0 0;color:var(--ink-3);font-size:.98rem;line-height:1.5}

.story-col{max-width:68ch;margin:0 auto}
.story-col p{margin:0 0 1.05em;color:var(--ink-2);line-height:1.72;text-wrap:pretty}
.story-col p:first-child{
  font-size:clamp(1.1rem,1.5vw,1.26rem);color:var(--ink);line-height:1.6;
}
.story-col p:last-child{margin-bottom:0}

/* The argument of the page is a contrast, so it is set as one. */
.vs{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(18px,2.2vw,28px);align-items:stretch;
}
@media(max-width:860px){.vs{grid-template-columns:1fr}}
.vs article{
  border-radius:var(--r-card);
  padding:clamp(28px,3.2vw,44px);
  display:flex;flex-direction:column;
}
.vs-dark{background:var(--brown-d);color:rgba(255,255,255,.84)}
.vs-dark h2{color:#fff}
.vs-light{background:var(--card);border:1px solid var(--line)}
.vs-tag{
  display:inline-block;align-self:flex-start;margin-bottom:14px;
  padding:5px 12px;border-radius:999px;
  font-family:var(--display);font-weight:600;
  font-size:max(.72rem,12px);letter-spacing:.1em;text-transform:uppercase;
}
.vs-dark .vs-tag{background:rgba(233,169,60,.2);color:var(--amber)}
.vs-light .vs-tag{background:var(--tint);color:var(--rust)}
.vs article h2{
  font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.08;margin:0 0 14px;
}
.vs article p{margin:0 0 1em;line-height:1.68;font-size:1.02rem;text-wrap:pretty}
.vs article p:last-child{margin-bottom:0}
.vs-light p{color:var(--ink-2)}
/* The tag repeats the heading on the dark card; it is there for rhythm,
   so it is hidden from screen readers rather than read out twice. */
.vs-dark .vs-tag{display:none}

/* ---- Facebook embed that fails honestly -----------------------------
   The plugin is blocked by tracking protection for a large share of
   real visitors. When that happens the iframe paints nothing and the
   section became a 620px white void. It now collapses to a designed
   panel instead. */
.fb-frame{min-height:0}
.fb-frame.fb-dead{background:var(--tint);border-style:dashed}
.fb-frame.fb-dead iframe{display:none}
.fb-fallback{
  position:static;display:none;
  padding:clamp(30px,3.4vw,46px);text-align:center;
  color:var(--ink-2);font-size:1rem;line-height:1.6;
}
.fb-frame.fb-dead .fb-fallback{display:block}
.fb-fallback a{color:var(--rust);font-weight:600}

/* the stat card beside it had its own rows drifting apart */
.social .soc-card{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.social .eyebrow{margin:0 0 10px}
.social .soc-n{margin:0}
.social .soc-l{margin:8px 0 0;max-width:26ch}
.social .soc-p{margin:18px 0 0;max-width:52ch}
.social .soc-links{margin:22px 0 0}

/* The card was a grid and is now a flex column. align-self:end meant
   "bottom of the row" under grid; under flex-direction:column the cross
   axis is horizontal, so the same declaration threw the eyebrow to the
   right-hand edge. Clear the inherited grid placement outright. */
.social .soc-card > *{
  align-self:flex-start;
  grid-column:auto;grid-row:auto;
  width:100%;
}
.social .soc-links{width:auto}

/* ======================================================================
   APPLICATION FORM WIDTH

   .ap-wrap is capped at 720px, which is right for the intro copy and
   wrong for the form. RescueGroups' form is responsive and reads the
   width of the iframe as the device width, so a 662px frame made it
   serve its phone layout - one field per row, all the way down a
   60-question adoption application - on a 1440px desktop.

   The intro keeps its reading measure; the form breaks out of it and
   centres on the viewport, which puts RescueGroups back above its own
   desktop breakpoint.
   ====================================================================== */
#rg-host{
  /* Fluid. The form reflows into 1-3 columns on its own, so the page
     should hand it the screen rather than a fixed column. */
  width:min(1360px, calc(100vw - 56px));
  margin-inline:auto;
  position:relative;left:50%;
  transform:translateX(-50%);
}
@media(max-width:820px){
  #rg-host{width:100%;left:auto;transform:none}
}




/* The application page is fluid: intro and form share the same width
   and both track the viewport. */
.ap-wrap{max-width:min(1360px, calc(100vw - 56px))}
#ap-intro{max-width:none}
/* The form is far shorter now that it runs in columns. */
/* height is set per form from embeds.json; this is only a fallback */
.rg-frame{height:clamp(1100px,150vh,2200px)}

/* On a phone the page gutter (28px) and the fluid width calc (-56px)
   were stacking, leaving the form 279px wide inside a 375px screen.
   Narrow screens give the form nearly all of the width - it is a
   46-question application and every pixel counts. */
@media(max-width:620px){
  .ap-wrap{max-width:none;padding-left:14px;padding-right:14px}
  #rg-host{width:100%}
  #ap-intro{padding-left:18px;padding-right:18px}
}

/* ======================================================================
   APPLICATION INTRO

   Making the page fluid stretched this to 1360px: a pale slab with a
   small centred paragraph adrift in the middle of it, sitting on top of
   a left-aligned form grid. Two different layout systems stacked.

   It now shares the form's left edge and its column structure - a
   header for the page rather than a banner across it.
   ====================================================================== */
#ap-intro{
  text-align:left;
  padding:clamp(28px,3.4vw,44px) 0 clamp(22px,2.6vw,32px);
  background:none;
  border-bottom:1px solid var(--line);
  border-radius:0;
  margin-bottom:clamp(24px,3vw,38px);
}
.ap-eyebrow{margin:0 0 10px}
#ap-intro h1{
  max-width:22ch;margin:0;
  font-size:clamp(2rem,4vw,3rem);line-height:1.02;letter-spacing:-.035em;
}
#ap-intro > p.lede{
  margin:14px 0 0;max-width:62ch;
  font-size:1.06rem;line-height:1.6;color:var(--ink-2);
}

/* The three reassurances read as a row of facts, not a bullet list. */
.ap-facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px 30px;
  margin:clamp(22px,2.6vw,32px) 0 0;padding:0;list-style:none;
}
.ap-facts li{
  background:none;border:0;border-top:2px solid var(--amber);
  border-radius:0;padding:12px 0 0;margin:0;
  font-size:.97rem;line-height:1.5;color:var(--ink-3);
}
.ap-facts b{display:block;color:var(--brown);font-weight:600;margin-bottom:2px}

.rg-animal{
  margin:clamp(20px,2.4vw,28px) 0 0;max-width:62ch;
  padding:14px 18px;border-left:3px solid var(--amber);
  background:var(--tint);border-radius:0 10px 10px 0;
  font-size:1rem;line-height:1.55;color:var(--ink-2);
}
.rg-animal b{color:var(--brown)}

.rg-foot{
  margin-top:clamp(22px,2.6vw,32px);
  padding-top:18px;border-top:1px solid var(--line);
  color:var(--ink-3);font-size:.97rem;
}

/* ---- confirmation page ---- */
.ty-for{
  max-width:62ch;margin:0 auto clamp(28px,3.4vw,44px);
  padding:16px 20px;border-left:3px solid var(--amber);
  background:var(--tint);border-radius:0 10px 10px 0;
  color:var(--ink-2);font-size:1.02rem;line-height:1.55;text-align:left;
}
.ty-for b{color:var(--brown)}
.ty-foot{
  margin-top:clamp(28px,3.2vw,40px);text-align:center;
  color:var(--ink-3);font-size:.98rem;
}
.how-more .btn + .btn{margin-left:10px}

/* ---- .ap-facts: clear the inherited decoration ----------------------
   Two leftovers from the earlier card version of this list were still
   applying and fighting the new one:

   1. An absolutely positioned 20px check mark at left:0. The old rule
      reserved 32px of left padding for it; the new rule set padding to
      0, so the icon sat on top of the rule and the first word of every
      item. The amber rule above each fact now does that job, so the
      check goes.
   2. A max-width of ~520px, which capped the row at two columns inside
      a 1360px page. */
#ap-intro .ap-facts{
  max-width:none;
  margin-left:0;margin-right:0;
}
#ap-intro .ap-facts li{padding:12px 0 0}
#ap-intro .ap-facts li::before{content:none;display:none}

/* The fact cards and the step cards are gone, so the two pages need
   their own spacing rather than inheriting a grid's rhythm. */
#ap-intro{padding-bottom:clamp(26px,3vw,38px)}
.ty-for{margin-bottom:clamp(26px,3vw,38px)}
.how-more{text-align:center}

/* ======================================================================
   ACTION-LIST FIXES
   ====================================================================== */

/* #6 — "both buttons should be yellow". Raised twice, so fixed once here
   rather than per button. .btn-2 was the outline variant used wherever a
   pair of buttons sat together; it now matches .btn. (.btn-3 is the
   white-on-dark variant used inside brown bands and is untouched, and
   .btn-ghost is the one on the photographic heroes.) */
.btn-2{
  background:var(--amber);
  border-color:var(--amber);
  color:var(--brown-d);
}
.btn-2:hover{
  background:var(--amber-d);
  border-color:var(--amber-d);
  color:var(--brown-d);
}

/* #6 — board role titles. White on dark brown at 12px uppercase was
   technically high-contrast but visually heavy and hard to read at a
   glance. Amber pill, dark text, a size up. */
.p-role{
  background:var(--amber);
  color:var(--brown-d);
  font-size:max(.78rem,13px);
  letter-spacing:.06em;
  padding:3px 13px;
  min-height:26px;
}

/* #8 — Volunteer "What we ask" runs 1-2-3 down the first column and
   4-5-6 down the second, instead of snaking across rows. Desktop only;
   the single-column phone layout was already right. */
@media(min-width:781px){
  .asks{
    grid-auto-flow:column;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,auto);
  }
}

/* #10 — About > Our Programs: the opening paragraph of each programme
   was set larger than the one under it, which read as two different
   fonts rather than as emphasis. Matched. */
.prog-body p:first-of-type{
  font-size:1.04rem;
  color:var(--ink-2);
  line-height:1.66;
}

/* .person p sets the body colour at (0,1,1) and was beating .p-role at
   (0,1,0), leaving the role pill at ~3.3:1 on amber. Dark brown takes it
   to ~7:1. */
.person .p-role,
.board .p-role{color:var(--brown-d)}


/* A sliding strip is motion the visitor did not ask for, so it stops
   entirely when the system asks for reduced motion - the row is then
   simply a static set of faces. */
@media(prefers-reduced-motion:reduce){
  .pband-track{animation:none;flex-wrap:wrap;width:100%}
  .pband-i{width:16.6%}
}

/* A .two-stick block pins its first column while the second scrolls past.
   My two-uneven rule collapses a lopsided .two into ONE column - and a
   sticky element in a single column pins itself while the rest of the
   content scrolls underneath it, so the heading sat on top of the steps
   on /how-to-adopt. Collapsed means stacked, and stacked means no sticky.
   Same reasoning as the existing max-width:880px rule above. */
.two.two-uneven > :first-child{position:static}

/* ======================================================================
   PRESS / NEWS

   Was six identical white cards - a source chip, a headline, one line,
   an arrow - which gave Newsday and a school bake sale the same weight
   and left the page reading like a changelog. Press coverage is social
   proof, so the most recent story leads and the rest become a list.
   No images: none of these outlets give us one, and a row of grey
   placeholders would be worse than good typography.
   ====================================================================== */
.press-src{
  display:block;margin-bottom:10px;
  font-family:var(--display);font-weight:600;
  font-size:max(.75rem,12px);letter-spacing:.11em;text-transform:uppercase;
  color:var(--rust);
}
.press-go{
  display:inline-flex;align-items:center;gap:8px;margin-top:16px;
  font-weight:600;font-size:.95rem;color:var(--rust);
}
.press-go::after{content:"→";transition:transform .2s var(--ease)}

.press-lead{
  display:block;text-decoration:none;
  padding:clamp(28px,3.4vw,44px) clamp(26px,3.2vw,44px);
  border-radius:var(--r-card);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(233,169,60,.15), transparent 58%),
    var(--card);
  border:1px solid var(--line-2);
  transition:border-color .22s var(--ease), box-shadow .28s var(--ease),
             transform .28s var(--ease);
}
.press-lead:hover{border-color:var(--amber);box-shadow:var(--shadow-h);transform:translateY(-3px)}
.press-lead:hover .press-go::after{transform:translateX(4px)}
.press-lead h2{
  margin:0;max-width:24ch;
  font-size:clamp(1.6rem,3.2vw,2.5rem);line-height:1.08;letter-spacing:-.034em;
}
.press-lead p{
  margin:14px 0 0;max-width:58ch;
  color:var(--ink-2);font-size:1.06rem;line-height:1.62;text-wrap:pretty;
}

/* The remaining stories: two columns, separated by rules rather than
   boxed individually. */
.press-rest{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 clamp(32px,4vw,64px);
  margin-top:clamp(30px,3.6vw,48px);
}
@media(max-width:780px){.press-rest{grid-template-columns:1fr}}
.press-i{
  display:block;text-decoration:none;
  padding:clamp(22px,2.4vw,30px) 0;
  border-top:1px solid var(--line-2);
}
.press-i:hover .press-go::after{transform:translateX(4px)}
.press-i h3{
  margin:0;font-size:1.14rem;line-height:1.26;letter-spacing:-.018em;
  transition:color .18s var(--ease);
}
.press-i:hover h3{color:var(--rust)}
.press-i p{
  margin:8px 0 0;color:var(--ink-2);font-size:.99rem;line-height:1.6;
  text-wrap:pretty;
}
.press-i .press-go{margin-top:12px;font-size:.92rem}

/* ======================================================================
   CONTACT DETAILS

   Four boxes, one per channel. Because the postal address runs five
   lines and a phone number runs one, three of the four were mostly
   empty, and every value was set at the same size as the label so
   nothing led. Contact details are a reference table, not four cards:
   one band, hairline dividers, labels small and quiet, values large
   and tappable. Only /contact uses .cx, so this is safe to retune.
   ====================================================================== */
.cx{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  border-top:2px solid var(--amber);
  padding-top:clamp(22px,2.6vw,30px);
}
@media(max-width:860px){.cx{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 0}}
@media(max-width:520px){.cx{grid-template-columns:1fr}}
.cx > div{
  background:none;box-shadow:none;border-radius:0;
  border-left:1px solid var(--line-2);
  padding:2px clamp(18px,2.2vw,30px);
}
.cx > div:first-child{border-left:0;padding-left:0}
@media(max-width:860px){
  .cx > div:nth-child(odd){border-left:0;padding-left:0}
}
.cx h3{
  margin:0 0 9px;
  font-family:var(--display);font-weight:600;
  font-size:max(.75rem,12px);letter-spacing:.11em;text-transform:uppercase;
  color:var(--rust);
}
.cx p,.cx a{
  font-size:1.04rem;line-height:1.55;color:var(--ink);
}
.cx a{
  display:inline-block;
  border-bottom:1px solid rgba(194,86,31,.35);
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.cx a:hover{color:var(--rust);border-bottom-color:var(--rust)}
.cx p + p{margin-top:4px}

/* The two side panels on /sponsor and friends were generic boxes with a
   heavy shadow. Quieter, and they stop competing with the prose. */
.two .note{
  box-shadow:none;
  border:1px solid var(--line);
  background:var(--card);
}
.two .note + .note{margin-top:16px}
.two .note h3{
  font-family:var(--display);font-weight:600;
  font-size:1.08rem;letter-spacing:-.018em;
  margin-bottom:8px;
}
.two .note p{color:var(--ink-2);font-size:1rem;line-height:1.62}

/* ---- board: leadership, honorary, vet advisor (v3) ---- */
.bd-lead{display:grid;gap:0}
.bd-p{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:40px;
  padding:40px 0;border-top:1px solid var(--line-2)}
.bd-p:first-child{border-top:2px solid var(--amber)}
.bd-id{position:sticky;top:calc(var(--hdr,72px) + 28px);align-self:start}
.bd-mono{display:grid;place-items:center;width:62px;height:62px;border-radius:14px;
  background:var(--brown-d);color:var(--amber);font-family:var(--display);
  font-weight:700;font-size:1.22rem;letter-spacing:.02em;margin-bottom:16px}
.bd-mono.sm{width:46px;height:46px;font-size:.98rem;border-radius:11px;margin:0}
.bd-role{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--rust);margin:0 0 6px}
.bd-id h3,.bd-vet-id h2{font-family:var(--display);font-size:1.3rem;line-height:1.2;margin:0}
.bd-bio>p{margin:0 0 .9em;max-width:68ch}
.bd-bio>p:last-child{margin-bottom:0}
.bd-hon{display:grid;gap:22px}
.bd-hon>h2{font-family:var(--display);margin:0}
.bd-hon ul{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0;
  border-top:2px solid var(--amber)}
.bd-hon li{display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;
  column-gap:14px;align-items:center;padding:20px 24px;border-left:1px solid var(--line-2)}
.bd-hon li:first-child{border-left:0;padding-left:0}
.bd-hon li .bd-mono{grid-row:1/3}
.bd-hon li b{font-family:var(--display);font-size:1.06rem;align-self:end}
.bd-hon li i{font-style:normal;font-size:.72rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--rust);align-self:start;margin-top:3px}
.bd-vet{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:40px;
  padding:36px;border-radius:18px;background:var(--cream-2,#faf4ea);
  border:1px solid var(--line-2);border-left:3px solid var(--amber)}
.bd-vet-lbl{font-size:.9rem;color:var(--ink-2);margin:8px 0 0}
@media(max-width:860px){
  .bd-p,.bd-vet{grid-template-columns:1fr;gap:20px}
  .bd-id{position:static}
  .bd-hon li{border-left:0;padding-left:0;border-top:1px solid var(--line-2)}
  .bd-hon li:first-child{border-top:0}
  .bd-vet{padding:26px}
}

/* ---- promotional offers (v3) ---- */
.pro-feat{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;
  align-items:center;border-top:2px solid var(--amber);padding-top:36px}
.pro-tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--rust);margin-bottom:10px}
.pro-copy h2{font-family:var(--display);font-size:clamp(1.7rem,3.4vw,2.6rem);line-height:1.08;margin:0 0 14px}
.pro-copy>p{max-width:56ch;margin:0 0 22px}
.pro-go{margin:0!important}
.pro-nums{list-style:none;margin:0;padding:0;display:grid;gap:0;
  border:1px solid var(--line-2);border-radius:16px;overflow:hidden;background:#fff}
.pro-nums li{display:grid;gap:4px;padding:22px 26px;border-top:1px solid var(--line-2)}
.pro-nums li:first-child{border-top:0}
.pro-nums b{font-family:var(--display);font-size:2.3rem;line-height:1;color:var(--brown-d)}
.pro-nums li:first-child b{color:var(--rust)}
.pro-nums span{font-size:.92rem;color:var(--ink-2)}
.pro-note{max-width:62ch}
.pro-note h2{font-family:var(--display);margin:0 0 10px}
.pro-note p{margin:0 0 .7em}
.pro-note p:last-child{margin:0}
@media(max-width:860px){.pro-feat{grid-template-columns:1fr;gap:28px}}

/* ---- sponsors directory (v3) ---- */
.spon{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:0;
  border-top:2px solid var(--amber)}
.spon-i{display:grid;grid-template-columns:120px minmax(0,1fr);gap:22px;align-items:start;
  padding:26px 28px;border-bottom:1px solid var(--line-2);border-left:1px solid var(--line-2);
  text-decoration:none;color:inherit;position:relative;transition:background .18s ease}
.spon-i:nth-child(odd){border-left:0;padding-left:0}
.spon-i:hover{background:#fff}
.spon-i::before{content:"";position:absolute;left:0;top:0;bottom:-1px;width:3px;
  background:var(--amber);transform:scaleY(0);transform-origin:top;transition:transform .2s ease}
.spon-i:hover::before{transform:scaleY(1)}
.spon-logo{display:grid;place-items:center;height:62px;border-radius:10px;
  background:#fff;border:1px solid var(--line-2);padding:10px}
.spon-logo img{max-width:100%;max-height:100%;object-fit:contain;
  filter:saturate(.15) opacity(.8);transition:filter .2s ease}
.spon-i:hover .spon-logo img{filter:none}
.spon-tx{display:block}
.spon-tx b{display:block;font-family:var(--display);font-size:1.1rem;line-height:1.2;margin-bottom:6px}
.spon-tx>span{display:block;font-size:.94rem;color:var(--ink-2);line-height:1.5}
.spon-tx em{display:inline-flex;align-items:center;gap:5px;font-style:normal;margin-top:10px;
  font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rust)}
.spon-i:hover .spon-tx em svg{transform:translateX(3px)}
.spon-tx em svg{transition:transform .18s ease}
.spon-cta{margin-top:34px;padding:22px 26px;border-radius:14px;
  background:var(--cream-2,#faf4ea);border-left:3px solid var(--amber)}
.spon-cta p{margin:0}
@media(max-width:880px){
  .spon{grid-template-columns:1fr}
  .spon-i{border-left:0;padding-left:0;padding-right:0;grid-template-columns:84px minmax(0,1fr);gap:16px}
  .spon-logo{height:52px}
}

/* ---- sponsors: column gap instead of left rules ---- */
.spon{gap:0 40px}
.spon-i,.spon-i:nth-child(odd){border-left:0;padding-left:0;padding-right:0}
.spon-i::before{left:-10px}

/* ---- merch fine print ---- */

/* ---- farm residents: photo-less fallback ---- */
.res-ph-none{display:grid;place-content:center;justify-items:center;gap:8px;
  background:linear-gradient(160deg,var(--brown-d) 0%,#3d1f12 100%);color:var(--amber)}
.res-ph-none span{font-family:var(--display);font-weight:700;font-size:2.6rem;line-height:1;
  width:74px;height:74px;display:grid;place-items:center;border-radius:50%;
  border:2px solid rgba(240,180,70,.45)}
.res-ph-none em{font-style:normal;font-size:.74rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(255,255,255,.62)}

/* ---- Jude's list, 11 Nov ---- */

/* #20 - sponsor logos in colour, matching the scrolling ribbon. They were
   desaturated at rest so the page read as one texture; Jude would rather
   see the brands. Hover now lifts rather than colours. */
.spon-logo img{filter:none}
.spon-i:hover .spon-logo img{filter:none;transform:scale(1.04)}
.spon-logo img{transition:transform .2s ease}

/* Sponsor rows now use h3/p/span so each field is separately editable.
   Same appearance, different element names. */
.spon-tx h3{margin:0 0 6px;font-family:var(--display);font-size:1.1rem;line-height:1.2}
.spon-tx p{margin:0;font-size:.94rem;color:var(--ink-2);line-height:1.5}
.spon-go{display:inline-flex;align-items:center;gap:5px;margin-top:10px;
  font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rust)}
.spon-go svg{transition:transform .18s ease}
.spon-i:hover .spon-go svg{transform:translateX(3px)}

/* Board honorary rows, same reason. */
.bd-hon li h3{grid-column:2;align-self:end;margin:0;
  font-family:var(--display);font-size:1.06rem;line-height:1.2}
.bd-hon li p{grid-column:2;align-self:start;margin:3px 0 0;
  font-size:.72rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--rust)}

/* #9 - the opening paragraph of a section was set a step larger than the
   rest. It was meant as emphasis; it reads as an inconsistency, and it has
   now come back on three separate lists. Emphasis is colour only. */
.s > .wrap > .flow > p:first-child,
.s > .wrap > .text.flow > p:first-child,
.story-col p:first-child{
  font-size:inherit;
  line-height:1.72;
  color:var(--ink);
}

/* #18 - the farm postal address reads as an address, not a sentence. */
.addr{display:block;margin-top:.5em;font-style:normal;line-height:1.5;
  padding-left:12px;border-left:2px solid var(--amber)}

/* ---- Instagram posts (home) ---- */
.ig-live{margin-top:34px}
.ig-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:18px;align-items:start;margin-top:14px}
.ig-grid blockquote.instagram-media{margin:0 auto!important;min-width:0!important;
  width:100%!important;max-width:540px!important}

/* #9, third time of asking. The opening paragraph on About and Volunteer was
   set as a display statement at roughly twice the body size, under two
   different class names, which is why fixing the generic first-paragraph rule
   did not settle it. Both now open at a lede size: still a step up from the
   body, no longer competing with the headings. */
.lede-xl,.stmt{
  font-size:clamp(1.18rem,1.5vw,1.34rem);
  line-height:1.5;
  letter-spacing:-.012em;
}
.lede-xl{max-width:54ch}

/* Success stories: the featured testimonial sat at 24px against 16px for the
   rest, which read as the first one being a different size rather than as a
   lead. Smaller step, still clearly the headline story. */
.story.st-lead blockquote,.story.st-lead p{
  font-size:clamp(1.08rem,1.25vw,1.18rem);
  line-height:1.6;
}

/* #20 follow-up - Jude: "All Island, Shinnecock, Sidewalk Angels and Titos
   are showing outside the box". Those four are square-ish; the wide ones were
   fine. object-fit only letterboxes inside the element, it does not shrink the
   element, so a square logo kept its own height and spilled past the well.
   Cap both axes explicitly and let the intrinsic ratio do the rest. */
.spon-logo{height:76px;padding:9px;overflow:hidden}
.spon-logo img{
  display:block;
  width:auto;height:auto;
  max-width:100%;max-height:100%;
  object-fit:contain;
}
@media(max-width:880px){ .spon-logo{height:62px} }

/* The percentage cap above does not bite: the image is a centred grid item,
   so max-height:100% has no definite height to resolve against and the square
   logos keep their intrinsic size. Pixels always resolve. */
.spon-logo img{max-height:58px;max-width:102px}
@media(max-width:880px){ .spon-logo img{max-height:44px;max-width:72px} }

/* Justin: "on mobile the logos seem left centered in the box". The phone cap
   of 72px was wider than the well's content box (84 minus 9px padding each
   side = 66), so the image overflowed to the right and read as pushed left.
   A percentage resolves against the content box, so it always fits and the
   grid centres it properly. */
@media(max-width:880px){
  .spon-logo img{max-width:100%;max-height:44px}
}

/* ---- photo band: close the gap, put the words in the picture ---- */

/* The band had a 40px top margin, so every page showed a strip of page
   background between the section above and the dark band. It is meant to
   butt straight up against what precedes it. */
.pband{margin-top:0!important}

/* The caption sat under the photos, small and left aligned. It belongs over
   the pictures, centred, and big enough to read as a statement. */
.pband{position:relative}
.pband-cap{
  position:absolute;inset:auto 0 0 0;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  text-align:center;
  padding:clamp(34px,7vw,74px) 22px clamp(18px,2.6vw,30px);
  background:linear-gradient(to top,rgba(30,14,7,.9) 18%,rgba(30,14,7,.55) 58%,rgba(30,14,7,0));
  pointer-events:none;
}
.pband-cap > *{pointer-events:auto}
.pband-cap p{
  margin:0;max-width:30ch;
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.25rem,2.5vw,1.95rem);line-height:1.2;
  letter-spacing:-.02em;color:#fff;text-wrap:balance;
  text-shadow:0 2px 18px rgba(0,0,0,.5);
}
.pband-cap p b{font-weight:600;color:#fff}
.pband-cap .go{
  color:#F6C861;font-weight:700;font-size:1rem;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
@media(max-width:700px){
  .pband-cap{padding-top:clamp(40px,16vw,70px)}
  .pband-cap p{max-width:22ch}
}

/* ---- Facebook panel ----
   The page plugin often renders its header and then no posts at all: cookie
   blocking, tracking protection, or Facebook simply declining. We cannot see
   inside a cross-origin frame to tell, so the old 620px reservation left a
   tall white void whenever that happened. Reserve far less, and never let the
   card beside it stretch to match. */
.social .soc-card{height:auto!important;align-self:start!important}
.fb-live{align-self:start}
.fb-frame iframe{height:430px!important}
@media(max-width:900px){ .fb-frame iframe{height:380px!important} }

/* Same 40px artefact on the underside of the band. A full-bleed strip should
   meet whatever follows it, not float with page background showing through. */
.pband{margin-bottom:0!important}

/* Facebook: the timeline is gone. Justin confirmed it never actually showed
   live posts - Facebook drops the timeline whenever a browser blocks
   third-party cookies, which is now the default nearly everywhere. The page
   card without it always renders, so there is no empty box to design around.
   Height follows the card rather than a guess. */
.fb-frame iframe{height:200px!important;width:100%!important;max-width:440px}
@media(max-width:900px){ .fb-frame iframe{height:200px!important} }
.fb-frame{min-height:0;display:flex;justify-content:center}

/* ---- Facebook posts in our own design ---- */
.fb-posts{display:grid;gap:12px;margin-top:14px}
.fbp{
  display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;
  padding:10px;border:1px solid var(--line-2);border-radius:14px;background:#fff;
  text-decoration:none;color:inherit;transition:border-color .18s ease,transform .18s ease;
}
.fbp:hover{border-color:var(--amber);transform:translateY(-1px)}
.fbp-img{display:block;width:92px;height:92px;border-radius:10px;overflow:hidden;background:var(--paper-2,#f3ebe0)}
.fbp-img img{width:100%;height:100%;object-fit:cover;display:block}
.fbp-tx{display:block;min-width:0}
.fbp-words{display:block;font-size:.94rem;line-height:1.45;color:var(--ink)}
.fbp-when{display:block;margin-top:6px;font-size:.74rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--rust)}
@media(max-width:560px){
  .fbp{grid-template-columns:68px minmax(0,1fr);gap:11px}
  .fbp-img{width:68px;height:68px}
}

/* ---- stop cropping faces off ----
   The pet cards cropped from dead centre. Almost every rescue photo is a
   portrait with the animal's head in the upper half, so a landscape frame
   cropping at 50% takes the top of the head off. These are the baseline;
   site.js then refines each photo once it knows its real shape. */
.pet .ph img,
.wait .ph img,
.ev-pic img,
.evw-pic img,
.evpop img,
.fbp-img img{object-position:50% 30%}

/* ---- tap targets ----
   The hero dots were 9x9 on a phone and the nav arrows 18px tall: fine to
   look at, awkward to hit. Growing the dot itself made it a saucer over the
   photo, so instead an invisible pseudo-element carries the hit area and the
   dot keeps its size. */
.hero-dot{position:relative}
.hero-dot::after{
  content:"";position:absolute;
  left:50%;top:50%;transform:translate(-50%,-50%);
  width:40px;height:40px;border-radius:50%;
}

/* ---- nav dropdown chevrons ----
   These were an 18px button with the chevron pinned at left:4px/top:5px.
   Forcing the button to 40px for tap reasons left the chevron stranded in
   the corner, high and far from its label. Centre it on the button instead
   of pinning it, take the colour from the link so it follows the amber
   active state, and hang the big hit area off a transparent pseudo-element
   so the visible mark stays small. */
.dd-t{
  width:20px;height:20px;min-width:0;min-height:0;
  margin-left:0;position:relative;color:inherit;
  display:inline-flex;align-items:center;justify-content:center;
  vertical-align:middle;
}
.dd-t::after{
  content:"";position:absolute;left:50%;top:50%;
  width:6px;height:6px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  border-radius:0 0 2px 0;          /* softens the corner of the arrow */
  opacity:.75;
  transform:translate(-50%,-70%) rotate(45deg);
  transition:transform .2s ease,opacity .2s ease;
}
.dd:hover .dd-t::after,
.dd-t:hover::after,
.dd-t[aria-expanded=true]::after{opacity:1}
.dd-t[aria-expanded=true]::after{transform:translate(-50%,-30%) rotate(-135deg)}

/* The touchable area, invisible, so thumbs and mice both land. */
.dd-t::before{
  content:"";position:absolute;left:50%;top:50%;
  width:40px;height:40px;transform:translate(-50%,-50%);
}

/* The phone menu keeps its amber disc; only the arrow inside needs centring. */
@media(max-width:900px){
  .nv .dd-t{width:40px;height:40px}
  .nv .dd-t::after{
    left:50%;top:50%;width:9px;height:9px;border-width:2px;
    border-color:var(--brown);opacity:1;
    transform:translate(-50%,-70%) rotate(45deg);
  }
  .nv .dd-t[aria-expanded=true]::after{
    transform:translate(-50%,-30%) rotate(-135deg);
  }
}

/* Contact band: the social cell was two text links reading "Facebook" and
   "Instagram". The brand marks are quicker to spot and already exist in the
   footer, so reuse them. TikTok joins them here, since it was listed in the
   footer but missing from the contact page. */
.cx-soc{display:flex;gap:10px;margin-top:4px;flex-wrap:wrap}
.cx-soc a{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid var(--line-2);background:#fff;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.cx-soc a svg{width:19px;height:19px;display:block}
.cx-soc a:hover{transform:translateY(-2px)}
.cx-soc .soc-fb:hover{background:#1877F2;border-color:#1877F2;color:#fff}
.cx-soc .soc-ig:hover{background:#E1306C;border-color:#E1306C;color:#fff}
.cx-soc .soc-tt:hover{background:#111;border-color:#111;color:#fff}

/* ---- contact band, rebuilt ----
   It was a hairline-ruled strip of four cells: tiny uppercase labels, small
   values, no affordance that the phone and email were tappable, and the most
   important information on the page carrying the least visual weight. Now
   four proper cards, each led by an icon, with the value as the hero. */
.cx{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;border-top:0;margin-top:6px;
}
.cx > div{
  border:1px solid var(--line-2);border-left:0;border-radius:16px;
  background:#fff;padding:24px 22px 22px;
  display:flex;flex-direction:column;gap:2px;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.cx > div:hover{border-color:var(--amber);transform:translateY(-2px);
  box-shadow:0 10px 26px -18px rgba(62,30,16,.5)}

.cx-ico{
  width:42px;height:42px;border-radius:12px;margin-bottom:12px;
  display:grid;place-items:center;flex:none;
  background:var(--paper-2,#f3ebe0);color:var(--rust);
}
.cx-ico svg{width:21px;height:21px;display:block}

.cx h3{
  font-family:var(--body),system-ui,sans-serif;
  font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-2);margin:0 0 7px;
}
.cx p{
  margin:0;font-size:1.06rem;line-height:1.5;color:var(--ink);
}
/* Phone and email are the things people actually act on. */
.cx p a{
  color:var(--brown-d,#3E1E10);font-weight:600;text-decoration:none;
  border-bottom:2px solid var(--amber);padding-bottom:1px;
}
.cx p a:hover{color:var(--rust);border-color:var(--rust)}

.cx-soc{margin-top:2px}
@media(max-width:560px){
  .cx{grid-template-columns:1fr;gap:12px}
  .cx > div{padding:20px 18px 18px}
}

/* Contact cards, second pass.
   Equal-height cards are right, but the content sat top-aligned, so the three
   short cards had a dead bottom third against the 3-line address. Centre the
   content so the slack is shared, and give the icon tile enough contrast to
   actually read on white. */
.cx > div{justify-content:center;padding:22px 22px}
.cx-ico{
  background:var(--amber);color:var(--brown-d,#3E1E10);
  width:38px;height:38px;border-radius:11px;margin-bottom:14px;
}
.cx-ico svg{width:19px;height:19px}
.cx h3{margin:0 0 6px}
.cx p{font-size:1.04rem;line-height:1.55}

/* ---- photo band on a phone ----
   Jude: "the text is blocking the banner of pics". The caption is absolutely
   positioned over the photos, which works on a wide band but not on a phone:
   the band is ~143px tall and the caption needs ~238px, so it overflowed
   upward over the photos and the buttons above them. Below 760px the caption
   stops floating and sits under the strip as its own block. */
@media(max-width:760px){
  .pband{display:flex;flex-direction:column}
  .pband-cap{
    position:static;inset:auto;
    background:var(--brown-d,#3E1E10);
    padding:20px 20px 22px;
    gap:12px;
  }
  .pband-cap p{
    font-size:clamp(1.05rem,4.6vw,1.3rem);
    max-width:26ch;text-shadow:none;
  }
  .pband-cap .go{text-shadow:none}
  /* give the pictures room to actually be seen */
  .pband-track{min-height:150px}
  .rb-i,.pband-i{width:clamp(130px,42vw,180px)}
}

/* The hero sub-line sat at 74% white, which Jude could not read on a phone.
   The cream box behind it is gone; this is the remaining half of that note. */
.phero-in .fineprint{color:rgba(255,255,255,.92)}

/* The Facebook post grid and the Instagram grid are filled in by script, and
   stay empty when there is nothing to show. An empty grid is zero-high but
   still carries its top margin, which reads as an unexplained gap. */
#fb-posts:empty,#ig-grid:empty{margin:0}

/* ---- photo band: caption beside the photographs, not on top of them ----
   The caption used to sit over the strip on a dark gradient. On a wide
   screen that gradient read as a shadow box smeared across the middle of
   the photos, and it was the photos people wanted to see. So from tablet
   up the caption becomes its own solid panel on the left and the strip
   runs clean beside it: no scrim over any photograph. The ::after is kept
   only as a short fade off the panel's right edge, so the first tile
   slides out from under it rather than meeting a hard line.
   Below 721px the caption already stacks under the strip. */
@media(min-width:721px){
  .pband{min-height:clamp(250px,23vw,310px)}
  .pband::after{
    inset:0 auto 0 0;height:auto;
    width:calc(clamp(290px,30%,430px) + 80px);
    background:linear-gradient(90deg,
      var(--brown-d) 0%,
      var(--brown-d) calc(100% - 80px),
      rgba(42,33,27,0) 100%);
  }
  .pband-cap{
    position:absolute;left:0;right:auto;top:0;bottom:0;
    width:clamp(290px,30%,430px);max-width:none;margin:0;
    padding:clamp(24px,2.4vw,34px) clamp(22px,2.2vw,30px);
    display:flex;flex-direction:column;flex-wrap:nowrap;
    align-items:flex-start;justify-content:center;
    gap:15px;text-align:left;
  }
  .pband-cap p{
    text-shadow:none;max-width:28ch;
    font-size:clamp(1rem,1.15vw,1.12rem);line-height:1.45;
  }
  .pband-cap b{text-shadow:none;font-size:clamp(1.25rem,1.9vw,1.6rem)}
  .pband-i{width:clamp(200px,18vw,260px)}
}

/* ---- wishlist cards ---------------------------------------------------
   Two lists side by side, one per place parcels can go. The ship-to line
   is part of the card rather than a footnote because sending a crate to
   the wrong state is the one mistake this page can cause. */
.wl-grid{
  display:grid;gap:clamp(16px,2vw,24px);
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  align-items:stretch;
}
.wl-grid.wl-one{max-width:520px;margin-inline:auto}
.wl-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:9px;
  background:var(--card,#fff);border:1px solid var(--line,#E3D6C6);
  border-radius:16px;padding:clamp(22px,2.4vw,30px);
}
.wl-where{
  font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;
  color:var(--rust,#A4502A);
}
.wl-card h3{margin:0;font-size:clamp(1.18rem,1.7vw,1.4rem);line-height:1.2}
.wl-card > p{margin:0;color:var(--ink-2,#6B5C52);font-size:.96rem;line-height:1.55}
.wl-card .btn{margin-top:7px}
.wl-card .wl-ship{
  margin:4px 0 0;font-size:.82rem;line-height:1.45;color:var(--ink-3,#8A7B70);
}

/* ---- two donate buttons ----------------------------------------------
   Last Chance and St. Francis Farm take donations through separate
   Givebutter pages, so a single Donate button silently sent every penny
   to one of them. Both are offered wherever we ask for money. The pair
   wraps rather than shrinking, because "Donate to St. Francis Farm" must
   never be truncated into something a supporter could misread. */
.row .go + .go,
.give-row .go + .go{margin-top:6px}
.row .go,
.give-row .go{display:block;width:fit-content}
.give-row{display:flex;flex-direction:column;gap:6px;align-items:flex-start}

/* Donate bands now carry three actions on some pages. Let them centre and
   wrap as a group instead of forcing one very wide row. */
.band .btns{flex-wrap:wrap;justify-content:center;gap:12px}
@media(max-width:520px){
  .band .btns .btn{width:100%;max-width:330px;justify-content:center}
}

/* .hd2-c centres its heading but never its standfirst: the h2 got
   margin:0 auto and the paragraph kept max-width:54ch with default
   margins, so on a wide screen the text was centred inside a block that
   itself sat hard left of the column. Looked like a mistake because it
   was one, and it affected every centred section heading on the site. */
.hd2-c p{margin-left:auto;margin-right:auto}

/* ---- "Three steps" on a phone ---------------------------------------
   The step number was pinned to the top left of the card and only the
   paragraph was indented past it, so the heading ran underneath the
   number while the body text started 46px further right. Three numbers
   down the page, each one a different distance from its own heading.
   Number in its own gutter, heading and body sharing one left edge. */
@media(max-width:880px){
  .how-i{position:relative;padding:22px 24px 22px 70px}
  .how-n{position:absolute;left:24px;top:22px;margin-bottom:0;
    width:36px;font-size:1.55rem;line-height:1.25}
  .how-i b{display:block}
  .how-i p{padding-left:0;min-height:0}
}

/* ---- home hero buttons on a narrow phone -----------------------------
   "Adopt a Dog" and "Adopt a Cat" are two words longer than "Foster" and
   "Donate". At 320px the 30px side padding left about 90px for the label,
   so the two adopt buttons wrapped onto a second line and stood 70px tall
   beside two 51px ones. Trimming the side padding and refusing the wrap
   keeps all four the same height; if a label genuinely cannot fit, the
   row breaks to one button per line rather than one tall button. */
@media(max-width:420px){
  .pagehead .btns .btn{
    padding-left:16px;padding-right:16px;
    white-space:nowrap;flex:1 1 128px;
  }
}

/* A weekly event that is not running on a particular date. Amber rather
   than red: it is useful information, not an error. */
.evw-skip{
  margin:10px 0 0;font-size:.9rem;line-height:1.45;
  color:var(--brown-d,#44210f);
  background:rgba(233,169,60,.18);
  border-left:3px solid var(--amber,#E9A93C);
  border-radius:0 8px 8px 0;padding:8px 12px;
}

/* A portrait flyer in an event card: taller frame, shown whole, on paper
   rather than letterbox bars. Added by site.js once it has measured the
   picture, so a landscape photo is untouched. */
.ev-pic.ev-pic-tall{aspect-ratio:3/4;background:var(--paper-2)}
.ev-pic.ev-pic-tall img{object-fit:contain}
.evw-pic.ev-pic-tall{aspect-ratio:4/5;background:var(--paper-2)}
.evw-pic.ev-pic-tall img{object-fit:contain}
@media(max-width:860px){
  .ev-card.has-pic .ev-pic.ev-pic-tall{aspect-ratio:4/5}
}

/* ---- links inside the "Sending something yourself?" block -------------
   The Adoption Events link rendered in exactly the body colour with no
   underline, so the one clickable thing in that block was indistinguishable
   from the address printed beside it. Nobody clicks what does not look
   clickable. Rust, weight, a real underline and a small arrow. */
.addr a{
  color:var(--rust);
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  text-decoration-color:rgba(164,80,42,.45);
  transition:color .15s ease, text-decoration-color .15s ease;
  white-space:nowrap;
}
.addr a::after{
  content:" \2192";
  font-weight:700;
  text-decoration:none;
  display:inline-block;
}
.addr a:hover{
  color:var(--brown-d,#44210f);
  text-decoration-color:currentColor;
}
.addr a:focus-visible{
  outline:3px solid var(--amber);
  outline-offset:3px;
  border-radius:3px;
}
