/* ============================================================
   Geoport — Layout & components
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head); color: var(--heading);
  margin: 0 0 .5em; line-height: 1.2; font-weight: 800;
}
a { color: var(--primary-text); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--primary-hover, var(--primary-dark)); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-tint { background: var(--bg-tint); }
.bg-navy { background: var(--navy); }
.bg-navy, .bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy p { color: #fff; }
/* ⚠️ …but a light PANEL sitting on that dark band is its own surface. The rule
   above reached inside it, so the heading of the quote form on home-2 rendered
   WHITE ON WHITE — 1 : 1, an invisible heading. Anything with its own pale
   background has to take its normal colours back. */
.bg-navy .form-card, .bg-navy .card, .bg-navy .track-box, .bg-navy .info-card,
.bg-navy .svc-card, .bg-navy .testi-card, .bg-navy .side-card, .bg-navy .htl-card { color: var(--text); }
.bg-navy .form-card h1, .bg-navy .form-card h2, .bg-navy .form-card h3, .bg-navy .form-card h4,
.bg-navy .card h1, .bg-navy .card h2, .bg-navy .card h3, .bg-navy .card h4,
.bg-navy .track-box h1, .bg-navy .track-box h2, .bg-navy .track-box h3, .bg-navy .track-box h4,
.bg-navy .info-card h3, .bg-navy .svc-card h3, .bg-navy .testi-card h3,
.bg-navy .side-card h3, .bg-navy .htl-card h3 { color: var(--heading); }
.bg-navy .form-card p, .bg-navy .card p, .bg-navy .track-box p,
.bg-navy .info-card p, .bg-navy .svc-card p, .bg-navy .testi-card p, .bg-navy .htl-card p { color: var(--text); }
/* An eyebrow on a DARK band needs the light tint of the accent — `--primary-text`
   is tuned for pale surfaces and measured 3.01 : 1 on navy. */
.bg-navy .eyebrow, .contact-aside .eyebrow, .founder-quote .eyebrow, .quote-card .eyebrow { color: var(--primary-on-dark, var(--primary-light)); }
.bg-navy .form-card .eyebrow, .bg-navy .card .eyebrow { color: var(--primary-text); }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.col { flex: 1 1 340px; min-width: 0; }

/* Section heading block */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px; color: var(--primary-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head.text-center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 15px 32px; border-radius: var(--radius); border: 2px solid transparent;
  transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary-text); }
/* On the dark hero a ghost button is white-on-dark and correct. Inside an
   ACCENT band it is white over a 12%-white wash of the accent — which measured
   2.74 : 1 on orange. Only the band case needs correcting, so it is scoped
   rather than changed everywhere. */
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: var(--card); color: var(--heading); }
.cta-band .btn-ghost, .geo-band .btn-ghost {
  background: rgba(0,0,0,.10); color: var(--on-primary-wash, var(--on-primary)); border-color: currentColor;
}
.cta-band .btn-ghost:hover, .geo-band .btn-ghost:hover { background: var(--card); color: var(--heading); }
/* ---- The quiet button, for use over a photo ----
   The "second action" on the hero: visible, clickable, and plainly not the one
   being recommended.

   ⚠️ The wash is 18% BLACK, not the 12% white .btn-ghost uses, and that is the
   whole point. This sits over a photograph under a veil that thins to 62% by
   the right of the text column, so a bright photo can push the surface under
   white text light. A white wash makes that worse; a dark one can only make it
   better, and it still reads as an empty outline beside a filled accent button.
   Same reasoning the .cta-band .btn-ghost override already uses.

   ⚠️ The hover fill is var(--card), NOT #fff. In dark mode --heading is #ffffff,
   so a hardcoded white background would have given white text on white — the
   button would vanish the moment the pointer touched it. */
.btn-hollow { background: rgba(0,0,0,.18); color: #fff; border-color: rgba(255,255,255,.75); }
.btn-hollow:hover { background: var(--card); color: var(--heading); border-color: var(--card); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-hollow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* ---- The loud button INSIDE an accent band ----
   ⚠️ `.cta-band` is painted in var(--primary), so a .btn-primary dropped into
   one is the accent on the accent — a button you cannot see. These bands carry
   two actions now (see the adoption-process page: browse the dogs, then apply),
   and the recommended one has to be the one that stands out. A solid card-
   coloured fill does that on every theme, and its label is --heading, so it is
   readable in both light and dark. */
.cta-band .btn-primary, .geo-band .btn-primary { background: var(--card); color: var(--heading); border-color: var(--card); }
.cta-band .btn-primary:hover, .geo-band .btn-primary:hover { background: var(--bg-tint); color: var(--heading); border-color: var(--bg-tint); }
.btn-lg { padding: 18px 40px; font-size: 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cdd8f0; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 20px; }
.topbar a { color: #cdd8f0; }
.topbar a:hover { color: var(--primary-on-dark, var(--primary-light)); }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 26px; }
.topbar .tb-item { display: flex; align-items: center; gap: 8px; }
.topbar .socials { display: flex; gap: 14px; }

/* ---------- Header ---------- */
.site-header { background: var(--card); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(0,29,103,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
/* The site name wears the ACCENT as its normal colour — the colour it used to
   turn only on hover. `--primary-text` is the accent already proven legible on
   the surfaces the header sits on, so it holds up on all 28 themes and in both
   modes; the raw `--primary-dark` the hover used does not (graphite's is
   #030712, invisible on a dark header). */
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--brand-name, var(--primary-text)); }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-size: 22px; transform: rotate(-8deg);
}
/* The built-in SVG marks (Frenchie head, paw).
   ⚠️ The tilt is removed here on purpose. A rotated geometric diamond reads as
   a design choice; a rotated animal head reads as a bug. Padding keeps the
   silhouette off the edge of the rounded square, and the SVG inherits
   `currentColor` from the rule above so it recolours with the theme. */
.brand .logo-mark-svg { transform: none; padding: 6px; }
.brand .logo-mark-svg svg { display: block; }
/* Hover now swaps to the heading colour — the name still reacts, and the state
   it moves to is the page's own text colour, so it can never go unreadable. */
.brand:hover { color: var(--heading); }
/* If one word is picked out in Branding it has to differ from the name around
   it — now that the name IS the accent, the picked word takes the heading
   colour instead of the other way round. */
.brand b { color: var(--heading); }
.brand:hover b { color: var(--primary-text); }
/* The footer carries the same name on a DARK panel, so it takes the dark-surface
   accent rather than `--primary-text`, which is tuned for pale surfaces. It used
   to be hard-coded white inline, which is why the two copies of the name did not
   match. */
.site-footer .brand { color: var(--brand-name-on-dark, var(--primary-on-dark, var(--primary-light))); }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand b { color: #fff; }
.site-footer .brand:hover b { color: var(--primary-on-dark, var(--primary-light)); }
.nav { display: flex; align-items: center; gap: 4px; }
/* Every navigation item is BOLD — 800 across the board, so the menu reads with
   the same weight as the site name beside it rather than trailing off. */
.nav a {
  font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--heading);
  padding: 10px 14px; border-radius: 9px; position: relative;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--primary-text); background: var(--bg-tint); }
/* The page you are on is marked by a short underline in the accent as well as a
   colour change — colour alone is not something everyone can see. */
.nav a.active { color: var(--primary-text); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--primary-text);
}
.header-cta { display: flex; align-items: center; gap: 16px; }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
/* Buttons carry a full and a short wording; the short one only shows on phones. */
.btn .lbl-short { display: none; }
.header-cta .phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.header-cta .phone i { color: var(--primary-text); font-size: 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--heading); cursor: pointer; }

/* ---- The grouped menu (Header → Menu style → "Grouped") ----
   Only ever styles `.nav-drop`, so the flat menu is untouched by any of it. */
