/* ---------------------------------------------------------------------------
   Noble Veterinary Clinic

   Palette is the brand sheet "Color Combinations 3" (dev-aids/15.png).
   Note: that sheet prints G=186 beside #677e91; the hex is 103,126,145 and the
   hex is what is used here.

   This is a brand site, so the palette is fixed — there is deliberately no
   prefers-color-scheme inversion, which would fight the clinic's identity.
--------------------------------------------------------------------------- */

:root {
  /* brand, exactly as specified — used for rules, borders and fills that
     carry no text on top of them */
  --clay: #c66c5b;        /* PMS 7598U */
  --sage: #9abcaa;        /* PMS 558U  */
  --slate: #677e91;       /* PMS 5415U */
  --peach: #ffb079;       /* PMS 1555U */
  --jade: #c0dabc;        /* PMS 2260U */
  /* Sixth colour, from the Hospital Services artwork; not on the brand sheet.
     Takes dark text at 4.79:1 — see the band note further down. */
  --orchid: #ac6fc6;
  /* Seventh: the Emergency & Urgent Care panel wash, also not on the sheet. */
  --pink: #e1a1a4;
  /* The artwork's CTA red is #c20a0a, which is 2.94:1 on the pink. Deepened
     until it clears AA while still reading as an emergency red. */
  --emergency-ink: #8a0707;
  --jade-50: #dfecdd;     /* 50% jade — "Chinese Jade Paint" */

  /* Accessible variants. White text on the brand slate is 4.23:1 and on the
     brand clay 3.69:1 — both short of the 4.5:1 WCAG AA needs for body text.
     These are the nearest darker shades that clear it (slate at 96% and clay
     at 89% brightness), so text-bearing surfaces use these instead. Same for
     --slate-ink, for slate-coloured text on light backgrounds. */
  --slate-bg: #63798b;    /* white on this: 4.53:1 */
  --clay-bg: #b06051;     /* white on this: 4.53:1 */
  --slate-ink: #4f6374;   /* on white 6.23:1, on the footer 5.08:1 */

  /* The artwork's link blue is #1b74bb, deepened so it still clears 4.5:1
     against the darkest frame of the footer video. Every step darker here
     buys a lighter scrim, i.e. a more visible film — see --footer-scrim. */
  --link: #0d385a;

  /* Slate for the footer heading, which also sits over the video and only
     needs 3:1 because it is large text. */
  --slate-on-video: #425260;

  /* Opacity of the veil over the footer video. This is the floor permitted by
     the two colours above: lower it and they fall below WCAG AA. */
  --footer-scrim: 0.65;

  /* surfaces */
  --ink: #1b1b1b;
  --paper: #f1f1ec;       /* the polaroid stock */
  --dark: #000000;
  --footer-bg: #e8e8e6;
  --muted: #5d6670;

  --maxw: 75rem;
  --gutter: 1.25rem;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: var(--gutter); z-index: 20;
  padding: 0.6rem 0.9rem; background: #fff; color: var(--ink);
  border-radius: 0.4rem;
}

:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

/* ----------------------------------------------------------------- masthead */

.masthead {
  background: var(--slate-bg);
  color: #fff;
  border-bottom: 3px solid var(--clay);
}

.masthead-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'logo  top'
    'logo  nav';
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.logo { grid-area: logo; display: block; width: clamp(4.5rem, 9vw, 7rem); }
.logo img { border-radius: 50%; }

.masthead-top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tel svg { width: 1.4em; height: 1.4em; flex: none; }

.masthead-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.pill {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--slate-ink);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid #fff;
}

.pill:hover { background: var(--jade-50); }
.pill--urgent { color: #c0271c; }
.pill--ghost { background: transparent; color: #fff; }
.pill--ghost:hover { background: rgba(255, 255, 255, 0.15); }

.masthead-nav { grid-area: nav; }

.masthead-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
}

/* Seven items since Cherry Payment Plan (2026-10-28) need 718px of nav. At
   2.25rem gaps they wrapped to two rows at 1024; 1.5rem keeps one row down
   to about 985px. Below that they wrap until the menu button takes over. */
@media (max-width: 70rem) {
  .masthead-nav ul { column-gap: 1.5rem; }
}

.masthead-nav a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 700;
  text-decoration: none;
}

.masthead-nav a:hover { text-decoration: underline; }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}

