@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* DESIGN CONTRACT — "One thought per screen".
   THESIS: a serious, quiet page: white, one ink colour, one accent; each block is a full screen with a single message. No pills, 3D buttons, glows or shimmer.
   OWN-WORLD: white / pale-grey screens, rose (#BA486E) as the only accent and the only button colour, brick red only for the urgency bar; Plus Jakarta Sans 18px, large numerals.
   STORY: fund intro -> today's case (dog) -> give + raised -> where it goes -> triage / donors.
   FIRST VIEWPORT: fund brand + one line mission + CTA into the case.
   FORM: editorial screens; case screen carries the patient photo. */
:root {
  color-scheme: light;
  --bg: #fff; --alt: #F4F6F6; --white: #fff; --line: #D5DDDF; --ink: #14232B; --ink-soft: #4B5B63;
  --accent: #BA486E; --accent-hover: #993B5A; --accent-soft: #F8EDF0;
  --alert: #A82F17; --good: #1F7A4D;
  --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --fs-xs: .875rem; --fs-sm: 1rem; --fs-base: 1.125rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 2rem; --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --radius: 10px; --tap: 60px; --max: 1080px; --narrow: 600px; --gutter: 20px;
  --banner-h: 48px; --header-h: 68px;
}
*,*::before,*::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--banner-h) + var(--header-h)) }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.65 var(--body); padding-bottom: calc(var(--tap) + 40px + env(safe-area-inset-bottom)) }
img { max-width: 100%; height: auto; display: block }
svg { display: block; flex: none; overflow: visible }
button { font: inherit; color: inherit; cursor: pointer }
a { color: var(--accent); text-underline-offset: .2em }
a:hover { color: var(--accent-hover) }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px }
.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 }
.hidden { display: none !important }
.num, .mono { font-variant-numeric: tabular-nums; font-weight: 800 }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) }
.narrow { max-width: var(--narrow) }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; color: var(--ink); letter-spacing: -.02em; text-wrap: balance }
h1 { font-size: var(--fs-3xl); line-height: 1.08 }
h2 { font-size: var(--fs-2xl); line-height: 1.15 } h3 { font-size: var(--fs-xl); line-height: 1.25 }
.lead { color: var(--ink-soft); font-size: var(--fs-lg); line-height: 1.6; max-width: 34rem }
.kicker { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); line-height: 1.5 }
.card { background: transparent; padding: 0 }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700 }
.chip-red { color: var(--alert) } .chip-green { color: var(--good) } .chip-sky { color: var(--accent) }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--alert); flex: none }
.live-bang {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #E02424;
  animation: liveBangPulse 1.35s ease-in-out infinite;
}
.live-bang svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}
@keyframes liveBangPulse {
  0%, 100% { color: #B91C1C; filter: brightness(.85) }
  50% { color: #FF2A2A; filter: brightness(1.15) }
}
@media (prefers-reduced-motion: reduce) {
  .live-bang { animation: none; color: #E02424; filter: none }
}
#surgeonsOnDuty { font-style: italic }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent; font: 700 var(--fs-base)/1.2 var(--display); text-decoration: none; text-align: center; transition: background .15s, color .15s }
.btn:disabled { opacity: .55; cursor: progress }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff }
.btn-secondary { background: #fff; border-color: var(--accent); color: var(--accent) }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent) }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink) }
.btn-outline:hover { background: var(--alt) }
.btn-block { width: 100% }
.btn-sm { min-height: 46px; padding: 8px 20px }
.close-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--alt); color: var(--ink); display: grid; place-items: center; z-index: 2 }
.topbar { position: sticky; top: 0; z-index: 50 }
.deadline { background: #C1121F; color: #fff; padding-top: env(safe-area-inset-top) }
.deadline.dismissed { display: none }
.deadline .wrap { display: flex; align-items: center; gap: var(--s-3); min-height: var(--banner-h); font-size: var(--fs-sm); font-weight: 600; position: relative }
.deadline .live-dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.28);
  animation: deadlineDot 1.2s ease-in-out infinite;
}
@keyframes deadlineDot {
  0%, 100% { opacity: 1; transform: scale(1) }
  50% { opacity: .5; transform: scale(.85) }
}
@media (prefers-reduced-motion: reduce) { .deadline .live-dot { animation: none } }
.deadline-hit {
  display: flex;
  align-items: center;
  gap: inherit;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}
.deadline-hit:hover { color: #fff; filter: brightness(1.06) }
.deadline-hit:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
.deadline .dl-title { margin: 0; flex: 1; line-height: 1.25; min-width: 0 }
.deadline .timer { color: #fff; font-size: var(--fs-base); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 800 }
.site-header { background: #fff; border-bottom: 1px solid var(--line) }
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h) }
.logo { display: flex; align-items: center; gap: 12px; font: 800 var(--fs-base)/1.15 var(--display); color: var(--ink); text-decoration: none; flex: 1; min-width: 0 }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  padding: 0;
}
.logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover }
.logo small { display: block; font: 500 var(--fs-xs)/1.3 var(--body); color: var(--ink-soft) }
.header-trust {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: min(42vw, 14rem);
  font: 600 var(--fs-sm)/1.25 var(--body);
  color: var(--ink-soft);
}
.header-trust > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
@media (min-width: 900px) { .header-trust { display: flex } }