.nav-drop .nav-group { position: relative; display: inline-flex; }
.nav-drop .nav-parent {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-family: var(--font-head); font-weight: 700;
  background: none; border: 0; cursor: pointer; color: var(--heading);
  padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-drop .nav-parent:hover, .nav-drop .nav-group.open .nav-parent { color: var(--primary-text); }
.nav-drop .nav-group.active .nav-parent { color: var(--primary-text); }
.nav-drop .nav-caret { font-size: 10px; transition: transform .22s var(--ease); }
.nav-drop .nav-group.open .nav-caret { transform: rotate(180deg); }
/* The panel. Hidden with visibility + opacity rather than display:none so it can
   animate, and so `visibility:hidden` still takes it out of the tab order. */
.nav-drop .nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 224px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
/* Hover for a mouse, .open for a tap, focus-within for a keyboard — one panel,
   three ways in, no JS needed for the first and third. */
.nav-drop .nav-group:hover .nav-sub,
.nav-drop .nav-group.open .nav-sub,
.nav-drop .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop .nav-sub a {
  padding: 10px 13px; border-radius: 7px; font-size: 14.5px; white-space: nowrap;
  color: var(--heading); font-family: var(--font-head); font-weight: 600;
}
.nav-drop .nav-sub a:hover { background: var(--bg-tint); color: var(--primary-text); }
.nav-drop .nav-sub a.active { background: var(--bg-tint); color: var(--primary-text); }
/* The desktop underline belongs to the top row, not to a panel row. */
.nav-drop .nav-sub a.active::after { display: none; }
/* A group near the right edge would otherwise open off-screen. */
.nav-drop .nav-group:last-of-type .nav-sub { left: auto; right: 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-drop .nav-sub { transition: none; }
  .nav-drop .nav-caret { transition: none; }
}

/* ---------- Hero / slider ----------
   ⚠️ EVERY SLIDE SITS IN ONE GRID CELL, AND THIS MATTERS FAR MORE THAN IT LOOKS.

   The slides used to be ordinary siblings swapped with display:none/flex, so
   the banner was only ever as tall as whichever slide was showing. Measured on
   a 375px phone, the four slides are 674, 585, 617 and 660px tall — so the
   whole page below jumped by up to 89px every time it rotated.

   The cross-fade was far worse. It shows BOTH slides at once, and as siblings
   in normal flow they stacked one under the other: the banner measured 1259px
   mid-fade, everything beneath it was shoved down 673px, and it snapped back a
   moment later. Every few seconds, for as long as the page is open.

   THAT is what "blocks randomly appear and disappear while scrolling" was. It
   was never the reveal animation — content was being thrown out of the viewport
   and dragged back by a banner changing size underneath it.

   One grid cell fixes it at the root: the banner is always as tall as its
   TALLEST slide, whichever is showing and however many are mid-fade, so nothing
   below it ever moves. `contain: layout` then makes that a guarantee rather
   than a happy accident — nothing inside this section can affect the layout of
   anything outside it, whatever gets added here later. */
.hero {
  position: relative; color: #fff; overflow: hidden;
  display: grid;
  contain: layout;
}
/* EVERY direct child, not only the slides: the background-media layers and the
   editor's own chrome are dropped in here too, and one stray grid row would
   put the height back to moving. */
.hero > * { grid-area: 1 / 1; }

/* ⚠️ AND THE SAME FOR ANY BANNER BUILT LATER, ON ANY PAGE.
   Today only the homepage rotates, so `.hero` alone would have been enough —
   but the protection has to belong to "a section holding slides", not to one
   id. Matched on the slides themselves, so a second banner added to another
   page tomorrow is sealed the moment it exists and nobody has to remember
   this rule. */
section:has(> .hero-slide), div:has(> .hero-slide) { display: grid; contain: layout; }
section:has(> .hero-slide) > *, div:has(> .hero-slide) > * { grid-area: 1 / 1; }
/* ⚠️ ONE exception, and only in the live editor: the dashed "Add another card
   here" box. It is created as a direct child of the banner and, unlike every
   other editor tool, it is NOT positioned — so in the shared cell it was
   stretched over the whole banner and painted UNDER the showing slide (a
   positioned element always paints above a static one). The owner could
   neither see it nor tap it. It gets a row of its own below the slides
   instead: a constant extra height while editing that never changes with the
   rotation, so nothing below it moves.
   Two rules, not one: `:has()` is NOT a forgiving selector, so on a browser
   without it (iOS before 15.4) a single `:has()` in a list discards the WHOLE
   rule — and the plain `.hero` exemption would have gone with it. */
.hero > .geo-cardadd { grid-area: auto; }
section:has(> .hero-slide) > .geo-cardadd, div:has(> .hero-slide) > .geo-cardadd { grid-area: auto; }

/* The single-band heroes — every inner page's `.page-hero`, and home-3's
   `.hero-center` — hold one band rather than a stack, so there is nothing to
   overlay. They are still sealed off, so whatever is put inside them (a photo,
   a video, both) can never change the layout of the page around them. */
.page-hero, .hero-center, .split-hero { contain: layout; }
/* ⚠️ NOT when a video is behind the banner.
   In `video` mode the banner's picture is forced to none; in `imgvid` the
   picture is deliberately shrunk to sit as a SMALL picture over the video
   (--hero-pic, 62% by default). A full-bleed drifting layer would swallow the
   video whole in both, so it is removed outright.
   BOTH selector forms: the mode class lands on a WRAPPER on the homepage
   (#hero > .hero-slide) but on the banner ITSELF on home-3, where #hc-hero IS
   the .hero-center — the descendant form alone missed that page entirely.
   `!important` because the drift layer is also written by stylesheets injected
   after this file, and at equal specificity the later one wins. */
.geo-hero-video .hero-slide::after, .geo-hero-imgvid .hero-slide::after,
.geo-hero-video.hero-slide::after, .geo-hero-imgvid.hero-slide::after,
.geo-hero-video .hero-center::after, .geo-hero-imgvid .hero-center::after,
.geo-hero-video.hero-center::after, .geo-hero-imgvid.hero-center::after { content: none !important; }
.hero-slide {
  min-height: 640px; display: flex; align-items: center;
  background-size: cover; background-position: center;
  position: relative;
}
/* ⚠️ Hidden, but STILL MEASURED. `display: none` would drop the slide out of
   the grid's sizing and the banner would start changing height again — which is
   the whole bug. Kept in the layout, taken off the screen. */
.hero-slide.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
/* The veil sits above the drifting photo below, and under the writing. */
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--veil-rgb,0,20,71),.86) 0%, rgba(var(--veil-rgb,0,20,71),.62) 55%, rgba(var(--veil-rgb,0,20,71),.25) 100%); }

/* ---- The slow drift (Ken Burns) ----
   ⚠️ It used to zoom by setting `background-size: <zoom>% auto` and animating
   `background-position`, and that only ever worked on a wide screen. A phone
   banner is TALLER than it is wide, so a width-driven size makes the photo
   SHORTER than the box it sits in: measured at 375px, a 1200×1600 photo
   rendered 538px tall inside a 674px banner. It did not even cover, and
   `background-position` had no overflow to move within — the drift came to
   exactly 0px. The picture changed and never moved, which is exactly what was
   reported on Android and iOS. (Desktop escaped it because a separate rule gave
   screens over 900px `cover`, which does overflow, so it drifted there.)

   The photo now gets its own layer that always covers, and the zoom is a
   TRANSFORM: it has room to move whatever shape the screen is, and a transform
   is composited on the GPU, so a phone animates it smoothly instead of
   repainting the whole banner every frame. It is an absolutely positioned
   pseudo-element, so it cannot affect the layout of anything at all.

   `background-image: inherit` takes the slide's own photo, so nothing has to
   set the picture twice and every existing tool that reads or writes a slide's
   background keeps working untouched. */
.hero-motion .hero-slide::after,
.hero-motion .hero-center::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: inherit; background-size: cover; background-position: center;
  transform-origin: 50% 50%;
  animation: featKen var(--ken-secs, 12s) var(--ken-ease, ease-in-out) infinite alternate;
  will-change: transform;
}
.hero-motion .hero-center::before { z-index: 1; }
@keyframes featKen {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--ken-zoom, 1.12)) translate3d(0, -1.2%, 0); }
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; padding: 60px 0; }
.hero .eyebrow { color: var(--primary-on-dark, var(--primary-light)); }
.hero .eyebrow::before { background: var(--primary-on-dark, var(--primary-light)); }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(36px, 6vw, 64px); margin-bottom: 20px; }
.hero p { font-size: 19px; color: #dfe7fb; margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Service cards ---------- */
.svc-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.svc-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--primary); transition: width .35s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card:hover::after { width: 100%; }
.svc-icon { width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-tint); color: var(--primary-text); font-size: 34px; margin-bottom: 24px; transition: all .35s var(--ease); }
.svc-card:hover .svc-icon { background: var(--primary); color: var(--on-primary); }
.svc-card h3 { font-size: 22px; margin-bottom: 12px; }
.svc-card .more { font-family: var(--font-head); font-weight: 700; font-size: 14px; display: inline-flex; gap: 8px; margin-top: 8px; color: var(--primary-text); }

/* Image-led service card (photos, no emoji) */
.svc-card-img { padding: 0; overflow: hidden; }
/* Shape and fit come from the one card-picture setting further down. */
.svc-card-img .svc-media { overflow: hidden; }
.svc-card-img .svc-media img { transition: transform .55s var(--ease); }
.svc-card-img:hover .svc-media img { transform: scale(1.07); }
.svc-card-img .svc-body { padding: 26px 30px 32px; }
.svc-card-img .svc-body h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card-img .svc-body h3 a { color: var(--heading); }
.svc-card-img:hover .svc-body h3 a { color: var(--primary-text); }

/* Track button — vivid, clearly clickable */
/* The writing colour is chosen in site.js against the background you picked
   (WCAG contrast), so it is set inline and must NOT be forced back to white
   here - a pale Track-button colour used to make the label vanish. */
.btn-track:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Faint builder monogram — subtle, non-intrusive */
.footer-bottom { position: relative; flex-wrap: wrap; }
.builder-mono { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 11px; opacity: .28; letter-spacing: .02em; }
.builder-mono:hover { opacity: .6; }

/* Video section */
.video-embed { max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }

/* Google Translate widget — tame Google's default chrome */
#google_translate_element .goog-te-gadget { font-size: 0; color: transparent; }
#google_translate_element .goog-te-gadget .goog-te-combo { font-size: 13px; color: var(--heading); margin: 0; padding: 4px; border: 0; }
body { top: 0 !important; }

