/*
 * wb-hub-restyle-a.css — T483 SEO round: restyle "A" on the REAL public
 * SEO hub surface — the last of the six T483 rounds. Proven as
 * sprint-state/ui-rebuild/seo-round/override-hub-a.css (see NOTES.md there);
 * served here byte-identical, linked LAST from templates/pages/hub.html
 * behind the restyle-A flag (route-resolved restyle_a_flag — allow-list OR
 * the RESTYLE_A_COOKIE OR ?restyle=a).
 *
 * FOUR PAGES, ONE TEMPLATE:
 *   /v2/brands        brands index      (.brand-grid / .brand-card tiles)
 *   /v2/brand/{slug}  one brand's range (.card-grid / market `_card` bottles)
 *   /v2/guides        guides index      (.hub-tiles / .hub-tile tiles)
 *   /v2/guide/{slug}  one best-of guide (.card-grid / market `_card` bottles)
 * All four are built in Python (seo_pages.py) and poured into
 * templates/pages/hub.html through page_shell.render_page.
 *
 * APPEARANCE ONLY (Robert, 2026-08-27). Every selector below already exists in
 * the shipped DOM — nothing here can add, remove, reorder or reword an element.
 * The h1, the lead line, every tile, every bottle card, every price and every
 * "checked <date>" caveat is exactly what ships today; this file only repaints
 * them. Proven by render.py, which fingerprints the DOM before and after the
 * override and fails the run if a single attribute or text node moves.
 *
 * Direction: the SAME token system as the landing, bottle, catalogue and
 * account rounds — same paper, ink, hairline, accent and focus values, same
 * 16px body floor, same 13px label floor, same 44/48px tap targets, same "no
 * shadows; a card is a hairline plus padding, never a fill" discipline. Values
 * come from sprint-state/ui-rebuild/tokens.css; nothing here invents a colour,
 * a size, a radius or a duration.
 *
 * ONE ACCENT (ask #1909): burnt whisky, money and deals only. These four pages
 * carry no deal line and no purchase action, so the accent appears in exactly
 * ZERO places on the hub body — the price is the biggest thing on a card, and
 * it is marked by SIZE, not colour, exactly as the catalogue round marks it.
 * The accent stays declared (shared chrome — the header bell badge uses it) but
 * the hub body is entirely greys. The shipped brass hover on `.ht-name` and
 * `.brand-name` (`var(--brass)` / `var(--accent)`) is flattened onto ink.
 *
 * CARD NAMES ARE SANS on every grid surface (owner decision) — the serif is the
 * wordmark and the page h1, and nothing else. Same as the landing and catalogue
 * grids; only the bottle PAGE keeps a serif bottle name.
 *
 * SPECIFICITY KEY: identical to the landing, catalogue and account sheets, and
 * this surface needs it more than any of them. ALL hub-specific CSS is an
 * INLINE `<style>` block inside hub.html's own `{% block head %}`
 * (hub.html:14-29), which sorts AFTER any `<link>` a build could add — an
 * equal-specificity rule in a linked sheet LOSES to it outright. On top of that
 * `_APP_CANVAS_HEAD` (seo_pages.py:304-310) inlines
 * `html,body{background-color:var(--sk-q-bg);color-scheme:light}` into the head of
 * every SEO page. `html:not(#_)` matches every page and buys one ID-level step
 * (1,0,1) so it out-ranks `:root` (0,1,0) and `html,body` (0,0,2) on their own
 * terms; `!important` covers the source-order loss and the product sheets that
 * re-assert these properties with `!important` of their own. It is a cascade
 * lever, not a hook. The proof round injected it with page.add_style_tag();
 * shipped, it is a <link> AFTER hub.html's inline <style> — the same lever
 * covers that source-order loss too. Do not weaken it.
 */

