@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
/* ============================================================================
   wb-header.css — the SINGLE source of truth for the site header.
   Linked by every page (the Jinja templates AND the standalone admin ops pages),
   and the markup is built once by app._site_header(). Colours use
   var(--token, <literal fallback>) so this sheet styles the header correctly on
   pages that define the design tokens (market/catalog/retailer/bottle.css) AND
   on pages that don't (the admin ops pages, my_whiskey). Header-only: the footer
   (.wb-footer*) and the Buddy rail (html.bd-rail-on …) live elsewhere.
   ========================================================================== */
:root{
  --wb-safe-top:env(safe-area-inset-top, 0px);
  --wb-field-bg:var(--bg-tint,var(--card,var(--sk-lg-card)));
  --wb-field-line:var(--line,var(--sk-lg-line));
  --wb-field-radius:11px;
  /* The Buddy / AI "sparkle" mark — a double four-point star (a large star with a
     smaller companion at its lower-left), the shape Robert approved 2026-07-12.
     Defined ONCE here (wb-header.css is linked on every page) and painted by the
     .wb-spark class below via CSS mask, so every call site inherits the icon by
     adding the class + an empty <span> — no per-language SVG copies. NOT the ★
     rating/favourite star, which is a different glyph and left untouched. */
  --wb-spark:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE0LjUsMC4zIFExNi4zLDcuNSAyMy41LDkuMyBRMTYuMywxMS4xIDE0LjUsMTguMyBRMTIuNywxMS4xIDUuNSw5LjMgUTEyLjcsNy41IDE0LjUsMC4zIFogTTUuNCwxMy44IFE2LjI4LDE3LjMyIDkuOCwxOC4yIFE2LjI4LDE5LjA4IDUuNCwyMi42IFE0LjUyLDE5LjA4IDEsMTguMiBRNC41MiwxNy4zMiA1LjQsMTMuOCBaIiBmaWxsPSIjMDAwIi8+PC9zdmc+");
}
/* Keep pages clear of a side notch or camera strip (landscape phones, the
   folded iPhone Duo's right-edge status strip). The iOS apps use contentInset
   'never', so the page pads these itself; zero on ordinary portrait screens. */
body{
  padding-left:env(safe-area-inset-left, 0px);
  padding-right:env(safe-area-inset-right, 0px);
}
/* Buddy/AI sparkle icon. Sized in em so it tracks whatever font-size the call
   site already sets (the old text-glyph's sizing carries over unchanged); painted
   with currentColor so it inherits each context's existing colour automatically. */
.wb-spark{
  display:inline-block;
  width:1em;height:1em;
  /* min-* so the icon survives higher-specificity card rules that were written
     for the old TEXT glyph and set width/height:auto (e.g. the mobile-header
     prototype + mobile market card rules) — an empty masked box under width:auto
     collapses to 0×0 and vanishes; min-width/min-height are not touched by those
     overrides, so the icon keeps its em size everywhere. */
  min-width:1em;min-height:1em;
  vertical-align:-0.125em;
  flex:none;
  background-color:currentColor;
  -webkit-mask:var(--wb-spark) center/contain no-repeat;
          mask:var(--wb-spark) center/contain no-repeat;
}
.wb-header{
  /* Pin the brand palette to the header so it's identical on every page —
     including the admin dashboards, whose page theme sets a different --accent
     (blue). Scoped custom properties inherit to all header descendants. */
  --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); --ink:var(--sk-q-shadow); --ink-soft:var(--sk-lg-ink-soft); --line:var(--sk-lg-line); --card:var(--sk-lg-card);
  --burnt:var(--sk-lg-burnt);
  position:sticky;top:0;z-index:50;
  padding-top:var(--wb-safe-top);
  /* Solid, not frosted: a translucent header let scrolled content bleed
     through (worse on iOS Safari, where the unprefixed backdrop-filter blur
     didn't apply). Opaque cream looks identical over the light page body. */
  background:var(--sk-q-bg);backdrop-filter:none;-webkit-backdrop-filter:none;
  border-bottom:1px solid var(--line)}
