:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --surface: #fffdf8;
  --ink: #202f2c;
  --muted: #505f59;
  --green: #164d40;
  --green-dark: #113c32;
  --mint: #e7eee3;
  --line: #d4d9ce;
  --serif: "Instrument Serif", "Baskervville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --page: 1220px;
  --gutter: clamp(1.1rem, 4.6vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.58; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a44c0c; outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, h4, p, dl, ul, ol, figure, fieldset { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; text-wrap: balance; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 4.9vw, 4.75rem); letter-spacing: -.057em; }
h2 { font-size: clamp(1.85rem, 3.1vw, 3rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.028em; }
p, li, dd { overflow-wrap: break-word; }
main { min-height: 64vh; }
.wrap { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header > .wrap, .site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 80px; padding-block: .75rem;
}
.brand { color: var(--green); font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.055em; text-decoration: none; }
.brand svg, .brand img { max-height: 2.3rem; width: auto; vertical-align: middle; }
.nav, .site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.8rem, 1.8vw, 1.75rem); }
.nav a, .site-header nav a { color: var(--ink); font-size: .9rem; font-weight: 580; text-decoration: none; white-space: nowrap; }
.nav a:hover, .site-header nav a:hover, .site-header a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem 1rem; flex-wrap: wrap; }
.site-footer { margin-top: 4.25rem; border-top: 1px solid var(--line); background: #e9eee6; color: var(--ink); }
.site-footer > .wrap { padding-block: 2.5rem; }
.site-footer a { color: var(--green); }
.site-footer p, .site-footer li { font-size: .93rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.skip-link, .skip { position: absolute; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-200%); background: white; padding: .7rem 1rem; }
.skip-link:focus, .skip:focus { transform: none; }

.button, .btn, .tool-button, button[type="submit"] {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 45px; min-width: 44px; padding: .68rem 1.15rem; border: 1px solid var(--green);
  border-radius: 6px; color: white; background: var(--green); font-weight: 650; font-size: .98rem;
  line-height: 1.28; text-decoration: none; cursor: pointer;
}
.button:hover, .btn:hover, .tool-button:hover, button[type="submit"]:hover { background: var(--green-dark); color: white; text-decoration: none; }
.button.secondary, .btn.secondary, button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover, .btn.secondary:hover, button.secondary:hover { background: var(--mint); }
.button svg { width: 1.15rem; height: 1.15rem; }
.field, .tool-form label { display: grid; align-content: start; gap: .35rem; }
label, legend { color: var(--ink); font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), select, textarea {
  max-width: 100%; min-height: 45px; padding: .56rem .78rem; border: 1px solid #96a69b;
  border-radius: 5px; color: var(--ink); background-color: var(--surface);
}
textarea { display: block; width: 100%; min-height: 7rem; resize: vertical; }
textarea::placeholder, input::placeholder { color: #68736c; }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--green); }
fieldset { min-width: 0; }
.field small, .tool-note, .form-note, .muted { color: var(--muted); }
.panel, .tool-form, .geo-question, .geo-action { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: clamp(1.15rem, 3vw, 2.1rem); }
.section { margin-block: clamp(2rem, 5vw, 4rem); }
.grid, .tool-grid, .plan-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem), 1fr)); gap: 1.2rem; }
.eyebrow, .home-kicker { font-family: var(--sans); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; color: var(--green); line-height: 1.4; }
.breadcrumbs, .breadcrumb, .geo-crumbs { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-bottom: 1.3rem; }
.breadcrumbs span, .breadcrumb span { color: var(--muted); }
.lead, .geo-intro, .tool-header > p { max-width: 56rem; font-size: clamp(1.04rem, 1.55vw, 1.19rem); color: var(--muted); }
.article, .geo-page, .tool-page, .prose {
  width: min(960px, calc(100% - 2 * var(--gutter))); margin: clamp(2.2rem, 5.4vw, 4.8rem) auto;
}
.wrap .article, .wrap .geo-page, .wrap .tool-page, .wrap .prose,
.article .prose, .tool-page .prose { width: 100%; max-width: 960px; }
.article h1, .geo-page h1, .tool-page h1, .prose h1 { margin-bottom: .65rem; }
.article h2, .geo-page h2, .prose h2, .tool-page h2 { margin-bottom: .72rem; }
.article h3, .prose h3, .tool-page h3 { margin-bottom: .55rem; }
.article > section, .geo-page > section, .tool-page > section, .prose > section, .geo-sources { margin-block: 2.25rem; }
.article p, .prose p, .geo-page p, .tool-page p { max-width: 75ch; }
.article li, .prose li { margin-bottom: .36rem; }
.article ul, .prose ul, .tool-page ul { padding-inline-start: 1.35rem; }
.article fieldset, .prose fieldset, .tool-page fieldset { border: 1px solid var(--line); padding: 1rem; border-radius: 6px; }
.article img, .prose img { border-radius: 10px; }
.article .panel > :last-child, .prose .panel > :last-child, .geo-question > :last-child, .geo-action > :last-child { margin-bottom: 0; }

