@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');
/* ===================================================================
   Animal Rescue demo — style.css
   Ported from modules/community/AnimalRescue-Module/src/site/templates.ts
   BASE_CSS (structure) + 3 templates: haven (default) / paws / nocturne
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 0.5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--primary); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--primary); }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link {
  padding: 0.55rem 0.85rem; border-radius: var(--radius-pill);
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-link:hover { color: var(--primary); background: var(--soft); text-decoration: none; }
.nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; margin-left: 0.4rem; }
.nav-cta:hover { background: var(--primary-dark); color: var(--on-primary) !important; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.55rem 0.6rem; cursor: pointer; min-width: 44px; min-height: 44px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
}

/* Notice ticker */
.ticker { background: var(--accent-light); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--border); }
.ticker-inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.88rem; }
.ticker-label { flex-shrink: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--primary-dark); }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker-scroll 28s linear infinite; color: var(--ink-soft); }
.ticker-text:hover { color: var(--primary); text-decoration: none; }
@keyframes ticker-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-text { animation: none; padding-left: 0; white-space: normal; } }

/* Hero */
.hero { position: relative; background: var(--hero-gradient); color: var(--hero-text); overflow: hidden; }
.hero-content { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6.5rem) 0; max-width: 720px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; opacity: 0.92; margin-bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.hero h1 { color: var(--hero-text); margin-bottom: 0.5em; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.18rem); opacity: 0.94; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Carousel */
.carousel { position: relative; }
.carousel-slides { position: relative; }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-dots { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.carousel-dot { width: 11px; height: 11px; border-radius: 999px; border: none; background: currentColor; opacity: 0.4; cursor: pointer; padding: 0; transition: opacity 0.15s ease; }
.carousel-dot:hover { opacity: 0.7; }
.carousel-dot.active { opacity: 1; }

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-soft); }
.all-link { font-weight: 600; font-size: 0.95rem; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-top .section-head { margin-bottom: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.35rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-meta { color: var(--ink-faint); font-size: 0.86rem; }
.card-text { color: var(--ink-soft); font-size: 0.95rem; }
.card-foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* Animal card specifics */
.animal-card .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.28)); pointer-events: none; }
.animal-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { font-size: 0.74rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: var(--radius-pill); background: var(--soft); color: var(--ink-soft); border: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.26rem 0.65rem; border-radius: var(--radius-pill); }
.badge.available { background: #e5f3e8; color: #22693a; }
.badge.pending { background: #fdf1dc; color: #8a5b12; }
.badge.fostered { background: #e3edfb; color: #2b5b9e; }
.badge.adopted { background: #ece9f7; color: #59499e; }
.badge.ongoing { background: #fbe7e2; color: #a53a24; }
.badge.recovering { background: #fdf1dc; color: #8a5b12; }
.badge.released { background: #e5f3e8; color: #22693a; }
.tag { display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); border-radius: var(--radius-pill); padding: 0.2rem 0.6rem; }

/* Status pills on media */
.pill-media { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.1rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.3rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 1rem;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Detail page */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.25rem; align-items: start; }
@media (max-width: 860px) { .detail-wrap { grid-template-columns: 1fr; } }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--soft); }
.detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.thumb { border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0; background: none; }
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb.active { border-color: var(--primary); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.55rem 0.2rem; border-bottom: 1px dashed var(--border); vertical-align: top; }
.spec-table th { color: var(--ink-faint); font-weight: 600; width: 42%; }
.spec-table a { color: var(--primary); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-faint); padding: 1.1rem 0 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.6; }

/* Rich body */
.rich-body > :first-child { margin-top: 0; }
.rich-body > :last-child { margin-bottom: 0; }
.rich-body h2 { margin-top: 1.4em; }
.rich-body ul, .rich-body ol { padding-left: 1.3rem; }
.rich-body blockquote { margin: 1.2em 0; padding: 0.4rem 1.1rem; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); }
.rich-body a { color: var(--primary); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field .hint { color: var(--ink-faint); font-size: 0.82rem; }
.form-input, .form-select, .form-textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.65rem 0.8rem; width: 100%;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.consent-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.flash { border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; border: 1px solid transparent; }
.flash.ok { background: #e5f3e8; color: #1e5c33; border-color: #bfe3c9; }
.flash.err { background: #fbe7e2; color: #8c2f1c; border-color: #f2c4ba; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.6rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.97rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-accent { background: var(--accent); color: #1d1408; }
.btn-accent:hover { filter: brightness(0.95); color: #1d1408; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-hero { background: var(--surface); color: var(--ink); }
.btn-hero:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.btn-block { width: 100%; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--ink-soft); }
.empty-state .big-paw { font-size: 2.2rem; margin-bottom: 0.5rem; opacity: 0.6; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.35rem; }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.8rem; }
.quote-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; }
.quote-name { font-weight: 700; font-family: var(--font-head); }
.quote-role { color: var(--ink-faint); font-size: 0.85rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.35rem; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: center; }
.team-photo { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--soft); }
.team-initials { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.4rem; color: var(--on-primary); background: var(--primary); }
.team-body { padding: 1rem 1rem 1.2rem; }
.team-bio { color: var(--ink-soft); font-size: 0.88rem; }

/* Program cards */
.program-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.program-card:hover { box-shadow: var(--shadow-md); }
.program-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius); }
.program-icon svg { width: 27px; height: 27px; }
.feature-icon { width: 52px; height: 52px; display: inline-grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius); }
.feature-icon svg { width: 27px; height: 27px; }