/* One screen = one thought */
.screen { min-height: calc(100svh - var(--banner-h) - var(--header-h)); display: flex; align-items: center; padding: var(--s-7) 0; border-bottom: 1px solid var(--line) }
.screen > .wrap { display: block }
.screen.alt { background: var(--alt) }
.screen h2 { margin-bottom: var(--s-5) }
/* Full-bleed fund hero — fills the first viewport under sticky chrome */
.hero {
  --hero-chrome: calc(var(--banner-h) + var(--header-h));
  position: relative;
  box-sizing: border-box;
  min-height: calc(100svh - var(--hero-chrome));
  min-height: calc(100dvh - var(--hero-chrome));
  min-height: calc(100lvh - var(--hero-chrome));
  height: calc(100svh - var(--hero-chrome));
  height: calc(100dvh - var(--hero-chrome));
  height: calc(100lvh - var(--hero-chrome));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 clamp(1.25rem, 3.5svh, 2.25rem);
  border-bottom: 0;
  overflow: hidden;
  color: #fff;
}
.hero-bleed {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--ink);
}
.hero-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.88) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.18) 72%, rgba(10,10,10,0) 100%);
  pointer-events: none;
}
.screen > .wrap.hero-copy {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--max);
  padding: 0 var(--gutter) 0;
  margin-top: auto;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.85) }
