/* CheaperVetGuide: warm, friendly, readable. System fonts only; no JS.
   THEME: a lively light "page" (warm cream-to-mint gradient with a tiny paw pattern; deep teal-to-ink gradient in dark mode)
   and dark charcoal "boxes" (articles, cards, tiles) with light text, so reading text always sits on strong contrast.
   :root holds the PAGE palette. The BOX palette is re-declared on every box selector (see ".box scope" below). */
:root {
  /* page palette (text that sits directly on the page background or on a home-page band) */
  --bg: #fff3df; --surface: #fffdf8; --surface-2: #fdf3e4;
  --text: #1b2a30; --muted: #3f515a; --line: #e2cfae;
  --brand: #0b6e63; --brand-dark: #08524a; --brand-tint: #d3eee7;
  --accent: #a3340a; --accent-dark: #862808;
  --link: #0a5f55; --focus: #1d4ed8; --on-brand: #ffffff;
  --btn-bg: #a3340a; --btn-bg-hover: #862808; --btn-fg: #ffffff;
  --band-mint: #cdeee5; --band-sun: #ffe6b5; --band-lilac: #e5dcfa;
  --header-bg: rgba(255, 253, 248, .94);
  --footer-bg: #0b4f48;
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%230b6e63' fill-opacity='.06'%3E%3Cellipse cx='42' cy='52' rx='9' ry='11'/%3E%3Cellipse cx='62' cy='40' rx='8' ry='10'/%3E%3Cellipse cx='84' cy='40' rx='8' ry='10'/%3E%3Cellipse cx='103' cy='52' rx='9' ry='11'/%3E%3Cpath d='M72 62c-14 0-27 13-27 25 0 9 8 11 16 9 6-2 8-3 11-3s5 1 11 3c8 2 16 0 16-9 0-12-13-25-27-25z' transform='translate(-12 -2)'/%3E%3Ccircle cx='142' cy='138' r='4'/%3E%3Ccircle cx='20' cy='150' r='3'/%3E%3Ccircle cx='150' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --page-grad: radial-gradient(880px 520px at 100% 0, rgba(255, 176, 112, .42), transparent 70%),
               radial-gradient(900px 560px at 0 0, rgba(80, 200, 180, .40), transparent 70%),
               linear-gradient(180deg, #e2f6ef 0, #fff3df 720px, #ffecd4 100%);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 10px 28px rgba(40, 30, 10, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px; --read: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #082a30; --surface: #0b3a40; --surface-2: #0f4850;
    --text: #eaf5f4; --muted: #b8cfcd; --line: #2d6068;
    --brand: #6fe0cf; --brand-dark: #a6efe3; --brand-tint: #124e52;
    --accent: #ffb084; --accent-dark: #ffc9a8;
    --link: #9ceee0; --focus: #b3c8ff; --on-brand: #06201d;
    --btn-bg: #ffb084; --btn-bg-hover: #ffc9a8; --btn-fg: #1b1008;
    --band-mint: #0c4b4b; --band-sun: #3d3415; --band-lilac: #2b2756;
    --header-bg: rgba(8, 42, 48, .94);
    --footer-bg: #04191c;
    --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23ffffff' fill-opacity='.06'%3E%3Cellipse cx='42' cy='52' rx='9' ry='11'/%3E%3Cellipse cx='62' cy='40' rx='8' ry='10'/%3E%3Cellipse cx='84' cy='40' rx='8' ry='10'/%3E%3Cellipse cx='103' cy='52' rx='9' ry='11'/%3E%3Cpath d='M72 62c-14 0-27 13-27 25 0 9 8 11 16 9 6-2 8-3 11-3s5 1 11 3c8 2 16 0 16-9 0-12-13-25-27-25z' transform='translate(-12 -2)'/%3E%3Ccircle cx='142' cy='138' r='4'/%3E%3Ccircle cx='20' cy='150' r='3'/%3E%3Ccircle cx='150' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
    --page-grad: radial-gradient(880px 520px at 100% 0, rgba(255, 150, 100, .16), transparent 70%),
                 radial-gradient(900px 560px at 0 0, rgba(70, 210, 190, .20), transparent 70%),
                 linear-gradient(180deg, #06403f 0, #0a2c3d 720px, #14193a 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .45);
  }
}

/* ---- .box scope: dark charcoal boxes with light text, identical in light and dark mode ---- */
article.guide, article.static, .card, .tile, .sit, .found-grid li, .how, .box {
  --surface: #1f2b31; --surface-2: #293940; --line: #475b64;
  --text: #f2f7f8; --muted: #c4d0d5;
  --brand: #5fd0bf; --brand-dark: #3fb8a6; --brand-tint: #17382f;
  --accent: #ffb084; --accent-dark: #ffc9a8;
  --link: #8fe3d6; --focus: #b3c8ff; --on-brand: #0b1a18;
  --c-vaccines: #8fe0d2;   --c-vaccines-bg: #15332f;
  --c-spayneuter: #f0b6e3; --c-spayneuter-bg: #3a1f35;
  --c-costs: #f6cf86;      --c-costs-bg: #3a2c10;
  --c-payment: #b6c9ff;    --c-payment-bg: #1d2a4d;
  --c-insurance: #cfc4ff;  --c-insurance-bg: #2c2750;
  --c-telehealth: #9bdcf2; --c-telehealth-bg: #153240;
  --c-emergency: #ffb4ab;  --c-emergency-bg: #44201d;
  --c-gear: #c8e29a;       --c-gear-bg: #27330f;
  --brand-tint: #17332f;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
body {
  margin: 0; background-color: var(--bg); background-image: var(--paws), var(--page-grad);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat; background-size: 180px 180px, auto, auto, auto;
  color: var(--text); font-family: var(--font);
  font-size: 1.125rem; line-height: 1.7; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 20; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* header / footer */
header.site { background: var(--header-bg); backdrop-filter: saturate(1.3) blur(8px); border-top: 6px solid var(--brand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--brand); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--brand-dark); }
.brand img { border-radius: 8px; }
nav.main { display: flex; gap: .25rem; flex-wrap: wrap; }
nav.main a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; padding: .5rem .85rem; border-radius: 999px; }
nav.main a:hover { background: var(--brand-tint); color: var(--brand-dark); }
footer.site { background: var(--footer-bg); color: #eef8f6; margin-top: 4rem; padding: 2.5rem 0 3rem; font-size: 1rem; }
footer.site a { color: #ffffff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; font-weight: 600; }
footer.site p { margin: 0; max-width: 62rem; color: #d8ece8; line-height: 1.6; }
main > .wrap { padding-top: 2rem; padding-bottom: 1rem; }

/* typography */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .4rem 0 .6rem; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); margin: 2.6rem 0 .8rem; font-weight: 800; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.3rem; line-height: 1.6; color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 1.25rem; }
.small { font-size: .95rem; color: var(--muted); }
article.guide, article.static { max-width: calc(var(--read) + 6rem); margin: 0 auto; padding: 2.25rem 3rem 2.75rem; background: var(--surface); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; box-shadow: var(--shadow); }
@media (max-width: 760px) { article.guide, article.static { padding: 1.5rem 1.15rem 1.9rem; border-radius: 22px; } }
.prose h2 { padding-top: .4rem; border-top: 3px solid var(--line); margin-top: 3rem; }
.prose h2:first-child { border-top: 0; margin-top: 1.5rem; }
.prose ul:not(.credits), .prose ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.prose li { margin: .5rem 0; padding-left: .2rem; }
.prose .credit { margin: 0; padding: .9rem; }
.prose li::marker { color: var(--brand); font-weight: 700; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2.5rem 0; }
.prose p:last-child { margin-bottom: 0; }
/* sources list at the end of guides: keep it compact */
.prose h2#sources + ul, .prose h2#sources-and-further-reading + ul { font-size: .95rem; overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }

/* badges */
.badge-row { margin: 0 0 .25rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; line-height: 1; padding: .4rem .7rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); width: fit-content; letter-spacing: .01em; }
.badge.cat-vaccines { background: var(--c-vaccines-bg); color: var(--c-vaccines); }
.badge.cat-spayneuter { background: var(--c-spayneuter-bg); color: var(--c-spayneuter); }
.badge.cat-costs { background: var(--c-costs-bg); color: var(--c-costs); }
.badge.cat-payment { background: var(--c-payment-bg); color: var(--c-payment); }
.badge.cat-insurance { background: var(--c-insurance-bg); color: var(--c-insurance); }
.badge.cat-telehealth { background: var(--c-telehealth-bg); color: var(--c-telehealth); }
.badge.cat-emergency { background: var(--c-emergency-bg); color: var(--c-emergency); }
.badge.cat-gear { background: var(--c-gear-bg); color: var(--c-gear); }

/* guide hero image */
.guide-hero { margin: 0 0 1.75rem; }
.guide-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); background: var(--surface-2); }
.guide-hero figcaption, .hero-media figcaption, .photo-credit { font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.photo-credit { margin: 1rem 0 0; }

/* quick answer + callouts */
.quick-answer { background: var(--brand-tint); border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; }
.quick-answer p { margin: 0; font-size: 1.15rem; }
.qa-title { font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem !important; margin-bottom: .4rem !important; }
.disclosure { font-size: .92rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 0 0 1.5rem; line-height: 1.55; }
.disclosure p { margin: 0; }
.callout { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; border: 1px solid var(--line); border-left-width: 6px; background: var(--surface-2); }
.callout p { margin: 0 0 .6rem; } .callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; }
.callout.tip { background: var(--brand-tint); border-color: var(--brand); } .callout.tip .callout-title { color: var(--brand-dark); }
.callout.cost { background: var(--c-costs-bg); border-color: #e0a526; } .callout.cost .callout-title { color: var(--c-costs); }
.callout.note { background: var(--surface-2); border-color: #cfa86a; } .callout.note .callout-title { color: var(--muted); }
.callout.warn { background: var(--c-emergency-bg); border-color: #ff7b6b; } .callout.warn .callout-title { color: var(--c-emergency); }
blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 5px solid var(--line); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; line-height: 1.5; }
caption { text-align: left; }
th, td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: #0f5a51; color: #ffffff; font-size: .9rem; letter-spacing: .02em; position: sticky; top: 0; white-space: nowrap; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .045); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; min-width: 9rem; }

/* buttons */
.btn { display: inline-block; font-weight: 700; font-size: 1.05rem; padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn-secondary { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* home hero */
.hero { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; padding: .5rem 0 1rem; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: 0; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--surface-2); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 3rem; padding: 1.5rem 0 2rem; } }

/* what you'll find */
.found-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.found-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.found-grid h3 { margin: .4rem 0 .3rem; font-size: 1.15rem; }
.found-grid p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.found-icon { font-size: 1.8rem; line-height: 1; }
@media (min-width: 760px) { .found-grid { grid-template-columns: repeat(3, 1fr); } }
main h2 + .cards, main h2 + .tiles { margin-top: 1.25rem; }

/* cards */
.cards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
/* Rows always come out even, whatever the card count: 1 col on phones; 2 cols on tablets with a lone last card
   laid out full-width; on desktop a 6-col grid where cards span 2 (a lone last card spans 6, a last pair spans 3 each). */
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) {
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards > .card { grid-column: span 2; }
  .cards > .card:last-child:nth-child(3n + 1) { grid-column: span 6; }
  .cards > .card:nth-last-child(2):nth-child(3n + 1), .cards > .card:last-child:nth-child(3n + 2) { grid-column: span 3; }
  .cards-text { grid-template-columns: repeat(2, 1fr); }
  .cards-text > .card, .cards-text > .card:last-child:nth-child(n) { grid-column: auto; }
}
/* a card that has the whole row to itself goes sideways: photo left, words right */
@media (min-width: 640px) and (max-width: 959px) { .cards > .card:last-child:nth-child(odd):has(.card-media) { flex-direction: row; } .cards > .card:last-child:nth-child(odd) .card-media { flex: 0 0 44%; } }
@media (min-width: 960px) { .cards > .card:last-child:nth-child(3n + 1):has(.card-media) { flex-direction: row; } .cards > .card:last-child:nth-child(3n + 1) .card-media { flex: 0 0 42%; } }
@media (min-width: 640px) {
  .cards > .card:last-child:has(.card-media) .card-media { display: flex; }
  .cards > .card:last-child:has(.card-media) .card-media picture { flex: 1; }
  .cards > .card:last-child:has(.card-media) .card-media img { height: 100%; aspect-ratio: auto; }
}
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.card h3 a, .card .t { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.card h3 a:focus-visible { outline: 0; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: .4rem; color: var(--brand-dark); font-weight: 700; }
.card p:not(.more) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card.soon { background: var(--surface-2); box-shadow: none; }
.card.soon:hover { transform: none; }
.related { max-width: var(--wrap); margin: 3.5rem auto 0; }
.related h2 { margin-top: 0; }
.related .photo-credit, section .photo-credit { max-width: var(--read); }

/* topic tiles */
.tiles { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 2px solid var(--line); color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-3px); color: var(--text); }
.tile-emoji { font-size: 1.9rem; line-height: 1.2; }
.tile-t { font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.tile-s { font-size: .95rem; color: var(--muted); line-height: 1.4; }
.tile.cat-vaccines { background: var(--c-vaccines-bg); } .tile.cat-spayneuter { background: var(--c-spayneuter-bg); }
.tile.cat-costs { background: var(--c-costs-bg); } .tile.cat-payment { background: var(--c-payment-bg); }
.tile.cat-insurance { background: var(--c-insurance-bg); } .tile.cat-telehealth { background: var(--c-telehealth-bg); }
.tile.cat-emergency { background: var(--c-emergency-bg); } .tile.cat-gear { background: var(--c-gear-bg); }
.tile.cat-vaccines .tile-t { color: var(--c-vaccines); } .tile.cat-spayneuter .tile-t { color: var(--c-spayneuter); }
.tile.cat-costs .tile-t { color: var(--c-costs); } .tile.cat-payment .tile-t { color: var(--c-payment); }
.tile.cat-insurance .tile-t { color: var(--c-insurance); } .tile.cat-telehealth .tile-t { color: var(--c-telehealth); }
.tile.cat-emergency .tile-t { color: var(--c-emergency); } .tile.cat-gear .tile-t { color: var(--c-gear); }
.tile .tile-s { color: var(--text); }

/* how it works */
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.6rem 1.4rem; margin-top: 3rem; }
.how ul { padding-left: 1.3rem; margin: 0; } .how li { margin: .6rem 0; }

/* credits */
.credits { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.credit { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; align-items: start; scroll-margin-top: 90px; }
.credit:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.credit .credit-thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.credit p { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 520px) { .credit { grid-template-columns: 1fr; } .credit .credit-thumb { width: 100%; aspect-ratio: 16 / 9; } }

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  th, td { padding: .7rem .8rem; }
  .quick-answer { padding: 1rem 1.1rem; }
  header.site .wrap { padding-top: .35rem; padding-bottom: .35rem; }
  nav.main a { padding: .4rem .6rem; }
  .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  header.site, footer.site nav, .related, .skip { display: none; }
  body { background: #fff; font-size: 11pt; --text: #111; --muted: #333; }
  article.guide, article.static, .card, .tile, .sit, .found-grid li, .how, .box {
    --surface: #fff; --surface-2: #f4f4f4; --line: #bbb; --text: #111; --muted: #333; --link: #064d44; --brand-dark: #064d44; --accent: #8a2a05;
    background: #fff; box-shadow: none; border-color: #bbb;
  }
  .card, .table-wrap { box-shadow: none; }
}

/* ---------- additions: situation cards, trust strip, steps, myth/fact, pull quote, range bars ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* pick your situation */
.situations { margin-top: 2.5rem; }
.situations h2 { margin-top: 0; margin-bottom: .2rem; }
.sit-lead { color: var(--muted); margin: 0 0 1.1rem; }
.sit-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sit-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }
.sit { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.3rem; border-radius: var(--radius); border: 2px solid transparent; background: var(--surface-2); color: var(--text); transition: transform .15s ease, box-shadow .15s ease; box-shadow: var(--shadow); }
.sit:hover { transform: translateY(-3px); }
.sit:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.sit-icon { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--sit-c, var(--brand-dark)); border: 2px solid var(--sit-c, var(--brand)); }
.sit-body h3 { margin: 0 0 .35rem; font-size: 1.2rem; line-height: 1.25; }
.sit-body h3 a { color: var(--sit-c, var(--text)); text-decoration: none; }
.sit-body h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.sit-body h3 a:focus-visible { outline: 0; }
.sit-body p { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.55; }
.sit-body .sit-go { margin: 0; font-weight: 700; color: var(--sit-c, var(--brand-dark)); }
.sit-vaccines { --sit-c: var(--c-vaccines); background: var(--c-vaccines-bg); }
.sit-emergency { --sit-c: var(--c-emergency); background: var(--c-emergency-bg); }
.sit-insurance { --sit-c: var(--c-insurance); background: var(--c-insurance-bg); }
.sit-spayneuter { --sit-c: var(--c-spayneuter); background: var(--c-spayneuter-bg); }
@media (max-width: 420px) { .sit { flex-direction: column; gap: .7rem; } }