.landing { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.wrap .landing { width: 100%; }
.landing h1, .landing h2, .landing h3 { font-weight: 500; }
.landing h1 em, .landing h2 em { font-weight: 500; color: var(--green); }
.landing-hero {
  display: grid; align-items: center; grid-template-columns: minmax(0, .97fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(2.5rem, 5vw, 5rem);
}
.landing-hero-copy, .landing-hero-media { min-width: 0; }
.home-kicker { display: flex; gap: .7rem; align-items: center; margin: 0 0 1rem; }
.home-kicker::before { content: ""; height: 1px; width: 1.8rem; background: currentColor; }
.landing-hero h1 { font-size: clamp(3.5rem, 6.2vw, 6.1rem); line-height: .99; letter-spacing: -.063em; margin: 0 0 1.23rem; }
html[lang^="fr"] .landing-hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.65rem); }
.landing-intro { line-height: 1.58; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 41ch; margin-bottom: 1.75rem; }
.landing-hero-media { align-self: stretch; display: grid; }
.landing-hero-media picture { min-height: 24rem; max-height: 43rem; position: relative; overflow: hidden; border-radius: clamp(12px, 1.5vw, 24px); background: #d8cfb5; }
.landing-hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 52% 44%; }
.home-selector { max-width: 30rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.selector-fields { display: grid; grid-template-columns: minmax(8.75rem, .8fr) minmax(10rem, 1.3fr); gap: .8rem; }
.home-species { border: 0; padding: 0; margin: 0; }
.home-species legend, .home-jurisdiction > label { font-size: .78rem; margin-bottom: .35rem; display: block; padding: 0; }
.species-choices { display: grid; grid-template-columns: 1fr 1fr; height: 45px; border: 1px solid #96a69b; border-radius: 5px; background: var(--surface); padding: 3px; }
.species-choices label { position: relative; display: grid; cursor: pointer; }
.species-choices input { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; }
.species-choices span { display: grid; place-items: center; border-radius: 3px; font-size: .91rem; line-height: 1; }
.species-choices input:checked + span { background: var(--mint); color: var(--green-dark); font-weight: 750; box-shadow: inset 0 0 0 1px #9fb4a4; }
.species-choices input:focus-visible + span { outline: 3px solid #a44c0c; outline-offset: 1px; }
.home-jurisdiction select { width: 100%; font-size: .9rem; }
.home-selector .home-submit { width: 100%; justify-content: space-between; padding-inline: 1.1rem; margin-top: .85rem; min-height: 48px; }
.home-submit span { font-size: 1.26rem; line-height: 1; }
.home-example, .home-locations, .home-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.35rem, 6vw, 6rem); align-items: center; }
.home-example { background: #e9eee2; padding: clamp(1.55rem, 4.4vw, 3.5rem); border-radius: 14px; }
.landing h2 { font-size: clamp(2.2rem, 3.8vw, 3.65rem); margin-bottom: .8rem; letter-spacing: -.052em; }
.home-example h2, .home-locations h2 { max-width: 14ch; }
.home-example p:not(.home-kicker), .home-locations p:not(.home-kicker), .home-help p, .home-pet-copy p { color: var(--muted); max-width: 53ch; }
.home-text-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid #95a698; line-height: 1.4; padding-bottom: .14rem; }
.home-text-link:hover { border-color: var(--green); }
.home-receipt { background: var(--surface); border: 1px solid #d5d9c9; border-radius: 8px; padding: clamp(1rem, 2.4vw, 1.8rem); }
.home-receipt dl { margin: 0; font-variant-numeric: tabular-nums; }
.home-receipt dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .32rem 0; }
.home-receipt dt { color: var(--muted); }
.home-receipt dd { margin: 0; font-weight: 650; }
.home-receipt .home-receipt-total { border-top: 1px dashed #9da79b; margin-top: .65rem; padding: .75rem 0 0; }
.home-receipt-total dt, .home-receipt-total dd { color: var(--green); font-weight: 700; }
.home-receipt-total dd { font-size: 1.55rem; line-height: 1; }
.home-pets { padding-block: clamp(2.5rem, 5.5vw, 5rem); }
.home-pets > h2 { margin-bottom: 1.5rem; }
.home-pet-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.home-pet-card { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.home-pet-image { aspect-ratio: 2.05; overflow: hidden; }
.home-pet-image picture, .home-pet-image img { width: 100%; height: 100%; }
.home-pet-image img { object-fit: cover; object-position: 50% 42%; }
.home-pet-copy { padding: clamp(1.2rem, 2.5vw, 2rem); }
.home-pet-copy h3 { font-size: clamp(1.6rem, 2.7vw, 2.35rem); line-height: 1.15; margin: 0 0 .65rem; }
.home-locations { border-block: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.home-city-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; align-self: center; }
.home-city-list a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.home-city-list a:hover { text-decoration: underline; }
.home-help { align-items: start; padding-top: clamp(2.5rem, 4.5vw, 4rem); }
.home-help h2 { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }

.geo-header, .tool-header { margin-bottom: 1.65rem; }
.geo-regions, .geo-market-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); list-style: none; padding: 0; margin: 0; gap: .55rem 1rem; }
.geo-regions li, .geo-market-list li { min-width: 0; padding: .58rem 0; border-bottom: 1px solid var(--line); }
.geo-regions a, .geo-market-list a { font-weight: 650; }
.geo-region, .geo-aliases { display: block; font-size: .86rem; color: var(--muted); }
.geo-search { margin: 1.25rem 0; }
.geo-search label { display: block; margin-bottom: .25rem; }
.geo-search output { margin-left: .6rem; font-size: .88rem; color: var(--muted); }
.geo-question { border-left: 4px solid var(--green); background: var(--mint); }
.geo-actions, .tool-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-block: .6rem; }
.geo-sources { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.geo-sources ul { padding-left: 1.25rem; }
.geo-sources p { color: var(--muted); font-size: .87rem; }
.tool-form { margin-block: 1.4rem; }
.tool-grid { align-items: end; }
.tool-grid select, .tool-grid input, .field input, .field select, .field textarea { width: 100%; }
.tool-actions { margin-top: 1.1rem; }
.tool-form :where(small, p) { margin-block: .45rem; }
.plan-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.plan-card summary { color: var(--green); font-weight: 700; cursor: pointer; }
.plan-card[open] summary { margin-bottom: .8rem; }
.plan-card .plan-terms dt { color: var(--green-dark); font-weight: 700; }
.plan-card .plan-terms dd { margin: .2rem 0 .75rem; }
.plan-sources a { overflow-wrap: anywhere; }
.plan-card :last-child { margin-bottom: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
caption { padding: 1rem; font-weight: 700; text-align: left; }
td, th { text-align: start; vertical-align: top; padding: .78rem .95rem; border: 1px solid var(--line); }
th { color: var(--green-dark); background: var(--mint); }
td { background: var(--surface); }
.compare-table { table-layout: fixed; margin-top: 1rem; }
.compare-table thead th { color: white; background: var(--green); }
.compare-table :where(td, th), .geo-sources a { overflow-wrap: anywhere; }
.cost-result { padding: 1.1rem 1.35rem; background: var(--mint); color: var(--green-dark); border-radius: 8px; font-variant-numeric: tabular-nums; }
.cost-result strong, .cost-result output { font-weight: 750; }
.cost-amounts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: .8rem; }
.cost-amounts span, .cost-amounts strong { display: block; }
.cost-amounts strong { color: var(--green); font-size: 1.55rem; }
.article-photo { aspect-ratio: 2.1; width: min(100%, 720px); object-fit: cover; object-position: 50% 42%; margin: 1.5rem 0; }
.research-form label:not(.consent):not(.trap) { display: grid; gap: .3rem; }
.research-form .trap { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.research-form small { display: block; color: var(--muted); }
.prose form, .article form, .contact-form { max-width: 44rem; }
.prose form > *, .article form > *, .contact-form > * { margin-bottom: .8rem; }
.prose form label, .article form label, .contact-form label { display: block; }
.prose form input:not([type="checkbox"]), .article form input:not([type="checkbox"]), .contact-form input:not([type="checkbox"]) { max-width: 100%; }
.contact-form label:has(input[type="checkbox"]), .prose form label:has(input[type="checkbox"]), .article form label:has(input[type="checkbox"]) { display: flex; align-items: start; gap: .45rem; }
.contact-form input[type="checkbox"], .prose form input[type="checkbox"], .article form input[type="checkbox"] { flex: none; }
[role="alert"] { color: #822e18; font-weight: 600; }
dialog { color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: clamp(1rem, 3vw, 2rem); border-radius: 14px; width: min(95vw, 31rem); max-height: 88dvh; overflow-y: auto; box-shadow: 0 16px 52px #1d2c262e; }
dialog::backdrop { background: #18211d73; }
dialog h2 { font-size: 1.75rem; }
dialog input, dialog textarea { width: 100%; }
dialog :where(label, legend) { display: block; }
dialog button { min-height: 40px; }

@media (max-width: 950px) {
  .site-header > .wrap, .site-header .header-inner { gap: .65rem 1.2rem; flex-wrap: wrap; }
  .landing-hero { gap: 1.6rem; }
  .landing-hero h1 { font-size: clamp(3.2rem, 6.1vw, 4.4rem); }
  .selector-fields { grid-template-columns: minmax(7.7rem,.85fr) minmax(8.6rem,1fr); gap: .55rem; }
  .home-receipt dt { font-size: .93rem; }
}
@media (max-width: 760px) {
  .site-header > .wrap, .site-header .header-inner { min-height: auto; padding-block: .9rem; align-items: flex-start; }
  .site-header nav, .nav { column-gap: .95rem; row-gap: .5rem; }
  .site-header nav a, .nav a { font-size: .88rem; }
  .landing-hero { grid-template-columns: 1fr; padding-block: 2.1rem; gap: 1.4rem; }
  .landing-hero h1 { font-size: clamp(3.4rem, 10.5vw, 5rem); }
  html[lang^="fr"] .landing-hero h1 { font-size: clamp(2.65rem, 8.7vw, 4.55rem); }
  .landing-hero-copy { max-width: 38rem; }
  .landing-intro { max-width: 48ch; margin-bottom: 1rem; }
  .landing-hero-media picture { min-height: 0; aspect-ratio: 1.8; }
  .home-selector { max-width: 35rem; }
  .selector-fields { grid-template-columns: minmax(7.5rem,.75fr) minmax(9rem,1.2fr); }
  .home-example, .home-locations { grid-template-columns: 1fr; }
  .home-example h2, .home-locations h2 { max-width: 20ch; }
  .home-example { gap: 1.5rem; }
  .home-receipt { width: 100%; }
}
@media (max-width: 570px) {
  .home-pet-cards, .home-help { grid-template-columns: 1fr; }
  .landing-hero-media picture { aspect-ratio: 1.48; }
  .home-pet-image { aspect-ratio: 1.95; }
  .home-help { gap: 2.1rem; }
  .home-kicker { font-size: .65rem; }
  .compare-table td, .compare-table th { padding: .65rem .5rem; font-size: .88rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .geo-market-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .selector-fields { grid-template-columns: 1fr; }
  .home-city-list { gap: 0 .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  :root { --paper: white; --surface: white; --ink: black; --green: #111; --muted: #333; --line: #999; --gutter: 0px; }
  body { background: white; color: black; font-size: 10pt; }
  .no-print, .site-header, .site-footer, .skip, .skip-link, dialog, .tool-form, form, .tool-actions, .home-submit, .chat-launcher, .flor-chat, [data-chat-launcher], .breadcrumbs { display: none !important; }
  .wrap, .article, .prose, .tool-page, .geo-page, .landing { width: 100%; max-width: none; margin: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 17pt; break-after: avoid; }
  h3 { font-size: 14pt; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .table-wrap, .compare-table { overflow: visible; }
  .compare-table thead th { color: black; }
  tr, .plan-card, .home-receipt { break-inside: avoid; }
  a { color: black; }
  .button { color: black; background: white; }
  .home-pets, .home-help, .home-locations { break-before: auto; }
}
