/* ============================================================================
   PureLife Vet, v2
   Rebuilt against the .ai file. Deliberate departures from v1, which the client
   read as generic:
     · Avenir Black display + Rubik Light ledes (what the .ai actually uses)
     · type roughly half the size; large sizes reserved for the video hero
     · square-ish geometry, pill radius only on small chips
     · two shadows, used rarely; structure comes from 1px hairlines
     · no gradient blobs, no symmetric 4-up card grids as the default
   ============================================================================ */

/* ---------------- fonts, all from the brand kit ---------------- */
@font-face{font-family:'Avenir';src:url('../assets/fonts/Avenir-Black.ttf') format('truetype');font-weight:900;font-display:swap}
@font-face{font-family:'Avenir';src:url('../assets/fonts/Avenir-Heavy.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:'Nunito';src:url('../assets/fonts/Nunito-Variable.ttf') format('truetype-variations');font-weight:200 1000;font-display:swap}
@font-face{font-family:'Rubik';src:url('../assets/fonts/Rubik-Variable.ttf') format('truetype-variations');font-weight:300 900;font-display:swap}
@font-face{font-family:'Manrope';src:url('../assets/fonts/Manrope-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Manrope';src:url('../assets/fonts/Manrope-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:'Manrope';src:url('../assets/fonts/Manrope-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Manrope';src:url('../assets/fonts/Manrope-ExtraBold.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:'Sarina';src:url('../assets/fonts/Sarina-Regular.ttf') format('truetype');font-weight:400;font-display:swap}

*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--ff-text);font-size:var(--fs-body);line-height:var(--lh-body);
  color:var(--text-primary);background:var(--bg-canvas);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  font-feature-settings:'kern' 1,'liga' 1;
}
img,svg,video{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit;background:none;border:none}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
/* One focus affordance per control. The generic rule drew a second rectangle
   *inside* every field, because the control fills a wrapper that already has
   its own border, so the ring moves to the wrapper and the inner control
   opts out. */
:focus-visible{outline:2px solid var(--action-accent);outline-offset:2px}
.in :focus-visible,.in :focus{outline:none}
::selection{background:var(--c-tan-300);color:var(--c-ink-900)}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto}}

/* ---------------- type ---------------- */
.t-hero,.t-display,.t-h1,.t-h2{font-family:var(--ff-display);font-weight:900}
.t-hero{font-size:var(--fs-hero);line-height:var(--lh-hero);letter-spacing:var(--tr-hero)}
.t-display{font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--tr-display)}
.t-h1{font-size:var(--fs-h1);line-height:var(--lh-h1);letter-spacing:var(--tr-h1)}
.t-h2{font-size:var(--fs-h2);line-height:var(--lh-h2);letter-spacing:var(--tr-h2)}
.t-h3{font-family:var(--ff-text);font-weight:800;font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:var(--tr-h3)}
.t-h4{font-family:var(--ff-text);font-weight:700;font-size:var(--fs-h4);line-height:var(--lh-h4)}
.t-lede{font-family:var(--ff-editorial);font-weight:300;font-size:var(--fs-lede);line-height:var(--lh-lede);letter-spacing:var(--tr-lede)}
.t-body{font-size:var(--fs-body);line-height:var(--lh-body)}
.t-sm{font-size:var(--fs-bodySm);line-height:var(--lh-bodySm)}
.t-label{font-weight:700;font-size:var(--fs-label);line-height:var(--lh-label)}
.t-cap{font-weight:500;font-size:var(--fs-caption);line-height:var(--lh-caption)}
.t-over{font-weight:700;font-size:var(--fs-overline);letter-spacing:var(--tr-overline);text-transform:uppercase;line-height:1.2}
.t-price{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-price);letter-spacing:var(--tr-price)}
.t-script{font-family:var(--ff-accent);font-weight:400}
.c-2{color:var(--text-secondary)} .c-mut{color:var(--text-muted)}
.c-acc{color:var(--text-accent)} .c-brand{color:var(--text-brand)}
.balance{text-wrap:balance} .pretty{text-wrap:pretty}
.measure{max-width:var(--grid-desktop-maxText)} .measure-s{max-width:46ch}

/* ---------------- layout ---------------- */
.wrap{width:100%;margin-inline:auto;padding-inline:var(--grid-desktop-margin);
  max-width:calc(var(--grid-desktop-content) + var(--grid-desktop-margin)*2)}
.wrap-narrow{max-width:calc(880px + var(--grid-desktop-margin)*2)}
/* 136px top and bottom meant 272px of padding between one section's content
   and the next. Down to 80 and 64: still clearly separated bands, without a
   screen of empty page between them on a laptop. */
.sec{padding-block:var(--sp-12)}
.sec-s{padding-block:var(--sp-11)}
.sec--band{background:var(--bg-subtle)}
.sec--dark{background:var(--bg-inverse);color:var(--text-onInverse)}
.sec--rule{border-top:1px solid var(--border-hair)}
.col{display:flex;flex-direction:column}
.row{display:flex;align-items:center}
.between{justify-content:space-between}
.wrapf{flex-wrap:wrap}
.g{display:grid;gap:var(--sp-8)}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* asymmetric splits, the default is deliberately not 50/50 */
.g-7-5{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.g-5-7{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.g-8-4{grid-template-columns:minmax(0,8fr) minmax(0,4fr)}
.gap3{gap:var(--sp-3)}.gap4{gap:var(--sp-4)}.gap5{gap:var(--sp-5)}.gap6{gap:var(--sp-6)}
.gap7{gap:var(--sp-7)}.gap8{gap:var(--sp-8)}.gap9{gap:var(--sp-9)}.gap10{gap:var(--sp-10)}
.mb4{margin-bottom:var(--sp-4)}.mb5{margin-bottom:var(--sp-5)}.mb7{margin-bottom:var(--sp-7)}.mb9{margin-bottom:var(--sp-9)}.mb10{margin-bottom:var(--sp-10)}
.mt3{margin-top:var(--sp-3)}.mt4{margin-top:var(--sp-4)}.mt5{margin-top:var(--sp-5)}
.mt6{margin-top:var(--sp-6)}.mt7{margin-top:var(--sp-7)}.mt8{margin-top:var(--sp-8)}
.mt9{margin-top:var(--sp-9)}.mt10{margin-top:var(--sp-10)}.mt11{margin-top:var(--sp-11)}
.grow{flex:1}
@media (max-width:900px){
  .wrap{padding-inline:var(--grid-mobile-margin)}
  .sec{padding-block:var(--sp-11)} .sec-s{padding-block:var(--sp-9)}
  .g2,.g3,.g4,.g-7-5,.g-5-7,.g-8-4{grid-template-columns:minmax(0,1fr)}
  .g{gap:var(--sp-7)}
}
/* Hide only inside the media query that applies, and never with `revert`:
   reverting display drops back to the UA default and discarded the element's
   own author rule (.hdr__burger's display:flex), so the mobile menu button
   disappeared. With no rule outside its own breakpoint, each element simply
   keeps whatever display it was given. */
@media (min-width:901px){.hide-d{display:none!important}}
@media (max-width:900px){.hide-m{display:none!important}}

/* ---------------- buttons: square-ish, not pills ---------------- */
.b{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-4);
  height:48px;padding-inline:var(--sp-7);border-radius:var(--r-sm);
  font-family:var(--ff-text);font-weight:700;font-size:var(--fs-label);white-space:nowrap;
  transition:background var(--mo-fast),color var(--mo-fast),border-color var(--mo-fast)}
.b svg{width:17px;height:17px;flex:none}
.b--solid{background:var(--action-primary);color:var(--text-onAccent)}
.b--solid:hover{background:var(--action-primaryHover)}
.b--accent{background:var(--action-accent);color:var(--text-onAccent)}
.b--accent:hover{background:var(--action-accentHover)}
.b--line{border:1px solid var(--border-strong);color:var(--text-primary)}
.b--line:hover{border-color:var(--text-primary);background:var(--bg-subtle)}
.b--ghost{padding-inline:0;height:auto;color:var(--text-accent);border-bottom:1px solid currentColor;border-radius:0;padding-bottom:3px}
.b--ghost:hover{color:var(--text-primary)}
.b--onDark{background:var(--c-bone-100);color:var(--c-ink-900)}
.b--onDark:hover{background:#fff}
.b--lineDark{border:1px solid rgba(251,243,240,.42);color:var(--c-bone-100)}
.b--lineDark:hover{border-color:var(--c-bone-100);background:rgba(251,243,240,.1)}
.b--sm{height:38px;padding-inline:var(--sp-5);font-size:var(--fs-caption)}
.b--lg{height:56px;padding-inline:var(--sp-9);font-size:var(--fs-body)}
.b--block{width:100%}
.b[disabled]{opacity:.4;pointer-events:none}

/* Buttons size to their labels, which is right on a wide page and wrong
   the moment the layout goes single column: "Book an appointment" beside
   "Call the emergency line" then reads as two mismatched blocks, and a
   trio crowds onto one line.

   Under 600px every button takes the full column, so they stack at one
   width. Between 600 and the 900px breakpoint they share the row instead,
   with a basis small enough that three still fit on one line: at 240px a
   trio broke two-then-one, which looked worse than either arrangement.

   .b--ghost is excluded, being an underlined text link, so stretching it
   would draw a rule the width of the column. .b--sm is excluded because it
   is used for month arrows and inline actions, not calls to action. */
@media (max-width:900px){
  .row.wrapf,.hero__cta,.bleed__in .row{row-gap:var(--sp-4)}
  .row.wrapf > .b:not(.b--sm):not(.b--ghost),
  .hero__cta > .b{flex:1 1 180px}
}
@media (max-width:600px){
  .row.wrapf > .b:not(.b--sm):not(.b--ghost),
  .hero__cta > .b{flex:1 1 100%}
}

/* chips are the one place a pill is right */
.chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding-inline:var(--sp-5);
  border-radius:var(--r-pill);border:1px solid var(--border-default);
  font-size:var(--fs-caption);font-weight:600;color:var(--text-secondary);
  transition:all var(--mo-fast)}
.chip:hover{border-color:var(--border-strong);color:var(--text-primary)}
.chip--on{background:var(--action-primary);border-color:var(--action-primary);color:var(--c-bone-100)}
.tag{display:inline-flex;align-items:center;gap:5px;height:24px;padding-inline:10px;
  border-radius:var(--r-pill);background:var(--bg-inset);color:var(--text-secondary);
  font-size:var(--fs-overline);font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.tag--tan{background:var(--c-tan-300);color:var(--c-ink-900)}
/* kept as the class name the pages already pass, now painted in the brand
   brown on its tan tint rather than the undocumented clay */
.tag--clay{background:var(--c-tan-300);color:var(--c-brown-800)}
.tag--rx{background:var(--c-semantic-rx);color:var(--c-bone-50)}
/* a chip or tag dropped straight into a flex column stretches to the full
   column width unless it opts out */
.col > .tag,.col > .chip,.card__b > .tag{align-self:flex-start}

/* ---------------- brand icons ---------------- */
.bi{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-.14em}
.bi-lg{width:34px;height:34px} .bi-xl{width:46px;height:46px}
.ico{width:20px;height:20px;flex:none;display:inline-block;vertical-align:-.16em;
  stroke:currentColor;fill:none;stroke-width:2.126;stroke-linecap:round;stroke-linejoin:round}

/* ---------------- header: transparent over media ---------------- */
/* Fixed from the start, not absolute. The pinning used to arrive with the
   stuck class, which means it arrived with JavaScript: until the page
   hydrated, scrolling carried the header away and there was nothing at the
   top of a phone screen. Fixed here, the header is pinned by CSS and the
   script only swaps transparent for solid. */
.hdr{position:fixed;inset:0 0 auto 0;z-index:50;color:var(--c-bone-100)}
.hdr--solid,.hdr--stuck{background:color-mix(in srgb,var(--bg-canvas) 94%,transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--border-hair);color:var(--text-primary)}
.hdr--solid{position:sticky}
/* Pinned once you scroll past the announcement bar. Fixed rather than sticky
   because the transparent state is absolute, so there is no placeholder in
   the flow to stick to. Nothing shifts: both states are out of flow. */
.hdr--stuck{position:fixed;inset:0 0 auto 0;animation:hdrDrop var(--mo-base) ease-out}
@keyframes hdrDrop{from{transform:translateY(-100%)}to{transform:translateY(0)}}
/* the bar is a nice-to-have at the top of the page, not worth the height once
   someone is reading */
.hdr--stuck .hdr__note{display:none}
.hdr--stuck .hdr__bar{min-height:64px}

/* one lockup per state, swapped here because the mark is built server-side */
.hdr__lk--light{display:none}
.hdr--stuck .hdr__lk--dark,.hdr--solid .hdr__lk--dark{display:none}
.hdr--stuck .hdr__lk--light,.hdr--solid .hdr__lk--light{display:block}
.hdr__book{background:var(--c-bone-100);color:var(--c-ink-900)}
.hdr__book:hover{background:#fff}
.hdr--stuck .hdr__book,.hdr--solid .hdr__book{background:var(--action-primary);
  color:var(--text-onAccent)}
.hdr--stuck .hdr__book:hover,.hdr--solid .hdr__book:hover{background:var(--action-primaryHover)}
.hdr--stuck .hdr__nav a,.hdr--stuck .hdr__act{opacity:1}
.hdr__note{background:color-mix(in srgb,var(--c-ink-900) 62%,transparent);backdrop-filter:blur(8px);
  color:var(--c-bone-100);font-size:var(--fs-caption);font-weight:600;
  border-bottom:1px solid rgba(251,243,240,.14)}
.hdr--solid .hdr__note{background:var(--c-ink-900);backdrop-filter:none;border-bottom:0}
.hdr__note .wrap{display:flex;align-items:center;justify-content:center;gap:var(--sp-5);min-height:38px;
  padding-block:8px;text-align:center}
/* The side tracks must be able to shrink, or the row overflows to the right
   and the last thing in it, the Book button, ends up hard against the screen
   edge while the burger on the left keeps the page margin. 1fr is
   minmax(auto,1fr), so each side insisted on its content width: burger plus
   the lockup plus icon, gap and button came to about 340px of the 350px a
   390px phone has, and anything that widened the button past that slack
   pushed it out of the padding. Adding the portal icon to the phone bar is
   what spent the slack. The lockup gives way first now, and nothing can be
   pushed off the margin. */
.hdr__bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr);
  align-items:center;gap:var(--sp-6);min-height:76px}
.hdr__act,.hdr__mark{min-width:0}
.hdr__mark svg{max-width:100%}
/* letterspaced uppercase at 8.5px: if the device's font renders it wider than
   the cell, lose the end of a decorative line rather than the margins */
.hdr__mark span{max-width:100%;overflow:hidden;white-space:nowrap}

/* The note strip plus the bar. Anything sitting under the transparent
   header has to clear this, so it is stated once here. */
:root{--hdr-h:115px}
.hdr__nav{display:flex;align-items:center;gap:var(--sp-7);font-size:var(--fs-bodySm);font-weight:600}
.hdr__nav a{opacity:.92;transition:opacity var(--mo-fast)}
.hdr__nav a:hover{opacity:1}
.hdr__burger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:26px;height:26px;
  justify-self:start}
