/*
 * wb-bottle-restyle-a.css — T483 bottle-page round: restyle "A" applied to
 * the REAL bottle page (/v2/bottle/{canonical_name}), shipped behind the
 * SAME flag that gates the Buddy chat restyle (WB_BUDDY_RESTYLE_A_USERS
 * allow-list, the wb_restyle_a cookie, or ?restyle=a — auth.resolve_restyle_a,
 * shared with /v2/buddy). Robert approved building this in (ask #1908
 * "approved. looks good.") after reviewing the proof render in
 * sprint-state/ui-rebuild/bottle-round/ (a_*.png).
 *
 * APPEARANCE ONLY (Robert, 2026-08-27, ask #1902; the bottle page's own
 * carve-out, ask #1903: his tap-to-rate stars stay on the card). Every
 * selector below already exists in the shipped DOM — nothing here can add,
 * remove, reorder or reword an element. The pills, the stars, the retailer
 * rows, the tabs, the Ask-Buddy affordance, the Buddy dock and every word of
 * copy are exactly what ships today; this file only repaints them.
 *
 * Direction: the SAME token system as the shipped Buddy sheet
 * (bourbon_watch/v2_app/static/css/the former Buddy stylesheet) — 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.
 *
 * Link colour (ask #1909): one accent, ink + underline — the classic-blue
 * --wb-link-blue ruling from 2026-08-24 does NOT apply when this flag is on.
 * bottle-card2.css still owns the --wb-link-blue token (unchanged, unread
 * here); this sheet overrides the PROPERTY on the price/retailer link rules
 * below with !important, exactly as wb-quiet-tokens.css already does for
 * other tokens — no owned custom property is redefined.
 *
 * SPECIFICITY: bottle-card2.css re-asserts most of these properties from
 * selectors carrying up to three classes, and the template writes the
 * display-name and price sizes as INLINE styles. `html:not(#_)` matches
 * every page and buys one ID-level step; `!important` beats the inline
 * sizes. It is a cascade lever, not a hook.
 *
 * PROVENANCE: the rule body below (from the @font-face on) is byte-identical
 * to the proof sheet that earned ask #1908's approval,
 * sprint-state/ui-rebuild/bottle-round/override-bottle-a.css (which was
 * injected over the real page via page.add_style_tag() for that render).
 * This file is the same rules, now linked for real, ONLY when the flag is
 * on, from templates/pages/bottle_card2.html — no product CSS, template or
 * Python markup 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-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);
}

@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;
  }
}

/* ── The page's own token block, re-pointed ────────────────────────────────
   bottle-card2.css defines 15 `--bc2-*` custom properties and every rule in
   that sheet reads them. Re-pointing the properties is a pure value swap: no
   selector in the product sheet is rewritten, and the page gains a dark mode
   it has never had (the live page is white at night, in both schemes). */