/* ---------- Feature / about ---------- */
.feature-list { list-style: none; display: grid; gap: 16px; margin: 24px 0; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list i { color: var(--primary-text); margin-top: 4px; }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ---------- Counters ---------- */
.counter { text-align: center; color: #fff; }
.counter .num { font-family: var(--font-head); font-weight: 900; font-size: 52px; color: var(--primary-on-dark, var(--primary-light)); line-height: 1; }
.counter .label { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: #cdd8f0; margin-top: 10px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.team-social { position: absolute; inset: auto 0 -60px 0; display: flex; justify-content: center; gap: 12px; padding: 16px; background: linear-gradient(transparent, rgba(0,29,103,.85)); transition: bottom .35s var(--ease); }
.team-card:hover .team-social { bottom: 0; }
.team-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--heading); display: grid; place-items: center; }
.team-social a:hover { background: var(--primary); color: var(--on-primary); }
.team-card h3 { margin: 20px 0 4px; font-size: 20px; }
.team-card .role { color: var(--primary-text); font-weight: 700; font-family: var(--font-head); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testi-card { background: var(--card); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--border); }
.testi-card .quote-mark { font-size: 60px; color: var(--bg-tint); font-family: var(--font-head); line-height: .6; position: absolute; top: 30px; right: 32px; }
/* colour comes from Appearance -> Star colour (one setting, every star) */
.testi-stars { margin-bottom: 16px; }
.testi-person { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.testi-person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
/* The reviewer's name is an h3, not an h4 — its section heading is an h2, and
   jumping h2 → h4 skips a level, which breaks the heading ladder search engines
   and screen readers rely on. It still LOOKS the same. */
.testi-person h4, .testi-person h3, .testi-person .testi-name { margin: 0; font-size: 17px; }
/* Same reasoning for the article author and the shop review names: they were
   h4 under an h2, which skips h3. They keep their old size. */
.author-box .author-name, .r-head .r-name { margin: 0; font-size: 17px; }
.testi-person span { color: var(--primary-text); font-size: 14px; font-weight: 700; }

/* ---------- Blog cards ---------- */
.post-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); }
.post-thumb { overflow: hidden; }
.post-thumb img { transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-body { padding: 28px; }
.post-meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-family: var(--font-head); font-weight: 600; }
.post-meta i { color: var(--primary-text); margin-right: 6px; }
.post-body h3 { font-size: 20px; }

/* ---------- Brand logos strip ---------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.brands img { max-height: 46px; opacity: .55; filter: grayscale(1); transition: all .3s; }
.brands img:hover { opacity: 1; filter: none; }

/* ---------- CTA band ----------
   `.geo-band` is the same look applied to ANY block whose structure is set to
   "Everything on one coloured band". Both classes are what the site-wide
   Coloured-bands setting and the per-block band colour target, so a band made
   this way is editable in exactly the same places as the ones that shipped. */
.cta-band { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--on-primary); }
.geo-band { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 56px); }
/* These need naming explicitly: `h1..h6` carry their own colour rule, so a
   heading does NOT inherit the band's. White is wrong on a bright accent. */
.geo-band h1, .geo-band h2, .geo-band h3, .geo-band h4, .geo-band p, .geo-band li, .geo-band .section-title { color: var(--on-primary); }
.geo-band .eyebrow { color: var(--on-primary); opacity: .85; }
.geo-band .btn-primary { background: #fff; color: var(--heading); border-color: #fff; }
@media (max-width: 640px) { .cta-band, .geo-band { padding: 30px; } }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 90px 0; text-align: center; position: relative; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(var(--veil-rgb,0,20,71),.8); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 50px); }
.crumb { display: flex; gap: 10px; justify-content: center; font-family: var(--font-head); font-weight: 600; color: #cdd8f0; }
.crumb a { color: var(--primary-on-dark, var(--primary-light)); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--heading); margin-bottom: 8px; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; color: var(--heading); background: var(--card); transition: border .2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ---- Radio / checkbox GROUPS (formFieldHTML's "radio" and "checkgroup") ----
   ⚠️ Requested explicitly: a dropdown hides its options until clicked, so an
   applicant cannot compare them at a glance — "make it multiple choice so
   they see the answers well… look very good, convenient, and clearly
   something you choose one of." A bare native radio circle answers the
   mechanics but not the ask, so each option is its own full-width, bordered
   row — the same visual weight as a text input, not a cramped list — with a
   larger tap target (the WHOLE row is the label) and a visible selected
   state. `:has()` is used only for the highlight, which is cosmetic; the
   input itself still carries the real state, so this degrades to a plain
   (still perfectly usable) bordered list on a browser without `:has()`. */
.geo-choice-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.geo-choice {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); font-family: var(--font-body); font-size: 15px; color: var(--heading);
  font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s;
}
.geo-choice:hover { border-color: var(--primary-text); }
.geo-choice input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary-text); }
.geo-choice:has(input:checked) {
  border-color: var(--primary-text); background: color-mix(in srgb, var(--primary) 10%, var(--card));
  font-weight: 600;
}
.geo-choice:has(input:focus-visible) { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }

/* ---- The confirmation after a form is sent ----
   ⚠️ Tokens, not fixed colours. This used to be a pale green strip written
   inline, which meant the one moment that has to feel reassuring was the one
   element that ignored the site's palette entirely and was unreadable in dark
   mode. Calm on purpose: the site's own accent, a quiet tint, no shouting. */