: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);
  --r2-dur-fast: 120ms;   /* state changes; 200ms is for things that move */

  /* Type scale — 13 / 14 / 16 / 17 / 19 / 24 / 30. Nothing in between. */
  --r2-t-micro: 0.8125rem;
  --r2-t-small: 0.875rem;
  --r2-t-body:  1rem;
  --r2-t-lead:  1.0625rem;
  --r2-t-sub:   1.1875rem;
  --r2-t-head:  1.5rem;
  --r2-t-hero:  1.875rem;

  --r2-measure: 34em;     /* the reading-line cap, for prose only */

  /* The image plate. A bottle photo is CONTENT, and the display shots are cut
     out on WHITE (not on transparency) — so the card thumbnail and the brand
     tile's frame stay 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,
     catalogue and account rounds. */
  --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;
  }
}

/* ── The pages' own token blocks, re-pointed ───────────────────────────────
   market.css declares the warm `:root` palette these pages read (--bg / --card
   / --ink / --muted / --line / --accent / --gold / --green / --focus / --round
   / --sans), wb-tokens.css declares a second, and hub.html's OWN inline
   `<style>` re-declares `--round` as Space Grotesk on top of both. Every rule
   in those sheets reads them, so re-pointing the properties is a pure value
   swap — no selector in a product sheet is rewritten — and it is what gives
   all four hub pages a dark mode they have never had.

   `--round` and `--serif` both land on the body face: the rulebook allows two
   faces, and a third (Space Grotesk) is exactly the drift this round closes.
   Block copied from override-account-a.css so the six surfaces cannot drift
   into six palettes. */