html:not(#_),
html:not(#_)[data-bc2],
html:not(#_)[data-bc2="1"] {
  --bc2-ink:       var(--r2-ink);
  --bc2-ink2:      var(--r2-ink);
  --bc2-mut:       var(--r2-ink-2);
  --bc2-faint:     var(--r2-ink-2);
  --bc2-paper:     var(--r2-paper);
  --bc2-panel:     var(--r2-surface);
  --bc2-line:      var(--r2-hair);
  --bc2-green:     var(--r2-accent);
  --bc2-greenDeep: var(--r2-accent);
  --bc2-greenInk:  var(--r2-accent);
  --bc2-greenWash: var(--r2-sunk);
  --bc2-dock:      var(--r2-sunk);
  --bc2-cream:     var(--r2-paper);
  --bc2-gold:      var(--r2-ink);
  --bc2-espresso:  var(--r2-ink);
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
html:not(#_),
html:not(#_) body.bc2-page {
  background: var(--r2-paper) !important;
  color: var(--r2-ink) !important;
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;               /* the 16px floor, on the page */
  line-height: 1.5 !important;
}
/* No shadows. Ever. Separation is a hairline. */
html:not(#_) body.bc2-page *,
html:not(#_) body.bc2-page *::before,
html:not(#_) body.bc2-page *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}
html:not(#_) .bc2-status-mask { background: var(--r2-paper) !important; }

/* ── Header: paper, one hairline, three 44px targets ───────────────────── */
html:not(#_) .bc2-header {
  background: var(--r2-paper) !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px !important;
  gap: 8px !important;
}
html:not(#_) .bc2-header .wb-brand {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  color: var(--r2-ink) !important;
  text-decoration: none !important;
}
/* wb-quiet-tokens pins the wordmark at `#111111 !important` from
   `.wb-word,.wb-word .wb-w,.wb-nav a,.wb-brand` — invisible on dark paper,
   so every leg of that selector is answered here. */
html:not(#_) .bc2-header .wb-word,
html:not(#_) .bc2-header .wb-word .wb-w,
html:not(#_) .bc2-header .wb-word .wb-b,
html:not(#_) .bc2-header .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 is a brass GRADIENT clipped to the text
   (`-webkit-text-fill-color:transparent`), so `color` alone cannot reach it —
   it reads as a second accent that means nothing, and it is invisible against
   dark paper. Flattened to one ink word in the display face. */
html:not(#_) .bc2-header .wb-word .wb-b,
html:not(#_) .bc2-header .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(#_) .bc2-header .wb-mark,
html:not(#_) .bc2-header .wb-mark img {
  border-radius: 6px !important;
  border: 0 !important;
}
html:not(#_) .bc2-header-right { gap: 4px !important; }
html:not(#_) .bc2-header-search,
html:not(#_) .bc2-header-right .wb-bell-btn,
html:not(#_) .bc2-menu-wrap .wb-menu-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;
}
/* Icons are 1.5px strokes in ink — never a filled disc, never coloured. */
html:not(#_) .bc2-header-search svg,
html:not(#_) .bc2-header-right .wb-bell-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 1.5 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-menu-wrap .wb-menu-burger span {
  background: var(--r2-ink) !important;
  height: 1.5px !important;
}
html:not(#_) .bc2-menu-wrap .wb-menu[open] .wb-menu-btn {
  background: var(--r2-sunk) !important;
  border: 0 !important;
}
html:not(#_) .bc2-menu-wrap .wb-menu[open] .wb-menu-burger span {
  background: var(--r2-ink) !important;
}
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-menu-pop a { color: var(--r2-ink) !important; }
html:not(#_) .wb-bell-dot,
html:not(#_) .wb-bell-badge {
  background: var(--r2-accent) !important;
  color: var(--r2-accent-ink) !important;
}

/* ── Hero ──────────────────────────────────────────────────────────────────
   WHAT ACTUALLY SHIPS TODAY (read before changing anything here): the live
   page is bottle-card2.css AS OVERRIDDEN BY wb-quiet-tokens.css, which is
   linked last. That sheet already letterboxes the editorial photo
   (`background-size:contain; background-position:top center;
   padding-top:280px` on .bc2-hero-editorial) and drops .bc2-name-block out of
   its old absolute overlay into normal flow on white — so the name, spec line,
   stars and Ask-Buddy button sit on PAPER, under the photo, not on the image.
   That is already Robert's reference shape; this round does not re-invent it.

   THE PHOTOGRAPH IS NOT TOUCHED. Its size, crop and position are exactly what
   ships (see NOTES.md §6: the letterbox is height-fitted to the whole hero
   box, so a tall bottle's base is cropped — the fix is a photo-size change
   and is listed as a future item, not done here). Only the plate under it and
   the type beside it are repainted. */
html:not(#_) .bc2-hero {
  margin-top: 0 !important;
  /* Nothing touches the screen edge except a photo — the plate is full
     bleed, and the type below gets its own 16px gutter. */
  padding-left: 0 !important;
  padding-right: 0 !important;
  /* Self-critique: the hero's own bottom rule sat ~10px above the tab
     strip's, so the two read as one thick smudged separator — the same
     two-parallel-hairlines fault round 2 caught in the chat. The tab strip
     keeps its rule; the hero closes with air. */
  border-bottom: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background-color: var(--r2-paper) !important;
}
/* The photo well. White is the only value the live sheet knows; a recessed
   warm plate is the token-sheet role for "an image well", and it is the one
   value that also works at night.

   `background-size` is PINNED, not re-tuned. Live, the photo is
   `contain`-fitted to the WHOLE hero box, so its scale silently tracks the
   height of the text below it — a two-line bottle name renders the photo
   noticeably bigger than a one-line one, and this round's 44px star row made
   that worse. 400px is the height the live page already renders for a
   one-line name (measured: 403.9px), so the photo is the same size it is
   today and no longer moves when the name wraps. The crop itself is
   untouched and stays a future item (NOTES.md §6). */
html:not(#_) .bc2-hero-editorial {
  background-color: var(--r2-sunk) !important;
  /* 2026-08-28 (Robert, on his phone: Elijah Craig 12 A119 showed only the
     plate, the bottle below the fold). `auto 400px` was pinned against a
     square photo; the portrait display photos (287x512) are taller than the
     280px well the live sheet reserves, so top-anchoring cropped the base.
     The well is now a fixed 400px and the WHOLE photo fits inside it,
     whatever its aspect — scale is still independent of the text below. */
  /* 2026-10-12 (Robert's screenshot, Michter's US*1 Sour Mash: bottle base
     cut off). `contain` fitted the photo to the WHOLE hero box (440 well +
     the name block below it), so the photo grew taller than the well and
     the name block's paper plate painted over its base. The photo is now
     sized to the well itself (auto 440px, top-anchored) so it is always
     shown whole, and the side space is filled with a blurred, darkened
     copy of the same photo (::before) under a sharp copy (::after) — the
     treatment ask #2322's bar-top hero already uses. Qwen review picked
     this over plain paper sides and asked for 440 over 400. */
  position: relative !important;
  padding-top: 440px !important;
  background-size: auto 440px !important;
  background-position: center top !important;
}
html:not(#_) .bc2-hero-editorial::before {
  content: "" !important; display: block !important;
  position: absolute !important; left: -24px; right: -24px; top: -24px;
  height: 488px; z-index: 0; pointer-events: none;
  background-image: inherit !important;
  background-size: cover !important; background-position: center !important;
  filter: blur(22px) brightness(.55) saturate(1.1);
}
html:not(#_) .bc2-hero-editorial::after {
  content: "" !important; display: block !important;
  position: absolute !important; left: 0; right: 0; top: 0;
  height: 440px; z-index: 0; pointer-events: none;
  background-image: inherit !important; background-repeat: no-repeat !important;
  background-size: auto 100% !important; background-position: center top !important;
  box-shadow: inset 0 0 80px rgba(0,0,0,.35);
}
html:not(#_) .bc2-name-block {
  position: relative !important;
  /* T513: was z-index:1, below the cutout/bench column's z-index:2 — on
     high-scale cutouts (up to 1.9x, bottle-card2.css:389-420) the
     absolutely-positioned bottle painted over this in-flow block whenever
     their boxes spatially overlapped. 3 matches the stacking order the
     base design already intended (bottle-card2.css .bc2-name-block,
     above the cutout(2)/glow/shadow(1) layers), independent of the hero's
     own overflow clipping (which only catches bleed past the hero's own
     edges, not an in-box overlap like this one). */
  z-index: 3 !important;
  background: var(--r2-paper) !important;
  padding: 16px 16px 0 !important;
}
/* 2026-08-31 (T513 round 4 -> 5, Robert's phone — Knob Creek X Rye at
   390px): the cutout hero overlapped BY CONSTRUCTION. .bc2-art-col-bench is
   absolutely centred (top:54% + translateY(-50%), bottle-card2.css) inside
   a hero whose flow height this name-block sets, so the bottle box and the
   text block always crossed; the opaque paper plate above (z3) painted out
   the top two-thirds of the bottle. Round 3 made the plate transparent and
   the text then interleaved the bottle — reverted same day (NOTE.md).
   Round 4 mirrored the editorial hero's photo-above-text shape below
   600px. Round 5 (same day, adversarial-review record) extends that
   composition to EVERY width and folds the fill-ratio scale into the box:
   - >=600px kept the absolute composition, where the same opaque in-flow
     panel still covered the bottle's cap on all 383 bench pages (review
     P1), and the desktop cap block's height:400px would clip the taller
     flow stack — so the flow hero also unpins that height (min-height
     rules are untouched: the mobile 100cqw floor stays the floor below
     600px, and editorial/monogram heroes never match this selector).
   - the fixed 72px margin could not clear a scaled bottle: the base
     transform (origin 50% 100%) grows the rendered bottle ABOVE its
     layout box, up to 0.9x box height at the 1.9 scale cap, so ~260 pages
     with cutout_scale >~1.09 put the cap's top edge into the chips band
     on phones (review P2). In flow the BOX itself carries the scale —
     max-width calc(cap x scale) — so the reserved band IS the bottle's
     real height at every scale; the column shrink-wraps (fit-content) so
     the glow/plinth-shadow keep their bottle-relative geometry, and the
     72px margin is purely the chips-row clearance (12px top + 44px pill).
   Scoped :not(.bc2-hero-editorial) AND :has(.bc2-art-col-bench): the
   editorial hero (photo is the hero's own background — no bench child) and
   the monogram-plinth fallback (no cutout, no bench) can never match, so
   neither path gains a stray empty band. :has() degrades safely — an
   engine without it simply keeps the pre-round-4 layout. */
html:not(#_) .bc2-hero:not(.bc2-hero-editorial):has(.bc2-art-col-bench) {
  height: auto !important;
}
html:not(#_) .bc2-hero:not(.bc2-hero-editorial):has(.bc2-art-col-bench) .bc2-art-col-bench {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 72px auto 0 !important;
  width: fit-content !important;
  display: flex !important;
  justify-content: center !important;
}
/* Round 5's scale-in-the-box: the cap values mirror the base sheet's own
   ladder (185px, 155px at <=390px — bottle-card2.css .bc2-art-col-bench
   .bc2-cutout), multiplied by the per-bottle fill-ratio scale the template
   emits inline; the base transform is switched OFF in the flow scope so
   nothing renders outside the band the flow stack reserved. Default var 1
   reproduces the un-scaled caps exactly. */
html:not(#_) .bc2-hero:not(.bc2-hero-editorial):has(.bc2-art-col-bench) .bc2-art-col-bench .bc2-cutout {
  max-width: calc(185px * var(--bc2-cutout-scale, 1)) !important;
  transform: none !important;
}
@media (max-width: 390px) {
  html:not(#_) .bc2-hero:not(.bc2-hero-editorial):has(.bc2-art-col-bench) .bc2-art-col-bench .bc2-cutout {
    max-width: calc(155px * var(--bc2-cutout-scale, 1)) !important;
  }
}
/* The floating-bottle cutout's anti-distortion pin, echoed here with force:
   this sheet is linked LAST, so the img box can never squash or stretch
   (contain + measured canvas ratio) even on an engine that misreads the
   WebP's intrinsic size (2026-08-31, Robert on-device: Knob Creek X Rye
   rendered ~4x stretched wide — no committed rule can do that) or on a
   client that applies this sheet without the base geometry sheet. The
   width/height CAP LADDER deliberately stays in bottle-card2.css (185px
   base, 155px at <=390px) — this echo bans distortion, it does not
   resize. */
html:not(#_) .bc2-art-col-bench .bc2-cutout {
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: var(--bc2-cutout-ratio, auto) !important;
}
html:not(#_) .bc2-eyebrow {
  margin: 0 0 4px !important;
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;          /* 13px — the one caps label */
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--r2-ink-2) !important;
  text-decoration: none !important;
}
/* Serif role 1 of 2: the bottle name. The template writes the size inline
   (name_px 21/25/31px, none of them on the scale) — pinned to 24px here, one
   step under the price, which is the biggest thing on the page. */
html:not(#_) .bc2-display-name {
  margin: 0 0 4px !important;
  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;
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
}
html:not(#_) .bc2-spec-line {
  margin: 0 0 4px !important;
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;               /* 16px — the style/ABV line */
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-spec-dot { margin: 0 6px !important; }
/* Robert's own tap-to-rate stars (ask #1903) — same row, same order, same
   journal-API handlers, now a real 44px target each instead of 15x17px.
   Ink, not gold: the accent means money or a deal and only that, and a
   rating is neither. */
html:not(#_) .bc2-stars {
  display: flex !important;
  gap: 0 !important;
  margin: 0 0 0 -10px !important;           /* -10px optically aligns the
                                               first glyph to the left rule */
  padding: 0 !important;
}
html:not(#_) .bc2-star {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 1.1875rem !important;          /* 19px glyph */
  line-height: 1 !important;
  color: var(--r2-ink-3) !important;
  transition: color 120ms var(--r2-ease) !important;
}
html:not(#_) .bc2-star.on,
html:not(#_) .bc2-star.hov { color: var(--r2-ink) !important; }
/* The Ask-Buddy affordance: same button, same opener, its own line. It used
   to share the stars' line, which is why the live page has 15px stars — at
   any real tap size the two collide. */
html:not(#_) .bc2-ask-shortcut {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;               /* the 16px floor */
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1px !important;
}
/* Watching / Favourite: same two chips, same ids, same state system (the
   +/✓ glyph and the fill swap are bottle-card2.css's, untouched; the bell
   glyph inside Favourite stays hidden, as it ships) — a real 44px target,
   a round pill instead of the live 4px box, and a hairline instead of a
   glass fill. They straddle the photo's edge and the plate, so they are a
   solid surface with a hairline rather than anything translucent. */
/* wb-quiet-tokens paints white-with-a-hairline over every class whose name
   contains "chip", "pill" or "badge" — which catches the chips' own flex
   CONTAINER and draws a white box behind both pills. It is not a chip. */
html:not(#_) .bc2-hero-chips {
  top: 12px !important;
  right: 12px !important;
  gap: 8px !important;
  max-width: calc(100% - 24px) !important;
  background: none !important;
  border: 0 !important;
}
html:not(#_) .bc2-pill {
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--r2-hair-2) !important;
  background: var(--r2-surface) !important;
  color: var(--r2-ink) !important;
  font-family: var(--r2-body) !important;
  font-size: 0.875rem !important;           /* 14px — a chip label */
  font-weight: 500 !important;
  gap: 6px !important;
}
html:not(#_) .bc2-pill-on {
  background: var(--r2-accent) !important;
  border-color: var(--r2-accent) !important;
  color: var(--r2-accent-ink) !important;
}
/* Monogram fallback (a bottle with no cutout on disk): a hairline plate. */
html:not(#_) .bc2-monogram-plinth {
  background: var(--r2-sunk) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
}
html:not(#_) .bc2-monogram { color: var(--r2-ink-2) !important; }

/* ── Tabs: a label row, not a control ──────────────────────────────────── */
html:not(#_) .bc2-tabs {
  background: var(--r2-paper) !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  padding: 0 16px !important;
  gap: 24px !important;
  scrollbar-width: none !important;
}
html:not(#_) .bc2-tabs::-webkit-scrollbar { display: none !important; }
/* wb-quiet-tokens rounds every <button> to 4px, which curls the ends of the
   active tab's 2px underline so it reads as a detached stub floating under
   the word. A rule is a rule. */
html:not(#_) .bc2-tab {
  min-height: 48px !important;
  min-width: 44px !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;               /* the 16px floor */
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: var(--r2-ink-2) !important;
  border-bottom: 2px solid transparent !important;
}
/* Weight and an ink rule mark the active tab. The accent is not a state
   colour — it means money, and only money. */
html:not(#_) .bc2-tab-active {
  font-weight: 650 !important;
  color: var(--r2-ink) !important;
  border-bottom-color: var(--r2-ink) !important;
}

html:not(#_) .bc2-panels { padding: 0 16px !important; }
html:not(#_) .bc2-panel:last-child { padding-bottom: 24px !important; }
html:not(#_) .bc2-section-title {
  margin: 32px 0 8px !important;
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;          /* 13px caps label */
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-source-caption,
html:not(#_) .bc2-blurb p.bc2-source-caption {
  /* Blurb source caption: small, muted, tucked under the blurb so it reads
     as "— curated tasting notes", not a heading with nothing under it. */
  font-size: 0.75rem !important;
  font-style: italic;
  color: var(--r2-ink-3, #8a7a66) !important;
  margin: -0.25rem 0 1.25rem !important;
}
html:not(#_) .bc2-source-caption::before { content: "\2014\00a0"; }
/* Walk 26: the blurb rule `.bc2-blurb p` (1rem, full ink) is later in this
   sheet and beat the caption on size and colour, so on phones the caption
   read as a black italic heading. Same specificity as it, set again after it
   in the Bottle tab block below. */
html:not(#_) .bc2-empty {
  font-size: 0.875rem !important;           /* 14px secondary body */
  color: var(--r2-ink-2) !important;
}

/* ── Best price: the one landing spot on the page ──────────────────────── */
html:not(#_) .bc2-price-card {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  border-radius: 0 !important;
  padding: 16px 0 24px !important;
  margin-top: 0 !important;
}
html:not(#_) .bc2-pill-target {
  top: 12px !important;
  right: 0 !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid var(--r2-hair-2) !important;
  border-radius: 999px !important;
  background: none !important;
  color: var(--r2-ink-2) !important;
  font-family: var(--r2-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}
html:not(#_) .bc2-pill-target.bc2-pill-on {
  background: var(--r2-accent) !important;
  border-color: var(--r2-accent) !important;
  color: var(--r2-accent-ink) !important;
}
html:not(#_) .bc2-verdict { padding: 0 !important; }
html:not(#_) .bc2-verdict-line { min-height: 20px !important; }
/* .bc2-verdict-dot is already `display:none` in production (wb-quiet-tokens
   retired the traffic-light dot). Nothing here resurrects it. */
/* "GOOD PRICE" is a deal, so it may carry the accent. A neutral verdict
   ("HOLDING", "NO OFFER") is not, and takes label ink. */
html:not(#_) .bc2-verdict-label {
  font-family: var(--r2-body) !important;
  font-size: 0.8125rem !important;          /* 13px caps label */
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: var(--r2-accent) !important;
}
html:not(#_) .bc2-verdict-tone-neutral .bc2-verdict-label {
  color: var(--r2-ink-2) !important;
}
/* Serif role 2 of 2: the price. The biggest thing on the screen, in the
   accent, because the question this page answers is "what does it cost".
   The template writes 42px inline; 30px is the top of the scale. */
html:not(#_) .bc2-price,
html:not(#_) a.bc2-price[href] {
  display: block !important;
  margin: 8px 0 0 !important;
  font-family: var(--r2-display) !important;
  font-size: 1.875rem !important;           /* 30px */
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: var(--r2-accent) !important;
  text-decoration: none !important;
  min-height: 44px !important;
}
html:not(#_) .bc2-price-cur,
html:not(#_) .bc2-price-cents {
  font-size: 0.5em !important;
  font-weight: 650 !important;
}
html:not(#_) .bc2-price-cur { margin-right: 2px !important; }
html:not(#_) .bc2-price-retailer {
  margin: 4px 0 0 !important;
  font-size: 1rem !important;               /* the 16px floor */
}
/* One accent, and it means money. A link is marked by an underline, not by
   a second colour — see NOTES.md, this is the one place the rebuild's rule
   and the settled 2026-08-24 hyperlink-blue token disagree. */
html:not(#_) .bc2-price-retailer a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  color: var(--r2-ink) !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1px !important;
}
html:not(#_) .bc2-verdict-sub,
html:not(#_) .bc2-verdict-sub-noprice,
html:not(#_) .bc2-last-price {
  margin: 4px 0 0 !important;
  font-size: 0.875rem !important;           /* 14px secondary body */
  line-height: 1.5 !important;
  color: var(--r2-ink-2) !important;
}
/* US RRP: a hairline strip, not a cream wash with a filled brown pill. */
html:not(#_) .bc2-us-rrp-strip {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 16px 0 0 !important;
  padding: 12px !important;
  background: none !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-us-rrp-pill {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  color: var(--r2-ink-2) !important;
  font-size: 0.8125rem !important;          /* 13px caps label */
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
}

/* ── Bottle Intelligence: hairline rows, no stripes ────────────────────── */
html:not(#_) .bc2-intel { margin-top: 0 !important; }
html:not(#_) .bc2-intel-title {
  margin: 32px 0 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-intel-card {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html:not(#_) .bc2-intel-row {
  background: none !important;
  align-items: baseline !important;
  gap: 24px !important;
  padding: 12px 0 !important;
  min-height: 44px !important;
  border-bottom: 1px solid var(--r2-hair) !important;
}
html:not(#_) .bc2-intel-row + .bc2-intel-row { border-top: 0 !important; }
html:not(#_) .bc2-intel-label {
  flex: none !important;
  font-size: 1rem !important;               /* the 16px floor */
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-intel-val {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}

/* ── Charts: one accent line, one label ink ────────────────────────────── */
html:not(#_) .bc2-chart-wrap { margin: 16px 0 0 !important; }
html:not(#_) .bc2-chart-line { stroke: var(--r2-accent) !important; }
html:not(#_) .bc2-chart-area {
  fill: var(--r2-accent) !important;
  opacity: .10 !important;
}
html:not(#_) .bc2-chart-dot { fill: var(--r2-accent) !important; }
html:not(#_) .bc2-chart-dot-open {
  fill: var(--r2-paper) !important;
  stroke: var(--r2-accent) !important;
}
html:not(#_) .bc2-chart-label { fill: var(--r2-ink-2) !important; }
html:not(#_) .bc2-chart-caption,
html:not(#_) .bc2-anchor-lbl {
  font-size: 0.8125rem !important;          /* 13px caps label */
  font-weight: 500 !important;              /* a label, not a heading */
  letter-spacing: 0.06em !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-anchor-val {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-anchor-good { color: var(--r2-accent) !important; }

/* ── More like this ────────────────────────────────────────────────────── */
html:not(#_) .bc2-similar-grid { gap: 16px !important; }
html:not(#_) .bc2-similar-card { min-height: 44px !important; }
html:not(#_) .bc2-similar-thumb { filter: none !important; }
html:not(#_) .bc2-monogram-thumb {
  background: var(--r2-sunk) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
}
html:not(#_) .bc2-monogram-thumb span { color: var(--r2-ink-2) !important; }
html:not(#_) .bc2-similar-name {
  margin-top: 8px !important;
  font-size: 0.875rem !important;           /* 14px */
  font-weight: 400 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-similar-price {
  font-size: 1rem !important;
  font-weight: 650 !important;
  color: var(--r2-accent) !important;
}

/* ── Bottle tab ────────────────────────────────────────────────────────── */
html:not(#_) .bc2-blurb p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  max-width: 34em !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-blurb p.bc2-source-caption {
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
  color: var(--r2-ink-3, #8a7a66) !important;
}
html:not(#_) .bc2-fact-row {
  padding: 12px 0 !important;
  min-height: 44px !important;
  align-items: baseline !important;
  gap: 24px !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  font-size: 1rem !important;
}
html:not(#_) .bc2-fact-row dt { color: var(--r2-ink-2) !important; }
html:not(#_) .bc2-fact-row dd { font-weight: 500 !important; }
html:not(#_) .bc2-us-box {
  background: none !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  gap: 16px !important;
}
html:not(#_) .bc2-us-lbl {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-us-val {
  font-size: 1.0625rem !important;          /* 17px */
  font-weight: 650 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-us-approx {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-us-premium,
html:not(#_) .bc2-us-premium-over { color: var(--r2-ink) !important; }

/* ── History tab: the retailer rows ────────────────────────────────────────
   A settings list, not twelve filled cards. One hairline between rows, the
   lowest price in the accent (that IS the deal), everything else in ink, and
   exactly one obvious action on the page — "View ↗" on the lowest row. */
html:not(#_) .bc2-history-chart { margin: 16px 0 !important; }
html:not(#_) .bc2-section-head {
  margin: 32px 0 0 !important;
  align-items: baseline !important;
}
html:not(#_) .bc2-section-title-tight { margin: 0 !important; }
/* "lowest first" is a caption, not a second label — uppercasing it makes it
   compete with the section title beside it. */
html:not(#_) .bc2-section-hint {
  font-size: 0.875rem !important;           /* 14px secondary body */
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-offer-row {
  gap: 16px !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  min-height: 56px !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
}
/* A row with no link inside (in stock but no page address, or out of stock)
   has no .bc2-offer-link to carry the side padding, so it sat flush with the
   page edge. Give it the same side padding the link rows get. */
html:not(#_) .bc2-offer-row:not(:has(> .bc2-offer-link)) {
  padding-left: .75rem !important;
  padding-right: .75rem !important;
}
/* Walk 26: a row with a subscriber/member note (Bourbon Brothers club price)
   had a nowrap-wide price stack that squeezed the name and "was in stock
   until..." into a one-word column and let the note overlap. Let the stack
   shrink and its note wrap; keep a readable minimum for the name column. */
html:not(#_) .bc2-offer-price-stack {
  flex: 0 1 9.5rem !important;
  min-width: 0 !important;
}
html:not(#_) .bc2-offer-member-tag {
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: right;
  line-height: 1.25;
}
html:not(#_) .bc2-offer-row .bc2-offer-main {
  flex: 1 1 8rem !important;
  min-width: 8rem !important;
}
html:not(#_) .bc2-offer-list .bc2-offer-row:last-child {
  border-bottom: 0 !important;
}
html:not(#_) .bc2-offer-lowest {
  background: none !important;
  border-color: var(--r2-hair) !important;
}
/* Out of stock is said in words (the row carries "out of stock") AND the
   row is visibly dimmed (t_f86d5e8c): at full opacity an OOS row reads as
   a live offer. 0.85 keeps the lightest text on the row (ink-2) at WCAG
   AA — 4.78:1 on light paper, 6.38:1 on dark. The base sheet's 55% dim
   (ink-2 at 2.49:1 light) stays overridden for that AA reason, now to the
   AA-safe dim instead of to 1. ink-2 is the lightest text in the row by
   inspection (retailer, size, meta and the oos label are ink-2; the price
   is the darker ink), so 0.85 holds AA for every text on the row. */
html:not(#_) .bc2-offer-oos { opacity: .85 !important; }
/* t_312711fd: 0.85 alone left the price at full ink / weight 500 / 17px
   (the later .bc2-offer-price rule), so an oos-only row still read as a
   live offer. Mute the money to ink-2 / 400; size stays. Never-in-stock
   (T1241) already greys via .bc2-offer-never and is unchanged. */
html:not(#_) .bc2-offer-oos .bc2-offer-price {
  font-weight: 400 !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-offer-retailer {
  font-size: 1rem !important;               /* the 16px floor */
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-offer-oos .bc2-offer-retailer {
  color: var(--r2-ink-2) !important;
  font-weight: 400 !important;
}
html:not(#_) .bc2-offer-meta {
  margin-top: 2px !important;
  font-size: 0.8125rem !important;          /* 13px label */
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-offer-price {
  font-size: 1.0625rem !important;          /* 17px */
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-offer-lowest .bc2-offer-price {
  font-weight: 650 !important;
  color: var(--r2-accent) !important;
}
/* THE one obvious action. */
html:not(#_) .bc2-offer-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  background: var(--r2-accent) !important;
  color: var(--r2-accent-ink) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}
html:not(#_) .bc2-offer-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  border-radius: 6px !important;
  font-size: 1.0625rem !important;
  color: var(--r2-ink-3) !important;
}
/* T1241 (Robert, 2026-10-16, look B): never seen in stock since tracking
   began. Price stays (ask #2044) but the row is greyed so it reads as not
   buyable: sunk panel, lighter weight and smaller price. Words keep full ink-2. */
html:not(#_) .bc2-offer-never {
  background: var(--r2-sunk) !important;
  border-radius: 8px !important;
}
html:not(#_) .bc2-offer-never .bc2-offer-retailer { color: var(--r2-ink-2) !important; }
html:not(#_) .bc2-offer-never .bc2-offer-price {
  font-weight: 400 !important;
  font-size: 0.9375rem !important;
  color: var(--r2-ink-2) !important;   /* ink-3 on sunk is 3.4:1, under AA */
}
html:not(#_) .bc2-offer-oos-label {
  flex: none !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  color: var(--r2-ink-2) !important;
}

/* ── Tasting tab ───────────────────────────────────────────────────────── */
html:not(#_) .bc2-wheel-ring { stroke: var(--r2-hair) !important; }
html:not(#_) .bc2-wheel-fill {
  fill: var(--r2-accent) !important;
  fill-opacity: .10 !important;
  stroke: var(--r2-accent) !important;
}
html:not(#_) .bc2-wheel-label { fill: var(--r2-ink-2) !important; }
html:not(#_) .bc2-wheel-readout {
  font-family: var(--r2-body) !important;
  font-size: 1.0625rem !important;          /* 17px */
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
/* Second catch of the same wb-quiet-tokens blanket that hit .bc2-hero-chips:
   `.bc2-chip-row` contains "chip", so the whole Nose/Palate/Finish ROW was
   painted white — ink-on-white text on dark paper, measured 1.15:1. */
html:not(#_) .bc2-chip-row {
  font-size: 1rem !important;
  margin: 12px 0 !important;
  background: none !important;
  border: 0 !important;
}
html:not(#_) .bc2-chip-row b {
  margin-right: 8px !important;
  font-weight: 500 !important;
  color: var(--r2-ink-2) !important;
}
html:not(#_) .bc2-chip {
  margin: 4px 4px 0 0 !important;
  padding: 4px 10px !important;
  background: none !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 999px !important;
  font-size: 0.875rem !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bc2-chip-signature {
  background: none !important;
  border-color: var(--r2-ink) !important;
  color: var(--r2-ink) !important;
  font-weight: 500 !important;
}
html:not(#_) .bc2-tasting-buddy-card {
  background: none !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-top: 24px !important;
  font-size: 1rem !important;
  color: var(--r2-ink) !important;
}

/* ── Releases tab ──────────────────────────────────────────────────────── */
html:not(#_) .bc2-release-row {
  padding: 0 !important;
  border-bottom: 1px solid var(--r2-hair) !important;
}
html:not(#_) .bc2-release-row a {
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--r2-ink) !important;
}
/* T1584: "Batch not stated" catch-all row — muted, still a link */
html:not(#_) .bc2-release-row--other {
  opacity: .82 !important;
  background: var(--r2-sunk) !important;
}
html:not(#_) .bc2-release-row--other a {
  color: var(--r2-ink-2) !important;
}

/* ── Toast ─────────────────────────────────────────────────────────────── */
html:not(#_) .bc2-toast {
  background: var(--r2-ink) !important;
  color: var(--r2-paper) !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

/* ── The Buddy dock, identical to the shipped Buddy sheet ──────────────────
   the former Buddy script mounts the real .bd-bar on this page and bottle-card2.css
   deliberately does not skin it (T38b: "indistinguishable from the landing
   page"). These are the SAME rules the former Buddy stylesheet ships, so the dock
   reads the same on both surfaces rather than forking a second look. */



html:not(#_) .bdm-ce {
  font-family: var(--r2-body) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--r2-ink) !important;
  min-height: 24px !important;
}
html:not(#_) .bdm-ce:empty::before {
  color: var(--r2-ink-3) !important;
}




/* ── Focus: one visible ring, both modes ───────────────────────────────── */
html:not(#_) a:focus-visible,
html:not(#_) button:focus-visible,
html:not(#_) input:focus-visible,
html:not(#_) textarea:focus-visible,
html:not(#_) [contenteditable]:focus-visible,
html:not(#_) [contenteditable]:focus,
html:not(#_) .bc2-page :focus-visible,
html:not(#_) .bc2-page button:focus,
html:not(#_) .bc2-page a:focus {
  outline: 2px solid var(--r2-focus) !important;
  outline-offset: 2px !important;
}
/* ── Motion: feedback only ─────────────────────────────────────────────── */
html:not(#_) .bc2-tab,
html:not(#_) .bc2-pill,
html:not(#_) .bc2-offer-tag {
  transition: background-color 120ms var(--r2-ease),
              color 120ms var(--r2-ease),
              border-color 120ms var(--r2-ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not(#_) *, html:not(#_) *::before, html:not(#_) *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Desktop: the phone column, centred ────────────────────────────────── */
@media (min-width: 600px) {
  html:not(#_) .bc2-header,
  html:not(#_) .bc2-hero,
  html:not(#_) .bc2-tabs,
  html:not(#_) .bc2-panels {
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* T483 tab renders (2026-08-27): on a phone-height viewport the Tasting
 * radar's bottom labels sat behind the fixed "Message Buddy" bar (pre-existing
 * on the live page). Reserve room under the tasting panel only. */
html:not(#_) .bc2-panel[data-bc2-panel="tasting"] { padding-bottom: 104px !important; }