.form-done {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 16px; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--bg-tint); color: var(--text);
  font-size: 15px; line-height: 1.6;
  /* ⚠️ `forwards`, NEVER `both`. A backwards fill makes the element hold the
     keyframes' FROM state — opacity 0 — from the moment it is inserted until
     the animation actually starts. If it never starts (a phone too busy to
     run it, a tab that was in the background, a browser that dropped the
     frame) the message stays invisible for good. This is the one message that
     tells somebody their adoption application arrived: if it does not appear,
     they believe the form failed and send it again, or give up. With
     `forwards` the resting state is simply visible, so the worst an animation
     that never runs can cost is the animation. */
  animation: formDoneIn .45s var(--ease, ease-out) forwards;
}
.form-done__tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary, #fff);
  font-weight: 700; font-size: 15px; line-height: 1;
}
.form-done__msg { min-width: 0; }
/* The same box when the message did NOT go through — never a tick beside it. */
.form-done.is-fail { border-left-color: var(--danger-text, #c81e1e); }
/* --danger-text is a deep red in light mode and a light red in dark mode, so
   the glyph takes the card colour — white on the one, near-black on the other. */
.form-done.is-fail .form-done__tick { background: var(--danger-text, #c81e1e); color: var(--card, #fff); }
@keyframes formDoneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-done { animation: none; } }

/* ---------- Tracking widget ---------- */
.track-box { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px; border: 1px solid var(--border); }
.track-search { display: flex; gap: 12px; flex-wrap: wrap; }
.track-search .input { flex: 1 1 260px; }
.track-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-top: 30px; }
@media (max-width: 900px) { .track-layout { grid-template-columns: 1fr; } }
#map { width: 100%; height: 460px; border-radius: var(--radius-lg); overflow: hidden; z-index: 1; }
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--border); }
.timeline li.done::before { border-color: var(--primary-text); background: var(--primary); }
.timeline li.current::before { border-color: var(--primary-text); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent); }
.timeline .t-time { font-size: 13px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.timeline .t-title { font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 13px; background: var(--bg-tint); color: var(--primary-text); }

/* ---------- Footer ---------- */
/* The writing was #aab6d4, a blue-grey picked to sit on the courier navy.
   Now that --dark follows each theme (see Geo.applyOnPrimary) a fixed blue-grey
   would be the only cool thing on a maroon or forest-green footer. Translucent
   white instead: it takes its hue from whatever band is behind it, so it is
   right on all 29 and never needs recomputing. Measured 8.2:1 or better on
   every theme's derived --dark. */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding-top: 80px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 24px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--primary-on-dark, var(--primary-light)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.footer-links { list-style: none; display: grid; gap: 12px; }
.footer-links a { display: inline-flex; gap: 10px; }
/* ---------- The full page list in the footer ----------
   A wrapping row, not columns. The number of links changes every time the owner
   switches a page on or off, and a fixed column count that suits 22 links
   leaves three orphans on a line at 8. Separators are drawn with a border on
   the link itself rather than a "·" character, so a screen reader reading the
   list does not say "middle dot" between every page name.
   Each link keeps a 44px tap target on a phone (see the media query below). */
.footer-sitemap { border-top: 1px solid rgba(255,255,255,.10); padding: 26px 0 4px; }
.footer-sitemap h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: rgba(255,255,255,.9); }
.footer-sitemap__links { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 14px; }
.footer-sitemap__links a { padding: 4px 14px; border-left: 1px solid rgba(255,255,255,.16); line-height: 1.5; }
.footer-sitemap__links a:first-child { border-left: 0; padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.newsletter { display: flex; gap: 10px; margin-top: 16px; }
.newsletter input { flex: 1; padding: 13px 16px; border: 0; border-radius: var(--radius); }

/* ---------- Fields the owner added themselves (Geo.extraHTML) ----------
   A label and its value, e.g. "Vision — every dog in a home that fits it".
   Quiet by design: it sits under a card's own wording, or in an item's own
   page, and must read as part of that item rather than as a new section. */
.geo-xfs { display: grid; gap: 6px; margin: 10px 0 0; text-align: inherit; }
.geo-xf { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.geo-xf-l { font-weight: 700; color: var(--heading); }
.geo-xf-l::after { content: ": "; font-weight: 400; }
.geo-xf-yes .geo-xf-l::after { content: ""; }
.geo-xf-long .geo-xf-l { display: block; }
.geo-xf-long .geo-xf-l::after { content: ""; }
.geo-xf-long .geo-xf-v { white-space: pre-line; }
.geo-xf-img img { max-width: 100%; border-radius: var(--radius); display: block; }
.geo-xfs-page { margin: 26px 0 0; padding: 20px 22px; background: var(--bg-tint); border-radius: var(--radius-lg, var(--radius)); gap: 10px; }
.geo-xfs-page .geo-xf { font-size: 16px; }
/* A heading the owner added to one item (and words added without a label):
   it reads as part of the card's own wording, not as "Label: value". */
.geo-xf-head .geo-xf-v { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.12em; line-height: 1.3; color: var(--heading); }
.geo-xf-bare .geo-xf-v { white-space: pre-line; }
/* A button or a dividing line added onto one item (2026-11-30). */
.geo-xf-btn { margin: 12px 0 4px; }
.geo-xf-line { height: 2px; background: var(--border); margin: 16px 0; border-radius: 2px; }
/* "Details →" on cards whose list now has a page per item. */
.item-more-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--primary); text-decoration: none; }
.item-more-link:hover { text-decoration: underline; }
.btn + .item-more-link { margin-left: 14px; }
/* A partner chip carries its own fields inline, small. */
a.partner-chip { text-decoration: none; }
.partner-chip .geo-xfs { display: inline-flex; gap: 8px; margin: 0 0 0 10px; font-size: .85em; }
.partner-chip .geo-xf { margin: 0; }
.partner-chip .geo-xf-img img { height: 22px; width: auto; }
.feat-marquee .feat-mq-item { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.feat-marquee .feat-mq-item .geo-xfs { display: inline-flex; gap: 8px; margin: 0; }
.feat-marquee .feat-mq-item .geo-xf { margin: 0; }
.feat-marquee .feat-mq-item .geo-xfs span { font-size: 13px; font-weight: 600; }
.feat-marquee .feat-mq-item .geo-xf-img img { height: 24px; width: auto; }

/* ---------- Show the page all at once ---------- */
/* The <head> script adds `geo-hold` to <html>; site.js (Geo._holdWatch) takes
   it away the moment the page is complete, so it appears in one piece instead
   of being drawn in stages. ⚠️ This animation is the guarantee that it can
   never hide a page for good: whatever happens to the scripts, the page is
   shown 3 seconds after it started. Opacity, not visibility, so nothing inside
   can show through early. */
@keyframes geoHoldGiveUp { to { opacity: 1; } }
html.geo-hold body { opacity: 0; animation: geoHoldGiveUp 0s linear 3s forwards; }

/* ---------- Preloader ---------- */
/* ⚠️ OFF BY DEFAULT. The page shows at once; the curtain exists only when the
   owner switched the loading screen on, which a tiny script in each page's
   <head> answers before the first paint by adding `geo-pre` to <html>. Without
   that class the curtain is never drawn at all — not even for the instant
   before the scripts at the bottom of the page have run. */
html:not(.geo-pre) .preloader { display: none !important; }
.preloader { position: fixed; inset: 0; background: var(--card); z-index: 9999; display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
/* ⚠️ `pointer-events: none` the instant it is hidden. Opacity and visibility
   are both transitioned, so without this a full-screen layer at z-index 9999
   kept catching every tap until a half-second transition finished — and a
   transition that never runs (a backgrounded tab, a throttled frame) left the
   whole page untappable behind an invisible sheet. Whether it blocks the page
   must not depend on an animation's clock. */
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* ⚠️ Hiding it does not stop it. The spinner kept rotating for the whole
   visit, three looping animations repainting behind an invisible layer, on
   every page. Free on a laptop, not free on a phone. */
.preloader.hidden .spinner, .preloader.hidden * { animation: none !important; }
/* ⚠️ THE PRELOADER MUST NEVER BE ABLE TO TRAP A VISITOR.
   It covers the whole screen, opaque, above everything — and only JavaScript
   ever added `.hidden`. So if site.js failed to arrive or threw before it ran
   (one network hiccup, one error, one over-eager extension), the visitor sat
   looking at a blank coloured rectangle for ever, with the entire page loaded
   underneath it and no way to know.
   This makes the curtain lift itself. JavaScript still removes it in about a
   quarter of a second on a normal load, so nobody waits for this — it only
   matters on the day something goes wrong, which is exactly when a website
   must still work. */
@keyframes geoPreloaderGiveUp { to { opacity: 0; visibility: hidden; } }
.preloader { animation: geoPreloaderGiveUp .45s ease 6s forwards; }
/* Someone who has asked for less motion should not wait 6 seconds either. */
@media (prefers-reduced-motion: reduce) {
  .preloader { animation-duration: .01s; }
}
.spinner { width: 54px; height: 54px; border: 4px solid var(--bg-tint); border-top-color: var(--primary-text); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: grid; gap: 10px; }
/* No `animation` here: the entrance is generated from settings by
   Geo.applyAnimStyle() so the owner can change its rise, its pace and its
   easing. Two definitions would be a race over which stylesheet loads last. */
.toast { background: var(--navy); color: #fff; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.toast.err { background: #d00c27; }
.toast.ok { background: #10b981; }
/* @keyframes toastin is generated from settings — see Geo.applyAnimStyle(). */

/* ---------- Reveal on scroll ---------- */
/* ⚠️ iOS Safari composites opacity+transform transitions on its own terms.
   During momentum scrolling an element part-way through one can blink out and
   back — the block appears, vanishes, then fades in again. Giving it a
   layer of its own settles it. translateZ(0) is kept on the finished state
   too: dropping back to `transform: none` destroys the layer and reintroduces
   the flicker at the very end of the fade. */
[data-reveal] { opacity: 0; transform: translateY(28px) translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateZ(0); }

/* ---------- Respect "reduce motion" ----------
   Some people get dizzy or unwell from movement, and set their phone or computer
   to ask sites to keep still. This site has a lot of movement — sections that
   fade in, the sliding banner, the scrolling partner strip, hover lifts, the
   menu sliding open, the glide back to the top — so it has to honour that.

   The important part: content that fades in on scroll starts INVISIBLE, so
   simply switching the animation off would leave it hidden forever. It is shown
   outright here instead. Nothing is removed from the page — it just arrives
   without the movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* Strips that scroll for ever would freeze mid-slide with a duration alone —
     stop them where they start instead. */
  .feat-marquee .lane, .marquee-track, .marquee-inner,
  .hero-slide, .hero-slide::after, .hero-center::after,
  .geo-hov-zoom, .geo-hov-lift { animation: none !important; }
  .geo-hov-zoom:hover, .geo-hov-lift:hover,
  .svc-card:hover, .post-card:hover, .team-card:hover,
  .product-card:hover, .loc-card:hover { transform: none !important; }
}

/* ---------- Responsive ---------- */
/* ---- Header breakpoint ----
   The full row is: name + 7 nav links + Track + Quote + language + dark mode.
   Measured, that needs ~1100px of usable width. Below 1150px the nav therefore
   moves into the ☰ menu and the header uses the compact two-row layout — that
   way nothing is ever squeezed on top of anything else. */
@media (min-width: 1200px) {
  /* The row has to fit inside the 1200px container: name 356 + menu + buttons
     268 + tools 132 + gaps. At 12px gaps and 9px link padding it came to ~1267
     and the menu scrolled on a 1600px screen, which looks broken rather than
     responsive. Tightened so an ordinary business name fits on one line, with
     the scroll kept only as the graceful fallback for a very long one. */
  .site-header .container { gap: 8px; justify-content: flex-start; }
  /* The brand may shrink (with an ellipsis) BEFORE the nav does, so nav links
     can never spill sideways over the site name. Sized so the WHOLE name fits
     alongside the nav and both buttons — measured, not guessed. */
  /* ⚠️ The name used to be the FIRST thing to shrink, so on a 1200–1400px screen
     the business name was clipped to an ellipsis while the menu sat at full
     width. The name and logo are the site's identity and now hold their ground:
     the brand keeps a readable floor and the MENU gives way instead — and if the
     menu genuinely cannot fit it scrolls sideways within itself rather than
     pushing the page wider. */
  /* `0 0 auto` — the name does not shrink at all. It only ever ellipsises if the
     name itself is longer than 40% of the window, which no ordinary business
     name is. The menu absorbs the pressure instead, and scrolls within itself
     if it truly runs out of room. */
  .site-header .brand { flex: 0 0 auto; max-width: 40%; min-width: 0; font-size: 21px; gap: 11px; }
  .site-header .brand > span:not(.logo-mark) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .site-header .brand .logo-mark, .site-header .brand img { flex: 0 0 auto; width: 40px; height: 40px; font-size: 21px; }
  /* gap 0 and 5px of side padding: at a window of exactly 1200 the vertical
     scrollbar takes ~15px off the container, and that has to come from somewhere
     — it comes from the menu's spacing, never from the site name. */
  .nav { flex: 0 1 auto; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 5px; font-size: 13.5px; white-space: nowrap; }
  .nav a.active::after { left: 5px; right: 5px; }
  /* The tools row gained a third control (the visitor's colour picker), which is
     ~45px the header did not have to find before. The usable width here is the
     1200px container LESS its two 24px gutters = 1152px, so the icons go compact
     at this size rather than pushing the menu into a scroll. */
  .hdr-tools { gap: 4px; }
  .hdr-tools .icon-btn { width: 34px; height: 34px; font-size: 16px; }
  .header-cta { flex: 0 0 auto; gap: 8px; margin-left: auto; }
  .header-cta .btn { padding: 10px 12px; font-size: 13.5px; }
  .hdr-tools { flex: 0 0 auto; gap: 6px; }

  /* HEADER LAYOUTS: written by Geo.headerLayoutCss() (site.js), one set per
     screen, only for the screens that use something other than the built-in look. */
}
/* ---- Compact header: everything below the full-nav breakpoint ----
   TWO rows, so nothing has to be sacrificed:
     Row 1 — logo, the FULL site name, ☰ menu
     Row 2 — language, light/dark, Track and Quote sharing the width
   Everything the desktop header offers is still reachable. */
@media (max-width: 1199px) {
  /* ⚠️ `!important` is load-bearing here, not decoration. A block STRUCTURE set
     on the header (e.g. "Three across") emits `.geo-blk-cols3 [data-geo-lh]
     {display:grid !important}`, and the header's list of links IS that layout
     host — so an ordinary `display:none` lost, the desktop menu was forced back
     on at every phone width, and the header grew to ~600px with the links
     stacked in a 95px column. The design's own responsive behaviour has to
     outrank a structure choice, whatever the owner picked. */
  /* `.site-header` is on the front on purpose: the structure rule is
     `.geo-blk-cols3 [data-geo-lh]` (0,2,0) and is injected into <head> AFTER
     this file, so an equally specific rule of ours would lose the tie on order.
     Three classes beats two, whatever the order. */
  .site-header .container .nav:not(.open), .header-cta .phone, .topbar .tb-left { display: none !important; }
  .nav-toggle { display: block; }
  /* The slide itself is generated as `geoNavSlide` from the "Phone menu slide-in"
   settings. It used to be declared here as well, at a fixed .26s, so the file
   held a second answer to a question the settings already answer. */
/* Also !important, and for the same reason: a structure on the header would
     otherwise turn the OPEN menu into a 3-column grid instead of a list. */
.site-header .container .nav.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column !important; grid-template-columns: none !important; background: var(--card); padding: 10px; box-shadow: var(--shadow-lg); align-items: stretch; z-index: 60; gap: 2px; border-top: 1px solid var(--border); max-height: calc(100vh - var(--header-h, 76px) - 20px); overflow-y: auto; }
  /* In the drop-down each item is a full-width row: bold, comfortably tall, with
     the divider inside the padding so the list reads as one tidy column. */
  .site-header .container .nav.open a { padding: 15px 14px; border-bottom: 1px solid var(--border); border-radius: 8px; font-size: 15.5px; font-weight: 800; }
  .site-header .container .nav.open a:last-child { border-bottom: 0; }
  .site-header .container .nav.open a.active { background: var(--bg-tint); }
  /* the desktop underline would sit oddly on a full-width row */
  .site-header .container .nav.open a.active::after { display: none; }
  /* Turned off under Animations → "Phone menu slide-in" */
  body.no-menu-slide .site-header .container .nav.open { animation: none; }
  /* @keyframes navSlide replaced by the generated geoNavSlide. */

  .site-header .container { flex-wrap: wrap; row-gap: 10px; column-gap: 10px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  /* Scoped to .site-header on purpose: the FOOTER brand must stay free to wrap,
     otherwise its nowrap name blows the footer grid wider than the screen.
     min-width is what forces the wrap — the name always keeps a readable width,
     so the buttons drop to their own row instead of being squeezed to nothing. */
  .site-header .brand { order: 1; flex: 1 1 auto; min-width: 190px; font-size: 20px; gap: 10px; }
  .site-header .brand > span:not(.logo-mark) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .site-header .brand .logo-mark, .site-header .brand img { width: 38px; height: 38px; font-size: 19px; flex: 0 0 auto; }
  .site-footer .brand { flex-wrap: wrap; font-size: 20px; }
  .nav-toggle { order: 2; flex: 0 0 auto; font-size: 24px; padding: 0 2px; }
  .hdr-tools { order: 3; flex: 0 0 auto; gap: 6px; }
  .site-header .header-cta { order: 4; flex: 1 1 auto !important; gap: 10px; min-width: 0; }
  .site-header .header-cta .btn { flex: 0 1 auto; justify-content: center; padding: 11px 18px; font-size: 14px; white-space: nowrap; }
  .header-cta .tb-chans, .header-cta .phone { display: none; }
}
/* ---- The menu that does not fit, at ANY width ----
   ⚠️ The block above collapses the menu below 1200px. But whether the links fit
   AT 1200 depends on how many pages are on and what they are called — this
   template's own labels ("Available Frenchies", "Adoption Process", "Health
   Guarantee") overflowed at 1200–1300 and the four items after them were
   silently clipped away by `.nav`'s hidden-scrollbar overflow. Geo.fitNav()
   measures and adds this class; everything here mirrors the compact header, so
   the menu is handed to ☰ rather than quietly losing pages.
   Not a media query on purpose: the trigger is measurement, not width. */
.site-header.nav-cramped .container .nav:not(.open) { display: none !important; }
.site-header.nav-cramped .nav-toggle { display: block; }
.site-header.nav-cramped .container .nav.open {
  display: flex !important; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column !important; grid-template-columns: none !important;
  background: var(--card); padding: 10px; box-shadow: var(--shadow-lg);
  align-items: stretch; z-index: 60; gap: 2px; border-top: 1px solid var(--border);
  max-height: calc(100vh - var(--header-h, 76px) - 20px); overflow-y: auto;
}
.site-header.nav-cramped .container .nav.open a { padding: 15px 14px; border-bottom: 1px solid var(--border); border-radius: 8px; font-size: 15.5px; font-weight: 800; }
.site-header.nav-cramped .container .nav.open a:last-child { border-bottom: 0; }
.site-header.nav-cramped .container .nav.open a.active { background: var(--bg-tint); }
.site-header.nav-cramped .container .nav.open a.active::after { display: none; }
body.no-menu-slide .site-header.nav-cramped .container .nav.open { animation: none; }

/* ---- The grouped menu inside the ☰ drop-down ----
   A hover panel floating over a phone screen is unusable, so in the open menu a
   group becomes a plain accordion row: the parent is a full-width row like any
   other, and its children sit under it, indented, in the flow. Applies both to
   the width-based compact header and to the measured `.nav-cramped` one, since
   either can be what put the menu behind ☰. */
.site-header .container .nav.open .nav-group { display: block; position: static; width: 100%; }
.site-header .container .nav.open .nav-parent {
  width: 100%; justify-content: space-between; padding: 15px 14px;
  border-bottom: 1px solid var(--border); border-radius: 8px;
  font-size: 15.5px; font-weight: 800;
}
.site-header .container .nav.open .nav-sub {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: 0; background: none; padding: 0 0 0 14px;
  min-width: 0; max-height: 0; overflow: hidden;
  transition: max-height .24s var(--ease);
}
.site-header .container .nav.open .nav-group.open .nav-sub { max-height: 60vh; overflow-y: auto; }
/* ⚠️ Hover must NOT open the panel here. A tap on a touch screen fires a hover
   first, so leaving the desktop rule in place made every group spring open the
   moment a finger passed over it, and the accordion never closed again. */
.site-header .container .nav.open .nav-group:hover .nav-sub,
.site-header .container .nav.open .nav-group:focus-within .nav-sub { max-height: 0; }
.site-header .container .nav.open .nav-group.open:hover .nav-sub,
.site-header .container .nav.open .nav-group.open:focus-within .nav-sub { max-height: 60vh; }
.site-header .container .nav.open .nav-sub a { padding: 12px 14px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--border); }
.site-header .container .nav.open .nav-sub a:last-child { border-bottom: 0; }

@media (max-width: 992px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .g-4, .g-3, .g-2, .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .form-card, .track-box { padding: 30px; }
  /* Two links per row on a phone, each a real 44px target. The desktop
     separator borders are dropped here: at two columns they read as a table
     rule down the middle of the list rather than as dividers between links. */
  .footer-sitemap__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .footer-sitemap__links a { border-left: 0; padding: 11px 0; min-height: 44px; display: flex; align-items: center; }
  /* The age-group chips are the listing's main navigation but measured 37px
     tall, under the 44px a thumb wants. Phones only — the desktop design is
     deliberately unchanged. (The status-badge bump lives further down, after
     the badge is defined: a media query adds no specificity, so an override
     placed before the rule it overrides simply loses.) */
  .cat-chip { min-height: 44px; padding: 11px 20px; }
  .hero-slide { min-height: 540px; }
  /* Phone: tighter, and the buttons split the row evenly with short wording. */
  .site-header .container { column-gap: 8px; }
  .site-header .brand { font-size: 17px; gap: 8px; }
  .site-header .brand .logo-mark, .site-header .brand img { width: 34px; height: 34px; font-size: 18px; }
  .hdr-tools { gap: 4px; }
  .hdr-tools .icon-btn { width: 34px; height: 34px; font-size: 16px; }
  .site-header .header-cta { gap: 8px; }
  .site-header .header-cta .btn { flex: 1 1 0 !important; min-width: 0; padding: 12px 8px !important; font-size: 13.5px !important; gap: 5px; }
  .header-cta .btn .lbl-full { display: none; }
  .header-cta .btn .lbl-short { display: inline; }
}
/* Very small phones (older/compact handsets) — keep it to two rows. */
@media (max-width: 360px) {
  .site-header .brand { min-width: 130px; font-size: 16px; }
  .site-header .brand .logo-mark, .site-header .brand img { width: 30px; height: 30px; font-size: 16px; }
  .hdr-tools .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .nav-toggle { font-size: 22px; min-width: 38px; }
  .site-header .header-cta .btn { padding: 11px 6px !important; font-size: 12.5px !important; }
  .container { padding: 0 16px; }
}
/* Safety net: nothing may push the page sideways.
   Uses `clip` rather than `hidden` on purpose — `hidden` would turn the body
   into a scroll container and break the sticky header. */
body { overflow-x: clip; }

/* ---------- Comfortable to tap ----------
   On a touch screen every link and button needs a finger-sized target. These
   rules only grow the TAP AREA — the visible text and icons stay the same size,
   so nothing about the design changes. */
/* Phones AND tablets — a finger is the same size on both, so these apply to
   every narrow screen and to any touch device whatever its width. */
@media (max-width: 1024px), (pointer: coarse) {
  /* social / contact icons were 15px squares — far too small to hit */
  .geo-chan { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .geo-chan.geo-chan--lbl { min-width: 0; padding: 6px 4px; justify-content: flex-start; }
  .geo-channels-row, .socials { gap: 4px !important; flex-wrap: wrap; }

  .nav-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* text links inside body copy, cards and the footer */
  .site-footer a, .svc-card .more, .more, .post-card a, .crumb a,
  .footer-links a, .footer-bottom a, .info-card a, .loc-card a,
  .auth-meta a, .form-card a, .track-box a, .tb-right a, .tb-left a {
    display: inline-flex; align-items: center; min-height: 38px;
  }
  /* a link sitting inside a sentence must NOT become a tall block */
  p a, li a, h1 a, h2 a, h3 a, h4 a, td a, .geo-html a { display: inline; min-height: 0; }
  /* ⚠️ Nor must a PICTURE. Several card thumbnails are anchors, and turning one
     into an `inline-flex` box that centres its contents collapsed the blog
     photograph to 30×38 inside a 147px card. A photograph is already a
     finger-sized target — it is the biggest thing on the card. */
  /* ⚠️ Written with the tag as well as the class ON PURPOSE. The rule being
     undone is `.post-card a`, which is a class AND a type — a bare
     `.post-thumb` is one class and loses to it, so the thumbnail stayed
     collapsed and the fix looked like it had not worked. */
  a.post-thumb, a.adopted-card__thumb, a.dog-card__thumb,
  a.svc-media, a.event-card__img, a.cmp-card__img,
  .post-thumb, .adopted-card__thumb, .dog-card__thumb,
  .svc-card-img .svc-media, .event-card__img, .cmp-card__img {
    display: block; min-height: 0; align-items: initial;
  }

  select, input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="search"], textarea { min-height: 44px; font-size: 16px; }

  /* Those bigger inputs need somewhere to go, so any input+button row may wrap. */
  .newsletter, .track-search, .shop-toolbar, .qrow { flex-wrap: wrap; }
  .newsletter input, .track-search input { flex: 1 1 160px; min-width: 0; }
  .newsletter .btn, .track-search .btn { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  /* on a phone they stack completely */
  .newsletter input, .track-search input { flex: 1 1 100%; }
  .newsletter .btn, .track-search .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Map controls ----------
   The map library ships 30px zoom buttons and 11px attribution text. Those are
   its defaults, not ours — on a touch screen they're too small to hit and too
   small to read, so they're brought up to the same standard as the rest of the
   site. Applies on narrow screens AND on any touch device whatever its size. */
@media (max-width: 1024px), (pointer: coarse) {
  /* !important is needed: the map library's own stylesheet is loaded from its
     CDN AFTER ours, so an equally specific rule of ours would lose. */
  .leaflet-touch .leaflet-bar a,
  .leaflet-container .leaflet-control-zoom a {
    width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important;
  }
  .leaflet-container .leaflet-control-attribution { font-size: 12px; padding: 3px 8px; }
  .leaflet-container .leaflet-control-attribution a { display: inline-block; padding: 10px 3px; }
}
/* 11px was too small to read comfortably anywhere */
.builder-mono { font-size: 12px; }

/* A grid item defaults to min-width:auto, so one long unbreakable word (or a
   nowrap heading) can force its whole column wider than the screen. Allowing
   items to shrink is what stops that happening again. */
.grid > *, .footer-grid > *, .footer-links > li, .row > .col { min-width: 0; }
.footer-grid, .grid { min-width: 0; }
/* very long words / URLs wrap instead of pushing the page sideways */
p, li, h1, h2, h3, h4, h5, h6, td, dd, blockquote, .card, figcaption { overflow-wrap: break-word; }

/* ---------- Heading-ladder helpers ----------
   A heading that exists for the outline (search engines, screen readers) but
   is not painted on screen, and size classes so a relevelled heading keeps the
   look it always had. ---------- */
.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; }
h2.h3-size { font-size: 24px; }
h3.h4-size { font-size: 18px; }

/* ============================================================
   FRENCHIE ADOPTION — components added on top of the cloned engine.
   All colours come from the theme tokens, never hardcoded, so these
   restyle with the palette like everything else.
   ============================================================ */

/* A homepage section switched off in Admin -> Homepage. */
[data-home-off] { display: none !important; }

/* ---- Action band: the four circular cards under the hero ---- */
.action-band.bg-primary { background: var(--primary); }
.action-band.bg-primary .action-card__title,
.action-band.bg-primary .action-card__text,
.action-band.bg-primary .action-card__link { color: var(--on-primary); }
.action-band__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.action-card { text-align: center; }
.action-card__title { font-size: 26px; margin: 0 0 16px; }
/* Circular photo is the signature of this row — a square here loses the look. */
.action-card__img {
  width: 180px; height: 180px; margin: 0 auto 18px; border-radius: 50%;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.action-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.action-card__text { margin: 0 0 14px; line-height: 1.7; }
.action-card__link {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px;
}
@media (max-width: 1024px) { .action-band__row { grid-template-columns: repeat(2, 1fr); gap: 34px; } }
@media (max-width: 560px)  { .action-band__row { grid-template-columns: 1fr; }
  .action-card__img { width: 150px; height: 150px; } }

/* ---- Dog card ---- */
.dog-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* ---- CARD PHOTOGRAPHS: the whole picture, in a box every card shares ----
   ⚠️ MEASURED, because this was reported as "the cropping looks terrible" and
   the numbers say exactly why. Of the thirteen dogs on the listing, ELEVEN are
   portrait photographs (aspect 0.56 to 0.83) — people photograph a dog upright.
   The box was 4/3 LANDSCAPE, and `object-fit: cover` fills a box by throwing
   away whatever does not fit: on average only **58%** of each photograph
   survived, and the tallest lost **58% of itself**, top and bottom. That is a
   puppy with its head and feet cut off, and it got worse at two cards per line
   because the same crop was shown smaller.

   Three things fix it together, and all three are settings so nothing here is
   a decision the owner cannot change:

   1. THE SHAPE follows the content. 4/5 upright suits a dog photograph; it
      lifts the average visible from 58% to 83% on its own.
   2. THE FIT defaults to showing the WHOLE picture rather than filling the box.
      Nothing is ever cut off, at any card width, on any screen.
   3. THE BOX IS THE SAME on every card, so a row still lines up perfectly —
      "full" and "well-structured" at the same time. Whatever the picture does
      not cover is the card's own tint, so it reads as a frame, not a gap.

   An owner who prefers the old edge-to-edge look sets the fit to "fill" under
   Appearance → Card pictures; the shape and the focus point are there too. */
.dog-card__thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--card-photo-ar, 4 / 5);
  background: var(--bg-tint);
}
.dog-card__thumb img {
  width: 100%; height: 100%;
  object-fit: var(--card-photo-fit, contain);
  object-position: var(--card-photo-pos, center);
  transition: transform .5s var(--ease);
}
.dog-card:hover .dog-card__thumb img { transform: scale(1.06); }

/* ---- A dog's own page: the gallery ----
   The main view shows the WHOLE picture in a box of that picture's own shape
   (set by Geo.initGalleries), on the card tint, so an upright photo of a
   puppy is never cropped. The strip scrolls sideways on a phone rather than
   wrapping, so four photos and a video never push the details further down. */
.dog-gallery { display: block; }
.dog-gallery__main {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-tint); aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.dog-gallery__main > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dog-gallery__media { position: absolute; inset: 0; }
.dog-gallery__media iframe, .dog-gallery__media video,
.dog-gallery__media .video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.dog-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
}
.dog-gallery__nav.is-prev { left: 10px; } .dog-gallery__nav.is-next { right: 10px; }
.dog-gallery__nav:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.dog-gallery__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.dog-gallery__strip {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.dog-gallery__thumb {
  flex: 0 0 auto; width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-tint); cursor: pointer; position: relative;
  scroll-snap-align: start;
}
.dog-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dog-gallery__thumb.is-on { border-color: var(--primary); }
.dog-gallery__thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.dog-gallery__thumb.is-video { background: #111; }
.dog-gallery__thumb.is-video span {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 22px; background: rgba(0,0,0,.35);
}
@media (max-width: 640px) { .dog-gallery__thumb { width: 60px; height: 60px; } }

/* ---- The same treatment for every other card that carries a photograph ----
   ⚠️ It is not only the dogs. Measured on the shipped content: Happy Homes
   shows 52% of each photo on average (worst 37%) and the blog 54% (worst 35%),
   because those boxes are 16/10 landscape and three of every four photographs
   are upright. One rule, one set of settings, so a picture is framed the same
   way wherever it appears and the owner changes all of them in one place.

   Two are deliberately NOT here. Team photographs are portrait headshots in a
   3/4 box already — filling that box is right for a face. The gallery is a
   square mosaic by design, and it has a lightbox for the whole picture. */
.adopted-card__thumb, .post-thumb, .event-card__img, .cmp-card__img,
.svc-card-img .svc-media {
  /* ⚠️ `display: block` matters as much as the shape here. Two of these are
     ANCHORS, and the touch rule further down turns every link inside a card
     into `inline-flex` with a minimum height so a finger can hit it. Applied
     to a thumbnail that centres its picture instead of filling itself, it
     collapsed the blog photograph to 30×38 inside a 147px card. A picture is
     not a tap target of that kind, so it is taken back out of that rule. */
  display: block;
  aspect-ratio: var(--card-photo-ar, 4 / 5);
  background: var(--bg-tint);
}
.adopted-card__thumb img, .post-thumb img, .event-card__img img,
.cmp-card__img img, .svc-card-img .svc-media img {
  width: 100%; height: 100%;
  object-fit: var(--card-photo-fit, contain);
  object-position: var(--card-photo-pos, center);
}
/* Status is the single most important thing on the card — an adopter should
   never have to open a page to find out a dog has gone.

   ⚠️ These four colours are deliberately FIXED rather than theme tokens: they
   carry meaning (available / reserved / coming soon / gone), and meaning should
   not change when the owner picks a different accent. All four are chosen so
   white text on them clears 4.5:1 — the amber shipped at 3.46 and failed, which
   is invisible until someone actually needs to read it. If you restyle one,
   re-check the ratio; do not just pick a nicer amber.
   available #2f7d4f 5.04 · reserved #8f6621 5.13 · upcoming #4a6fa5 5.11 · gone #6a6a6a 5.41 */
.dog-card__status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; color: #fff; background: #2f7d4f;
}
.dog-card__status.is-reserved { background: #8f6621; }
.dog-card__status.is-upcoming { background: #4a6fa5; }
.dog-card__status.is-adopted, .dog-card__status.is-placed { background: #6a6a6a; }
.dog-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.dog-card__name { font-size: 21px; margin: 0; }
.dog-card__name a { color: var(--heading); }
.dog-card__name a:hover { color: var(--primary-text); }
.dog-card__meta { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--primary-text); }
/* ⚠️ `.dog-card__where` used to sit here — the town under a dog's name. It went
   with the town itself: this program places into all 50 states from no
   published address, so a line saying which house a specific puppy is in was
   detail the public did not need. Nothing renders that class any more. */
.dog-card__text { margin: 4px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.dog-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px;
}
.dog-card__fee { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--heading); }
.dog-card__cta { padding: 10px 18px; font-size: 13.5px; }

/* ---- Event card ---- */
.event-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.event-card__img { overflow: hidden; }
.event-card__body { padding: 22px 24px 24px; }
.event-card__date {
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary-text); margin-bottom: 8px;
}
.event-card__title { font-size: 20px; margin: 0 0 6px; }
.event-card__place { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.event-card__body p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }

/* ---- Partners strip ---- */
.partners-lead {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.partner-chip {
  display: inline-flex; align-items: center; padding: 12px 24px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--heading);
  transition: all .3s var(--ease);
}
.partner-chip:hover { border-color: var(--primary-text); color: var(--primary-text); transform: translateY(-3px); }
/* The little "Puppy" / "Adult" tag under a testimonial's name.
   ⚠️ This was an INLINE style in site.js, which meant its 11.5px could not be
   overridden by any stylesheet — a media query loses to an inline declaration
   outright. It is a class now so the phone size below can actually apply, and
   so an owner restyling testimonials has something to target.

   ⚠️ Scoped as `.testi-person .testi-tag`, not bare `.testi-tag`. The card
   already styles `.testi-person span` at 14px, and one class loses to a class
   plus an element — so the bare selector was silently beaten and the tag came
   out the same size as the date line beside it, losing the pill's distinction
   the inline style used to enforce. */
.testi-person .testi-tag {
  display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px;
  background: var(--bg-tint); color: var(--primary-text);
  font-size: 11.5px; font-weight: 700;
}
@media (max-width: 640px) { .testi-person .testi-tag { font-size: 12.5px; padding: 3px 11px; } }
/* ---- Single Frenchie page ---- */
.dog-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .dog-detail { grid-template-columns: 1fr; gap: 32px; } }
.dog-detail__media .img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dog-detail__status {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  color: #fff; background: #2f7d4f; margin-bottom: 14px;
}
.dog-detail__status.is-reserved { background: #8f6621; }
.dog-detail__status.is-upcoming { background: #4a6fa5; }
.dog-detail__status.is-adopted, .dog-detail__status.is-placed { background: #6a6a6a; }
/* ⚠️ Placed AFTER both badge rules on purpose. A media query carries no extra
   specificity, so this same override written up with the other phone rules
   (line ~610) simply lost to the 11.5px declared below it and did nothing.
   The badge is the most important thing on a card — an adopter should not have
   to open a page to learn the dog has gone — and 11.5px was the smallest text
   anywhere on the site, on the screen most adopters use. */
@media (max-width: 640px) {
  .dog-card__status, .dog-detail__status { font-size: 12.5px; padding: 7px 14px; }
}
.dog-detail__name { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.dog-detail__lead { font-size: 18px; color: var(--heading); font-weight: 500; line-height: 1.7; }

.dog-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dog-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 18px 9px 0; font-size: 15px; }
.dog-facts li span { color: var(--muted); }
.dog-facts li b { font-family: var(--font-head); color: var(--heading); }
@media (max-width: 560px) { .dog-facts { grid-template-columns: 1fr; } }

/* The fee is the question every adopter arrives with — it gets its own block
   rather than a line in a table, and it says plainly that nothing is charged. */
.dog-fee { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 22px; }
.dog-fee__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dog-fee__value { display: block; font-family: var(--font-head); font-weight: 900; font-size: 38px; color: var(--heading); line-height: 1.15; }
.dog-fee__note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.dog-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.dog-actions [aria-disabled="true"] { opacity: .55; pointer-events: none; }
.dog-temper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dog-temper__chip { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--heading); font-family: var(--font-head); font-weight: 600; }

.dog-story, .dog-panel { max-width: 900px; margin: 54px auto 0; }
.dog-story h3, .dog-panel h3 { font-size: 26px; margin-bottom: 12px; }
.dog-story p { color: var(--text); line-height: 1.85; white-space: pre-line; }
.dog-panel__note { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.dog-health { width: 100%; border-collapse: collapse; }
.dog-health th, .dog-health td { text-align: left; padding: 14px 18px; border: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.dog-health th { background: var(--bg-alt); font-family: var(--font-head); color: var(--heading); width: 230px; font-weight: 700; }
@media (max-width: 560px) { .dog-health th { width: 45%; } }
/* ---- Application page ---- */
.apply-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .apply-layout { grid-template-columns: 1fr; } }
.apply-dog {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  background: var(--bg-tint); border-radius: var(--radius); margin-bottom: 24px;
}
.apply-dog__img { width: 74px; height: 74px; border-radius: var(--radius); overflow: hidden; flex: 0 0 auto; }
.apply-dog__img img { width: 100%; height: 100%; object-fit: cover; }
.apply-dog__label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.apply-dog__name { display: block; font-family: var(--font-head); font-size: 18px; color: var(--heading); }
.apply-dog__meta { display: block; font-size: 13.5px; color: var(--muted); }
.apply-dog__change { margin-left: auto; font-size: 13.5px; font-family: var(--font-head); font-weight: 700; }
.apply-privacy { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; line-height: 1.6; }

.apply-side { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .apply-side { position: static; } }
.apply-steps { list-style: none; counter-reset: astep; padding: 14px 20px 20px; display: grid; gap: 16px; }
.apply-steps li { counter-increment: astep; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.apply-steps li::before {
  content: counter(astep); grid-row: span 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-weight: 900; font-size: 15px;
}
.apply-steps li b { font-family: var(--font-head); color: var(--heading); font-size: 16px; }
.apply-steps li span { grid-column: 2; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.apply-note { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 26px; }
.apply-note h4 { font-size: 18px; margin-bottom: 8px; }
.apply-note p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.7; }

.apply-done { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0; }
.apply-done__tick {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 42px;
  background: var(--bg-tint); color: var(--primary-text);
}
.apply-done__ref {
  display: inline-block; font-family: var(--font-head); font-weight: 900; font-size: 22px;
  letter-spacing: .06em; color: var(--heading); background: var(--bg-alt);
  border: 1px dashed var(--primary); border-radius: var(--radius); padding: 10px 24px; margin: 10px 0 16px;
}
/* ---- Adoption process page ---- */
.proc-steps { display: grid; gap: 22px; }
.proc-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--shadow);
}
.proc-step__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-weight: 900; font-size: 26px;
}
.proc-step__body h3 { font-size: 22px; margin-bottom: 8px; }
.proc-step__body p { margin: 0 0 10px; color: var(--text); line-height: 1.75; }
.proc-step__when {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--primary-text);
  background: var(--bg-tint); padding: 5px 13px; border-radius: 999px;
}
@media (max-width: 560px) { .proc-step { grid-template-columns: 1fr; } .proc-step__num { width: 52px; height: 52px; font-size: 22px; } }
.proc-qa { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0 22px; margin-bottom: 12px; }
.proc-qa summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--heading); padding: 18px 0; font-size: 16.5px; }
.proc-qa p { color: var(--text); padding-bottom: 18px; margin: 0; line-height: 1.75; }