.social svg { width: 1.6rem; height: 1.6rem; fill: #fff; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; background: #2b2b2b; }

.hero-img {
  width: 100%;
  /* The photograph is 1280x720 and the artwork shows all of it, so the box
     matches its aspect exactly — at normal widths nothing is cropped, which
     is what keeps her head and the dog's legs in frame. A fixed band height
     here was cutting both off. max-height only bites past ~1480px, where
     object-position holds the subject. */
  aspect-ratio: 16 / 9;
  /* Generous enough that nothing is cropped up to ~1765px, covering every
     common Mac width. Past that the ceiling stops the hero eating the whole
     viewport, and the 25% bias takes the crop off the floor rather than the
     top of her head. */
  max-height: 62rem;
  object-fit: cover;
  object-position: center 25%;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  /* Copy sits high in the frame, as in the artwork, rather than centred over
     the dog. */
  justify-content: flex-start;
  padding-block-start: clamp(1.25rem, 4vw, 4.5rem);
  color: #fff;
  /* Scrim for legibility. It must span the FULL width — constraining this
     element to --maxw left a hard vertical seam where the gradient stopped.
     The inner .wrap does the centring instead.

     Strengthened when the hero became video: a still can be checked once, but
     across the clip the dog brightens behind the right end of the headline at
     ~4s, which dropped white text to 2.81:1. Measured over eight frames, this
     profile holds 3.71:1 — above the 3:1 AA needs for large text. */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0) 80%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* The hero is full-bleed, so its copy tracks the left edge of the photograph
   rather than sitting in the centred --maxw column the rest of the page uses.
   In that column the headline drifted to ~27% of the width on a 2560px
   monitor; the artwork has it at ~4%. */
.hero-copy .wrap {
  max-width: none;
  /* .wrap's inherited `margin-inline: auto` must be cleared too: inside a
     flex container an auto cross-axis margin overrides align-items:stretch,
     so the div shrink-wrapped its text and centred itself. */
  margin-inline: 0;
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 6rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  max-width: 16ch;
}

.hero ul {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin: 0;
  padding-left: 1.2em;
}

/* -------------------------------------------------------------- NAP banner */

.nap {
  background: var(--clay-bg);
  color: #fff;
  text-align: center;
  padding: 1.1rem var(--gutter);
  font-family: var(--font-display);
}

.nap p { margin: 0.15rem 0; }
.nap-line { font-size: clamp(0.95rem, 2.1vw, 1.45rem); font-weight: 700; }
.nap-line a { text-decoration: none; }
.nap-line a:hover { text-decoration: underline; }
.nap-tag { font-size: clamp(0.85rem, 1.8vw, 1.2rem); font-style: italic; }

/* ------------------------------------------------------------ story section */

/* This section is white with black body copy and slate headings. It was built
   dark by mistake: the artwork has no background rect here, and a transparent
   PNG render read as black, which also hid ~1,200 black glyph paths — the two
   body paragraphs. Render the design flattened onto white before trusting it. */

.story {
  background: #fff;
  color: var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.story h2 {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  /* Brand slate is 4.23:1 on white — fine for headings this size (AA large
     needs 3:1), but not for body-sized text, which uses --slate-ink. */
  color: var(--slate);
  margin: 0 0 0.6rem;
}

.story p {
  /* Unbounded, these lines run to ~150 characters on a wide screen. */
  max-width: 90ch;
  margin: 0 0 1.1rem;
}

.story .lead {
  color: var(--slate-ink);
  font-weight: 600;
  margin-bottom: 2rem;
}

.motto {
  font-style: italic;
  font-weight: 700;
  text-align: center;
  /* Drops to 16px on phones, which is below the "large text" threshold, so
     this needs the darker slate to clear 4.5:1 rather than 3:1. */
  color: var(--slate-ink);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0 auto 2.5rem;
  max-width: 44ch;
}

.rule {
  width: min(28rem, 60%);
  height: 3px;
  margin: 2.5rem auto;
  border: 0;
  background: var(--clay);
}

/* ---------------------------------------------------------------- polaroids */

.polaroids {
  list-style: none;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* The cards are rotated and carry a drop shadow, so they need more clearance
   beneath them than the box model implies. */
.polaroids:last-child { margin-bottom: 0; }

/* The doctor's portrait leads the case group: once there is room for three
   columns it stands full-height on the left with the four cases in a 2x2
   beside it, as in the artwork. Below that it simply joins the flow. */
.polaroids--cases { align-items: start; }

@media (min-width: 64rem) {
  .polaroids--cases { grid-template-columns: repeat(3, 1fr); }
  .polaroids--cases > li:first-child { grid-row: 1 / span 2; }
}

.polaroid {
  margin: 0;
  background: var(--paper);
  padding: 4% 4% 0;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
  position: relative;
}

/* Slight rotation, alternating, so the group reads as pinned-up snapshots. */
.polaroid { transform: rotate(-0.6deg); }
.polaroids li:nth-child(even) .polaroid { transform: rotate(0.7deg); }
.polaroids li:nth-child(3n) .polaroid { transform: rotate(-0.3deg); }

/*
  Hand-torn kraft tape, cut from the artwork rather than drawn in CSS.

  This was a flat `background: #cdb188` rectangle, which read as a tab stuck to
  the card instead of tape holding it up — Gordon's words, "unnecessary tabs".
  What makes it read as tape is all in the edges: the ends are torn at an
  angle, the long edges are fibrous and wavy, and the paper is mottled. None of
  that survives as a rectangle, so `dev-aids/generators/extract-tape.js` lifts
  the real strips out of the polaroid SVGs with their alpha intact.

  `drop-shadow`, not `box-shadow`: a box shadow would trace a rectangle around
  a transparent image and give the game away immediately. drop-shadow follows
  the torn silhouette.
*/
.polaroid::before {
  content: '';
  position: absolute;
  top: -1.05rem;
  left: 50%;
  width: 46%;
  aspect-ratio: 713 / 171;
  transform: translateX(-50%) rotate(-1.4deg);
  background: url('/img/tape-a.webp') center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

/* Two strips, one of them flipped, at three angles — so no two pieces of tape
   on screen are torn the same way. */
.polaroids li:nth-child(even) .polaroid::before {
  background-image: url('/img/tape-b.webp');
  transform: translateX(-50%) rotate(1.7deg) scaleX(-1);
  width: 43%;
}

.polaroids li:nth-child(3n) .polaroid::before {
  transform: translateX(-50%) rotate(-0.5deg);
  width: 49%;
}

.polaroid img { width: 100%; }

.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink);
  text-align: center;
  padding: 0.7rem 0.4rem 0.9rem;
  line-height: 1.3;
}

.polaroid figcaption b { display: block; font-weight: 400; }

/* ------------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--footer-bg);
  color: var(--ink);
  border-top: 3px solid var(--clay);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* Video backdrop. The footer's own background colour shows through a scrim
   over the top, so the running dog reads as a faint texture — as in the
   artwork — and the text keeps its contrast against a near-solid surface
   rather than against moving video. */
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* The veil that keeps footer text legible over moving video. Its opacity is
     set by --footer-scrim and is bound to the text colours, not to taste. */
  background: rgba(232, 232, 230, var(--footer-scrim));
}

/* No motion: the poster frame is shown instead, and never fetched as video. */
@media (prefers-reduced-motion: reduce) {
  .footer-video { display: none; }
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: start;
}

.footer-logo { width: clamp(9rem, 18vw, 13rem); }
.footer-logo img { border-radius: 50%; display: block; width: 100%; height: auto; }

/* The footer logo links home, like the masthead one. It needs to look
   clickable as well as be clickable, and the focus ring has to be visible
   against the footer video rather than only against a flat colour. */
.footer-logo a {
  display: block;
  border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-logo a:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.35);
}

.footer-logo a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.site-footer address {
  font-style: normal;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

.site-footer address a { text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }

.site-footer h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--slate-on-video);
}

.hours {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  font-size: 1.02rem;
}

.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

.map-link { display: block; }
.map-link img { border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0.25rem; }

.legal {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.legal a { color: var(--link); }

/* Two lines, as the CMO's policy document sets them: "Hospital Policies •
   Privacy Policy" above, the accessibility statement below. */
.legal-row { display: block; }
.legal-row + .legal-row { margin-top: 0.4rem; }
.legal-sep { margin-inline: 0.35rem; }

/* ------------------------------------------------------------------- mobile */

@media (max-width: 52rem) {
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'logo top  toggle'
      'nav  nav  nav';
    row-gap: 0.5rem;
  }

  .nav-toggle {
    grid-area: toggle;
    display: block;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    color: #fff;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin-inline: auto;
    background: currentColor;
    content: '';
  }

  .nav-toggle-bar::before { transform: translateY(-6px); }
  .nav-toggle-bar::after { transform: translateY(4px); }

  /* Links stay in the DOM at every width — only their display changes — so
     crawlers always see the internal links. */
  .masthead-nav { display: none; }
  .masthead-nav.is-open { display: block; }

  .masthead-nav ul { flex-direction: column; gap: 0; }

  .masthead-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.25); }

  .masthead-nav a { padding: 0.8rem 0; }

  .masthead-actions { width: 100%; margin-left: 0; }

  /* 16:9 is only ~220px tall on a phone — too short for the headline — so
     give the hero a floor here and crop toward the woman and dog. */
  .hero-img {
    aspect-ratio: auto;
    height: clamp(20rem, 68vw, 28rem);
    object-position: 63% 32%;
  }

  .hero-copy {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .masthead-actions, .social, .nav-toggle { display: none; }
}

/* ------------------------------------------------------------- team bands */

