/* ==========================================================================
   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:"Zilla Slab",Georgia,serif;
  --body:"Libre Franklin",-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;letter-spacing:-.005em}
h1{font-size:clamp(2.3rem,4.6vw,3.5rem);line-height:1.08}
h2{font-size:clamp(1.8rem,3.1vw,2.6rem);line-height:1.14}
h3{font-size:1.3rem;line-height:1.25}
h4{font-size:1.05rem}
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:2.4/1;overflow:hidden}
.banner img{width:100%;height:100%;object-fit:cover;object-position:50% 34%}
@media(max-width:860px){.banner{aspect-ratio:16/10}}
@media(max-width:560px){.banner{aspect-ratio: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}}

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}
  .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:.74rem;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. */
.pr-item.has-logo{padding:0 30px;opacity:.68;filter:grayscale(1)}
.pr-item.has-logo:hover{opacity:1;filter:none}
.pr-item.has-logo img{max-height:42px;max-width:150px;width:auto;object-fit:contain;display:block}
@media(max-width:560px){.pr-item.has-logo{padding:0 20px}.pr-item.has-logo img{max-height:34px}}

/* ------------------------------------------------------------------
   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. */
.pagetop + .s,.pagetop + .s.tint,.pagetop + .s.white{padding-top:0}
.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 were dim grey text in the fine print, then outlined pills in the
   bottom legal strip. Lauren asked twice for them to pop, so they have moved up
   under the footer blurb and now carry each platform's own colour. Colour is
   doing the recognition work here rather than the platforms' logo marks, which
   are theirs and not ours to redraw.

   Contrast: each pill's text is checked against its own background, not against
   the footer, so Facebook's blue is pulled a shade darker than the brand blue
   and TikTok uses its cyan with near-black text. */
.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:700;font-size:.92rem;text-decoration:none;border-radius:999px;
  padding:11px 20px;min-height:44px;display:inline-flex;align-items:center;
  border:0;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.ft-soc a:hover,.ft-soc a:focus-visible{
  transform:translateY(-2px);filter:brightness(1.08);
  box-shadow:0 6px 18px rgba(0,0,0,.28);text-decoration:none;
}
/* These need to out-rank the generic `.ft a` colour, which is the same
   specificity as `.ft-soc a` and was quietly winning over a bare `.soc-tt`.
   That turned TikTok's cyan pill into white-on-cyan, which is unreadable. */
.ft-soc a.soc-fb{background:#1159C9;color:#fff}
.ft-soc a.soc-ig{background:linear-gradient(135deg,#7B2FB5 0%,#C32AA3 52%,#D81B60 100%);color:#fff}
.ft-soc a.soc-tt{background:#25F4EE;color:#0B0B0B}

@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}
}

/* ==========================================================================
   ST. FRANCIS FARM
   ------------------------------------------------------------------------
   The farm is LCAR's sanctuary, so it keeps the parent site's type, spacing
   and shapes and changes only its ground colour. Brown becomes forest green:
   same family, its own place. The terracotta accent is shared deliberately,
   so a visitor moving between the two sites feels the relationship.
   ========================================================================== */
:root{
  --brown:#2E4633;          /* was LCAR brown: headings and dark UI */
  --brown-d:#1E3023;
  --rust:#C2561F;           /* shared with LCAR on purpose */
  --rust-d:#A14416;
  --amber:#E0A33A;
  --amber-d:#CE9029;

  --ink:#22291F;
  --ink-2:#4F5A4B;
  --ink-3:#7E8878;
  --paper:#F9F7F0;
  --card:#FFFFFF;
  --tint:#EAEFE4;
  --paper-2:#EFF2E9;   /* referenced by .res-ph/.res-note, never defined upstream */
  --line:#DCE3D5;
  --line-2:#C3CDB8;

  --shadow:0 2px 10px rgba(34,41,31,.06);
  --shadow-h:0 14px 34px rgba(34,41,31,.14);
}

/* A sanctuary page leans on numbers more than the rescue site does: how many
   animals live here, how many pass through. These are the only new component
   the farm needs that LCAR did not already have. */
.figs{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  margin:0;padding:0;list-style:none;
}
.figs li{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);
  padding:26px 24px;text-align:center;
}
.figs .n{
  display:block;font-family:var(--display);font-weight:700;
  font-size:clamp(2rem,4.4vw,2.9rem);line-height:1.05;color:var(--brown);
}
.figs .l{display:block;margin-top:6px;color:var(--ink-2);font-size:.95rem;line-height:1.45}
@media(max-width:720px){ .figs{grid-template-columns:1fr;gap:12px} .figs li{padding:20px} }

/* The expansion plan reads as a set of buildings, so it gets its own card
   list rather than being flattened into prose. */
.plan{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:18px}
.plan article{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);
  padding:26px 26px 28px;
}
.plan h3{margin-bottom:8px}
.plan p{margin:0;color:var(--ink-2)}
.plan .tag{
  display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--rust);margin-bottom:9px;
}