.hdr__burger span{display:block;height:1.5px;background:currentColor;border-radius:0}
.hdr__burger span:nth-child(2){width:70%}
.hdr__mark{display:flex;flex-direction:column;align-items:center;gap:3px;justify-self:center}
.hdr__mark svg{height:26px;width:auto}
.hdr__mark span{font-size:8.5px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;opacity:.85}
.hdr__act{display:flex;align-items:center;justify-content:flex-end;gap:var(--sp-5);font-size:var(--fs-bodySm)}
.hdr--solid .hdr__nav a,.hdr--solid .hdr__act{opacity:1}
/* The portal sits beside Book rather than in the nav: it is for people who
   are already clients, so it reads as an action, not a page to browse. It is
   the account icon alone, sized to the same 38px box as the Book button so
   the two share a centre line and an edge. */
.hdr__portal{display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;opacity:.92;transition:opacity var(--mo-fast)}
.hdr__portal:hover{opacity:1}
.hdr__portal-i{width:21px;height:21px;vertical-align:0}
/* The lockup is centred in its own track, so when the track is narrower than
   the lockup it overflows both sides and runs under its neighbours. On a
   320px screen the letterspaced subtitle was 15px under the portal icon.
   Narrow the gaps and tighten the subtitle on small phones, which is enough
   for the whole bar to fit without anything overlapping. */
@media (max-width:420px){
  .hdr__bar{gap:var(--sp-4)}
  .hdr__mark span{font-size:7px;letter-spacing:.12em}
  .hdr__portal{width:34px;height:34px}
}
/* Below that the three columns stop working at all. The action cluster is
   114px of icon, gap and button in a 1fr track worth 70, so it overflowed
   leftwards, pinned to the right margin as it should be, and landed on the
   lockup: nine pixels over it at 320px. A page-centred lockup simply does
   not fit beside it there, so the bar lays itself out by flex instead and
   the lockup sits between its neighbours rather than dead centre. Nothing
   can overlap, since flex items shrink rather than pass through each other.
   The switch is at 372px, not 340: measured, the centred grid does not come
   good again until about 350, so a 341px screen was left with a 1px gap. The
   common phone widths, 375 and up, keep the centred lockup. */
@media (max-width:372px){
  .hdr__bar{display:flex;align-items:center;justify-content:space-between}
  .hdr__mark{overflow:hidden}
}

/* ---------------- the phone menu ----------------
   A panel under the header, not a new visual language: the destinations are
   the site's own cells grid, and dogs and cats get photo cells because they
   are what most people arrive for. */
.hdr__burger--x span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.hdr__burger--x span:nth-child(2){opacity:0}
.hdr__burger--x span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.hdr__burger span{transition:transform var(--mo-fast),opacity var(--mo-fast)}
.mnav{position:fixed;inset:0 0 0 0;z-index:80;overflow-y:auto;
  /* top is set inline from the header's measured height, since it sheds the
     announcement bar once pinned */
  background:var(--bg-canvas);color:var(--text-primary)}
.mnav__in{padding-block:var(--sp-7) var(--sp-10)}
.mnav__s{margin-top:var(--sp-8)}
/* A photo cell: the image runs to the cell's edges with the label under it.
   .cell is declared later in this file, so these need its specificity to
   beat its padding rather than lose to source order. */
.cell.mnav__pet{gap:var(--sp-4);min-height:0;padding:0 0 var(--sp-6)}
.cell.mnav__pet .cell__t,.cell.mnav__pet .cell__m{padding-inline:var(--sp-5)}
.mnav__media{display:block;width:100%;aspect-ratio:4/3;margin-bottom:var(--sp-2)}
.cell.mnav__l{min-height:0;padding-block:var(--sp-5)}
.mnav__a{margin-top:var(--sp-9)}

/* ---------------- video hero ---------------- */
/* Present for search engines and screen readers, absent on screen. Not
   display:none, which takes it out of the accessibility tree as well. */
.u-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0}
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;
  background:var(--c-ink-900)}
.hero__media{position:absolute;inset:0;z-index:0}
/* a hero with a separate phone video shows exactly one of the two (HeroVideo) */
.hv-phone{display:none}
@media (max-width:900px){.hero__media .hv-desk{display:none}.hero__media .hv-phone{display:block}}
/* The footage is bright snow in places, so a gradient alone cannot guarantee
   legible white type on every frame. Knocking the video back a little fixes it
   for the whole clip rather than for one lucky poster frame. */
.hero__media video,.hero__media img{width:100%;height:100%;object-fit:cover;
  filter:brightness(calc(1 - .26 * var(--hero-dim,1))) saturate(.94)}
/* Two gradients, not one: the vertical pass alone left the lede sitting on the
   brightest part of the footage. The horizontal pass darkens only the text
   column so the video stays visible on the right. */
.hero__scrim{position:absolute;inset:0;z-index:1;
  /* --hero-dim is the editor's "Dark overlay" setting: 1 is the full look,
     0 shows the footage untouched. It scales both the scrim and the
     dimming filter on the video above. */
  opacity:var(--hero-dim,1);
  background:
    /* The logo is a single cream lockup now, so the top strip needs to stay
       dark whatever frame is showing, or the wordmark disappears. */
    linear-gradient(180deg,rgba(26,21,18,.70) 0%,rgba(26,21,18,.38) 14%,rgba(26,21,18,.14) 30%,rgba(26,21,18,.70) 74%,rgba(26,21,18,.88) 100%),
    linear-gradient(90deg,rgba(26,21,18,.60) 0%,rgba(26,21,18,.22) 52%,rgba(26,21,18,0) 88%)}
/* The column is bottom-aligned, so the top padding only comes into play on
   a short window or a wordy hero, which is exactly when it matters: at 80px
   the exotic page's overline slid up under the nav. Clear the header itself,
   plus a gap. */
.hero__in{position:relative;z-index:2;width:100%;
  padding-block:calc(var(--hdr-h) + var(--sp-6)) var(--sp-11);color:var(--c-bone-100)}
.hero__cta{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin-top:var(--sp-8)}
.hero__meta{display:flex;flex-wrap:wrap;gap:var(--sp-8);margin-top:var(--sp-10);padding-top:var(--sp-7);
  border-top:1px solid rgba(251,243,240,.24)}
.hero__meta b{font-family:var(--ff-display);font-weight:900;font-size:26px;display:block;letter-spacing:-.02em}
.hero__meta span{font-size:var(--fs-caption);opacity:.8}

@media (max-width:640px){
  /* The hero's two buttons are gone on a phone. The header is fixed there and
     already carries Book, and the strip above it carries the clinic number,
     so these were the same two taps a second time, in the largest type on the
     page, stacked full width because there is no room to sit them side by
     side. */
  .hero__cta{display:none}
  /* The figures are gone too: the hero is the film and nothing else. */
  .hero__meta{display:none}
  /* Which leaves the scrim one job, keeping the cream lockup readable over
     whatever frame is showing. The weighting at the bottom and the wash down
     the left were there for the heading and the figures, and with those gone
     they only dimmed the footage. */
  .hero__scrim{background:linear-gradient(180deg,
    rgba(26,21,18,.72) 0%,rgba(26,21,18,.34) 16%,
    rgba(26,21,18,.08) 34%,rgba(26,21,18,0) 56%)}
}
@media (max-width:900px){
  .hero{min-height:92svh}
  .hero__scrim{background:
    linear-gradient(180deg,rgba(26,21,18,.68) 0%,rgba(26,21,18,.42) 18%,rgba(26,21,18,.44) 30%,rgba(26,21,18,.68) 58%,rgba(26,21,18,.90) 100%)}
  /* the header is the same height on a phone, so the clearance is too */
  .hero__in{padding-block:calc(var(--hdr-h) + var(--sp-5)) var(--sp-9)}
  .hero__meta{gap:var(--sp-6);margin-top:var(--sp-8)}
  .hero__meta b{font-size:20px}
}

/* ---------------- section heading ---------------- */
.sh{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--sp-9);
  align-items:end;margin-bottom:var(--sp-9)}
.sh__k{display:block;margin-bottom:var(--sp-4);color:var(--text-accent)}
/* A lone action beside a section heading sizes to its label: a grid item
   stretches by default, which drew a button the width of the column. */
.sh > .b{justify-self:start}

/* ---------------- homepage teal accents ----------------
   The brand teal, read off the brand book's own stories mockup. Scoped to
   .home so it cannot reach another page, and kept to the small marks: the
   section eyebrows and the section icons. Body copy, prices and calls to
   action are untouched.

   On a dark band the teal is too close in value to the background to read,
   so those keep the tan they already had. */
.home .sh__k,
.home .t-over.c-acc{color:var(--c-teal-600)}
.home .bi.c-acc{color:var(--c-teal-600)}
.home .sec--dark .sh__k,
.home .sec--dark .t-over.c-acc,
.home .sec--dark .bi.c-acc,
.home .card--dark .c-acc,
.home .bleed .t-over{color:var(--c-tan-500)}
.sh--center{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
.sh--center .sh__t{max-width:22ch;margin-inline:auto}
@media (max-width:900px){.sh{grid-template-columns:1fr;gap:var(--sp-5);align-items:start;margin-bottom:var(--sp-7)}}

/* ---------------- cards: hairline, flat ---------------- */
.card{background:var(--bg-surface);border:1px solid var(--border-hair);border-radius:var(--r-md);overflow:hidden}
.card--pad{padding:var(--sp-8)}
.card--flat{background:transparent;border:0}
.card--dark{background:var(--c-ink-900);color:var(--c-bone-100);border-color:transparent}
/* secondary/muted text tokens are dark by definition, so they vanish here */
.card--dark .c-2,.card--dark .c-mut{color:rgba(251,243,240,.72)}
.card--dark .c-acc{color:var(--c-tan-500)}
.card--tan{background:var(--c-bone-100);border-color:var(--border-hair)}
.card--hover{transition:border-color var(--mo-fast),transform var(--mo-base)}
.card--hover:hover{border-color:var(--border-strong);transform:translateY(-2px)}
.card__media{position:relative;aspect-ratio:4/3;background:var(--c-greige-200);overflow:hidden}
.card__media img,.card__media video{width:100%;height:100%;object-fit:cover;transition:transform var(--mo-slow)}
.card--hover:hover .card__media img{transform:scale(1.03)}
/* Staff portraits show in their natural colour, at the clinic's request
   (2026-11-18): no duotone, no overlay. */
.card__b{padding:var(--sp-7);display:flex;flex-direction:column;gap:var(--sp-4)}
/* A flex column stretches its children, so a ghost link drew its underline
   across the whole cell and centred the label in the middle of it. It should
   hug its text wherever it sits in a column: cells with a body, the pillars
   on the homepage, and the related services at the foot of a service page. */
.card__b>.b--ghost,.col>.b--ghost{align-self:flex-start}

/* ---------------- dogs and cats ----------------
   Two cells meant to be taken in together. They used portrait 3/4 media,
   which at half of a 1440px page made each image over 900px tall and put the
   bottom of the pair below the fold: you had to scroll a section that is one
   choice between two things. The media is landscape now and capped in pixels,
   so the cards keep their height whatever the window does.

   Under 900px it is a rail rather than a stack, following the same
   conventions as the stories rail: snap on the x axis, no visible scrollbar,
   and the next card's edge showing so it is obvious it moves. */
.dc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-8)}
/* A capped height, not a capped ratio: aspect-ratio with max-height makes the
   box give up width to keep its shape, which left the photo 524px wide inside
   a 640px card with white down one side. Fixing the height instead lets the
   image fill the card and object-fit do the cropping. */
.dc .card__media{aspect-ratio:auto;height:clamp(240px,25vw,360px)}
@media (max-width:900px){
  .dc .card__media{aspect-ratio:4/3;height:auto}
}

/* ---------------- the floating button ----------------
   One square button, bottom right, cycling through WhatsApp, the telephone
   and booking. Square because nothing here has a radius, and the practice's
   own brown because the palette has no green in it, whatever WhatsApp's own
   mark is. Under the phone menu in the stack, so opening the menu covers it.

   The label is drawn on hover and focus only: the three icons are clear
   enough on their own, and a permanent label beside a floating button is a
   banner. */
/* The bottom offset clears the home indicator on a phone, so the button does
   not sit under it. */
.fab{position:fixed;right:var(--grid-mobile-margin);
  bottom:calc(var(--grid-mobile-margin) + env(safe-area-inset-bottom, 0px));
  z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:var(--sp-3)}
.fab__b{display:flex;align-items:center;gap:0;height:56px;padding:0;
  background:var(--action-primary);color:var(--text-onAccent);
  /* The drop shadow plus a cream hairline. The brown block was all but
     invisible against the dark closing band and the footer, which is exactly
     where the bottom of a long page is: a shadow needs something lighter
     behind it to read. On bone the hairline cannot be seen and does no harm.
     Drawn as a shadow rather than a border so the button stays 56px. */
  box-shadow:0 6px 24px rgba(26,21,18,.28),0 0 0 1px rgba(251,243,240,.55);
  transition:background var(--mo-fast)}
.fab__b:hover{background:var(--action-primaryHover)}
.fab__b svg{width:24px;height:24px;flex:none;margin-inline:16px}
/* collapsed to nothing until wanted, so the button stays a square */
.fab__l{max-width:0;overflow:hidden;white-space:nowrap;font-size:var(--fs-bodySm);
  font-weight:700;transition:max-width var(--mo-base),padding var(--mo-base)}
.fab__b:hover .fab__l,.fab__b:focus-visible .fab__l{max-width:14rem;padding-inline-end:18px}
/* Three marks under the button: which one is showing, and a way to reach the
   other two without waiting for the rotation to come round.

   On their own plate, in the button's brown. The button floats over whatever
   the page happens to be, and bare dark dots disappeared against the hero
   video: anything legible on bone is invisible on a dark frame. Carrying
   their own background makes them legible everywhere, and reads as part of
   the control rather than three specks near it. */
.fab__dots{display:flex;justify-content:center;gap:5px;align-self:flex-end;
  width:56px;padding-block:7px;
  background:var(--action-primary);
  box-shadow:0 6px 24px rgba(26,21,18,.28),0 0 0 1px rgba(251,243,240,.55)}
.fab__d{width:12px;height:3px;background:rgba(251,243,240,.38);
  transition:background var(--mo-fast)}
.fab__d--on{background:var(--c-bone-100)}
.fab__d:hover{background:var(--c-bone-100)}
@media (min-width:901px){
  .fab{right:var(--sp-8);bottom:var(--sp-8)}
}
@media (prefers-reduced-motion:reduce){
  .fab__l{transition:none}
}

/* The strip's lines cross-fade as they change. Keyed in the markup, so the
   animation restarts rather than running once. */
.hdr__nt{animation:ntIn var(--mo-base) ease-out}
@keyframes ntIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .hdr__nt{animation:none}
}

/* ---------------- the coverflow rail ----------------
   The middle card is the subject; the rest are turned away from you. The
   padding either side is half the rail minus half a card, which is what lets
   the first and the last card reach the middle rather than stopping against
   the edge. Snapping is on the centre of each card for the same reason.

   The perspective sits on the rail, so all the cards share one vanishing
   point and the row reads as one object seen from the front. --cf-d carries
   how many cards from the middle each one is, so the second card out is
   smaller and dimmer than the first without a class per position. */
