/* MAD Rescue public site + adopter portal. Same night-sky look as the request system's landing card. */
:root {
  --bg: #0b1220; --bg2: #0f1830;
  --ink: rgba(255,255,255,.94); --muted: rgba(255,255,255,.66); --faint: rgba(255,255,255,.42);
  --glass: rgba(255,255,255,.055); --glass2: rgba(255,255,255,.09); --stroke: rgba(255,255,255,.12); --stroke2: rgba(255,255,255,.2);
  --violet: #b66fdd; --mad-purple: #470A68; --cyan: #5fd4ff; --mint: #45e0a0; --amber: #ffc561; --rose: #ff7a8a;
  --grad: linear-gradient(135deg, #470A68 0%, #7d2fae 100%);   /* MAD purple: buttons and badges, white text */
  --grad-soft: linear-gradient(135deg, #b66fdd 0%, #5fd4ff 100%);   /* readable on the dark background: big numbers, glows, progress */
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --font: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden; margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.55 var(--font); background: var(--bg);
  background-image:
    radial-gradient(1100px 650px at 12% -5%, rgba(71,10,104,.55), transparent 60%),
    radial-gradient(900px 560px at 95% 8%, rgba(95,212,255,.18), transparent 62%),
    radial-gradient(1200px 900px at 50% 110%, rgba(69,224,160,.07), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header */
.p-top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(11,18,32,.62); border-bottom: 1px solid var(--stroke); }
.p-top-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.p-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; letter-spacing: -.01em; }
.p-brand:hover { text-decoration: none; }
.p-brand img { height: 42px; width: auto; }
.p-brand span { font-size: 15px; line-height: 1.1; white-space: nowrap; }
.p-brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.p-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.p-nav a { color: var(--muted); padding: 8px 11px; border-radius: 999px; font-size: 14px; font-weight: 550; white-space: nowrap; }   /* Montserrat runs wide: one line each */
.p-nav a.btn-go, .p-nav a.btn-go:hover { color: #fff; background: var(--grad); }
.p-nav a:hover, .p-nav a.on { color: var(--ink); background: var(--glass2); text-decoration: none; }
.p-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--stroke); color: var(--ink); border-radius: 12px; padding: 8px 12px; font: inherit; }
@media (max-width: 1180px) {   /* the full menu needs ~1,200px in Montserrat */
  .p-menu { display: inline-flex; }
  .p-nav { display: none; position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; align-items: stretch;
    background: rgba(15,24,48,.97); border: 1px solid var(--stroke); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
  .p-nav.open { display: flex; }
  .p-nav a { padding: 12px 14px; }
}

/* ---------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 650 15px/1 var(--font); border: 1px solid var(--stroke2); background: var(--glass2); color: var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn-go { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(182,111,221,.35); }
.btn-go:hover { background: var(--grad); box-shadow: 0 14px 36px rgba(95,212,255,.35); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--glass2); border: 1px solid var(--stroke); color: var(--ink); white-space: nowrap; }
.chip.ok { color: var(--mint); border-color: rgba(69,224,160,.35); background: rgba(69,224,160,.08); }
.chip.warn { color: var(--amber); border-color: rgba(255,197,97,.35); background: rgba(255,197,97,.08); }
.chip.stop { color: var(--rose); border-color: rgba(255,122,138,.35); background: rgba(255,122,138,.08); }
.chip.go { color: var(--cyan); border-color: rgba(95,212,255,.35); background: rgba(95,212,255,.08); }

/* ---------- layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); border: 1px solid var(--stroke);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pad { padding: 26px; }
@media (max-width: 600px) { .pad { padding: 20px; } .wrap { padding: 20px 16px 48px; } }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grad-text { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 44px 0 16px; flex-wrap: wrap; }
.section-h h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }

/* ---------- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 34px; align-items: center; padding: 34px 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin-bottom: 16px; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.7rem; letter-spacing: -.02em; }
.hero-stats span { color: var(--muted); font-size: 13.5px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
.hero-art .ph { position: absolute; border-radius: 28px; overflow: hidden; border: 1px solid var(--stroke2); box-shadow: var(--shadow); background: var(--bg2); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a { inset: 0 22% 22% 0; transform: rotate(-3deg); }
.hero-art .b { inset: 40% 0 0 42%; transform: rotate(4deg); }
.hero-art .glow { position: absolute; inset: 10%; background: var(--grad-soft); filter: blur(70px); opacity: .35; border-radius: 50%; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 380px; justify-self: center; } }

/* ---------- search bar */
.searchbar { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke2); max-width: 560px; }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; padding: 0 14px; outline: none; }
.searchbar input::placeholder { color: var(--faint); }