/*
  The artwork sets white body copy on all four band colours. None of them pass
  WCAG AA that way — sage is 2.07:1 and peach 1.79:1, against the 4.5:1 body
  text needs. Rather than abandon the brand colours, each band picks the text
  colour that works with it:

    sage   #9abcaa  light -> dark ink, 8.32:1,  band colour untouched
    peach  #ffb079  light -> dark ink, 9.63:1,  band colour untouched
    jade   #c0dabc  light -> dark ink, 11.48:1, band colour untouched
    orchid #ac6fc6  mid   -> dark ink, 4.79:1,  band colour untouched
    clay   #c66c5b  mid   -> white on --clay-bg,  4.53:1
    slate  #677e91  mid   -> white on --slate-bg, 4.53:1

  --clay-bg and --slate-bg are the same accessible variants the masthead and
  contact banner already use, so nothing new is introduced here.

  Orchid arrived with the Hospital Services artwork (sections 2 and 3 of the
  content map) and is NOT on the "Color Combinations 3" brand sheet — it is a
  sixth colour. It is a mid tone, so which text colour works is decided by
  measurement rather than by how light it looks: white reaches only 3.59:1
  while dark ink reaches 4.79:1, so it joins the dark-text group. The CMO has
  been asked to confirm he intends a sixth colour.
*/

.team-band {
  --band: var(--sage);
  background: var(--band);
  color: var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.team-band--sage { --band: var(--sage); }
.team-band--peach { --band: var(--peach); }
.team-band--jade { --band: var(--jade); }
.team-band--orchid { --band: var(--orchid); }
/* The pale green the vaccination artwork uses behind its schedules. It is the
   --jade-50 tint the stylesheet already carried for hover states, sampled off
   the artwork at #deebdc — within a rounding step, so no new colour. */
.team-band--jade-50 { --band: var(--jade-50); }

.team-band--clay {
  --band: var(--clay-bg);
  color: #fff;
}

.team-band--slate {
  --band: var(--slate-bg);
  color: #fff;
}

.team-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.team-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/*
  Portraits are cut out with an alpha channel; the backdrop behind them is a
  cool-to-warm wash over the band colour, which is how the artwork does it —
  so it adapts to whichever band the person sits in.
*/
.person-photo {
  background-color: var(--band);
  background-image: linear-gradient(
    225deg,
    rgba(60, 220, 200, 0.55) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(240, 210, 120, 0.55) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.55);
  line-height: 0;
}

.person-photo img { width: 100%; }

.person-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.person-role {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.85;
}

.person-body p {
  margin: 0 0 1rem;
  max-width: 70ch;
}

.person-body p:last-child { margin-bottom: 0; }

@media (max-width: 44rem) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 17rem; }
}

/* The non-landing footer uses the street clip, which is busier than the
   studio dog, so it carries a slightly heavier veil. */
.site-footer--street { --footer-scrim: 0.72; }

/* --------------------------------------------------------- nav dropdown */

/*
  Disclosure menu on the Urgent Care nav item. The links inside are real
  anchors present in the served HTML — the JavaScript only shows and hides
  them, so a crawler sees all four either way.
*/

.has-menu { position: relative; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-caret {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.15s ease;
}

.has-menu.is-open .menu-caret { transform: rotate(180deg); }

/* Scoped under .masthead-nav deliberately: `.masthead-nav ul` sets
   display:flex and is more specific than a bare `.menu`, so without this the
   menu is forced permanently open. */
.masthead-nav .menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 14rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.28);
}

.masthead-nav .has-menu.is-open .menu { display: block; }

/* The Hospital Services menu carries thirteen items, which is taller than a
   short laptop viewport once the masthead is accounted for. Cap it and let it
   scroll rather than running off the bottom of the screen. */
.masthead-nav .menu--wide {
  min-width: 17rem;
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--slate-ink);
  font-weight: 700;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible { background: var(--jade-50); }

.menu-sub {
  display: block;
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.75;
}

/* The two Vaccination entries differ only by audience, so their qualifier is
   a footnote to the label rather than a second name for it — set finer than
   the sub-lines on Diagnostics and Parasite Prevention, which stand in for
   the parent. Floored at 0.7rem (11.2px): small enough to read as an aside,
   not so small it stops being readable. */