/* Narrow enough on a phone that the cards either side show as more than a
   sliver: at 290 they were 17px of edge, which reads as a mistake rather than
   as "there is more this way". */
.cf{--cf-w:252px;
  display:flex;gap:var(--sp-6);overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;perspective:1400px;
  padding-block:var(--sp-8) var(--sp-9);
  padding-inline:calc(50% - var(--cf-w) / 2)}
.cf::-webkit-scrollbar{display:none}
.cf__c{position:relative;flex:0 0 var(--cf-w);aspect-ratio:3/4;overflow:hidden;
  scroll-snap-align:center;background:var(--c-greige-200);
  transform-origin:center center;
  transform:translateZ(calc(var(--cf-d,0) * -90px)) rotateY(var(--cf-r,0deg))
            scale(calc(1 - var(--cf-d,0) * .08));
  opacity:calc(1 - var(--cf-d,0) * .2);
  box-shadow:0 12px 34px rgba(26,21,18,.20);
  transition:transform var(--mo-slow) cubic-bezier(.22,.61,.36,1),
             opacity var(--mo-slow),box-shadow var(--mo-slow)}
/* Turned toward the middle: the inner edge of each card comes forward and the
   outer edge recedes. The signs are the opposite of what reads naturally from
   the property name, so this is the way round that actually looks right on
   screen: a positive rotateY brings the left edge forward, which is what the
   cards on the RIGHT of the middle want. */
.cf__c--l{--cf-r:-26deg}
.cf__c--r{--cf-r:26deg}
.cf__c--on{z-index:2;box-shadow:0 30px 70px rgba(26,21,18,.38)}
.cf__c video{width:100%;height:100%;object-fit:cover}
.cf__scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(26,21,18,0) 38%,rgba(26,21,18,.78) 100%);
  transition:opacity var(--mo-base)}
.cf__cap{position:absolute;left:0;right:0;bottom:0;padding:var(--sp-6);
  color:var(--c-bone-50);transition:opacity var(--mo-base)}
.cf__name{display:block;font-family:var(--ff-display);font-weight:900;
  font-size:var(--fs-h4);letter-spacing:-.02em}
.cf__meta{display:block;margin-top:3px;font-size:var(--fs-caption);opacity:.88}
/* While it plays, the words and the wash come off the picture. */
.cf__c--play .cf__scrim,.cf__c--play .cf__cap{opacity:0;visibility:hidden}
.cf__play{position:absolute;inset:0;display:grid;place-items:center}
.cf__play span{display:grid;place-items:center;width:54px;height:54px;
  background:var(--action-accent);color:var(--text-onAccent);
  transition:background var(--mo-fast),width var(--mo-base),height var(--mo-base)}
.cf__play svg{width:18px;height:18px;margin-inline-start:2px}
.cf__play:hover span{background:var(--action-accentHover)}
/* Off-centre cards do not advertise a play button: pressing one brings it in. */
.cf__c:not(.cf__c--on) .cf__play span{opacity:0}
.cf__c--play .cf__play{place-items:end start;padding:var(--sp-5)}
.cf__c--play .cf__play span{width:44px;height:44px;
  background:rgba(251,243,240,.14);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px)}
.cf__c--play .cf__play:hover span{background:rgba(251,243,240,.22)}
.cf__c--play .cf__play svg{margin-inline-start:0}
.cf__nav{display:flex;justify-content:flex-end;gap:var(--sp-3);margin-top:var(--sp-5)}
.cf__nav button{display:grid;place-items:center;width:46px;height:46px;
  border:1px solid var(--border-strong);color:var(--text-primary);
  transition:background var(--mo-fast),border-color var(--mo-fast),color var(--mo-fast)}
.cf__nav button:hover:not(:disabled){background:var(--action-primary);
  border-color:var(--action-primary);color:var(--text-onAccent)}
.cf__nav button:disabled{opacity:.3}
.cf__nav svg{width:18px;height:18px}
@media (min-width:901px){
  .cf{--cf-w:330px;gap:var(--sp-7)}
}
/* The turn and the scaling are the effect, so there is nothing to keep when
   motion is unwelcome: a plain rail of equal cards, which still snaps. */
@media (prefers-reduced-motion:reduce){
  .cf{perspective:none}
  .cf__c{transform:none;opacity:1;transition:none}
  .cf__c:not(.cf__c--on) .cf__play span{opacity:1}
}

/* ---------------- meet the team ----------------
   A heading, then one wide picture with the button standing on it. No column
   of text, so nothing here is a grid: the heading sets its own measure and
   the picture takes the full width of the page.

   The second line of the heading is the accent colour and carries what the
   paragraph used to say. The mark before it is an element rather than an em
   dash, which this project does not use, and which would also drift when the
   line wraps. */
/* Measured in rem, not ch: ch resolves against this element's own font, which
   is the body size here, so 30ch came out 240px wide and stood the heading up
   in a narrow three-line column. */
.tm__h{max-width:54rem;margin-bottom:var(--sp-9)}
.tm__t2{display:block;color:var(--text-accent);margin-top:var(--sp-3)}
.tm__rule{display:inline-block;width:1.4em;height:.09em;margin-inline-end:.45em;
  vertical-align:.22em;background:currentColor}
.tm__media{position:relative;overflow:hidden;aspect-ratio:2/1;
  background:var(--c-greige-200)}
.tm__media img{width:100%;height:100%;object-fit:cover;object-position:50% 28%}
/* The button sits on the photograph, so it needs the picture to be dark where
   it lands rather than wherever the frame happens to be dark. */
.tm__media::after{content:'';position:absolute;left:0;right:0;bottom:0;height:45%;
  background:linear-gradient(180deg,rgba(26,21,18,0) 0%,rgba(26,21,18,.62) 100%)}
.tm__cta{position:absolute;left:var(--sp-7);bottom:var(--sp-7);z-index:2}
@media (max-width:900px){
  .tm__h{max-width:none;margin-bottom:var(--sp-7)}
  /* Portrait on a phone: a 2:1 band is 180px tall there, which is a strip
     rather than a photograph. */
  .tm__media{aspect-ratio:4/5}
  .tm__media img{object-position:50% 22%}
  .tm__cta{left:var(--sp-6);bottom:var(--sp-6)}
}

/* Centred heading and the button under the photograph (October 2026 brief).
   Under it, the photo needs no dark fade for the button to read on. */
.tm--center .tm__h{margin-inline:auto;text-align:center}
.tm--below .tm__media::after{display:none}
.tm__after{display:flex;justify-content:center;margin-top:var(--sp-8)}
/* A heading the brief wants on one line on a desktop. */
@media (min-width:901px){.sh__t--one{white-space:nowrap;max-width:none}}

/* ---------------- partner logos ----------------
   A plain grid of cells, four across, each holding one mark centred in it.
   The cells are the inset tint rather than the hairline box used elsewhere,
   because a logo needs quiet around it and a border competes with whatever
   outline the mark has of its own. */
.plg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-5)}
.plg__c{display:grid;place-items:center;min-height:150px;padding:var(--sp-6);
  background:var(--bg-inset);text-align:center}
/* The placeholder treatment: the name set in the display face, quietly, so
   the grid reads as logos at a glance. An <img> dropped in replaces it. */
.plg__c span{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4);
  letter-spacing:-.02em;color:var(--text-secondary)}
.plg__c img{max-width:100%;max-height:72px;width:auto;height:auto}
/* Real logos, one colour: the file is a mask and the cell's ink fills it. */
.plg--logos{grid-template-columns:repeat(5,minmax(0,1fr))}
.plg__logo{display:block;width:100%;max-width:170px;height:64px;background:var(--c-ink-600);
  mask:center / contain no-repeat;-webkit-mask:center / contain no-repeat}
@media (max-width:900px){
  .plg--logos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plg__logo{height:52px}
  .plg{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
  .plg__c{min-height:120px}
}

/* ---------------- a rail below 900px ----------------
   Cells that sit side by side on a desktop become a swipeable rail on a
   phone rather than a tall stack you have to scroll to discover the end of.
   Written beside the grid class it replaces, so above 900px it does nothing.
   Same conventions as the stories rail: snap on the x axis, no visible
   scrollbar, and a bleed to the right edge only, so the first cell still
   lines up with the page margin and the last can scroll clear of the screen
   while the next one's edge shows that it moves. */
@media (max-width:900px){
  .mrail{display:flex;gap:var(--sp-5);overflow-x:auto;scroll-snap-type:x mandatory;
    scroll-behavior:smooth;scrollbar-width:none;
    margin-inline:0 calc(var(--grid-mobile-margin) * -1);
    padding-inline:0 var(--grid-mobile-margin)}
  .mrail::-webkit-scrollbar{display:none}
  .mrail>*{flex:0 0 auto;scroll-snap-align:start;
    width:calc(100vw - var(--grid-mobile-margin) * 3);max-width:460px}
}

/* editorial list, numbered rows, no boxes */
.rows{border-top:1px solid var(--border-hair)}
.rows__i{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--sp-6);
  align-items:baseline;padding-block:var(--sp-7);border-bottom:1px solid var(--border-hair);
  transition:background var(--mo-fast)}
.rows__i:hover{background:var(--bg-subtle)}
.rows__n{font-family:var(--ff-text);font-weight:700;font-size:var(--fs-caption);color:var(--text-muted);
  font-variant-numeric:tabular-nums;min-width:2.2em}
/* both are spans inside one grid cell, so they need to stack explicitly */
.rows__t,.rows__d{display:block}
.rows__t{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);letter-spacing:-.02em}
.rows__d{color:var(--text-secondary);font-size:var(--fs-bodySm);margin-top:4px}
.rows__a{color:var(--text-muted)}
@media (max-width:640px){
  .rows__i{grid-template-columns:auto minmax(0,1fr);gap:var(--sp-4)}
  .rows__a{display:none}
}

/* full-bleed media band */
.bleed{position:relative;min-height:64svh;display:flex;align-items:center;overflow:hidden;color:var(--c-bone-100)}
.bleed__media{position:absolute;inset:0;z-index:0}
.bleed__media img,.bleed__media video{width:100%;height:100%;object-fit:cover;filter:brightness(.76) saturate(.94)}
/* The subject of the closing band's photograph sits left of centre and high
   in the frame, so a centred cover crop put the dog's paws in the middle of a
   phone screen and left the person out of it altogether. */
.bleed__media--cta img{object-position:42% 26%}
.bleed__scrim{position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(90deg,rgba(26,21,18,.82) 0%,rgba(26,21,18,.46) 54%,rgba(26,21,18,.20) 100%),
    linear-gradient(180deg,rgba(26,21,18,.30),rgba(26,21,18,.30))}
/* .pattern is declared later in this file with the same specificity, so its
   position:relative beat .bleed__media's absolute and collapsed the band to
   zero height. Restate the placement here. */
.bleed__media.bleed__media--brand{position:absolute;inset:0;background:var(--c-ink-900)}
/* Light full-bleed band. Four dark blocks on one page was most of the brown;
   this keeps the full-bleed rhythm without another dark mass. */
.bleed--light{color:var(--text-primary);min-height:auto}
.bleed--light .bleed__media--brand{background:var(--c-bone-100)}
.bleed--light .bleed__media--brand::before{opacity:.10}
.bleed--light .t-over{color:var(--text-accent)}
.bleed__media--brand::before{opacity:.14}
.bleed__in{position:relative;z-index:2;padding-block:var(--sp-12)}

.pattern{position:relative;overflow:hidden}
.pattern::before{content:'';position:absolute;inset:-10%;z-index:0;opacity:.06;
  /* 640px shows a full repeat of the paw-pad band inside a card column: at
     the tile's own 1156px the clusters read as a few big blobs, and at 420
     they turn busy. */
  /* The artwork is used exactly as supplied, so the size is what keeps the
     motif at a sensible scale: 700px puts the 1248px paw band at a little
     over half size, which reads as the brand pattern without dominating a
     card column. */
  background-image:var(--pattern-url);background-size:var(--pattern-size,700px) auto;
  background-repeat:repeat}
.pattern > *{position:relative;z-index:1}
/* A dropdown inside a patterned card has two problems: every direct child
   becomes a stacking context at z-index 1, so a menu could not paint over
   the footnote that follows it, and overflow:hidden clipped it at the card
   edge. Clipping the pattern to its own box means the card no longer has to
   hide overflow, and the picker outranks its siblings. */
.card.pattern{overflow:visible}
.card.pattern::before{inset:0}
.pattern > .gcard__pick{z-index:5}
/* 6% is right behind body copy but invisible on a small card plate */
.pattern--plate::before{inset:0;opacity:.20;background-size:var(--pattern-size,300px) auto}
/* matches the light full-bleed band, so a patterned section and the
   exotic band read as the same treatment */
.pattern--band::before{opacity:.10}
.plate--tan{background:var(--c-bone-100)}
.plate--clay{background:var(--c-bone-200)}

/* stat band */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border-hair)}
.stats__i{background:var(--bg-canvas);padding:var(--sp-8) var(--sp-7)}
.stats__i b{font-family:var(--ff-display);font-weight:900;font-size:38px;display:block;letter-spacing:-.03em;line-height:1}
.stats__i span{font-size:var(--fs-caption);color:var(--text-secondary);display:block;margin-top:var(--sp-4)}
@media (max-width:900px){.stats{grid-template-columns:1fr 1fr}.stats__i b{font-size:28px}}

/* quote */
.quote{max-width:26ch}
.quote__m{font-family:var(--ff-display);font-weight:900;font-size:40px;line-height:1;color:var(--c-tan-500)}
.quote blockquote{font-family:var(--ff-editorial);font-weight:300;font-size:var(--fs-h1);
  line-height:1.35;letter-spacing:-.02em;margin-top:var(--sp-5)}
.quote figcaption{margin-top:var(--sp-6);font-size:var(--fs-caption);color:var(--text-secondary)}

/* accordion */
.acc{border-top:1px solid var(--border-hair)}
.acc details{border-bottom:1px solid var(--border-hair)}
.acc summary{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);
  padding-block:var(--sp-7);cursor:pointer;list-style:none;
  font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);letter-spacing:-.02em}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:'+';font-family:var(--ff-text);font-weight:400;font-size:22px;color:var(--text-muted)}
.acc details[open] summary::after{content:'−'}
.acc__b{padding-bottom:var(--sp-7);color:var(--text-secondary);max-width:66ch}

/* form field */
.f{display:flex;flex-direction:column;gap:6px}
.f__l{font-size:var(--fs-caption);font-weight:700}
.in{display:flex;align-items:center;gap:var(--sp-4);height:48px;padding-inline:var(--sp-5);
  background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--r-sm);
  transition:border-color var(--mo-fast)}
.in:focus-within{border-color:var(--action-accent);
  outline:2px solid var(--action-accent);outline-offset:1px}
.in > input,.in > select,.in > textarea{width:100%;height:100%;padding:0;border:0;
  background:transparent;color:inherit;font-family:inherit;font-size:var(--fs-bodySm)}