/* Pieces the farm shell needs that the rescue sheet does not have. */
.ft-mark{
  font-family:var(--display);font-weight:700;font-size:1.25rem;color:#fff;
  margin:0 0 10px;
}
.btn.ghost{background:transparent;color:var(--brown);box-shadow:inset 0 0 0 2px var(--line-2)}
.btn.ghost:hover{background:var(--tint);color:var(--brown-d)}
.s.alt{background:var(--tint)}
.nv a.here,.nv a[aria-current="page"]{color:var(--rust)}

/* The farm is not a standalone charity: donations, adoptions and the 501(c)(3)
   all sit with Last Chance Animal Rescue. A donor landing here from Facebook
   needs that relationship visible without hunting for it, so it gets a strip
   above the header rather than a line in the footer. */
.parent{background:var(--brown-d);color:#D7E0D2;font-size:.84rem}
.parent .wrap{display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding-block:7px;flex-wrap:wrap;text-align:center}
.parent a{color:#fff;font-weight:600;text-decoration:none}
.parent a:hover{text-decoration:underline}
@media(max-width:420px){ .parent{font-size:.79rem} }

/* ==========================================================================
   Residents
   --------------------------------------------------------------------------
   A sanctuary's animals are not a product listing: most of these are not
   going anywhere, and the point of the page is that someone comes to care
   about one of them. So each card opens a panel with that animal's own
   story and photographs rather than linking away.
   ========================================================================== */
.res-controls{
  display:flex;align-items:center;gap:16px 22px;flex-wrap:wrap;margin:0 0 30px;
}
.res-controls .searchwrap{position:relative;flex:1 1 240px;max-width:340px;min-width:0}
#res-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;min-height:48px;
}
#res-search:focus{outline:none;border-color:var(--rust);box-shadow:0 0 0 3px rgba(194,86,31,.14)}
.res-filters{display:flex;align-items:center;gap:0;flex-wrap:wrap;margin-left:auto}
.res-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 20px;min-height:48px;
  margin-left:-1px;transition:background-color .16s,color .16s;
}
.res-filters button:first-of-type{margin-left:0;border-radius:var(--r-pill) 0 0 var(--r-pill)}
.res-filters button:nth-of-type(3){border-radius:0 var(--r-pill) var(--r-pill) 0}
.res-filters button:hover{color:var(--brown);background:var(--tint)}
.res-filters button.active{background:var(--amber);border-color:var(--amber-d);color:var(--brown-d);position:relative;z-index:1}
.res-count{margin-left:18px;color:var(--ink-2);font-size:.95rem;white-space:nowrap}
@media(max-width:720px){
  .res-controls .searchwrap{flex:1 1 100%;max-width:none}
  .res-filters{margin-left:0;width:100%}
  .res-filters button{flex:1;padding:11px 10px;justify-content:center}
  .res-count{flex:1 0 100%;margin:4px 0 0}
}

.res-card{position:relative;display:flex;flex-direction:column;background:var(--card);
  border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow);
  transition:transform .16s ease,box-shadow .16s ease}
.res-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-h)}
.res-open{
  all:unset;cursor:pointer;display:flex;flex-direction:column;flex:1;
}
.res-open:focus-visible{outline:2.5px solid var(--rust);outline-offset:-3px}
.res-ph{position:relative;display:block;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-n{
  position:absolute;right:10px;top:10px;background:rgba(0,0,0,.6);color:#fff;
  font-size:.76rem;font-weight:600;border-radius:999px;padding:3px 9px;
}
.res-body{display:flex;flex-direction:column;gap:3px;padding:15px 17px 4px}
.res-name{font-family:var(--display);font-size:1.3rem;font-weight:700;color:var(--brown)}
.res-meta{font-size:.88rem;color:var(--ink-2);line-height:1.45}
.res-flag{
  align-self:flex-start;margin-top:5px;font-size:.72rem;font-weight:700;
  letter-spacing:.05em;text-transform:uppercase;color:var(--rust);
}
.res-spon{margin:12px 17px 17px;text-align:center;padding:10px 14px;font-size:.92rem}
.res-msg{grid-column:1/-1;margin:0;color:var(--ink-2)}
.res-note{grid-column:1/-1;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;color:var(--ink-2)}

/* ---- the panel ---- */
.rmodal{
  position:fixed;inset:0;z-index:90;background:rgba(25,32,23,.62);
  display:flex;align-items:center;justify-content:center;padding:22px;
  overflow-y:auto;
}
.rmodal[hidden]{display:none}
.rmodal-card{
  position:relative;background:var(--card);border-radius:var(--r-card);
  max-width:940px;width:100%;max-height:92vh;overflow:auto;
  display:grid;grid-template-columns:1.05fr 1fr;
  box-shadow:0 30px 70px rgba(0,0,0,.36);
}
.rm-close{
  position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;border:0;
  border-radius:50%;cursor:pointer;background:rgba(255,255,255,.94);color:var(--ink);
  font-size:1.35rem;line-height:1;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.22);
}
.rm-close:hover{background:#fff}
.rm-gallery{position:relative;background:var(--paper-2);display:flex;flex-direction:column}
.rm-stage{flex:1;aspect-ratio:4/5;overflow:hidden}
.rm-stage img{width:100%;height:100%;object-fit:cover;display:block}
.rm-arrow{
  position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;
  border-radius:50%;cursor:pointer;background:rgba(255,255,255,.9);color:var(--brown);
  font-size:1.05rem;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.2);
}
.rm-arrow.prev{left:10px} .rm-arrow.next{right:10px}
.rm-arrow[hidden]{display:none}
.rm-thumbs{display:flex;gap:7px;padding:10px;flex-wrap:wrap;background:var(--card)}
.rm-th{width:54px;height:54px;padding:0;border:2px solid transparent;border-radius:8px;
  overflow:hidden;cursor:pointer;background:none}