/* Title bar: two zones — brand (logo + wordmark + small AU flag) on the left,
   right cluster (search + nav + CTA) filling to the end. The old centred
   "Australia's bourbon expert" pill was retired (too loud beside the refined
   redesign); the AU signal now lives as a small flag chip next to the wordmark. */
.wb-header-in{max-width:none;margin:0;padding:.4rem 1rem;
  display:grid;grid-template-columns:auto minmax(0,1fr);
  align-items:center;gap:1rem}
.wb-brand{justify-self:start;display:inline-flex;align-items:center;gap:.55rem;text-decoration:none}
.wb-header-right{justify-self:end;display:flex;align-items:center;gap:.5rem;
  min-width:0;width:100%;justify-content:flex-end}
.wb-search{position:relative;flex:1 1 min(42rem,60vw);max-width:none;margin:0 .4rem}
.wb-search .ico{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);
  color:var(--muted,var(--sk-lg-muted));pointer-events:none}
.wb-search input{width:100%;padding:.55rem .8rem .55rem 2.2rem;border-radius:var(--wb-field-radius,11px);
  border:1px solid var(--wb-field-line,var(--line,var(--sk-lg-line)));background:var(--wb-field-bg,var(--bg-tint,var(--card,var(--sk-lg-card))));font:inherit;color:var(--ink,var(--sk-q-shadow));
  transition:border-color .14s,box-shadow .14s}
.wb-search input::placeholder{color:var(--muted,var(--sk-lg-muted))}
/* The ✦ Buddy opener inside the search bar — the landing bar's pattern.
   App-only: desktop has the persistent rail, so the star stays hidden ≥861px
   and the desktop header is byte-identical. */
.wb-search-buddy{display:none}
@media (max-width:860px){
  .wb-search-buddy{display:inline-flex;align-items:center;justify-content:center;
    position:absolute;right:.3rem;top:50%;transform:translateY(-50%);
    width:2.1rem;height:2.1rem;border:0;border-radius:9px;background:transparent;
    color:var(--accent,var(--sk-q-accent));font-size:1.35rem;line-height:1;cursor:pointer}
  .wb-search-buddy:active{background:var(--accent-bg,var(--sk-q-accent-bg))}
  .wb-search input{padding-right:2.6rem}
}
.wb-search input:focus{outline:none;border-color:var(--accent-line,var(--sk-lg-accent-line));box-shadow:0 0 0 3px rgba(201,135,54,.16)}
.wb-results{position:absolute;top:calc(100% + .45rem);left:0;right:0;background:var(--card,var(--sk-lg-card));
  border:1px solid var(--line,var(--sk-lg-line));border-radius:14px;box-shadow:0 16px 38px rgba(var(--sk-q-shadow-rgb),.20);
  overflow:hidden auto;max-height:min(66vh,440px);z-index:60;display:none}
.wb-results.open{display:block}
.wb-res-head{font-family:var(--round,'Space Grotesk',ui-rounded,system-ui,sans-serif);font-weight:600;font-size:.72rem;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted,var(--sk-lg-muted));padding:.55rem .8rem .35rem}
.wb-result{display:flex;align-items:center;gap:.65rem;padding:.5rem .8rem;cursor:pointer;
  border-top:1px solid var(--line-soft,var(--sk-lg-line-soft));text-decoration:none;color:var(--ink,var(--sk-q-shadow))}
.wb-result:hover{text-decoration:none}
.wb-result.active{background:var(--soft,var(--sk-lg-soft))}
.wb-result img{width:34px;height:44px;object-fit:contain;background:#fff;border:1px solid var(--line-soft,var(--sk-lg-line-soft));
  border-radius:6px;flex:none;padding:2px}
