/*
 * wb-catalog-restyle-a.css — T483 catalogue round, appearance only, gated by
 * the restyle-A flag (auth.resolve_restyle_a — allow-list, the
 * wb_restyle_a cookie, or ?restyle=a; shared with the Buddy chat, bottle
 * page and landing/market grid restyles). Robert approved building this in
 * (asks #1915 "yes", #1916 "honour 44px").
 *
 * SOURCE (byte-identical body below): sprint-state/ui-rebuild/catalog-round/
 * override-catalog-a.css, the proof sheet that earned #1915/#1916's
 * approval. Only linked when the flag is on AND the page being rendered is
 * /v2/catalog (not /v2/catalog/classic — a different renderer this flag
 * never touches).
 */

/*
 * override-catalog-a.css — T483 catalogue round: restyle "A" applied to the
 * REAL catalogue at "/v2/catalog".
 *
 * APPEARANCE ONLY (Robert, 2026-08-27, ask #1902). Every selector below
 * already exists in the shipped DOM — nothing here can add, remove, reorder or
 * reword an element. The page title, the pinned search row, the Filters
 * button, the count, the active-filter chips, every card, the "Good fit for
 * me?" control, the Show-more button and the filters sheet are exactly what
 * ships today; this file only repaints them.
 *
 * ONE ROUTE, TWO DOMs. Below the 860px fence the page renders the app
 * catalogue (#catMobile, written by static/js/catalog-mobile.js, painted by
 * catalog-mobile.css) and hides the desktop shell; above it the desktop shell
 * (.catalog-shell + #resBody.cat-grid, written by static/js/catalog.js,
 * painted by wb-components.css's .cat-* block) renders and #catMobile is
 * display:none. They are different markup, so this sheet has two card
 * sections. The fence is 860/861 everywhere, pinned by
 * tests/test_v2_app_landing_viewport_fences.py — it is mirrored, never moved.
 *
 * Direction: the SAME token system as the landing round
 * (sprint-state/ui-rebuild/landing-round/override-landing-a.css), the bottle
 * round and the shipped Buddy sheet — same paper, ink, hairline, accent and
 * focus values, same 16px body floor, same 44/48px tap targets, same "no
 * shadows, hairline and air instead of boxes" discipline. Values come from
 * sprint-state/ui-rebuild/tokens.css. Where the catalogue shares markup with
 * the landing grid (.card-buy, .card-buddy, .price-bar*, the site header, the
 * footer, chips, panels) the landing sheet's rules are COPIED, not reinvented,
 * so the two surfaces cannot drift.
 *
 * ONE ACCENT (ask #1909): burnt whisky, money and deals only — here that is
 * the "At 90-day low" / "Price falling" signal and the price-bar dot, and
 * nothing else. Links are ink plus an underline; never blue, never accent.
 *
 * SPECIFICITY KEY: identical to the landing sheet. The live paint here is
 * catalog.css + catalog-mobile.css + wb-components.css + wb-header.css +
 * the former Buddy stylesheet AS OVERRIDDEN BY wb-quiet-tokens.css, which is linked last and
 * re-asserts most of these properties with `!important`. `html:not(#_)`
 * matches every page and buys one ID-level step, so these rules win the
 * cascade without editing any product sheet. It is a cascade lever, not a
 * hook. Injected with page.add_style_tag() over the real page — no product
 * CSS, template or Python is edited.
 */

:root {
  --r2-paper:   #FBF9F6;
  --r2-surface: #FBF9F6;
  --r2-sunk:    var(--sk-q-sunk);
  --r2-ink:     var(--sk-q-dark);
  --r2-ink-2:   #5C5651;
  --r2-ink-3:   #8A837C;
  --r2-hair:    var(--sk-q-hair-2);
  --r2-hair-2:  #CFC9C0;
  --r2-accent:  var(--sk-deep-accent);
  --r2-accent-ink: #FFFFFF;
  --r2-focus:   var(--sk-q-dark);
  --r2-scrim:   rgba(23, 19, 16, .48);

  --r2-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r2-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Liberation Sans", Helvetica, Arial, sans-serif;
  --r2-ease: cubic-bezier(.2,.6,.3,1);
  --r2-dur-fast: 120ms;   /* state changes; 200ms is for things that move */

  /* The <select> chevron is a data-URI with the old warm grey baked in
     (catalog.css / catalog-mobile.css). Re-drawn in secondary ink so it flips
     with the scheme like every other glyph. Same shape, same position. */
  --r2-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235C5651' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");

  /* The image plate. A bottle photo is CONTENT, and the catalogue's display
     shots are cut out on WHITE (not on transparency) — so the plate stays a
     white plate in dark mode rather than flipping with the page. This is the
     one place the "lightness flips" rule is deliberately not applied, and it
     is a token, not a literal, so the exception lives in exactly one place.
     Same finding and same decision as the landing round (NOTES.md §4 there). */
  --r2-plate: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --r2-paper:   #14120F;
    --r2-surface: #1C1916;
    --r2-sunk:    #211D19;
    --r2-ink:     #F3EFE9;
    --r2-ink-2:   #B4ADA4;
    --r2-ink-3:   #8B847B;
    --r2-hair:    #2E2A25;
    --r2-hair-2:  #423C35;
    --r2-accent:  #E5A25C;
    --r2-accent-ink: #1A1409;
    --r2-focus:   #F3EFE9;
    --r2-scrim:   rgba(0, 0, 0, .62);
    --r2-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23B4ADA4' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  }
}

