/* Shared mobile polish for the static Rhytara pages. */
html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(109,117,80,0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive, #6d7550);
  outline-offset: 3px;
}

.marquee-track,
.testimonial-marquee,
.ny-exhibit-marquee {
  max-width: 100vw;
  overflow: hidden;
}

.toast {
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  white-space: normal;
  text-align: center;
}

@media (max-width: 768px) {
  html,
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .wrap,
  main,
  .nav-inner,
  .hero-content,
  .product-page,
  .breadcrumb,
  .related,
  .testimonial-heading,
  .ft-grid,
  .ft-bottom,
  .pp-footer-grid,
  .pp-ft-bottom {
    box-sizing: border-box;
    max-width: 100%;
  }

  main {
    overflow-x: clip;
  }

  .ann {
    min-height: 44px;
    padding-left: 54px;
    padding-right: 54px;
    text-align: center;
    line-height: 1.45;
  }

  .ann-close,
  .nav-icon-btn,
  .nav-burger,
  .toggle-track,
  .hero-sound-btn,
  .cart-x,
  .journey-gallery-arrow,
  .press-nav-btn,
  .view-btn,
  .art-heart,
  .thumb,
  .gallery-arrow,
  .g-arrow,
  .qty-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .nav-icon-btn,
  .nav-burger,
  .ann-close,
  .toggle-track,
  .hero-sound-btn,
  .cart-x,
  .journey-gallery-arrow,
  .press-nav-btn,
  .view-btn,
  .art-heart,
  .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-burger {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav-actions {
    gap: 8px;
  }

  .currency-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    width: 84px;
    height: 40px;
    padding: 3px;
    border: 1px solid rgba(250,248,245,.24);
    border-radius: 999px;
    background: rgba(17,17,17,.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .currency-toggle .curr-lbl {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    font-size: 10px;
    letter-spacing: .04em;
    color: rgba(250,248,245,.58);
    pointer-events: none;
  }

  .currency-toggle .curr-lbl.active {
    color: var(--text, #111);
  }

  .toggle-track {
    position: absolute !important;
    inset: 3px !important;
    z-index: 1;
    width: calc(100% - 6px) !important;
    min-width: 0 !important;
    height: calc(100% - 6px) !important;
    min-height: 0 !important;
    padding: 0;
    border: 0;
    background: transparent !important;
    border-radius: inherit;
  }

  .toggle-thumb {
    top: 0 !important;
    left: 0 !important;
    width: 50% !important;
    height: 100% !important;
    border-radius: 999px !important;
    background: #FAF8F5 !important;
    transform: translateX(0) !important;
  }

  .toggle-track.usd .toggle-thumb {
    transform: translateX(100%) !important;
  }

  .hero-sound-btn {
    right: 16px !important;
    bottom: calc(var(--nav-offset, 72px) + 40px) !important;
    max-width: calc(100vw - 32px);
  }

  .nav-links.mobile-open {
    max-width: calc(100vw - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .btn-olive,
  .btn-outline,
  .btn-outline-light,
  .btn-ghost-light,
  .reveal-btn,
  .filter-tab,
  .denom-option,
  .nl-btn,
  .dark-insta-box {
    min-height: 44px;
    align-items: center;
  }

  .text-link,
  .meta-val a,
  .option-label a,
  .ft-links a,
  .pp-ft-links a,
  .press-links a,
  .contact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .hero-h1,
  .hero-copy,
  .hero-sub,
  .page-hero-h1,
  .h2,
  .series-h,
  .wear-h,
  .press-layout h2,
  .community h2,
  .featured-hero h1 {
    text-wrap: balance;
  }

  .body-text,
  .hero-copy,
  .hero-sub,
  .press-intro,
  .section-intro,
  .community-copy,
  .contact-sub,
  .dark-body-text {
    text-wrap: pretty;
  }

  .ny-exhibit-marquee {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    contain: paint;
  }

  .testimonial-track,
  .marquee-inner,
  .ny-exhibit-track {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    animation: none !important;
    contain: paint;
    scrollbar-width: none;
  }

  .testimonial-track::-webkit-scrollbar,
  .marquee-inner::-webkit-scrollbar,
  .ny-exhibit-track::-webkit-scrollbar {
    display: none;
  }

  .testimonial-group,
  .marquee-item,
  .ny-exhibit-group {
    flex-shrink: 0;
  }

  .testimonial-group,
  .ny-exhibit-group {
    max-width: 100%;
  }

  .testimonial-card {
    max-width: calc(100vw - 40px);
  }

  .cart-drawer {
    width: min(400px, 100vw);
  }

  .toast {
    bottom: 18px;
    padding: 12px 18px;
    line-height: 1.5;
  }

  .story-grid,
  .story-grid-row,
  .story-grid .img-wrap,
  .journey-img-col,
  .phil-imgs,
  .social-grid,
  .ny-exhibit-marquee,
  .testimonial-marquee,
  .marquee-track {
    max-width: 100%;
    overflow-x: clip;
  }

  .story-grid-row--lead,
  .story-grid-row--observation,
  .story-grid-row--textile,
  .story-grid-row--closing {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rv {
    max-width: 100%;
  }

  .breadcrumb a,
  .nav-cart-btn,
  .g-arrow,
  .option-pill,
  .size-option,
  .option-card,
  .contact-card a,
  .hero-contact-link,
  .meta-card a,
  .social-handle {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .breadcrumb a,
  .meta-val a {
    min-height: 40px;
    min-width: 44px;
    padding: 4px 3px;
  }

  .g-arrow,
  .option-pill,
  .option-label a,
  .nav-cart-btn {
    min-height: 44px !important;
  }

  .option-label a {
    padding: 8px 0;
  }

  .g-arrow {
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .hero-h1,
  .page-hero-h1,
  .featured-hero h1 {
    overflow-wrap: anywhere;
  }

  .press-links a {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .press-links a span {
    white-space: normal;
  }
}