.rm-th img{width:100%;height:100%;object-fit:cover;display:block}
.rm-th.on{border-color:var(--rust)}
.rm-body{padding:30px 32px 32px;display:flex;flex-direction:column}
.rm-tag{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--rust);margin-bottom:8px}
.rm-name{font-size:clamp(1.7rem,3.4vw,2.3rem);margin:0 0 4px}
.rm-meta{margin:0 0 16px;color:var(--ink-2)}
.rm-story{color:var(--ink-2);overflow-y:auto}
.rm-story p{margin:0 0 12px}
.rm-nostory{font-style:italic;color:var(--ink-3)}
.rm-cta{margin-top:20px;align-self:flex-start}
.rm-note{margin:12px 0 0;font-size:.85rem;color:var(--ink-3);max-width:40ch}

@media(max-width:820px){
  .rmodal{padding:0;align-items:stretch}
  .rmodal-card{grid-template-columns:1fr;border-radius:0;max-height:100vh}
  .rm-stage{aspect-ratio:4/3}
  .rm-body{padding:24px 22px 30px}
}
@media(prefers-reduced-motion:reduce){
  .res-card{transition:none}
  .res-card:hover{transform:none}
}


/* Carried over from the LCAR site so the application looks the same on both
   domains. The farm serves three forms; the engine is identical. */
.linky{background:none;border:0;padding:0;font:inherit;color:var(--rust);
  text-decoration:underline;cursor:pointer}
.linky:hover{color:var(--rust-d)}

.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}
.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}
.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}
.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)}
.ap-pot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
  .ap-nav{flex-direction:column-reverse}
  .ap-nav .btn{width:100%}
  .ap-prog span{transition:none}
.tag,.season,.src,.ap-step{font-size:max(0.75rem,12px)}
.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-nav{flex-direction:column-reverse}
  .ap-nav .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .ap-prog span{transition:none}
}
@media(max-width:560px){ .ap-f .ap-pick + .ap-help{margin-left: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} }

/* The way in to the applications from the residents list. */
.res-apply{margin:46px auto 0;max-width:640px;text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:clamp(26px,4vw,40px) clamp(20px,4vw,36px);box-shadow:var(--shadow)}
.res-apply h2{font-size:clamp(1.3rem,2.4vw,1.7rem)}
.res-apply p{color:var(--ink-2);margin:10px 0 0;line-height:1.6}
.res-apply .btns{margin-top:20px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* ---- resident photo band (homepage) ---- */
.resband{position:relative;margin:10px 0 0;overflow:hidden;background:var(--green-d,#2d4232)}
.rb-track{display:flex;width:max-content;animation:rb-slide 56s linear infinite}
.rb-i{flex:0 0 auto;width:clamp(150px,19vw,230px);aspect-ratio:1/1;overflow:hidden;display:block}
.rb-i img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes rb-slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.resband:hover .rb-track{animation-play-state:paused}
.rb-cap{position:absolute;left:0;right:0;bottom:0;margin:0;padding:34px 24px 16px;
  color:#fff;font-size:.95rem;text-align:center;
  background:linear-gradient(to top,rgba(20,32,23,.88),rgba(20,32,23,0))}
.rb-cap a{color:var(--gold,#e0ab55)}
@media(prefers-reduced-motion:reduce){.rb-track{animation:none}}

/* ---- two donate buttons ----------------------------------------------
   The farm and the rescue take donations through separate Givebutter
   pages, so both are offered wherever we ask for money. They wrap rather
   than shrink: a truncated charity name on a donate button is worse than
   a second line. */
.give-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
@media(max-width:520px){
  .give-row{flex-direction:column;align-items:stretch}
  .give-row .btn{width:100%;justify-content:center}
}
