
/* ============================================================
   Whiskey Buddy — market dashboard (claude.ai design, 2026-05-30)
   cream page, espresso ink (var(--sk-q-shadow)), caramel accent (var(--sk-q-accent)),
   gold highlight (var(--sk-lg-gold)). Fredoka = the rounded wordmark voice.
   ============================================================ */
:root{
  --bg:var(--sk-q-bg); --bg-tint:var(--sk-lg-bg-tint); --card:var(--sk-lg-card);
  --ink:var(--sk-q-shadow); --ink-soft:var(--sk-lg-ink-soft); --muted:var(--sk-lg-muted);
  --line:var(--sk-lg-line); --line-soft:var(--sk-lg-line-soft); --soft:var(--sk-lg-soft);
  --accent:var(--sk-q-accent); --accent-2:var(--sk-lg-accent-2); --accent-bg:var(--sk-q-accent-bg); --accent-line:var(--sk-lg-accent-line);
  --gold:var(--sk-lg-gold); --gold-soft:var(--sk-lg-gold-soft);
  --chip-bg:#f1e8d8;
  --green:#2f7a44; --green-bg:#eaf3e4; --green-line:#cfe0bd;
  --focus:#c98736;
  --round:'Space Grotesk','Inter',system-ui,sans-serif; /* was Fredoka — the rounded face read "hobby/toy"; Space Grotesk (the wordmark face) is clean + premium */
  --sans:-apple-system,system-ui,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font:15px/1.5 var(--sans);margin:0;color:var(--ink);
  background:var(--bg);-webkit-font-smoothing:antialiased;}
.wrap{max-width:1180px;margin:0 auto;padding:0 1.4rem}
/* Display headings → Inter bold (Robert 2026-10-12, ask #2369; the old serif is banned);
   h3 + small labels stay on the clean sans (--round = Space Grotesk). */
h1,h2{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-weight:700;letter-spacing:0;margin:0}
h3{font-family:var(--round);letter-spacing:-.01em;margin:0}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{
  outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.muted{color:var(--muted)} .note{color:var(--muted);font-size:.85rem;line-height:1.5}

/* ---------- Header ---------- */
/* Header chrome (.wb-header/.wb-brand/.wb-word/.wb-nav/…) is now the single
   source in static/css/wb-header.css, linked by every page. */

/* ---------- Hero (full-bleed espresso) ---------- */

/* ---------- Command bar (search + filters), pulled onto hero ---------- */
main.wrap{padding-bottom:3rem}
.filters{background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:1rem 1.1rem;margin:-2.4rem 0 1.8rem;position:relative;z-index:5;
  box-shadow:0 6px 24px rgba(var(--sk-q-shadow-rgb),.10),0 2px 6px rgba(var(--sk-q-shadow-rgb),.05);
  transition:border-color .15s,box-shadow .15s}
.filters:focus-within{border-color:var(--accent-line)}
form.f{display:flex;flex-direction:column;gap:.6rem;margin:0}
.filter-primary,.filter-secondary{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.filter-primary{position:relative}
.filter-primary input[name="q"]{flex:1 1 280px;font-size:1.02rem;padding:.7rem .9rem;
  border-radius:10px}
input,select,button{font:inherit;color:var(--ink);background:#fff;
  border:1px solid var(--line);border-radius:9px;padding:.5rem .65rem;
  transition:border-color .14s,box-shadow .14s}
input:focus,select:focus,button:focus,label.toggle:focus-within{outline:none;
  border-color:var(--focus);box-shadow:0 0 0 3px rgba(201,135,54,.20)}
select{cursor:pointer;max-width:220px}
button[type="submit"]{background:var(--accent);color:#fff;border-color:var(--accent);
  cursor:pointer;font-weight:600;font-family:var(--round);padding:.7rem 1.4rem;
  font-size:1rem;border-radius:10px;letter-spacing:.01em}
button[type="submit"]:hover{background:var(--accent-2)}
label.toggle{background:var(--accent-bg);border:1px solid var(--accent-line);
  border-radius:9px;padding:.5rem .8rem;font-size:.92rem;cursor:pointer;color:var(--accent);
  font-weight:500;display:inline-flex;align-items:center;gap:.45rem}
label.toggle input{margin:0;accent-color:var(--accent)}
.fr-note{font-size:.82rem;color:var(--muted);margin:.55rem 0 0;line-height:1.5}
.contrast-link{color:var(--muted)} .contrast-link:hover{color:var(--accent)}

/* ---------- Section header rhythm ----------
   Header treatment B (Robert's pick, ask #1854, T389 2026-08-23): one slim
   line — small uppercase muted letter-spaced label, a thin rule filling the
   rest of the line, "See all ->" at the far right when the shelf has a
   catalogue link. No subtitle line, no boxed/tinted "featured" panel, no
   gradient tick before the label. Values match the approved mockup
   (mockup_headers.py apply_B, sprint-state/ui-acceptance/
   front-door-headers-2026-08-23/). */
.picks{margin:1.1rem 0}
.picks-head{margin-bottom:.5rem;display:flex;align-items:center;gap:.6rem}
.picks-head h2{font-family:var(--sans,'Inter',sans-serif);font-size:.78rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0;
  white-space:nowrap;flex:0 0 auto}
.picks-head::after{content:"";flex:1 1 auto;height:1px;background:var(--line);margin-left:.2rem}
.picks-see-all{font-family:var(--sans,'Inter',sans-serif);font-size:.72rem;font-weight:600;
  color:var(--muted);white-space:nowrap;flex:0 0 auto;text-decoration:none;order:99}
.picks-see-all:hover{color:var(--accent);text-decoration:none}
.picks-featured{background:none;border:0;padding:0;box-shadow:none}
.picks-featured .picks-head h2{font-size:.78rem}
.picks-link{text-decoration:none;color:inherit;display:inline-block}
.picks-link h2{cursor:pointer}
.picks-link:hover h2,.picks-link:focus-visible h2{color:var(--accent)}
.deal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem}
.deal-card{display:flex;flex-direction:column;gap:.25rem;background:var(--card);
  border:1px solid var(--line);border-radius:12px;padding:.85rem;color:inherit}
.deal-card span{color:var(--muted);font-size:.84rem}.deal-card em{font-style:normal;color:var(--accent)}

/* ---------- Cards ---------- */
/* CSS grid with auto-fill so a partial last row keeps UNIFORM column width and
   left-aligns (no tile stretching to 2× when only one or two sit in the row —
   the "extra-wide cards look out of place" report). Empty trailing cells are
   the deliberate trade vs the old flex-grow stretch. */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(244px,1fr));
  gap:.9rem;margin:0}
