/* Shared small-screen refinements. Loaded after the page-specific styles. */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.mobile-nav { overflow-y: auto; overscroll-behavior: contain; }
dialog { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
dialog.drawer { height: 100dvh; max-height: 100dvh; }
.pdp-buybar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.pdp-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.pdp-gallery-caption, .pdp-spec-table td, .rl-content { overflow-wrap: anywhere; }

@media (max-width: 800px) {
  html { scroll-padding-top: 92px; }
  body { font-size: 16px; }
  .section-shell { padding-inline: 24px; }
  .header { height: 76px; padding-inline: 20px; gap: 16px; }
  .nav-actions { gap: 4px; }
  .icon-button, .round-button { width: 44px; height: 44px; flex-shrink: 0; }
  .icon-button svg { width: 22px; height: 22px; }
  .bag-button > span { right: 2px; top: 4px; font-size: 10px; line-height: 18px; min-width: 18px; }
  .mobile-nav { top: var(--nav-top, 76px); padding: 12px 20px max(20px, env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--nav-top, 76px)); }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; font-size: 17px; border-bottom: 1px solid var(--line); }
  .button, .hero-actions .button { min-height: 48px; font-size: 14px; padding: 14px 18px; }
  .text-link, .section-heading > .text-link { min-height: 44px; font-size: 13px; }
  .hero-copy > p, .standards-copy > p, .trade-copy > p, .business-section p { font-size: 16px; line-height: 1.7; }
  .hero-footnote { font-size: 12px; }
  .eyebrow, .hero .eyebrow, .section-heading .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .hero-visual { min-height: 0; aspect-ratio: 1 / 1.06; }
  .hero-actions { flex-wrap: wrap; gap: 12px 20px; }
  .hero-actions .text-link { font-size: 13px; }
  .assurance-strip { padding-inline: 24px; gap: 8px 16px; font-size: 12px; }
  .assurance-strip a { min-height: 44px; line-height: 1.4; }
  .filter-pills { gap: 8px; }
  .filter-pills button { min-height: 44px; font-size: 13px; padding: 10px 16px; }
  .filter-pills button span { font-size: 10px; }
  .sort-control { font-size: 12px; }
  .sort-control select { min-height: 44px; font-size: 16px; max-width: 210px; }
  .product-heart { width: 44px; height: 44px; top: 4px; right: 2px; font-size: 23px; }
  .product-badge { max-width: calc(100% - 52px); font-size: 8px; line-height: 1.5; }
  .product-card-top { flex-wrap: wrap; gap: 0 8px; }
  .product-card h3, .price { font-size: 16px; }
  .product-card h3 a { display: inline-flex; align-items: center; min-height: 36px; }
  .product-spec, .product-card-bottom { font-size: 12px; line-height: 1.6; }
  .product-card-bottom { flex-wrap: wrap; gap: 8px; }
  .fine-print, .shop-note, .community > .fine-print { font-size: 12px; line-height: 1.7; }
  .standard-item h3, .trade-steps h3 { font-size: 17px; line-height: 1.3; }
  .standard-item p, .trade-steps p { font-size: 14px; line-height: 1.7; }
  .trade-widget { padding: 28px 24px; }
  .trade-widget > p, .trade-widget label, .trade-widget legend { font-size: 14px; }
  input:not([type=radio]):not([type=checkbox]), select, textarea { font-size: 16px; min-height: 48px; }
  .condition-options span { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; padding-inline: 6px; }
  .check-label { min-height: 48px; line-height: 1.5; }
  .check-label input { width: 20px; height: 20px; flex-shrink: 0; }
  .community .section-heading { flex-wrap: wrap; gap: 20px; }
  .community .eyebrow { max-width: none; font-size: 10px; }
  .carousel-controls { gap: 8px; }
  .round-button { font-size: 20px; }
  .pause-button { font-size: 15px; }
  .story-card { touch-action: pan-x pan-y; }
  .story-top, .story-copy small, .story-footer { font-size: 11px; }
  .demo-label, .review-stars span { font-size: 10px; white-space: normal; }
  .reviews-grid footer { font-size: 13px; }
  .reviews-grid footer small { font-size: 11px; }
  .journal-meta { font-size: 11px; }
  .journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journal-card { min-width: 0; }
  .journal-card h3 { overflow-wrap: anywhere; }
  .business-tags { flex-wrap: wrap; }
  .business-tags span { font-size: 11px; }
  .faq-list summary { font-size: 16px; line-height: 1.5; min-height: 52px; }
  .faq-list details p { font-size: 14px; line-height: 1.8; }
  .footer-top h3 { font-size: 14px; }
  .footer-top a:not(.wordmark), .footer-top button { min-height: 44px; display: flex; align-items: center; font-size: 14px; text-align: left; }
  .footer-top p { font-size: 14px; }
  .footer-note, .footer-bottom { font-size: 12px; }
  .footer-bottom button { min-height: 44px; font-size: 13px; }
  dialog { width: calc(100% - 24px); padding: 64px 24px 28px; border-radius: 12px; }
  dialog.drawer { width: min(100%, 480px); padding: 64px 24px max(28px, env(safe-area-inset-bottom)); }
  dialog h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }
  dialog p { font-size: 14px; line-height: 1.7; }
  .dialog-close { top: 12px; right: 12px; }
  .form-field { font-size: 14px; }
  .quantity { gap: 12px; font-size: 16px; }
  .quantity button { min-width: 44px; min-height: 44px; font-size: 18px; }
  .bag-item { min-width: 0; }
  .bag-item h3 { font-size: 17px; }
  .bag-item p, .bag-remove { font-size: 13px; }
  [data-remove] { min-height: 44px; }
  .story-modal-nav { flex-wrap: wrap; gap: 12px; }
  .story-modal-image { height: auto; max-height: 48dvh; object-fit: contain; }
  .grade-table { font-size: 13px; }
  .grade-table th, .grade-table td { padding: 12px 7px; }
  .toast { max-width: calc(100% - 32px); font-size: 13px; bottom: max(20px, env(safe-area-inset-bottom)); }

  /* Product configurator keeps labels readable and controls within thumb reach. */
  .pdp-shell { width: calc(100% - 40px); }
  .pdp-breadcrumb { font-size: 12px; gap: 10px; padding-block: 12px; }
  .pdp-breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; }
  .pdp-product-kicker { font-size: 10px; line-height: 1.6; flex-wrap: wrap; gap: 6px; }
  .pdp-product-kicker .pdp-demo-pill { font-size: 9px; }
  .pdp-tagline { font-size: 15px; line-height: 1.6; }
  .pdp-grade-intro { font-size: 12px; min-height: 44px; line-height: 1.6; }
  .pdp-price-line > div { font-size: 12px; }
  .pdp-price-line small { font-size: 11px; }
  .pdp-fieldset { margin-top: 25px; }
  .pdp-fieldset legend { font-size: 15px; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .pdp-fieldset legend > span { font-size: 11px; }
  .pdp-fieldset legend > strong { font-size: 13px; }
  .pdp-colour-options { gap: 10px; }
  .pdp-colour-chip { min-height: 48px; padding: 8px; gap: 8px; }
  .pdp-colour-chip b { font-size: 13px; }
  .pdp-colour-chip i { width: 26px; height: 26px; }
  .pdp-option > span { min-height: 48px; font-size: 14px; padding: 10px 8px; }
  .pdp-grade-help { position: static; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 8px; font-size: 13px; }
  #pdp-grade-note { font-size: 13px; line-height: 1.75; min-height: 68px; }
  .pdp-selection { font-size: 13px; }
  .pdp-add { font-size: 15px; min-height: 52px; }
  .pdp-demo-notice { max-width: none; font-size: 12px; }
  .pdp-facts { gap: 12px; }
  .pdp-facts a { font-size: 11px; line-height: 1.5; gap: 8px; min-height: 48px; }
  .pdp-facts svg { flex-shrink: 0; }
  .pdp-delivery-detail summary, .pdp-faq-list summary { font-size: 15px; min-height: 52px; line-height: 1.5; }
  .pdp-delivery-detail p, .pdp-faq-list p { font-size: 14px; line-height: 1.8; }
  .pdp-thumbnail { min-height: 88px; font-size: 11px; line-height: 1.4; }
  .pdp-thumb-art { height: 50px; }
  .pdp-gallery-caption { font-size: 12px; line-height: 1.6; }
  .pdp-gallery-badge, .pdp-image-count { font-size: 10px; }
  .pdp-gallery-signature { font-size: 8px; }
  .pdp-zoom { width: 44px; height: 44px; bottom: 12px; right: 12px; }
  .pdp-subnav > .pdp-shell { width: 100%; margin-left: 0; padding-inline: 20px; gap: 24px; scroll-padding-inline: 20px; }
  .pdp-subnav a { min-height: 48px; font-size: 13px; }
  .pdp-page .eyebrow { font-size: 10px; line-height: 1.6; }
  .pdp-overview-copy .pdp-lead { font-size: 17px; line-height: 1.7; }
  .pdp-overview-copy > p, .pdp-quality-grid p, .pdp-condition-layout > div > p,
  .pdp-grade-guide details > p, .pdp-specs > div > p, .pdp-box-copy > p,
  .pdp-box-list p, .pdp-questions > div > p, .pdp-trade p { font-size: 15px; line-height: 1.8; }
  .pdp-quality-number { font-size: 10px; max-width: 80%; }
  .pdp-quality-grid h3 { font-size: 20px; }
  .pdp-overview-copy .text-link, .pdp-condition-layout .text-link, .pdp-specs .text-link { font-size: 13px; }
  .pdp-grade-guide summary strong { font-size: 17px; }
  .pdp-grade-guide summary small { font-size: 12px; }
  .pdp-grade-guide > .pdp-condition-note { font-size: 12px; }
  .pdp-spec-table table { font-size: 14px; line-height: 1.7; }
  .pdp-spec-table caption { font-size: 15px; }
  .pdp-spec-table th { width: 33%; padding-right: 14px; }
  .pdp-spec-table > p { font-size: 12px !important; }
  .pdp-box-list strong { font-size: 15px; }
  .pdp-box-copy > .pdp-box-note { font-size: 12px; }
  .pdp-review-label, .pdp-review-heading .demo-label { font-size: 10px; white-space: normal; }
  .pdp-review p { font-size: 13px; }
  .pdp-related .section-heading .text-link { font-size: 13px; }
  .pdp-related-info h3, .pdp-related-info strong { font-size: 16px; }
  .pdp-related-card > p, .pdp-related > .fine-print { font-size: 12px; }
  .pdp-buybar { min-height: 82px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
  .pdp-buybar-product { display: none; }
  .pdp-buybar-action { width: 100%; justify-content: space-between; gap: 16px; }
  .pdp-buybar-action > div { align-items: flex-start; }
  .pdp-buybar-action strong { font-size: 24px; }
  .pdp-buybar-action > div > span { font-size: 11px; }
  .pdp-buybar-action .button { min-width: 0; width: auto; min-height: 48px; flex: 0 1 65%; font-size: 14px; padding: 14px 18px; }
  .pdp-page .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .pdp-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* Editorial pages share the same comfortable tap targets and reading scale. */
  .rl-journal .rl-wrap { width: calc(100% - 40px); }
  .rl-journal .rl-nav { flex-wrap: wrap; gap: 10px 20px; padding-block: 16px; }
  .rl-journal .rl-links { gap: 16px; font-size: 14px; flex-wrap: wrap; }
  .rl-journal .rl-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .rl-journal .rl-preview, .rl-journal .rl-meta { font-size: 12px; }
  .rl-journal .rl-breadcrumb { line-height: 1.8; }
  .rl-journal .rl-toc a { min-height: 44px; display: flex; align-items: center; margin: 0; padding: 8px 0; font-size: 14px; }
  .rl-journal .rl-content p { font-size: 17px; line-height: 1.8; }
  .rl-journal .rl-content .rl-cite { font-size: 13px; }
  .rl-journal .rl-sources a { display: inline-block; padding-block: 8px; }
  .rl-journal .rl-sources small { font-size: 12px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .hero-visual { aspect-ratio: 1 / 1.12; }
  .hero-copy { padding-top: 12px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .product-card-top { flex-direction: column; align-items: flex-start; }
  .product-grid { gap: 28px 16px; }
  .product-visual { height: 220px; }
  .product-image-button { padding-top: 50px; }
  .product-card-bottom .swatches { display: none; }
  .community .section-heading { flex-direction: column; align-items: flex-start; }
  .reviews-header { flex-wrap: wrap; }
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top > div:last-child a, .footer-top > div:last-child button { display: flex; margin-right: 0; }
  .pdp-gallery { aspect-ratio: 1 / 1; }
  .pdp-review-heading { align-items: flex-start; flex-direction: column; }
  .pdp-related .section-heading h2 { font-size: 34px; }
  .pdp-related-card, .pdp-related-card:last-child { flex-basis: 80%; }
  .pdp-trade .button { font-size: 14px; gap: 16px; }
  .rl-journal .rl-links .rl-shop-link { display: inline-flex; }
  .rl-journal .rl-nav { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 370px) {
  .section-shell { padding-inline: 18px; }
  .header { padding-inline: 16px; gap: 10px; }
  .wordmark { font-size: 32px; }
  .nav-actions { gap: 0; }
  .announcement { height: auto; min-height: 32px; font-size: 10px; padding: 7px 16px; }
  .announcement > span:first-child { display: none; }
  .announcement a { border-left: 0; padding: 3px 0; }
  .product-visual { height: 205px; }
  .product-card h3, .price { font-size: 15px; }
  .product-spec { font-size: 11px; }
  .product-badge { display: none; }
  .pdp-shell { width: calc(100% - 32px); }
  .pdp-facts { grid-template-columns: 1fr; }
  .pdp-facts a { font-size: 13px; }
  .pdp-grade-options { gap: 6px; }
  .pdp-option > span { font-size: 13px; padding-inline: 5px; }
  .pdp-thumbnails { gap: 6px; }
  .pdp-thumbnail { font-size: 10px; }
  .pdp-buybar { padding-inline: 16px; }
  .pdp-buybar-action .button { font-size: 13px; }
}

/* The longer PHONELIVA wordmark must leave room for controls at 320px. */
@media(max-width:600px){.header{gap:8px}.header .wordmark{font-size:clamp(24px,6.8vw,34px);letter-spacing:-1.5px;flex-shrink:0}.header .brand-dot{font-size:13px}.nav-actions{gap:0;min-width:0}.header .icon-button{width:36px;height:40px}.header .locale-control{max-width:64px}.header .locale-control select{max-width:64px}.hero h1{overflow-wrap:anywhere}.brand-row{flex-wrap:wrap;gap:18px}.pdp-product-kicker{flex-wrap:wrap;gap:8px}.pdp-gallery-word{font-size:clamp(45px,15vw,90px)}.pdp-price-line{flex-wrap:wrap}.price small{display:block;font-size:10px;white-space:normal}}

@media(max-width:480px){.header .locale-control{width:58px;max-width:58px;flex-basis:58px}.header .locale-control summary{font-size:9px;overflow:hidden;padding-inline:4px}.header .icon-button{width:32px;min-width:32px}.header .wordmark{font-size:24px}.header .nav-actions{gap:0}}