.menu-sub--fine {
  font-size: max(0.7rem, 0.66em);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ page head */

.page-head {
  background: #fff;
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.page-lede {
  margin: 0.75rem 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--ink);
}

.page-lede a { color: var(--link); font-weight: 700; }

/* --------------------------------------------------------------- jump nav */

.jump {
  background: var(--jade-50);
  padding-block: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.jump a {
  display: block;
  padding: 0.25rem 0;
  color: var(--slate-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ------------------------------------------- emergency & urgent care page */

/*
  The last panel of section 3, which the red masthead button hooks straight
  into. The artwork puts a white headline and a #c20a0a call-to-action on the
  pink wash #e1a1a4 — 2.14:1 and 2.94:1, both severe AA failures on the one
  page where legibility matters most.

  Pink is a light band, so it follows the convention the other light bands
  already use: keep the brand colour exactly, take dark text.

    heading  --ink    on #e1a1a4   8.07:1
    CTA      #8a0707  on #e1a1a4   4.65:1  (still unmistakably emergency red)

  The CTA sits on the flat band below the photograph rather than overlaying
  it, so its contrast is a fixed number rather than one that varies with
  whatever the photograph is doing underneath.
*/

.emergency {
  background: var(--pink);
  color: var(--ink);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.emergency-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.emergency-media {
  position: relative;
  max-width: 55rem;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  border-radius: 0.5rem;
  overflow: hidden;
}

.emergency-media img { display: block; width: 100%; height: auto; }

/* The artwork tints the photograph toward the band colour. Done as a CSS wash
   rather than baked in, so the untinted original stays reusable. */
.emergency-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(225, 161, 164, 0.5);
  pointer-events: none;
}

.emergency-cta {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--emergency-ink);
  margin: 0 0 0.5rem;
}

.emergency-tel {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 0;
}

.emergency-tel a {
  color: var(--emergency-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-tel a:hover { text-decoration: underline; }
.emergency-tel svg { width: 0.9em; height: 0.9em; }

/* After hours and weekends: the same face, size and red as the phone line
   above, so it reads as a continuation of it. */
.emergency-after {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.3;
  color: var(--emergency-ink);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.emergency-after p { margin: 0 0 0.5rem; }
/* WAVES' name, address and number: black, 20% smaller than the line above
   (Gordon, 2026-11-01). #000 on the pink is about 9.9:1. */
.emergency-after address { font-style: normal; color: #000; font-size: 0.8em; }
.emergency-after a { color: inherit; text-decoration: none; }
.emergency-after a:hover { text-decoration: underline; }

.emergency-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.emergency-facts h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

.emergency-facts address { font-style: normal; margin: 0 0 0.6rem; }
.emergency-facts p { margin: 0; }

.jump-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.jump-links a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--slate);
  color: var(--slate-ink);
  font-weight: 700;
  text-decoration: none;
}

.jump-links a:hover { background: var(--jade-50); }

/* ---------------------------------------------------------------- topics */

.topic {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.topic-media img { width: 100%; display: block; }
/* Several Hospital Services topics carry two or three photographs stacked in
   the media column, as the artwork does. Spacing is set between siblings
   rather than between images, so captioned figures space the same way. */
.topic-media > * + * { margin-top: 1rem; }

.topic-media figure { margin: 0; }

/* Labels a picture where the artwork does — "Canine" and "Feline" under the
   two skeletons on the Heartworm panel. Inherits the band's text colour so it
   stays legible on every band. */
.topic-media figcaption {
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* A band that holds several image-and-text parts under one heading — the
   Ophthalmology and Otitis layout. The heading sits above the rows rather than
   inside the first one, so the parts read as siblings. */
.band-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.topic + .topic {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid currentColor;
}

/* The rule is a divider, not text — it should read as a hairline, not compete
   with the copy. */
.topic + .topic { border-top-color: color-mix(in srgb, currentColor 25%, transparent); }

/* A prose-only part: no image column, so the copy runs the full width. */
.topic--full { grid-template-columns: 1fr; }

/* Pictures spread down the full height of the copy instead of stacking at the
   top: first level with the opening line, last level with the closing one,
   gaps equal in between. `.topic` sets `align-items: start`, which shrink-wraps
   the media column — it has to stretch before space-between has any room to
   work with. The `gap` is a floor for when the copy is short. */
.topic--distribute { align-items: stretch; }

.topic--distribute .topic-media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.topic--distribute .topic-media > * + * { margin-top: 0; }

/* Above 64rem the copy is capped at 70ch and stops reflowing, so the middle
   picture can take a fixed offset. First and last stay flush with the start
   and end of the copy, the last held there by the auto margin.

   The offset is set so the two picture-to-picture gaps match — 102.5px each,
   measured image edge to image edge. Plain `space-between` does NOT achieve
   that here: it spaces the flex *boxes* evenly, and the first box carries the
   "Canine" caption inside it, so the visible gap above the dachshund came out
   31px (one caption) tighter than the gap below it.

      boxes:   278 + 71.5 + 213 + 102.5 + 256 = 921 (= copy height)
      images:  89 + 31 (caption) = 102.5 above, 102.5 below

   Re-measure if the copy, the images or the caption size change.
   Below 64rem the text rewraps and a fixed offset would drift, so the even
   distribution above takes over instead. */
@media (min-width: 64rem) {
  .topic--distribute .topic-media {
    justify-content: flex-start;
    gap: 0;
  }
  .topic--distribute .topic-media > :nth-child(2) { margin-top: 4.469rem; }
  .topic--distribute .topic-media > :last-child { margin-top: auto; }
}

/* A pictures-only panel on a framed inner card — Flea & Tick Protection.
   Two across, then the third centred beneath, matching the artwork. The card
   is jade inside a white frame, sitting on the clay band. */
.showcase-card {
  --sc-gap: clamp(1rem, 3vw, 2rem);
  background: var(--jade);
  border: 6px solid #fff;
  padding: var(--sc-gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sc-gap);
  justify-items: center;
  align-items: start;
}

.showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* The odd one out spans both columns and is centred at a single column's
   width, so it reads as the third of three rather than a wider banner. */
.showcase-card img:nth-child(3):last-child {
  grid-column: 1 / -1;
  width: calc(50% - (var(--sc-gap) / 2));
}

@media (max-width: 44rem) {
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-card img:nth-child(3):last-child { grid-column: auto; width: 100%; }
}

/* Copy on the left, picture on the right — the Intestinal Parasites layout.
   The illustration is wider than a photograph and carries its own title, so it
   takes a roomier column than the default left-hand media rail. */
.topic--media-right { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }

/* Copy full width with the photographs in a row beneath it, as the artwork
   lays out Signs of Fleas and Signs of Ticks. The default left-hand media
   column is wrong there — it shrinks three equal photographs into a stack. */
.topic--stack { display: block; }

.topic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.topic-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  /* The three photographs are near-identical in aspect but not exact; crop
     rather than let one sit taller than its neighbours. */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.25rem;
}

.topic-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

/* A second level inside a long article — "Complete Blood Count (CBC)" sits
   under "What Bloodwork Tells Us" on Diagnostics. Body face rather than the
   display face, so it reads as subordinate to the h3 above it instead of
   competing with it. */
.topic-body h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}

/* Air above a sub-heading that follows copy. The headings carry no top margin
   of their own, which is right for the first one in a panel; from the second
   onward a paragraph's 1rem bottom margin alone runs the sections together.
   Only applies where something precedes them, so the first heading still sits
   flush with the top of the panel. */
.topic-body > * + h3 { margin-top: 1.75rem; }
.topic-body > * + h4 { margin-top: 1.25rem; }

.topic-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
}

.topic-body p { margin: 0 0 1rem; max-width: 70ch; }
.topic-body p:last-child { margin-bottom: 0; }

.topic-list { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 70ch; }
.topic-list li { margin-bottom: 0.4rem; }

.topic-ref { font-size: 0.9rem; opacity: 0.85; }
.topic-ref a { color: inherit; }

/* ---------------------------------------------- Pet Poison Helpline pill

   One per poison band, right-aligned at the foot of the copy column, from
   Gordon's mock-up of 2026-10-27: a bordered pill with a solid offset shadow.
   The whole pill is the tel: link.

   The fill is the panel's own colour, at the CMO's request (2026-10-27), read
   from the band's --band so it is exactly what the panel paints. The text is
   pure black rather than --ink: on the two darker panels, --clay-bg and
   --slate-bg, --ink is 3.80:1 and fails AA, while #000 is 4.6:1. Peach and
   jade are 10:1 and more. `color` is explicit because clay and slate set
   white text, which would be inherited. A box shadow is right here (unlike
   the tape cut-outs): the pill is a real shape. */
.helpline {
  /* 70ch, the same cap as .topic-body p, so the pill's right edge lines up
     with the end of the copy rather than the edge of the column. */
  max-width: 70ch;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  text-align: right;
}

.helpline-pill {
  display: inline-block;
  padding: 0.4rem 1.6rem 0.45rem;
  background: var(--band);
  color: #000;
  border: 2px solid #000;
  border-radius: 999px;
  box-shadow: 0.8rem 0.7rem 0.2rem rgb(40 25 15 / 0.7);
  /* Georgia, not Playfair: only Playfair 700 is loaded, so a regular-weight
     label would be faux-bold. The mock-up sets it in a plain book serif. */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.helpline-label,
.helpline-tel { display: block; }

.helpline-tel { font-weight: 700; }

.helpline-pill:hover .helpline-tel,
.helpline-pill:focus-visible .helpline-tel { text-decoration: underline; }

/* Filled in by script on a click from a mouse-driven device, where the tel:
   link may have nothing to hand the call to (a Windows PC with no Phone Link
   or Teams). Empty, and so invisible, everywhere else. It inherits the band's
   text colour, which is already measured on all five poison bands. Clears the
   pill's offset shadow. Scoped under .helpline because `.topic-body p`
   (0,1,1) would otherwise override the margin. */
.helpline .helpline-note {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  max-width: none;
}

.helpline-note:empty { display: none; }

/* The jump nav is sticky at the top of the viewport, so without this an
   anchor lands *underneath* it and the first thing in the band — on the
   poisons page, the helpline card — is hidden behind the bar. Measured
   against the bar's real height, not guessed. */
.team-band[id] { scroll-margin-top: 4.5rem; }

/* A vaccination schedule: a label in the left column, the vaccines it covers
   in the right, exactly as the artwork lays them out. A <dl> rather than
   headings and lists, because "Core Vaccinations" labels the group it names —
   it is not a section heading, and inventing one would add a level the
   designer never wrote. The bullets come off; the artwork sets plain lines. */
.schedule {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  max-width: 62rem;
}

.schedule dt {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--slate-ink);
  line-height: 1.3;
}

.schedule dd { margin: 0; }

.schedule dd ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

/* Stacked under the label on a phone, where a 9rem column would leave the
   vaccine names squeezed into a third of the screen. */
@media (max-width: 44rem) {
  .schedule { grid-template-columns: 1fr; gap: 0.4rem; }
  .schedule dd { margin-bottom: 1.25rem; }
  .schedule dd:last-of-type { margin-bottom: 0; }
}

@media (max-width: 44rem) {
  .topic { grid-template-columns: 1fr; }
  .topic-media { max-width: 20rem; }
}

/* ----------------------------------------------------------- care cards */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.care-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
}

.care-card:hover { box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.26); }

.care-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--band);
  background-image: linear-gradient(225deg, rgba(60, 220, 200, 0.55) 0%, rgba(255, 255, 255, 0) 45%, rgba(240, 210, 120, 0.55) 100%);
}