html:not(#_),
html:not(#_) body,
html:not(#_) .wb-header {
  --bg: var(--r2-paper);
  --bg-tint: var(--r2-sunk);
  --paper: var(--r2-paper);
  --paper-soft: var(--r2-paper);
  --card: var(--r2-surface);
  --soft: var(--r2-sunk);
  --dark: var(--r2-paper);
  --ink: var(--r2-ink);
  --ink-soft: var(--r2-ink-2);
  --ink-2: var(--r2-ink-2);
  --muted: 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-ink);
  --gold-soft: var(--r2-sunk);
  --brass: var(--r2-ink);
  --brass-deep: var(--r2-ink);
  --burnt: var(--r2-accent);
  --green: var(--r2-ink);
  --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`: seo_pages.py's `_APP_CANVAS_HEAD` paints the
   cream `var(--sk-q-bg)` literal on BOTH html and body from the first head bytes, and
   the page overscrolls past the body on iOS, so a body-only rule leaves a cream
   band above the header. `color-scheme` is restated for the same reason — that
   inline block pins `color-scheme:light`, which would leave the scrollbar and
   every UA-drawn control light on a dark page. */
html:not(#_),
html:not(#_) body,
html:not(#_) main,
html:not(#_) main.hub {
  background: var(--r2-paper) !important;
  color: var(--r2-ink) !important;
  font-family: var(--r2-body) !important;
}
html:not(#_) { color-scheme: light dark !important; }
/* market.css sets `body{font:15px/1.5 var(--sans)}` — a shorthand, so the 16px
   floor has to be restated on the element itself. */
html:not(#_) body {
  font-size: var(--r2-t-body) !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
}
/* 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(#_) body img,
html:not(#_) body svg { filter: none !important; }
/* market.css paints every link caramel (`a{color:var(--accent)}`) and
   underlines it on hover. Links are ink here; the accent is money only. */
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(#_) details:focus-visible,
html:not(#_) [tabindex]:focus-visible {
  outline: 2px solid var(--r2-focus) !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}

/* ══ Header ════════════════════════════════════════════════════════════════
   Copied verbatim from the account round (itself copied from the catalogue
   round) — same markup (wb-header.css / site_chrome.py), same paint, so the
   front door, the catalogue, the account area and the hubs cannot drift into
   four 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: var(--r2-t-sub) !important;
  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: var(--r2-t-micro) !important; }
html:not(#_) .wb-word--onDark .wb-w { color: var(--r2-ink) !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: var(--r2-t-body) !important;
  font-weight: 500 !important;
  color: var(--r2-ink) !important;
}
/* The plan chip 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: var(--r2-t-micro) !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: var(--r2-t-body) !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;
}
/* The sparkle is a mask painted with background-color; ink, not brass. */
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;
}
/* Any inline SVG that paints a saturated gradient disc (the Buddy opener glyph)
   is flattened the same way the catalogue sheet does it: 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;
}

/* ══════════════════════════════════════════════════════════════════════════
   THE HUB SURFACE — shared by all four pages (body.page-hub / main.hub)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── The page column ───────────────────────────────────────────────────────
   The shipped `padding:0 1.2rem` is 19.2px — an invented gutter. 16px is THE
   phone gutter. `margin:1.6rem auto 4rem` becomes 24px above (an unrelated
   block below the header) and 48px below (air before the footer). The 72rem
   grid width is left exactly as it ships: this round repaints, it does not
   re-lay-out, and the landing and catalogue grids are the same width. */
html:not(#_) body.page-hub main.hub {
  margin: 24px auto 48px !important;
  padding: 0 16px !important;
}

/* ── The page title ────────────────────────────────────────────────────────
   The hubs have a real <h1> ("Woodford Reserve Range in Australia"), so this is
   the surface's one display-face headline — the second and last display-face role
   on the screen after the wordmark. Two things change, and both are measured
   rather than read off the source: the shipped 1.7rem (27.2px) is off the type
   scale, and the heading is not actually serif today — wb-quiet-tokens.css:57
   flattens `h1,h2,h3,h4` onto `var(--sans)` with `!important`, so what ships is
   27.2px SANS. 24px is the scale's heading step and matches the catalogue
   round's page title exactly. */
html:not(#_) body.page-hub .hub h1 {
  font-family: var(--r2-display) !important;
  font-size: var(--r2-t-head) !important;      /* 24px */
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.011em !important;
  color: var(--r2-ink) !important;
  margin: 0 0 8px !important;                  /* related: the lead line */
}

/* ── The lead line ─────────────────────────────────────────────────────────
   Shipped as `opacity:.85` on #111 over the white body — measured, not read
   off the source. That is NOT failing AA: the effective colour computes to
   12.32:1. But a faded ink is not a colour ROLE, and nothing can measure it —
   every contrast check in this estate reads `color`, so the shipped line
   reports its UNfaded 18.88:1 and its real value is invisible to the harness.
   It becomes the real secondary-ink token at full opacity instead, which
   measures 6.88:1 light / 8.42:1 dark and is a number the checks can actually
   hold. The reading line is capped at 34em rather than the shipped 48rem
   (768px), which at desktop width runs past the point where the eye loses the
   line return. */
html:not(#_) body.page-hub .hub .hub-lead {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-body) !important;      /* 16px — body never shrinks */
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--r2-ink-2) !important;
  opacity: 1 !important;
  max-width: var(--r2-measure) !important;
  margin: 0 0 24px !important;                 /* unrelated: the grid below */
}

/* ══ /v2/guides — the guide tiles (.hub-tiles / .hub-tile) ═════════════════
   This is the block hub.html's inline <style> owns, and the one that breaks the
   rulebook hardest: a 16px radius, a -4px hover lift, a brass hover recolour,
   and a THIRD type face (`--round:'Space Grotesk'` — which no hub page ever
   fetches, so it silently renders in Inter). It also declares two box-shadows;
   those are already dead on the live page, killed by wb-quiet-tokens.css:51's
   blanket `*{box-shadow:none}`, so the `box-shadow:none` below is belt-and-
   braces rather than a change. What is left becomes what every other card in
   the system is — a hairline plus padding, no fill, no lift. */
html:not(#_) body.page-hub .hub-tiles {
  gap: 24px 16px !important;                   /* rows unrelated, columns tight */
}
html:not(#_) body.page-hub .hub-tile {
  background: var(--r2-paper) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 16px !important;
  gap: 4px !important;                         /* name and sub are one unit */
  min-height: 44px !important;                 /* a real tap target */
  justify-content: center !important;
  transform: none !important;
  transition: border-color var(--r2-dur-fast) var(--r2-ease) !important;
}
html:not(#_) body.page-hub .hub-tile:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--r2-hair-2) !important;
}
html:not(#_) body.page-hub .hub-tile .ht-name {
  font-family: var(--r2-body) !important;      /* not Space Grotesk */
  font-size: var(--r2-t-body) !important;      /* 16px */
  font-weight: 650 !important;                 /* weight marks it, not size */
  line-height: 1.3 !important;
  letter-spacing: -0.006em !important;
  color: var(--r2-ink) !important;
  transition: none !important;
}
/* The shipped hover recolours the name brass. Colour means money here, so the
   hover is the card's edge, not its type. */
html:not(#_) body.page-hub .hub-tile:hover .ht-name {
  color: var(--r2-ink) !important;
}
html:not(#_) body.page-hub .hub-tile .ht-sub {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-micro) !important;     /* 13px — a label */
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--r2-ink-2) !important;
}
/* Every shipped guide tile has an EMPTY sub-line (seo_pages.py:661 passes ""),
   so the element is present but has nothing to say. It keeps no reserved
   height — an empty box that pushes the name off-centre is the "grouping by
   distance" rule broken by an element the reader cannot see. */
html:not(#_) body.page-hub .hub-tile .ht-sub:empty {
  display: none !important;
}

/* ══ /v2/brands — the brand tiles (.brand-grid / .brand-card) ══════════════
   Painted by wb-components.css (moved wholesale from brands.css 2026-07-10).
   Same treatment as the guide tiles, plus a photo plate.

   NOTE the brand name is 16px here while a BOTTLE card's name is 14px. That is
   the "exactly one thing is the biggest thing" rule, not an inconsistency: a
   bottle card carries a 24px price that has to win, and a brand tile carries no
   price at all, so its name is the primary line on the tile. */
html:not(#_) body.page-hub .brand-grid {
  gap: 24px 16px !important;
  margin-top: 24px !important;
}
html:not(#_) body.page-hub .brand-card {
  background: var(--r2-paper) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color var(--r2-dur-fast) var(--r2-ease) !important;
}
html:not(#_) body.page-hub .brand-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--r2-hair-2) !important;
}
/* The photo plate. A bottle shot is content: it keeps its own light plate in
   both modes so a cut-out-on-white image never paints a white slab inside a
   dark card. The frame's height, crop and object-fit are exactly what ships. */
html:not(#_) body.page-hub .brand-frame {
  background: var(--r2-plate) !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  padding: 12px !important;
}
/* One hairline, not two: the plate's bottom edge already divides the tile, so
   the shipped `border-top:1px solid #f0e8da` on the body would double it. */
html:not(#_) body.page-hub .brand-meta {
  border-top: 0 !important;
  padding: 12px !important;
}
html:not(#_) body.page-hub .brand-name {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-body) !important;      /* 16px */
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.006em !important;
  color: var(--r2-ink) !important;
  margin: 0 0 4px !important;                  /* related: the count below */
}
html:not(#_) body.page-hub .brand-card:hover .brand-name {
  color: var(--r2-ink) !important;
}
html:not(#_) body.page-hub .brand-count {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-micro) !important;     /* 13px — a label */
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--r2-ink-2) !important;
}

/* ══ /v2/brand/{slug} and /v2/guide/{slug} — the bottle grid ═══════════════
   The market `_card` (market_page.py:49) painted by market.css. Rules copied
   from override-landing-a.css's card block, which restyles the SAME markup on
   the front door, so the grid cannot read as two different cards on two pages.
   What the hub card does NOT carry: no `.card-sub` ABV line, no `.card-buy`
   retailer button, no `.card-drop` deal line, no `.card-buddy` opener, no
   `.card-link`. The retailer and the checked-date live in `.price-meta`. */
html:not(#_) body.page-hub .card-grid {
  gap: 24px 16px !important;
  align-items: stretch !important;
  margin-top: 24px !important;
}

/* ── Card: a hairline plus padding, never a fill ─────────────────────────── */
html:not(#_) body.page-hub .card {
  background: var(--r2-paper) !important;
  border: 1px solid var(--r2-hair) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding-bottom: 12px !important;
  transform: none !important;
  transition: border-color var(--r2-dur-fast) var(--r2-ease) !important;
}
html:not(#_) body.page-hub .card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--r2-hair-2) !important;
}
/* The photo plate — same rule and same reason as the brand tile's frame. */
html:not(#_) body.page-hub .card .card-img-wrap {
  background: var(--r2-plate) !important;
  border-bottom: 1px solid var(--r2-hair) !important;
  padding: 12px 12px 8px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
html:not(#_) body.page-hub .card .card-img-wrap img {
  mix-blend-mode: normal !important;
}

/* ── Card type: name-bold / price-dominant ────────────────────────────────
   The price is the biggest thing on the card — the question is "what should I
   buy", so the answer is the money. The name is marked by WEIGHT, not size,
   and it is SANS: a serif at grid size reads fussy, and the serif budget is
   spent on the wordmark and the h1. */
html:not(#_) body.page-hub .card .card-name {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-small) !important;     /* 14px */
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.006em !important;
  color: var(--r2-ink) !important;
  padding: 12px 12px 0 !important;
  margin: 0 !important;
  /* The 2-line clamp moves from the <h3> to the <a> below — see there. The
     heading itself becomes a plain block so it cannot clip the link's own
     44px box. */
  display: block !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html:not(#_) body.page-hub .card:hover .card-name { color: var(--r2-ink) !important; }
/* The card's ONLY control is the name link — this grid ships no `.card-link`
   overlay, no `.card-buy` and no `.card-buddy` — so the name link IS the tap
   target and it has to be a real one. The shipped 2-line clamp (market.css:165)
   is carried over verbatim onto the same text, and a 44px floor is added under
   it: at 14px/1.3 two lines are 36.4px, so the floor sets every card's name box
   to the same 44px and the price below it lands at the same y across the row.
   Nothing is added to, removed from or reordered in the DOM. */
html:not(#_) body.page-hub .card .card-name a {
  /* content-box, and an EXACT two-line height. `-webkit-line-clamp` puts the
     ellipsis on line 2 but still lays line 3 out underneath it, so a box even
     slightly taller than two lines leaks a clipped sliver of the next line
     ("Woodford Reserve Holiday - Non Year… / Stated", measured on the first
     run). Pinning the height to exactly 2.6em (two 1.3 lines at 14px = 36.4px)
     leaves nothing to leak. The extra height that makes it a real 44px target
     is then a TRANSPARENT BOTTOM BORDER, not padding: `overflow:hidden` clips
     at the PADDING edge, so 8px of padding simply showed 8px of line 3 again
     (second run) — a border sits outside that edge and cannot. */
  box-sizing: content-box !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.6em !important;
  border-bottom: 8px solid transparent !important;  /* 36.4 + 8 = 44.4px */
  color: var(--r2-ink) !important;
  text-decoration: none !important;
}

/* The price block keeps market.css's `margin-top:auto` — the LANDING round's
   finding does not transfer to this grid, and the first run proved it. On the
   front door every card carries a photograph, so top-anchoring the price lands
   it at the same y on every card. On a hub grid a bottle with no display image
   ships no `.card-img-wrap` at all, so the content above the price differs by
   the frame's whole 196px: top-anchoring put one card's price 250px above its
   neighbour's. Bottom-anchoring is what actually aligns a row here. Only the
   padding moves, onto the spacing scale. */
html:not(#_) body.page-hub .card .price-block {
  margin-top: auto !important;
  padding: 12px 12px 0 !important;
}
/* "LOWEST IN-STOCK PRICE" / "NO CURRENT OBSERVED PRICE" — the ONE small-caps
   label style. Shipped at .66rem (10.5px), which is below the 13px floor;
   ink-2, not ink-3, because ink-3 cannot carry text at AA in light mode. */
html:not(#_) body.page-hub .card .price-label {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-micro) !important;     /* 13px */
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  color: var(--r2-ink-2) !important;
  margin-bottom: 4px !important;
  /* market.css:181 ships `white-space:nowrap;overflow:hidden;text-overflow:
     ellipsis` on this label. At the shipped 10.5px it fitted a phone column; at
     the 13px floor it does not, and the first run photographed every card
     reading "LOWEST IN-STOCK…". A truncated label reads as broken, so it wraps
     instead — and it wraps identically on every card, because every card
     carries the same two sentences ("Lowest in-stock price" / "No current
     observed price"), so the row still aligns. */
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html:not(#_) body.page-hub .card .price-amount {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-head) !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;
}
/* The retailer + "checked <date>" line. Shipped at .77rem (12.3px), under the
   floor. It is the sentence that turns a number into an answer, so it is a
   real 13px label, not decoration. */
html:not(#_) body.page-hub .card .price-meta {
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-micro) !important;     /* 13px */
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--r2-ink-2) !important;
  margin-top: 4px !important;
}
/* The honest empty state keeps the label's own weight — no fill, no colour. */
html:not(#_) body.page-hub .card .price-block.price-empty {
  padding-bottom: 0 !important;
}

/* ══ /v2/answers/{slug} — the answer-page `.panel` sections ════════════════
   T549 dark-mode defect (2026-08-31, live iOS Simulator capture): the
   answers surface (answers.py's `_sec()` → `<section class="panel">`,
   e.g. "LIVE AUSTRALIAN PRICE RANGE") also renders through THIS template
   (hub.html) and THIS sheet, but this file was built for the four T483
   round-1 hub pages only (brands/brand/guides/guide — see the file's own
   header docstring) — the answers pages didn't exist yet (T549 landed
   2026-08-31, a day after this round). So `.panel`/`.facts-list` were never
   given the same treatment the sibling landing and catalogue restyle sheets
   already give their own `.panel` usage (wb-landing-restyle-a.css's
   "Market-facts panel" block, wb-catalog-restyle-a.css's mirror of it):
   without it, `.panel` fell through to wb-quiet-tokens.css's
   `background:#FFFFFF !important` — a literal with no dark branch — while
   `<li>` text correctly followed `body`'s dark-mode ink (this file's own
   `html:not(#_) body { color: var(--r2-ink) }`, above). Light-on-light: a
   white panel with near-white list text in dark mode. The `.panel h2`
   heading stayed readable only because wb-quiet-tokens.css's `#6B6B6B`
   label colour happens to read against a white panel; against a dark one it
   drops under WCAG AA (~3.3:1), so the heading's colour needs the same fix.
   Same shape as 00f80daa (T523 /forgot): a hardcoded literal never got a
   dark-mode branch. Block copied from landing/catalog's own `.panel`
   treatment so all three surfaces share one convention. */
html:not(#_) .panel,
html:not(#_) .idx-feature,
html:not(#_) .hist-row,
html:not(#_) .filters {
  background: var(--r2-surface) !important;
  border: 1px solid var(--r2-hair) !important;
}
html:not(#_) .panel h2 {
  color: var(--r2-ink-2) !important;
}
html:not(#_) .facts-list {
  color: var(--r2-ink) !important;
}

/* ══ Desktop ═══════════════════════════════════════════════════════════════
   The grids keep their own auto-fill column counts exactly as they ship. What
   changes is the gutter, which grows one step off the scale at the width where
   the column stops touching the screen edge. */
@media (min-width: 861px) {
  html:not(#_) body.page-hub main.hub {
    margin: 32px auto 64px !important;
    padding: 0 32px !important;
  }
}

/* ══ Footer ════════════════════════════════════════════════════════════════
   The shared footer partial; the same block the landing, catalogue and account
   sheets carry, so the six surfaces share one foot. */
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-tag {
  font-size: var(--r2-t-micro) !important;
  max-width: 34em !important;
}
html:not(#_) .wb-footer .wb-foot-head {
  color: var(--r2-ink-2) !important;
  font-family: var(--r2-body) !important;
  font-size: var(--r2-t-micro) !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: var(--r2-t-body) !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 / rail ═════════════════════════════════════════════════════
   Not this round's surface, but it paints ON these pages (hub.html sets
   `data-buddy-rail` on <html>) — so it gets the same paper and hairline rather
   than a white slab on dark paper. Same block the account sheet carries. */

html:not(#_) .bdc-composer {
  background: var(--r2-sunk) !important;
  border-color: var(--r2-hair) !important;
  color: var(--r2-ink) !important;
}
html:not(#_) .bdm-ce { color: var(--r2-ink) !important; }

/* ── 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;
  }
}