/* ---------- filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 22px; }
.filters select, .filters input[type=search] { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.07); color: var(--ink);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--font); }
.filters select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.filters select option { color: #111; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.pill-toggle { display: inline-flex; gap: 6px; }
.pill-toggle a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--muted); font-size: 14px; font-weight: 550; }
.pill-toggle a.on, .pill-toggle a:hover { color: var(--ink); background: var(--glass2); text-decoration: none; }

/* ---------- dog cards */
.dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dog { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; color: var(--ink);
  background: var(--bg2); border: 1px solid var(--stroke); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.dog:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 26px 50px rgba(0,0,0,.5); border-color: rgba(182,111,221,.55); }
.dog-ph { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(circle at 30% 20%, #2a2f5e, #121a30 70%); overflow: hidden; }
.dog-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dog:hover .dog-ph img { transform: scale(1.05); }
.dog-ph .none { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; opacity: .55; }
.dog-ph::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(8,12,24,.92)); }
.dog-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 14px; }
.dog-name { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.dog-sub { color: rgba(255,255,255,.8); font-size: 13.5px; }
.dog-tags { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.dog-tags .chip { background: rgba(11,18,32,.6); backdrop-filter: blur(8px); }
.dog-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px 14px; border-top: 1px solid var(--stroke); align-items: center; }
.dog-foot .fee { margin-left: auto; font-weight: 700; }

/* ---------- dog page */
.dp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .dp { grid-template-columns: minmax(0, 1fr); } .dp > aside { order: -1; position: static; } }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg2); border: 1px solid var(--stroke); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 84px; height: 66px; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--bg2); cursor: pointer; opacity: .7; }
.thumbs button.on { border-color: var(--cyan); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.fact { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); }
.fact small { display: block; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fact b { font-weight: 650; }
.sticky { position: sticky; top: 86px; }
.prose { color: rgba(255,255,255,.84); font-size: 1.02rem; }
.prose p { margin: 0 0 14px; }
.prose a, .kv dd { overflow-wrap: anywhere; }

/* ---------- steps (application progress) */
.steps { display: flex; gap: 0; margin: 14px 0 4px; }
.step { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; padding-top: 26px; }
.step::before { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--stroke2); z-index: 1; }
.step::after { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--stroke2); }
.step:first-child::after { display: none; }
.step.done { color: var(--ink); }
.step.done::before { background: var(--grad-soft); border-color: transparent; box-shadow: 0 0 14px rgba(95,212,255,.6); }
.step.done::after { background: var(--grad-soft); }
.step.now::before { box-shadow: 0 0 0 5px rgba(95,212,255,.18), 0 0 18px rgba(95,212,255,.7); }
@media (max-width: 640px) { .step { font-size: 0; } .step.now, .steps:not(:has(.now)) .step.done:last-child { font-size: 11px; white-space: nowrap; } }

/* ---------- my MAD */
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.my-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.todo { display: grid; gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(182,111,221,.16), rgba(95,212,255,.06)); border: 1px solid rgba(182,111,221,.35); }
.todo-item .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.08); }
.todo-item .tx { flex: 1; min-width: 0; }
.todo-item .tx b { display: block; }
.todo-item .tx span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) { .todo-item { flex-wrap: wrap; } .todo-item .btn { width: 100%; } }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.app-card { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); color: var(--ink); }
.app-card + .app-card { margin-top: 10px; }
a.app-card:hover { text-decoration: none; border-color: rgba(95,212,255,.45); }
.app-card .av { flex: none; width: 74px; height: 74px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #2a2f5e, #121a30 70%); display: grid; place-items: center; font-size: 30px; }
.app-card .av img { width: 100%; height: 100%; object-fit: cover; }
.app-card .bd { flex: 1; min-width: 0; }
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mine .dog-ph { aspect-ratio: 16 / 11; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--stroke); font-size: 14.5px; }
.list li:last-child { border-bottom: 0; }
.list li .grow { flex: 1; min-width: 0; }

/* ---------- forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: rgba(0,0,0,.25); color: var(--ink); border: 1px solid var(--stroke2);
  border-radius: 12px; padding: 12px 14px; font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,212,255,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); margin-bottom: 18px; }
.seg a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg a.on { background: var(--glass2); color: var(--ink); text-decoration: none; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; }
.alert.err { background: rgba(255,122,138,.1); border: 1px solid rgba(255,122,138,.4); }
.alert.ok { background: rgba(69,224,160,.1); border: 1px solid rgba(69,224,160,.4); }
.alert.test-run { background: rgba(255,196,77,.12); border: 1px dashed rgba(255,196,77,.7); }
details.drawer { border-radius: var(--radius-sm); border: 1px solid var(--stroke); background: var(--glass); }
details.drawer > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-weight: 650; }
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary::after { content: "＋"; margin-left: auto; color: var(--muted); }
details.drawer[open] > summary::after { content: "－"; }
details.drawer > .in { padding: 0 16px 16px; }
details.drawer + details.drawer { margin-top: 10px; }

/* ---------- auth card */
.auth { max-width: 460px; margin: 40px auto; }
.auth .logo { width: 140px; margin: 0 auto 18px; }