.in > input:focus,.in > select:focus,.in > textarea:focus{outline:none}
.in svg{color:var(--text-muted)}
.sel{position:relative}
.sel::after{content:'';position:absolute;right:var(--sp-5);top:50%;width:7px;height:7px;
  border-right:1.5px solid var(--text-muted);border-bottom:1.5px solid var(--text-muted);
  transform:translateY(-70%) rotate(45deg);pointer-events:none}
.sel .in{padding-right:var(--sp-9)}
.sel select{appearance:none;cursor:pointer}

/* ---------------- in-site dropdown ---------------- */
.dd{position:relative}
.dd__btn{display:flex;align-items:center;gap:var(--sp-4);width:100%;height:48px;
  padding-inline:var(--sp-5);text-align:left;
  background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--r-sm);
  font-family:var(--ff-text);font-size:var(--fs-bodySm);color:var(--text-primary);
  transition:border-color var(--mo-fast)}
.dd__btn:hover{border-color:var(--border-strong)}
.dd--open .dd__btn{border-color:var(--action-accent)}
.dd__val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd__arrow{flex:none;width:7px;height:7px;margin-inline-start:var(--sp-3);
  border-right:1.5px solid var(--text-muted);border-bottom:1.5px solid var(--text-muted);
  transform:translateY(-2px) rotate(45deg);transition:transform var(--mo-fast)}
.dd--open .dd__arrow{transform:translateY(1px) rotate(225deg)}
.dd__menu{position:absolute;z-index:60;inset-inline:0;top:calc(100% + 4px);
  max-height:288px;overflow-y:auto;padding:6px;
  background:var(--bg-surface);border:1px solid var(--border-strong);border-radius:var(--r-sm)}
.dd__opt{display:flex;align-items:center;min-height:38px;padding:8px var(--sp-4);
  border-radius:var(--r-xs);font-size:var(--fs-bodySm);cursor:pointer;
  color:var(--text-secondary)}
.dd__opt[data-active='true']{background:var(--bg-subtle);color:var(--text-primary)}
.dd__opt[aria-selected='true']{color:var(--text-primary);font-weight:600}

/* searchable dropdown: the same shell, with a sticky search row on top */
.dd__tr{flex:none;margin-inline-start:var(--sp-4);font-weight:600;font-variant-numeric:tabular-nums;
  color:var(--text-primary)}
.dd__menu--search{padding:0;max-height:392px}
.dd__search{position:sticky;top:0;z-index:1;padding:6px;background:var(--bg-surface);
  border-bottom:1px solid var(--border-hair)}
.dd__q{width:100%;height:40px;padding-inline:var(--sp-4);
  background:var(--bg-subtle);border:1px solid var(--border-default);
  font-family:var(--ff-text);font-size:var(--fs-bodySm);color:var(--text-primary)}
.dd__q:focus{outline:none;border-color:var(--action-accent)}
.dd__q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.dd__list{padding:6px}
.dd__grp{display:block;padding:var(--sp-5) var(--sp-4) var(--sp-3);
  font-size:var(--fs-overline);font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-muted)}
.dd__li:first-child .dd__grp{padding-top:var(--sp-3)}
.dd__opt--rich{align-items:center;min-height:48px}
.dd__opt-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.dd__opt-l{color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd__opt-m{font-size:var(--fs-caption);color:var(--text-muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd__none{padding:var(--sp-6) var(--sp-4);font-size:var(--fs-bodySm);color:var(--text-muted)}

/* booking bar */
.bk{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) minmax(0,1fr) auto;
  align-items:end;gap:var(--sp-4)}
/* two fields and the button, since the species is fixed by the section it
   sits in and the pet dropdown went with it */
.bk--3{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto}
/* The button sat at the 56px large height beside 48px dropdowns, which read
   as a misalignment rather than emphasis. */
.bk__go{align-self:end;height:48px}
@media (max-width:900px){
  .bk{grid-template-columns:minmax(0,1fr)}
  .bk__go{width:100%;margin-top:var(--sp-3)}
}

/* footer */
.ft{background:var(--c-ink-900);color:var(--c-bone-100)}
.ft a{color:rgba(251,243,240,.76)}
.ft a:hover{color:var(--c-tan-400)}
.ft__g{display:grid;grid-template-columns:minmax(0,4fr) repeat(4,minmax(0,2fr));gap:var(--sp-9);
  padding-block:var(--sp-12)}
.ft__h{font-size:var(--fs-overline);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--c-tan-400);margin-bottom:var(--sp-5)}
.ft__l{display:flex;flex-direction:column;gap:var(--sp-4);font-size:var(--fs-bodySm)}
.ft__bar{border-top:1px solid rgba(251,243,240,.14);padding-block:var(--sp-6);
  display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);flex-wrap:wrap;
  font-size:var(--fs-caption);color:rgba(251,243,240,.6)}
/* The disc control belongs to the phone layout: on a wide footer the heading
   is just a heading, and the column is always open. */
.ft__ch{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-5);
  width:100%;text-align:left;cursor:default}
.ft__ch .ft__h{margin-bottom:0}
.ft__cs{display:none}
.ft__c .ft__h{margin-bottom:var(--sp-5)}

@media (max-width:900px){
  /* One column, brand centred at the top, and a link group per collapsible
     row. Five stacked columns of links made the footer taller than most of
     the pages above it. */
  .ft__g{grid-template-columns:minmax(0,1fr);gap:0;padding-block:var(--sp-9)}
  .ft__brand{display:flex;flex-direction:column;align-items:center;text-align:center;
    padding-bottom:var(--sp-8)}
  .ft__brand p{max-width:34ch}
  .ft__c{border-top:1px solid rgba(251,243,240,.14)}
  .ft__c:last-of-type{border-bottom:1px solid rgba(251,243,240,.14)}
  .ft__ch{padding-block:var(--sp-6);cursor:pointer}
  .ft__c .ft__h{margin-bottom:0}
  .ft__cs{display:grid;place-items:center;width:26px;height:26px;flex:none;
    border:1px solid rgba(251,243,240,.32);font-size:15px;line-height:1;
    color:var(--c-bone-100)}
  .ft__c--on .ft__cs{background:var(--c-bone-100);color:var(--c-ink-900);
    border-color:var(--c-bone-100)}
  .ft__c .ft__l{display:none}
  .ft__c--on .ft__l{display:flex;padding-bottom:var(--sp-7)}
  .ft__bar{justify-content:center;text-align:center}
}

/* rtl */
[dir='rtl'] body{font-family:var(--ff-arabic)}
[dir='rtl'] .t-hero,[dir='rtl'] .t-display,[dir='rtl'] .t-h1,[dir='rtl'] .t-h2{font-family:var(--ff-arabic);letter-spacing:0}
[dir='rtl'] .t-over{letter-spacing:0}
[dir='rtl'] .hdr__mark{direction:ltr}
[dir='rtl'] .sel::after{right:auto;left:var(--sp-5)}


/* ============================================================================
   Interior pages
   ========================================================================== */
.page{min-height:60svh}
.crumbs{border-bottom:1px solid var(--border-hair);font-size:var(--fs-caption);
  color:var(--text-secondary)}
.crumbs .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);padding-block:var(--sp-5)}
.crumbs a:hover{color:var(--text-primary)}
.crumbs i{color:var(--text-muted);font-style:normal;margin-inline:var(--sp-2)}
.crumbs [aria-current]{color:var(--text-primary);font-weight:600}

.ph{padding-block:var(--sp-11) var(--sp-9);border-bottom:1px solid var(--border-hair)}
.ph__k{display:block;margin-bottom:var(--sp-4);color:var(--text-accent)}
.ph__t{max-width:26ch}
.ph__l{max-width:56ch;margin-top:var(--sp-6);color:var(--text-secondary)}
.ph__a{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin-top:var(--sp-8)}
@media (max-width:900px){.ph{padding-block:var(--sp-9) var(--sp-8)}}

/* ---------------- step indicator ---------------- */
.steps{display:flex;flex-wrap:wrap;gap:var(--sp-5);align-items:center;
  padding-block:var(--sp-6);font-size:var(--fs-caption);color:var(--text-muted)}
.steps__i{display:flex;align-items:center;gap:var(--sp-3)}
.steps__n{display:grid;place-items:center;width:24px;height:24px;border-radius:var(--r-pill);
  border:1px solid var(--border-default);font-size:11px;font-weight:700;flex:none}
.steps__i--on{color:var(--text-primary);font-weight:600}
.steps__i--on .steps__n{background:var(--action-primary);border-color:var(--action-primary);color:var(--c-bone-100)}
.steps__i--done .steps__n{background:var(--c-tan-300);border-color:var(--c-tan-300);color:var(--c-ink-900)}
.steps__sep{color:var(--border-strong)}

/* ---------------- selectable option rows ---------------- */
.opt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--sp-5);align-items:center;
  width:100%;text-align:left;padding:var(--sp-6) var(--sp-7);
  background:var(--bg-surface);border:1px solid var(--border-hair);border-radius:var(--r-md);
  transition:border-color var(--mo-fast),background var(--mo-fast)}
.opt:hover{border-color:var(--border-strong)}
.opt--on{border-color:var(--c-ink-900)}
.opt__radio{width:18px;height:18px;border-radius:var(--r-pill);border:1.5px solid var(--border-strong);
  flex:none;position:relative}
.opt--on .opt__radio{border-color:var(--action-primary)}
.opt--on .opt__radio::after{content:'';position:absolute;inset:3px;border-radius:var(--r-pill);
  background:var(--action-primary)}
.opt__body{min-width:0}
.opt__title{display:block;font-weight:600;font-size:var(--fs-body)}
.opt__meta{display:block;margin-top:3px;font-size:var(--fs-caption);color:var(--text-secondary)}
.opt__icon{color:var(--text-accent)}
.opt__price{font-family:var(--ff-text);font-weight:700;font-size:var(--fs-label);white-space:nowrap}
.opts{display:flex;flex-direction:column;gap:var(--sp-4)}

/* ---------------- fieldset ---------------- */
.fieldset{border:0;padding:0;margin:0}
.fieldset + .fieldset{margin-top:var(--sp-10)}
.fieldset__h{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);
  letter-spacing:-.02em;margin-bottom:var(--sp-6)}
.field{display:flex;flex-direction:column;gap:6px}
.field__label{font-size:var(--fs-caption);font-weight:700}
/* Direct children only. A .field can hold an .in wrapper (the +971 affix),
   and styling any descendant input drew a bordered box inside that wrapper. */
.field > input,.field > textarea{width:100%;height:48px;padding-inline:var(--sp-5);
  background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--r-sm);
  font-family:var(--ff-text);font-size:var(--fs-bodySm);color:var(--text-primary)}
.field > textarea{height:auto;min-height:104px;padding-block:var(--sp-4);resize:vertical}
.field > input:focus-visible,.field > textarea:focus-visible{outline:2px solid var(--action-accent);
  outline-offset:1px;border-color:var(--action-accent)}
.field__hint{font-size:var(--fs-caption);color:var(--text-muted)}
.field__err{font-size:var(--fs-caption);color:var(--c-semantic-danger);font-weight:600}

/* ---------------- alert ---------------- */
.alert{display:flex;gap:var(--sp-5);padding:var(--sp-6) var(--sp-7);border-radius:var(--r-md);
  border:1px solid var(--border-hair);background:var(--bg-subtle)}
.alert__icon{flex:none;color:var(--text-accent)}
.alert__body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-3);min-width:0}
.alert__title{font-weight:700;font-size:var(--fs-bodySm)}
.alert__body p{font-size:var(--fs-caption);color:var(--text-secondary)}
.alert--warning{background:var(--c-semantic-warningTint);border-color:transparent;color:var(--c-ink-900)}
.alert--danger{background:var(--c-semantic-dangerTint);border-color:transparent;color:var(--c-semantic-danger)}
.alert--success{background:var(--c-semantic-successTint);border-color:transparent;color:var(--c-ink-900)}
.alert--info{background:var(--c-semantic-infoTint);border-color:transparent;color:var(--c-ink-900)}

/* ---------------- v1 markup aliases ----------------
   The booking flow is a thousand lines of working markup written against the
   old class names. Skinning those names here moves it onto the new design
   without a risky rewrite of every page. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-4);
  height:48px;padding-inline:var(--sp-7);border-radius:var(--r-sm);
  font-family:var(--ff-text);font-weight:700;font-size:var(--fs-label);white-space:nowrap;
  border:1px solid transparent;transition:background var(--mo-fast),border-color var(--mo-fast)}
.btn svg{width:17px;height:17px;flex:none}
.btn--primary{background:var(--action-primary);color:var(--text-onAccent)}
.btn--primary:hover{background:var(--action-primaryHover)}
.btn--secondary,.btn--outline{border-color:var(--border-strong);color:var(--text-primary)}
.btn--secondary:hover,.btn--outline:hover{background:var(--bg-subtle);border-color:var(--text-primary)}
.btn--ghost{padding-inline:0;height:auto;color:var(--text-accent);border:0;
  border-bottom:1px solid currentColor;border-radius:0;padding-bottom:3px}
.btn--block{width:100%}
.btn--icon{padding-inline:0;width:48px}
.btn[disabled]{opacity:.4;pointer-events:none}
.section{padding-block:var(--sp-11)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6)}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-6)}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-6)}
@media (max-width:900px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}
  .opt{grid-template-columns:auto minmax(0,1fr);row-gap:var(--sp-3)}
  .opt__price{grid-column:2}
}

/* ---------------- price table ---------------- */
.pt{width:100%;border-collapse:collapse;font-size:var(--fs-bodySm)}
.pt caption{caption-side:top;text-align:left;padding-bottom:var(--sp-6);max-width:70ch}
.pt th,.pt td{text-align:left;padding:var(--sp-5) var(--sp-4);
  border-bottom:1px solid var(--border-hair);vertical-align:top}
.pt thead th{font-size:var(--fs-overline);font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text-muted);border-bottom-color:var(--border-strong);
  white-space:nowrap}
.pt tbody th{font-weight:600;padding-inline-start:0}
.pt__name{display:block}
.pt__meta{display:block;margin-top:3px;font-size:var(--fs-caption);color:var(--text-muted);
  font-weight:400}
.pt__num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.pt tbody tr:hover{background:var(--bg-subtle)}

/* On a phone a price table cannot keep its columns, so each row becomes a
   block and every cell carries its branch name as a label. */
@media (max-width:760px){
  .pt,.pt tbody,.pt tbody tr,.pt tbody th,.pt tbody td{display:block}
  .pt thead{display:none}
  .pt tbody tr{padding-block:var(--sp-5);border-bottom:1px solid var(--border-hair)}
  .pt tbody th,.pt tbody td{border:0;padding:0}
  .pt tbody td{display:flex;justify-content:space-between;gap:var(--sp-5);
    margin-top:var(--sp-3);font-variant-numeric:tabular-nums}
  .pt tbody td:empty{display:none}
  .pt tbody td::before{content:attr(data-label);color:var(--text-muted);font-weight:400}
  .pt__num{text-align:right}
}

.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:var(--sp-5);margin-top:var(--sp-9);padding-top:var(--sp-7);
  border-top:1px solid var(--border-hair)}