.hero h1, .hero-brand {
  margin: 0 0 var(--s-3);
  color: #fff;
  font: 800 clamp(2rem, 1.55rem + 3.2vw, 3.5rem)/1.08 var(--display);
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
  max-width: 16ch;
}
.hero .lead {
  margin: 0 0 var(--s-5);
  color: rgba(255,255,255,.92);
  max-width: 34rem;
  font-size: clamp(1rem, .92rem + .4vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0,0,0,.22);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-4);
  width: 100%;
  max-width: 22rem;
}
.hero .btn-primary {
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  width: 100%;
}
.hero-progress {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.hero-progress-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font: 700 .8125rem/1.3 var(--display);
  color: #fff;
  margin-bottom: 8px;
}
.hero-progress-row .hero-left { color: rgba(255,255,255,.88); font-weight: 600 }
.hero-progress .track {
  height: 8px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: hidden;
}
.hero-progress .fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: inherit;
  transition: width .6s ease;
}
/* Case screen — dark, name/status/need left, white-framed photo */
/* Browser-tab patient switcher: white bar; selected = black tab into case */
.patient-picker {
  background: #fff;
  border-bottom: 0;
  /* Extra white above the tab row (inactive text / active melting tab) */
  padding: 48px 10px 0;
  margin: 0;
  position: relative;
  z-index: 4;
  overflow: visible;
}
.patient-picker > .wrap.patient-picker-inner,
.patient-picker-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  width: 100%;
  max-width: var(--max);
  min-height: 0;
  padding: 0 var(--gutter);
  margin: 0 auto;
  overflow: visible;
}
.patient-chip {
  appearance: none;
  border: 0;
  margin: 0;
  width: 100%;
  min-height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #0A0A0A;
  font: 800 1rem/1.1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 12px 16px;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.patient-chip:hover {
  background: transparent;
  color: #0A0A0A;
  text-decoration: underline;
  text-underline-offset: .18em;
}
/* Active dog tab: same r/size as .case-help, inverted colors + same concave bites */
.patient-chip.is-active {
  --patient-tab-r: 18px;
  background: #0A0A0A;
  color: #fff;
  min-height: 64px;
  padding: 14px 28px 12px;
  font: 800 1rem/1.1 var(--display);
  border-radius: var(--patient-tab-r) var(--patient-tab-r) 0 0;
  z-index: 2;
  text-decoration: none;
  overflow: visible;
}
/* Outward black shoulders (same color as tab) into the white bar — not white inward bites */
.patient-chip.is-active::before,
.patient-chip.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--patient-tab-r);
  height: var(--patient-tab-r);
  background: #0A0A0A;
  pointer-events: none;
  z-index: 1;
}
.patient-chip.is-active::before {
  left: calc(var(--patient-tab-r) * -1);
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--patient-tab-r), #000 calc(var(--patient-tab-r) + 0.5px));
  mask: radial-gradient(circle at 0 0, transparent var(--patient-tab-r), #000 calc(var(--patient-tab-r) + 0.5px));
}
.patient-chip.is-active::after {
  right: calc(var(--patient-tab-r) * -1);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--patient-tab-r), #000 calc(var(--patient-tab-r) + 0.5px));
  mask: radial-gradient(circle at 100% 0, transparent var(--patient-tab-r), #000 calc(var(--patient-tab-r) + 0.5px));
}
.patient-chip.is-active:hover,
.patient-chip.is-active:focus-visible {
  background: #0A0A0A;
  color: #fff;
  text-decoration: none;
}
.case-screen {
  --case-frame: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #0A0A0A;
  color: #fff;
  border-bottom: 0;
  min-height: calc(100svh - var(--banner-h) - var(--header-h));
  min-height: calc(100dvh - var(--banner-h) - var(--header-h));
  padding: 0;
  position: relative;
}
.case-screen > .wrap.case-grid {
  padding-top: var(--s-6);
}
.case-help {
  --case-help-r: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  margin-top: auto;
  margin-bottom: 0;
  width: min(100%, 280px);
  min-height: 64px;
  padding: 14px 28px 12px;
  background: #fff;
  color: #0A0A0A;
  text-decoration: none;
  font: 800 1rem/1.1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 0;
  /* Top convex; bottom inverse fillets via ::before/::after */
  border-radius: var(--case-help-r) var(--case-help-r) 0 0;
  box-shadow: none;
  position: relative;
  z-index: 3;
  overflow: visible;
}
/* Outward white shoulders (same color as tab) into the black case — melt into #give */
.case-help::before,
.case-help::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--case-help-r);
  height: var(--case-help-r);
  background: #fff;
  pointer-events: none;
  z-index: 1;
}
.case-help::before {
  left: calc(var(--case-help-r) * -1);
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--case-help-r), #000 calc(var(--case-help-r) + 0.5px));
  mask: radial-gradient(circle at 0 0, transparent var(--case-help-r), #000 calc(var(--case-help-r) + 0.5px));
}
.case-help::after {
  right: calc(var(--case-help-r) * -1);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--case-help-r), #000 calc(var(--case-help-r) + 0.5px));
  mask: radial-gradient(circle at 100% 0, transparent var(--case-help-r), #000 calc(var(--case-help-r) + 0.5px));
}
.case-help span { font-weight: 800; position: relative; z-index: 2 }
.case-help svg {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
  stroke-width: 2.8;
  animation: case-help-bounce 1.8s ease-in-out infinite;
}
.case-screen { overflow: visible }
#give {
  background: #fff;
  border-top: 0;
  margin-top: 0;
}
@keyframes case-help-bounce {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(4px) }
}
@media (prefers-reduced-motion: reduce) {
  .case-help svg { animation: none }
}
.screen > .wrap.case-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  padding-bottom: var(--s-6);
}
.case-copy { min-width: 0 }
.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-5);
}
.case-head .case-field { margin: 0 }
.case-field-name { flex: 1 1 10rem; min-width: 0 }
.case-field-condition { flex: 0 1 auto }
.case-name {
  margin: 0;
  font: 800 clamp(2.25rem, 1.7rem + 3vw, 3.5rem)/1.05 var(--display);
  letter-spacing: -.03em;
  color: #fff;
}
.case-field { margin: 0 0 var(--s-4) }
.case-label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.case-value {
  margin: 0;
  max-width: 34rem;
}
.case-lead {
  display: block;
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}
.case-detail {
  display: block;
  margin: 0;
  font-size: clamp(.9rem, .85rem + .25vw, 1.05rem);
  font-weight: 450;
  line-height: 1.55;
  color: rgba(255,255,255,.52);
}
.case-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.case-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.04);
}
.case-level .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
  opacity: .55;
}
.case-level[data-level="good"] { color: rgba(74, 196, 132, .45) }
.case-level[data-level="warned"] { color: rgba(232, 196, 74, .45) }
.case-level[data-level="critical"] { color: rgba(232, 92, 92, .45) }
.case-level.is-active {
  color: #fff;
  border-color: currentColor;
  background: rgba(255,255,255,.06);
}
.case-level.is-active[data-level="good"] {
  color: #4AC484;
  border-color: #4AC484;
  background: rgba(74, 196, 132, .12);
}
.case-level.is-active[data-level="warned"] {
  color: #E8C44A;
  border-color: #E8C44A;
  background: rgba(232, 196, 74, .12);
}
.case-level.is-active[data-level="critical"] {
  color: #E85C5C;
  border-color: #E85C5C;
  background: rgba(232, 92, 92, .14);
}
.case-level.is-active .dot { opacity: 1; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.08) }
.case-figure {
  margin: 0;
  display: flex;
  justify-content: flex-start;
}
.case-frame {
  box-sizing: border-box;
  width: var(--case-frame);
  height: var(--case-frame);
  flex: 0 0 var(--case-frame);
  padding: 12px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.case-photo {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}
.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone / small tablet (primary) */
@media (max-width: 899px) {
  .deadline .wrap { gap: var(--s-2); font-size: .8125rem; align-items: flex-start; padding-top: 8px; padding-bottom: 8px }
  .deadline-hit { align-items: flex-start }
  .deadline .dl-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .deadline .timer { font-size: .9375rem; padding-top: 2px }
  .deadline .live-dot { margin-top: 5px }
  .logo small { display: none }
  .header-inner { min-height: 56px; gap: var(--s-3) }
  .site-header .btn-sm { min-height: 42px; padding: 8px 14px; font-size: var(--fs-sm) }

  .hero { padding-bottom: clamp(1rem, 2.5svh, 1.75rem) }
  .hero-bleed img { object-position: center 35% }
  .screen > .wrap.hero-copy { padding: 0 var(--gutter) }

  .screen:not(.hero):not(.case-screen) { min-height: auto; padding: var(--s-6) 0; align-items: flex-start }
  .case-screen { --case-frame: 280px; padding: 0; align-items: stretch }
  .case-screen > .wrap.case-grid { padding-top: var(--s-5) }
  .patient-picker { padding: 40px 8px 0 }
  .screen > .wrap.case-grid { gap: var(--s-5) }
  .case-frame { padding: 10px }
  .case-name { font-size: clamp(2rem, 8vw, 2.75rem) }
  .case-head { align-items: flex-end }
  .case-level { min-height: 32px; padding: 5px 10px; font-size: .8125rem; gap: 6px }

  .give-card h2 { font-size: var(--fs-xl) }
  .amounts { gap: var(--s-2) }
  .amount { min-height: 100px; padding: 18px 12px 10px }
  .amount .value { font-size: var(--fs-xl) }
  .progress-card { padding: var(--s-4) }
  .progress-card .raised { font-size: clamp(2.25rem, 10vw, 3.25rem) }
  .raised-row { flex-wrap: wrap; gap: var(--s-2) }
  .pay .btn { min-height: 58px }

  .split-side { padding-top: var(--s-5) }
  .toast-rail { bottom: calc(10px + env(safe-area-inset-bottom)) }
}

@media (min-width: 900px) {
  .hero { padding-bottom: clamp(1.25rem, 3vh, 2rem) }
  .hero-bleed img { object-position: center 32% }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    max-width: min(40rem, 100%);
    gap: var(--s-4);
  }
  .hero .btn-primary { width: auto; min-width: 12rem; flex: 0 0 auto }
  .hero-progress { flex: 1 1 16rem; min-width: 14rem; max-width: 22rem }
  .screen > .wrap.hero-copy { padding: 0 var(--gutter) }
  .case-screen { --case-frame: 360px }
  .screen > .wrap.case-grid {
    grid-template-columns: minmax(0, 1fr) var(--case-frame);
    gap: var(--s-7);
  }
  .case-copy { order: 0 }
  .case-figure { order: 1; justify-content: flex-end }
  .case-frame { padding: 14px }
}
.unmute-bait {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
  width: auto;
  max-width: min(11.5rem, calc(100% - 88px));
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(10, 10, 10, .72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  cursor: pointer;
  font: 600 .6875rem/1.2 var(--display);
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  text-align: left;
}
.unmute-bait:hover { background: rgba(10, 10, 10, .84); color: #fff }
.unmute-bait-ico { font-size: .875rem; line-height: 1; flex: none }
#unmuteLabel { display: block; min-width: 0 }
.unmute-bait.fade-out { opacity: 0; transition: opacity .5s; pointer-events: none }
@media (max-width: 899px) {
  .unmute-bait {
    top: 8px;
    left: 8px;
    max-width: min(9.5rem, calc(100% - 72px));
    padding: 5px 7px;
    font-size: .625rem;
    gap: 4px;
  }
  .unmute-bait-ico { font-size: .75rem }
}
.mute-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hope-ring {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 76px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
}
.hope-ring-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  background: #111;
}
.hope-ring-photo img { width: 100%; height: 100%; object-fit: cover; display: block }
.hope-cap {
  margin: 0;
  max-width: 5.8rem;
  font: 700 .625rem/1.2 var(--display);
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}

/* Screen 2: give + progress — must beat .screen > .wrap { display: block } */
.screen > .wrap.give-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
  width: 100%;
}
@media (min-width: 768px) {
  .screen > .wrap.give-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-7);
  }
  .progress-card { position: sticky; top: calc(var(--banner-h) + var(--header-h) + var(--s-4)); }
}
.give-card, .progress-card { min-width: 0 }
.progress-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: #fff }
.progress-card .raised { font: 800 clamp(2.5rem, 1.8rem + 4vw, 4rem)/1 var(--display); color: var(--accent); margin: 0; letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.raised-of { font-size: var(--fs-base); color: var(--ink-soft); margin: var(--s-3) 0 0 }
.raised-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5) }
.pct { font: 800 var(--fs-xl)/1 var(--display); color: var(--ink); margin: 0; text-align: right }
.pct small { display: block; font: 500 var(--fs-sm)/1.3 var(--body); color: var(--ink-soft); margin-top: 4px }
.track { height: 12px; background: var(--alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 var(--s-5) }
.fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1.2s cubic-bezier(.22,1,.36,1) }
.gap-callout { display: block; margin: 0; font-size: var(--fs-base); line-height: 1.45; color: var(--ink) }
.gap-callout strong { font-weight: 800; color: var(--alert) }
.gift-carousel {
  margin: var(--s-5) 0 0;
  position: relative;
}
.gift-carousel[hidden] { display: none !important }
.gift-carousel-viewport {
  height: 168px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.gift-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
  animation: giftFeedScroll var(--gift-feed-duration, 36s) linear infinite;
}
.gift-carousel:hover .gift-carousel-track,
.gift-carousel:focus-within .gift-carousel-track {
  animation-play-state: paused;
}
.donation-plate {
  flex: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(20, 35, 43, .08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donation-plate strong {
  font-weight: 800;
  color: var(--accent);
}
@keyframes giftFeedScroll {
  from { transform: translateY(0) }
  to { transform: translateY(-50%) }
}
@media (prefers-reduced-motion: reduce) {
  .gift-carousel-track { animation: none }
  .gift-carousel-viewport { overflow: auto; -webkit-mask-image: none; mask-image: none; height: auto; max-height: 168px }
}

.give-card h2 { margin-bottom: var(--s-4) }
.tax-badge { display: block; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; margin-bottom: var(--s-3) }
.freq { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden; margin: var(--s-4) 0 var(--s-2) }
.freq button { border: 0; background: #fff; min-height: 52px; padding: 8px; font: 700 var(--fs-base)/1.2 var(--display); color: var(--accent) }
.freq button[aria-pressed=true] { background: var(--accent); color: #fff }
.freq-note { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 var(--s-4); line-height: 1.5 }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-3) }
.amount { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 14px 12px; text-align: left; background: #fff; min-height: 116px; transition: border-color .15s, background .15s }
.amount:hover { border-color: var(--accent) }
.amount[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent) }
.amount .ribbon { position: absolute; top: 8px; right: 10px; color: var(--alert); font: 700 var(--fs-xs)/1 var(--display) }
.amount .value { font: 800 var(--fs-2xl)/1.1 var(--display); color: var(--ink); display: block }
.amount .what { font-size: var(--fs-sm); color: var(--ink-soft); display: block; margin-top: 6px; line-height: 1.35 }
.amount .tick { display: none }
.other { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 16px; min-height: 60px; margin-bottom: var(--s-2); background: #fff }
.other:focus-within { border-color: var(--accent) }
.other > span { font: 800 var(--fs-lg)/1 var(--display); color: var(--ink-soft) }
.other input { border: 0; flex: 1; font: 700 var(--fs-lg)/1.2 var(--display); min-width: 0; background: transparent; color: var(--ink); min-height: 54px }
.other input::placeholder { color: var(--ink-soft); font-weight: 600 }
.other input:focus { outline: none }
.other small { font-size: var(--fs-sm); color: var(--ink-soft); white-space: nowrap }
.other.is-invalid { border-color: var(--alert) }
.field-error { color: var(--alert); font-size: var(--fs-sm); font-weight: 600; margin: 0 0 var(--s-3) }
.email-gate-label {
  display: block;
  font: 600 var(--fs-sm)/1.45 var(--body);
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.email-gate-field {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  min-height: 54px;
}
.email-gate-field:focus-within { border-color: var(--accent) }
.email-gate-field input {
  border: 0;
  width: 100%;
  min-height: 50px;
  font: 600 var(--fs-base)/1.3 var(--body);
  background: transparent;
  color: var(--ink);
}
.email-gate-field input:focus { outline: none }
.email-gate-field input::placeholder { color: var(--ink-soft); font-weight: 500 }
.email-gate-hold { color: var(--alert); font-weight: 700; margin: 0 0 var(--s-2) }
.email-gate-hold .mono { font-variant-numeric: tabular-nums }
.option { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-size: var(--fs-sm); line-height: 1.45; cursor: pointer; color: var(--ink-soft) }
.option input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--accent) }
.option .kicker { display: inline }
.pay { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4) }
.pay .btn { min-height: 64px }
.pay-note { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; text-align: center; line-height: 1.5 }
.pay-label { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25 }
.pay-main { font-size: var(--fs-lg) } .pay-sub { font: 500 var(--fs-xs)/1.3 var(--body); opacity: .85 }
.btn-pay[aria-busy="true"] { cursor: progress }
.secure { display: flex; justify-content: center; gap: 4px var(--s-5); flex-wrap: wrap; list-style: none; padding: 0; margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--ink-soft) }