/* trust strip under the guide title */
.trust-strip { list-style: none; margin: 0 0 1.4rem; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.trust-strip li { display: inline-flex; align-items: center; gap: .45rem; line-height: 1.4; }
.trust-strip .ti { flex: 0 0 auto; color: var(--brand); }
.trust-strip a { font-weight: 600; }

/* numbered steps */
.step-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; }
.step-pill { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; padding: .45rem .75rem; border-radius: 999px; background: var(--brand-dark); color: var(--on-brand); transform: translateY(-.15em); }

/* on this page */
.toc { margin: 0 0 1.5rem; }
.toc details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .2rem 1rem; }
.toc summary { cursor: pointer; font-weight: 700; padding: .55rem 0; color: var(--brand-dark); }
.toc ol { margin: 0 0 .6rem; padding-left: 1.3rem; columns: 1; font-size: 1rem; }
.toc li { margin: .25rem 0; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 2rem; } .toc li { break-inside: avoid; } }

/* myth vs fact */
.callout.myth { padding: 0; overflow: hidden; border-left-width: 1px; border-color: var(--line); background: var(--surface-2); }
.myth-row { display: flex; gap: .9rem; align-items: baseline; padding: .95rem 1.25rem; }
.myth-row > p, .myth-row > div { margin: 0; flex: 1; min-width: 0; }
.myth-row > div > :last-child { margin-bottom: 0; }
.myth-claim { background: var(--c-costs-bg); }
.myth-claim > p { font-weight: 700; color: var(--text); }
.myth-fact { background: var(--brand-tint); }
.myth-tag { flex: 0 0 auto; min-width: 3.9rem; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: .4rem .6rem; border-radius: 999px; color: var(--on-brand); }
.myth-claim .myth-tag { background: var(--c-costs); }
.myth-fact .myth-tag { background: var(--brand-dark); }
@media (max-width: 480px) { .myth-row { flex-direction: column; gap: .5rem; } .myth-tag { align-self: flex-start; } }

