/* Shared mobile chrome and footer parity across public route families. */
body.home-v2-storefront-page .home-v2-footer-meta,
body[data-site-page="home"] .home-v2-footer-meta {
  color: rgba(255, 255, 255, 0.7);
}

body.home-v2-storefront-page .home-v2-footer-heading,
body[data-site-page="home"] .home-v2-footer-heading {
  color: rgba(255, 255, 255, 0.7);
}

body.home-v2-storefront-page .home-v2-footer-legal a,
body[data-site-page="home"] .home-v2-footer-legal a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  body.home-v2-storefront-page .home-v2-header-inner,
  body[data-site-page="home"] .home-v2-header-inner {
    min-height: 3.9rem;
  }

  body.home-v2-storefront-page .home-v2-brand-mark,
  body[data-site-page="home"] .home-v2-brand-mark {
    width: min(7.4rem, 42vw);
    height: 2rem;
  }

  body.home-v2-storefront-page .home-v2-footer-card,
  body[data-site-page="home"] .home-v2-footer-card {
    margin-top: 0;
    padding: 1rem;
    border-radius: 1.2rem;
  }

  body.home-v2-storefront-page .home-v2-footer-grid,
  body[data-site-page="home"] .home-v2-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 420px) {
  body.home-v2-storefront-page .home-v2-footer-links,
  body.home-v2-storefront-page .home-v2-footer-socials,
  body[data-site-page="home"] .home-v2-footer-links,
  body[data-site-page="home"] .home-v2-footer-socials {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact, operable mode tabs keep long product galleries usable on phones. */
body.luma-scroll-refresh-page .luma-scroll-stage-tabs button,
body.luma-edge-refresh-page .luma-edge-stage-tabs button {
  appearance: none;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 0;
  border: 1px solid rgba(91, 55, 143, 0.18);
  border-radius: 999px;
  padding: 0.52rem 0.82rem;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(31, 24, 43, 0.74);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 24px rgba(31, 20, 56, 0.07);
  cursor: pointer;
}

body.luma-scroll-refresh-page .luma-scroll-stage-tabs button.is-active,
body.luma-edge-refresh-page .luma-edge-stage-tabs button.is-active {
  border-color: rgba(123, 72, 190, 0.34);
  background: #17111f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(91, 55, 143, 0.2);
}

body.luma-scroll-refresh-page .luma-scroll-stage-tabs button:focus-visible,
body.luma-edge-refresh-page .luma-edge-stage-tabs button:focus-visible {
  outline: 3px solid #9b7af4;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  body.luma-scroll-refresh-page .luma-scroll-proof-section.is-mobile-tabbed,
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed {
    min-height: auto;
    padding: clamp(2.5rem, 8vw, 4rem) 0;
  }

  body.luma-scroll-refresh-page .luma-scroll-proof-section.is-mobile-tabbed .luma-scroll-stage-tabs,
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-stage-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto 1rem;
  }

  body.luma-scroll-refresh-page .luma-scroll-proof-section.is-mobile-tabbed .luma-scroll-stage-window,
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-stage-window {
    display: block;
    overflow: visible;
  }

  body.luma-scroll-refresh-page .luma-scroll-proof-section.is-mobile-tabbed .luma-scroll-proof-columns,
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-columns {
    display: block;
    height: auto;
    transform: none !important;
  }

  body.luma-scroll-refresh-page .luma-scroll-proof-section.is-mobile-tabbed .luma-scroll-proof-column[hidden],
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-column[hidden] {
    display: none !important;
  }

  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-card h3,
  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-card p {
    display: block !important;
  }

  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  body.luma-edge-refresh-page .luma-edge-proof-section.is-mobile-tabbed .luma-edge-proof-card p {
    color: rgba(31, 24, 43, 0.72);
    font-size: 0.8rem;
    line-height: 1.45;
  }

  body.luma-scroll-refresh-page .luma-scroll-mode-overlay strong {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  body.luma-scroll-refresh-page .luma-scroll-mode-overlay span {
    color: rgba(31, 24, 43, 0.74);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  body.luma-edge-refresh-page .luma-edge-coverage-section .luma-coverage-visual-item strong,
  body.luma-edge-refresh-page .luma-edge-coverage-section .luma-coverage-visual-item small {
    overflow: visible;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  body.luma-edge-refresh-page .luma-edge-proof-card-stack,
  body.luma-edge-refresh-page .luma-edge-coverage-section .luma-coverage-visual-grid--sports {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shared navigation state is controlled by JavaScript so ARIA and visuals agree. */
.home-v2-nav-dropdown:focus-within:not(.is-open):not(:hover) .home-v2-nav-dropdown-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
}

.home-v2-nav-dropdown:focus-within:not(.is-open):not(:hover) .home-v2-nav-dropdown-chevron {
  transform: rotate(0deg);
}

@media (max-width: 1023px) {
  body.home-v2-storefront-page .home-v2-mobile-menu,
  body[data-site-page="home"] .home-v2-mobile-menu {
    max-height: calc(100svh - 3.9rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body.home-v2-storefront-page .home-v2-mobile-menu-inner,
  body[data-site-page="home"] .home-v2-mobile-menu-inner {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Mobile product headings use their real DOM text so visible and accessible names match. */
@media (max-width: 820px) {
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-story-copy h2,
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-control-copy h2,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-story-copy h2,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-control-copy h2 {
    max-width: min(100%, 22rem) !important;
    color: #fff !important;
    font-family: var(--home-v2-font-display) !important;
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 0.98 !important;
    text-align: center !important;
    text-wrap: balance !important;
  }

  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-story-copy p,
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-control-copy p,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-story-copy p,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-control-copy p {
    max-width: min(100%, 24rem) !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-story-copy h2::after,
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-control-copy h2::after,
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-story-copy p::after,
  body.luma-scroll-refresh-page:not(.site-editor-mode) .luma-scroll-control-copy p::after,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-story-copy h2::after,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-control-copy h2::after,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-story-copy p::after,
  body.luma-edge-refresh-page:not(.site-editor-mode) .luma-edge-control-copy p::after {
    content: none !important;
    display: none !important;
  }
}

/* Story pages scale continuously through the 720px breakpoint. */
@media (max-width: 720px) {
  body.story-page .seo-container {
    width: min(1180px, calc(100% - 2rem));
  }

  body.story-page .story-hero-copy,
  body.story-page .seo-lead,
  body.story-page .story-hero-actions,
  body.story-page .story-hero-media {
    max-width: min(100%, 42rem);
  }
}

/* Avoid squeezing the Custom Light Box title and price into a half-width phone card. */
@media (max-width: 420px) {
  body[data-site-page="home"] .showroom-hero-collage {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-site-page="home"] .showroom-hero-card-edge,
  body[data-site-page="home"] .showroom-hero-card-lightbox {
    grid-column: 1 / -1;
    min-height: 12rem;
    aspect-ratio: 1.55 / 1;
  }
}

/* Product controls meet a consistent touch target without changing their semantics. */
body[data-site-page="product"].home-v2-storefront-page .qty-control button,
body[data-site-page="product"].home-v2-storefront-page .qty-control input,
body.luma-product-detail-page .luma-funnel-close,
body.luma-product-detail-page .luma-finish-option,
body.lightbox-product-detail-page .lightbox-sticky-size-button,
body.lightbox-product-detail-page .lightbox-sticky-buy {
  min-height: 44px;
}

body[data-site-page="product"].home-v2-storefront-page .qty-control button,
body[data-site-page="product"].home-v2-storefront-page .qty-control input,
body.luma-product-detail-page .luma-funnel-close {
  min-width: 44px;
}

.search-select-option.is-active,
.search-select-option[aria-selected="true"] {
  border-color: rgba(118, 89, 222, 0.55);
  background: rgba(118, 89, 222, 0.14);
  color: #17111f;
  outline: 2px solid rgba(118, 89, 222, 0.45);
  outline-offset: -2px;
}

body.luma-product-detail-page .luma-video-toggle {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(7, 7, 13, 0.84);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

body.luma-product-detail-page .luma-video-toggle:focus-visible {
  outline: 3px solid #cab9ff;
  outline-offset: 3px;
}

/* Shop preview microcopy remains readable without overpowering the live values. */
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-board-label,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-status,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-source-head,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-source-head small,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-kicker,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-mode small:not([data-live-card-status]) {
  font-size: 0.72rem;
  line-height: 1.25;
}

body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-source-head,
body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-kicker {
  color: #4f485d;
}

body[data-site-page="shop"].home-v2-storefront-page .shop-live-strip .shop-live-mode small:not([data-live-card-status]) {
  color: #554d62;
}