.wb-result .rtext{min-width:0;display:flex;flex-direction:column;gap:.1rem}
.wb-result .rname{font-family:var(--round,'Space Grotesk',ui-rounded,system-ui,sans-serif);font-weight:600;font-size:.9rem;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-result .rmeta{font-size:.77rem;color:var(--muted,var(--sk-lg-muted))}
.wb-result .rright{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;flex:none}
.wb-result .rprice{font-family:var(--round,'Space Grotesk',ui-rounded,system-ui,sans-serif);font-weight:600;color:var(--accent,var(--sk-q-accent));font-variant-numeric:tabular-nums}
.wb-result .rprice-none{color:var(--muted,var(--sk-lg-muted))}
.wb-result .idx{font-size:.72rem;padding:.1rem .4rem}
.wb-res-ask{display:block;width:100%;padding:.62rem .8rem;border:0;border-bottom:1px solid var(--line,var(--sk-lg-line));
  background:var(--accent-bg,var(--sk-q-accent-bg));color:var(--accent,var(--sk-q-accent));font:600 .86rem var(--round,'Space Grotesk',ui-rounded,system-ui,sans-serif);
  text-align:left;cursor:pointer}
.wb-res-ask:hover,.wb-res-ask.active{background:#f0d9b4}
.wb-res-foot{display:block;padding:.6rem .8rem;border-top:1px solid var(--line,var(--sk-lg-line));
  font-family:var(--round,'Space Grotesk',ui-rounded,system-ui,sans-serif);font-weight:600;font-size:.85rem;color:var(--accent,var(--sk-q-accent));
  background:var(--bg-tint,var(--sk-lg-bg-tint));text-decoration:none}
.wb-res-foot:hover,.wb-res-foot.active{background:var(--accent-bg,var(--sk-q-accent-bg));text-decoration:none}
@media (max-width:560px){.wb-search{flex:1 1 auto;margin:0}.wb-search input{padding-right:.6rem}}
/* ≤860px (the app): the header search stays VISIBLE on every page — including
   the landing (2026-07-04: the landing's own sticky mhsp search bar was retired
   so it uses this same wb-search everywhere, one search surface). The phone
   header row has no room for it beside the bell + Menu (it collapsed to a ~65px
   stub overlapping the wordmark — the 2026-06-23 problem), so on the app it
   WRAPS to its own full-width row under the logo/bell/Menu row, the same top-bar
   pattern every page uses. (Was scoped to html.bd-rail-on — which silently
   killed the app's search bar on every rail-flagged page; 2026-07-03 incidents.) */
@media (max-width:860px){
  /* Promote the right-cluster children to direct flex items of .wb-header-in
     (which the phone block below flips to display:flex), so the search can
     wrap to its OWN full-width row under logo/bell/Menu. Squeezed into the
     one-row cluster it collapses to a ~65px stub overlapping the wordmark
     (the 2026-06-23 problem). Brand's auto margin keeps bell/Menu right. */
  .wb-header-right{ display:contents; }
  .wb-header .wb-brand{ margin-right:auto; }
  /* 2026-07-09 (reverses 2026-07-04, sprint-state/decisions/2026-07-09-app-
     search-moves-to-bottom-bar.md): Robert wants the top search box gone on
     the app — the bottom dock bar (#bdBar, the former Buddy stylesheet/js) is now the one
     visible-at-rest search surface there. Desktop (>=861px) is untouched:
     the rule below this block still re-shows .wb-search on rail pages. */
  .wb-header .wb-search{ display:none; }
}

/* Rail-state header geometry (moved from the former Buddy stylesheet 2026-07-10 — header
   rules live with the header; html.bd-rail-on scoping carries the state). */
/* keep the sticky header full-width above the strip (−rail width, not 100vw, to avoid scrollbar overflow) */



.wb-brand:hover{text-decoration:none}
.wb-mark{width:30px;height:30px;border-radius:9px;display:block;
  box-shadow:0 1px 0 rgba(var(--sk-q-shadow-rgb),.04),0 2px 8px rgba(var(--sk-q-shadow-rgb),.10);
  border:1px solid var(--line,var(--sk-lg-line))}
.wb-word{font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);
  font-weight:600;font-size:1.3rem;line-height:1;letter-spacing:-.035em;white-space:nowrap}
.wb-w{color:var(--ink,var(--sk-q-shadow))}
/* T346 (2026-08-19, "bourbonbuddy logo broken", AAozEz2VHJQ5luXu9otQRMk):
   tester's screenshot shows the "buddy" half of the wordmark as a solid
   orange BLOCK behind the letters instead of the gradient clipped to the
   text. `color:transparent` alone relies on WebKit inferring the text-fill
   from `color` — a documented iOS Safari/WKWebView gap (most reliable
   around a web-font swap, exactly what this wordmark does loading Space
   Grotesk) where the gradient paints its full background box instead of
   being clipped to the glyphs. `-webkit-text-fill-color:transparent` is the
   standard belt-and-braces fix and is a no-op everywhere this already
   rendered correctly (confirmed unchanged on Chromium — this sandbox has no
   WebKit to reproduce the fault on, so this is a defensive fix, not a
   verified-live one). */
.wb-b{background:linear-gradient(95deg,#e6b34d 0%,#e0954a 42%,var(--sk-lg-burnt) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-fill-color:transparent}
.wb-ai{font-weight:700;font-size:.4em;vertical-align:super;margin-left:.08em;letter-spacing:.04em;
  background:linear-gradient(95deg,#e6b34d 0%,#e0954a 42%,var(--sk-lg-burnt) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 5px rgba(224,149,74,.45))}
.wb-word--onDark .wb-w{color:#fff}
/* Small AU flag chip beside the wordmark — the quiet Australian signal that
   replaced the loud centred pill. Flat, lightly framed, baseline-nudged to sit
   level with the wordmark's lower-case x-height. */
.wb-flag{width:26px;height:auto;border-radius:3px;display:block;flex:none;
  align-self:center;margin-left:.5rem;
  box-shadow:0 1px 2px rgba(var(--sk-q-ink-rgb),.28),0 0 0 1px rgba(var(--sk-q-shadow-rgb),.10)}
.wb-nav{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;
  font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);font-weight:500}
.wb-nav a{color:var(--ink-soft,var(--sk-lg-ink-soft));font-size:.96rem;padding:.4rem .7rem;border-radius:8px;
  text-decoration:none;transition:background .15s,color .15s}
.wb-nav a:hover{color:var(--accent,var(--sk-q-accent));background:var(--accent-bg,var(--sk-q-accent-bg));text-decoration:none}
.wb-nav a.active{color:var(--accent,var(--sk-q-accent));background:var(--accent-bg,var(--sk-q-accent-bg))}
/* Public nav: a single ☰ dropdown at EVERY width — one tidy menu holding the
   public links and, for admins, the ops links (folded in by app._site_header),
   so the user sees everything applicable to them in one list. There is no inline
   desktop link row; .wb-nav-links is the hidden inline copy from the markup.
   (History: the desktop row was briefly built by making the <details> itself
   display:contents to single-source the markup, but browsers don't reliably
   flatten display:contents on <details> — it collapsed the desktop nav into a
   hidden vertical stack. The single ☰ sidesteps that entirely.) */
.wb-nav-links{display:none}
.wb-menu{position:relative;display:inline-block}
.wb-menu-pop{display:none}
.wb-menu-btn{display:inline-flex;align-items:center;gap:10px;cursor:pointer;list-style:none;
  background:rgba(255,255,255,.6);border:1px solid rgba(184,83,31,.22);
  border-radius:11px;padding:9px 13px;box-shadow:0 2px 8px rgba(40,24,8,.06);
  transition:background .15s,border-color .15s}
.wb-menu-btn::-webkit-details-marker{display:none}
.wb-menu-burger{display:flex;flex-direction:column;gap:4px}
.wb-menu-burger span{width:18px;height:2px;border-radius:2px;background:var(--burnt,var(--sk-lg-burnt))}
.wb-menu-burger span:nth-child(2){width:14px}
.wb-menu-label{font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);
  font-weight:600;font-size:13px;letter-spacing:.04em;color:var(--ink,var(--sk-q-shadow))}
.wb-menu-plan-chip{font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);
  font-weight:700;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.05em;
  color:var(--accent,var(--sk-q-accent));background:var(--accent-bg,var(--sk-q-accent-bg));
  border:1px solid var(--accent-line,var(--sk-lg-accent-line));border-radius:999px;padding:4px 6px;white-space:nowrap}
.wb-menu[open] .wb-menu-btn{background:var(--accent,var(--sk-q-accent));border-color:var(--accent,var(--sk-q-accent))}
.wb-menu[open] .wb-menu-burger span{background:#fff}
.wb-menu[open] .wb-menu-label{color:#fff}
.wb-menu[open] .wb-menu-plan-chip{color:#fff;background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.35)}
.wb-menu[open] .wb-menu-pop{display:flex;flex-direction:column;gap:.1rem;
  position:absolute;top:calc(100% + .4rem);right:0;min-width:230px;
  background:var(--card,var(--sk-lg-card));border:1px solid var(--line,var(--sk-lg-line));border-radius:12px;
  box-shadow:0 16px 38px rgba(var(--sk-q-shadow-rgb),.20);padding:.3rem;z-index:60;
  /* Cap to the viewport and scroll internally so the long admin menu can't
     run off the bottom of the page on mobile. dvh tracks the mobile address
     bar; overscroll-contain stops the scroll chaining to the page behind. */
  max-height:calc(100dvh - 5rem);overflow-y:auto;overscroll-behavior:contain}
.wb-menu-pop a{display:block}
.wb-menu-plan{margin:.05rem .05rem .3rem;padding:.7rem!important;border-radius:10px!important;
  background:linear-gradient(135deg,#fff9ed,#f7e7ca);border:1px solid var(--accent-line,var(--sk-lg-accent-line));
  color:var(--ink,var(--sk-q-shadow))!important;text-decoration:none!important}
.wb-menu-plan:hover{background:linear-gradient(135deg,#fff5df,#f4dfbc)!important}
.wb-menu-plan-top{display:flex;align-items:center;justify-content:space-between;gap:.7rem;
  font-size:.78rem;color:var(--ink-soft,var(--sk-lg-ink-soft))}
.wb-menu-plan-top strong{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;
  color:#fff;background:var(--accent,var(--sk-q-accent));border-radius:999px;padding:.18rem .42rem}
.wb-menu-plan-usage{display:block;margin-top:.35rem;font-size:.84rem;font-weight:600}
.wb-menu-plan-warning{display:block;margin-top:.2rem;color:#a14626;font-size:.75rem;font-weight:700}
.wb-menu-plan-link{display:block;margin-top:.35rem;color:var(--accent,var(--sk-q-accent));
  font-size:.73rem;font-weight:600}
@media (max-width:560px){
  .wb-word{font-size:1.25rem}
  /* On phones the default 230px right-anchored panel covers ~60% of the screen
     and buries the hero. Pin it narrower (fixed width, not min-width — a bare
     min-width:0 lets the flex panel collapse below the label widths and wrap)
     and pull it flush toward the window edge. 170px still clears the longest
     label ("Resolve status", ~142px incl. padding) so no page title wraps to a
     second row; the plan-card description wrapping is fine. */
  .wb-menu[open] .wb-menu-pop{min-width:0;width:170px;right:-10px}
  /* Keep the account marker visible without letting it widen the Menu button
     and push the bell over the wordmark on narrow phones. */
  .wb-menu-btn{position:relative}
  .wb-menu-plan-chip{position:absolute;top:-7px;right:6px;
    font-size:7px;padding:3px 5px;pointer-events:none;
    box-shadow:0 1px 3px rgba(var(--sk-q-shadow-rgb),.12)}
  /* The chip floats above the button over the cream page, so keep it
     orange-on-cream even when the menu is open — the default open-state
     white-on-translucent-white assumes it sits on the orange button. */
  .wb-menu[open] .wb-menu-plan-chip{color:var(--accent,var(--sk-q-accent));
    background:var(--card,var(--sk-lg-card));border-color:var(--accent-line,var(--sk-lg-accent-line))}
}
/* B1/B3 (16 Nov 2026): signed in, inner pages: logo + bell + "☰ Menu" is wider
   than a 360px phone, so Menu wrapped under the logo and its dropdown (anchored
   to the wrapped button) opened off the left edge. Same fix the home header got
   (ask #2336, home-shop.css): below 440px the Menu button is a 44px icon.
   440 not 400: common Android phones are 411-412 CSS px wide (moto g06 recheck,
   16 Nov) and iPhone Pro Max is 430. */
@media (max-width:440px){
  .wb-header .wb-menu-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .wb-header .wb-menu-btn{padding:0;width:44px;justify-content:center}
  .wb-header-in{padding-left:.75rem;padding-right:.75rem;gap:.4rem}
}
/* header Buddy entry + early-access pill (the "✦ Buddy" preview opener) */
.wb-nav-buddy{display:inline-flex;align-items:center;gap:.3rem;
  font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);font-weight:600;
  color:#fff !important;background:linear-gradient(135deg,var(--accent,var(--sk-q-accent)),var(--gold,var(--sk-lg-gold)));
  padding:.42rem .8rem !important;border-radius:999px !important;margin-left:.2rem;text-decoration:none}
.wb-nav-buddy:hover{filter:brightness(1.05);text-decoration:none}

.wb-cta-access{display:inline-flex;align-items:center;
  font-family:'Space Grotesk',var(--round,'Fredoka',ui-rounded,system-ui,sans-serif);font-weight:600;font-size:.92rem;
  color:var(--accent,var(--sk-q-accent)) !important;border:1px solid var(--accent-line,var(--sk-lg-accent-line));border-radius:999px;
  padding:.4rem .85rem !important;margin-left:.5rem;white-space:nowrap;text-decoration:none}
.wb-cta-access:hover{background:var(--accent-bg,var(--sk-q-accent-bg));text-decoration:none}
@media (max-width:760px){.wb-cta-access{display:none}}

/* Admin dropdown styling — kept for reference, but the standalone pill is now
   hidden at every width: admin ops links are folded into the single ☰ menu
   instead (see .wb-menu-admin + app._site_header). Role-gated in the markup. */
.wb-admin-menu{display:none}
.wb-admin-link{display:inline-block;cursor:pointer;list-style:none;
  color:var(--accent,var(--sk-q-accent));border:1px solid var(--accent-line,var(--sk-lg-accent-line));background:var(--accent-bg,var(--sk-q-accent-bg));
  font-weight:600;font-size:.96rem;padding:.4rem .7rem;border-radius:8px;
  transition:background .15s,color .15s}
.wb-admin-link::-webkit-details-marker{display:none}
.wb-admin-link::after{content:"▾";margin-left:.35rem;font-size:.8em}
.wb-admin-menu[open] .wb-admin-link,.wb-admin-link:hover{background:var(--accent,var(--sk-q-accent));color:#fff;border-color:var(--accent,var(--sk-q-accent))}
.wb-admin-pop{position:absolute;top:calc(100% + .4rem);right:0;min-width:180px;
  background:var(--card,var(--sk-lg-card));border:1px solid var(--line,var(--sk-lg-line));border-radius:12px;
  box-shadow:0 16px 38px rgba(var(--sk-q-shadow-rgb),.20);padding:.3rem;z-index:60;
  display:flex;flex-direction:column;gap:.1rem}
.wb-admin-pop a{display:block;padding:.5rem .7rem;border-radius:8px;
  color:var(--ink,var(--sk-q-shadow));font-size:.92rem;text-decoration:none;white-space:nowrap}
.wb-admin-pop a:hover{background:var(--accent-bg,var(--sk-q-accent-bg));color:var(--accent,var(--sk-q-accent));text-decoration:none}
/* Admin ops links folded into the single ☰ menu (markup: app._site_header):
   hidden until the menu is open, then shown under a divider beneath the public
   links — at every width, so admins get one combined list. */
.wb-menu-admin{display:none}
.wb-menu[open] .wb-menu-admin{display:block;
  border-top:1px solid var(--line,var(--sk-lg-line));margin-top:.25rem;padding-top:.25rem}

/* ============================================================================
   Price-alert bell (ROADMAP #18) — logged-in only. Light card dropdown matching
   .wb-menu-pop / .wb-admin-pop; the badge is a small burnt-orange count. The
   bell + list are populated by static/js/wb-alerts.js (GET /v2/api/me/alerts).
   ========================================================================== */
.wb-bell{position:relative;display:inline-flex}
.wb-bell-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;padding:0;line-height:0;border-radius:9px;cursor:pointer;
  background:transparent;border:1px solid var(--line,var(--sk-lg-line));color:var(--ink-soft,var(--sk-lg-ink-soft));
  transition:background .15s,color .15s}
.wb-bell-btn:hover{color:var(--accent,var(--sk-q-accent));background:var(--accent-bg,var(--sk-q-accent-bg))}
.wb-bell-ico{display:block}
.wb-bell-badge{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;
  border-radius:9px;background:var(--burnt,var(--sk-lg-burnt));color:#fff;
  font:600 11px/17px 'Space Grotesk',ui-rounded,system-ui,sans-serif;text-align:center;
  box-shadow:0 0 0 2px var(--card,var(--sk-lg-card))}
.wb-bell-pop{position:absolute;top:calc(100% + 8px);right:0;width:min(340px,92vw);
  max-height:min(440px,70vh);overflow-y:auto;overflow-x:hidden;z-index:1200;padding:.5rem;
  background:var(--card,var(--sk-lg-card));border:1px solid var(--line,var(--sk-lg-line));border-radius:12px;
  box-shadow:0 16px 38px rgba(var(--sk-q-shadow-rgb),.20)}
/* On a phone the bell sits mid-cluster (search/menu to its right), so anchoring
   the panel to the bell's right edge lets a ~340px dropdown run off the left of
   the screen and get clipped. Pin it to the viewport instead — full width with
   gutters, just below the (safe-area-aware) sticky header. */
@media (max-width:560px){
  .wb-bell-pop{position:fixed;left:10px;right:10px;width:auto;max-width:none;
    top:calc(var(--wb-safe-top,0px) + 54px)}
  /* Beta round-3 2026-07-24: on a phone the fixed-position dropdown floated
     directly over the page's own card grid with nothing to separate the two,
     reading as a visual collision (ROUND3-DIAGNOSIS item E). A scrim behind
     the open popover — below it in the stack (z-index 1199 < 1200) but above
     everything else on the page — makes the dropdown read as clearly on top
     without changing any page layout. Tap-to-dismiss reuses the existing
     click-away handler in wb-alerts.js (a tap anywhere outside .wb-bell-pop
     already closes it). */
  .wb-bell:has(> [data-wb-bell-pop]:not([hidden]))::before{
    content:"";position:fixed;inset:0;z-index:1199;
    background:rgba(31,22,15,.32);
    animation:wbBellScrimIn .15s ease}
  /* The scrim occluded the bell button itself (post-merge interaction with the
     card2 bell, 2026-07-24): a second tap landed on the scrim, so the bell's
     own toggle-closed never fired. Lift the button above the scrim while the
     popover is open — scrim still blocks the rest of the page. */
  .wb-bell:has(> [data-wb-bell-pop]:not([hidden])) .wb-bell-btn{
    position:relative;z-index:1200}
  @keyframes wbBellScrimIn{from{opacity:0}to{opacity:1}}
}
.wb-bell-head{display:flex;align-items:center;padding:.35rem .5rem .5rem;margin-bottom:.35rem;
  border-bottom:1px solid var(--line,var(--sk-lg-line));color:var(--ink,var(--sk-q-shadow));
  font:600 .95rem 'Space Grotesk',ui-rounded,system-ui,sans-serif}
.wb-bell-retention{margin-left:.35rem;color:var(--muted,var(--sk-lg-muted));font:500 .72rem var(--sans,system-ui,sans-serif);flex:1}
.wb-bell-clear{margin-left:.5rem;padding:.15rem .45rem;border:1px solid var(--line,#e0d0b8);border-radius:5px;
  background:none;color:var(--ink-soft,var(--sk-lg-ink-soft));font:.72rem var(--sans,system-ui,sans-serif);cursor:pointer;line-height:1.4}
.wb-bell-clear:hover{background:var(--soft,var(--sk-lg-soft));color:var(--ink,var(--sk-q-shadow))}
.wb-bell-empty{padding:.6rem .5rem;line-height:1.45;color:var(--ink-soft,var(--sk-lg-ink-soft));font-size:.88rem}
.wb-bell-item{padding:.5rem;border-radius:9px}
.wb-bell-item.is-clickable{cursor:pointer}
.wb-bell-item.is-clickable:hover{background:var(--soft,var(--sk-lg-soft))}
.wb-bell-item.is-clickable:focus-visible{outline:2px solid var(--focus,#c98736);outline-offset:1px}
.wb-bell-item+.wb-bell-item{margin-top:.15rem;border-top:1px solid var(--line,#f0e7d6)}
.wb-bell-item.is-unread{background:var(--accent-bg,var(--sk-q-accent-bg))}
.wb-bell-name{color:var(--ink,var(--sk-q-shadow));font:600 .92rem 'Space Grotesk',ui-rounded,system-ui,sans-serif;overflow-wrap:break-word}
.wb-bell-name-link{color:inherit;text-decoration:none}
.wb-bell-name-link:hover{text-decoration:underline}
.wb-bell-meta{margin-top:.15rem;color:var(--ink-soft,var(--sk-lg-ink-soft));font-size:.84rem;overflow-wrap:break-word}
.wb-bell-foot{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.3rem}
.wb-bell-link{color:var(--accent,var(--sk-q-accent));font-size:.82rem;font-weight:600;text-decoration:none}
.wb-bell-link:hover{text-decoration:underline}
.wb-bell-when{white-space:nowrap;color:var(--ink-soft,var(--sk-au-dim));font-size:.78rem}

/* ============================================================================
   Header slim-down (<=860px). This matches the Buddy rail's bottom-bar breakpoint
   (the former Buddy stylesheet @860): below it the rail re-shows the header search + ✦ Buddy
   pill, so brand + AU flag + search + Buddy pill + ☰ + Admin pill no longer fit
   one row and the right-side pills stack into a tall column (~128px). Collapse to
   a single ~56px row: drop the decorative flag and the header Buddy pill (Buddy
   lives in the bottom Buddy bar at this size), and fold the Admin links into the
   ☰ menu so the standalone Admin pill no longer overflows. The search box is kept.
   ========================================================================== */
/* On narrow phones the wordmark (nowrap) + flag leave too little room for the
   bell + Menu, so header-right overflowed left and the bell overlapped the flag
   ("flag overlaps the bell", 2026-06-22). The flag is decorative, so drop it
   below the width where it fits; it stays on wider phones, tablets, desktop. */
@media (max-width:430px){ .wb-flag{display:none} }
@media (max-width:860px){
  /* the small AU flag chip stays where it fits (it's only 26px) — the AU signal */
  /* header Buddy pill is redundant here (bottom Buddy bar covers it); the
     rail forces it visible (the former Buddy stylesheet), so out-specify that here */
  .wb-nav-buddy {display:none}
  /* flex, wrapping allowed — logo/bell/Menu on row 1, the full-width search
     wraps to row 2 (see the display:contents block above; 2026-07-03) */
  .wb-header-in{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-start}
  .wb-header-right{width:auto;flex:1 1 auto}
  .wb-nav{flex-wrap:nowrap}
}

/* Bottle-page header-search deltas (moved from bottle.css 2026-07-10;
   scoped by the page body class, not cascade order). */
.page-bottle .wb-search{flex:1 1 min(42rem,60vw);max-width:none;margin:0 .4rem}
@media (max-width:560px){.page-bottle .wb-search input{padding-right:.6rem}}


/* ============================================================================
   wb-menu-app — App Store badge entry inside the ☰ hamburger menu
   (2026-08-22 restyle, Robert-directed — the retired top promo strip's badge
   moved here; see sprint-state/decisions/2026-08-21-app-banner-restyle-
   directed.md). Markup: site_chrome._app_store_menu_entry, folded into the
   ☰ menu by BOTH builders (_site_header and site_menu_fragment/card2).
   Default (bourbon) site only — siblings have no iOS app. Official Apple
   black badge artwork at its native 120×40 (40px is Apple's minimum badge
   height). Ships hidden; the entry's inline UA check reveals it everywhere
   except iOS (Apple's smart banner owns iOS) and Android (no app).
   ========================================================================== */
.wb-menu-app{display:block;margin:.5rem .05rem .15rem}
.wb-menu-app[hidden]{display:none} /* display:block above would override [hidden] */
.wb-menu-app img{display:block;width:120px;height:40px}