.pager__l{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}


/* ============================================================================
   Booking flow
   ----------------------------------------------------------------------------
   The flow was skinned from the old markup at first, which kept boxed radio
   cards and a panelled summary. Both belong to the previous design. These are
   the editorial equivalents: hairline rails and numbered rows.
   ========================================================================== */
.bk2{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);
  gap:var(--sp-11);align-items:start}
/* The grid aligns boxes, but the eye aligns the heading's cap, which sits
   0.16em below its box top. Drop the rail by the same amount so its rule
   lands on the cap line instead of floating above the heading. */
.bk2 > aside{margin-top:calc(var(--fs-display) * 0.16)}
@media (max-width:900px){.bk2 > aside{margin-top:0}}
@media (max-width:900px){.bk2{grid-template-columns:minmax(0,1fr);gap:var(--sp-9)}}

/* step rail: segments, no numbers. Each step is a labelled segment whose top
   rule shows where you are: brown for the current step, tan for the ones done,
   hairline for the ones ahead. */
.bsteps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--sp-4);
  padding-block:var(--sp-6) var(--sp-5)}
.bsteps__i{border-top:2px solid var(--border-hair);padding-top:var(--sp-4);
  font-size:var(--fs-caption);color:var(--text-muted)}
.bsteps__i--done{border-top-color:var(--c-tan-500);color:var(--text-secondary)}
.bsteps__i--on{border-top-color:var(--action-accent);color:var(--text-primary);font-weight:700}
.bsteps__bar{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-5);
  /* symmetric: with no top padding the step line sat 2px under the
     breadcrumb rule while carrying 16px beneath it */
  padding-block:var(--sp-5);border-bottom:1px solid var(--border-hair)}
.bsteps__where{font-size:var(--fs-caption);color:var(--text-muted)}
@media (max-width:900px){.bsteps{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3)}}

/* booking choices as cells, the same grid language as the rest of the site */
.cells{display:grid;grid-template-columns:repeat(var(--cells-cols,3),minmax(0,1fr));
  border-top:1px solid var(--border-hair);border-left:1px solid var(--border-hair)}
.cell{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-7);
  min-height:132px;text-align:left;
  border-right:1px solid var(--border-hair);border-bottom:1px solid var(--border-hair);
  transition:background var(--mo-fast)}
.cell:hover{background:var(--bg-subtle)}
.cell--on{background:var(--c-tan-300)}
.cell__t{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4);
  letter-spacing:-.02em;line-height:1.2}
.cell__m{font-size:var(--fs-caption);color:var(--text-secondary)}
.cell--on .cell__m{color:var(--c-ink-900)}
.cell__a{margin-top:auto;padding-top:var(--sp-4);font-size:var(--fs-label);font-weight:700;
  white-space:nowrap}
.cell__av{width:46px;height:46px;object-fit:cover;background:var(--c-greige-200)}
@media (max-width:1100px){.cells{--cells-cols:2}}
@media (max-width:640px){.cells{--cells-cols:1}.cell{min-height:0}}

/* ---------------- cap alignment ----------------
   The display face's ascent overshoots its line box by about 0.16em, so a
   .t-display heading's glyphs start ~7px above the box a grid aligns to. Put
   a rule or a panel beside such a heading and the rule floats above the text
   it is meant to line up with.

   Derived from the type token rather than hardcoded, so it tracks the display
   size instead of being right at one breakpoint only. Reach for this on
   anything that must sit level with a display heading's cap. */
.cap-top{margin-top:calc(var(--fs-display) * -0.16)}
@media (max-width:900px){.cap-top{margin-top:0}}

/* summary: a rail under a rule, not a panel */
.srail{position:sticky;top:var(--sp-8);border-top:2px solid var(--text-primary);
  padding-top:var(--sp-6)}
.srail__h{font-size:var(--fs-overline);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--text-muted)}
.srail__r{display:flex;justify-content:space-between;gap:var(--sp-5);
  padding-block:var(--sp-5);border-bottom:1px solid var(--border-hair);
  font-size:var(--fs-bodySm)}
.srail__r dt{color:var(--text-secondary)}
.srail__r dd{text-align:right;font-weight:600;min-width:0}
.srail__tot{display:flex;justify-content:space-between;align-items:baseline;
  gap:var(--sp-5);padding-block:var(--sp-6)}
.srail__note{font-size:var(--fs-caption);color:var(--text-muted);margin-top:var(--sp-4)}
@media (max-width:900px){.srail{position:static}}

/* time picker */
.cal2{border-top:1px solid var(--border-hair);padding-top:var(--sp-6)}
.cal2__head{display:flex;align-items:center;justify-content:space-between;
  gap:var(--sp-4);margin-bottom:var(--sp-6)}
.cal2__m{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);
  letter-spacing:-.02em}
.cal2__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.cal2__dow{text-align:center;padding-block:var(--sp-3);font-size:var(--fs-overline);
  font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.cal2__d{display:grid;place-items:center;aspect-ratio:1;border-radius:var(--r-sm);
  font-size:var(--fs-bodySm);font-weight:600;border:1px solid transparent;
  transition:background var(--mo-fast),color var(--mo-fast)}
.cal2__d:hover{background:var(--bg-subtle)}
.cal2__d[aria-selected='true']{background:var(--action-primary);color:var(--c-bone-50)}
.cal2__d--off{color:var(--text-muted);opacity:.45;pointer-events:none}

/* ---------------- empty state ----------------
   Was only in the compat sheet, but /services/[category] and the time step
   load v2 alone, so their empty states rendered unstyled. */
.empty{display:flex;flex-direction:column;align-items:center;gap:var(--sp-5);
  text-align:center;padding:var(--sp-11) var(--sp-7);
  border:1px dashed var(--border-default);border-radius:var(--r-md);
  color:var(--text-secondary)}
.empty__art{color:var(--c-tan-500)}

/* ---------------- checkbox ---------------- */
.chk{display:flex;align-items:flex-start;gap:var(--sp-4);text-align:left;cursor:pointer;
  font-size:var(--fs-bodySm);color:var(--text-secondary)}
.chk input{position:absolute;opacity:0;width:0;height:0}
.chk__b{width:18px;height:18px;flex:none;margin-top:2px;border-radius:var(--r-xs);
  border:1.5px solid var(--border-strong);position:relative;
  transition:background var(--mo-fast),border-color var(--mo-fast)}
.chk input:checked + .chk__b{background:var(--action-primary);border-color:var(--action-primary)}
.chk input:checked + .chk__b::after{content:'';position:absolute;left:5px;top:1px;
  width:5px;height:10px;border-right:2px solid var(--c-bone-50);
  border-bottom:2px solid var(--c-bone-50);transform:rotate(40deg)}
.chk input:focus-visible + .chk__b{outline:2px solid var(--action-accent);outline-offset:2px}
.chk input:checked ~ span{color:var(--text-primary)}
.in__affix{color:var(--text-muted);font-size:var(--fs-bodySm);flex:none}

/* ---------------- what we treat, checklist grid ----------------
   A plain-language grid of the things owners actually come in for. Bordered
   cells, one concern each, no prices and no clinical names. */
.cg{display:grid;grid-template-columns:repeat(var(--cg-cols,3),minmax(0,1fr));
  /* every edge is the same hairline: a stronger top rule read as a
     different border from the ones dividing the cells */
  border-top:1px solid var(--border-hair);border-left:1px solid var(--border-hair)}
.cg__i{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-5);
  padding:var(--sp-9) var(--sp-7);
  border-right:1px solid var(--border-hair);border-bottom:1px solid var(--border-hair)}
.cg__t{font-weight:700;font-size:var(--fs-body);letter-spacing:-.01em}
.cg__c{display:grid;place-items:center;width:24px;height:24px;flex:none;
  border-radius:var(--r-pill);background:var(--action-accent);color:var(--c-bone-50)}
.cg__c svg{width:13px;height:13px}
@media (max-width:1100px){.cg{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .cg{grid-template-columns:minmax(0,1fr)}
  .cg__i{padding:var(--sp-7) var(--sp-5)}
}

/* ============================================================================
   Expandable grid
   ----------------------------------------------------------------------------
   Bordered cells; clicking one opens it in place and tints it. The accent is
   our own accent, not the reference's periwinkle, since the brief rules out blue.
   ========================================================================== */
.xg{display:grid;grid-template-columns:repeat(var(--xg-cols,3),minmax(0,1fr));
  border-top:1px solid var(--border-hair);border-left:1px solid var(--border-hair)}
.xg__c{border-right:1px solid var(--border-hair);border-bottom:1px solid var(--border-hair);
  background:transparent;transition:background var(--mo-base)}
.xg__c--on{background:var(--c-tan-300)}
.xg__h{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-5);
  width:100%;text-align:left;padding:var(--sp-8) var(--sp-7);min-height:96px}
.xg__t{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4);letter-spacing:-.02em}
.xg__s{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:var(--r-pill);
  border:1px solid var(--border-strong);font-size:15px;line-height:1;color:var(--text-primary);
  transition:background var(--mo-fast),border-color var(--mo-fast),color var(--mo-fast)}
.xg__c--on .xg__s{background:var(--action-primary);border-color:var(--action-primary);color:var(--c-bone-50)}
.xg__b{padding:0 var(--sp-7) var(--sp-8)}
.xg__b p{font-size:var(--fs-bodySm);line-height:1.6;color:var(--c-brown-800)}
.xg__c--on .xg__b p{color:var(--c-ink-900)}
@media (max-width:1100px){.xg{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .xg{grid-template-columns:minmax(0,1fr)}
  .xg__h{padding:var(--sp-6) var(--sp-5);min-height:0}
  .xg__b{padding:0 var(--sp-5) var(--sp-6)}
}

/* ---------------- vaccination schedule ----------------
   A row per shot: whose it is, what it covers, when it was last given and
   when it falls due. Bordered rows in the same language as the cells, with
   the state carried by the tag rather than by colouring the whole row. */
.vax{border-top:1px solid var(--border-hair)}
.vax__r{display:grid;align-items:center;gap:var(--sp-5);
  grid-template-columns:minmax(0,7rem) minmax(0,1fr) minmax(0,14rem) auto auto;
  padding-block:var(--sp-6);border-bottom:1px solid var(--border-hair)}
.vax__p{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4);
  letter-spacing:-.02em}
.vax__t{display:flex;flex-direction:column;gap:2px;min-width:0}
.vax__t strong{font-size:var(--fs-body)}
.vax__r--overdue{background:var(--bg-subtle)}
@media (max-width:900px){
  .vax__r{grid-template-columns:minmax(0,1fr) auto;row-gap:var(--sp-3)}
  .vax__p{grid-column:1/-1}
  .vax__l{grid-column:1/-1}
  .vax__a{grid-column:2}
}

/* the outlined dark button's border was 42% opacity, so against a bright video
   frame its edges vanished and it read shorter than the solid one beside it */
.b--lineDark{border-color:rgba(251,243,240,.72)}

/* ============================================================================
   Price list
   ========================================================================== */
.plh{text-align:center;padding-block:var(--sp-12) var(--sp-11);
  border-bottom:1px solid var(--border-strong)}
.plh__k{display:block;margin-bottom:var(--sp-5);color:var(--text-primary)}
.plh__t{color:var(--text-accent);max-width:22ch;margin-inline:auto}
.plh__l{max-width:48ch;margin:var(--sp-6) auto 0;color:var(--text-secondary)}
.plh__u{display:block;margin-top:var(--sp-7);font-size:var(--fs-bodySm);font-weight:700}

.plf{display:flex;flex-wrap:wrap;gap:var(--sp-3);padding-block:var(--sp-7)}

/* One set of tracks for the row and its expanded body, so the two can never
   drift apart. The price track was auto, which meant a long value like
   "AED 1,575.00 to AED 1,622.25" stole width from the flexible tracks and the
   category column landed at a different x on every row. Both are fixed now,
   sized off the widest real content: 28 characters of price, 24 of category. */
.pl{--pl-cols:minmax(0,1fr) 200px 250px 26px;border-top:1px solid var(--border-hair)}
.pl__r{border-bottom:1px solid var(--border-hair);transition:background var(--mo-fast)}
.pl__r:hover{background:var(--bg-subtle)}
.pl__r--on{background:var(--bg-subtle)}
.pl__h{display:grid;grid-template-columns:var(--pl-cols);
  gap:var(--sp-6);align-items:center;width:100%;text-align:left;
  padding:var(--sp-7) var(--sp-5)}
.pl__n{font-weight:700;font-size:var(--fs-body);letter-spacing:-.01em}
.pl__c{font-size:var(--fs-bodySm);color:var(--text-secondary)}
.pl__p{font-weight:700;font-size:var(--fs-bodySm);white-space:nowrap;text-align:right;
  font-variant-numeric:tabular-nums}
.pl__s{display:grid;place-items:center;width:26px;height:26px;flex:none;
  border:1px solid var(--border-strong);font-size:15px;line-height:1}
.pl__r--on .pl__s{background:var(--action-primary);border-color:var(--action-primary);color:var(--c-bone-50)}
.pl__b{display:grid;grid-template-columns:var(--pl-cols);
  gap:var(--sp-6);padding:0 var(--sp-5) var(--sp-8)}
/* the notes sit under the category column, the description under the name */
.pl__b > :first-child{grid-column:1}
.pl__b > :last-child{grid-column:2 / span 3}
.pl__bh{font-size:var(--fs-overline);font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-muted);margin-bottom:var(--sp-4)}
.pl__b p{font-size:var(--fs-bodySm);line-height:1.6;color:var(--text-secondary);max-width:46ch}
/* narrower fixed tracks before the row stacks, so the name never gets squeezed */
@media (max-width:1180px){.pl{--pl-cols:minmax(0,1fr) 170px 230px 26px}}
@media (max-width:900px){
  .pl__h{grid-template-columns:minmax(0,1fr) auto 26px;row-gap:var(--sp-3);
    padding-inline:0}
  .pl__c{grid-column:1;grid-row:2;font-size:var(--fs-caption)}
  .pl__p{grid-column:2;grid-row:1}
  .pl__s{grid-column:3;grid-row:1}
  .pl__b{grid-template-columns:minmax(0,1fr);gap:var(--sp-6);padding-inline:0}
  .pl__b > :first-child,.pl__b > :last-child{grid-column:1}
  .plh{padding-block:var(--sp-10) var(--sp-9)}
}

/* ---------------- paired cards, rows locked together ----------------
   Two cards whose content differs in length. Stretching them equalised the
   outer height but not the insides: at some widths one footnote wraps to three
   lines and the other to two, so the buttons sat 12px apart. Reserving a fixed
   number of lines only moves the problem to another width.

   The parent owns the rows and each card opts into them with subgrid, so every
   card's icon, title, body, picker and footnote line up by construction at any
   width. The flex rule below is the fallback where subgrid is unavailable. */
.gcard{display:flex;flex-direction:column;height:100%}
.gcard__pick{margin-top:auto;padding-top:var(--sp-6)}
.gcard__note{margin-top:var(--sp-4)}

