/* T3126 v3 bottle page. Loaded last. Light + dark (r2 tokens). */

.bv3-page { --bv3-max: 1120px; }

.bv3-main {
  max-width: var(--bv3-max);
  margin: 0 auto;
  padding: 16px 20px 64px;
}

.bv3-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 28px;
}

.bv3-photo {
  background: #f4f1ea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 16px;
}

.bv3-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}

.bv3-mono {
  font-size: 72px;
  font-weight: 700;
  color: #c9c2b4;
  line-height: 1;
}

.bv3-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute, #6b6458);
}

.bv3-title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.bv3-spec {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-mute, #6b6458);
}

.bv3-buy { margin: 12px 0 20px; }

.bv3-buy-price {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.bv3-buy-shop {
  margin: 4px 0 12px;
  font-size: 14px;
  color: var(--ink-mute, #6b6458);
}

.bv3-buy-btn {
  display: inline-block;
  background: #1a1714;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 8px;
}

.bv3-buy-btn:hover { opacity: .92; }

.bv3-fresh, .bv3-verdict, .bv3-usrrp {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute, #6b6458);
}

.bv3-flag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mute, #6b6458);
  margin-left: 6px;
}

.bv3-chart { margin-top: 8px; }

.bv3-band {
  display: flex;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-mute, #6b6458);
}
.bv3-band span { white-space: nowrap; }
.bv3-band-win { font-weight: 600; }

.bv3-tasting {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  margin: 8px 0 32px;
}

.bv3-wheel svg { width: 100%; height: auto; display: block; }
.bv3-wheel figcaption, .bv3-wheel .bc2-wheel-readout { display: none; }

.bv3-blurb { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }

.bv3-npf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bv3-npf h3 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-mute, #6b6458);
}

.bv3-npf p { margin: 0; font-size: 14px; line-height: 1.45; }

