/* vinomate.ai skin -- the consumer landing.
 * Structure follows docs/mockups/vinomate-landing.html: hero + conversation demo, three
 * moments, proof strip, tier ladder. */

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5vw;
  align-items: center;
  padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(44px, 7vh, 84px);
}

.hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--wine-deep);
  margin-bottom: 18px;
}

.hero .lede {
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .footnote {
  margin-top: 16px;
}

/* ---- The conversation demo.
   Marked up as a figure with a caption rather than as a live transcript, because it is an
   illustration of a product that has not launched. The caption says so. ---- */
.demo {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 22px;
  font-family: var(--font-sans);
  margin: 0;
}

.demo .who {
  font-size: 11px;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 14px 0 4px;
}

.demo .who:first-child {
  margin-top: 0;
}

.bubble {
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14.5px;
  color: var(--body-on-card);
}

.bubble-user {
  background: var(--chip);
}

.bubble-vm {
  background: #f7eef1;
  border-left: 3px solid var(--wine);
}

.photo-chip {
  display: inline-block;
  background: #e6e0d6;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  color: #5f5751;
  margin-bottom: 8px;
}

.pick {
  font-weight: 700;
  color: var(--wine-deep);
}

.bubble .meta {
  font-size: 12.5px;
  color: var(--muted-text);
  margin-top: 8px;
}

.demo figcaption {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

/* ---- Moments ---- */
.moments h3 {
  color: var(--wine);
  font-size: 19px;
  margin-bottom: 8px;
}

/* ---- Proof strip ---- */
.proof {
  background: var(--wine-deep);
  color: #e9dcd2;
  padding: clamp(34px, 5vh, 60px) var(--gutter);
}

.proof h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 22px;
}

.proof-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
  margin: 0;
}

/* The figure reads above its label, but the label comes first in the DOM so that a screen
   reader announces "wines in the catalogue, 469K" rather than a bare number. `<dl>` groups
   must be dt-then-dd; column-reverse handles the visual order. */
.proof-figures div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.proof-figures dd {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.proof-figures dt {
  font-family: var(--font-sans);
  font-size: 13px;
}

.proof .footnote {
  color: #cbb3ba;
  margin-top: 24px;
  text-align: center;
}

/* ---- Tiers ---- */
.tiers h2 {
  color: var(--wine-deep);
  font-size: 28px;
  margin-bottom: 6px;
}

.tiers .lede {
  max-width: 46em;
  margin-bottom: 28px;
}

.tier {
  border-top: 4px solid var(--sage);
}

.tier-mid {
  border-top-color: var(--gold);
}

.tier-top {
  border-top-color: var(--wine);
}

.tier h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.tier .price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.tier li {
  padding: 5px 0 5px 20px;
  position: relative;
}

.tier li::before {
  content: "\25C6";
  color: var(--gold-text);
  font-size: 9px;
  position: absolute;
  left: 2px;
  top: 9px;
}

.site-footer .b2b {
  color: #a2919a;
}

/* ---- Launch notification ----
   HubSpot renders the form itself, inside markup this stylesheet does not own and should not
   reach into. What the wrapper gives it is a stable, card-shaped place on the page and a
   min-height, so the section does not collapse and then jump when the script resolves. */
.notify-form {
  max-width: 38rem;
  min-height: 12rem;
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.notify-fallback {
  margin-top: 14px;
  color: var(--muted-text);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .proof-figures {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- AEO wine page ----
   Follows docs/mockups/vinomate-wine-page.html: breadcrumb, identity table, sticky connector
   panel. The cohort section is new -- it is where the region and varietal one-liners live
   after Ted's 2026-08-17 decision, and it is styled to read as context rather than as a
   review, because that is exactly what it is. */
.crumbs {
  padding: 18px var(--gutter) 0;
  font-size: 13px;
  color: var(--muted-text);
}

.crumbs a {
  color: var(--muted-text);
}

.wine-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4vw;
  padding: 3vh var(--gutter) 6vh;
  align-items: start;
}

.wine-main h1 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--wine-deep);
}

.winery-line {
  font-size: 17px;
  margin: 8px 0 24px;
  color: var(--muted-text);
}

/* Identity facts. A description list, because that is what it is: term and value. */
.facts {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.facts > div {
  display: flex;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0eae0;
  font-size: 14.5px;
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted-text);
  flex: 0 0 34%;
}

.facts dd {
  color: var(--body-on-card);
  min-width: 0;
  word-break: break-word;
}

.vintages span {
  display: inline-block;
  background: var(--chip);
  border-radius: 6px;
  padding: 2px 9px;
  margin: 2px 4px 2px 0;
  font-size: 13px;
}

/* ---- The cohort notes ---- */
.cohort {
  margin-top: 34px;
}

.cohort > h2 {
  font-size: 20px;
  color: var(--wine-deep);
  margin-bottom: 14px;
}

.cohort-note {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin-bottom: 14px;
  border-left: 3px solid var(--sage);
}

.cohort-note h3 {
  font-size: 16px;
  color: var(--wine);
  margin-bottom: 8px;
}

.cohort-note p {
  color: var(--body-on-card);
  font-size: 15px;
}

/* The honesty line: scope, ancestry, language. Deliberately quiet but never hidden -- it is
   the difference between context and a claim about the bottle. */
.cohort-flag {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted-text) !important;
  font-style: italic;
}