/* Screen 4: where it goes */
.proof-actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5) }
@media (min-width: 640px) { .proof-actions { flex-direction: row } .proof-actions .btn { flex: 1 } }
.proof-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 12px 20px; border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; font: 700 var(--fs-base)/1.3 var(--display); color: var(--accent); cursor: pointer }
.proof-trigger:hover { background: var(--accent-soft) }
.proof-trigger svg { flex: none }

/* Screen 5: triage + donor feed */
.split { display: grid; gap: var(--s-7) var(--s-7) }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start }
  .split-side {
    border-left: 1px solid var(--line);
    padding-left: var(--s-6);
    margin-top: calc(var(--s-2) * -1);
  }
  .split-side #donors-title { margin-top: 0 }
  .split-side .donor-carousel { margin-top: var(--s-2) }
}
@media (max-width: 899px) { .split-side { border-top: 1px solid var(--line); padding-top: var(--s-6) } }
.donor-carousel {
  position: relative;
  margin-top: var(--s-3);
}
.donor-carousel-viewport {
  height: min(460px, 58vh);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.donor-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
  animation: donorFeedScroll var(--donor-feed-duration, 42s) linear infinite;
}
.donor-carousel:hover .donor-carousel-track,
.donor-carousel:focus-within .donor-carousel-track {
  animation-play-state: paused;
}
.donor-card {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 35, 43, .08);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.donor-card strong.name { display: block; color: var(--ink); font-weight: 800; font-size: var(--fs-base) }
.donor-card .loc { color: var(--ink-soft); font-weight: 500 }
.donor-card .sub { display: block; margin-top: 4px; color: var(--ink-soft); font-size: var(--fs-xs) }
.donor-card .amt {
  flex: none;
  font: 800 var(--fs-base)/1.2 var(--display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@keyframes donorFeedScroll {
  from { transform: translateY(0) }
  to { transform: translateY(-50%) }
}
@media (prefers-reduced-motion: reduce) {
  .donor-carousel-track { animation: none }
  .donor-carousel-viewport { overflow: auto; -webkit-mask-image: none; mask-image: none }
}
.triage-grid { display: grid; gap: var(--s-3); margin: var(--s-6) 0 var(--s-4) }
@media (min-width: 700px) { .triage-grid { grid-template-columns: repeat(3, 1fr) } }
.triage-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); background: #fff; transition: border-color .2s, box-shadow .2s }
.triage-card.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent) }
.triage-card h3 { font-size: var(--fs-lg); margin-bottom: 6px }
.triage-card .status { font-size: var(--fs-sm); font-weight: 700; color: var(--alert) }
.triage-card .track { height: 8px; margin: var(--s-3) 0 var(--s-2) }
.triage-card .patient-raised { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 }
.triage-card .patient-raised strong { color: var(--ink); font-weight: 800 }
.progress-card.flash, .triage-card.flash { animation: progressFlash .7s ease }
@keyframes progressFlash { 0%, 100% { box-shadow: none } 40% { box-shadow: 0 0 0 3px var(--accent-soft) } }
.toast .meta { line-height: 1.35 }
.donor-list { list-style: none; margin: 0; padding: 0 }
.donor-list li { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); line-height: 1.45 }
.donor-list li:first-child { border-top: 1px solid var(--line) }
.donor-list strong { display: block; color: var(--ink); font-weight: 800 }
.site-footer {
  background: #0A0A0A;
  color: rgba(255,255,255,.72);
  padding: var(--s-7) 0 calc(var(--s-6) + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
  line-height: 1.55;
  border-top: 0;
}
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em }
.footer-grid {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); }
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--s-3);
  font: 800 var(--fs-lg)/1.2 var(--display);
  color: #fff;
  text-decoration: none;
}
.footer-brand .footer-logo:hover { text-decoration: none; color: #fff }
.footer-brand .footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
}
.footer-brand p { margin: 0 0 var(--s-3); max-width: 28rem }
.footer-meta { margin: 0; color: rgba(255,255,255,.55); font-size: var(--fs-xs) }
.footer-col h3 {
  margin: 0 0 var(--s-3);
  font: 700 var(--fs-sm)/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  align-items: flex-start;
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; max-width: 48rem }
.legal-view { background: var(--bg); color: var(--ink); padding: var(--s-6) 0 var(--s-7) }
.legal-view .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--s-6);
}
.legal-view .legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 600 var(--fs-sm)/1.2 var(--display);
  text-decoration: none;
}
.legal-view .legal-nav a.is-active {
  background: #0A0A0A;
  border-color: #0A0A0A;
  color: #fff;
}
.legal-doc { display: none; max-width: 40rem }
.legal-doc.is-active { display: block }
.legal-doc h1 { margin: 0 0 var(--s-2); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) }
.legal-doc .legal-updated { margin: 0 0 var(--s-5); color: var(--ink-soft); font-size: var(--fs-sm) }
.legal-doc h2 { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-xl) }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: var(--fs-base); line-height: 1.65 }
.legal-doc ul { padding-left: 1.2em; margin: 0 0 var(--s-4) }
.legal-doc li { margin-bottom: 8px }
.legal-back { display: inline-flex; margin-bottom: var(--s-5); font: 700 var(--fs-sm)/1.2 var(--display); color: var(--accent); text-decoration: none }
.legal-back:hover { color: var(--accent-hover) }