@supports (grid-template-rows: subgrid) {
  .gpair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    /* icon, title, body, list (absorbs slack), picker, footnote */
    grid-template-rows:auto auto auto 1fr auto auto;gap:var(--sp-10)}
  .gpair > .gcard{display:grid;grid-template-rows:subgrid;grid-row:1 / -1;
    gap:var(--sp-5);height:auto}
  .gpair > .gcard > .gcard__pick{margin-top:0;padding-top:0}
  @media (max-width:900px){
    .gpair{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
    .gpair > .gcard{grid-row:auto;grid-template-rows:none;display:flex;
      flex-direction:column}
  }
}

/* the pattern strokes are tan, so 6% vanishes against a dark band */
/* only the opacity differs on a dark band: the tan strokes vanish at 6% */
.pattern--dark::before{opacity:.15}

/* ---------------- three cards, rows locked together ----------------
   Same problem as the grooming pair: one card had a row the others did not,
   so its buttons sat higher. The parent owns the rows and each card opts in
   with subgrid, so title, address, detail list and buttons line up. */
.crow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-6)}
@supports (grid-template-rows: subgrid) {
  .crow{grid-template-rows:auto auto 1fr auto}
  .crow > .card{display:grid;grid-template-rows:subgrid;grid-row:1 / -1;gap:var(--sp-5)}
}
@media (max-width:900px){
  .crow{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .crow > .card{grid-row:auto;grid-template-rows:none;display:flex;flex-direction:column}
}

/* ---------------- a row of cards that lines up inside ----------------
   Equal outer height is not enough. A card with one extra element, a "Most
   chosen" tag say, pushes its own title, price and button down while the boxes
   still measure the same, which reads as one card sitting lower than its
   neighbours.

   The parent owns the row tracks and each card opts into them with subgrid, so
   equivalent elements sit at the same y across the whole row. Set --rows to the
   track list and --cols to the column count. Cards must have the same number
   of children: render an empty span where a card has no tag.

   Use this for any new row of cards rather than hoping the content matches. */
.align{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:var(--sp-6)}
@supports (grid-template-rows: subgrid) {
  .align{grid-template-rows:var(--rows)}
  .align > *{display:grid;grid-template-rows:subgrid;grid-row:1 / -1}
}
@media (max-width:900px){
  .align{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .align > *{grid-row:auto;grid-template-rows:none;display:flex;flex-direction:column}
}

/* ============================================================================
   Client stories: a horizontal rail of video cards
   ========================================================================== */
.stories{display:flex;gap:var(--sp-5);overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding-inline:var(--sp-8);padding-bottom:var(--sp-5);
  scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.story{position:relative;flex:0 0 auto;width:320px;aspect-ratio:3/4;overflow:hidden;
  scroll-snap-align:center;background:var(--c-greige-200)}
.story video,.story img{width:100%;height:100%;object-fit:cover}
.story__scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(26,21,18,0) 46%,rgba(26,21,18,.72) 100%)}
.story__cap{position:absolute;inset:auto 0 0 0;padding:var(--sp-6);color:var(--c-bone-50)}
.story__name{display:block;font-family:var(--ff-display);font-weight:900;
  font-size:var(--fs-h4);letter-spacing:-.02em}
.story__meta{display:block;margin-top:3px;font-size:var(--fs-caption);opacity:.86}
.story__play{position:absolute;inset:0;display:grid;place-items:center;
  color:var(--c-bone-50);transition:opacity var(--mo-fast)}
.story__play span{display:grid;place-items:center;width:54px;height:54px;
  background:var(--action-accent);color:var(--c-bone-50);
  transition:background var(--mo-fast)}
.story__play svg{width:18px;height:18px;margin-inline-start:2px}
.story__play:hover span{background:var(--action-accentHover)}

/* While a story plays, the name and the scrim sit across the person talking,
   so they go. The control stays as a pause, frosted rather than filled so it
   reads as sitting on top of the picture rather than blocking it. */
.story--on .story__scrim,
.story--on .story__cap{opacity:0;visibility:hidden;
  transition:opacity var(--mo-base),visibility var(--mo-base)}
/* Out of the middle and down into the bottom left corner, so nothing sits
   over the person while they talk. The whole card stays clickable, but only
   this corner is drawn. */
.story--on .story__play{place-items:end start;padding:var(--sp-5)}
.story--on .story__play span{width:44px;height:44px;
  background:rgba(251,243,240,.10);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:inset 0 0 0 1px rgba(251,243,240,.22)}
.story--on .story__play:hover span{background:rgba(251,243,240,.20)}
/* the pause glyph is symmetrical, unlike the play triangle */
.story--on .story__play svg{margin-inline-start:0}
.stories__nav{display:flex;justify-content:flex-end;gap:var(--sp-3);
  margin-top:var(--sp-6)}
.stories__nav button{display:grid;place-items:center;width:46px;height:46px;
  border:1px solid var(--border-strong);color:var(--text-primary);
  transition:background var(--mo-fast),border-color var(--mo-fast)}
.stories__nav button:hover{background:var(--action-primary);border-color:var(--action-primary);
  color:var(--c-bone-50)}
.stories__nav svg{width:18px;height:18px}
@media (max-width:640px){
  .stories{padding-inline:var(--sp-5)}
  .story{width:250px}
}

/* ---------------- third-party Elfsight widgets ----------------
   Elfsight renders into the page, so our rules reach it. It ships rounded
   corners and its own shadows by default, both of which this design has
   removed everywhere else, so they are overridden rather than left to look
   like a bolted-on box. Typography and colour inside the widget are set in
   the Elfsight dashboard, not here. */
.elf *{border-radius:0 !important;box-shadow:none !important}

/* ---- heart hero: gradient band, a lighter heart, a cut-out photo standing in it */
.hh{position:relative;overflow:hidden;color:var(--hh-ink);background:var(--hh-bg);
  --hh-ink:var(--c-brown-900);--hh-soft:var(--c-ink-800);
  --hh-bg:linear-gradient(115deg,var(--c-bone-200) 0%,var(--c-tan-300) 55%,var(--c-tan-400) 100%)}
.hh--blush{--hh-bg:linear-gradient(115deg,var(--c-bone-100) 0%,var(--c-bone-300) 45%,var(--c-clay-300) 100%)}
.hh--teal{--hh-ink:var(--c-teal-700);--hh-soft:var(--c-teal-700);
  --hh-bg:linear-gradient(115deg,var(--c-teal-300) 0%,#B4DBDB 100%)}
.hh__in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--sp-9);align-items:center;min-height:520px}
.hh__copy{position:relative;z-index:2;padding-block:var(--sp-12)}
.hh__crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-10);font-size:var(--fs-caption);color:var(--hh-soft)}
.hh__crumbs a{color:var(--hh-ink);text-decoration:underline;text-underline-offset:3px}
.hh__crumbs i{font-style:normal;margin-inline:var(--sp-2)}
.hh__k{display:block;margin-bottom:var(--sp-4);color:var(--hh-soft)}
.hh__t{max-width:20ch;color:var(--hh-ink)}
.hh__l{max-width:52ch;margin-top:var(--sp-7);color:var(--hh-soft)}
.hh__media{position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center}
.hh__heart{position:absolute;z-index:0;left:50%;top:var(--sp-9);width:125%;max-width:none;height:auto;transform:translateX(-50%)}
.hh__img{position:relative;z-index:1;display:block;width:auto;max-width:100%;max-height:480px;object-fit:contain;object-position:bottom}
@media (max-width:900px){
  .hh__in{grid-template-columns:1fr;gap:0;min-height:0}
  .hh__copy{padding-block:var(--sp-10) var(--sp-8)}
  .hh__crumbs{margin-bottom:var(--sp-8)}
  .hh__media{min-height:340px}
  .hh__heart{top:0;width:115%}
  .hh__img{max-height:380px}
}

/* ---- team in hearts: cut-out people whose bodies sit in a heart and heads rise above it */
.th{--th-heart:var(--c-tan-300)}
.th--blush{--th-heart:var(--c-clay-300)}
.th--teal{--th-heart:#B4DBDB}
/* a bold line with a lighter line under it (Team in hearts, Value cards) */
.h2l{max-width:none;margin-bottom:var(--sp-8)}
.h2l b{display:block;font-weight:900}
.h2l span{display:block;font-family:var(--ff-editorial);font-weight:300;color:var(--text-secondary)}
.th__rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-10) var(--sp-9)}
.th__c{text-align:center}
/* the heart is 10:9; the photo is 20% taller and stands on the heart's tip,
   clipped to the heart except across the top, where the head may rise */
.th__m{position:relative;aspect-ratio:10/9;margin-top:18%;margin-bottom:var(--sp-8)}
.th__h{position:absolute;inset:0;width:100%;height:100%;fill:var(--th-heart)}
.th__img{position:absolute;left:0;bottom:0;width:100%;height:120%;object-fit:contain;object-position:center bottom;
  --th-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath d='M50 88C20 66 0 48 0 26 0 11 11 0 25 0c11 0 20 6 25 15C55 6 64 0 75 0c14 0 25 11 25 26 0 22-20 40-50 62Z'/%3E%3C/svg%3E");
  -webkit-mask:var(--th-mask) center bottom / 100% 83.4% no-repeat,linear-gradient(#000,#000) center top / 100% 42% no-repeat;
  mask:var(--th-mask) center bottom / 100% 83.4% no-repeat,linear-gradient(#000,#000) center top / 100% 42% no-repeat}
.th__role{display:block;color:var(--text-accent)}
.th__n{margin-top:var(--sp-3);font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);line-height:var(--lh-h3);color:var(--text-primary)}
.th__n a:hover{color:var(--text-accent)}
.th__q{margin-top:var(--sp-3);color:var(--text-secondary)}
.th__p{display:flex;justify-content:center;align-items:baseline;gap:var(--sp-3);margin-top:var(--sp-3);color:var(--text-secondary)}
.th__i{color:var(--text-accent)}
.th__nav{display:flex;justify-content:center;gap:var(--sp-4);margin-top:var(--sp-9)}
.th__nav button{display:grid;place-items:center;width:46px;height:46px;border-radius:var(--r-pill);
  border:1px solid var(--border-strong);color:var(--text-primary);
  transition:background var(--mo-fast),border-color var(--mo-fast),color var(--mo-fast)}
.th__nav button:first-child,.th__nav button:last-child{background:var(--action-primary);border-color:var(--action-primary);color:var(--text-onAccent)}
.th__nav button:hover{background:var(--action-primaryHover);border-color:var(--action-primaryHover);color:var(--text-onAccent)}
.th__nav svg{width:18px;height:18px}
@media (max-width:900px){
  .th__rail{display:flex;gap:var(--sp-7);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
    margin-inline:calc(-1 * var(--grid-mobile-margin));padding-inline:var(--grid-mobile-margin);scroll-padding-inline:var(--grid-mobile-margin)}
  .th__rail::-webkit-scrollbar{display:none}
  .th__c{flex:0 0 82%;scroll-snap-align:center}
}
@media (max-width:900px){.h2l{margin-bottom:var(--sp-6)}}

/* ---- value cards: icon, heading and text in bordered cards, two across */
.vc__intro{max-width:72ch;margin-bottom:var(--sp-10);font-size:var(--fs-lede);line-height:var(--lh-lede);color:var(--text-primary)}
.vc__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-7)}
.vc__c{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-9);
  background:var(--bg-surface);border:1px solid var(--border-strong);border-radius:var(--r-md)}
.vc__ic{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:var(--r-sm);
  background:var(--bg-accentTint);color:var(--text-accent);font-size:26px}
.vc__t{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3);line-height:var(--lh-h3);color:var(--text-primary)}
.vc__b{margin-top:var(--sp-2);color:var(--text-secondary)}
@media (max-width:900px){
  .vc__intro{margin-bottom:var(--sp-8)}
  .vc__grid{grid-template-columns:1fr;gap:var(--sp-6)}
  .vc__c{flex-direction:column;text-align:center;padding:var(--sp-8) var(--sp-7);gap:var(--sp-5)}
}

/* =================================================================== shop */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* header bag */
.hdr__bag{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;color:inherit;opacity:.9}
.hdr__bag:hover{opacity:1}
.bag__i{width:22px;height:22px;vertical-align:0}
.hdr__bag-n{position:absolute;top:0;inset-inline-end:-2px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;
  background:var(--c-clay-500);color:var(--text-onAccent);font-size:11px;font-weight:800;line-height:1;border-radius:var(--r-pill)}
@media (max-width:900px){.hdr__bag{width:34px;height:34px}}

/* bag drawer */
.bag{position:fixed;inset:0;z-index:200;visibility:hidden;pointer-events:none}
.bag--open{visibility:visible;pointer-events:auto}
.bag__scrim{position:absolute;inset:0;background:rgba(26,21,18,.45);opacity:0;transition:opacity var(--mo-fast)}
.bag--open .bag__scrim{opacity:1}
.bag__panel{position:absolute;top:0;bottom:0;inset-inline-end:0;width:min(440px,100%);display:flex;flex-direction:column;
  background:var(--bg-canvas);color:var(--text-primary);box-shadow:-20px 0 60px rgba(26,21,18,.18);
  transform:translateX(100%);transition:transform 260ms cubic-bezier(.2,.7,.2,1);outline:0}
[dir='rtl'] .bag__panel{transform:translateX(-100%)}
.bag--open .bag__panel{transform:none}
.bag-open,.filters-open{overflow:hidden}
.bag__head{display:flex;align-items:center;justify-content:space-between;padding:var(--sp-6) var(--sp-7);border-bottom:1px solid var(--border-hair)}
.bag__x{display:grid;place-items:center;width:40px;height:40px;color:var(--text-primary)}
.bag__x svg{width:20px;height:20px}
.bag__body{flex:1;overflow-y:auto;padding:var(--sp-4) var(--sp-7);transition:opacity var(--mo-fast)}
.bag__body--busy{opacity:.55}
.bag__empty{padding-block:var(--sp-10);text-align:center}
.bag__l{display:grid;grid-template-columns:84px 1fr;gap:var(--sp-5);padding-block:var(--sp-6);border-bottom:1px solid var(--border-hair)}
.bag__img{display:block;aspect-ratio:1;background:var(--bg-surface);border:1px solid var(--border-hair)}
.bag__img img{width:100%;height:100%;object-fit:contain}
.bag__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.bag__n{font-weight:700;line-height:1.3}
.bag__n:hover{color:var(--text-accent)}
.bag__m{font-size:var(--fs-bodySm);color:var(--text-secondary)}
.bag__warn{font-size:var(--fs-bodySm);color:var(--c-semantic-danger);font-weight:600}
.bag__row{display:flex;align-items:center;justify-content:space-between;margin-top:var(--sp-4)}
.bag__rm{align-self:flex-start;margin-top:var(--sp-3);font-size:var(--fs-caption);color:var(--text-secondary);text-decoration:underline;text-underline-offset:3px}
.bag__rm:hover{color:var(--text-primary)}
.bag__foot{padding:var(--sp-6) var(--sp-7) var(--sp-7);border-top:1px solid var(--border-hair);background:var(--bg-surface)}
.bag__sub{display:flex;justify-content:space-between;align-items:baseline;font-size:var(--fs-h3);margin-bottom:var(--sp-2)}
.bag__go{width:100%;margin-top:var(--sp-6)}