/* pull quote: one of our own sentences, set large. No quotation marks and no attribution, since nobody said it. */
.pullquote { margin: 2.2rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 6px solid var(--accent); }
.pullquote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3.2vw, 1.8rem); line-height: 1.35; font-style: italic; color: var(--text); }

/* price-range bars (build.py draws them from the $ amounts in a {bars} column) */
.has-range { min-width: 12rem; }
.range { display: block; position: relative; height: 10px; margin-top: .5rem; border-radius: 999px; background: #3a4c54; overflow: hidden; }
.range-fill { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 999px; background: var(--accent); }
.range-legend { margin: -.6rem 0 1.5rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.range-key { display: inline-block; width: 2.2rem; height: 8px; vertical-align: middle; border-radius: 999px; background: linear-gradient(90deg, #3a4c54 0 25%, var(--accent) 25% 75%, #3a4c54 75%); }

@media print {
  .trust-strip, .toc { break-inside: avoid; }
  .pullquote { border-left-color: #000; }
  .range, .range-fill, .myth-claim, .myth-fact, .step-pill, .myth-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.nowrap { white-space: nowrap; }

/* ---------- theme: lively page, tinted home-page bands, dark content boxes ---------- */
/* full-width colored bands on the home page. The band color is painted on the section itself (so it is a real background),
   spread sideways with a huge box-shadow and clipped top and bottom; ::before/::after draw soft wave edges. */
.band { position: relative; isolation: isolate; margin: 3.5rem 0; padding: 2.4rem 0 2.8rem; background: transparent; }
.band::before { content: ""; position: absolute; z-index: -1; top: -26px; bottom: -26px; left: calc(50% - 50vw); width: 100vw; background: var(--band); pointer-events: none;
  -webkit-mask: var(--wave) repeat-x 0 0 / 1200px 26px, var(--wave-flip) repeat-x 0 100% / 1200px 26px, linear-gradient(#000, #000) 0 26px / 100% calc(100% - 52px) no-repeat;
  mask: var(--wave) repeat-x 0 0 / 1200px 26px, var(--wave-flip) repeat-x 0 100% / 1200px 26px, linear-gradient(#000, #000) 0 26px / 100% calc(100% - 52px) no-repeat; }
.band-mint { --band: var(--band-mint); }
.band-sun { --band: var(--band-sun); }
.band-lilac { --band: var(--band-lilac); }
.band > h2:first-child { margin-top: 0; }
/* a faint paw in the corner of each band (decoration only) */
.band-deco { background-image: var(--band-paw); background-repeat: no-repeat; background-position: right 0 top 1.6rem; background-size: 92px 92px; }
@media (max-width: 700px) { .band-deco { background-image: none; } .band { margin: 3rem 0; } }
:root {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='26' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14C100 2 200 2 300 12S500 26 600 16 800 0 900 8s200 14 300 4V26Z'/%3E%3C/svg%3E");
  --wave-flip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='26' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 26)' d='M0 26V14C100 2 200 2 300 12S500 26 600 16 800 0 900 8s200 14 300 4V26Z'/%3E%3C/svg%3E");
  --band-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' viewBox='0 0 92 92'%3E%3Cg fill='%230b6e63' fill-opacity='.14'%3E%3Cellipse cx='20' cy='34' rx='9' ry='12'/%3E%3Cellipse cx='38' cy='20' rx='9' ry='12'/%3E%3Cellipse cx='58' cy='20' rx='9' ry='12'/%3E%3Cellipse cx='75' cy='34' rx='9' ry='12'/%3E%3Cpath d='M47 42c-14 0-26 14-26 27 0 9 8 11 15 9 5-2 8-3 11-3s6 1 11 3c7 2 15 0 15-9 0-13-12-27-26-27z'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root { --band-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' viewBox='0 0 92 92'%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Cellipse cx='20' cy='34' rx='9' ry='12'/%3E%3Cellipse cx='38' cy='20' rx='9' ry='12'/%3E%3Cellipse cx='58' cy='20' rx='9' ry='12'/%3E%3Cellipse cx='75' cy='34' rx='9' ry='12'/%3E%3Cpath d='M47 42c-14 0-26 14-26 27 0 9 8 11 15 9 5-2 8-3 11-3s6 1 11 3c7 2 15 0 15-9 0-13-12-27-26-27z'/%3E%3C/g%3E%3C/svg%3E"); }
}
.situations.band { margin-top: 3.5rem; }
.band .sit-lead { color: var(--text); }
.band .found-grid, .band .tiles { margin-top: 1.1rem; }
.hero { padding-top: 1rem; }
.hero-text .lead { color: var(--text); }
.hero-media img { border: 4px solid rgba(255, 255, 255, .75); }
@media (prefers-color-scheme: dark) { .hero-media img { border-color: rgba(255, 255, 255, .18); } }
header.site { box-shadow: 0 2px 14px rgba(20, 40, 40, .12); }
/* boxes on the page: gentle depth and a light edge so they read as cards in both modes */
.card, .tile, .sit, .found-grid li, .how { border-color: rgba(255, 255, 255, .14); }
.tile { border-width: 2px; border-color: var(--line); }
.how { padding-top: 1.4rem; }
.how h2 { margin-top: .4rem; }
.related { margin-top: 3.5rem; }
.related > h2 { margin-top: 0; }