/* Donate band */
.donate-band { border-radius: var(--radius-lg); background: var(--hero-gradient); color: var(--hero-text); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.donate-band h2 { color: var(--hero-text); }
.donate-band h3 { color: var(--hero-text); }
.donate-upi { display: inline-block; background: rgba(255,255,255,0.14); border: 1px dashed rgba(255,255,255,0.5); border-radius: var(--radius); padding: 0.6rem 1.1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; margin: 0.5rem 0 1rem; color: var(--hero-text); }

/* Pagination */
.pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.25rem; flex-wrap: wrap; }
.page-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-weight: 600; padding: 0 0.9rem; }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-btn:hover:not(.current) { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* FAQ */
.faq-list { display: grid; gap: 0.8rem; max-width: 800px; }
details.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
details.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 600; font-family: var(--font-head); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform 0.2s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3rem 0 2rem; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-family: var(--font-body); }
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-links a:hover { color: var(--primary); text-decoration: none; }
.footer-desc { color: var(--ink-soft); font-size: 0.92rem; max-width: 34ch; }
.hours { white-space: pre-line; color: var(--ink-soft); font-size: 0.92rem; }
.wa-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.wa-link svg { width: 16px; height: 16px; }
.social-links { display: flex; gap: 0.5rem; }
.social-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--soft); color: var(--ink-soft); }
.social-link:hover { background: var(--primary); color: var(--on-primary); text-decoration: none; }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 0.85rem; flex-wrap: wrap; }
.powered-by { color: var(--ink-faint); }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.wa-float:hover { background: #1ebe5b; text-decoration: none; color: #fff; }
.wa-float svg { width: 27px; height: 27px; }

/* ===================== Templates (palettes + overrides) ===================== */

/* Haven (default) */
:root {
  --primary: #c4622d;
  --primary-dark: #9c4a1e;
  --primary-light: #f7e4d7;
  --accent: #7c9a58;
  --accent-light: #ecf2df;
  --bg: #faf5ee;
  --bg-alt: #f3eadb;
  --surface: #fffdf9;
  --soft: #f1e7d8;
  --border: #e6d8c4;
  --ink: #2c2016;
  --ink-soft: #5d4d3d;
  --ink-faint: #93826e;
  --on-primary: #fff8f0;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hero-gradient:
    radial-gradient(1100px 520px at 88% -12%, rgba(124, 154, 88, 0.35), transparent 62%),
    linear-gradient(135deg, #33241a 0%, #6b3a20 55%, #c4622d 100%);
  --hero-overlay: rgba(44, 32, 22, 0.22);
  --hero-text: #fdf6ec;
  --shadow-sm: 0 1px 3px rgba(44, 32, 22, 0.08);
  --shadow-md: 0 6px 18px rgba(44, 32, 22, 0.11);
  --shadow-lg: 0 14px 40px rgba(44, 32, 22, 0.16);
}
:root .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16;
  background-image: radial-gradient(rgba(253, 246, 236, 0.55) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
}
:root .section-kicker { font-family: var(--font-head); font-style: italic; letter-spacing: 0.02em; text-transform: none; font-size: 1rem; }
:root .rich-body blockquote { border-left-color: var(--accent); }
:root .stat { border-bottom: 3px solid var(--primary-light); }
:root .stat-num { color: var(--primary-dark); }
:root .program-icon { background: var(--accent-light); color: #46601f; border-radius: 999px; }
:root .quote-card { border-top: 3px solid var(--accent); }
:root .donate-band .btn-primary { background: var(--hero-text); color: var(--ink); }

/* Paws */
html[data-theme="paws"] {
  --primary: #d0492f;
  --primary-dark: #a83a25;
  --primary-light: #ffe4de;
  --accent: #ffb52e;
  --accent-light: #fff3d6;
  --bg: #f2f9fc;
  --bg-alt: #e8f3f8;
  --surface: #ffffff;
  --soft: #e4f0f6;
  --border: #d3e4ee;
  --ink: #17324a;
  --ink-soft: #45617a;
  --ink-faint: #7d95a9;
  --on-primary: #ffffff;
  --font-head: 'Baloo 2', 'Trebuchet MS', -apple-system, sans-serif;
  --font-body: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(165deg, #bfe4f2 0%, #e2f1f8 48%, #ffe9d6 100%);
  --hero-overlay: rgba(255, 255, 255, 0.18);
  --hero-text: #17324a;
  --shadow-sm: 0 2px 6px rgba(23, 50, 74, 0.07);
  --shadow-md: 0 8px 22px rgba(23, 50, 74, 0.10);
  --shadow-lg: 0 16px 42px rgba(23, 50, 74, 0.15);
}
html[data-theme="paws"] .card { border-width: 2px; }
html[data-theme="paws"] .card:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-md); }
html[data-theme="paws"] .btn { box-shadow: 0 3px 0 rgba(23, 50, 74, 0.16); }
html[data-theme="paws"] .btn:active { transform: translateY(2px); box-shadow: none; }
html[data-theme="paws"] .btn-hero { background: var(--surface); color: var(--ink); box-shadow: 0 3px 0 rgba(23, 50, 74, 0.14); }
html[data-theme="paws"] .hero h1 { letter-spacing: -0.01em; }
html[data-theme="paws"] .badge { transform: rotate(-2deg); border-radius: 10px; padding: 0.3rem 0.75rem; }
html[data-theme="paws"] .pill-media .badge { transform: rotate(-3deg); }
html[data-theme="paws"] .section-kicker {
  display: inline-block; background: var(--accent-light); color: #7c5410;
  padding: 0.28rem 0.95rem; border-radius: var(--radius-pill); transform: rotate(-1.4deg);
}
html[data-theme="paws"] .filter-chip { border-width: 2px; }
html[data-theme="paws"] .filter-chip.active { box-shadow: 0 2px 0 rgba(23, 50, 74, 0.18); }
html[data-theme="paws"] .stat { border-width: 2px; }
html[data-theme="paws"] .stat:hover { transform: rotate(-0.6deg); }
html[data-theme="paws"] .program-card { border-width: 2px; }
html[data-theme="paws"] .quote-card { border-width: 2px; position: relative; }
html[data-theme="paws"] .quote-card::before {
  content: "\201C"; position: absolute; top: -14px; left: 18px; font-family: var(--font-head);
  font-size: 3rem; line-height: 1; color: var(--accent); opacity: 0.9;
}
html[data-theme="paws"] .ticker { background: var(--accent-light); }
html[data-theme="paws"] .wa-float { box-shadow: 0 4px 0 rgba(23, 50, 74, 0.2); }

/* Nocturne */
html[data-theme="nocturne"] {
  --primary: #3ec99d;
  --primary-dark: #2aa37c;
  --primary-light: #123128;
  --accent: #f0a63c;
  --accent-light: #38290f;
  --bg: #0e1418;
  --bg-alt: #121a20;
  --surface: #172129;
  --soft: #1d2933;
  --border: #263540;
  --ink: #e8eff2;
  --ink-soft: #a9bcc6;
  --ink-faint: #6f8592;
  --on-primary: #07211a;
  --font-head: 'Space Grotesk', 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #0a0f13 0%, #12242a 55%, #173f36 100%);
  --hero-overlay: rgba(10, 15, 19, 0.30);
  --hero-text: #eaf6ef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}
html[data-theme="nocturne"] body { letter-spacing: 0.005em; }
html[data-theme="nocturne"] h1, html[data-theme="nocturne"] h2, html[data-theme="nocturne"] h3 { letter-spacing: -0.01em; }
html[data-theme="nocturne"] .site-header { background: rgba(23, 33, 41, 0.92); backdrop-filter: blur(8px); }
html[data-theme="nocturne"] .section-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--accent); }
html[data-theme="nocturne"] .section-kicker::before { content: "// "; color: var(--primary); }
html[data-theme="nocturne"] .card { box-shadow: none; }
html[data-theme="nocturne"] .card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-dark); }
html[data-theme="nocturne"] .card-media img { filter: saturate(0.92); transition: filter 0.2s ease; transform: scale(1.001); }
html[data-theme="nocturne"] .card:hover .card-media img { filter: saturate(1.05); }
html[data-theme="nocturne"] .btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; border-radius: var(--radius); padding-inline: 1.5rem; }
html[data-theme="nocturne"] .btn-outline { border-color: var(--border); color: var(--ink); }
html[data-theme="nocturne"] .chip { background: transparent; }
html[data-theme="nocturne"] .spec-table th { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; }
html[data-theme="nocturne"] .stat { text-align: left; border-left: 3px solid var(--accent); }
html[data-theme="nocturne"] .stat-num { font-variant-numeric: tabular-nums; color: var(--primary); }
html[data-theme="nocturne"] .badge.available, html[data-theme="nocturne"] .badge.released { background: rgba(62, 201, 157, 0.16); color: #7fe0bd; }
html[data-theme="nocturne"] .badge.pending, html[data-theme="nocturne"] .badge.recovering { background: rgba(240, 166, 60, 0.16); color: #f4c27a; }
html[data-theme="nocturne"] .badge.fostered { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
html[data-theme="nocturne"] .badge.adopted { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; }
html[data-theme="nocturne"] .badge.ongoing { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
html[data-theme="nocturne"] .flash.ok { background: #10291f; color: #86dfba; border-color: #1f4a39; }
html[data-theme="nocturne"] .flash.err { background: #2f1512; color: #f3a08e; border-color: #59281f; }
html[data-theme="nocturne"] details.faq-item summary { font-family: var(--font-body); }
html[data-theme="nocturne"] .donate-upi { border-color: rgba(255, 255, 255, 0.35); }
html[data-theme="nocturne"] .footer-inner { padding-block: 2.5rem 1.5rem; }
html[data-theme="nocturne"] .card-title a { color: var(--ink); }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel {
  position: fixed; bottom: 156px; right: 24px; z-index: 120;
  width: 290px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  display: none; text-align: left;
}
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

@media (max-width: 640px) {
  .theme-panel { right: 16px; bottom: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
}