/* quantity stepper */
.qty{display:inline-flex;align-items:center;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--bg-surface)}
.qty button{width:34px;height:34px;display:grid;place-items:center;font-size:18px;color:var(--text-primary)}
.qty button:hover:not(:disabled){background:var(--bg-subtle)}
.qty button:disabled{opacity:.35}
.qty span{min-width:28px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.qty--lg button{width:48px;height:54px}
.qty--lg span{min-width:36px}

/* listing */
.shop{padding-block:var(--sp-10) var(--sp-12)}
.shop__top{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--sp-8);flex-wrap:wrap;margin-bottom:var(--sp-8)}
.shop__top .h2l{margin-bottom:0}
.shop__tabs{display:flex;border:1px solid var(--border-strong)}
.shop__tabs a{padding:var(--sp-4) var(--sp-7);font-weight:700;font-size:var(--fs-bodySm)}
.shop__tabs a+a{border-inline-start:1px solid var(--border-strong)}
.shop__tabs a.on{background:var(--action-primary);color:var(--text-onAccent)}
.shop__tabs a:not(.on):hover{background:var(--bg-subtle)}
.shop__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);padding-block:var(--sp-6);
  border-top:1px solid var(--border-hair);border-bottom:1px solid var(--border-hair);margin-bottom:var(--sp-8)}
.shop__barR{display:flex;align-items:center;gap:var(--sp-4)}
.shop__sort{width:250px}
.shop__sort .dd__btn{border-color:var(--border-strong);font-weight:700;gap:var(--sp-3)}
.shop__sortL{font-weight:400;color:var(--text-secondary)}
/* the list hangs from the right edge and is never narrower than its longest option */
.shop__sort .dd__menu{z-index:150;inset-inline:auto 0;min-width:100%;width:max-content;max-width:calc(100vw - 2 * var(--grid-mobile-margin));
  box-shadow:0 18px 40px rgba(26,21,18,.14)}
.shop__g{display:grid;grid-template-columns:250px minmax(0,1fr);gap:var(--sp-10);align-items:start}

/* search */
.ss{position:relative;flex:1;max-width:520px}
.ss__i{position:absolute;inset-inline-start:14px;top:50%;width:20px;height:20px;transform:translateY(-50%);color:var(--text-secondary);pointer-events:none}
.ss__in{width:100%;height:48px;padding-inline:44px var(--sp-5);border:1px solid var(--border-strong);border-radius:var(--r-sm);
  background:var(--bg-surface);color:var(--text-primary);font:inherit}
.ss__in:focus{outline:2px solid var(--action-accent);outline-offset:-1px}
.ss__pop{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:30;background:var(--bg-surface);border:1px solid var(--border-strong);
  box-shadow:0 18px 40px rgba(26,21,18,.14);max-height:70vh;overflow-y:auto}
.ss__hit{display:grid;grid-template-columns:56px 1fr;gap:var(--sp-5);align-items:center;padding:var(--sp-4) var(--sp-5)}
.ss__hit:hover,.ss__hit:focus{background:var(--bg-subtle)}
.ss__img{width:56px;height:56px;background:var(--bg-canvas)}
.ss__img img{width:100%;height:100%;object-fit:contain}
.ss__txt{display:flex;flex-direction:column;gap:1px;min-width:0;font-size:var(--fs-bodySm)}
.ss__txt b{font-size:var(--fs-body)}
.ss__none{padding:var(--sp-6);color:var(--text-secondary)}
.ss__all{width:100%;padding:var(--sp-5);border-top:1px solid var(--border-hair);font-weight:700;color:var(--text-accent);text-align:center}
.ss__all:hover{background:var(--bg-subtle)}

/* filters */
.shop__f{position:sticky;top:calc(var(--hdr-h, 110px) + var(--sp-5));max-height:calc(100vh - 140px);overflow-y:auto}
.fgrp{border-bottom:1px solid var(--border-hair)}
.fgrp summary{display:flex;justify-content:space-between;align-items:center;padding-block:var(--sp-5);font-weight:800;cursor:pointer;list-style:none}
.fgrp summary::-webkit-details-marker{display:none}
.fgrp summary::after{content:'+';font-weight:400;font-size:20px;color:var(--text-secondary)}
.fgrp[open] summary::after{content:'−'}
.fgrp__l{display:flex;flex-direction:column;gap:2px;padding-bottom:var(--sp-5)}
.fchk{display:flex;align-items:center;gap:var(--sp-4);padding-block:6px;cursor:pointer;font-size:var(--fs-bodySm)}
.fchk input{width:18px;height:18px;margin:0;accent-color:var(--action-primary);flex:none}
.fchk span{flex:1}
.fchk i{font-style:normal;color:var(--text-muted);font-size:var(--fs-caption);font-variant-numeric:tabular-nums}
.fchk--sw{padding-block:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--border-hair);font-weight:700;font-size:var(--fs-body)}

/* results */
.shop__meta{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-5);margin-bottom:var(--sp-7);min-height:36px}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
.chip{display:inline-flex;align-items:center;gap:var(--sp-3);height:32px;padding-inline:var(--sp-4);
  background:var(--bg-accentTint);color:var(--c-brown-800);font-size:var(--fs-bodySm);font-weight:600;border-radius:var(--r-sm)}
.chip span{font-size:16px;line-height:1}
.chip:hover{background:var(--c-tan-400)}
.chips__clear{font-size:var(--fs-bodySm);text-decoration:underline;text-underline-offset:3px;color:var(--text-secondary)}
.pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-9) var(--sp-7)}
.pgrid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.pc{display:flex;flex-direction:column;gap:3px}
.pc__img{position:relative;display:block;aspect-ratio:1;margin-bottom:var(--sp-5);background:var(--bg-surface);border:1px solid var(--border-hair);overflow:hidden}
.pc__img img{width:100%;height:100%;object-fit:contain;padding:var(--sp-6);transition:transform 300ms ease}
.pc:hover .pc__img img{transform:scale(1.04)}
.pc__tag{position:absolute;top:var(--sp-4);inset-inline-start:var(--sp-4);padding:4px 8px;background:var(--bg-inverse);color:var(--text-onInverse);
  font-size:var(--fs-caption);font-weight:700}
.pc__n{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4);line-height:1.25}
.pc:hover .pc__n{color:var(--text-accent)}
.pc__m{font-size:var(--fs-bodySm);color:var(--text-secondary)}
.pc__p{margin-top:var(--sp-2);font-weight:800}
.shop__none{padding:var(--sp-11) var(--sp-8);text-align:center;border:1px solid var(--border-hair);background:var(--bg-surface)}
.shop__more{display:flex;flex-direction:column;align-items:center;gap:var(--sp-5);margin-top:var(--sp-11)}

@media (max-width:1100px){.pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.pgrid--4{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){
  .shop{padding-block:var(--sp-8) var(--sp-11)}
  .shop__top{margin-bottom:var(--sp-6);gap:var(--sp-6)}
  .shop__tabs{width:100%}.shop__tabs a{flex:1;text-align:center}
  .shop__bar{flex-direction:column;align-items:stretch;gap:var(--sp-4);padding-block:var(--sp-5)}
  .ss{max-width:none}
  .shop__barR{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
  .shop__ftog{width:100%;height:48px;padding-inline:var(--sp-5)}
  .shop__sort{width:auto;min-width:0}
  .shop__sortL{display:none}
  .shop__g{grid-template-columns:1fr;gap:0}
  .shop__f{position:fixed;inset:0;z-index:200;top:0;max-height:none;display:flex;flex-direction:column;background:var(--bg-canvas);
    transform:translateY(100%);visibility:hidden;transition:transform 260ms cubic-bezier(.2,.7,.2,1),visibility 0s 260ms}
  .filters-open .shop__f{transform:none;visibility:visible;transition:transform 260ms cubic-bezier(.2,.7,.2,1)}
  .shop__fhead{display:flex;align-items:center;justify-content:space-between;padding:var(--sp-5) var(--grid-mobile-margin);border-bottom:1px solid var(--border-hair)}
  .shop__fbody{flex:1;overflow-y:auto;padding-inline:var(--grid-mobile-margin)}
  .shop__ffoot{padding:var(--sp-5) var(--grid-mobile-margin);border-top:1px solid var(--border-hair)}
  .shop__ffoot .b{width:100%}
  .pgrid,.pgrid--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-8) var(--sp-5)}
  .pc__img img{padding:var(--sp-4)}
}

/* product page */
.pdp{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:var(--sp-11);align-items:start}
.gal{position:sticky;top:calc(var(--hdr-h, 110px) + var(--sp-5))}
.gal__main{aspect-ratio:1;background:var(--bg-surface);border:1px solid var(--border-hair)}
.gal__main img{width:100%;height:100%;object-fit:contain;padding:var(--sp-9)}
.gal__th{display:flex;gap:var(--sp-3);margin-top:var(--sp-4);overflow-x:auto}
.gal__th button{flex:0 0 72px;height:72px;background:var(--bg-surface);border:1px solid var(--border-hair);padding:4px}
.gal__th button.on{border-color:var(--action-primary);box-shadow:inset 0 0 0 1px var(--action-primary)}
.gal__th img{width:100%;height:100%;object-fit:contain}
.pdp__t{margin-top:var(--sp-3)}
.pdp__fmt{margin-top:var(--sp-3);font-size:var(--fs-lede)}
.pdp__packs{margin-top:var(--sp-8)}
.pdp__lbl{display:block;margin-bottom:var(--sp-4);font-weight:800;font-size:var(--fs-bodySm)}
.packs{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.pack{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:84px;min-height:48px;padding:var(--sp-3) var(--sp-5);
  border:1px solid var(--border-strong);background:var(--bg-surface);font-size:var(--fs-bodySm);border-radius:var(--r-sm)}
.pack span{font-size:11px;color:var(--c-clay-600);font-weight:700}
.pack:hover{border-color:var(--text-primary)}
.pack--on{border-color:var(--action-primary);box-shadow:inset 0 0 0 1px var(--action-primary);background:var(--bg-subtle)}
.pack--out b{color:var(--text-muted);text-decoration:line-through}
.pdp__price{display:flex;align-items:baseline;gap:var(--sp-4);margin-top:var(--sp-8)}
.pdp__price b{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h2)}
.pdp__note{margin-top:var(--sp-4);padding:var(--sp-4) var(--sp-5);background:var(--c-semantic-warningTint);font-size:var(--fs-bodySm)}
.atb{margin-top:var(--sp-7)}
.atb__row{display:flex;gap:var(--sp-4)}
.atb__b{flex:1}
.pdp__vet{margin-top:var(--sp-8);padding:var(--sp-6);background:var(--bg-subtle);border-inline-start:3px solid var(--c-tan-500);font-size:var(--fs-bodySm)}
.pdp__vet b{display:block;margin-bottom:var(--sp-2);font-size:var(--fs-body)}
.pdp__vet a{display:inline-block;margin-top:var(--sp-3);font-weight:700;color:var(--text-accent);text-decoration:underline;text-underline-offset:3px}
.pdp__facts{margin-top:var(--sp-8);border-top:1px solid var(--border-hair);list-style:none;padding:0}
.pdp__facts li{display:flex;gap:var(--sp-5);padding-block:var(--sp-4);border-bottom:1px solid var(--border-hair);font-size:var(--fs-bodySm)}
.pdp__facts span{flex:0 0 110px;color:var(--text-secondary)}
.pdp__desc{max-width:860px}
.pdp__html{margin-top:var(--sp-6);color:var(--text-secondary);line-height:1.7}
.pdp__html p+p,.pdp__html ul,.pdp__html ol{margin-top:var(--sp-4)}
.pdp__html ul{padding-inline-start:1.2em;list-style:disc}
@media (max-width:900px){
  .pdp{grid-template-columns:1fr;gap:var(--sp-8)}
  .gal{position:static}
  .gal__main img{padding:var(--sp-6)}
  .atb__row .qty--lg button{width:42px}
}
/* phones: the bag takes the account icon's place in the bar (the menu still
   links to the client portal), so the logo keeps its room */
@media (max-width:600px){.hdr__portal{display:none}.hdr__act{gap:var(--sp-3)}}

/* account (portal, signed in with the shop login) */
.acct__top{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--sp-6);flex-wrap:wrap}
.acct__empty{padding:var(--sp-10) var(--sp-8);border:1px solid var(--border-hair);background:var(--bg-surface);text-align:center}
.acct__g{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-11)}
.ords{display:grid;gap:var(--sp-6)}
.ord{border:1px solid var(--border-strong);background:var(--bg-surface);padding:var(--sp-7)}
.ord__head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-5);flex-wrap:wrap}
.ord__n{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4)}
.ord__src{display:block;margin-bottom:var(--sp-2);font-size:var(--fs-overline);font-weight:700;letter-spacing:var(--tr-overline);text-transform:uppercase;color:var(--text-accent)}
.ord__items li{color:var(--text-secondary)}
.ord__st{padding:4px 10px;background:var(--bg-accentTint);color:var(--c-brown-800);font-size:var(--fs-caption);font-weight:700}
.ord__items{list-style:none;padding:0;margin-top:var(--sp-5);display:grid;gap:var(--sp-2);font-size:var(--fs-bodySm)}
.ord__items li{display:flex;align-items:center;gap:var(--sp-5);font-size:var(--fs-bodySm)}
.ord__img{flex:0 0 52px;height:52px;background:var(--bg-canvas);border:1px solid var(--border-hair)}
.ord__img img{width:100%;height:100%;object-fit:contain}
.ord__foot{display:flex;justify-content:space-between;align-items:center;margin-top:var(--sp-6);padding-top:var(--sp-5);border-top:1px solid var(--border-hair)}
.ord__link{font-weight:700;color:var(--text-accent);text-decoration:underline;text-underline-offset:3px}
@media (max-width:900px){.acct__g{grid-template-columns:1fr;gap:var(--sp-9)}}

/* portal: the client's pets, from the clinic's records */
.pets__g{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--sp-6)}
.pet{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-7);background:var(--bg-surface);border:1px solid var(--border-strong)}
.pet__n{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h3)}
.pet__due{align-self:flex-start;margin-top:var(--sp-3);padding:4px 10px;background:var(--bg-accentTint);color:var(--c-brown-800);font-size:var(--fs-caption);font-weight:700}
.pet__due--late{background:var(--c-semantic-dangerTint);color:var(--c-semantic-danger)}
.pet__vac{list-style:none;padding:0;margin-top:var(--sp-4);border-top:1px solid var(--border-hair);font-size:var(--fs-bodySm)}
.pet__vac li{display:flex;justify-content:space-between;gap:var(--sp-4);padding-block:var(--sp-3);border-bottom:1px solid var(--border-hair)}

/* Legal pages (terms): numbered sections, heading left, text right */
.legal__row{padding-block:var(--sp-8);border-top:1px solid var(--border-hair);align-items:start}
.legal__row:last-child{border-bottom:1px solid var(--border-hair)}
.legal__n{display:block;font-size:var(--fs-caption);color:var(--text-accent);margin-bottom:var(--sp-3);letter-spacing:.08em}
.legal__b p+p,.legal__b p+.legal__l{margin-top:var(--sp-4)}
.legal__l li{display:flex;flex-direction:column;gap:var(--sp-2);padding-block:var(--sp-4);border-bottom:1px solid var(--border-hair)}
.legal__l li:last-child{border-bottom:0}
.legal__l strong{color:var(--text-primary);font-weight:700}

