/* /v2/cheapest/<slug> — Option A ("Landing-Page Twin", Robert pick 24 Nov 2026).
   Strictly scoped to .ch-* / .page-cheapest so shared home-shop.css, header,
   footer and Capacitor app chrome stay untouched. All colours read --sk-*
   palette tokens so all six Buddy sites match their own landing page. */

main.ch-main {
  padding-top: 0;
  padding-bottom: 48px;
}

.ch-page {
  min-width: 0;
}

/* ---- Dark editorial hero matching the landing page (never uses .hero so
        html.wb-app and site noir.css never hide it) ---- */
.ch-hero {
  position: relative;
  overflow: hidden;
  color: var(--sk-cream);
  background:
    linear-gradient(90deg, rgba(14, 8, 4, .91) 0%, rgba(14, 8, 4, .74) 52%, rgba(14, 8, 4, .28) 100%),
    var(--ch-backdrop, none) center 42% / cover no-repeat,
    linear-gradient(180deg, var(--sk-amber-deep) 0%, var(--sk-roast) 100%);
  border-bottom: 1px solid rgba(var(--sk-edge-rgb), .28);
}

.ch-heroin {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.ch-hcopy {
  position: relative;
  z-index: 2;
  max-width: 740px;
  width: 100%;
}

.ch-hero.has-photo .ch-hcopy {
  max-width: min(740px, calc(100% - 370px));
}

.ch-crumb {
  font-size: 12.5px;
  color: var(--sk-on-dark-mute);
  margin-bottom: 12px;
  letter-spacing: .01em;
}

.ch-crumb a {
  text-decoration: none;
  color: var(--sk-on-dark-2);
}

.ch-crumb a:hover {
  text-decoration: underline;
}

.ch-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sk-gold);
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}

.ch-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--sk-cream);
  margin: 0;
  max-width: 22ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}

/* Keep bottle-name span matching h1 font & ivory colour on every site and
   mobile width (overrides noir.css `body *` and mobile h1-span rules). */
html:not(#_) .ch-hero h1 [data-bottle-name] {
  font-family: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.ch-price-hero {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ch-big {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sk-gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

.ch-big small {
  font-size: 15px;
  font-weight: 600;
  color: var(--sk-on-dark-mute);
  margin-left: 5px;
}

.ch-at {
  font-size: 16.5px;
  color: var(--sk-on-dark-2);
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.ch-at strong {
  color: #fff;
  font-weight: 700;
}

.ch-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.ch-quiet {
  color: var(--sk-on-dark-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--sk-edge-rgb), .4);
  padding-bottom: 2px;
}

.ch-quiet:hover {
  color: #fff;
  border-bottom-color: var(--sk-gold);
}

.ch-meta-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 16px;
}

.ch-range {
  font-size: 13px;
  color: var(--sk-on-dark-mute);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}

.ch-stats {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--sk-edge-rgb), .24);
  flex-wrap: wrap;
}

.ch-stat {
  padding-right: 22px;
  border-right: 1px solid rgba(var(--sk-edge-rgb), .2);
}

.ch-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.ch-stat b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--sk-cream);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}

.ch-stat b.is-good {
  color: #8ad89c;
}

.ch-stat span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sk-on-dark-mute);
  margin-top: 2px;
}

/* Feathered bar-top bottle photo on desktop (exact home-page technique) */
.ch-herofig {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - 1240px) / 2));
  width: 380px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ch-herofig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.ch-herofig::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: linear-gradient(0deg, rgba(10, 6, 3, .92) 25%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
}

.ch-herofig-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sk-on-dark);
  text-shadow: 0 1px 4px #000;
}

.ch-mob-photo {
  display: none;
}

/* ---- Warm cream body & numbered editorial sections ---- */
.ch-body {
  padding-top: 44px;
}

.ch-sec {
  margin-bottom: 48px;
}

.ch-head-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sk-amber-deep);
  text-decoration: none;
}

