/*
 * wb-shop-skin.css — site restyle step 1 (2026-10-09, ask #2338): carry the
 * T970 Bottle Shop home look (home-shop.css) to every other page, so the
 * site reads as one site. APPEARANCE ONLY: every selector targets markup the
 * shared builders already emit (site_chrome._site_header / _menu_markup, the
 * card2 .bc2-header, partials/footer.html) or a page's existing button and
 * heading elements; nothing here adds, removes or rewords a link.
 *
 * Linked LAST in <head> so it sits above the restyle-A sheets. Those sheets
 * use the `html:not(#_)` + `!important` cascade lever, so this one does too.
 * Colours: every colour is a --sk-* palette token, emitted per site by
 * SiteConfig.palette_style from config/sites/<site>.yaml (T72); this sheet
 * holds no colour values. Light only, like the home page itself.
 */

:root {
  --sk-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sk-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
/* The restyle-A sheets paint from their own tokens; point those at the home
   palette so every panel, hairline and accent they draw follows along.
   `html:not(#_)` outranks their `:root` (and their dark-mode :root). */
html:not(#_) {
  --r2-paper: var(--sk-paper) !important;  --r2-surface: var(--sk-card) !important;
  --r2-sunk: var(--sk-sunk) !important;   --r2-plate: var(--sk-card) !important;
  --r2-ink: var(--sk-ink) !important;    --r2-ink-2: var(--sk-ink-soft) !important;  --r2-ink-3: var(--sk-muted) !important;
  --r2-hair: var(--sk-line) !important;   --r2-hair-2: var(--sk-line-2) !important;
  --r2-accent: var(--sk-amber-deep) !important; --r2-accent-ink: var(--sk-cream) !important; --r2-focus: var(--sk-amber-deep) !important;
  --r2l-paper: var(--sk-paper) !important; --r2l-surface: var(--sk-card) !important; --r2l-sunk: var(--sk-sunk) !important;
  --r2l-ink: var(--sk-ink) !important;   --r2l-ink-2: var(--sk-ink-soft) !important;
  --r2l-hero-paper: var(--sk-roast) !important;
}

/* ---- page ---------------------------------------------------------- */
html:not(#_) body {
  background: var(--sk-paper) !important;
  color: var(--sk-ink) !important;
  font-family: var(--sk-body) !important;
}
html:not(#_) main h1,
html:not(#_) main h2,
html:not(#_) .bd-hero-h1,
html:not(#_) .wrap > h1,
html:not(#_) .wrap h1 {
  font-family: var(--sk-display) !important;
  color: var(--sk-ink) !important;
  letter-spacing: -.02em;
}
html:not(#_) main h1, html:not(#_) main h2, html:not(#_) .wrap h1 { font-weight: 700 !important; }
html:not(#_) .wb-hero { background: var(--sk-amber-deep) !important; }
html:not(#_) .bd-hero-h1 { color: var(--sk-cream) !important; font-size: 34px !important; }
html:not(#_) .bd-hero-h1 * { color: var(--sk-gold) !important; -webkit-text-fill-color: var(--sk-gold) !important; background: none !important; }
html:not(#_) .bd-hero-sub { color: var(--sk-on-dark) !important; }

/* ---- header: the home page's amber bar ------------------------------ */
html:not(#_) .wb-header,
html:not(#_) .bc2-header {
  background: var(--sk-amber-deep) !important;
  border-bottom: 1px solid rgba(var(--sk-edge-rgb),.16) !important;
  box-shadow: none !important;
  color: var(--sk-cream) !important;
}
html:not(#_) .wb-header .wb-header-in { min-height: 64px; }
/* the bottle page's header lives inside its centred card column; paint the
   amber out to both screen edges so it reads as the same full-width bar */
/* the bottle page's header lives inside its card column: paint the amber out
   to both screen edges with border-image (paints outside the box without
   clipping it — a clip-path cut off the bell list) */
html:not(#_) .bc2-header {
  border-image: linear-gradient(var(--sk-amber-deep) 0 0) fill 0 / 0 / 0 100vmax !important;
}
/* T1157: the fixed strip behind the iOS clock (bottle-card2.css) was still
   paper-cream above the amber bar — a band in the app. App only (html.wb-app,
   set by site_config.APP_CLASS_SCRIPT), so the website is unchanged. */
html.wb-app:not(#_) .bc2-status-mask { background: var(--sk-amber-deep) !important; }
/* T1157: the iOS shells use contentInset 'never' (ask #2349), so app pages
   keep clear of a landscape notch themselves. App only. */
html.wb-app:not(#_) body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* bottle-page search: a box on wider screens, an icon on phones */
html:not(#_) .bc2-skin-search {
  display: flex !important; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 520px;
  margin: 0 12px; padding: 0 14px; height: 40px; border-radius: 10px;
  background: rgba(0,0,0,.2); border: 1px solid rgba(var(--sk-edge-rgb),.28); color: var(--sk-on-dark-mute);
}
html:not(#_) .bc2-skin-search input {
  flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important;
  color: var(--sk-cream) !important; font: 15px var(--sk-body) !important; padding: 0 !important; height: 38px;
}
html:not(#_) .bc2-skin-search input::placeholder { color: var(--sk-on-dark-mute); }
html:not(#_) .bc2-skin-search-btn { display: none !important; }
@media (max-width: 600px) {
  html:not(#_) .bc2-skin-search { display: none !important; }
  html:not(#_) .bc2-skin-search-btn {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; color: var(--sk-cream) !important;
  }
}
html:not(#_) .wb-header .wb-word,
html:not(#_) .bc2-header .wb-word {
  font-family: var(--sk-display) !important;
  font-weight: 700 !important;
  color: var(--sk-cream) !important;
}
html:not(#_) .wb-header .wb-w,
html:not(#_) .bc2-header .wb-w { color: var(--sk-cream) !important; }
html:not(#_) .wb-header .wb-b,
html:not(#_) .bc2-header .wb-b { color: var(--sk-gold) !important; }
html:not(#_) .wb-header .wb-mark,
html:not(#_) .bc2-header .wb-mark { border-radius: 6px !important; border-color: rgba(var(--sk-edge-rgb),.2) !important; }

html:not(#_) .wb-word .wb-w { color: var(--sk-cream) !important; -webkit-text-fill-color: var(--sk-cream) !important; }
html:not(#_) .wb-word .wb-b,
html:not(#_) .bc2-header .wb-word .wb-b,
html:not(#_) .wb-header .wb-word .wb-b {
  background: none !important; color: var(--sk-gold) !important;
  -webkit-text-fill-color: var(--sk-gold) !important;
}
html:not(#_) .wb-header .wb-word, html:not(#_) .wb-header .wb-word span,
html:not(#_) .bc2-header .wb-word, html:not(#_) .bc2-header .wb-word span { font-size: 21px !important; }
/* the login/sign-up dark panel takes the roast instead of near-black */


/* search: the home's dark translucent box */
html:not(#_) .wb-header .wb-search {
  background: rgba(0,0,0,.2) !important;
  border: 1px solid rgba(var(--sk-edge-rgb),.28) !important;
  border-radius: 8px !important;
  color: var(--sk-on-dark-3) !important;
  box-shadow: none !important;
}
html:not(#_) .wb-header .wb-search svg { color: var(--sk-on-dark-3) !important; stroke: currentColor; opacity: .8; }
html:not(#_) .wb-header .wb-search input {
  background: transparent !important;
  color: var(--sk-cream) !important;
  font-family: var(--sk-body) !important;
}
html:not(#_) .wb-header .wb-search input::placeholder { color: var(--sk-on-dark-mute) !important; }
/* the results drop-down stays a light card */
html:not(#_) .wb-header .wb-results { background: var(--sk-card) !important; color: var(--sk-ink) !important; }

/* ☰ menu button: same treatment as the home header (home-shop.css) */
html:not(#_) .wb-header .wb-menu-btn,
html:not(#_) .bc2-header .wb-menu-btn {
  background: rgba(var(--sk-edge-rgb),.1) !important;
  border: 1px solid rgba(var(--sk-edge-rgb),.28) !important;
  border-radius: 8px !important;
  color: var(--sk-cream) !important;
}
html:not(#_) .wb-header .wb-menu-burger span,
html:not(#_) .bc2-header .wb-menu-burger span { background: var(--sk-cream) !important; }
html:not(#_) .wb-header .wb-menu-label,
html:not(#_) .bc2-header .wb-menu-label { color: var(--sk-cream) !important; font-family: var(--sk-body) !important; }
html:not(#_) .wb-header .wb-menu[open] > .wb-menu-btn,
html:not(#_) .bc2-header .wb-menu[open] > .wb-menu-btn { background: var(--sk-gold) !important; border-color: var(--sk-gold) !important; }
html:not(#_) .wb-header .wb-menu[open] .wb-menu-burger span,
html:not(#_) .bc2-header .wb-menu[open] .wb-menu-burger span { background: var(--sk-roast) !important; }
html:not(#_) .wb-header .wb-menu[open] .wb-menu-label,
html:not(#_) .bc2-header .wb-menu[open] .wb-menu-label { color: var(--sk-roast) !important; }
html:not(#_) .wb-menu-pop { font-family: var(--sk-body) !important; }

/* "Sign up free": the home's cream button */
html:not(#_) .wb-header .wb-cta-access {
  background: var(--sk-cream) !important;
  color: var(--sk-amber-deep) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font: 700 14px var(--sk-body) !important;
  text-decoration: none !important;
}

/* bell on the dark bar — cream icon, gold count, as on the home header */
html:not(#_) .wb-header .wb-bell-btn,
html:not(#_) .bc2-header .wb-bell-btn,
html:not(#_) .wb-header .wb-bell-btn svg,
html:not(#_) .bc2-header .wb-bell-btn svg,
html:not(#_) .bc2-header-right .wb-bell-btn,
html:not(#_) .bc2-header-right .wb-bell-btn svg { color: var(--sk-cream) !important; }
html:not(#_) .wb-header .wb-bell-btn:hover,
html:not(#_) .bc2-header .wb-bell-btn:hover,
html:not(#_) .wb-header .wb-bell-btn[aria-expanded="true"],
html:not(#_) .bc2-header .wb-bell-btn[aria-expanded="true"] { background: rgba(var(--sk-edge-rgb-2),.12) !important; }
html:not(#_) .wb-bell-badge, html:not(#_) .wb-bell-dot {
  background: var(--sk-gold) !important; color: var(--sk-roast) !important;
  box-shadow: 0 0 0 2px var(--sk-amber-deep) !important;
}
html:not(#_) .wb-bell-pop { background: var(--sk-card) !important; border-color: var(--sk-line) !important; color: var(--sk-ink) !important; }
/* the bottle-page menu icon: cream on the bar too */
html:not(#_) .bc2-menu-wrap .wb-menu-burger span { background: var(--sk-cream) !important; }

/* ---- buttons: one style, the home's amber/gold --------------------- */
html:not(#_) main button:not(.google):not([class*="pill"]):not([class*="tab"]):not([role="tab"]):not(.mw-fchip):not(.sw),
html:not(#_) main input[type="submit"],
html:not(#_) .wrap button:not(.google):not([class*="pill"]):not([class*="tab"]):not([role="tab"]):not(.mw-fchip):not(.sw),
html:not(#_) button[type="submit"]:not(.google):not(.apple),
html:not(#_) .f-go, html:not(#_) .btn-more,
html:not(#_) .reg-cta, html:not(#_) .bd-engine-link,
html:not(#_) .bc2-offer-tag,
html:not(#_) .wrap > p > a[href="/v2/"], html:not(#_) main a.btn {
  background: var(--sk-amber-deep) !important;
  color: var(--sk-cream) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-family: var(--sk-body) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
/* secondary (outlined) buttons keep a light face, amber edge */
html:not(#_) .bd-scan-btn2,
html:not(#_) .bc2-pill-ghost {
  background: var(--sk-card) !important;
  color: var(--sk-amber-deep) !important;
  border: 1px solid var(--sk-amber-deep) !important;
  border-radius: 8px !important;
}
html:not(#_) .bc2-pill-ghost { border-radius: 999px !important; }

/* links in body copy pick up the amber */
html:not(#_) main p a, html:not(#_) .wrap p a { color: var(--sk-amber-deep) !important; }

/* ---- cards and form fields --------------------------------------- */
html:not(#_) .card, html:not(#_) .hub-tile, html:not(#_) .bc2-panel,
html:not(#_) .cat-card, html:not(#_) .bottle-card, html:not(#_) .r-card {
  background: var(--sk-card) !important;
  border-color: var(--sk-line) !important;
}
html:not(#_) main input[type="text"], html:not(#_) main input[type="email"],
html:not(#_) main input[type="search"], html:not(#_) main input[type="password"],
html:not(#_) main textarea, html:not(#_) main select,
html:not(#_) .wrap input[type="text"], html:not(#_) .wrap input[type="email"],
html:not(#_) .wrap textarea {
  background-color: var(--sk-card) !important;
  border: 1px solid var(--sk-line) !important;
  border-radius: 8px !important;
  color: var(--sk-ink) !important;
}

/* Market/home search: the pill is the box. The field rule above gave the inner
   input its own white fill + border, so it drew a box inside the pill. */
html:not(#_) main .disc-search input[type="search"].disc-search-input {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---- tables (price drops, US vs AU, cheapest) ---------------------- */
html:not(#_) main table { border-collapse: collapse !important; background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 10px; }
html:not(#_) main th {
  font: 600 11.5px var(--sk-body) !important; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sk-muted) !important; background: transparent !important;
  border-bottom: 1px solid var(--sk-line) !important; padding: 10px 12px !important;
}
html:not(#_) main td { border-bottom: 1px solid var(--sk-line) !important; padding: 10px 12px !important; }
html:not(#_) main td a { color: var(--sk-amber-deep) !important; }
/* narrow screens (folded foldable, phones): the table scrolls inside its own
   box instead of pushing the page sideways; tighter cells, and bottle names
   keep enough width not to wrap one word per line (2026-10-09) */
@media (max-width: 700px) {
  html:not(#_) main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  html:not(#_) main th { letter-spacing: .04em; padding: 8px !important; }
  html:not(#_) main td { padding: 8px !important; }
  html:not(#_) main td:first-child { min-width: 9.5em; }
  html:not(#_) main td:not(:first-child) { white-space: nowrap; }
}

/* ---- bottle price history: one closed card per shop listing (job #1697,
   Robert picked mock "Header 3", 2026-10-23; replaces the T1163/T1173
   per-shop tables). Same card at phone and desktop width; no coloured
   left stripe. Each opened row's dot colour comes from that row's own
   class, never from the card. ---- */
html:not(#_) main .bc2-hist-movements { max-width: 720px; margin: 18px 0; }
html:not(#_) main .bc2-hist-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 4px; }
html:not(#_) main .bc2-hist-title { font-size: 19px; margin: 0; }
html:not(#_) main .bc2-hist-chip { font: 600 12px var(--sk-body); background: none; color: var(--sk-roast); border-radius: 0; padding: 0; white-space: nowrap; }
html:not(#_) main .bc2-hist-movements .bc2-hist-intro { font-size: 13px; color: var(--sk-ink-soft); margin: 0 0 12px; line-height: 1.4; }
html:not(#_) main details.bc2-hist-card { border: 1px solid var(--sk-line); border-radius: 12px; background: var(--sk-card); margin: 0 0 8px; overflow: hidden; }
html:not(#_) main details.bc2-hist-card > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: baseline; }
html:not(#_) main details.bc2-hist-card > summary::-webkit-details-marker { display: none; }
html:not(#_) main .bc2-hist-nm { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sk-ink); }
html:not(#_) main .bc2-hist-nm small { font-size: 12px; color: var(--sk-ink-soft); }
html:not(#_) main .bc2-hist-now { font-weight: 700; font-size: 15.5px; text-align: right; white-space: nowrap; }
html:not(#_) main .bc2-hist-none { font-weight: 500; font-size: 13px; color: var(--sk-muted); }
html:not(#_) main .bc2-hist-chev { font-size: 12px; color: var(--sk-muted); }
html:not(#_) main .bc2-hist-meta { grid-column: 1 / 4; font-size: 12.5px; color: var(--sk-ink-soft); }
html:not(#_) main .bc2-hist-meta b { font-weight: 600; }
html:not(#_) main .bc2-hist-ok { color: var(--sk-status-ok); }
html:not(#_) main .bc2-hist-no { color: var(--sk-status-no); }
html:not(#_) main .bc2-hist-na { color: var(--sk-muted); }
html:not(#_) main .bc2-hist-sub { font-weight: 600; color: var(--sk-amber-deep); }
html:not(#_) main .bc2-hist-rows { border-top: 1px solid var(--sk-line); padding: 2px 12px 6px; }
html:not(#_) main .bc2-hist-mv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--sk-line); align-items: baseline; }
html:not(#_) main .bc2-hist-mv-row:last-child { border-bottom: 0; }
html:not(#_) main .bc2-hist-range { white-space: nowrap; }
html:not(#_) main .bc2-hist-d small { display: block; color: var(--sk-muted); font-size: 11.5px; }
html:not(#_) main .bc2-hist-p { font-weight: 600; text-align: right; }
html:not(#_) main .bc2-hist-s { font-size: 12.5px; white-space: nowrap; text-align: right; }
html:not(#_) main .bc2-hist-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--sk-muted); }
html:not(#_) main .bc2-hist-dot-ok { background: var(--sk-status-ok); }
html:not(#_) main .bc2-hist-dot-no { background: var(--sk-status-no); }

/* ---- footer: the home's roast footer, ONE layout on every page ----
   (the layout used to live in each page's own sheet — market/catalog/
   retailer.css — so pages without one, e.g. Bourbon Log, ran the links
   together on one line). */
html:not(#_) .wb-footer {
  background: var(--sk-roast) !important;
  color: var(--sk-on-dark-4) !important;
  border-top: 0 !important;
  margin-top: 48px !important;
  padding: 46px 0 30px !important;
}
html:not(#_) .wb-footer-in {
  max-width: 1240px !important; margin: 0 auto !important; padding: 0 32px !important;
  display: flex !important; flex-wrap: wrap !important; gap: 32px 72px !important;
  justify-content: space-between !important; align-items: flex-start !important;
}
html:not(#_) .wb-footer-in > div:first-child { max-width: 320px; }
html:not(#_) .wb-footer .wb-foot-nav {
  display: flex !important; flex-direction: column !important; gap: 9px !important;
}
html:not(#_) .wb-footer .wb-foot-head {
  font: 600 11.5px var(--sk-body) !important; letter-spacing: .14em !important;
  text-transform: uppercase !important; color: var(--sk-on-dark-mute-2) !important; margin-bottom: 5px !important;
}
html:not(#_) .wb-footer .wb-foot-nav a {
  color: var(--sk-on-dark-4) !important; font: 400 13.5px var(--sk-body) !important;
  text-decoration: none !important; min-height: 0 !important; display: block !important;
}
html:not(#_) .wb-footer .wb-foot-nav a:hover { color: var(--sk-gold) !important; }
html:not(#_) .wb-footer .wb-foot-tag { color: var(--sk-on-dark-mute-2) !important; font-size: 13.5px !important; margin-top: 12px !important; }
html:not(#_) .wb-footer .wb-foot-bottom {
  max-width: 1240px !important; margin: 32px auto 0 !important; padding: 18px 32px 0 !important;
  border-top: 1px solid rgba(var(--sk-edge-rgb),.12) !important;
  color: var(--sk-on-dark-mute-2) !important; font-size: 12.5px !important;
  display: flex !important; flex-direction: column !important; gap: 4px !important;
}
html:not(#_) .wb-footer .wb-mark { border-color: rgba(var(--sk-edge-rgb),.2) !important; }
@media (max-width: 600px) {
  html:not(#_) .wb-footer-in { padding: 0 20px !important; gap: 28px 48px !important; justify-content: flex-start !important; }
  html:not(#_) .wb-footer .wb-foot-bottom { padding: 18px 20px 0 !important; }
}