/* ---- Health guarantee page ---- */
.hg-block { margin-bottom: 34px; }
.hg-block h3 { font-size: 24px; margin-bottom: 12px; }
.hg-block p { color: var(--text); line-height: 1.8; }
.hg-block--plain { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 26px 30px; }
/* A visible, deliberately plain warning box. Used where the template ships
   placeholder text that a buyer must not publish as-is. */
.notice-box {
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 34px; font-size: 14.5px; line-height: 1.7; color: var(--text);
}
.notice-box b { color: var(--heading); }

/* ---- Campaign cards ---- */
.cmp-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cmp-card__img { overflow: hidden; }
.cmp-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cmp-card__body h3 { font-size: 20px; margin: 0; }
.cmp-card__body p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.cmp-card__body .btn { margin-top: auto; align-self: flex-start; }
.cmp-bar { height: 10px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.cmp-nums { font-size: 13.5px; color: var(--muted); font-family: var(--font-head); }
.cmp-nums b { color: var(--heading); }

/* ---- Ways to help cards ---- */
.way-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.way-card h3 { font-size: 21px; margin: 0; }
.way-card p { margin: 0; color: var(--text); line-height: 1.7; flex: 1; }

/* ============================================================
   THE HOMEPAGE'S SHORT ROWS
   Recently adopted, a few photos, the questions people ask, and the advice
   band. All four are one row deep by design - see the note above
   features.featuredDogs in config.js.
   Colours come from tokens only, so these follow the theme and the light/dark
   switch like everything else; nothing here hardcodes a colour.
   ============================================================ */

/* ---- Recently adopted ----
   ⚠️ PICTURE ON TOP, WRITING UNDERNEATH. This shipped as a horizontal card —
   a 190px photo down the left with the words beside it — and that was the
   wrong default twice over:

   - It does not match anything else on the site. Every other card here (a dog,
     a service, an article, a product, a team member) is a picture with its
     words below, so one horizontal card in a page of vertical ones reads as a
     mistake rather than as emphasis.
   - It fights the grid it sits in. `.g-2` stays two columns down to 640px, so
     between 641 and 992 each card was ~310-450px wide and a 190px photo left
     about 70px for the text. It needed three breakpoints and a rule dropping
     the row to one card just to stay readable. Stacked, it needs none of that
     and behaves like every other card at every width.

   The horizontal version is still here as an OPTION — add `is-side` to the
   grid (Admin → Homepage Content, or the layout setting on the Recently
   Adopted page). It only takes effect above 560px, because below that there
   is no room for it and it stacks anyway. */
.adopted-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.adopted-card__thumb { position: relative; }
.adopted-card__thumb img { transition: transform .5s var(--ease); }
.adopted-card:hover .adopted-card__thumb img { transform: scale(1.05); }
.adopted-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-weight: 800; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.adopted-card__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.adopted-card__body h3 { font-size: 21px; margin: 0; }
.adopted-card__body h3 a { color: var(--heading); }
.adopted-card__body h3 a:hover { color: var(--primary-text); }
.adopted-card__meta { font-size: 13.5px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.adopted-card__body p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }
/* The optional photo-beside-the-words variant. Only above 560px — narrower
   than that there is no room for it and it falls back to the stack. */
@media (min-width: 561px) {
  .adopted-grid.is-side .adopted-card { display: grid; grid-template-columns: 190px 1fr; align-items: stretch; }
  .adopted-grid.is-side .adopted-card__thumb { aspect-ratio: auto; }
  .adopted-grid.is-side .adopted-card__body { justify-content: center; }
}

/* ---- A few photos ---- */
.home-gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.home-gal__item {
  display: block; position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-tint); box-shadow: var(--shadow);
}
.home-gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.home-gal__item:hover img { transform: scale(1.07); }
.home-gal__item:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---- The questions people ask ----
   Built on <details>/<summary>: opens with no JavaScript, is keyboard-operable
   and announced correctly for free, and find-in-page reaches inside a closed
   one. The default triangle marker is replaced with a plus that turns. */