/* Wellness plans (/plans): Dog|Cat switch, plan cards, benefit table, steps, teaser */
.shop__tabs button{padding:var(--sp-4) var(--sp-7);font-weight:700;font-size:var(--fs-bodySm);cursor:pointer}
.shop__tabs button+button{border-inline-start:1px solid var(--border-strong)}
.shop__tabs button.on{background:var(--action-primary);color:var(--text-onAccent)}
.shop__tabs button:not(.on):hover{background:var(--bg-subtle)}
.pln__sw{width:max-content;margin:var(--sp-8) auto 0}
.pln__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-7);margin-top:var(--sp-9);align-items:start}
.pln__card{display:flex;flex-direction:column;gap:var(--sp-5);padding:var(--sp-8);background:var(--bg-surface);
  border:1px solid var(--border-hair);border-radius:var(--r-md)}
.pln__card--pop{border:2px solid var(--action-primary);box-shadow:var(--sh-sm)}
.pln__badge{background:var(--action-primary);color:var(--text-onAccent)}
.pln__price{display:flex;align-items:baseline;gap:var(--sp-3);flex-wrap:wrap;margin-top:var(--sp-3)}
.pln__save{font-weight:700;font-size:var(--fs-bodySm);color:var(--text-accent);margin-top:calc(var(--sp-4) * -1)}
.pln__pts{display:flex;flex-direction:column;gap:var(--sp-4);padding-top:var(--sp-5);border-top:1px solid var(--border-hair)}
.pln__pts li{display:flex;gap:var(--sp-4);font-size:var(--fs-bodySm);color:var(--text-secondary)}
.pln__tick{width:15px;height:15px;flex:none;color:var(--text-accent);margin-top:3px}
.pln__note{text-align:center;max-width:80ch;margin-inline:auto}
.pln__ch{text-align:center}
.pln__mt{display:none}
.pct{width:100%;border-collapse:collapse;margin-top:var(--sp-8);font-size:var(--fs-bodySm)}
.pct th,.pct td{padding:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--border-hair);text-align:center;vertical-align:middle}
.pct .pct__lbl{text-align:start;font-weight:400;color:var(--text-primary);width:40%}
.pct thead th{vertical-align:bottom;padding-block:var(--sp-6);border-bottom:1px solid var(--border-strong)}
.pct thead th,.pct tfoot td{display:table-cell}
.pct thead th > span,.pct tfoot td > span{display:block}
.pct__n{font-family:var(--ff-display);font-weight:900;font-size:var(--fs-h4)}
.pct__p{font-weight:700;font-size:var(--fs-body);margin-top:var(--sp-2)}
.pct .pct__pop{background:var(--bg-subtle)}
.pct__g th{text-align:start;padding-top:var(--sp-8);font-size:var(--fs-overline);font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-accent);border-bottom:1px solid var(--border-strong)}
.pct tfoot td{border-bottom:0;padding-top:var(--sp-6);vertical-align:top}
.pct .pln__tick{margin:0 auto;display:block}
.pls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-7);counter-reset:none}
.pls li{display:flex;flex-direction:column;gap:var(--sp-3);padding-top:var(--sp-6);border-top:1px solid var(--border-strong)}
.pls__n{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--r-pill);margin-bottom:var(--sp-3);
  background:var(--action-primary);color:var(--text-onAccent);font-weight:700}
.pls__terms{display:flex;flex-direction:column;gap:var(--sp-3);padding-inline-start:1.2em;list-style:disc}
.plt{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);flex-wrap:wrap;
  padding:var(--sp-7) var(--sp-8);background:var(--bg-accentTint);border-radius:var(--r-md)}
.pjf{display:flex;flex-direction:column;flex:1;min-height:0}
.pjf__sw{width:max-content}
@media (max-width:900px){
  .pln__cards,.pls{grid-template-columns:minmax(0,1fr)}
  .pln__mt{display:flex;width:100%;margin-top:var(--sp-6)}
  .pln__mt button{flex:1;padding-inline:var(--sp-3)}
  .pct[data-m="essential"] [data-t]:not([data-t="essential"]),
  .pct[data-m="advanced"] [data-t]:not([data-t="advanced"]),
  .pct[data-m="comprehensive"] [data-t]:not([data-t="comprehensive"]){display:none}
  .pct .pct__lbl{width:auto}
  .pct .pct__pop{background:transparent}
}

/* Builder editor only: a section switched to "Hide this section" */
.bhid{position:relative;outline:2px dashed var(--border-strong);outline-offset:-2px}
.bhid__c{opacity:.35;pointer-events:none}
.bhid__l{position:absolute;top:var(--sp-4);inset-inline-start:var(--sp-4);z-index:2;padding:4px 10px;
  border-radius:var(--r-pill);background:var(--action-primary);color:var(--text-onAccent);
  font-size:var(--fs-caption);font-weight:700}

/* Video hero text block, placed by the editor's position settings (components/v2/hero-pos) */
.hero__in--pos{align-self:stretch;display:flex;flex-direction:column}
.hero__txt{width:100%;max-width:min(var(--hw,100%),100%);transform:translate(var(--hx,0px),var(--hy,0px))}
.hero__txt--b{margin-top:auto}
.hero__txt--m{margin-block:auto}
.hero__txt--t{margin-bottom:auto}
.hero__txt--l{align-self:flex-start;text-align:start}
.hero__txt--c{align-self:center;text-align:center}
.hero__txt--r{align-self:flex-end;text-align:end}
.hero__txt--c .hero__cta{justify-content:center}
.hero__txt--r .hero__cta{justify-content:flex-end}
.hero__txt--c .hero__title,.hero__txt--c .hero__lede{margin-inline:auto}
.hero__txt--r .hero__title,.hero__txt--r .hero__lede{margin-inline-start:auto}
.hero__txt > .hero__cta:first-child{margin-top:0}
.hero__sub{color:var(--c-bone-100)}
.hero__lede{margin-top:var(--sp-5)}
.hero__txt > .hero__lede:first-child{margin-top:0}
@media (max-width:900px){
  .hero__txt{transform:translate(var(--hxm,0px),var(--hym,0px))}
}
/* phones drop the bottom shade when the hero is film only; text needs it back */
@media (max-width:640px){
  .hero--text .hero__scrim{background:
    linear-gradient(180deg,rgba(26,21,18,.68) 0%,rgba(26,21,18,.30) 20%,rgba(26,21,18,.30) 45%,rgba(26,21,18,.85) 100%)}
}

/* Per-line text settings from the editor (components/v2/text-style) */
.ts--size{font-size:var(--ts-size)}
.ts--w{display:block;max-width:min(var(--ts-w),100%)}
@media (max-width:900px){
  .ts--size{font-size:max(16px,calc(var(--ts-size) * .6))}
  .ts--size-m{font-size:var(--ts-size-m)}
}
.hero__txt--c .ts--w{margin-inline:auto}
.hero__txt--r .ts--w{margin-inline-start:auto}

/* Desktop header dropdowns (Site menus in Builder: an item with sub-links) */
.hdd{position:relative;display:flex;align-items:center;height:100%}
.hdd__t::after{content:'';display:inline-block;width:6px;height:6px;margin-inline-start:7px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.hdd__m{position:absolute;top:100%;inset-inline-start:calc(var(--sp-5) * -1);z-index:60;min-width:240px;
  display:flex;flex-direction:column;padding:var(--sp-3);margin-top:var(--sp-3);
  background:var(--bg-canvas);color:var(--text-primary);border:1px solid var(--border-hair);border-radius:var(--r-md);
  box-shadow:var(--sh-lg);opacity:0;visibility:hidden;transform:translateY(4px);
  transition:opacity var(--mo-fast),transform var(--mo-fast),visibility var(--mo-fast)}
.hdd__m::before{content:'';position:absolute;inset:calc(var(--sp-3) * -1 - 1px) 0 auto 0;height:var(--sp-3)}
.hdd:hover .hdd__m,.hdd:focus-within .hdd__m{opacity:1;visibility:visible;transform:none}
.hdr__nav .hdd__m a{display:flex;flex-direction:column;gap:2px;padding:var(--sp-4) var(--sp-5);border-radius:var(--r-sm);opacity:1;
  color:var(--text-primary);font-weight:600}
.hdr__nav .hdd__m a:hover{background:var(--bg-subtle)}
.hdd__m small{font-size:var(--fs-caption);font-weight:400;color:var(--text-muted)}

/* Homepage doctors carousel (components/v2/DoctorRail) */
.dteam__h{align-items:flex-end;margin-bottom:var(--sp-9)}
.drail{--gap:var(--sp-7);display:grid;grid-auto-flow:column;gap:var(--gap);
  grid-auto-columns:calc((100% - var(--gap) * (var(--per,4) - 1)) / var(--per,4));
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.drail::-webkit-scrollbar{display:none}
.dcard{display:flex;flex-direction:column;scroll-snap-align:start;background:var(--bg-surface);
  border:1px solid var(--border-hair);border-radius:var(--r-md);overflow:hidden;color:var(--text-primary)}
.dcard__img{display:block;aspect-ratio:4/5;background:var(--c-greige-200);overflow:hidden}
.dcard__img img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;transition:transform var(--mo-slow)}
.dcard:hover .dcard__img img{transform:scale(1.03)}
.dcard__ini{display:grid;place-items:center;height:100%;font-family:var(--ff-display);font-weight:900;font-size:48px;color:var(--text-muted)}
.dcard__b{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);padding:var(--sp-7) var(--sp-5);text-align:center;
  border-top:1px solid var(--border-hair)}
.dnav button[disabled]{opacity:.35;pointer-events:none}
@media (max-width:1100px){.drail{--per:3 !important}}
@media (max-width:900px){.drail{grid-auto-columns:calc((100% - var(--gap)) / 2.2)}}
@media (max-width:640px){.drail{--gap:var(--sp-5);grid-auto-columns:78%}}

/* "Dark overlay" on video sections other than the heroes: --ovl is 0 to 1
   (components/v2/hero-dim). Full (1) is each section's original look. */
.bleed__scrim{opacity:var(--ovl,1)}
.bleed__media img,.bleed__media video{filter:brightness(calc(1 - .24 * var(--ovl,1))) saturate(.94)}
.cf__scrim{opacity:var(--ovl,1)}
.story__scrim{opacity:var(--ovl,1)}
.media__scrim{position:absolute;inset:0;z-index:1;pointer-events:none;background:rgba(26,21,18,.55);opacity:var(--ovl,0)}

/* Clinic landing page: details card beside a map (Section: One clinic with map) */
.cdet{align-items:stretch}
.cdet__map{min-height:420px;border:1px solid var(--border-hair);border-radius:var(--r-md);overflow:hidden;background:var(--c-greige-200)}
.cdet__map iframe{display:block;width:100%;height:100%;min-height:420px;border:0;filter:saturate(.85)}

/* Plan cards: equal height, and each row (name, price, saving, tagline,
   button, highlights) lines up across the three cards (CSS subgrid). */
.pln__cards{align-items:stretch;row-gap:var(--sp-5)}
@media (min-width:901px){
  .pln__card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:var(--sp-5)}
  .pln__card .pln__save{margin-top:calc(var(--sp-3) * -1)}
  .pln__card > .b{align-self:end}
  .pln__card .pln__pts{align-self:start}
}

/* "Powered by Marketiq" credit, its own line under the footer bar */
.ft__by{flex-basis:100%;font-size:var(--fs-caption);opacity:.7}
.ft__by a{text-decoration:underline;text-underline-offset:3px}
.ft__by a:hover{opacity:1;color:var(--c-tan-500)}

/* Client portal: upcoming appointments stand out from the history below */
.ord--next{border-inline-start:3px solid var(--action-primary)}
.ord--next .ord__src{color:var(--text-accent);font-weight:700}

/* Client portal: reschedule form on an upcoming appointment, and overdue vaccines */
.resch{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--sp-5);max-width:560px;align-items:end}
.resch__a,.resch .field__err{grid-column:1 / -1}
.pet__late{color:var(--c-semantic-danger);font-weight:600}
@media (max-width:640px){.resch{grid-template-columns:minmax(0,1fr)}}

/* Client portal: profile page (details, addresses, delete account) */
.prof__s{padding-block:var(--sp-9);border-top:1px solid var(--border-hair)}
.prof__s:first-of-type{border-top:0;padding-top:var(--sp-4)}
.prof__form{margin-top:var(--sp-6);max-width:760px}
.prof__g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-5)}
.prof__addrs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-5);margin-top:var(--sp-6)}
.prof__a{padding:var(--sp-6);border:1px solid var(--border-hair);border-radius:var(--r-md);background:var(--bg-surface)}
.prof__edit > summary{list-style:none;cursor:pointer}
.prof__edit > summary::-webkit-details-marker{display:none}
.prof__edit[open] > summary{margin-bottom:var(--sp-4)}
.prof__danger h2{color:var(--c-semantic-danger)}
.prof__del{border-color:var(--c-semantic-danger);color:var(--c-semantic-danger)}
.prof__del:hover{background:var(--c-semantic-dangerTint);border-color:var(--c-semantic-danger)}
@media (max-width:760px){.prof__g,.prof__addrs{grid-template-columns:minmax(0,1fr)}}

/* Language toggle (EN | ع): header, footer bar and phone menu */
.lang{display:inline-flex;align-items:center;border:1px solid currentColor;border-radius:var(--r-pill);overflow:hidden;
  font-size:var(--fs-caption);font-weight:700;line-height:1;opacity:.9}
.lang a{display:grid;place-items:center;min-width:34px;height:28px;padding-inline:var(--sp-3)}
.lang a[aria-current]{background:currentColor}
.lang a[aria-current]{color:inherit}
.lang a[aria-current]{background:var(--action-primary);color:var(--text-onAccent)}
.hdr:not(.hdr--solid):not(.hdr--stuck) .lang a[aria-current]{background:var(--c-bone-100);color:var(--c-ink-900)}
.ft__bar .lang a[aria-current]{background:var(--c-bone-100);color:var(--c-ink-900)}
.lang a[lang='ar']{font-family:var(--ff-arabic);font-size:15px}
.lang--menu{margin-top:var(--sp-8);color:var(--text-primary)}
.lang--menu a{min-width:56px;height:40px}

/* Arabic pages: numbers (phones, times, prices) read left to right inside right-to-left text */
[dir='rtl'] a[href^='tel:']:not([class]),[dir='rtl'] .num{unicode-bidi:isolate;direction:ltr}
[dir='rtl'] dd{unicode-bidi:plaintext}
[dir='rtl'] .hdr__nt{unicode-bidi:plaintext}

/* Arabic: carousel arrows point the reading way (play/pause keeps its shape) */
[dir='rtl'] :is(.stories__nav,.cf__nav,.th__nav,.dnav) button:not([aria-pressed]) svg{transform:scaleX(-1)}
/* Arabic: the calendar's month arrows point the reading way */
[dir='rtl'] .cal2__nav{transform:scaleX(-1)}