.ch-head-link:hover {
  text-decoration: underline;
}

/* ---- 01: Verified shop ledger (keeps semantic table.cheapest-offers.ch-offers) ---- */
.ch-ledger {
  background: var(--sk-card);
  border: 1px solid var(--sk-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(var(--sk-shadow-rgb), .07);
}

table.ch-offers {
  width: 100%;
  border-collapse: collapse;
}

table.ch-offers thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sk-muted);
  padding: 11px 18px;
  background: var(--sk-sunk);
  border-bottom: 1px solid var(--sk-line);
}

table.ch-offers thead th.ch-rank-h {
  width: 54px;
  text-align: center;
}

table.ch-offers tbody tr {
  border-bottom: 1px solid var(--sk-line);
}

table.ch-offers tbody tr:last-child {
  border-bottom: 0;
}

table.ch-offers tbody tr.is-best {
  background: linear-gradient(90deg, rgba(var(--sk-glow-rgb), .16) 0%, var(--sk-card) 65%);
}

table.ch-offers tbody tr.is-best td:first-child {
  box-shadow: inset 4px 0 0 var(--sk-amber-deep);
}

table.ch-offers td {
  padding: 15px 18px;
  font-size: 15px;
  vertical-align: middle;
  color: var(--sk-ink);
}

table.ch-offers td.ch-rank {
  width: 54px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--sk-muted);
  font-variant-numeric: tabular-nums;
}

table.ch-offers tbody tr.is-best td.ch-rank {
  color: var(--sk-amber-deep);
}

table.ch-offers td.ch-shop {
  font-weight: 700;
  font-size: 15.5px;
}

.ch-shop-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--sk-muted);
  margin-top: 2px;
}

table.ch-offers td.ch-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--sk-amber-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ch-diff {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sk-muted);
  margin-top: 2px;
}

.ch-diff.is-best {
  color: var(--sk-status-green);
  font-weight: 700;
}

.ch-member {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--sk-muted);
  margin-top: 1px;
}

/* Desktop already shows size under shop name; hide duplicate size line on desktop */
@media (min-width: 761px) {
  table.ch-offers td.ch-price .ch-sz-price {
    display: none;
  }
}

.ch-stock {
  color: var(--sk-status-green);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

table.ch-offers td.ch-go {
  text-align: right;
  white-space: nowrap;
}

.ch-go a {
  display: inline-block;
  line-height: 1.4;
  padding: 6px 0;
  color: var(--sk-amber-deep);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

.ch-go a:hover {
  text-decoration: underline;
}

.ch-go-n {
  display: none;
}

.ch-plank {
  height: 9px;
  border-radius: 3px;
  margin-top: 14px;
  background: linear-gradient(180deg, var(--sk-plank-top), var(--sk-plank-bot));
  box-shadow: 0 7px 14px rgba(var(--sk-shadow-rgb), .26);
}

/* ---- 02: Editorial prose & bottle facts card ---- */
.ch-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: start;
}

.ch-split.is-single {
  grid-template-columns: 1fr;
  max-width: 74ch;
}

.ch-prose .ch-h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ch-prose p {
  color: var(--sk-ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.ch-prose p:last-child {
  margin-bottom: 0;
}

.ch-prose a {
  color: var(--sk-amber-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ch-facts-card {
  background: var(--sk-card);
  border: 1px solid var(--sk-line);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 3px 10px rgba(var(--sk-shadow-rgb), .06);
}

.ch-facts-card h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sk-muted);
  margin: 0 0 12px;
}

.ch-facts-card .ch-facts-h {
  margin-top: 22px;
}

.ch-facts-card .ch-facts-h:first-child {
  margin-top: 0;
}

.ch-gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--sk-muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.ch-gauge-labels b {
  color: var(--sk-ink);
  font-weight: 700;
}

.ch-gauge-track {
  position: relative;
  height: 6px;
  background: var(--sk-sunk);
  border-radius: 3px;
}

.ch-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 4px;
  background: var(--sk-gold);
  border-radius: 3px;
}

.ch-gauge-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sk-status-green);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.ch-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 0;
}