/* Dog emergency page — single dark template filled from patients DB */
.dog-view {
  --dog-bg: #070708;
  --dog-panel: #121214;
  --dog-line: rgba(255,70,70,.22);
  --dog-red: #ff2a2a;
  --dog-red-dim: #c1121f;
  --dog-warn: #ffb020;
  --dog-ink: #f2ece6;
  --dog-muted: rgba(242,236,230,.62);
  min-height: 100svh;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(193,18,31,.45), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(80,0,0,.35), transparent 50%),
    linear-gradient(180deg, #0c0c0e 0%, var(--dog-bg) 40%, #050506 100%);
  color: var(--dog-ink);
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}
.dog-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,.04) 2px,
    rgba(255,255,255,.04) 3px
  );
  z-index: 0;
  animation: dogScan 8s linear infinite;
}
@keyframes dogScan {
  from { transform: translateY(0) }
  to { transform: translateY(12px) }
}
.dog-view .wrap { position: relative; z-index: 1; max-width: 42rem }
.dog-siren {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px var(--gutter);
  background: linear-gradient(90deg, #5a0008, #c1121f 40%, #5a0008);
  color: #fff;
  font: 800 .78rem/1.2 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: dogSirenPulse 1.1s ease-in-out infinite;
}
@keyframes dogSirenPulse {
  0%, 100% { filter: brightness(1) }
  50% { filter: brightness(1.25) }
}
.dog-back {
  display: inline-flex;
  margin: var(--s-4) 0 var(--s-3);
  font: 700 var(--fs-sm)/1.2 var(--display);
  color: var(--dog-muted);
  text-decoration: none;
}
.dog-back:hover { color: #fff }
.dog-media {
  position: relative;
  margin: 0 0 var(--s-5);
  border: 1px solid var(--dog-line);
  background: #000;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,42,42,.15), 0 24px 60px rgba(0,0,0,.55);
}
.dog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.08) brightness(.82);
  display: block;
}
.dog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(193,18,31,.45), transparent 60%);
  pointer-events: none;
}
.dog-media-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,42,42,.55);
  color: var(--dog-red);
  font: 800 .72rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dog-media-badge .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dog-red);
  box-shadow: 0 0 0 3px rgba(255,42,42,.25);
  animation: deadlineDot 1s ease-in-out infinite;
}
.dog-kicker {
  margin: 0 0 8px;
  color: var(--dog-red);
  font: 800 .75rem/1.3 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dog-view h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-shadow: 0 0 40px rgba(193,18,31,.35);
}
.dog-disease {
  margin: 0 0 var(--s-4);
  color: var(--dog-warn);
  font: 700 1.05rem/1.35 var(--display);
}
.dog-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 var(--s-5);
  background: var(--dog-line);
  border: 1px solid var(--dog-line);
}
.dog-meta div {
  background: var(--dog-panel);
  padding: 12px 10px;
}
.dog-meta dt {
  margin: 0 0 4px;
  color: var(--dog-muted);
  font: 700 .68rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dog-meta dd { margin: 0; font: 700 .95rem/1.2 var(--display); color: #fff }
.dog-block {
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  background: rgba(18,18,20,.92);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid var(--dog-red-dim);
}
.dog-block h2 {
  margin: 0 0 8px;
  font: 800 .72rem/1.2 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dog-red);
}
.dog-block p { margin: 0; color: var(--dog-muted); font-size: var(--fs-base); line-height: 1.55 }
.dog-block p strong { color: #fff; font-weight: 800 }
.dog-vitals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 var(--s-4);
}
.dog-vital {
  padding: 14px 12px;
  background: #0e0e10;
  border: 1px solid rgba(255,42,42,.18);
}
.dog-vital span {
  display: block;
  color: var(--dog-muted);
  font: 700 .68rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dog-vital strong {
  font: 800 1.25rem/1 var(--mono, ui-monospace, monospace);
  color: var(--dog-red);
  text-shadow: 0 0 18px rgba(255,42,42,.35);
}
.dog-lines { margin: 0 0 var(--s-4); padding: 0; list-style: none; border: 1px solid rgba(255,255,255,.08) }
.dog-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font: 600 .95rem/1.3 var(--display);
  color: var(--dog-muted);
}
.dog-lines li:last-child { border-bottom: 0 }
.dog-lines strong { color: #fff; font-variant-numeric: tabular-nums }
.dog-note {
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
  background: rgba(193,18,31,.12);
  border: 1px solid rgba(255,42,42,.35);
  color: #ffd0d0;
  font: 600 var(--fs-sm)/1.5 var(--display);
}
.dog-fund {
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,.08);
}
.dog-fund-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font: 700 .9rem/1.3 var(--display);
}
.dog-fund-row .left { color: #fff }
.dog-fund-row .right { color: var(--dog-red) }
.dog-fund .track {
  height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 0;
  overflow: hidden;
}
.dog-fund .fill {
  height: 100%;
  background: linear-gradient(90deg, #7a0008, var(--dog-red));
  box-shadow: 0 0 16px rgba(255,42,42,.45);
  width: 0;
  transition: width .6s ease;
}
.dog-cta {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 3;
  margin: var(--s-5) 0 0;
}
.dog-cta .btn {
  width: 100%;
  min-height: 58px;
  background: var(--dog-red);
  border-color: var(--dog-red);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .02em;
  box-shadow: 0 0 0 0 rgba(255,42,42,.55);
  animation: dogCtaPulse 1.6s ease-in-out infinite;
}
.dog-cta .btn:hover { background: #ff3b3b; border-color: #ff3b3b; color: #fff }
@keyframes dogCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,42,42,.5) }
  50% { box-shadow: 0 0 0 12px rgba(255,42,42,0) }
}
.dog-timer-line {
  margin: 12px 0 0;
  text-align: center;
  color: var(--dog-muted);
  font: 700 .85rem/1.4 var(--display);
}
.dog-timer-line .mono { color: var(--dog-warn); font-size: 1.05rem }
body.is-dog-page .topbar .site-header { background: #0a0a0c; border-bottom-color: rgba(255,255,255,.06) }
body.is-dog-page .topbar .logo { color: #fff }
body.is-dog-page .topbar .logo small { color: rgba(255,255,255,.45) }
body.is-dog-page .header-trust { color: rgba(255,255,255,.55) }
body.is-dog-page #stickyBar {
  background: #0e0e10;
  border-top-color: rgba(255,42,42,.35);
  color: #fff;
}
body.is-dog-page #stickyBar .bar-left,
body.is-dog-page #stickyBar .bar-sep { color: rgba(255,255,255,.5) }
body.is-dog-page #stickyBar .bar-track { background: rgba(255,255,255,.1) }
body.is-dog-page #stickyDonate { background: var(--dog-red, #ff2a2a); border-color: var(--dog-red, #ff2a2a) }
@media (max-width: 520px) {
  .dog-meta { grid-template-columns: 1fr 1fr }
  .dog-meta div:last-child { grid-column: 1 / -1 }
}
@media (prefers-reduced-motion: reduce) {
  .dog-view::before, .dog-siren, .dog-cta .btn, .dog-media-badge .live-dot { animation: none }
}

/* Overlays */
.donate-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s }
.donate-bar.visible { transform: translateY(0) }
.donate-bar.dismissed { display: none }
.donate-bar .close-x { position: static; width: 40px; height: 40px; flex: none }
.bar-meta { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.3 }
.bar-track { height: 6px; background: var(--alt); border-radius: 999px; margin-bottom: 6px; overflow: hidden }
.toast-rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 45;
  pointer-events: none;
}
.toast-rail > .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.toast {
  position: relative;
  width: min(100%, 380px);
  max-width: 380px;
  margin-left: auto;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid #D5DDDF;
  border-radius: var(--radius);
  padding: 14px 58px 14px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(20,35,43,.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.toast .close-x { top: 8px; right: 8px; width: 40px; height: 40px; background: var(--alt); color: var(--ink) }
.toast.show { opacity: 1; pointer-events: auto; transform: translateY(0) }
.toast.hiding { opacity: 0; transform: translateY(8px) }
.toast .heart { color: var(--alert); width: 22px; flex: none }
.toast p { margin: 0; color: var(--ink) }
.toast .meta { font-size: var(--fs-xs); color: var(--ink-soft) }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,35,43,.6); display: flex; padding: var(--s-4); opacity: 0; pointer-events: none; transition: opacity .25s }
.modal.open { opacity: 1; pointer-events: auto }
.modal.hidden { display: none }
.panel { position: relative; width: 100%; max-width: 540px; margin: auto; background: #fff; border-radius: var(--radius); max-height: 92vh; overflow: auto }
.modal.sheet { align-items: flex-end; padding: 0 }
.modal.sheet .panel { max-width: none; border-radius: var(--radius) var(--radius) 0 0; margin: 0 }
.panel-body { padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3) }
.panel-body > * { margin-top: 0; margin-bottom: 0 }
.panel img { width: 100%; height: auto; max-height: 220px; object-fit: cover }
.inv { width: 100%; border-collapse: collapse; font-size: var(--fs-base) }
.inv th, .inv td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left }
.inv td:last-child, .inv th:last-child { text-align: right }
.inv tfoot td { font-weight: 800; border-bottom: 0 }
.pie-wrap { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; margin: var(--s-4) 0 }
.pie { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--accent) 0 42%, #D288A1 42% 68%, #E0ADBE 68% 86%, #D5DDDF 86% 100%) }
.pie-wrap .secure { flex-direction: column; align-items: flex-start; justify-content: flex-start; font-size: var(--fs-base); margin: 0 }
.view-page { padding: var(--s-7) 0; min-height: 70vh }
.view-page .card { max-width: var(--narrow); margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: var(--s-4); align-items: stretch }
.view-page .card .card { background: var(--alt); padding: var(--s-4); border-radius: var(--radius) }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto }
.admin-bar { position: fixed; right: 12px; bottom: 12px; z-index: 70; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: var(--fs-xs); max-width: 240px }
.admin-bar.hidden { display: none }
@media (min-width: 768px) {
  .toast { max-width: 380px }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } html { scroll-behavior: auto } }