/* ---------- how it works */
.how { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; counter-reset: s; }
.how li { list-style: none; padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); }
.how li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
.how b { display: block; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
/* Home page Featured (services/featured.py): the How-adoption-works cards, with a badge in place of the step number */
.feat-wrap { margin-top: 8px; }
.how.feat li { position: relative; display: flex; flex-direction: column; }
.how.feat li::before { content: none; }
.how.feat .feat-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font-size: 17px; margin-bottom: 12px; object-fit: cover; }
.how.feat .feat-kind { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.how.feat b a { color: inherit; text-decoration: none; }
.how.feat b a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.how.feat li:hover { border-color: var(--stroke2); }
.how.feat b a:focus-visible { outline: none; }
.how.feat b a:focus-visible::after { outline: 3px solid var(--cyan); outline-offset: 2px; }
.how.feat .feat-go { margin-top: auto; padding-top: 10px; color: var(--cyan); font-weight: 650; font-size: 14px; }
.how.feat li[hidden] { display: none; }
.feat-ctl { display: flex; gap: 8px; }
.feat-ctl[hidden] { display: none; }
.feat-btn { padding: 6px 12px; font-size: 13.5px; }
.feat-ic { font-size: 10px; letter-spacing: -1px; }
.cta-band { margin-top: 44px; padding: 34px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(182,111,221,.28), rgba(95,212,255,.14)); border: 1px solid rgba(182,111,221,.4); }
.cta-band h2 { margin: 0 0 4px; }

/* ---------- footer */
.p-foot { border-top: 1px solid var(--stroke); margin-top: 30px; }
.p-foot-in { max-width: 1240px; margin: 0 auto; padding: 26px 20px 40px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; color: var(--faint); font-size: 13.5px; }
.p-foot a { color: var(--muted); }
.p-seal { display: inline-block; margin-top: 14px; border-radius: 8px; line-height: 0; }
.p-seal img { display: block; width: 84px; height: 84px; }
.p-seal:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- good to know */
.gtk { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 700px) { .gtk { grid-template-columns: minmax(0,1fr); } }
.gtk-item { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); }
.gtk-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); font-size: 18px; }
.gtk-item b { display: block; margin-bottom: 2px; }
.gtk-item p, .gtk-text { margin: 0; color: var(--muted); font-size: 14px; }
.gtk-text p { margin: 0 0 .5em; } .gtk-text p:last-child { margin: 0; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); color: var(--ink); }
.fb-list a:hover { text-decoration: none; border-color: rgba(95,212,255,.45); }
.fb-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; font-weight: 800; font-family: Georgia, serif; }

/* ---------- foster & volunteer */
.paths { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-top: 8px; }
.path { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.path h3 { font-family: var(--display); font-size: 1.55rem; margin: 0; letter-spacing: -.01em; }
.path p, .path .pp { color: var(--muted); margin: 0; }
.path .btn { align-self: flex-start; margin-top: 6px; }
.path .big-ic { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--glass2); border: 1px solid var(--stroke); }
.path::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--grad-soft); filter: blur(60px); opacity: .22; pointer-events: none; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #0b1220; background: var(--mint); margin-top: 2px; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.role { padding: 18px 18px 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); }
.role b { display: block; margin-bottom: 4px; }
.role p { margin: 0; color: var(--muted); font-size: 14.5px; }
.role .ic { font-size: 22px; margin-bottom: 8px; display: block; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.2); cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ink); }
.picks input { accent-color: var(--cyan); width: 16px; height: 16px; margin: 0; }
.picks label:has(input:checked) { border-color: var(--cyan); background: rgba(95,212,255,.12); }
.faq details { border-bottom: 1px solid var(--stroke); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.thanks-card { text-align: center; padding: 40px 24px; }
.thanks-card .big-ic { font-size: 40px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0,1fr); } }
.powered { margin-top: 34px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--stroke2);
  background: linear-gradient(135deg, rgba(182,111,221,.18), rgba(95,212,255,.10)); }