.card-grid>*{min-width:0}
.card-grid-compact{gap:.8rem;grid-template-columns:repeat(auto-fill,minmax(232px,1fr))}
/* The featured "for you" rows (Picked for you / Best offers for you) use a FIXED
   4-up desktop grid rather than width-driven auto-fill, so their sampled count
   (8 / 4) always lands as whole rows of four — no stranded trailing tile, which
   is what the auto-fill column drift produced ("why are there only 2 on this
   row?", 2026-06-22). Drops to the shared 2-up at the 600px mobile breakpoint. */
@media (min-width:601px){
  .picks-featured .card-grid,.picks-featured .card-grid-compact{
    grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* Clean hook card (Task 6, 2026-06-21): white surface, 16px radius, soft shadow.
   No padding — image bleeds to the top; cbody carries the text padding.
   margin-top:auto on .price-block pins it to the bottom so all cards in a row
   align their price line. */
.card{position:relative;background:#fff;border-radius:14px;
  border:1px solid var(--line,var(--sk-q-line));
  box-shadow:0 3px 14px rgba(var(--sk-q-ink-rgb),.05);overflow:hidden;
  display:flex;flex-direction:column;cursor:pointer;
  text-decoration:none;color:inherit;
  transition:transform .14s,box-shadow .18s,border-color .18s}
.card:hover{transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(var(--sk-q-ink-rgb),.11);border-color:var(--accent-line,var(--sk-lg-accent-line));text-decoration:none}
/* stretched overlay link → the whole tile opens the bottle page; interactive
   children sit above it via z-index. */
.card-link{position:absolute;inset:0;z-index:1;border-radius:16px}
.card-link:hover{text-decoration:none}
.pm-ret-link{position:relative;z-index:2;color:var(--accent);font-weight:600}
.pm-ret-link:hover{text-decoration:underline}
.pm-ret-link .ext{font-size:.9em;opacity:.8}
.card-watch{position:relative;z-index:2;display:inline-block;margin-top:.25rem;
  font-size:.8rem;font-weight:600;color:var(--accent);text-decoration:none}
.card-watch:hover{text-decoration:underline}
/* White image frame: tall, centred, contain — bottle stands on white. */
.card .card-img-wrap{position:relative;height:196px;display:flex;align-items:center;
  justify-content:center;background:#fff;padding:22px 22px 4px;overflow:hidden}
.card .card-img-wrap img{max-height:100%;max-width:72%;object-fit:contain;display:block}
/* per-card "Ask Buddy" flavour-preview button (ROADMAP #17). Overlay pill on the
   top-left of the image frame -> zero vertical cost. Sits above the stretched
   .card-link (z-index:1) and IS interactive; clicks are caught by delegation in
   the former Buddy script. */



/* The "Ask Buddy" word is hidden on the card at every width (Robert's call,
   2026-07-02): the card shows the accent diamond only. The label text stays in
   the DOM as the button's accessible name (screen-reader-only), paired with the
   aria-label — so the control keeps its meaning without printing a word. */

/* Without the word the control is just the Buddy sparkle — no badge surround. */


/* name clamped to exactly 2 lines so the price divider lands at the same
   height on every card in a row (even bar across the row). */
/* Card names → clean sans (Inter): a serif at this small grid size reads fussy
   and hard to scan; Inter bold stays on the big hero name +
   section headings only (hybrid, 2026-06-23). */
.card-name{font-family:'Inter',system-ui,sans-serif;font-weight:600;font-size:16px;line-height:1.32;letter-spacing:-.012em;color:var(--ink);
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;min-height:2.64em;
  padding:14px 20px 0;margin:0}
.card:hover .card-name{color:var(--accent)}
.card-sub{font-size:.8rem;color:var(--muted);font-weight:500;margin:4px 0 0;min-height:1.2em;
  padding:0 20px}
.card-sub strong{color:var(--ink-soft);font-weight:600}
.chip{padding:.14rem .5rem;border-radius:999px;font-size:.73rem;line-height:1.5;
  white-space:nowrap;font-weight:600;font-family:var(--round);
  background:var(--chip-bg);color:var(--ink-soft)}
.chip-brand{background:var(--accent-bg);color:var(--accent)}
/* price-block: pinned to the bottom via margin-top:auto so all cards in a row
   align. */
/* divider now lives under the image; the price-block just pins to the bottom. */
.price-block{margin-top:auto;padding:12px 20px 18px}
.price-label{font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);font-weight:700;margin-bottom:.18rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Premium AUD price treatment: ink $ prefix, large number, muted AUD tag.
   .price-amount is the flex container; its text node (the number) inherits
   the large font; .dollar and .cur override to their own smaller sizes. */
.price-amount{display:inline-flex;align-items:baseline;gap:0;
  font-family:var(--sans);font-size:1.5rem;font-weight:600;color:var(--ink);
  font-variant-numeric:tabular-nums;letter-spacing:-.01em;line-height:1.05}
.price-amount .dollar{font-family:var(--sans);font-size:17px;font-weight:600;
  color:var(--ink);margin-right:1px;line-height:inherit}
.price-amount .cur{font-family:var(--sans);font-size:12px;font-weight:600;
  color:var(--muted);letter-spacing:.06em;margin-left:5px;line-height:inherit}
.price-meta{font-size:.77rem;margin-top:.28rem;line-height:1.4;color:var(--muted)}
.price-meta .pm-line{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-meta .pm-date{color:var(--muted)}
.price-row{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:nowrap;min-height:1.6em}
.trend-dot{display:none}
/* Capture date: right-aligned beside price, never wraps. */
.price-row .pm-date{font-size:.77rem;color:var(--muted);white-space:nowrap;flex:none}
/* Conditional 90-day price signal — green only, earns the pixel.
   Own line below .price-row; min-height keeps every .price-block
   equal height whether or not a signal is present (divider alignment fix). */
.card-drop{font-size:12.5px;color:var(--green);font-weight:600;min-height:1.25em;margin-top:4px}

/* Price-signal colour by kind (modifiers on .card-drop). Direction, not noise:
   green = cheaper (at low / below high / trending down); burnt = trending up;
   muted = steady. */
.card-drop.trend--down{color:var(--green,#4b7a3b)}
.card-drop.trend--up{color:var(--burnt,var(--sk-lg-burnt))}
.card-drop.trend--flat{color:var(--muted)}
/* One-tap buy line — "at <retailer> →" goes OUT to the seller; z-index:2 so it
   beats the stretched .card-link overlay. Empty reserved slot keeps cards even. */
.card-buy{position:relative;z-index:2;display:inline-flex;align-items:center;gap:3px;
  margin-top:7px;width:fit-content;max-width:100%;
  font-family:var(--round);font-weight:600;font-size:.8rem;color:var(--accent-2,var(--sk-lg-accent-2));
  text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-buy:hover{color:var(--burnt,var(--sk-lg-burnt));text-decoration:none}
.card-buy-arr{font-size:.95em;flex:none}
.card-buy--empty{display:block;min-height:1.05em;margin-top:7px}

/* ---- Personalised-row skeletons ------------------------------------------
   Reserve space so the async #pickedForYou / #bestOffers rows drop into a
   pre-sized slot instead of shoving the feed down on app-open (the "flash").
   The card reuses the real .card fixed-height parts (img-wrap 196px, name/sub
   min-heights) so the reserved height matches a real card by construction;
   only the grey fill + a price-block floor are skeleton-specific. Deliberately
   static (no shimmer): on a heavy page a pulse reads as "still loading", a calm
   block reads as "settled". Markup is aria-hidden. */
.picks-skeleton{pointer-events:none}
.card--skeleton{pointer-events:none;box-shadow:none;cursor:default}
.card--skeleton:hover{transform:none;box-shadow:none}
.card--skeleton .price-block{min-height:118px;display:flex;flex-direction:column;
  justify-content:flex-start;gap:7px}
.sk{display:block;background:var(--line,#e7e1d8);border-radius:6px;opacity:.6}
.sk-img{width:58%;height:150px;border-radius:10px}
.sk-line{height:.82em;width:78%}
.sk-line--sm{width:42%}
.sk-line--price{height:1.5rem;width:52%}
.sk-line--buy{height:.9em;width:38%}
.sk-line--head{height:1.15em;width:9rem}
.sk-line--sub{height:.82em;width:min(60%,18rem)}

/* ---- Batch-family rollup card (landing only) ---- */
/* Reuses the standard .card tokens; only the grouping affordances are new.
   A subtle accent border marks it as a grouping tile, not a single bottle. */
/* Grouping tile: accent border marks it as a family, not a single bottle.
   Cap the width so a SOLO card in the Batch-families shelf doesn't flex-grow to
   a full-width banner (U1); it then reads as a normal-width tile, left-aligned. */
.card-family{border-color:var(--accent-line);max-width:300px}
/* The cap is a DESKTOP fix only: on mobile every card is a full-width row
   (.card-grid>* {flex:1 1 100%}), so the cap would just make the family tile
   ~11px narrower than its neighbours. Release it below the mobile breakpoint. */
@media (max-width:600px){.card-family{max-width:none}}
/* image now navigates (stretched .card-link -> cheapest batch), so show the
   same pointer as a normal card instead of the old default cursor. */
.card-family .card-img-wrap{cursor:pointer}
/* Horizontal padding matches the card's text inset (18px) so the summary text
   isn't clipped at the rounded card edge (the "ee N batches" bug). */
.fam-batches{margin-top:.2rem;border-top:1px solid var(--line-soft);padding:.6rem 18px 4px}
.fam-batches summary{cursor:pointer;font-family:var(--round);font-weight:600;display:block;
  font-size:.82rem;color:var(--accent);list-style:none;position:relative;z-index:2}
.fam-batches summary::-webkit-details-marker{display:none}
.fam-batches summary::after{content:"\25be";margin-left:.35rem;font-size:.7rem;opacity:.7}
.fam-batches[open] summary::after{content:"\25b4"}
.fam-batch{display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  padding:.4rem .1rem;border-bottom:1px solid var(--line-soft);position:relative;z-index:2}
.fam-batch:last-child{border-bottom:none}
.fam-batch-name{color:var(--ink-soft);font-size:.85rem;font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fam-batch:hover .fam-batch-name{color:var(--accent)}
.fam-batch-price{font-family:var(--round);font-weight:600;color:var(--accent);
  font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---- Batch-family "shelf" card (design "A with B's stacked look", ask
   #2105) — the market.js familyCard() render only; collectionCard() above
   keeps the old <details> shape untouched. ---- */
/* Stacked-deck outline: two offset card edges BEHIND the tile so it reads as
   "a set" at a glance (item 1). The deck wrapper — NOT .card-family — is now
   the actual grid item; CSS Grid's default align-items:stretch already sizes
   it to the row height the same way it used to size .card directly, so
   .card-family fills the deck via height:100% and the row's divider
   alignment is unchanged. The offset (7px/3.5px) sits inside the grid gap
   the compact grid already reserves (.8rem ≈ 12.8px in card-grid-compact),
   so the edges never clip into a row neighbour. */
.card-family-deck{position:relative;height:100%;max-width:300px}
@media (max-width:600px){.card-family-deck{max-width:none}}
/* Radius matches .card's own 14px (wb-quiet-tokens.css forces .card-family
   itself down to its 4px "everywhere" token — matched here too, via the same
   selector list, so the deck edges never show a bigger corner than the card
   they sit behind). */
.card-family-deck::before,.card-family-deck::after{
  content:"";position:absolute;inset:0;border-radius:14px;
  border:1px solid var(--line,var(--sk-q-line));background:#fff;z-index:0;pointer-events:none}
.card-family-deck::before{transform:translate(7px,-7px)}
.card-family-deck::after{transform:translate(3.5px,-3.5px)}
.card-family-deck>.card-family{position:relative;z-index:1;height:100%;max-width:none}
@media (max-width:600px){
  /* Robert browses on his phone; the stacked-deck look is half of what he
     chose, so it stays visible on mobile too (ask #2105 fix round) — just at
     a smaller offset. Mobile is a 2-up grid (.card-grid col-gap ~1.05rem =
     16.8px, row-gap ~1.7rem = 27.2px; align-items:start, so no equal-height
     stretch to fight), and these smaller edges (3px/6px, half the desktop
     7px/3.5px) sit well inside both gaps — never clipping into the row
     neighbour to the right or the row above. */
  .card-family-deck::before{transform:translate(6px,-6px)}
  .card-family-deck::after{transform:translate(3px,-3px)}
}
/* Badge on the image (item 2): "N batches", brand burnt accent. Named
   fam-badge (not .chip/.rrp-badge/etc.) so it is NOT caught by
   wb-quiet-tokens.css's "kill every coloured chip/badge" sweep, which targets
   those class names specifically — this is a deliberate NEW colour surface
   Robert approved via the mockup pick, not a residual one that sweep exists
   to flatten. card-buddy already owns the top-left corner of the image, so
   the badge sits top-right instead of colliding with it. */
.fam-badge{position:absolute;right:.55rem;top:.55rem;left:auto;z-index:2;
  background:none;border:0;color:var(--ink-soft,#333);font-family:var(--round);
  font-weight:600;font-size:.72rem;letter-spacing:.02em;line-height:1.3;
  padding:0;border-radius:0;pointer-events:none}
/* #3355 (Robert ask #2544: no pill badges): plain text, not a pill. */
/* Batch chips (item 4) — pill links above the stretched .card-link, same
   z-index:2 idiom as .card-buy/.fam-batch. Own class names for the same
   quiet-tokens-sweep reason as .fam-badge above. */
.fam-chips{display:flex;flex-wrap:wrap;gap:5px;padding:6px 20px 0;
  position:relative;z-index:2}
.fam-chip{display:inline-block;max-width:100%;font-family:var(--round);
  font-weight:600;font-size:.72rem;line-height:1.5;
  border:1px solid var(--line,var(--sk-q-line));border-radius:999px;
  padding:2px 9px;color:var(--ink-soft,#333);text-decoration:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  box-sizing:border-box}
.fam-chip:hover{border-color:var(--burnt,var(--sk-deep-accent));text-decoration:none}
.fam-chip-new{background:var(--burnt,var(--sk-deep-accent));color:#fff;border-color:var(--burnt,var(--sk-deep-accent))}
.fam-chip-more{color:var(--burnt,var(--sk-deep-accent));border-style:dashed}

/* ---- US Price Index pills ---- */
.idx{display:inline-flex;align-items:center;gap:.18rem;font-family:var(--round);font-weight:600;
  font-size:.86rem;padding:.18rem .52rem;border-radius:999px;line-height:1;white-space:nowrap;border:1px solid transparent}
.idx small{font-size:.6rem;font-weight:600;opacity:.65;text-transform:uppercase;letter-spacing:.04em}
/* Clickable pill -> /v2/value leaderboard (focused on the bottle). The
   z-index lifts it above a card's stretched overlay link so it stays
   clickable; transition signals it's interactive. */
.idx-link{text-decoration:none;cursor:pointer;position:relative;z-index:2;transition:filter .12s,box-shadow .12s}
.idx-link:hover{text-decoration:none;filter:brightness(.95);box-shadow:0 1px 4px rgba(60,40,20,.18)}
/* The bottle a visitor clicked in from — flashed on the value leaderboard. */
.card.card-focus{outline:2px solid var(--accent,#c98736);outline-offset:2px;
  border-radius:14px;animation:cardFocusFlash 1.8s ease-out 1}
@keyframes cardFocusFlash{0%{box-shadow:0 0 0 0 rgba(201,135,54,.55)}
  30%{box-shadow:0 0 0 7px rgba(201,135,54,.22)}100%{box-shadow:0 0 0 0 rgba(201,135,54,0)}}
.idx-green{background:#e6f1e1;color:#2f7a33;border-color:#cfe3c2}
.idx-amber{background:#fbf0d2;color:#9a6a16;border-color:#ecd6a0}
.idx-red{background:#f7e0db;color:#b23b27;border-color:#eebfb4}
.chip-queen{background:#f7e2dd;color:#b23b27}
.chip-sweet{background:var(--sk-q-accent-bg);color:var(--sk-q-accent)}
.chip-delicate{background:#e2eef0;color:#2f6f7a}
.picks-tag{font-family:var(--round);font-weight:600;font-size:.68rem;text-transform:uppercase;
  letter-spacing:.06em;padding:.16rem .5rem;border-radius:999px;background:var(--chip-bg);
  color:var(--ink-soft);margin-left:.15rem;position:relative;top:-.08em}
.picks-tag.tag-low{background:#e6f1e1;color:#2f7a33}
.picks-tag.tag-high{background:#f7e0db;color:#b23b27}

/* ---- price history sparkline ---- */
/* Sparkline + a LABELLED price block: a "90-day price" caption, the actual
   range (carries the movement legibly), and a status line. Structured short
   lines so it reads clearly and never wraps into a tower (feedback 320615949
   + follow-up: movement must be visible and the meaning clear). */
/* Desktop: a soft-panelled, full-width area chart is the lower feature of the
   tile, with a one-line caption (label · range · movement) beneath it. */
.hist-row{display:flex;flex-direction:column;gap:.4rem;margin-top:.6rem;
  padding:.55rem .6rem;background:var(--soft);border:1px solid var(--line-soft);
  border-radius:10px}
.hist-row.is-low{background:var(--green-bg);border-color:var(--green-line)}
.spark{display:block;width:100%;height:40px}
.hist-cap{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap;min-width:0;line-height:1.2}
.hist-label{font-size:.62rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted)}
.hist-val{font-size:.92rem;font-weight:700;color:var(--ink);
  font-variant-numeric:tabular-nums;white-space:nowrap}
.hist-val.is-low{color:#2f7a33}
.hist-arrow{color:var(--muted);font-weight:600;margin:0 .12rem}
.hist-sub{font-size:.72rem;font-weight:600;color:var(--muted);margin-left:auto;white-space:nowrap}
.hist-sub.is-low{color:#2f7a33}

/* ---------- US-index feature band ---------- */
.idx-feature{display:grid;grid-template-columns:1.5fr 1fr;gap:1.6rem;align-items:center;
  background:linear-gradient(120deg,var(--sk-pr-bg),#f5ebdd);border:1px solid var(--accent-line);
  border-radius:18px;padding:1.2rem 1.4rem;margin:0 0 1.9rem}
.idx-feature h2{font-family:var(--sans,'Inter',sans-serif);font-size:1.18rem;font-weight:700;
  margin-bottom:.35rem;display:flex;align-items:center;gap:.55rem}
.idx-feature h2::before{content:"";width:.52rem;height:1rem;border-radius:3px;background:linear-gradient(180deg,var(--gold),var(--accent))}
.idx-feature p{font-size:.92rem;line-height:1.6;color:var(--ink-soft);margin:0;max-width:62ch}
.idx-legend{display:flex;flex-direction:column;gap:.55rem}
.idx-legend .row{display:flex;align-items:center;gap:.6rem;font-size:.88rem;color:var(--ink-soft)}
.idx-legend .idx{min-width:92px;justify-content:center}
@media(max-width:780px){.idx-feature{grid-template-columns:1fr;gap:1rem}}

/* ---------- Panels ---------- */
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:1.1rem 1.3rem;margin:1.4rem 0}
.panel h2{font-family:var(--sans,'Inter',sans-serif);font-size:1.1rem;font-weight:700;margin-bottom:.5rem;display:flex;
  align-items:center;gap:.55rem}
.panel h2::before{content:"";width:.52rem;height:1rem;border-radius:3px;
  background:linear-gradient(180deg,var(--gold),var(--accent))}
.facts-list{margin:.4rem 0;padding-left:1.2rem;line-height:1.85}
.facts-list strong{color:var(--accent)}
/* The retailer table's collapsed cell widths can total a few px past 100% of
   its panel at phone widths (~4px at 390px). In Safari/desktop that's clipped
   and invisible, but inside the iOS app's WKWebView ANY page overflow becomes a
   draggable horizontal pan of the whole document. So: let the table scroll
   inside its own box (it never can, after the mobile padding trim below) rather
   than the page — a hard cap on the contentSize the WKWebView scroll view sees. */
#retailer{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ret-table{border-collapse:collapse;width:100%;font-size:.9rem;margin-top:.5rem}
.ret-table th,.ret-table td{padding:.45rem .6rem;border-bottom:1px solid var(--line-soft);
  text-align:left}
.ret-table th{font-weight:600;color:var(--muted);font-size:.78rem;text-transform:uppercase;
  letter-spacing:.04em;font-family:var(--round)}
.ret-table .num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;position:relative;padding-left:1.4rem}
.ret-table tbody tr{transition:background .12s}
.ret-table tbody tr:hover{background:var(--soft)}
.ret-table tbody tr:last-child td{border-bottom:none}
.ret-bar{position:absolute;left:.6rem;top:50%;transform:translateY(-50%);
  height:.5rem;width:var(--w);max-width:calc(100% - 2.6rem);background:var(--accent-bg);
  border:1px solid var(--accent-line);border-radius:3px;z-index:0;opacity:.7}

/* Rich retailer table (landing "Where the market sits"): clickable rows + an
   inline win-rate meter alongside the stocks bar. */
.ret-table--rich tbody tr{cursor:pointer}
.ret-table--rich td.num{font-weight:600}
.ret-table--rich td:first-child a{font-weight:600}
/* The count cells are their own deep-links (stocked → full range, cheapest-on →
   wins). Render as data — inherit ink, no accent — with a dotted underline so
   the link affordance is discoverable without shouting. */
.ret-table--rich .cell-link{color:inherit;text-decoration:none;position:relative;z-index:1;
  border-bottom:1px dotted var(--accent-line);padding-bottom:1px}
.ret-table--rich .cell-link:hover{color:var(--accent);border-bottom-color:var(--accent)}
/* "Cheapest on" deep-link rendered as a classic blue link so the number reads
   as obviously clickable through to the retailer's price-floor wins. */
.ret-table--rich .cell-link--wins{color:#1f6fb8;border-bottom:1px solid #1f6fb8}
.ret-table--rich .cell-link--wins:hover{color:#155a98;border-bottom-color:#155a98}
.ret-rate{display:inline-flex;align-items:center;justify-content:flex-end;gap:.45rem}
.ret-rate-bar{display:inline-block;height:.5rem;width:46px;border-radius:3px;
  background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--r),
    var(--line-soft) var(--r),var(--line-soft) 100%);opacity:.85}
.ret-rate-n{min-width:2.6em;text-align:right;font-variant-numeric:tabular-nums}
/* Header labels carry a full (desktop) and short (mobile) form; only one shows. */
.ret-table--rich .lbl-short{display:none}
@media (max-width:560px){
  .ret-table--rich{font-size:.82rem}
  .ret-table--rich th,.ret-table--rich td{padding:.4rem .35rem}
  .ret-rate-bar{display:none}
  /* The 5-col table overflows a phone viewport (459px in a 311px panel), spilling
     "Cheapest"/"Win rate" off-screen. Shorten the headers and drop the "Competes
     on" column (the win-rate denominator, least useful standalone — the footnote
     still explains it) so the headline data fits without a sideways scroll. */
  .ret-table--rich .lbl-full{display:none}
  .ret-table--rich .lbl-short{display:inline}
  .ret-table--rich .col-competes{display:none}
  .ret-table--rich th,.ret-table--rich td{padding-left:.3rem;padding-right:.3rem}
  .ret-table--rich .num{padding-left:.6rem}
}

/* ---------- Browse CTA ---------- */
.browse-cta{margin:2rem 0 .4rem;padding:1.1rem 1.3rem;border-radius:16px;
  background:linear-gradient(110deg,var(--accent-bg),var(--bg-tint));
  border:1px solid var(--accent-line);display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem}
.browse-cta a{font-family:var(--round);font-weight:600;color:var(--accent);font-size:1.08rem}

/* ---------- Recent activity feed ---------- */
.act-wrap{padding-top:1.8rem}
.act-head{margin:0 0 1.2rem}
.act-head h1{font-size:1.8rem;font-weight:700;letter-spacing:-.02em;margin-bottom:.3rem}
/* Same WKWebView overflow pattern as #retailer: the feed rows can total a
   few px past the viewport at certain phone widths. overflow-x:hidden on
   the feed container — not on html/body — is what WKWebView actually
   respects; it clips the overflow before it reaches the page's contentSize. */
.act-feed{display:flex;flex-direction:column;gap:.55rem;overflow-x:hidden}
.act-row{display:flex;align-items:center;gap:.9rem;background:var(--card);
  border:1px solid var(--line);border-radius:13px;padding:.7rem .9rem;
  text-decoration:none;color:inherit;border-left:4px solid var(--line);
  transition:border-color .15s,box-shadow .15s,transform .12s}
.act-row:hover{border-color:var(--accent-line);text-decoration:none;
  transform:translateY(-1px);box-shadow:0 6px 18px rgba(var(--sk-q-shadow-rgb),.08)}
.act-drop{border-left-color:var(--green)}
.act-rise{border-left-color:var(--idx-red,#b23b27)}
.act-new{border-left-color:var(--gold)}
.act-img{flex:none;width:54px;height:54px;background:#fff;border-radius:9px;
  border:1px solid var(--line-soft);overflow:hidden}
.act-img img{width:100%;height:100%;object-fit:contain;padding:.25rem}
.act-body{min-width:0;flex:1}
.act-tag{font-family:var(--round);font-weight:600;font-size:.66rem;
  text-transform:uppercase;letter-spacing:.05em;padding:.1rem .45rem;border-radius:999px;
  background:var(--chip-bg);color:var(--ink-soft)}
.act-tag-drop{background:#e6f1e1;color:#2f7a33}
.act-tag-rise{background:#f7e0db;color:#b23b27}
.act-tag-new{background:var(--sk-q-accent-bg);color:var(--sk-q-accent)}
.act-name{font-family:var(--round);font-weight:600;font-size:1.02rem;color:var(--ink);
  margin-top:.18rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.act-row:hover .act-name{color:var(--accent)}
.act-detail{font-size:.84rem;color:var(--ink-soft);margin-top:.1rem;
  font-variant-numeric:tabular-nums}
.act-date{flex:none;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums;
  white-space:nowrap}
.act-more,.act-empty{margin-top:1.1rem}
@media (max-width:560px){
  .act-img{width:44px;height:44px}
  .act-name{font-size:.94rem}
  .act-detail{font-size:.78rem}
}

/* ---------- Footer ---------- */
.wb-footer{background:var(--sk-q-shadow);color:var(--sk-ag-sub);margin-top:2.5rem;padding:2.6rem 0 2.2rem}
.wb-footer-in{max-width:1180px;margin:0 auto;padding:0 1.4rem;
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.6rem;align-items:flex-start}
.wb-footer img.lockup{height:46px;display:block}
.wb-foot-tag{margin:.9rem 0 0;font-size:.86rem;line-height:1.6;color:#b3a288;max-width:42ch}
.wb-foot-nav{display:flex;flex-direction:column;gap:.5rem;font-family:var(--round);font-weight:500}
.wb-foot-nav a{color:#e6d6bd;font-size:.95rem}
.wb-foot-nav a:hover{color:var(--gold-soft)}
.wb-foot-head{font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;
  color:#8a785f;font-family:var(--round);font-weight:600;margin-bottom:.2rem}
.wb-foot-bottom{max-width:1180px;margin:1.8rem auto 0;padding:1.4rem 1.4rem 0;
  border-top:1px solid rgba(255,235,200,.10);
  font-size:.8rem;color:#8a785f;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between}

@media (max-width:600px){
  .wrap,.wb-header-in,.wb-hero-in,.wb-footer-in{padding-left:1rem;padding-right:1rem}
  /* Tighter panel side-padding on phones gives the data tables (esp. the
     5→4-col "Where the market sits" table) the few extra px they need to sit
     inside the viewport without a sideways scroll. */
  .panel{padding-left:.8rem;padding-right:.8rem}
  /* Trim the retailer table's generous cell padding on phones so its 5→4-col
     collapsed width sits inside the panel with room to spare (the .8rem panel
     pad alone left it ~4px over). #retailer's overflow-x:auto is the hard cap;
     this keeps that cap from ever needing to show an inner scrollbar. */
  .ret-table th,.ret-table td{padding-left:.4rem;padding-right:.4rem}
  .ret-table .num{padding-left:1rem}
  /* Portrait 2-up grid on phones — the clean hook card reads well at half-width. */
  .card-grid,.card-grid-compact{gap:1.7rem 1.05rem;grid-template-columns:1fr 1fr;align-items:start}
  .card{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;cursor:default}
  .card:hover{transform:none;box-shadow:none;border-color:transparent}
  .card-link{border-radius:0}
  /* Compact image frame on phones. */
  .card .card-img-wrap{height:174px;margin:0 0 .5rem;padding:0 4px 9px;background:transparent;overflow:visible;align-items:flex-end}
  .card .card-img-wrap img{max-width:92%;max-height:100%}
  /* A price-target pill occupies most of a narrow thumbnail's top edge. */
  .card .card-img-wrap.has-watch img{padding-top:1.75rem}
  
  
  
  
  .card-name{min-height:2.15em;font-size:.88rem;line-height:1.22;padding:0;-webkit-line-clamp:2;letter-spacing:0}
  .card:hover .card-name{color:var(--ink)}
  .card-sub{margin-top:5px;font-size:.78rem;padding:0}
  .price-block{margin-top:7px;padding:0}
  .card-commerce{margin-top:0;padding-bottom:.7rem;border-bottom:1px solid rgba(199,121,47,.20)}
  .price-row{justify-content:flex-start;gap:.32rem;min-height:2.1rem}
  .trend-dot{margin-left:auto;width:18px;height:18px;border-radius:999px;display:inline-grid;place-items:center;background:#e4f3df;color:var(--green,#2f7d49);font-size:.78rem;font-weight:800;line-height:1;flex:0 0 auto}
  .trend-dot.trend--up{background:#fff0e5;color:var(--burnt,var(--sk-lg-burnt))}
  .trend-dot.trend--flat{background:#eee8df;color:var(--muted)}
  .trend-dot--empty{visibility:hidden}
  .card-commerce .card-drop{display:none}
  .card-buy{display:flex;align-items:center;justify-content:center;width:100%;min-height:32px;margin-top:5px;padding:.4rem .38rem;border:1px solid rgba(199,121,47,.45);border-radius:4px;background:linear-gradient(180deg,rgba(255,253,249,.78),rgba(255,246,232,.64));color:#b86d25;text-align:center;white-space:normal;line-height:1.12;font-size:.76rem;font-weight:750;overflow:visible;text-overflow:clip}
  .card-buy:hover{background:#fff6e8;color:var(--burnt,var(--sk-lg-burnt));text-decoration:none}
  /* Family card only: "cheapest at <retailer> ->" is longer than a normal
     card's "at <retailer> ->" and clips/overflows the narrow mobile button
     at phone widths (390px, Skull & Barrel). Drop the "cheapest " prefix on
     phones so it reads exactly like a normal card's buy line — the family
     badge/chips/price-range already say "this is a family" without it. */
  .card-buy-cheapest{display:none}
  .card-buy--empty{visibility:hidden;display:flex}
  /* Family card, phone only (ask #2111): span the full grid row and lay out
     horizontally — bottle image left (~42%, full card height), name/sub/
     chips/price/buy stacked on the right, so a long family name reads in
     full instead of clamping at half-card width. Desktop is untouched: this
     whole block lives inside this file's existing <=600px query (the same
     breakpoint .card-grid already 2-ups normal cards at, market.css:541).
     Adapted from Robert's approved mockup CSS (ask #2111) to this file's
     actual selectors/tokens (var(--line) not a literal hex, so the divider
     stays correct in dark mode via wb-landing-restyle-a.css's --line
     re-point) rather than pasted verbatim.

     grid-auto-flow:dense decision (design item 4): tried without dense
     first — CSS Grid's default sparse placement, when this full-width tile
     lands after an ODD-positioned single card, permanently strands that
     row's other column empty (a silent gap), which is no better than what
     dense causes. With dense scoped to this breakpoint, the ONLY reorder
     it can ever produce here is bounded and local: the single card
     immediately after a family tile in feed order may render one slot
     earlier (filling that same gap) instead of leaving it empty — never a
     wider scramble, since every card afterward returns to normal sequential
     packing. A visible blank cell breaking the clean 2-column rhythm is the
     worse, more visible defect of the two, so dense is the pick. */
  .card-grid{grid-auto-flow:dense}
  .card-family-deck{grid-column:1/-1}
  /* 5th row (design fix, tighten-390): a dedicated trailing track for Ask
     Buddy (design item below) — rows 1-4 hold name/sub/chips/price-block as
     before, row 5 is Ask Buddy's own line under the buy line. */
  .card-family{display:grid;grid-template-columns:42% 1fr;
    grid-template-rows:auto auto auto auto auto;column-gap:0}
  .card-family>.card-img-wrap{grid-column:1;grid-row:1/span 5;height:100%;
    margin:0;padding:12px 8px;align-items:center;
    border-right:1px solid var(--line,var(--sk-q-line))}
  .card-family>*:not(.card-img-wrap):not(.card-link){grid-column:2}
  /* Pin each details-column row explicitly (fix, small-family gap round):
     auto-placement assigns rows 1-4 by DOM ORDER among whichever of
     .card-name/.card-sub/.fam-chips/.price-block are present — so on a
     family whose .fam-chips node is absent/removed (the sparsest case,
     e.g. a single-batch family with no chip data), .price-block shifts up
     into row 3 and row 4 sits empty between it and Ask Buddy's explicit
     row 5. That empty row still absorbs its share of the leftover height
     the image column's height:100% pushes into the auto rows (browsers
     split slack evenly across auto tracks), reopening the same gap the
     #2111 top-anchor fix closed (measured: 44.5px with chips removed vs.
     0px with them present). Pinning every row explicitly makes each
     element's position independent of which siblings exist, so row 4
     (and therefore Ask Buddy's row 5 start) always sits exactly where
     .price-block's content ends, chips or no chips. */
  .card-family>.card-name{grid-row:1}
  .card-family>.card-sub{grid-row:2}
  .card-family>.fam-chips{grid-row:3}
  .card-family>.price-block{grid-row:4}
  /* Card height driven by the details column, not the image (design fix,
     tighten-390 / ask #2111 follow-up): wb-quiet-tokens.css's
     `.card .card-img-wrap img{height:100% !important;width:auto}` was
     resolving the percentage height against an indeterminate (auto-tracked)
     grid row, which the engine falls back to treating as the image's own
     NATURAL height — so a portrait bottle photo scaled to the 42% column's
     ~146px width rendered at its full un-capped proportional height
     (measured live: a 0.75-ratio photo alone stood ~196px; the real
     1:2.5-ish product photos on the live site stood far taller), stretching
     every auto row in the grid to match and leaving a large dead band in
     the details column below the chips. Capping the IMAGE's own height
     (not just the wrapper) removes the row-inflating effect at its root;
     the wrapper's `align-items:center` (above) then centres the now-shorter
     image within whatever height the details column actually needs. */
  .card-family-deck .card-family .card-img-wrap img{
    height:auto !important;max-height:210px !important;
    width:auto !important;max-width:100% !important;object-fit:contain !important;
  }
  /* Belt-and-suspenders cap on the wrapper itself, so a future image rule
     change can't reopen the tall-column defect even if it stops capping
     the <img> directly. */
  .card-family>.card-img-wrap{max-height:240px}
  /* Requirement 1: long family names ("Old Fitzgerald Bottled-in-Bond 10
     Year Old") must show in full on phones — relax the 2-line clamp
     (wb-quiet-tokens.css forces 2 lines with !important; this selector's
     extra specificity, .card-family .card-name vs its bare .card-name,
     wins the tie at matching !important weight) up to ~4 lines instead of
     an unbounded clamp, so one very long name still can't run away. */
  .card-family .card-name{padding:14px 12px 0 0;min-height:0;
    -webkit-line-clamp:4 !important}
  /* Badge moves to the image's corner (left, not right): with the details
     column now on the right, keeping the badge right-anchored would place
     it — since wb-quiet-tokens.css forces .card-img-wrap to position:static,
     leaving .fam-badge positioned against .card itself — over the name/
     price text instead of the photo. */
  /* max-width: .fam-badge is absolutely positioned against .card (its
     offsetParent — wb-quiet-tokens.css forces .card-img-wrap to
     position:static), not the narrower image column, so its natural
     unwrapped text width ("3 batches") would otherwise overlap the name
     text starting just past the 42% image column; capping it to the image
     column's width lets it wrap instead. */
  .card-family .fam-badge{left:10px;right:auto;max-width:calc(42% - 20px)}
  .card-family .fam-chips{padding:6px 12px 0}
  /* Ask Buddy into the details column (design fix, tighten-390): the button
     is a DOM child of .card-img-wrap (market.js), not a direct child of
     .card-family, so it never gets auto-placed into column 2 by the
     `.card-family>*` rule above — but wb-quiet-tokens.css already takes it
     out of flow with `position:absolute` against .card (its nearest
     positioned ancestor, which is also this grid container), and CSS Grid
     lets an abspos descendant of a grid container use grid-column/grid-row
     to size against a grid area regardless of DOM depth. Placing it at
     column 2 / row 5 (the dedicated trailing row above) resolves its inset
     properties against THAT area, not the whole card — so `left:0` lines
     it up with the name/chips/buy-line text, and it renders under the buy
     line instead of full-width below both columns. Specificity: 4 classes
     beats wb-quiet-tokens.css's 3-class `.card .card-img-wrap .card-buddy`
     (both !important). */
  /* Ask Buddy tight under the buy line on SPARSE families (fix, ask #2111
     follow-up): row 5 was sized to whatever leftover height the image
     column's forced min-height pushed into it (auto rows share extra
     spanning-item height roughly evenly), so on a 1-2-chip family the row
     grew tall and `bottom:4px` (anchoring Ask Buddy to that row's BOTTOM
     edge) left it floating 28-50px below the buy line — measured live:
     the real Weller family (1 batch) held a ~28px gap. Anchoring to the
     row's TOP edge instead (`top:0`) is immune to how tall row 5 ends up:
     the row's top edge is always exactly where row 4 (the buy line) ends,
     so Ask Buddy sits right under it regardless of how much slack space
     the row absorbs beneath it. Dense families keep working the same way
     (row 5 has little/no slack there, so top- and bottom-anchoring read
     the same). */
  
  .price-meta{margin-top:.15rem;line-height:1.35}
  .filter-secondary select{flex:1 1 46%;max-width:none}
  .filter-primary{flex-direction:column;align-items:stretch}
  /* In a column flex, the desktop `flex:1 1 280px` makes flex-basis the
     input HEIGHT (→ a ~280px-tall search box on mobile). Reset to content
     height. Operator feedback 320615941 ("search bar is way too tall"). */
  .filter-primary input[name="q"],.filter-primary button{width:100%;flex:0 0 auto}
  /* Mobile: get bottles in front of the user fast. Reorder so the search +
     discovery cards lead and the US-index explainer / panels drop below them;
     hide the long hero caveat. Flex `order` only — desktop DOM is untouched.
     (operator feedback 2026-06-01, uid 320615926) */
  main.wrap{display:flex;flex-direction:column}
  /* 2026-07-22 (defect round 1, Robert on-device: "landing page is still
     loading when it opens" — root cause found here, not in JS timing): this
     `main.wrap{display:flex}` + `#market{order:-1}` reorder is GLOBAL (every
     page using main.wrap, including the landing), but predates
     #tonightsPick (2026-07-22, mobile_header_search_prototype.html), which
     has no explicit order and so defaulted to order:0 — LANDING AFTER the
     entire #market grid (confirmed live: #tonightsPick rendered ~9900px
     down the page on a real catalogue). On the phone this reads exactly
     like "the landing is still loading": the featured card never appears
     above the fold, and Robert's separate splash-timing fix (this same
     defect round) would have revealed a market grid, not Tonight's Pick,
     on a real device. #tonightsPick isn't in DOM on /v2/catalog (only the
     landing route passes tonights_pick), so this addition is inert there —
     safe to state unconditionally rather than re-scoping per route. */
  #tonightsPick{order:-3}
  .filters{order:-2}
  #market{order:-1}
  .wb-caveat{display:none}
  .picks-featured{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible}
}
@media (max-width:430px){
  /* Narrow phones: tighten gaps and type slightly. */
  .card-grid,.card-grid-compact{gap:1.55rem .95rem}
  .card .card-img-wrap{height:166px;padding:0 4px 9px}
  /* ask #2111: this block's fixed height:166px above would otherwise beat
     the <=600px full-height family-card rule (same 0,2,0 specificity,
     later source order) on any phone <=430px wide — keep the family image
     column filling the tile's full height down here too. */
  .card-family>.card-img-wrap{height:100%;max-height:240px;padding:12px 8px}
  .card .card-img-wrap.has-watch img{padding-top:1.55rem}
  
  
  .card-name{min-height:2.05em;font-size:.84rem;padding:0}
  .card-sub{font-size:.76rem;padding:0}
  .price-block{padding:0}
  .price-label{font-size:.62rem}
  .filter-secondary select{flex:1 1 100%}
}

/* T3221: a shop with no outbound link is named as plain text, not a button. */
.card-shop-note{display:block;margin-top:7px;max-width:100%;font-family:var(--round);font-size:.8rem;color:var(--muted,#7a6f63);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