.home-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.home-faq__item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.home-faq__item[open] { border-color: var(--primary-text); }
.home-faq__item > summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 24px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; line-height: 1.4;
  color: var(--heading);
}
.home-faq__item > summary::-webkit-details-marker { display: none; }
.home-faq__item > summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary-text);
  font-size: 20px; line-height: 1; font-weight: 700; transition: transform .25s var(--ease);
}
.home-faq__item[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.home-faq__item > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.home-faq__a { padding: 0 24px 20px; color: var(--text); font-size: 14.5px; line-height: 1.75; }

/* ---- The advice band ----
   The clip's own caption is already styled by `.video-item figcaption` in the
   runtime CSS site.js injects; nothing is repeated here. */
.advice-text { max-width: 760px; margin: 0 auto 30px; }
.advice-text p { color: var(--text); font-size: 16px; line-height: 1.8; margin: 0; }
.advice-video-wrap { max-width: 860px; margin: 0 auto 36px; }

/* The advice page's topic cards reuse .way-card, which had no rule for the
   "3 guides →" line at the bottom — .more was only ever styled inside a
   service card, so it rendered as plain body text. */
.way-card .more { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--primary-text); margin-top: auto; }
a.way-card { color: inherit; }
a.way-card:hover .more { text-decoration: underline; }

