/* Extra comparison markup is only shown on small screens. */
.mobile-comparison { display: none; }

@media (max-width: 760px) {
  :root { --mobile-nav-height: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
  body { padding-bottom: var(--mobile-nav-height); }
  body:has(.compare-tray:not([hidden])) { padding-bottom: calc(var(--mobile-nav-height) + 160px); }
  h1, h2, h3, h4, p, dd, dt { overflow-wrap: break-word; }
  button, a, summary { touch-action: manipulation; }
  .header { height: auto; min-height: 76px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); gap: 12px; }
  .header .brand { min-width: 0; flex-shrink: 1; gap: 8px; }
  .header .brand img { width: 36px; height: 36px; flex-shrink: 0; }
  .header .brand > span { font-size: clamp(18px, 4.8vw, 21px); white-space: nowrap; }
  .header .brand small { font-size: 7px; letter-spacing: 1.3px; margin-top: 6px; }
  .shop-link { font-size: 12px; min-height: 44px; gap: 6px; padding: 8px 0; }
  .shop-link span { margin: 0; }
  .hero { min-width: 0; }
  .hero-copy { padding: 28px 20px 22px; }
  .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: 1.5px; }
  .line { flex-shrink: 0; }
  h1 { font-size: clamp(40px, 10vw, 52px); line-height: 1.08; letter-spacing: -1.5px; margin: 16px 0; }
  h1 br { display: block; }
  h1 em { white-space: normal; }
  .hero-copy > p { font-size: 15px; line-height: 1.65; }
  .button { font-size: 14px; min-height: 48px; padding: 13px 18px; gap: 18px; }
  .hero .button { width: 100%; margin-top: 20px; }
  .hero-compare-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; font-size: 13px; margin-top: 5px; text-align: center; }
  .hero-visual { height: clamp(245px, 72vw, 340px); }
  .center-product { width: 34%; left: 33%; top: 12%; }
  .side-product { width: 26%; top: 23%; }
  .left-product { left: 8%; }
  .right-product { right: 8%; }
  .visual-label { top: 13px; left: 16px; right: 16px; font-size: 8px; letter-spacing: 1px; }
  .visual-caption { bottom: 13px; left: 16px; right: 16px; font-size: 8px; letter-spacing: .4px; gap: 12px; }
  .visual-caption span:last-child { flex-shrink: 0; }
  .heritage-strip { padding: 16px 20px; font-size: 14px; text-align: center; gap: 12px; line-height: 1.5; }
  .heritage-strip > span:nth-child(2) { display: none; }
  .section { padding: 40px 20px; }
  h2 { font-size: clamp(29px, 8vw, 36px); line-height: 1.15; letter-spacing: -.8px; }
  .section-heading p { font-size: 15px; line-height: 1.65; margin-top: 15px; }
  .toolbar { gap: 16px; margin-top: 24px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tabs button { min-width: 0; min-height: 46px; padding: 10px 6px; font-size: 13px; }
  .tabs span { font-size: 11px; margin-left: 4px; }
  .search { min-width: 0; gap: 8px; }
  .search input { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; }
  .result-count { font-size: 12px; padding: 16px 0; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card { display: grid; grid-template-columns: clamp(92px, 28vw, 120px) minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); }
  .product-image { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .product-image img { width: 100%; height: auto; }
  .heart { width: 44px; height: 44px; font-size: 25px; top: 4px; right: 4px; }
  .product-meta { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-start; align-self: end; gap: 3px 8px; margin: 0; font-size: 10px; line-height: 1.5; letter-spacing: .5px; }
  .product-card h3 { grid-column: 2; grid-row: 2; min-height: 0; font-size: clamp(23px, 6vw, 28px); line-height: 1.15; align-self: center; }
  .product-card h3 button { min-height: 44px; }
  .card-profile { grid-column: 2; grid-row: 3; font-size: 13px; line-height: 1.5; min-height: 0; padding: 0; align-self: start; }
  .card-description { grid-column: 1 / -1; grid-row: 4; min-height: 0; font-size: 14px; line-height: 1.6; margin-top: 6px; }
  .price-row { grid-column: 1 / -1; grid-row: 5; font-size: 15px; margin: 2px 0 0; padding-top: 3px; gap: 12px; }
  .detail-link { min-height: 44px; padding: 8px 0 8px 12px; font-size: 14px; }
  .compare-toggle { grid-column: 1 / -1; grid-row: 6; min-height: 44px; padding: 10px 0 0; margin: 0; font-size: 13px; gap: 10px; border-top: 1px solid var(--line); }
  .compare-toggle::before { flex-shrink: 0; width: 18px; height: 18px; }
  .compare-toggle[aria-pressed=true]::before { line-height: 17px; }
  .compare-selectors { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 24px 0 20px; }
  .compare-selectors label { font-size: 12px; letter-spacing: .4px; gap: 6px; min-width: 0; }
  .compare-selectors select { font-size: 16px; min-height: 50px; padding: 12px; }
  #quick-compare-content, .compare-table-wrap, .swipe-hint { display: none; }
  .mobile-comparison { display: block; min-width: 0; }
  .mobile-comparison-selection { display: grid; gap: 12px; margin-bottom: 20px; }
  .mobile-comparison-blend { display: flex; gap: 14px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--panel); }
  .mobile-comparison-blend img { width: 52px; height: 65px; object-fit: contain; flex-shrink: 0; }
  .mobile-comparison-blend > div { min-width: 0; }
  .mobile-comparison-blend h3 { font-size: 23px; line-height: 1.15; }
  .mobile-comparison-blend p { font-size: 13px; line-height: 1.5; color: var(--gold); margin-top: 5px; }
  .mobile-comparison-topic { border: 1px solid var(--line); margin-top: 12px; background: var(--panel); }
  .mobile-comparison-topic > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 15px 16px; color: var(--text); font-size: 16px; font-weight: 400; list-style: none; cursor: pointer; }
  .mobile-comparison-topic > summary::-webkit-details-marker { display: none; }
  .mobile-comparison-topic > summary > span:last-child { color: var(--gold); font-size: 23px; line-height: 1; }
  .mobile-comparison-topic[open] > summary > span:last-child { transform: rotate(45deg); }
  .mobile-comparison-entry { padding: 16px; border-top: 1px solid var(--line); }
  .mobile-comparison-entry h4 { margin: 0 0 9px; font: 400 18px/1.3 var(--serif); color: var(--gold); }
  .mobile-comparison-entry p { font-size: 15px; line-height: 1.7; color: #c5cabc; }
  .mobile-comparison-entry p + p { margin-top: 12px; }
  .botanical-tags span { font-size: 13px; padding: 5px 9px; }
  .mobile-comparison-actions { display: grid; gap: 10px; margin-top: 20px; }
  .mobile-comparison-actions .button { width: 100%; }
  .small-note, .mama-note { font-size: 13px !important; line-height: 1.65 !important; }
  .ritual-info-link { font-size: 14px; line-height: 1.8; }
  .story { padding: 40px 20px; }
  .story-logo { margin-bottom: 24px; }
  .story-logo img { width: 130px; }
  .story-copy h2 { font-size: 33px; line-height: 1.15; }
  .story-copy p, .guide > div > p { font-size: 16px; line-height: 1.7; }
  .text-link { font-size: 14px; min-height: 44px; }
  .faqs summary { min-height: 58px; font-size: 16px; line-height: 1.5; padding: 18px 0; }
  .faqs summary span { flex-shrink: 0; }
  .faqs details > p { font-size: 15px; line-height: 1.7; padding: 0 0 20px; }
  footer { padding: 30px 20px; gap: 18px; }
  footer > a:last-child { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
  footer p { font-size: 14px; line-height: 1.6; }
  .mobile-nav { height: var(--mobile-nav-height); padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .mobile-nav > a, .mobile-nav > button { flex: 1; position: relative; flex-direction: column; justify-content: center; min-width: 0; min-height: 56px; font-size: 12px; line-height: 1.3; gap: 4px; padding: 4px; }
  .mobile-nav span { font-size: 23px; }
  .mobile-nav .fav-count { position: absolute; left: calc(50% + 12px); top: 2px; width: 18px; height: 18px; font-size: 10px; background: var(--panel); }
  .compare-tray { bottom: calc(var(--mobile-nav-height) + 12px); width: calc(100% - 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
  .compare-tray strong { font-size: 14px; }
  .compare-tray > div > span { font-size: 12px; }
  .compare-tray > div:last-child { justify-content: space-between; gap: 12px; }
  .compare-tray .button { font-size: 14px; min-height: 46px; padding: 10px 18px; }
  .clear-button { font-size: 13px; min-height: 44px; padding: 8px; }
  #toast { bottom: calc(var(--mobile-nav-height) + 174px); font-size: 14px; padding: 12px 16px; }
  dialog, #contact-dialog, #shop-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; inset: 0; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; }
  .dialog-close { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; margin: 0; z-index: 4; }
  .detail-photo { position: static; height: 230px; padding: 20px; }
  .detail-copy { padding: 24px 20px 32px; }
  .detail-copy h2 { font-size: 34px; line-height: 1.12; }
  .profile-heading { font-size: 21px; line-height: 1.4; }
  .blend-story p { font-size: 16px; line-height: 1.7; }
  .blend-story h3 { font-size: 24px; }
  .detail-facts small { font-size: 11px; }
  .detail-copy .price-note { font-size: 13px; line-height: 1.6; }
  .detail-copy .text-link { min-height: 44px; }
  .compare-content, .contact-content { padding: calc(64px + env(safe-area-inset-top)) 20px 32px; }
  .compare-content > p, .contact-content > p { font-size: 16px; line-height: 1.65; }
  .contact-content label { font-size: 13px; letter-spacing: .5px; }
  #contact-email, #shop-url { font-size: 16px; min-width: 0; }
  .contact-actions { gap: 12px; }
  #copy-status, #shop-copy-status, .contact-shop p { font-size: 14px; }
}