.bv3-caption { margin: 8px 0 0; font-size: 12px; color: var(--ink-mute, #6b6458); }
.bv3-blurb + .bv3-source-caption { margin: -8px 0 16px; font-style: italic; }
.bv3-source-caption::before { content: "\2014\00a0"; }

/* About-tab facts: labels wrap only between words, never inside one; the
   value column takes the rest and wraps on its own. */
.bv3-panel .bc2-fact-row { gap: 12px; }
.bv3-panel .bc2-fact-row dt {
  flex: 0 0 auto; max-width: 45%;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.bv3-panel .bc2-fact-row dd { flex: 1 1 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }

#the-distillery h3 {
  margin: 16px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-mute, #6b6458);
}

#the-distillery ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }

.bv3-where { margin: 8px 0 32px; }
.bv3-where h2, .bv3-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.bv3-shops { columns: 2; column-gap: 32px; }
.bv3-shops .bc2-offer-row,
.bv3-shops .bc2-offer-size-head { break-inside: avoid; }

.bv3-section { margin: 0 0 32px; }

.bv3-range { list-style: none; margin: 0; padding: 0; }
.bv3-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(80px, 160px) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.bv3-range-this { font-weight: 600; }
.bv3-range-name { text-decoration: none; color: inherit; }
.bv3-range-age { font-size: 12px; color: var(--ink-mute, #6b6458); }
.bv3-range-bar {
  display: block;
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  overflow: hidden;
}
.bv3-range-bar > span {
  display: block;
  height: 100%;
  background: #1a1714;
}
.bv3-range-price { font-variant-numeric: tabular-nums; font-size: 14px; }
.bv3-range-all { display: inline-block; margin-top: 12px; font-size: 14px; }

.bv3-similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.bv3-sim-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.bv3-sim-card img { width: 100%; height: 160px; object-fit: contain; }

.bv3-releases { list-style: none; padding: 0; }
.bv3-show-all {
  display: inline-block;
  margin: 12px 0 0;
  background: none;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.bv3-phone-only { display: none; }
.bv3-desk-only { display: block; }

@media (min-width: 1024px) {
  .bv3-tabs { display: none !important; }
  .bv3-panel,
  .bv3-panel[hidden] {
    display: block !important;
    visibility: visible;
  }
}

/* Desktop: the photo is the hero. It fills the left column down to the foot of
   the price chart (the copy column sets the row height) and is never cropped. */
@media (min-width: 1024px) {
  .bv3-hero { grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); }
  .bv3-photo {
    align-self: stretch;
    position: relative;
    min-height: 640px;
  }
  .bv3-photo-img {
    position: absolute;
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 1023px) {
  .bv3-desk-only { display: none !important; }
  .bv3-phone-only { display: block; }

  .bv3-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bv3-photo {
    min-height: 0;
    max-height: 60vh;
    padding: 8px;
  }
  .bv3-photo-img {
    max-height: calc(60vh - 16px);
    max-width: 100%;
    width: auto;
    margin: 0 auto;
  }
  .bv3-title { font-size: 24px; }
  .bv3-buy-price { font-size: 28px; }
  .bv3-tasting { grid-template-columns: 1fr; }
  .bv3-npf { grid-template-columns: 1fr; }
  .bv3-shops { columns: 1; }
  .bv3-range-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "age price" "bar bar";
  }
  .bv3-range-name { grid-area: name; }
  .bv3-range-age { grid-area: age; }
  .bv3-range-bar { grid-area: bar; }
  .bv3-range-price { grid-area: price; }
  .bv3-tabs { display: flex; }
}

@media (prefers-color-scheme: dark) {
  html[data-theme="r2"] .bv3-page,
  html[data-theme="r2"] .bv3-buy-btn { }
  html[data-theme="r2"] .bv3-photo { background: #1c1916; }
  html[data-theme="r2"] .bv3-buy-btn { background: #f4efe6; color: #1a1714; }
  html[data-theme="r2"] .bv3-range-bar { background: rgba(255,255,255,.12); }
  html[data-theme="r2"] .bv3-range-bar > span { background: #f4efe6; }
  html[data-theme="r2"] .bv3-range-row { border-bottom-color: rgba(255,255,255,.1); }
  html[data-theme="r2"] .bv3-show-all { border-color: rgba(255,255,255,.25); color: inherit; }
}

html[data-theme="r2"] .bv3-photo { background: #1c1916; }
html[data-theme="r2"] .bv3-buy-btn { background: #f4efe6; color: #1a1714; }
html[data-theme="r2"] .bv3-range-bar { background: rgba(255,255,255,.12); }
html[data-theme="r2"] .bv3-range-bar > span { background: #f4efe6; }
html[data-theme="r2"] .bv3-range-row { border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="r2"] .bv3-show-all { border-color: rgba(255,255,255,.25); color: inherit; }
html[data-theme="r2"] .bv3-mono { color: #4a453e; }

/* ---- T3126 r2 repair (v3 only; v2 classes are scoped under .bv3-page) ---- */

/* Fix 1: pills sit under the buy box, never over the site header. */
.bv3-page .bc2-hero-chips {
  position: static; top: auto; right: auto; z-index: auto;
  justify-content: flex-start; max-width: none; overflow: visible;
  margin: 4px 0 12px;
}

/* Fix 3: compact v2 star row, one line, no button chrome. */
html:not(#_) .bv3-page .bc2-stars { display: inline-flex !important; gap: .15rem !important; margin: .15rem 0 .35rem !important; padding: 0 !important; }
html:not(#_) .bv3-page main .bc2-star {
  width: auto !important; height: auto !important; min-width: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; text-shadow: none !important; font: inherit !important;
  font-size: 1.05rem !important; line-height: 1 !important; color: #c9c2b4 !important; cursor: pointer;
}
html:not(#_) .bv3-page main .bc2-star.on, html:not(#_) .bv3-page main .bc2-star.hov { color: #1a1714 !important; }

/* Fix 9: "The bottle" in two columns on desktop: facts left, shops right. */
.bv3-bottle-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; align-items: start; }
.bv3-bottle-cols .bc2-facts { margin-top: 0; } /* heading margin + facts 1rem top margin made a blank band (ginbuddy #24) */
.bv3-shops-say h3 {
  margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-mute, #6b6458);
}
.bv3-shops-say p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }

/* Fix 6: one compact line per shop: name · price · arrow, aligned. */
.bv3-shops-list { list-style: none; margin: 0; padding: 0; }
.bv3-shops-list > li { border-bottom: 1px solid rgba(0,0,0,.08); }
.bv3-shop-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 0 12px;
  align-items: center; padding: 8px 0; color: inherit; text-decoration: none; font-size: 14px;
}
.bv3-shop-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv3-shop-lowest .bv3-shop-price { font-weight: 700; }
.bv3-shop-arrow { color: var(--ink-mute, #6b6458); text-align: right; }
.bv3-shop-note { display: block; font-size: 12px; color: var(--ink-mute, #6b6458); }
.bv3-shop-off { color: var(--ink-mute, #6b6458); opacity: .6; }
.bv3-size-group { margin: 0 0 12px; }
.bv3-size-label {
  margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-mute, #6b6458);
}
.bv3-also { margin: 0 0 12px; }
.bv3-also summary { cursor: pointer; font-size: 14px; color: var(--ink-mute, #6b6458); padding: 6px 0; }
.bv3-range-tag {
  margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-mute, #6b6458);
}

@media (max-width: 1023px) {
  .bv3-bottle-cols { grid-template-columns: minmax(0, 1fr); }
}

/* r2 round 2: compact desktop layout */
.bv3-panel { min-height: 0 !important; height: auto !important; }
.bv3-panel-tasting .bv3-tasting { margin: 0 0 8px; }
/* Price history: ONE rule set. The skin caps .bc2-hist-movements at 720px, so
   override it here; heading + intro span the row, cards fill two even columns. */
html:not(#_) .bv3-hist-moves .bc2-hist-movements {
  max-width: none; margin: 18px 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px; align-items: start; justify-items: stretch;
}
html:not(#_) .bv3-hist-moves .bc2-hist-movements > .bc2-hist-top,
html:not(#_) .bv3-hist-moves .bc2-hist-movements > .bc2-hist-intro { grid-column: 1 / -1; }
html:not(#_) .bv3-hist-moves details.bc2-hist-card { margin: 0 0 8px; max-width: none; width: auto; }
/* no wheel: notes use the full box width */
.bv3-tasting.bv3-tasting-nowheel { grid-template-columns: minmax(0, 1fr); }
.bv3-shops-list { columns: 2; column-gap: 40px; }
.bv3-shops-list > li { break-inside: avoid; }
.bv3-hist-chart svg { max-height: 220px; }
@media (min-width: 1024px) {
  /* the hero already shows the same chart and range on desktop */
  .bv3-hist-top { display: none; }
}
@media (max-width: 1023px) {
  html:not(#_) .bv3-hist-moves .bc2-hist-movements { grid-template-columns: minmax(0, 1fr); }
  .bv3-shops-list { columns: 1; }
}
html:not(#_) .bv3-page .bc2-panel[data-bc2-panel="tasting"] { padding-bottom: 0 !important; }
@media (min-width: 1024px) {
  /* the wheel svg carries ~40px of empty viewBox below its last label */
  .bv3-wheel { height: 200px; overflow: hidden; }
}
@media (min-width: 1024px) {
  /* no wheel: however many of NOSE / PALATE / FINISH exist, share the width evenly */
  .bv3-tasting-nowheel .bv3-npf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.bv3-hist-moves .bc2-hist-movements > .bv3-show-all { grid-column: 1 / -1; }

/* 16 Nov 2026 (gap walk #61, BF1): at Android's largest font size the page was wider
   than the screen. The one-column phone hero used `1fr` (= minmax(auto,1fr)), so the
   widest unbreakable child (tab row, pill row, long words) stretched the whole column.
   Now the column may shrink, the pill and tab rows wrap, and long words break. */
@media (max-width: 1023px) {
  .bv3-hero { grid-template-columns: minmax(0, 1fr); }
  .bv3-hero > * { min-width: 0; }
  .bv3-page .bv3-main { overflow-wrap: anywhere; }
  html:not(#_) .bv3-page .bc2-hero-chips { flex-wrap: wrap !important; overflow: visible !important; max-width: 100% !important; }
  html:not(#_) .bv3-page .bc2-tabs { flex-wrap: wrap !important; overflow-x: visible !important; gap: 0 16px !important; }
  html:not(#_) .bv3-page .bc2-tab { flex: 0 0 auto !important; }
}

/* T3372: names what the History tab's High / Low / Typical figures cover. */
.bc2-anchor-scope { font-size: 12px; font-weight: 600; color: var(--ink-mute, #6b6458); margin: 10px 0 4px; }