.cohort [lang]:not(:lang(en)),
.cohort [lang="en"] {
  /* No visual treatment: a fallback is disclosed in words and in markup, not by making the
     text look broken. */
  font-style: inherit;
}

/* ---- Connector panel ---- */
.locked {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 24px rgb(42 33 38 / 9%);
  position: sticky;
  top: 20px;
}

.locked h2 {
  font-size: 17px;
  color: var(--wine-deep);
  margin-bottom: 6px;
}

.locked-intro {
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.locked-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #eadfce;
  font-size: 14.5px;
  color: var(--body-on-card);
}

.locked-list li:last-child {
  border-bottom: 0;
}

.lock-ic {
  color: var(--gold-text);
}

.locked .cta {
  display: block;
  text-align: center;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 15px;
}

.locked .cta small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.locked .cta:hover {
  background: var(--wine-deep);
}

.cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 8px;
}

.wine-footnote {
  padding-bottom: 5vh;
}

@media (max-width: 860px) {
  .wine-main {
    grid-template-columns: 1fr;
  }

  .locked {
    position: static;
  }
}

/* =========================================================================================
 * The wine label
 *
 * Ted's standardised label from 2007 (`.bottle` in app/htdocs/assets/css/winestream.css,
 * rendered by jquery.shelf.js), brought forward. What survives is the idea: a square,
 * colour-coded by wine colour, with the facts in the corners so a grid of them is scannable
 * without reading.
 *
 * ## What changed, and why each one
 *
 * - **Fluid, not 144px.** `aspect-ratio` plus container units means the SAME component is the
 *   hero on a wine page and a tile in a browse grid. That is the point of building it now:
 *   browse needs a unit, and this is it.
 * - **One colour axis.** In 2007 the tile background was the continent and the wine colour sat
 *   on top of it. Two colour systems on one surface fight; the continent is now a 4px edge.
 * - **No per-country fonts.** The original selected a font family per country -- and one of
 *   the stacks says "Book Antigua", a typo for Book Antiqua, so eleven countries have been
 *   falling back to Verdana since 2007. Origin is carried by the code pill and the region.
 * - **Gradients, not GIFs.** Same sampled colours, four fewer requests on 245K pages, and it
 *   can be themed.
 * - **CSS truncation.** The original cut the name at 35 characters in JavaScript, which bakes
 *   a tile size into the data. `line-clamp` adapts to whatever size the tile actually is.
 * ======================================================================================== */

