.mobile-menu-toggle {
  display: none;
}
.mobile-menu:not([open]) {
  display: none;
}
@media (max-width: 700px) {
  html.mobile-menu-open {
    overflow: hidden;
  }
  .site-utility {
    min-height: 26px;
    padding: 5px 80px 5px 5%;
  }
  .site-utility .notice {
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: 0.03em;
  }
  .site-header.mobile-nav-ready {
    height: 62px;
    min-height: 0;
    margin-inline: 12px;
    padding: 10px 64px 10px 0;
    flex-wrap: nowrap;
    gap: 0;
  }
  .site-header.mobile-nav-ready .wordmark {
    width: auto;
    font-size: 32px;
  }
  .site-header.mobile-nav-ready .wordmark span {
    margin-top: 5px;
    font-size: 7px;
  }
  .mobile-nav-ready .mobile-menu-toggle {
    position: fixed;
    z-index: 45;
    top: calc(12px + env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid color-mix(in srgb, var(--color-primary-content) 20%, transparent);
    border-radius: 50%;
    color: var(--color-primary-content);
    background: var(--color-primary);
    box-shadow: 0 5px 20px #18251e30;
  }
  .mobile-menu {
    width: calc(100% - 24px);
    max-width: 440px;
    height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: none;
    margin: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu::backdrop {
    background: #17231d80;
    backdrop-filter: blur(5px);
  }
  .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 22px;
  }
  .mobile-menu-heading .eyebrow {
    font-size: 8px;
  }
  .mobile-menu-heading h2 {
    font: 30px/1.1 var(--display);
    margin: 9px 0 0;
    letter-spacing: -0.04em;
  }
  .mobile-menu-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--color-base-200);
    color: var(--ink);
    font-size: 18px;
  }
  .site-header .mobile-menu nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .site-header .mobile-menu nav > :is(a, button),
  .product-page .site-header .mobile-menu nav > a:not(.btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
  }
  .mobile-menu .mega-nav {
    grid-column: 1 / -1;
    order: 2;
    margin-top: 24px;
  }
  .mobile-menu .mega-nav > summary {
    display: none;
  }
  .mobile-menu .mega-panel {
    position: static;
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .mobile-menu .mega-label {
    margin-bottom: 4px;
  }
  .mobile-menu .mega-panel strong {
    font-size: 23px;
  }
  .mobile-menu .mega-column > a {
    padding-block: 13px;
  }
  .site-header .mobile-menu .mega-feature {
    flex-direction: column;
  }
  .mobile-menu .mega-feature img {
    width: 100%;
    max-height: 140px;
  }
  .mobile-menu .theme-picker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .mobile-menu .theme-picker > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .mobile-menu .theme-picker .select {
    width: 170px;
    min-height: 44px;
    font-size: 14px;
  }

  /* Put the essential purchase information together in the first screen. */
  .offer-storefront .offer-edition,
  .pdp-experience > .experience-masthead {
    display: none;
  }
  .daily-hero,
  .pdp-experience .product-hero {
    --mobile-photo-height: clamp(150px, 28svh, 236px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: calc(100% - 24px);
    padding: 16px 0 28px;
  }
  .daily-hero .offer-copy {
    display: contents;
  }
  .daily-hero .offer-copy > .eyebrow {
    order: 0;
    margin: 0;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.1em;
  }
  .daily-hero .offer-copy h1 {
    order: 1;
    margin: 0;
    font-size: clamp(30px, 8.3vw, 38px);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }
  .daily-hero .offer-origin {
    order: 2;
    margin: 0;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
  }
  .daily-hero > .offer-image {
    order: 3;
    height: var(--mobile-photo-height);
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    background: #e5dfd0;
  }
  .daily-hero .offer-gallery {
    width: var(--mobile-photo-height);
    max-width: 100%;
    margin-inline: auto;
  }
  .daily-hero .offer-gallery:not(.photo-triptych) img {
    object-fit: contain;
    padding: 0;
  }
  .daily-hero .photo-label {
    top: 10px;
    left: 10px;
    transform: none;
    max-width: calc(100% - 20px);
    padding: 4px 6px;
    font-size: 7px;
    letter-spacing: 0.07em;
  }
  .daily-hero .offer-image figcaption {
    bottom: 7px;
    left: 10px;
    padding: 2px 5px;
    font-size: 8px;
  }
  .daily-hero .gallery-caption {
    inset: auto 6px 27px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .daily-hero .offer-purchase {
    order: 4;
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .daily-hero .offer-price strong {
    font-size: 34px;
    line-height: 1.1;
  }
  .daily-hero .offer-price > span {
    font-size: 11px;
  }
  .daily-hero .offer-savings {
    margin-top: 5px;
    gap: 5px 10px;
  }
  .daily-hero .offer-savings :is(.comparison-price, .savings-badge) {
    font-size: 11px;
  }
  .daily-hero .product-quantity {
    margin-block: 16px 12px;
  }
  .daily-hero .offer-intro {
    order: 5;
    margin: 14px 0 0;
    max-width: none;
    font-size: 14px;
  }
  .daily-hero .tasting-tags {
    order: 6;
    margin: 0;
  }
  .daily-hero .producer-byline {
    order: 7;
    margin: 4px 0 0;
  }
  .daily-hero :is(.tldr-jump, .notes-link) {
    order: 8;
    margin: 0;
  }
  .pdp-experience {
    display: flex;
    flex-direction: column;
  }
  .pdp-experience > * {
    order: 3;
  }
  .pdp-experience > .product-breadcrumb {
    order: 0;
    width: calc(100% - 24px);
    padding: 10px 0 0;
    gap: 5px 8px;
    font-size: 10px;
  }
  .pdp-experience > .product-hero {
    order: 1;
  }
  .pdp-experience > .experience-nav {
    order: 2;
    width: calc(100% - 24px);
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin-block: 0 24px;
  }
  .pdp-experience .experience-nav a {
    flex: 0 0 auto;
    padding-inline: 12px;
  }
  .pdp-flash .product-hero,
  .pdp-daily-offer .product-hero {
    padding: 16px 14px 24px;
    margin-top: 10px;
  }
  .pdp-flash .offer-savings .savings-badge {
    padding: 5px 8px;
  }
  .pdp-producer-story .story-bottle {
    display: flex;
    flex-direction: column;
  }
  .pdp-producer-story .story-bottle > * {
    width: 100%;
  }
  .case-bar {
    min-height: 70px;
    padding: 10px 5% max(10px, env(safe-area-inset-bottom));
  }
  .case-bar .primary {
    min-height: 46px;
    padding: 10px 14px;
  }
}

/* One compact page gutter on phones; avoid stacking percentage-based margins. */
@media (max-width: 700px) {
  .offer-edition,
  .offer-assurances,
  .tasting-section,
  .daily-questions,
  .product-breadcrumb,
  .product-sections,
  .product-story,
  .product-specifications,
  .producer-directory-hero,
  .producer-profile-hero,
  .producer-directory,
  .producer-profile-story,
  .producer-wines,
  .pdp-producer,
  .producer-section,
  .wine-social,
  .related-wines,
  .winemaker-profile,
  .region-section,
  .region-stats,
  .experience-feature,
  .pdp-tldr,
  .quick-buy-section,
  .policy-page {
    width: calc(100% - 24px);
    margin-inline: auto;
  }
  .cellar,
  .case-review,
  .daily-case-story,
  .daily-closing,
  .store-footer,
  .cart-loading,
  .cart-page #case-review,
  .case-bar {
    padding-inline: 12px;
  }
  .pdp-flash .product-hero,
  .pdp-daily-offer .product-hero,
  .pdp-tldr,
  .winemaker-profile {
    padding-inline: 12px;
  }
  .quick-buy-section .product-breadcrumb {
    width: 100%;
  }
}