@media (max-width: 992px) {
  .home-gal { grid-template-columns: repeat(3, 1fr); }
  /* Only the side-by-side variant needs the row narrowed to one card; the
     stacked default behaves like every other two-up grid on the site. */
  .adopted-grid.is-side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-gal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 44px minimum for a thumb, and room for a two-line question beside the
     plus button rather than under it. */
  .home-faq__item > summary { padding: 16px 52px 16px 18px; min-height: 44px; }
}
/* ---- "Read next" + "Useful sources" ----
   The band above the footer. See Geo.relatedBand and seo.related for why it
   exists. Quiet by design: it is a signpost at the end of a page, not a second
   navigation menu competing with the content above it. */
.seo-related { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 46px 0; }
.seo-related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.seo-related h2 {
  font-size: 14px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.seo-related ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.seo-related li { line-height: 1.5; }
.seo-related a { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--heading); }
.seo-related a:hover { color: var(--primary-text); text-decoration: underline; }
.seo-related ul.is-ext a { font-weight: 600; font-size: 15px; color: var(--primary-text); }
.seo-related ul.is-ext a:hover { color: var(--heading); }
.seo-related a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.seo-related__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 46ch; }
@media (max-width: 760px) {
  .seo-related { padding: 34px 0; }
  .seo-related__grid { grid-template-columns: 1fr; gap: 28px; }
  /* 44px targets on a phone, same rule the footer page list follows. */
  .seo-related li a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* ---- A video of one item, on its own page ----
   Sits under the pictures on a Frenchie's page, a product page and anywhere
   else an item carries one. .video-embed (16/9, rounded, dark backing) comes
   from the runtime stylesheet site.js injects, so this only has to place it. */
.item-video { margin: 18px 0 0; }
.item-video figcaption { display: block; padding: 10px 2px 0; text-align: center; }
.item-video figcaption span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* The builder's mark in the footer: letters or a small logo, framed as set in
   Header, Footer & Elements (circle / square / plain). */
.builder-mono.is-square { border-radius: 6px; }
.builder-mono.is-plain { border: 0; border-radius: 0; }
img.builder-mono { object-fit: contain; padding: 0; background: transparent; }
img.builder-mono.is-circle { object-fit: cover; }
img.builder-mono.is-plain { width: auto; max-width: 64px; }