.powered-n { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.powered .pp { margin: 0; color: var(--ink); font-size: clamp(1.02rem, 1.8vw, 1.25rem); }
a.powered:hover { text-decoration: none; border-color: var(--cyan); }
.powered strong { color: var(--ink); }

/* ---------- about / faq / donate / contact */
.about-hero { padding: 34px 0 6px; max-width: 46em; }
.about-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin-bottom: 16px; }
.about-hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-top: 30px; }
.stat { padding: 20px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
.prose h2 { margin-top: 0; }
.prose p { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--stroke2); display: grid; gap: 16px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline li.now::before { background: var(--grad-soft); border-color: transparent; }
.timeline time { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.timeline span { color: var(--ink); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.bar { display: flex; flex-direction: column; text-align: center; }
.bar-col { height: 200px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; border-bottom: 1px solid var(--stroke2); }
.bar-n { font-size: 13px; font-weight: 700; color: var(--ink); }
.bar-fill { width: min(56px, 70%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), var(--violet)); min-height: 3px; }
.bar:hover .bar-fill { filter: brightness(1.2); }
.bar-y { font-size: 13px; color: var(--muted); padding-top: 6px; min-height: 36px; }
.bar-y small { display: block; font-size: 11px; color: var(--faint); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.person { margin: 0; max-width: 340px; width: 100%; justify-self: center; border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person figcaption { padding: 14px 16px 16px; display: grid; gap: 2px; }
.person figcaption span { color: var(--muted); font-size: 14px; }
.faq-tools { display: grid; gap: 12px; margin: 22px 0; }
.faq-tools input { width: 100%; max-width: 520px; padding: 13px 16px; border-radius: 999px; background: rgba(0,0,0,.25); color: var(--ink); border: 1px solid var(--stroke2); font: inherit; }
.faq-tools input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,212,255,.18); }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jump a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--muted); font-size: 14px; }
.faq-jump a:hover { color: var(--ink); background: var(--glass2); text-decoration: none; }
.faq-groups { display: grid; gap: 16px; }
.faq-groups > section { scroll-margin-top: 90px; }
.faq h2 { margin-top: 0; font-size: 1.3rem; }
.give { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 24px; }
.give-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
a.give-card:hover { text-decoration: none; border-color: var(--stroke2); transform: translateY(-2px); }
.give-card { transition: transform .15s, border-color .15s; }
.give-card > span:not(.btn):not(.big-ic) { color: var(--muted); font-size: 14.5px; flex: 1; }
.give-card .btn { align-self: flex-start; margin-top: 6px; }
.give-card .big-ic { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--glass2); border: 1px solid var(--stroke); }
.give-card.main { background: linear-gradient(135deg, rgba(182,111,221,.22), rgba(95,212,255,.10)); border-color: var(--stroke2); }
.p-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 28px 44px; }
.p-foot-cols b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 8px; }
.p-foot-cols a { display: block; padding: 3px 0; }
@media (max-width: 760px) { .p-foot-cols { grid-template-columns: 1fr 1fr; } .bars { gap: 6px; } .bar-col { height: 160px; } .bar-n { font-size: 11.5px; } }
.lead p, .muted > p:last-child { margin: 0 0 .7em; } .lead p:last-child { margin-bottom: 0; }