.care-card-media img { width: 100%; height: 100%; object-fit: contain; }

.care-card-body { display: block; padding: 1rem 1.1rem 1.25rem; }

.care-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.card-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.care-card-blurb { display: block; font-size: 0.95rem; color: var(--muted); }

@media (max-width: 52rem) {
  /* Inside the collapsed nav the menu sits inline rather than floating. */
  .masthead-nav .menu {
    position: static;
    flex-direction: column;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0;
    min-width: 0;
  }

  .menu a { color: #fff; padding-left: 1.25rem; }
  .menu a:hover, .menu a:focus-visible { background: rgba(255, 255, 255, 0.18); }

  .jump { position: static; }
}

/* ======================================================= Insights (blog)

   From the CMO's "Insights aka Blog.pdf" (2026-10-27). Generated by
   dev-aids/generators/gen-blog.js.

   Every page opens with the artwork's coloured "Insights" band. Its colour is
   one of the existing band classes — clay, slate or jade-50, all sampled off
   the PDF — so the established text rules apply unchanged: white on clay and
   slate (their accessible -bg variants), ink on jade-50. */

.insights-head {
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
}

.insights-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(4.5rem, 10vw, 7rem);
}

.insights-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.insights-title a { color: inherit; text-decoration: none; }
.insights-title a:hover,
.insights-title a:focus-visible { text-decoration: underline; }

/* Decorative cutouts at the band's right, where the artwork has them:
   pumpkins on Thanksgiving, a spray of flowers on Poisonous Plants, a dog or
   cat at its bowl on the two nutrition articles. object-position keeps the
   right-hand end when a wide strip is cropped on a narrow screen. */