.ch-fact {
  border-top: 1px solid var(--sk-line);
  padding-top: 10px;
}

.ch-fact dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sk-muted);
}

.ch-fact dd {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sk-ink);
  margin: 2px 0 0;
}

/* ---- 03: Common questions (reuses seo_wording.faq_html directly) ---- */
.ch-faq-sec .hub-faq > h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--sk-ink);
}

.ch-faq-sec .hub-faq > h2::before {
  content: "03";
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--sk-outline-num);
  line-height: 1;
}

.ch-faq-sec .hub-faq > h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--sk-line), transparent);
  min-width: 24px;
}

.ch-faq-sec .hub-faq h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sk-ink);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--sk-line);
}

.ch-faq-sec .hub-faq p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sk-ink-soft);
  margin: 6px 0 18px;
  max-width: 78ch;
}

.ch-more {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ch-more a {
  color: var(--sk-amber-deep);
  text-decoration: none;
}

.ch-more a:hover {
  text-decoration: underline;
}

/* ---- Responsive: tablet & phone ---- */
@media (max-width: 900px) {
  .ch-herofig {
    display: none;
  }

  .ch-hero.has-photo .ch-hcopy {
    max-width: none;
  }

  .ch-heroin {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .ch-hero h1 {
    font-size: 28px;
    max-width: none;
  }

  .ch-mob-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0 16px;
    border: 1px solid rgba(var(--sk-edge-rgb), .28);
    background: #140b06;
    position: relative;
  }

  .ch-mob-photo::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--ch-bottle) center / cover no-repeat;
    filter: blur(18px) brightness(.45);
  }

  .ch-mob-photo img {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }

  .ch-big {
    font-size: 38px;
  }

  .ch-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ch-quiet {
    align-self: flex-start;
  }

  .ch-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }

  .ch-stat {
    border-right: 0;
    padding-right: 0;
  }

  .ch-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .ch-body {
    padding-top: 28px;
  }

  .ch-sec {
    margin-bottom: 36px;
  }

  .ch-faq-sec .hub-faq > h2 {
    font-size: 22px;
    gap: 10px;
  }

  .ch-faq-sec .hub-faq > h2::before {
    font-size: 28px;
  }

  .ch-ledger {
    border-radius: 10px;
  }

  table.ch-offers,
  table.ch-offers tbody {
    display: block;
  }

  table.ch-offers thead {
    display: none;
  }

  table.ch-offers tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    padding: 14px 16px;
  }

  table.ch-offers td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  table.ch-offers td.ch-rank {
    display: none;
  }

  table.ch-offers td.ch-shop {
    grid-column: 1;
    grid-row: 1;
  }

  .ch-shop-sub {
    display: none;
  }

  table.ch-offers td.ch-price {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 18px;
  }

  table.ch-offers td.ch-st {
    grid-column: 1;
    grid-row: 2;
  }

  table.ch-offers td.ch-go {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  table.ch-offers tbody tr.is-best td:first-child {
    box-shadow: none;
  }

  table.ch-offers tbody tr.is-best {
    border-left: 4px solid var(--sk-amber-deep);
    padding-left: 12px;
  }

  .ch-go-w {
    display: none;
  }

  .ch-go-n {
    display: inline;
  }
}

/* ---- Capacitor native app safety (html.wb-app) ----
   Never hidden by home-shop.css's `html.wb-app .hero { display:none }`.
   Keeps compact mobile padding and safe-area breathing room. */
html.wb-app .ch-heroin {
  padding-top: 18px;
  padding-bottom: 22px;
}

html.wb-app .ch-crumb {
  display: none;
}

html.wb-app main.ch-main {
  padding-bottom: 20px;
}