.faq-a { color: var(--muted); margin: 10px 0 0; }
.faq-a p { margin: 0 0 .7em; } .faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: .3em 0 .7em; padding-left: 1.3em; }
.pp p { margin: 0 0 .6em; } .pp p:last-child { margin: 0; }
/* staff: preview bar and edit button on public pages */
.site-preview { position: sticky; top: 0; z-index: 60; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 10px 16px; background: #ffc561; color: #1b1300; font-weight: 600; font-size: 14px; }
.site-preview a, .site-preview button { color: #1b1300; }
.site-preview .btn { background: #1b1300; color: #ffc561; border: 0; }
.site-edit { position: fixed; right: 18px; bottom: 18px; z-index: 50; box-shadow: var(--shadow); }

/* ---------- the volunteer name river */
.river { position: relative; margin-top: 34px; height: clamp(300px, 34vw, 380px); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); background: radial-gradient(120% 90% at 50% 50%, rgba(182,111,221,.10), transparent 70%), rgba(255,255,255,.02); isolation: isolate; }
.river-lanes { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.river-lane { overflow: hidden; white-space: nowrap; }
.river-track { display: inline-flex; gap: 0; animation: river-drift 90s linear infinite; will-change: transform; }
.river.paused .river-track, .river-lanes.still .river-track { animation-play-state: paused; }
@keyframes river-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.river-name { position: relative; display: inline-block; padding: 0 .9em; color: rgba(255,255,255,.13); font-weight: 450; letter-spacing: .01em; transition: color 1.4s ease; }
.river-lane.l0 .river-name { font-size: 15px; }
.river-lane.l1 .river-name { font-size: 22px; font-family: var(--display); }
.river-lane.l2 .river-name { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.river-lane.l3 .river-name { font-size: 18px; }
.river-name::after { content: attr(data-n); position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; font-weight: 800;
  color: #fff; opacity: 0; transition: opacity 1.4s ease, text-shadow 1.4s ease; text-shadow: 0 0 0 rgba(95,212,255,0); pointer-events: none; }
.river-name.lit { color: rgba(255,255,255,0); }
.river-name.lit::after { opacity: 1; text-shadow: 0 0 18px rgba(95,212,255,.55), 0 0 2px rgba(182,111,221,.6); }
.river-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(520px, calc(100% - 32px));
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 26px; border-radius: var(--radius);
  background: rgba(11,18,32,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--stroke2); color: var(--ink); box-shadow: var(--shadow); }
.river-card:hover { text-decoration: none; border-color: var(--cyan); }
.river-n { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.river-text { font-size: clamp(1rem, 1.8vw, 1.2rem); }
.river-text strong { color: #fff; }
.river-card .btn { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .river-name, .river-name::after { transition-duration: 2.4s; } }
.river-name.lit::after { text-shadow: 0 0 22px rgba(95,212,255,.75), 0 0 3px rgba(182,111,221,.8); }
@media (max-width: 640px) {
  .river { height: 440px; }
  .river-card { width: calc(100% - 64px); padding: 16px 18px; gap: 4px; }
  .river-n { font-size: 2.4rem; }
  .river-text { font-size: .98rem; }
}

/* ---------- donate / planned giving */
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; margin-top: 30px; }
@media (max-width: 900px) { .give-grid { grid-template-columns: minmax(0, 1fr); } }
.give-form { display: grid; gap: 12px; }
.give-form .field { margin-bottom: 0; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; font-weight: 650; color: var(--muted); transition: background .15s, color .15s; }
.seg2 input:checked + span { background: var(--grad); color: #fff; }
.seg2 input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.seg2.small span { padding: 7px 10px; font-size: 14px; }
.amounts { border: 0; margin: 0; padding: 0; min-width: 0; }
.amt-set { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.amt-set[hidden] { display: none; }
@media (max-width: 480px) { .amt-set { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.amt-set label { position: relative; cursor: pointer; }
.amt-set input { position: absolute; opacity: 0; pointer-events: none; }
.amt-set span { display: block; text-align: center; padding: 13px 4px; border-radius: 14px; border: 1px solid var(--stroke2); background: rgba(0,0,0,.2); font-weight: 750; font-size: 1.05rem; }
.amt-set span small { font-size: .7em; font-weight: 600; color: var(--muted); }
.amt-set input:checked + span { border-color: var(--cyan); background: rgba(95,212,255,.14); box-shadow: 0 0 0 3px rgba(95,212,255,.15); }
.amt-set input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dollar { position: relative; }
.dollar span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dollar input { padding-left: 26px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--cyan); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.check b { color: var(--ink); }
.tribute { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); }
.tribute[hidden] { display: none; }
.more-fields summary { cursor: pointer; color: var(--cyan); font-size: 14.5px; }
.picks.col { flex-direction: column; align-items: stretch; }
.picks.col label { border-radius: 14px; }
.picks input[type=radio] { accent-color: var(--cyan); width: 16px; height: 16px; margin: 0; }
.bequest { margin: 14px 0 12px; padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; background: rgba(0,0,0,.25);
  font-family: var(--display); font-size: 1.05rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.cta-band.legacy { background: linear-gradient(135deg, rgba(182,111,221,.28), rgba(95,212,255,.10)), var(--glass); }
.packet-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); font-size: 14px; color: var(--muted); }
.pay-by span { font-size: 13.5px; }
@media (max-width: 480px) { .pay-by { grid-template-columns: 1fr; border-radius: 18px; } .pay-by span { border-radius: 14px; } }

/* ---------- fundraising campaigns */
.camp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 30px; align-items: start; }
@media (max-width: 960px) { .camp { grid-template-columns: minmax(0, 1fr); } .camp-side { order: -1; } }
.camp-side { position: sticky; top: 86px; display: grid; gap: 14px; }
@media (max-width: 960px) { .camp-side { position: static; } }
.camp-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 16 / 9; background: var(--bg2); }
.camp-photo img { width: 100%; height: 100%; object-fit: cover; }
.camp-story { margin-top: 20px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
.share .chip { cursor: pointer; font: inherit; font-size: 12.5px; background: transparent; color: var(--ink); }
.progress-card .raised b { font-family: var(--display); font-size: 2.4rem; line-height: 1; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress-card .raised span { display: block; color: var(--muted); margin-top: 4px; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 14px; }
.bar-done { height: 100%; border-radius: 999px; background: var(--grad-soft); min-width: 4px; }
.prog-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 14px; }
.prog-meta b { color: var(--ink); }
.match { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,197,97,.10); border: 1px solid rgba(255,197,97,.3); font-size: 14px; }
.updates { display: grid; gap: 14px; }
.update { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--stroke); }
.update h3 { margin: 4px 0 6px; }
.board { display: grid; gap: 8px; }
.board-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); color: var(--ink); }
.board-row:hover { text-decoration: none; border-color: var(--stroke2); }
.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wall li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); font-size: 14.5px; }
.wall-note { flex-basis: 100%; color: var(--muted); font-style: italic; }
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; }
.camp-card { display: block; overflow: hidden; color: var(--ink); padding: 0; }
.camp-card:hover { text-decoration: none; border-color: var(--stroke2); }
.camp-card-ph { aspect-ratio: 16 / 9; background: var(--bg2); }
.camp-card-ph img { width: 100%; height: 100%; object-fit: cover; }
.camp-card-t { font-size: 1.1rem; }
.camp .give-form { margin: 0; }

