/* The Total Wine & More stockist page (/stockists/total-wine/): the page's own rules, verbatim from the approved mockup stockist-totalwine.html. Loads after design-system.css. */
  /* stockist page: one hero page per chain. The first screen reads like the newsletter: a big centred headline that
     ties the store to the brand, the two bottles standing on a "shelf", and a shelf tag under them. Cream, so bubbles. */
  .header-nav--solid { background: #fff; }
  .stock-hero { padding-top: calc(var(--nav) + 26px) !important; text-align: center; }
  .stock-hero .wrap { position: relative; z-index: 1; }
  .stock-hero .eyebrow { color: var(--green); }
  .stock-hero h1 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.08; letter-spacing: -.02em; }
  .stock-hero h1 .g { color: var(--gold); }
  .stock-hero .lede { font-size: 18px; line-height: 1.5; color: var(--body); max-width: 26em; margin: 16px auto 22px; }
  .stock-hero .ctas { justify-content: center; }
  /* the shelf: both bottles side by side on a thin gold line, rising in once */
  .shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 30px auto 0; height: 330px; }
  .shelf::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(78%, 360px); height: 2px; transform: translateX(-50%);
                  background: linear-gradient(90deg, transparent, #c9a24a 18%, #c9a24a 82%, transparent); }
  .shelf img { height: 100%; width: auto; filter: drop-shadow(0 16px 18px rgba(60,40,10,.22)); }
  @media (prefers-reduced-motion: no-preference) {
    .shelf img { opacity: 0; transform: translateY(24px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .3s forwards; }
    .shelf img + img { animation-delay: .45s; }
  }
  /* the shelf tag: the newsletter's postcard idea turned into a store's shelf talker */
  .tag { display: inline-block; margin: 22px auto 0; padding: 14px 22px 13px; background: #fff; border: 1px solid #d8c08a; border-radius: 6px;
         box-shadow: 0 6px 16px rgba(60,45,20,.08); text-align: center; }
  .tag b { display: block; font-family: "Favorit", "SF Pro Display", sans-serif; font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
  .tag span { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .draft-note { max-width: 720px; margin: 26px auto 0; padding: 12px 16px; border: 1px dashed #b9a46a; border-radius: 10px; background: #fffaf0;
                font-size: 15px; line-height: 1.5; color: #6b5a2e; text-align: left; }
  @media (min-width: 900px) {
    .stock-hero { padding-top: calc(var(--nav) + 48px) !important; }
    .stock-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
    .stock-hero .lede { font-size: 22px; }
    .shelf { height: 470px; margin-top: 0; gap: 10px; }
    .tag b { font-size: 22px; } .tag span { font-size: 15px; }
  }
  /* finder-shared: the store map and list from where-to-buy.html */
  /* the finder: map and list in one white card on the cream */
  .finder { display: grid; gap: 0; margin: 18px auto 0; max-width: 1120px; background: #fff; border-radius: 18px; overflow: hidden;
            box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px rgba(60,45,20,.08); text-align: left; }
  .map { position: relative; background: #cfe5ee; aspect-ratio: 4 / 3; }
  .map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
  .map .near { fill: #ece6d8; stroke: #c9bfa6; stroke-width: .8; vector-effect: non-scaling-stroke; }
  .map .keys { fill: none; stroke: #fbf8f1; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
  .map .land { fill: #fbf8f1; stroke: #b8ad92; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .map .city { font-family: "SF Pro Display", -apple-system, sans-serif; font-weight: 500; fill: #4a4640; letter-spacing: .02em; paint-order: stroke; stroke: #fbf8f1; stroke-linejoin: round; }
  .map .town { fill: #4a4640; }
  .map .pin { cursor: pointer; }
  .map .pin circle { fill: var(--green); stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 2.5; transition: fill .2s; }
  .map .pin.on circle { fill: var(--gold); }
  .map .pin .num { fill: #fff; font-family: "SF Pro Display", -apple-system, sans-serif; font-weight: 500; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
  .map .pin .halo { fill: rgba(134,102,28,.18); stroke: none; opacity: 0; transition: opacity .2s; }
  .map .pin.on .halo { opacity: 1; }
  .map-reset { position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(30,28,29,.16);
               background: rgba(255,255,255,.92); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
  .map-reset[hidden] { display: none; }
  /* store list */
  .stores { padding: 6px 18px 16px; }
  .stores-head { margin: 14px 0 4px; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
  .stores ol { list-style: none; margin: 0; padding: 0; }
  .store { border-bottom: 1px solid rgba(30,28,29,.1); }
  .store:last-child { border-bottom: 0; }
  .store button { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; width: 100%; padding: 14px 0; background: none; border: 0;
                  text-align: left; font: inherit; color: inherit; cursor: pointer; }
  .store .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff;
              font-size: 14px; font-weight: 500; margin-top: 1px; }
  .store.on .n { background: var(--gold); }
  .store strong { font-family: "Favorit", "SF Pro Display", sans-serif; font-weight: 500; font-size: 19px; line-height: 1.25; color: var(--ink); }
  .store .addr { grid-column: 2; font-size: 16px; line-height: 1.4; color: var(--body); }
  .store .mi { grid-row: 1; grid-column: 3; font-size: 15px; color: var(--body); white-space: nowrap; }
  .store .acts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 14px 40px; margin-top: -6px; }
  .store .acts a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; font-weight: 500; color: var(--green); text-underline-offset: 3px; }
  .store:not(.on) .acts { display: none; }
  .more { display: block; width: 100%; min-height: 48px; margin-top: 8px; border-radius: 999px; border: 1px solid var(--green); background: none;
          font: inherit; font-size: 17px; font-weight: 500; color: var(--green); cursor: pointer; }
  .more[hidden] { display: none; }
  .none { padding: 18px 0 8px; font-size: 18px; line-height: 1.5; color: var(--body); }
  .none[hidden] { display: none; }
  .none a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
  @media (min-width: 900px) {
    .finder { grid-template-columns: 400px 1fr; margin-top: 26px; min-height: 600px; }
    .finder .map { order: 2; aspect-ratio: auto; min-height: 600px; }
    .stores { padding: 10px 26px 22px; }
  }
  /* stockist section 2: the stores, on white, with the "last checked" date in the line under the heading */
  .stock-stores { text-align: center; }
  .stock-stores h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
  .stock-stores h2 .g { color: var(--gold); }
  .stock-stores .sub { font-size: 18px; line-height: 1.5; color: var(--body); max-width: 32em; margin: 14px auto 0; }
  .stock-stores .finder { border: 1px solid #ece4d2; box-shadow: 0 12px 32px rgba(60,45,20,.07); }
  @media (min-width: 900px) { .stock-stores .sub { font-size: 20px; } }

  /* the bar over the cream: clear, no line, so the page reads as one colour and the bubbles rise behind it */
  /* at the very top it is fully clear; scrolled back up inside the cream it turns cream (not white), so the page stays one colour and the marks stay readable */
  .header-nav--clear { background: rgba(245,241,232,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
  .header-nav--clear.header-nav--top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* the thank-you: a line the chain can share as it is */
  .thanks { padding: 64px 0 56px; text-align: center; background: var(--paper); }
  .thanks h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
  .thanks h2 .g { color: var(--gold); }
  .thanks p { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 32em; margin: 16px auto 0; text-wrap: pretty; }
  .stock-hero .look { font-size: 16px; color: var(--body); margin: 14px 0 8px; }
  /* up close: the photo that shows what you are looking for, with the facts beside it */
  .upclose { padding: 64px 0; }
  .upclose-grid { display: grid; gap: 28px; align-items: center; }
  .upclose figure { margin: 0; }
  .upclose figure img { width: 100%; height: auto; display: block; border-radius: 18px; }
  .upclose h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-top: 6px; }
  .upclose h2 .g, .tw-faq h2 .g { color: var(--gold); }
  .upclose .sub { font-size: 18px; line-height: 1.55; color: var(--body); margin: 16px 0 0; max-width: 30em; }
  .facts { margin: 22px 0 0; border-top: 1px solid #ece4d2; }
  .facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece4d2; }
  .facts dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
  .facts dd { margin: 0; font-size: 16px; color: var(--ink); }
  @media (min-width: 900px) { .upclose-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
  /* the questions, open on tap */
  .tw-faq { padding: 64px 0 72px; background: var(--paper); }
  .tw-faq h2 { text-align: center; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
  .tw-faq .qa { max-width: 760px; margin: 28px auto 0; }
  .tw-faq details { border-bottom: 1px solid #e3d9c3; }
  .tw-faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-family: "Favorit", "SF Pro Display", -apple-system, sans-serif; font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--ink); }
  .tw-faq summary::-webkit-details-marker { display: none; }
  .tw-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--gold); }
  .tw-faq details[open] summary::after { content: "\2013"; }
  .tw-faq details p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--body); }
  .tw-faq details a { color: var(--green); }
  /* in store: the tasting short, a still until tapped, then YouTube (no cookies) plays in place */
  .instore { padding: 64px 0 8px; }
  .instore-grid { display: grid; gap: 28px; align-items: center; }
  .instore h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-top: 6px; }
  .instore h2 .g { color: var(--gold); }
  .instore .sub { font-size: 18px; line-height: 1.55; color: var(--body); margin: 16px 0 0; max-width: 30em; }
  .instore .sub.small { font-size: 16px; }
  .instore .sub a { color: var(--green); text-underline-offset: 3px; }
  .shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
  .shorts figure { margin: 0; }
  .shorts figcaption { margin-top: 10px; text-align: center; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
  .short { margin: 0 auto; width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 14px 34px rgba(40,30,15,.18); }
  .short-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
  .short-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .short-icon { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
  .short-icon::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--green); }
  .short-play:focus-visible { outline: 3px solid #c9a24a; outline-offset: -3px; }
  .short iframe { width: 100%; height: 100%; border: 0; display: block; }
  @media (min-width: 900px) { .instore-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .shorts { margin: 0 0 0 auto; max-width: 520px; gap: 18px; } }
  .thanks .eyebrow { margin-bottom: 10px; }
  .thanks .founders { font-family: "Favorit", "SF Pro Display", -apple-system, sans-serif; font-weight: 500; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); max-width: 30em; text-wrap: balance; }
  /* the ask: the one thing a shopper can do that keeps her on the shelf */
  .ask-tip { max-width: 640px; margin: 22px auto 0; padding: 18px 22px; border-radius: 14px; background: #fbf7ec; border: 1px solid #eadfc4; text-align: center; }
  .ask-tip p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
  .ask-tip .ask-tip-head { font-family: "Favorit", "SF Pro Display", -apple-system, sans-serif; font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
  .instore .follow { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 0; font-size: 16px; }
  .instore .follow a { color: var(--green); font-weight: 500; text-underline-offset: 3px; padding: 4px 0; }
  .upclose .more-facts { margin: 16px 0 0; font-size: 16px; }
  .upclose .more-facts a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }

/* every store lands on the map as a butterfly */
.map .pin .bfly { pointer-events: none; }
.map .pin .bfly .arrive { transform-box: fill-box; transform-origin: center; opacity: 0; }
.map .pin .bfly .wings { transform-box: fill-box; transform-origin: center; }
.map .pin .bfly path { fill: var(--gold); stroke: #fff; stroke-width: .07; }
.map .pin .bfly .body { fill: #5a4413; stroke: none; }
.map .pin.poured .bfly path { fill: #d98aa8; }
.map .pin.on .bfly path { fill: var(--green); }
.poured-tag { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; letter-spacing: .04em; color: #a8546f; }
.map.landed .pin .bfly .arrive { animation: bf-arrive 1.1s cubic-bezier(.2,.75,.25,1) var(--d) both; }
.map.landed .pin .bfly .wings { animation: bf-flap .22s ease-in-out var(--d) 5; }
@keyframes bf-arrive { 0% { opacity: 0; transform: translate(-1.6px, -2.6px) rotate(-25deg) scale(.3); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes bf-flap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
/* the plain dots stay until the butterflies land, then fade as each one arrives: no store is ever hidden waiting on the animation */
.map .pin .dot { transition: opacity .4s ease var(--d, 0s); }
.map.landed .pin.bf-far .dot, .map.landed .pin.bf-far .halo { opacity: 0; }
.bf-replay { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(30,28,29,.16); background: rgba(255,255,255,.94); color: var(--green); font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.bf-replay:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) { .map.landed .pin .bfly .arrive { animation: none; opacity: 1; } .map.landed .pin .bfly .wings { animation: none; } }