/* Mobile adaptation — additive only; desktop rules above are untouched */
@media (max-width: 899px) {
  .site-footer li a, .site-footer .footer-bottom a, .footer-brand .footer-logo { display: flex; align-items: center; min-height: 44px }
  .footer-col ul { gap: 0 }
}
@media (max-width: 480px) {
  .toast { padding: 10px 52px 10px 12px; font-size: .9375rem; line-height: 1.35 }
  .toast .close-x { width: 40px; height: 40px }
}
/* Sticky donate bar on phones: hairline progress on top, two tidy lines of text, one big button, a small floating close */
@media (max-width: 899px) {
  .donate-bar { gap: 12px; padding: 14px 14px calc(12px + env(safe-area-inset-bottom)) }
  .donate-bar .bar-track { position: absolute; top: 0; left: 0; right: 0; height: 4px; margin: 0; border-radius: 0; background: var(--line) }
  .donate-bar .close-x { position: absolute; top: -18px; right: 12px; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(20,35,43,.18) }
  .donate-bar .close-x::after { content: ""; position: absolute; inset: -8px }
  .bar-meta { font-size: 1rem }
  .bar-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.15 }
  .bar-top { font-size: 1.0625rem; font-weight: 800; color: var(--ink); white-space: nowrap }
  .bar-left { font-weight: 600; color: var(--ink-soft) }
  .bar-sep { display: none }
  .bar-time { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em }
  #stickyDonate { flex: 0 0 auto; min-height: 52px; padding: 8px 22px; font-size: 1.0625rem; white-space: nowrap }
}
@media (max-width: 360px) {
  .donate-bar { gap: 8px; padding-left: 10px; padding-right: 10px }
  #stickyDonate { padding: 8px 14px; font-size: 1rem }
}