.wine-label {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 20rem;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* Fixed, NOT `cqi`. Container-query units on the element that IS the container do not
   * resolve against it -- there is nothing to resolve against yet -- so they fall back to the
   * nearest ancestor container, and with none they fall back to the VIEWPORT. Measured on a
   * 2043px-wide window: `4cqi` became 81.72px of padding, which shrank the label's content box
   * from 288px to 125px, which shrank every child's `cqi` in turn, which pushed every font to
   * its clamp floor. One mistake, three symptoms, and the visible one was "the font looks
   * tiny" -- which is what Ted reported and is the last thing that was actually wrong.
   *
   * Children may use `cqi` freely: their nearest ancestor container is this element, which by
   * then has a resolved size. */
  gap: 4px;
  padding: 12px 12px 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: #fff;
  font-family: var(--font-serif);
  /* Two layers: a swirled liquid texture over the colour gradient. The texture is greyscale
   * and carries its opacity in its own alpha channel (76/255), so the browser's source-over
   * compositing computes `texture * 0.3 + gradient * 0.7` -- which is exactly the arithmetic
   * measured in scripts/imagery/texture_grid.py, in the same non-linear sRGB space.
   *
   * The opacity is NOT a taste setting and is not adjustable here. At 0.30 the label keeps 74%
   * of its CIELAB chroma, and the gradient is the only thing on a label that says red, white or
   * rose -- push the texture higher and violet starts reading as slate. To change it, re-run
   * `scripts/imagery/label_texture.py --alpha N`; it is baked because CSS background layers
   * have no per-layer opacity, and the alternatives (a ::before overlay, background-blend-mode)
   * either risk painting over the type or use different arithmetic than was measured.
   *
   * Fallback is silent by construction: if the file is missing the browser simply paints no
   * layer for it, and the gradient below is unchanged. Nothing depends on the texture loading.
   *
   * One texture per wine type, differing in the SHAPE of the swirl -- how heavy the liquid is,
   * how broad the folds. They are greyscale, so the difference survives being laid under six
   * different gradients. `--label-texture` holds the whole `url()` token because CSS cannot
   * put a `var()` inside `url()`; each `[data-color]` rule below overrides it alongside its
   * gradient stops, and anything unrecognised keeps the default set here. */
  --label-texture: url("/assets/img/generated/texture/label-swirl.webp");
  background-image:
    var(--label-texture),
    linear-gradient(
      var(--label-top, var(--label-unknown-top)) 0%,
      var(--label-top, var(--label-unknown-top)) 5%,
      var(--label-bottom, var(--label-unknown-bottom)) 66%,
      var(--label-bottom, var(--label-unknown-bottom)) 100%
    );
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-card);
}