.insights-art {
  flex: 0 1 auto;
  min-width: 0;
  max-height: clamp(4.5rem, 10vw, 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.insights-lede {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: 1.1rem;
}

/* Article titles are long and in sentence case, so the hub's uppercase card
   title would shout. */
.care-card--post .care-card-title {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

/* The posted date, centred just above the card's bottom edge. The body is a
   column so the date sits at the foot of every card in a row, however long
   the blurb above it. */
.care-card--post .care-card-body { display: flex; flex-direction: column; }
.care-card-date {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ an article */

.post { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* One readable measure for the whole article, left-aligned so it starts
   under the band's "Insights"; figures float inside it. */
.post-body { max-width: 52rem; }
.post-body::after { content: ''; display: block; clear: both; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.post h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.25;
  margin: 2rem 0 0.6rem;
}

.post p { margin: 0 0 1rem; }
.post ul, .post ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.post li { margin-bottom: 0.45rem; }

/* Figures float right, as every photograph in the artwork sits to the right
   of the copy. The circle is the artwork's own shape for the Osteoarthritis
   and Thanksgiving photographs; shape-outside lets the text follow the curve
   instead of a square around it. */
.post-fig {
  float: right;
  clear: right;
  width: clamp(12rem, 38%, 20rem);
  margin: 0.25rem 0 1.25rem 1.75rem;
}

.post-fig img { display: block; width: 100%; height: auto; }

.post-fig--circle img { border-radius: 50%; }
.post-fig--circle { shape-outside: circle(50%); shape-margin: 0.75rem; }
/* 260pt across a 512pt text column on PDF pp1 and 3 (the Osteoarthritis dogs,
   the Thanksgiving dog), measured 2026-10-28; the clamp above held it to 20rem,
   about 0.38. --small comes after and still wins for the Thanksgiving cats. */
.post-fig--circle { width: 51%; }
.post-fig--small { width: clamp(9rem, 28%, 14rem); }

.post-fig--rect img { border-radius: 0.6rem; }

/* A cutout has no frame. drop-shadow, never box-shadow, which would trace a
   rectangle round the transparent image. */
.post-fig--cutout img { filter: drop-shadow(0 0.5rem 0.75rem rgba(0, 0, 0, 0.18)); }

/* The closing beagle on Heat Stroke sits centred under the last paragraph,
   as in the artwork, rather than floating. */
.post-fig--center {
  float: none;
  clear: both;
  /* 0.81 of the reading column: the beagle's width on PDF p14, measured
     (Gordon, 2026-10-28; it had been capped at 22rem). The PDF's beagle is
     478px wide, so this shows it at up to 674px, ~1.4x. */
  width: 81%;
  margin: 2rem auto 0;
}

/* The dog walker on Walking Your Dog: a wide strip above the title. */
.post-fig--lead {
  float: none;
  width: 100%;
  margin: 0 0 1.5rem;
}

/* The CMO's list of toxic plants, in columns so one name is easy to find. */
.post .plant-list {
  columns: 13rem auto;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
}

.post .plant-list li { break-inside: avoid; margin-bottom: 0.3rem; }

.post .post-back {
  clear: both;
  margin-top: 2.5rem;
  font-weight: 700;
}

.post-back a { color: var(--link); }

@media (max-width: 44rem) {
  /* No room to wrap text round a picture: centre it above the copy. */
  .post-fig,
  .post-fig--small {
    float: none;
    width: min(100%, 16rem);
    margin: 0.5rem auto 1.5rem;
  }
  .post-fig--rect { width: 100%; }
  .post-fig--lead { width: 100%; }
  .post-fig--center { width: 81%; }

  .insights-art { max-width: 55%; }
}

/* ========================================================= policy pages

   /hospital-policies/ and /privacy-policy/, from the CMO's policy document
   (dev-aids/Policy pages/, SVG set (3)), generated by gen-policies.js. The
   body uses the blog's .post styles; only this band is the document's own:
   pale green with the title in clay and a clay rule along its foot.

   The title is --clay-bg, not the document's --clay. --clay on this green is
   about 2.95:1, under the 3:1 even large text needs. */
.policy-head {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 0.45rem solid var(--clay);
}

.policy-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--clay-bg);
}

.policy-meta { color: var(--muted); }

/* The opening hours under "In person:" on the accessibility statement: plain
   lines, as the document sets them, indented to sit under the list above. */
.post .policy-lines {
  list-style: none;
  padding-left: 1.3rem;
}
.post .policy-lines li { margin-bottom: 0.15rem; }

/* --------------------------------------- Insights band, artwork variant

   .insights-head--spread, from Gordon's mock-up of the Thanksgiving page
   (2026-10-28): the PDF page's header, scaled. Measured off the 918px render,
   with the text column (x 75 to 843, 768px wide) standing in for the site's
   content column, --ins-c. Every size below is a fraction of that column:

                 PDF px      / 768
     band height 155         0.202
     cutout      x -75..595  left -0.098, width 0.872; 175 tall, 0.227
     title       ~45px type  0.06
     logo        x 587..789  left 0.764, 202 across, 0.263; top 18, 0.023

   The cutout is shown 0.872 x 0.227 (3.84:1) while the file is 3.41:1, so
   object-fit trims its top edge, as the artwork does: the stems touch the
   band's top. It starts left of the content column, as the artwork's starts
   at the page edge, which keeps its hard-cut left edge out of view. */
/* On :root, not on the band: the article after the band needs it too, to
   clear the logo's overhang, and a sibling cannot see the band's variables. */
:root { --ins-c: min(100vw - 2 * var(--gutter), var(--maxw) - 2 * var(--gutter)); }

.insights-head--spread {
  padding-block: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.insights-head--spread .insights-head-inner {
  position: relative;
  height: calc(var(--ins-c) * 0.202);
  min-height: 0;
  justify-content: flex-start;
}

.insights-spread-art {
  position: absolute;
  top: 0;
  left: calc(var(--gutter) - var(--ins-c) * 0.098);
  width: calc(var(--ins-c) * 0.872);
  height: calc(var(--ins-c) * 0.227);
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: left bottom;
  /* The file's left edge is a straight cut. The artwork hides it off the
     page; a wide screen has room to show it, so it fades in instead. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%);
  mask-image: linear-gradient(to right, transparent, #000 9%);
  pointer-events: none;
}

.insights-head--spread .insights-title {
  position: relative;
  font-size: max(2rem, calc(var(--ins-c) * 0.06));
  color: #fff;
  /* The cutout behind the title runs from pumpkin to candle flame, so the
     shadow, not the band, carries the contrast. */
  text-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.8), 0 0 0.08em rgba(0, 0, 0, 0.7);
}

/* No picture behind the title: plain white on the band, as the artwork sets
   it. White on --clay-bg is 4.53:1. */
.insights-head--bare .insights-title { text-shadow: none; }

.insights-logo {
  position: absolute;
  /* Overhangs the content column's right edge as the artwork's does, but
     never the screen's: where the side margin is narrow (around 1024px) the
     second term pulls it back inside. */
  left: min(calc(var(--gutter) + var(--ins-c) * 0.764), calc(100% - var(--ins-c) * 0.263 - 0.5rem));
  top: calc(var(--ins-c) * 0.023);
  width: calc(var(--ins-c) * 0.263);
  height: auto;
  border-radius: 50%;
}

/* Clear the logo's overhang below the band (0.286 - 0.202 of the column),
   but only where the two would collide: from 75rem the 52rem reading column
   ends before the logo begins, so the title starts beside it, as in the
   artwork. */
.insights-head--spread + .post {
  padding-top: calc(var(--ins-c) * 0.084 + 2rem);
}

@media (min-width: 75rem) {
  .insights-head--spread + .post { padding-top: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 44rem) {
  /* At phone width those fractions shrink everything to nothing, so the
     header takes fixed sizes instead: same arrangement, readable title. */
  .insights-head--spread .insights-head-inner { height: 6.5rem; }
  .insights-spread-art { left: -1.5rem; width: auto; height: 7.25rem; }
  .insights-logo { left: auto; right: var(--gutter); top: 0.6rem; width: 7rem; }
  .insights-head--spread + .post { padding-top: 2.75rem; }
}

/* A repeat of the band where the PDF turns a page (gen-blog.js pageBreak).
   The text after it clears the logo's overhang the same way the article's
   opening does after the first band. */
.insights-break { margin-top: clamp(2rem, 5vw, 3rem); }

.insights-break + .wrap { padding-top: calc(var(--ins-c) * 0.084 + 2rem); }

@media (min-width: 75rem) {
  .insights-break + .wrap { padding-top: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 44rem) {
  .insights-break + .wrap { padding-top: 2.75rem; }
}

/* The article's lead picture drawn by the band, rising into it from below
   (gen-blog.js leadInBand; Walking Your Dog, 2026-10-28). Measured off PDF
   page 5 against the 768px text column, as the rest of this header is:

                 PDF px          / 768
     top         y 110, the cap  0.143   inside the 155px band
     left        x 36            -0.051  left of the text column
     width       834             1.086   wider than the text column

   The file is 3.06:1, so it is 0.355 of the column tall and spills 0.296
   below the band; the article starts after that. The logo is drawn over the
   picture's top right, as in the artwork. */
.insights-head--spread {
  /* The picture is wider than the content column; clip sideways so it can
     never cause horizontal scrolling, while it still spills downward. */
  overflow-x: clip;
}

.insights-lead {
  position: absolute;
  top: calc(var(--ins-c) * 0.143);
  left: calc(var(--gutter) - var(--ins-c) * 0.051);
  width: calc(var(--ins-c) * 1.086);
  height: auto;
  max-width: none;
}

.insights-head--lead .insights-title,
.insights-head--lead .insights-logo { z-index: 1; }

.insights-head--spread.insights-head--lead + .post {
  padding-top: calc(var(--ins-c) * 0.296 + 1.75rem);
}

@media (max-width: 44rem) {
  /* The band is a fixed 6.5rem here, so the picture starts below the title
     and runs the full screen width. */
  .insights-lead { top: 4.4rem; left: -0.5rem; width: calc(100% + 1rem); }
  .insights-head--spread.insights-head--lead + .post {
    padding-top: calc((100vw + 1rem) / 3.06 - 0.6rem);
  }
}

/* A band rebuilt from the PDF's own layout (gen-blog.js `composed`;
   Poisonous Plants, 2026-10-28). The picture is the whole PDF page's header,
   x 0..612pt, so it is placed as the page is: 612/512 of the text column
   wide, starting 50/512 left of it. Its band portion then comes out exactly
   the band's 0.202 of the column, and anything below spills out of the foot,
   as the PDF's flowers do. The plants are drawn over the logo, the title over
   both. */
.insights-composed {
  position: absolute;
  top: 0;
  left: calc(var(--gutter) - var(--ins-c) * 50 / 512);
  width: calc(var(--ins-c) * 612 / 512);
  height: auto;
  max-width: none;
  z-index: 1;
  pointer-events: none;
}

.insights-head--composed .insights-title {
  z-index: 2;
  color: #fff;
  text-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.8), 0 0 0.08em rgba(0, 0, 0, 0.7);
}

/* On a light band the design's white "Insights" measures 1.22:1 against the
   pale green. The site's rule for light bands (set on Meet the Team, on
   record since) is dark text, so it takes --ink on every jade-50 band of this
   header (Poisonous Plants, Heat Stroke), and over pictures a soft white glow
   keeps it crisp. Built 2026-10-28; Gordon to confirm. */
.team-band--jade-50.insights-head--spread .insights-title { color: var(--ink); }

.team-band--jade-50.insights-head--composed .insights-title {
  color: var(--ink);
  text-shadow: 0 0 0.12em rgba(255, 255, 255, 0.95), 0 0 0.45em rgba(255, 255, 255, 0.8);
}

/* The text after a composed band clears whichever reaches lower: the logo's
   overhang (0.084 of the column) or the picture's spill (--ins-spill, written
   by the generator; Feeding Your Dog's dog reaches 0.115). */
.insights-head--composed + .post,
.insights-head--composed + .wrap {
  padding-top: max(calc(var(--ins-c) * 0.084 + 2rem), calc(var(--ins-c) * var(--ins-spill, 0) + 1.75rem));
}

/* Wide screens start the text just under the band; clear the plants' spill
   as well as the usual gap. */
@media (min-width: 75rem) {
  .insights-head--composed + .post,
  .insights-head--composed + .wrap {
    padding-top: max(clamp(2rem, 5vw, 3.5rem), calc(var(--ins-c) * var(--ins-spill, 0) + 1.75rem));
  }
}

@media (max-width: 44rem) {
  /* The band is a fixed 6.5rem here: size the picture from the band, keep
     its left end, and let the band clip the rest. */
  .insights-composed {
    left: -0.5rem;
    width: auto;
    height: calc(6.5rem * var(--ins-h));
  }
  /* At this scale the right-hand plants (the foxglove) land on the logo and
     hide it, so on a phone the logo is drawn above them. */
  .insights-head--composed .insights-logo { z-index: 2; }
  /* The picture is 6.5rem x --ins-h tall here, so it spills 6.5rem x
     (--ins-h - 1) below the band. */
  .insights-head--composed + .post,
  .insights-head--composed + .wrap {
    padding-top: max(2.75rem, calc(6.5rem * (var(--ins-h, 1) - 1) + 1.5rem));
  }
}

/* .insights-head--to-scale (gen-blog.js phoneToScale; Feeding Your Dog,
   2026-10-28): on a phone, keep the desktop arrangement at phone scale
   instead of the fixed 6.5rem band. For a band with one central subject the
   fixed band scales the picture up so far that the subject lands under the
   logo. These restore the column-fraction sizes from the rules above. */
@media (max-width: 44rem) {
  .insights-head--to-scale .insights-head-inner { height: calc(var(--ins-c) * 0.202); }
  .insights-head--to-scale .insights-composed {
    left: calc(var(--gutter) - var(--ins-c) * 50 / 512);
    width: calc(var(--ins-c) * 612 / 512);
    height: auto;
  }
  .insights-head--to-scale .insights-logo {
    left: calc(var(--gutter) + var(--ins-c) * 0.764);
    right: auto;
    top: calc(var(--ins-c) * 0.023);
    width: calc(var(--ins-c) * 0.263);
    z-index: 0;
  }
  .insights-head--to-scale + .post {
    padding-top: max(calc(var(--ins-c) * 0.084 + 2rem), calc(var(--ins-c) * var(--ins-spill, 0) + 1.75rem));
  }
}

/* The CMO's red emphasis in the Insights PDF, sampled off the page: #c6302c,
   5.4:1 on white. Written as [[red:...]] in gen-blog.js. First used on Heat
   Stroke's "Heat stress" and "Heat stroke" lead-ins (Gordon, 2026-10-28). */
.text-red { color: #c6302c; }

/* ================================================== /cherry-payment-plan/

   From dev-aids/Cherry Payment Plan/, generated by gen-cherry.js. The header
   is the Insights spread band on --jade-50 (same logo, same fractions of
   --ins-c), with the title in clay and a clay rule beneath, as the policy
   pages set theirs. Clay is --clay-bg: --clay on this green fails 3:1.

   Two sets of pills carry the same three links: small ones beside the copy
   (page 1 of the artwork) and large ones closing the page (page 2). The
   artwork's white labels on clay and slate fail AA (3.69:1, 4.23:1), so they
   sit on --clay-bg and --slate-bg (4.53:1). The green pill is --jade exactly,
   with --ink. */
.cherry-head { border-bottom: 0.45rem solid var(--clay); }

.cherry-head.insights-head--spread .insights-title {
  color: var(--clay-bg);
  font-size: max(2rem, calc(var(--ins-c) * 0.065));
}

.cherry-intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cherry-logo { width: 10.5rem; height: auto; }

.cherry-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  margin: 0;
}

/* Copy left, pills and the cat and pug right: page 1's two columns. The
   right column is ~0.37 of the content column in the artwork. */
.cherry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.6fr);
  gap: 2.5rem;
}

.cherry .post-body { max-width: 52rem; }
.cherry .post-body > h2:first-child { margin-top: 1rem; }

.post .cherry-note { font-size: 0.95rem; }

.cherry-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.cherry-pills,
.cherry-big {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post .cherry-pills { padding: 0; margin: 2.5rem 0 0; }
.cherry-pills li { margin-bottom: 2.25rem; }

/* The artwork's pill: a white edge and a two-step shadow, dark then grey. */
.cherry-pill {
  display: block;
  padding: 0.55rem 1rem;
  border: 3px solid #fff;
  border-radius: 0.55rem;
  box-shadow: 0.55rem 0.5rem 0 #4a4a4a, 1.1rem 1rem 0.2rem #cfcfcf;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cherry-pill--clay,  .cherry-btn--clay  { background: var(--clay-bg);  color: #fff; }
.cherry-pill--slate, .cherry-btn--slate { background: var(--slate-bg); color: #fff; }
.cherry-pill--jade,  .cherry-btn--jade  { background: var(--jade);     color: var(--ink); }

.cherry-pill:hover,
.cherry-pill:focus-visible,
.cherry-btn:hover,
.cherry-btn:focus-visible { text-decoration: underline; }

.cherry-pets { width: 100%; height: auto; }

/* Page 2: the same three, full width and tall, no shadow. */
.post .cherry-big { clear: both; margin: 3rem 0 0; padding: 0; }
.cherry-big li { margin-bottom: 1.5rem; }

.cherry-btn {
  display: block;
  padding: clamp(1.1rem, 3vw, 1.9rem) 1rem;
  border-radius: 0.7rem;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 44rem) {
  .cherry-layout { grid-template-columns: 1fr; gap: 0; }
  /* No column beside the copy, and the large set follows at once. */
  .cherry-side .cherry-pills { display: none; }
  .cherry-pets { width: min(100%, 22rem); margin-inline: auto; }
  .cherry-head .insights-title { padding-right: 7.5rem; }
}

/* ======================================================== /new-patients/

   The clinic's Jotform, embedded (gen-new-patients.js). Jotform's embed
   handler sets the iframe's height to the form's; the min-height only holds
   the space until it does. */
.new-patients-form {
  display: block;
  width: 100%;
  min-height: 60rem;
  border: 0;
}

/* Built from "Noble New Patient Page Gordon.svg" (2026-11-03): the live form
   sits in the frame where the artwork has a screenshot of it. Every position
   is the artwork's own, in points of its 612pt page: --u is one point at the
   canvas's current width, and the canvas is at most 76.5rem (2x the page).

     band 0-97.7  strip 97.7-109  frame x 122.4, top 151.2, 367 wide
     dog x 5 y 14.5 w 108.5       cat x 518.9 y 4.1 w 66.6

   The band and strip run full-bleed, so they are painted by .np's background
   rather than by the canvas. The page is the artwork's 20% peach over white,
   #ffefe4.

   The artwork's title is peach on the pale green, about 1.5:1. As on the
   policy pages, it takes --clay-bg instead (about 3.8:1, large text), and
   keeps the artwork's dark offset shadow. */
main.np { container-type: inline-size; }

.np {
  --c: min(100cqw, 76.5rem);
  --u: calc(var(--c) / 612);
  --np-band: calc(97.7 * var(--u));
  --np-strip: max(1.6rem, calc(11.3 * var(--u)));
  background: linear-gradient(to bottom,
    var(--jade-50) 0 var(--np-band),
    var(--peach) 0 calc(var(--np-band) + var(--np-strip)),
    #ffefe4 0);
}

.np-canvas {
  position: relative;
  width: var(--c);
  margin-inline: auto;
  padding: calc(151.2 * var(--u)) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.np-head {
  position: absolute;
  inset: 0 calc(95 * var(--u)) auto calc(115 * var(--u));
  height: var(--np-band);
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: max(1.2rem, calc(31 * var(--u)));
  line-height: 1.1;
  text-align: center;
  color: var(--clay-bg);
  text-shadow: 0.04em 0.04em 0 rgba(0, 0, 0, 0.55);
}

.np-strip {
  position: absolute;
  inset: var(--np-band) 0 auto;
  height: var(--np-strip);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: max(0.8rem, calc(9.5 * var(--u)));
  color: #000;
  white-space: nowrap;
}

.np-dog, .np-cat {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}
.np-dog { left: calc(5 * var(--u)); top: calc(14.5 * var(--u)); width: calc(108.5 * var(--u)); }
.np-cat { left: calc(518.9 * var(--u)); top: calc(4.1 * var(--u)); width: calc(66.6 * var(--u)); }

.np-frame {
  margin-left: calc(122.4 * var(--u));
  width: calc(367 * var(--u));
  background: #fff;
  border: max(1px, calc(1.33 * var(--u))) solid var(--peach);
  padding: 0.5rem;
}

.np-alt {
  margin: 1rem 0 0 calc(122.4 * var(--u));
  font-size: 0.9rem;
}

/* Below 52rem 60% of the canvas is too narrow for the form, so the frame
   widens and starts below the dog's feet (220pt) instead. */
@media (max-width: 52rem) {
  .np-canvas { padding-top: calc(228 * var(--u)); }
  .np-frame, .np-alt { margin-left: 3%; }
  .np-frame { width: 94%; }
}

/* On phones the address at a readable size is wider than the gap between
   the dog and the cat, so it wraps to two lines between them and the strip
   deepens to hold it. */
@media (max-width: 44rem) {
  .np { --np-strip: 2.8rem; }
  .np-strip { white-space: normal; padding-inline: 19%; line-height: 1.25; text-align: center; }
  .np-canvas { padding-top: calc(228 * var(--u) + 1.5rem); }
}

/* ====================================================== /testimonials/

   From dev-aids/testimonials/ (gen-testimonials.js). The header is the
   Insights spread band on peach: the composed photo strip, "Social Proof"
   in white with the Thanksgiving shadow, the logo overhanging, and a clay
   rule along the band's foot as on the Cherry and policy pages. The title
   sits on the photographs, so the shadow, not the peach, carries its
   contrast (white on peach alone is 1.79:1).

   The strip fills the band's height. In the artwork it starts at the page
   edge, 14pt left of a 563pt text column, and is 445.6pt wide on a 98pt
   band: left -0.025, width 0.919 of --ins-c at a band of 0.202. */
.testimonials-head { border-bottom: 0.45rem solid var(--clay); }

.testimonials-head .testimonials-strip {
  left: calc(var(--gutter) - var(--ins-c) * 0.025);
  width: calc(var(--ins-c) * 0.919);
  height: calc(var(--ins-c) * 0.202);
  object-fit: fill;
}

.testimonials-head .insights-title { padding-left: calc(var(--ins-c) * 0.064); }

.testimonials-sub {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: center;
  color: var(--slate-ink);
}

.post .testimonials-place { margin: 0.5rem 0 2.5rem; text-align: right; }

/* A photograph beside the quote, as on page 1; quotes without one run the
   full width. */
.testimonial { margin-bottom: 3.5rem; }

.testimonial--photo {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.testimonial blockquote { margin: 0; }
.post .testimonial-by { margin: 0; }
.testimonial-by::before { content: '\2022\00a0'; }

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3.5rem);
  margin-top: 1.25rem;
  max-width: 50rem;
}

/* The artwork's frame: a pink line, a white mat, then the photograph, all
   with the corners scooped inward. Each layer masks out a quarter circle at
   each corner. The circles share the outer corner as their centre, so the
   three edges stay parallel round the curve. */
.t-frame,
.t-frame-inner,
.t-frame img {
  --o: 0px;
  -webkit-mask:
    radial-gradient(circle at calc(0px - var(--o)) calc(0px - var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at calc(100% + var(--o)) calc(0px - var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at calc(0px - var(--o)) calc(100% + var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at calc(100% + var(--o)) calc(100% + var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at calc(0px - var(--o)) calc(0px - var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at calc(100% + var(--o)) calc(0px - var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at calc(0px - var(--o)) calc(100% + var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at calc(100% + var(--o)) calc(100% + var(--o)), #0000 calc(var(--r) + var(--o)), #000 calc(var(--r) + var(--o) + 0.5px)) bottom right / 51% 51% no-repeat;
}

.t-frame {
  --r: 0.9rem;
  display: block;
  padding: 3px;
  background: #f090a2; /* sampled off the artwork */
}

.t-frame-inner { --o: 3px; display: block; padding: 5px; background: #fff; }

.t-frame img {
  --o: 8px;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 44rem) {
  .testimonial--photo { grid-template-columns: 1fr; }
  .testimonial--photo > .t-frame { width: min(100%, 14rem); }
  .testimonials-head .testimonials-strip { left: -1.5rem; width: auto; height: 6.5rem; }
  .testimonials-head .insights-title { padding-left: 0; }
}

/* ====================================================== /noble-family/
   "Our Noble Family", the patient photo gallery (2026-11-03). The artwork
   repeats one header on each of its seven pages: a peach band, the logo
   overhanging it, and a slate rule along its foot. The site has it once.

   The artwork's title is white with a shadow on bare peach, 1.79:1. Peach
   is a light band, so the title takes --ink (9.6:1), as the light-band
   rule has it. To confirm with the CMO.

   Page 1 opens with three large portrait photographs; then square tiles,
   five to a row as drawn, three on tablets and two on phones. */
.family-head { border-bottom: 0.45rem solid var(--slate); }
.family-head.insights-head--spread .insights-title { color: var(--ink); }

.family { padding-block: calc(var(--ins-c) * 0.11) clamp(2.5rem, 6vw, 4.5rem); }

.family-featured,
.family-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.family-featured {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.family-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.6rem, 2vw, 2rem);
}

.family img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* The square tiles measure 479-490px tall at 480 wide, so a fixed square
   keeps every row level. */
.family-grid img { aspect-ratio: 1; object-fit: cover; }

@media (max-width: 52rem) {
  .family-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 44rem) {
  .family { padding-top: 4rem; }
  .family-featured { gap: 0.6rem; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .family-head .insights-title { padding-right: 7.5rem; }
}