/* ── The page's own token blocks, re-pointed ───────────────────────────────
   catalog.css defines ~30 `--*` custom properties in :root and
   wb-quiet-tokens.css re-points them again; every rule in catalog.css,
   catalog-mobile.css and wb-components.css reads them. Re-pointing the
   properties is a pure value swap — no selector in a product sheet is
   rewritten — and it is what gives this page a dark mode it has never had. */
html:not(#_),
html:not(#_) body,
html:not(#_) .wb-header {
  --paper: var(--r2-paper);
  --paper-soft: var(--r2-paper);
  --bg: var(--r2-paper);
  --bg-tint: var(--r2-sunk);
  --card: var(--r2-surface);
  --soft: var(--r2-sunk);
  --ink: var(--r2-ink);
  --ink-soft: var(--r2-ink);
  --muted: var(--r2-ink-2);
  --ink-2: var(--r2-ink-2);
  --line: var(--r2-hair);
  --line-soft: var(--r2-hair);
  --accent: var(--r2-ink);
  --accent-2: var(--r2-ink);
  --accent-bg: var(--r2-sunk);
  --accent-line: var(--r2-hair);
  --gold: var(--r2-accent);
  --gold-soft: var(--r2-accent);
  --brass: var(--r2-accent);
  --brass-deep: var(--r2-accent);
  --burnt: var(--r2-accent);
  --green: var(--r2-accent);
  --green-bg: var(--r2-paper);
  --green-line: var(--r2-hair);
  --red: var(--r2-ink);
  --red-bg: var(--r2-paper);
  --red-line: var(--r2-hair);
  --amber-txt: var(--r2-ink-2);
  --amber-bg: var(--r2-paper);
  --amber-line: var(--r2-hair);
  --chip-bg: var(--r2-sunk);
  --focus: var(--r2-focus);
  --wb-quiet-accent: var(--r2-accent);
  --wb-field-bg: var(--r2-sunk);
  --wb-field-line: var(--r2-hair);
  --wb-field-radius: 6px;
  --sans: var(--r2-body);
  --round: var(--r2-body);
  --serif: var(--r2-body);
}

/* ── Shell ─────────────────────────────────────────────────────────────────
   `html` too, not just `body`: the page overscrolls past the body on iOS and
   catalog.css's cream `#fbf7ef` body literal shows as a band above the
   header. */
html:not(#_),
html:not(#_) body,
html:not(#_) main.wrap,
html:not(#_) .wrap {
  background: var(--r2-paper) !important;
  color: var(--r2-ink) !important;
  font-family: var(--r2-body) !important;
}
/* catalog.css sets `body{font:14px/1.45 var(--sans)}` — a shorthand, so the
   16px floor has to be restated on the element itself. */
html:not(#_) body {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
/* No shadows. Ever. Separation is a hairline. */
html:not(#_) body *,
html:not(#_) body *::before,
html:not(#_) body *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}
html:not(#_) .wrap,
html:not(#_) main.wrap {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
html:not(#_) main.wrap { padding-bottom: 48px !important; }
html:not(#_) a { color: var(--r2-ink) !important; }

/* Focus: 2px ring in ink (paper in dark), 2px offset — one rule, everywhere. */
html:not(#_) a:focus-visible,
html:not(#_) button:focus-visible,
html:not(#_) input:focus-visible,
html:not(#_) select:focus-visible,
html:not(#_) summary:focus-visible,
html:not(#_) [tabindex]:focus-visible {
  outline: 2px solid var(--r2-focus) !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}

/* ══ Header ════════════════════════════════════════════════════════════════
   Copied from the landing round — same markup (wb-header.css), same paint, so
   the front door and the catalogue cannot drift into two headers. */
html:not(#_) .wb-header {
  background: var(--r2-paper) !important;
  border-bottom: 1px solid var(--r2-hair) !important;
}
html:not(#_) .wb-header-in {
  padding: 12px 16px 8px !important;
  gap: 8px !important;
}
html:not(#_) .wb-brand {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  gap: 8px !important;
  color: var(--r2-ink) !important;
  text-decoration: none !important;
}
/* The ONE serif role in the header (the rulebook's "at most three places"). */
html:not(#_) .wb-word,
html:not(#_) .wb-word .wb-w,
html:not(#_) .wb-word .wb-b,
html:not(#_) .wb-brand {
  font-family: var(--r2-display) !important;
  font-size: 1.1875rem !important;          /* 19px — the wordmark role */
  font-weight: 700 !important;
  letter-spacing: -0.011em !important;
  color: var(--r2-ink) !important;
}
/* The "buddy" half of the wordmark and the "ai" superscript are a brass
   GRADIENT clipped to the text, so `color` alone cannot reach them. */
html:not(#_) .wb-word .wb-b,
html:not(#_) .wb-word .wb-ai {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--r2-ink) !important;
  -webkit-text-fill-color: var(--r2-ink) !important;
  filter: none !important;
}
html:not(#_) .wb-word .wb-ai { font-size: 0.8125rem !important; }
html:not(#_) .wb-mark,
html:not(#_) .wb-brand img.wb-mark {
  border-radius: 6px !important;
  border: 0 !important;
}
html:not(#_) .wb-header-right { gap: 4px !important; }
html:not(#_) .wb-bell-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .wb-bell-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 1.5 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .wb-bell-badge,
html:not(#_) .wb-bell-dot {
  background: var(--r2-accent) !important;
  color: var(--r2-accent-ink) !important;
  border: 0 !important;
}
html:not(#_) .wb-bell-pop,
html:not(#_) .wb-menu-pop {
  background: var(--r2-surface) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .wb-bell-head,
html:not(#_) .wb-menu-pop a,
html:not(#_) .wb-menu-plan strong { color: var(--r2-ink) !important; }
html:not(#_) .wb-bell-empty,
html:not(#_) .wb-bell-retention,
html:not(#_) .wb-menu-plan-usage,
html:not(#_) .wb-menu-plan-link { color: var(--r2-ink-2) !important; }
html:not(#_) .wb-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .wb-menu[open] .wb-menu-btn {
  background: var(--r2-sunk) !important;
  border: 0 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .wb-menu-burger span,
html:not(#_) .wb-menu[open] .wb-menu-burger span {
  background: var(--r2-ink) !important;
  height: 1.5px !important;
}
html:not(#_) .wb-menu-label {
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
/* The plan chip ("ADMIN") is a label, not a badge: hairline pill, label ink.
   `top:-6px`, not the shipped -7px: once the Menu button is a real 44px the
   chip clips off the top edge of the header (landing round, §5 item 1). */
html:not(#_) .wb-menu-plan-chip {
  background: var(--r2-paper) !important;
  border: 1px solid var(--r2-hair) !important;
  color: var(--r2-ink-2) !important;
  border-radius: 999px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
  padding: 1px 8px !important;
  top: -6px !important;
}
html:not(#_) .wb-menu[open] .wb-menu-plan-chip {
  background: var(--r2-paper) !important;
  border-color: var(--r2-hair) !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .wb-search input {
  background: var(--r2-sunk) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 999px !important;
  color: var(--r2-ink) !important;
  font-size: 1rem !important;
  min-height: 44px !important;
}
html:not(#_) .wb-search input::placeholder { color: var(--r2-ink-2) !important; }
html:not(#_) .wb-search .ico {
  color: var(--r2-ink-2) !important;
  stroke-width: 1.5 !important;
}
html:not(#_) .wb-search-buddy,
html:not(#_) .wb-nav-buddy {
  background: transparent !important;
  border: 0 !important;
  color: var(--r2-ink) !important;
  min-height: 44px !important;
}
html:not(#_) .wb-spark { background-color: var(--r2-ink) !important; }
html:not(#_) .wb-results {
  background: var(--r2-surface) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  color: var(--r2-ink) !important;
}

/* The Buddy opener glyph is an inline SVG painting a saturated gold gradient
   disc (catmBuddyGrad in catalog-mobile.js, avatar() in the former Buddy script). Same
   flattening the shipped quiet sheet does, in tokens so it flips: a hairline
   ring with an ink glass. Icons are strokes in ink, never filled discs. */
html:not(#_) svg circle[fill^="url(#"] {
  fill: var(--r2-paper) !important;
  stroke: var(--r2-hair-2) !important;
  stroke-width: 2px !important;
}
html:not(#_) svg path[stroke="#fdf4e4"],
html:not(#_) svg path[fill="#fdf4e4"] {
  stroke: var(--r2-ink) !important;
  fill: none !important;
}
html:not(#_) svg linearGradient stop { stop-color: var(--r2-ink) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   PHONE — the app catalogue (#catMobile, catalog-mobile.js)
   Every rule scoped to the same 860px fence the product sheet uses.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  html:not(#_) .catm { padding: 0 16px !important; }

  /* ── Page title ────────────────────────────────────────────────────────
     The catalogue has a real <h1> (it becomes `Results for "…"` on search),
     so this is the surface's one display-face headline — the second and last
     Inter-bold display role on the screen after the wordmark. */
  html:not(#_) .catm-head { padding: 16px 0 12px !important; }
  html:not(#_) .catm-title {
    font-family: var(--r2-display) !important;
    font-size: 1.5rem !important;             /* 24px */
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.011em !important;
    color: var(--r2-ink) !important;
    margin: 0 !important;
  }
  /* The searched term inside the title. Emphasis is weight, not colour — the
     accent is money only. */
  html:not(#_) .catm-title em {
    font-style: normal !important;
    color: var(--r2-ink) !important;
  }

  /* ── The pinned search row ─────────────────────────────────────────────
     The row is sticky but transparent today, so on a warm paper the list
     scrolls visibly through the gap beside the field and behind the Buddy
     opener. Given the page's own paper and 8px of air it reads as one pinned
     strip. Position, order and stickiness are exactly what ships. */
  html:not(#_) .catm-search-row {
    background: var(--r2-paper) !important;
    padding: 4px 0 8px !important;
    margin: 0 0 8px !important;
    gap: 8px !important;
  }
  html:not(#_) .catm-searchbar {
    background: var(--r2-sunk) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    min-height: 48px !important;              /* the primary field: 48px */
    gap: 8px !important;
  }
  html:not(#_) .catm-searchbar:focus-within {
    border-color: var(--r2-hair-2) !important;
  }
  html:not(#_) .catm-search-ico {
    color: var(--r2-ink-2) !important;
    stroke-width: 1.5 !important;
  }
  /* 16px, never less: below 16px iOS zooms the whole page on focus. */
  html:not(#_) input.catm-search {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    color: var(--r2-ink) !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 46px !important;
  }
  html:not(#_) input.catm-search::placeholder { color: var(--r2-ink-2) !important; }
  html:not(#_) .catm-clear {
    color: var(--r2-ink-2) !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.25rem !important;
    padding: 0 !important;
  }
  html:not(#_) .catm-buddy-open {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
  }
  html:not(#_) .catm-buddy-open svg { width: 26px !important; height: 26px !important; }

  /* ── Filters button + result count ─────────────────────────────────────── */
  html:not(#_) .catm-controls {
    margin-bottom: 12px !important;
    gap: 12px !important;
  }
  html:not(#_) .catm-filters-btn {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink) !important;
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    min-height: 44px !important;
    gap: 8px !important;
  }
  html:not(#_) .catm-filters-btn:active { background: var(--r2-sunk) !important; }
  /* A labelled icon is one idea said twice — the word "Filters" is the
     control. (The shipped quiet sheet already hides it; restated in tokens.) */
  html:not(#_) .catm-filters-btn svg { display: none !important; }
  /* The count of active filters is a label, not money: ink fill, never the
     accent. (The landing sheet paints the bell badge accent; that divergence
     is recorded in NOTES.md §7 rather than copied.) */
  html:not(#_) .catm-filters-n {
    background: var(--r2-ink) !important;
    color: var(--r2-paper) !important;
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 650 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
  }
  html:not(#_) .catm-count {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: var(--r2-ink-2) !important;
  }

  /* ── Active-filter chips ───────────────────────────────────────────────
     Each chip removes its filter, so each is a tap target: 44px, hairline
     pill, label ink. Never the accent — a filter is not money. */
  html:not(#_) .catm-chips { gap: 8px !important; }
  html:not(#_) .catm-chips:not(:empty) { margin-bottom: 12px !important; }
  html:not(#_) .catm-chip {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink-2) !important;
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    min-height: 44px !important;
    gap: 8px !important;
  }
  html:not(#_) .catm-chip-x {
    color: var(--r2-ink-2) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
  }

  /* ── The list ──────────────────────────────────────────────────────────
     Unrelated rows get 12px; the list is one idea per row. */
  html:not(#_) .catm-list { gap: 12px !important; padding-bottom: 24px !important; }

  /* A card is a hairline plus padding, not a fill. */
  html:not(#_) .catm-card {
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    gap: 12px !important;
    grid-template-columns: 88px 1fr !important;
    transition: border-color var(--r2-dur-fast) var(--r2-ease) !important;
  }
  html:not(#_) .catm-card:hover { border-color: var(--r2-hair-2) !important; }
  html:not(#_) .catm-hit { border-radius: 10px !important; }

  /* The photo plate keeps its own light surface in both modes — the display
     shots are cut out on white, not on transparency. */
  html:not(#_) .catm-shot {
    background: var(--r2-plate) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    height: 112px !important;
    padding: 8px !important;
  }

  /* ── Card type: brand small, name bold, price dominant ─────────────────
     Shipped, the brand eyebrow is 9.6px and "AUD" is 9.3px — decoration
     pretending to be information. Everything on the card is now 13px or
     larger, and 13px is labels and meta only. */
  html:not(#_) .catm-brand {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;          /* 13px — the one label style */
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--r2-ink-2) !important;
    margin-bottom: 4px !important;
  }
  html:not(#_) .catm-name {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;               /* 16px — weight marks it */
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.006em !important;
    color: var(--r2-ink) !important;
    margin: 0 !important;
  }
  html:not(#_) .catm-sub {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: var(--r2-ink-2) !important;
    margin-top: 4px !important;
  }

  /* Price: the biggest thing on the card, because the question is "what
     should I buy" and the answer is the money. */
  /* The price row is 44px tall because the retailer link inside it is a real
     tap target; `center` rather than `baseline` so the row is exactly 44px and
     the price, the "FROM" label and the link share one optical line — which is
     the row the page already ships. */
  html:not(#_) .catm-priceline {
    margin-top: 8px !important;
    gap: 0 8px !important;
    align-items: center !important;
    min-height: 44px !important;
  }
  html:not(#_) .catm-from {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--r2-ink-2) !important;
  }
  html:not(#_) .catm-price {
    font-family: var(--r2-body) !important;
    font-size: 1.5rem !important;             /* 24px */
    font-weight: 650 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.011em !important;
    color: var(--r2-ink) !important;
    font-variant-numeric: tabular-nums !important;
  }
  html:not(#_) .catm-dollar {
    font-size: 1.0625rem !important;          /* 17px */
    font-weight: 650 !important;
    color: var(--r2-ink) !important;
    margin-right: 1px !important;
  }
  html:not(#_) .catm-cur {
    font-size: 0.8125rem !important;          /* 13px — a label */
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    color: var(--r2-ink-2) !important;
    margin-left: 6px !important;
  }
  html:not(#_) .catm-noprice {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-style: normal !important;
    color: var(--r2-ink-2) !important;
  }
  /* The retailer line is a real link OUT to the seller, so it needs a real
     44px target. It STAYS on the price row — that is where the page puts it
     today, and the row it lives in already wraps, so a long retailer name
     drops to its own line by itself rather than being forced there. */
  html:not(#_) .catm-ret {
    max-width: 100% !important;
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    margin-top: 0 !important;
    text-decoration: underline !important;    /* ask #1909: ink + a rule */
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: var(--r2-hair-2) !important;
  }
  html:not(#_) .catm-ret:hover { text-decoration-color: var(--r2-ink) !important; }

  /* ── The one signal — the ONE place colour appears ─────────────────────
     A price event (at a 90-day low, falling) is money, so it gets the accent
     and the 24px accent rule, exactly like the landing card's deal line.
     "New arrival" and "Multiple batches" are not money: quiet label ink. */
  html:not(#_) .catm-sig {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--r2-ink-2) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 8px !important;
  }
  html:not(#_) .catm-sig-at_low,
  html:not(#_) .catm-sig-falling {
    color: var(--r2-accent) !important;
    font-weight: 650 !important;
    position: relative !important;
    padding-top: 12px !important;
  }
  html:not(#_) .catm-sig-at_low::before,
  html:not(#_) .catm-sig-falling::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 24px !important;
    height: 1px !important;
    background: var(--r2-accent) !important;
    display: block !important;
  }
  html:not(#_) .catm-sig-new,
  html:not(#_) .catm-sig-batches {
    color: var(--r2-ink-2) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  /* ── "Good fit for me?" — a text control at a real 44px ────────────────
     This button carries BOTH .card-buddy and .catm-fit, so it is also caught
     by the landing/quiet absolute pin written for the landing card; restated
     in flow here (position:relative + z-index:2 keeps it above the stretched
     .catm-hit overlay, which is catalog-mobile.css's own stacking contract). */
  html:not(#_) .catm-card .catm-fit {
    position: relative !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    width: auto !important;
    height: auto !important;
    min-height: 44px !important;
    margin-top: 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: var(--r2-ink-2) !important;
  }
  html:not(#_) .catm-fit .star { display: none !important; }
  html:not(#_) .catm-fit .buddy-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink-2) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: var(--r2-hair-2) !important;
  }

  /* ── Show more / empty state ───────────────────────────────────────────
     The one primary action on the screen: 48px, ink fill, 6px radius. Ink,
     not the accent — a pagination control is not money. */
  html:not(#_) .catm-more,
  html:not(#_) .catm-empty-reset {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    background: var(--r2-ink) !important;
    color: var(--r2-paper) !important;
    border: 1px solid var(--r2-ink) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 24px !important;
    margin-top: 12px !important;
  }
  html:not(#_) .catm-empty { padding: 48px 16px !important; color: var(--r2-ink-2) !important; }
  html:not(#_) .catm-empty-big {
    font-family: var(--r2-body) !important;
    font-size: 1.1875rem !important;          /* 19px */
    font-weight: 650 !important;
    color: var(--r2-ink) !important;
    margin-bottom: 8px !important;
  }
  html:not(#_) .catm-empty p {
    font-size: 1rem !important;
    color: var(--r2-ink-2) !important;
    margin: 0 0 16px !important;
  }

  /* ── Filters sheet ─────────────────────────────────────────────────────
     A modal is still paper and a hairline: the shipped 40px drop shadow goes,
     a 1px top hairline separates the sheet from the scrim, and the corner
     radius comes down from 18px to the card radius. */
  html:not(#_) .catm-sheet-scrim { background: var(--r2-scrim) !important; }
  html:not(#_) .catm-sheet {
    background: var(--r2-paper) !important;
    border-top: 1px solid var(--r2-hair) !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
  }
  html:not(#_) .catm-sheet-grab { background: var(--r2-hair-2) !important; }
  html:not(#_) .catm-sheet-head {
    padding: 8px 16px 4px !important;
    min-height: 44px !important;
  }
  html:not(#_) .catm-sheet-head h2 {
    font-family: var(--r2-body) !important;
    font-size: 1.1875rem !important;          /* 19px */
    font-weight: 650 !important;
    color: var(--r2-ink) !important;
    margin: 0 !important;
  }
  html:not(#_) .catm-sheet-x {
    color: var(--r2-ink-2) !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.5rem !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }
  html:not(#_) .catm-sheet-body { padding: 12px 16px 16px !important; gap: 16px !important; }
  html:not(#_) .catm-field { gap: 4px !important; }
  html:not(#_) .catm-field > span {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--r2-ink-2) !important;
  }
  html:not(#_) .catm-field select {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    color: var(--r2-ink) !important;
    background-color: var(--r2-sunk) !important;
    background-image: var(--r2-arrow) !important;
    background-position: right 16px center !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 40px 0 12px !important;
  }
  html:not(#_) .catm-sheet-foot {
    padding: 12px 16px 16px !important;
    gap: 12px !important;
    border-top: 1px solid var(--r2-hair) !important;
  }
  html:not(#_) .catm-reset {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink) !important;
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
  }
  html:not(#_) .catm-apply {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    color: var(--r2-paper) !important;
    background: var(--r2-ink) !important;
    border: 1px solid var(--r2-ink) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   DESKTOP — the browse shell (.catalog-shell + #resBody.cat-grid, catalog.js)
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 861px) {

  html:not(#_) .wrap,
  html:not(#_) main.wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* ── Page head ─────────────────────────────────────────────────────────
     Same headline role as the phone: the display face, once. */
  html:not(#_) .search-head { margin: 24px 0 16px !important; gap: 16px !important; }
  html:not(#_) .search-title {
    font-family: var(--r2-display) !important;
    font-size: 1.5rem !important;             /* 24px */
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.011em !important;
    color: var(--r2-ink) !important;
  }
  html:not(#_) .search-title em {
    font-style: normal !important;
    color: var(--r2-ink) !important;
  }
  html:not(#_) .search-stats {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    color: var(--r2-ink-2) !important;
    gap: 4px 16px !important;
  }
  html:not(#_) .search-stats strong {
    font-family: var(--r2-body) !important;
    color: var(--r2-ink) !important;
    font-weight: 650 !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* ── The toolbar ───────────────────────────────────────────────────────
     Paper, one hairline, 10px radius, no shadow. It is sticky, so it must be
     opaque: the grid scrolls behind it. */
  html:not(#_) .filters,
  html:not(#_) .catalog-toolbar {
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin: 0 0 24px !important;
  }
  /* The toolbar's two tracks are rebalanced (1.4fr/2fr -> 1fr/2.6fr) purely so
     the facet row still fits THREE selects per line once their labels are
     16px: at the shipped ratio the wider selects wrapped to three rows, and a
     three-row sticky toolbar eats the results. Same controls, same order, same
     auto-fit-and-wrap behaviour — only the track ratio and the floor move. */
  html:not(#_) form.f {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr) !important;
    gap: 12px !important;
  }
  html:not(#_) .filter-primary { gap: 8px !important; }
  html:not(#_) .filter-secondary {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)) !important;
    gap: 8px !important;
  }
  html:not(#_) input.f-q {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    color: var(--r2-ink) !important;
    background: var(--r2-sunk) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
  }
  html:not(#_) input.f-q::placeholder { color: var(--r2-ink-2) !important; }
  html:not(#_) input.f-q:focus { border-color: var(--r2-hair-2) !important; }
  html:not(#_) .f-go {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    color: var(--r2-paper) !important;
    background: var(--r2-ink) !important;
    border: 1px solid var(--r2-ink) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    filter: none !important;
  }
  html:not(#_) .f-go:hover { filter: none !important; background: var(--r2-ink) !important; }
  html:not(#_) .filter-secondary select {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    color: var(--r2-ink) !important;
    background-color: var(--r2-sunk) !important;
    background-image: var(--r2-arrow) !important;
    background-position: right 12px center !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    min-height: 44px !important;
    padding: 0 36px 0 12px !important;
  }
  html:not(#_) .filter-secondary select:focus { border-color: var(--r2-hair-2) !important; }
  html:not(#_) .f-reset {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink) !important;
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 6px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
  }
  html:not(#_) .f-reset:hover { color: var(--r2-ink) !important; }

  /* ── The grid ──────────────────────────────────────────────────────────
     150px minimum columns gave five ~150px tracks (the desktop Buddy rail
     takes ~380px of the 1280, so the grid only ever gets ~850) — too narrow
     for a 16px name and a 24px price. 190px yields four comfortable tracks and
     keeps the "phone column, widened" rhythm rather than a denser design. */
  html:not(#_) .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 24px 16px !important;
    align-items: stretch !important;
    padding: 0 0 24px !important;
  }

  html:not(#_) .cat-card {
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding-bottom: 44px !important;          /* the Ask-Buddy foot */
    transition: border-color var(--r2-dur-fast) var(--r2-ease) !important;
  }
  html:not(#_) .cat-card:hover { border-color: var(--r2-hair-2) !important; }
  html:not(#_) .cat-card-oos {
    border-color: var(--r2-hair) !important;
    background: var(--r2-paper) !important;
  }
  html:not(#_) .cat-card .card-link { border-radius: 10px !important; }

  /* The photo plate: light in both modes (cut-out-on-white shots). */
  html:not(#_) .cat-frame {
    background: var(--r2-plate) !important;
    border-bottom: 1px solid var(--r2-hair) !important;
    height: 132px !important;
    padding: 12px 12px 8px !important;
  }
  html:not(#_) .cat-frame img { max-width: 100% !important; }

  /* Ask Buddy: shipped as an unlabelled 34px sparkle floating on the photo —
     an icon in a card, outside the icon budget, and under the tap minimum.
     The label is already in the DOM (visually hidden by wb-components.css);
     unhiding it and moving the control to the card foot gives the desktop
     card the SAME text affordance the phone card has ("Good fit for me?").
     .cat-frame drops to position:static so the button anchors to the card
     box, which is the element that already carries position:relative. */
  html:not(#_) .cat-frame { position: static !important; }
  
  
  

  html:not(#_) .cat-cbody {
    border-top: 0 !important;
    padding: 12px !important;
  }
  html:not(#_) .cbrand {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--r2-ink-2) !important;
    margin-bottom: 4px !important;
  }
  /* ROW ALIGNMENT. The brand eyebrow is omitted entirely when a bottle has no
     brand family (catalog.js suppresses the "(no brand family)" sentinel), so
     that card's name — and every line under it, including the price — sits
     ~24px higher than its neighbour's. Measured before this rule: the first
     desktop row's two prices at y=218 and y=240. The name is the body's first
     child exactly when the eyebrow is absent, so the eyebrow's own box
     (20px line + 4px) is reserved there instead. Layout only; nothing is
     added to, removed from or reordered in the DOM. */
  html:not(#_) .cat-cbody > .cname:first-child { margin-top: 24px !important; }
  html:not(#_) .cname {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;               /* 16px */
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.006em !important;
    color: var(--r2-ink) !important;
    margin: 0 !important;
    min-height: 2.6em !important;             /* 2-line clamp, row alignment */
  }
  html:not(#_) .cat-card:hover .cname { color: var(--r2-ink) !important; }
  html:not(#_) .csub {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: var(--r2-ink-2) !important;
    margin: 4px 0 0 !important;
    min-height: 1.4em !important;
  }
  html:not(#_) .cat-price-wrap { padding-top: 8px !important; }
  html:not(#_) .cprice {
    font-family: var(--r2-body) !important;
    font-size: 1.5rem !important;             /* 24px — the biggest thing */
    font-weight: 650 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.011em !important;
    color: var(--r2-ink) !important;
    font-variant-numeric: tabular-nums !important;
  }
  html:not(#_) .cprice .dollar {
    font-family: var(--r2-body) !important;
    font-size: 1.0625rem !important;          /* 17px */
    font-weight: 650 !important;
    color: var(--r2-ink) !important;
  }
  html:not(#_) .cprice .cur {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;          /* 13px — a label */
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    color: var(--r2-ink-2) !important;
    margin-left: 6px !important;
  }
  html:not(#_) .cprice-none {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-style: normal !important;
    color: var(--r2-ink-2) !important;
  }
  html:not(#_) .cstock.stock-chip,
  html:not(#_) .cstock.stock-out {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    color: var(--r2-ink-2) !important;
    background: var(--r2-paper) !important;
    border: 1px solid var(--r2-hair) !important;
    border-radius: 12px !important;
    padding: 2px 10px !important;
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
  }
  /* The retailer line: ink + underline, a real 44px target (copied from the
     landing sheet — same element, same class, same treatment). */
  html:not(#_) .cat-card .card-buy {
    font-family: var(--r2-body) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--r2-ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 4px 0 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: var(--r2-hair-2) !important;
  }
  html:not(#_) .cat-card .card-buy:hover {
    color: var(--r2-ink) !important;
    text-decoration-color: var(--r2-ink) !important;
  }
  /* `.95em` of a 13px link is 12.35px — under the 13px floor, on a glyph that
     is part of the link's own sentence. Same size as the words it follows. */
  html:not(#_) .cat-card .card-buy-arr {
    color: var(--r2-ink) !important;
    font-size: 1em !important;
  }

  html:not(#_) .cat-empty { color: var(--r2-ink-2) !important; padding: 48px 24px !important; }
  html:not(#_) .cat-empty-big {
    font-family: var(--r2-body) !important;
    font-size: 1.1875rem !important;
    font-weight: 650 !important;
    color: var(--r2-ink) !important;
  }
  html:not(#_) .btn-more {
    font-family: var(--r2-body) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    background: var(--r2-ink) !important;
    color: var(--r2-paper) !important;
    border: 1px solid var(--r2-ink) !important;
    border-radius: 6px !important;
    min-height: 48px !important;
    padding: 0 24px !important;
  }
  html:not(#_) .btn-more:hover { background: var(--r2-ink) !important; }
}

/* ══ The 90-day price bar (admin flag, desktop card) ═══════════════════════
   Copied verbatim from the landing round, including its horizontal-scroll
   fix: the "today $NNN" pill is absolutely positioned at an INLINE
   `left:<pct>%` written by catalog.js, which CSS cannot clamp, so it is taken
   out of absolute positioning and sits as a flush-left caption above the
   track. Same element, same words, same order; the dot still carries the
   position. */
html:not(#_) .price-bar { margin-top: 12px !important; }
html:not(#_) .price-bar-track-wrap { padding-top: 0 !important; }
html:not(#_) .price-bar-tag {
  position: static !important;
  transform: none !important;
  display: inline-block !important;
  background: transparent !important;
  color: var(--r2-ink-2) !important;
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html:not(#_) .price-bar-tag::after { display: none !important; }
html:not(#_) .price-bar-track {
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--r2-hair) !important;
}
html:not(#_) .price-bar-fill { background: var(--r2-hair-2) !important; }
html:not(#_) .price-bar-dot {
  width: 8px !important;
  height: 8px !important;
  background: var(--r2-accent) !important;
  border: 2px solid var(--r2-paper) !important;
}
html:not(#_) .price-bar-ends {
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  color: var(--r2-ink-2) !important;
  margin-top: 6px !important;
}
/* Every caption reserves two lines so the tracks in a row sit at the same y
   whether the caption wraps or not (Robert on the landing sheets: "my ocd is
   triggered by the horizontal bar ... at a different height"). */
html:not(#_) .price-bar-caption {
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  min-height: 2.8em !important;
  color: var(--r2-ink-2) !important;
  margin-top: 2px !important;
}

/* ══ Chips, panels and leftover coloured surfaces ══════════════════════════ */
html:not(#_) .chip,
html:not(#_) .chip-brand,
html:not(#_) .chip-rel,
html:not(#_) .idx,
html:not(#_) .act-tag,
html:not(#_) .status-chip {
  background: var(--r2-paper) !important;
  color: var(--r2-ink-2) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 999px !important;
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
}
html:not(#_) .panel,
html:not(#_) .idx-feature,
html:not(#_) .hist-row {
  background: var(--r2-paper) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
}
html:not(#_) .note,
html:not(#_) .muted {
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: var(--r2-ink-2) !important;
  max-width: 34em !important;
}

/* ══ Footer ════════════════════════════════════════════════════════════════
   catalog.css pins an espresso footer with literal hexes (var(--sk-q-shadow) / #cdbba3),
   which no token remap can reach — every leg is answered here, exactly as the
   landing sheet does. */
html:not(#_) .wb-footer {
  background: var(--r2-paper) !important;
  border-top: 1px solid var(--r2-hair) !important;
  color: var(--r2-ink-2) !important;
  margin-top: 48px !important;
  padding: 32px 0 24px !important;
}
html:not(#_) .wb-footer-in,
html:not(#_) .wb-foot-bottom {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
html:not(#_) .wb-footer .wb-foot-tag,
html:not(#_) .wb-footer .wb-foot-bottom { color: var(--r2-ink-2) !important; }
html:not(#_) .wb-footer .wb-foot-head {
  color: var(--r2-ink-2) !important;
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.06em !important;
}
html:not(#_) .wb-footer .wb-foot-nav a {
  color: var(--r2-ink) !important;
  font-size: 1rem !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: var(--r2-hair-2) !important;
}
html:not(#_) .wb-footer .wb-mark { border-color: var(--r2-hair) !important; }
html:not(#_) .wb-foot-bottom { border-top: 1px solid var(--r2-hair) !important; }

/* ══ Buddy dock / floating chrome ══════════════════════════════════════════
   Not this round's surface, but it paints ON this page — so it gets the same
   paper and hairline rather than a white slab on dark paper. */


/* ── Motion: 120ms for state, one curve, and none of it under reduce ─────── */
@media (prefers-reduced-motion: reduce) {
  html:not(#_) *,
  html:not(#_) *::before,
  html:not(#_) *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