/* ---------- auctions */
.bidbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.bidbar-t { display: grid; color: var(--ink); } .bidbar-t:hover { text-decoration: none; }
.bidbar-me { font-size: 14px; color: var(--muted); } .bidbar-me b { color: var(--ink); }
.auc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; }
@media (max-width: 700px) { .auc-head { grid-template-columns: minmax(0, 1fr); } }
.auc-clock { display: grid; gap: 2px; text-align: center; min-width: 220px; }
.auc-clock b { font-family: var(--display); font-size: 1.8rem; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 24px; }
.lot { display: block; overflow: hidden; padding: 0; color: var(--ink); }
.lot:hover { text-decoration: none; border-color: var(--stroke2); }
.lot-ph { position: relative; aspect-ratio: 4 / 3; background: var(--bg2); }
.lot-ph img { width: 100%; height: 100%; object-fit: cover; }
.lot-no { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(11,18,32,.75); font-size: 12.5px; font-weight: 700; }
.lot-flag { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lot-flag.win { background: var(--mint); color: #062; }
.lot-flag[hidden] { display: none; }
.lot-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.lot-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.lot-time { font-size: 13px; }
.soon { color: var(--amber) !important; font-weight: 700; }
.pkgs { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.pkgs span small { display: block; }
.tix { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tix span { padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--cyan); font-family: var(--display); font-size: 1.3rem; }
.npn { margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(69,224,160,.35); background: rgba(69,224,160,.08); font-weight: 700; font-size: 14.5px; }

/* MAD's payment step (Stripe Payment Element, embedded) */
.pay-sum { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.pay-sum th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 0; }
.pay-sum td { text-align: right; padding: 7px 0; }
.pay-sum tr + tr th, .pay-sum tr + tr td { border-top: 1px solid var(--stroke); }
.pay-sum tr.tot th, .pay-sum tr.tot td { color: var(--ink); font-weight: 700; font-size: 17px; }
#payment-element { min-height: 120px; margin: 0 0 16px; }
.pay-btn { width: 100%; justify-content: center; font-size: 17px; padding: 15px 18px; }
.pay-btn[disabled] { opacity: .6; cursor: progress; }
.pay-foot { font-size: 13px; margin: 14px 0 0; }

/* Full-width buttons carry long labels (dog names like "Pokemon- Baby Rockruff (Green)"): wrap inside the pill */
.btn-block { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; overflow-wrap: anywhere; }
.btn-block.btn-lg { border-radius: 28px; }

/* Dropdowns in the site's style (static/reimbursements/js/portal_ui.js) */
.ms { position: relative; }
.ms-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; bottom: 0; left: 0; }
.ms-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 11px 44px 11px 14px;
  background: rgba(0,0,0,.25); color: var(--ink); border: 1px solid var(--stroke2); border-radius: 12px; font: 500 15.5px/1.3 var(--font);
  text-align: left; cursor: pointer; position: relative; }
.ms-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.ms.open .ms-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.ms-btn:hover { border-color: rgba(255,255,255,.32); }
.ms-btn:focus-visible, .ms.open .ms-btn { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,212,255,.18); }
.ms-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters .ms-btn { min-height: 42px; border-radius: 999px; padding: 9px 38px 9px 16px; font-size: 14.5px; background: rgba(255,255,255,.07); }
.filters .ms { min-width: 130px; }
.ms-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto;
  background: #141c31; border: 1px solid var(--stroke2); border-radius: 14px; box-shadow: var(--shadow); }