.wine-label[data-color="red"] { --label-top: var(--label-red-top); --label-bottom: var(--label-red-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-red.webp"); }
.wine-label[data-color="white"] { --label-top: var(--label-white-top); --label-bottom: var(--label-white-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-white.webp"); }
.wine-label[data-color="rose"] { --label-top: var(--label-rose-top); --label-bottom: var(--label-rose-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-rose.webp"); }
.wine-label[data-color="sparkling"] { --label-top: var(--label-sparkling-top); --label-bottom: var(--label-sparkling-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-sparkling.webp"); }
.wine-label[data-color="dessert"] { --label-top: var(--label-dessert-top); --label-bottom: var(--label-dessert-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-dessert.webp"); }
.wine-label[data-color="fortified"] { --label-top: var(--label-fortified-top); --label-bottom: var(--label-fortified-bottom);
  --label-texture: url("/assets/img/generated/texture/label-swirl-fortified.webp"); }

/* The continent edge. `::after` rather than a border so it cannot affect the square. */
.wine-label::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--continent, transparent);
}
.wine-label[data-continent="AF"] { --continent: var(--continent-af); }
.wine-label[data-continent="AN"] { --continent: var(--continent-an); }
.wine-label[data-continent="AS"] { --continent: var(--continent-as); }
.wine-label[data-continent="EE"] { --continent: var(--continent-ee); }
.wine-label[data-continent="EU"] { --continent: var(--continent-eu); }
.wine-label[data-continent="ME"] { --continent: var(--continent-me); }
.wine-label[data-continent="NA"] { --continent: var(--continent-na); }
.wine-label[data-continent="SA"] { --continent: var(--continent-sa); }

.wl-head,
.wl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  font-family: var(--font-sans);
  /* clamp, not bare cqi. Container units alone tie legibility to the tile's width, so the same
   * rule that reads well in a browse grid is unreadable when the tile is small and oversized
   * when it is the hero on a wine page. The floor is the number that matters: 11px is the
   * smallest this should ever be, whatever the container does. */
  font-size: clamp(11px, 5.5cqi, 15px);
  line-height: 1;
}

.wl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5cqi;
  text-align: center;
  min-width: 0;
}

.wl-winery {
  font-family: var(--font-sans);
  font-size: clamp(10px, 4.2cqi, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.wl-wine {
  font-size: clamp(15px, 7.5cqi, 24px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.wl-vintage {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* The origin pill. A slot, deliberately: SVG flags drop in here without moving anything.
 * The 2007 design used 25x17 GIFs and there are 50 of them for 66 catalogue countries, some
 * under codes that no longer exist (`yu`, `cs`). A code every country has beats a flag two
 * thirds of them have. */
.wl-origin {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.8cqi 1.8cqi;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
}

/* A withheld fact. Present, sized, and empty -- so signing in fills it rather than
 * rearranging the label. That is the whole design argument for showing them at all. */
.wl-locked {
  display: inline-flex;
  align-items: center;
  gap: 1cqi;
  opacity: 0.72;
}
.wl-locked::before {
  content: "";
  width: clamp(9px, 4cqi, 13px);
  height: clamp(9px, 4cqi, 13px);
  flex: none;
  background: currentColor;
  /* A padlock, inline so it costs no request and inherits the text colour. */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 10V7a6 6 0 1112 0v3h1a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8a2 2 0 012-2h1zm2 0h8V7a4 4 0 10-8 0v3z"/></svg>') center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  a.wine-label { transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
  a.wine-label:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
}

a.wine-label { text-decoration: none; display: grid; }
a.wine-label:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* The browse grid. Labels are square and fluid, so the grid only has to say how many fit --
 * `auto-fill` plus a minimum does that at every breakpoint without media queries. */
.wine-main > article > .wine-label {
  max-width: 18rem;
  margin-bottom: 1.5rem;
}

.label-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}
.label-grid > li { margin: 0; min-width: 0; }
.label-grid .wine-label { max-width: none; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---- Varietal page artwork ----
   Two things with different standing, laid out to look different. The plate is decoration and
   sits alongside the heading; the leaf is a sourced claim and carries its provenance in a
   caption that cannot be styled away. A variety with neither degrades to the plain heading,
   which is what 79 of the 100 do for the leaf. */
.varietal-head {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.varietal-head.has-plate {
  grid-template-columns: minmax(140px, 240px) 1fr;
}

.varietal-plate {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--card);
}

.varietal-leaf {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
  max-width: 46em;
}

.varietal-leaf .leaf {
  /* The colour lives in the SVG file, not here. An SVG loaded through <img> is a separate
     document, so `fill="currentColor"` resolves against its own default and the silhouette
     rendered solid black on a cream card. A CSS mask would inherit this page's colour but
     needs the per-variety URL in an inline style, which html-validate rejects. The site is
     single-theme, so the generator writes --sage into each file instead. */
  flex: none;
  width: 72px;
  height: 72px;
}

.varietal-leaf figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-text);
}

.varietal-leaf b {
  display: block;
  color: var(--body-on-card);
  font-size: 13px;
}

@media (max-width: 700px) {
  .varietal-head.has-plate {
    grid-template-columns: 1fr;
  }
}

/* ---- Region header engraving ----
   A band, not a hero. The image is 3:1 and decorative; the caption under it is not optional
   styling but the thing that stops an inherited image reading as a picture of this region. */
.region-art {
  margin: 0 0 24px;
}

.region-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--card);
}

.region-art figcaption {
  font-size: 12.5px;
  color: var(--muted-text);
  padding-top: 8px;
}

/* ---- "More from this corner of the wine world" ----
   The mockup's card grid. These are the only links from a wine page into the browse
   dimensions, so they are navigation before they are decoration -- styled as targets, sized
   for a thumb, and never hidden behind a hover state. */
.related {
  padding-bottom: clamp(30px, 5vh, 56px);
}

.related h2 {
  color: var(--wine-deep);
  font-size: 20px;
  margin-bottom: 14px;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rel {
  display: block;
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--muted-text);
  text-decoration: none;
  box-shadow: 0 2px 10px rgb(42 33 38 / 5%);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.rel b {
  display: block;
  color: var(--wine);
  font-size: 14.5px;
  margin-bottom: 3px;
}

.rel:hover {
  box-shadow: 0 6px 18px rgb(42 33 38 / 12%);
  transform: translateY(-1px);
}

.rel:hover b {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .rel-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Where to buy ----
   Subtle by construction: it sits under the cohort notes, uses the same card language as the
   rest of the page, and has no colour of its own. It is a useful fact about the wine that
   happens to be commercial, not a promotion that happens to be on a wine page. */
.where-to-buy {
  margin-top: 30px;
}

.where-to-buy h2 {
  font-size: 20px;
  color: var(--wine-deep);
  margin-bottom: 12px;
}

.offer-list {
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.offer {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid #f0eae0;
  font-size: 14.5px;
}

.offer:last-child {
  border-bottom: 0;
}

.offer-who {
  flex: 1 1 40%;
  min-width: 0;
}

.offer-who b {
  color: var(--ink);
}

.offer-vintage {
  display: block;
  font-size: 12.5px;
  color: var(--muted-text);
}

.offer-price {
  font-family: var(--font-sans);
  color: var(--body-on-card);
  white-space: nowrap;
}

.offer-availability {
  display: block;
  font-size: 12.5px;
  color: var(--muted-text);
}

/* Each price carries its own observation date. A single shared date in the footnote was true
   of at most one row when the offers were seen on different days (#246 review), so the date
   belongs beside the price it actually describes. Same weight as the stock line: it qualifies
   the number above it rather than competing with it. */
.offer-observed {
  display: block;
  font-size: 12.5px;
  color: var(--muted-text);
}

/* Out of stock is dimmed, never hidden: an offer we know about and cannot act on today is
   still worth telling a reader about, and hiding it would make the module look emptier than
   the catalogue actually is. */
.offer-out-of-stock .offer-price,
.offer-out-of-stock .offer-who b {
  opacity: 0.72;
}

.offer-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--wine);
  white-space: nowrap;
}

.offer-note,
.offer-disclosure {
  margin-top: 10px;
}

/* ---- Ad slot ----
   Reserved before there is anything to reserve it for. The min-height is set inline from the
   slot config so the hole matches the unit; this rule is the frame around it. */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

.ad-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-text);
}

/* The reserved height, keyed on the slot's declared size. This is the anti-CLS measure: the
   hole is the right size before there is anything in it, so the first real ad lands in it and
   nothing below it moves. lib/ads.mjs holds the same numbers and a test asserts they agree. */
.ad-slot[data-ad-size="300x250"] {
  min-height: 250px;
}

/* While the slot is empty it should not look like a broken box on the page. */
.ad-slot[data-ad-state="disabled"] {
  min-height: 0 !important;
  padding: 0;
  border-top: 0;
}

.ad-slot[data-ad-state="disabled"] .ad-label {
  display: none;
}