.filters .ms-list { min-width: 200px; }
.ms-list ul { list-style: none; margin: 0; padding: 0; }
.ms-glabel { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ms-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font: 500 15px/1.3 var(--font); color: var(--ink); }
.ms-opt small { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.ms-opt.on { background: var(--glass2); }
.ms-opt[aria-selected="true"] { color: #fff; }
.ms-opt[aria-selected="true"]::after { content: "✓"; color: var(--cyan); font-weight: 700; margin-left: auto; }
.ms-opt[aria-selected="true"] small { margin-left: auto; }

/* Toggles instead of checkboxes (every yes/no choice on the public site) */
.check input[type=checkbox], input[type=checkbox][role=switch] { -webkit-appearance: none; appearance: none; flex: none; position: relative;
  width: 42px; height: 24px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--stroke2);
  cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.check input[type=checkbox]::before, input[type=checkbox][role=switch]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .18s ease; }
.check input[type=checkbox]:checked, input[type=checkbox][role=switch]:checked { background: var(--grad-soft); border-color: transparent; }
.check input[type=checkbox]:checked::before, input[type=checkbox][role=switch]:checked::before { transform: translateX(18px); }
.check input[type=checkbox]:focus-visible, input[type=checkbox][role=switch]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { align-items: center; }
@media (prefers-reduced-motion: reduce) { .check input[type=checkbox], .check input[type=checkbox]::before, .ms-btn::after { transition: none; } }
@media (forced-colors: active) { .check input[type=checkbox], input[type=checkbox][role=switch] { border: 1px solid CanvasText; }
  .check input[type=checkbox]:checked::before, input[type=checkbox][role=switch]:checked::before { background: Highlight; } }

/* Multi-pick chips: the chip is the control; no browser checkbox inside */
.picks input { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 50%; border: 1.5px solid var(--stroke2);
  display: grid; place-content: center; flex: none; }
.picks input:checked { border-color: var(--cyan); background: var(--cyan); }
.picks input:checked::after { content: ""; width: 5px; height: 8px; border: solid #0b1020; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.picks input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* Fundraisers in "Give to": name, progress toward the goal, raised/goal and end date */
.ms-opt.ms-rich { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name tick" "bar bar" "hint hint"; row-gap: 6px; }
.ms-rich .ms-name { grid-area: name; }
.ms-rich .ms-bar { grid-area: bar; display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ms-rich .ms-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-soft); min-width: 6px; }
.ms-rich small { grid-area: hint; margin-left: 0 !important; white-space: normal; }
.ms-opt.ms-rich[aria-selected="true"]::after { grid-area: tick; }
.ext-give { padding: 16px 18px; margin: 4px 0 6px; border-radius: 16px; }
.give-rest[hidden], .ext-give[hidden] { display: none; }
.give-form [hidden] { display: none !important; }

/* Fundraiser progress, counted up as it comes into view (portal_ui.js) */
.bar-track { position: relative; }
.bar-track.milestones i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(11,18,32,.55); pointer-events: none; }
.bar-done { position: relative; overflow: hidden; }
.bar-done.filling::after, .bar-done.filled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%); animation: bar-shine 1.6s ease-in-out .2s 2; }
@keyframes bar-shine { to { transform: translateX(100%); } }
.raised b[data-count], .pct-line b, .prog-meta b[data-count] { font-variant-numeric: tabular-nums; }
.pct-line { margin-top: 8px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pct-line b { color: var(--ink); }
.goal-hit { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(69,224,160,.14); border: 1px solid rgba(69,224,160,.45); color: var(--mint); font-weight: 650; font-size: 13px; }
.goal-hit.waiting { opacity: 0; transform: scale(.6); }
.goal-hit.pop { animation: goal-pop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes goal-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bar-done::after { display: none; } .goal-hit.pop { animation: none; } }

/* Home photos that rotate (portal_ui.js) */
.hero-art a.ph { display: block; color: inherit; text-decoration: none; }
.hero-art .ph img { position: absolute; inset: 0; }
.hero-art .ph img.ph-in { opacity: 0; transition: opacity .85s ease; }
.hero-art .ph img.ph-in.on { opacity: 1; }
.hero-art .ph-name { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(11,18,32,.72);
  backdrop-filter: blur(6px); font-weight: 650; font-size: 14px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.hero-art .ph:hover .ph-name, .hero-art .ph:focus-visible .ph-name { opacity: 1; transform: none; }
.hero-art .ph:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.ph-pause { position: absolute; left: 0; bottom: -6px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(11,18,32,.7); color: var(--ink); border: 1px solid var(--stroke2); font: 600 12.5px/1 var(--font); cursor: pointer; z-index: 3; }
.ph-pause:hover { background: rgba(11,18,32,.9); }
.ph-pause:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ph-pause-ic { font-size: 10px; letter-spacing: -1px; }
@media (prefers-reduced-motion: reduce) { .hero-art .ph img.ph-in { transition: none; } }

/* Volunteer onboarding */
.ob-wrap { max-width: 760px; margin: 20px auto 0; }
.ob-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.ob-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--muted); font-size: 14px; }
.ob-steps li.now { border-color: var(--cyan); color: var(--ink); background: rgba(95,212,255,.08); font-weight: 650; }
.ob-steps li.done { color: var(--ink); }
.ob-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--glass2); font-size: 13px; font-weight: 700; }
.ob-steps li.now .ob-n, .ob-steps li.done .ob-n { background: var(--grad); color: #fff; }
.ob-card h2 { margin: 0 0 8px; font-size: 1.35rem; } .ob-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.ob-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 10px; }
@media (max-width: 640px) { .ob-form { grid-template-columns: minmax(0, 1fr); } }
.ob-wide { grid-column: 1 / -1; } .ob-form fieldset { border: 0; padding: 0; margin: 0; } .ob-form legend { font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.ob-list { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 10px; } .ob-ok { color: var(--mint); font-weight: 800; }
.ob-addr { display: flex; align-items: stretch; border: 1px solid var(--stroke2); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); max-width: 520px; }
.ob-addr input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 600 17px/1 var(--font); padding: 13px 14px; outline: none; }
.ob-addr span { padding: 13px 14px; color: var(--muted); background: rgba(255,255,255,.05); white-space: nowrap; }
.ob-addr:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,212,255,.18); }
.ob-pw { margin: 12px 0; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--amber); background: rgba(255,197,97,.07); }
.ob-pw code { display: block; font-size: 22px; letter-spacing: .06em; margin-top: 4px; user-select: all; }
.ob-howto { padding-left: 20px; } .ob-howto li { margin: 8px 0; }
.ob-hr { border: 0; border-top: 1px solid var(--stroke); margin: 20px 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }

/* skip link: first thing a keyboard user reaches; visible only when focused (WCAG 2.4.1) */
.skip-link{position:absolute;left:12px;top:-60px;z-index:10000;padding:10px 16px;border-radius:10px;background:#470A68;color:#fff !important;font-weight:600;text-decoration:none;}
.skip-link:focus{top:12px;outline:3px solid #b66fdd;outline-offset:2px}
main[tabindex="-1"]:focus{outline:none}

/* visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* File uploads: our own button instead of the browser's grey "Choose Files" */
.field input[type="file"], input[type="file"].themed { padding: 8px; min-height: 0; cursor: pointer; color: var(--muted); font: 500 14px/1.4 var(--font); }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 0 16px; min-height: 36px; border-radius: 999px; border: 1px solid var(--stroke2);
  background: var(--glass2); color: var(--ink); font: 650 13.5px/1 var(--font); cursor: pointer; transition: background .2s ease; }
input[type="file"]:hover::file-selector-button { background: rgba(255,255,255,.14); }
input[type="file"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* MyMAD (adopter & foster portal) */
.mm-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 14px; }
.mm-logo { width: min(420px, 90vw); height: auto; display: block; }
.mm-hi { flex: 1 1 260px; }
.mm-hi h1 { margin: 0 0 8px; }
.mm-roles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-actions form { margin: 0; }
.mm-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 14px; scrollbar-width: thin; }
.mm-jump a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--stroke2); background: var(--glass); color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.mm-jump a:hover { background: var(--glass2); text-decoration: none; }
.auth .mm-logo { margin: 0 auto 14px; }
[id^="mm-"] { scroll-margin-top: 84px; }
@media (max-width: 640px) { .mm-head { gap: 12px; } .mm-logo { width: 100%; } }
.mm-next { font-size: 1.05rem; line-height: 1.5; }
.mm-thread { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 14px; }
.mm-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: var(--glass2); border: 1px solid var(--stroke); }
.mm-msg.mine { align-self: flex-end; background: rgba(182,111,221,.16); border-color: rgba(182,111,221,.35); }
.mm-who { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.mm-body { white-space: pre-wrap; }
.mm-file { font-size: 14px; margin-top: 4px; }
.mm-send textarea { width: 100%; }
