.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-results-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
}

.store-results-head strong,
.store-results-head span {
  font-size: 12px;
}

.store-results-head span {
  color: var(--muted);
}

.zip-control button:disabled {
  cursor: wait;
  opacity: .64;
}

@media (max-width: 740px) {
  :root {
    --mobile-gutter: 12px;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  main {
    display: flex;
    width: calc(100% - (var(--mobile-gutter) * 2));
    flex-direction: column;
  }

  .site-header {
    height: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 var(--mobile-gutter);
    background: rgba(5, 5, 5, .97);
  }

  .site-header .wordmark {
    min-width: 0;
    min-height: 44px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .site-header .wordmark > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 10px;
  }

  .store-trigger {
    min-height: 44px;
    max-width: 146px;
    gap: 7px;
    border: 0;
    padding: 0 10px;
    background: var(--surface);
  }

  .store-trigger svg {
    width: 16px;
    height: 16px;
  }

  .store-trigger span {
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: none;
  }

  .hero {
    order: 1;
    gap: 20px;
    padding: 30px 0 24px;
  }

  .hero h1 {
    max-width: 10ch;
    margin: 10px 0 14px;
    font-size: clamp(44px, 13.4vw, 60px);
    line-height: .9;
  }

  .hero-copy > p {
    max-width: 36ch;
    margin: 0;
    color: #b9b8b2;
    font-size: 15px;
    line-height: 1.5;
  }

  body.has-store:not(.finder-open) .hero {
    display: none;
  }

  body.has-store.finder-open .hero {
    display: block;
    padding: 18px 0;
  }

  body.has-store.finder-open .hero-copy {
    display: none;
  }

  .zip-finder > label {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .zip-control input,
  .zip-control button {
    height: 52px;
  }

  .zip-control button {
    min-width: 106px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .zip-finder > p,
  .zip-finder .form-error {
    font-size: 12px;
  }

  .store-results {
    max-height: min(54dvh, 420px);
    overscroll-behavior: contain;
  }

  .store-result {
    min-height: 72px;
    padding: 12px 14px;
  }

  .store-result strong {
    font-size: 14px;
  }

  .store-result span,
  .store-result small {
    font-size: 12px;
  }

  .store-strip {
    order: 2;
    min-height: 0;
    gap: 14px;
    padding: 18px 0;
  }

  .selected-store-identity {
    width: 100%;
  }

  .selected-store-identity .overline {
    font-size: 10px;
  }

  .selected-store-identity strong {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.25;
  }

  .selected-store-identity small {
    max-width: 42ch;
    font-size: 12px;
    line-height: 1.45;
  }

  .store-strip-meta {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .nearby-select {
    grid-column: 1 / -1;
  }

  .nearby-select span {
    font-size: 10px;
  }

  .nearby-select select {
    min-height: 48px;
    border-color: #494949;
    border-radius: 8px;
    padding-inline: 14px 36px;
    background: var(--surface);
    font-size: 14px;
  }

  .freshness {
    min-height: 44px;
    font-size: 12px;
  }

  .store-strip .text-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    border: 0;
    color: #d3d2cc;
    font-size: 12px;
  }

  .release-section {
    order: 3;
  }

  .live-section {
    order: 4;
  }

  .state-live-section {
    order: 5;
  }

  .catalog-section {
    order: 6;
  }

  .pulse-section {
    order: 7;
  }

  .live-section,
  .state-live-section,
  .catalog-section,
  .pulse-section {
    padding: 34px 0;
  }

  .section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px 12px;
    margin-bottom: 18px;
  }

  .section-title h2,
  .catalog-section h2 {
    margin-top: 7px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: .98;
  }

  .section-count {
    align-self: end;
    padding-bottom: 3px;
    font-size: 11px;
    letter-spacing: .06em;
    text-align: right;
  }

  .live-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-card-image {
    padding: 10px;
  }

  .live-card-copy {
    display: block;
    padding: 12px;
  }

  .live-card-copy strong,
  .live-card-copy span,
  .live-card-copy small {
    display: block;
  }

  .live-card-copy strong {
    font-size: 14px;
  }

  .live-card-copy span,
  .live-card-copy small {
    margin-top: 4px;
    font-size: 12px;
  }

  .empty-state {
    min-height: 132px;
    padding: 24px 18px;
  }

  .empty-state strong {
    font-size: 17px;
  }

  .empty-state span {
    font-size: 14px;
    line-height: 1.5;
  }

  .nearby-block {
    margin-top: 36px;
  }

  .nearby-heading,
  .rankings-heading {
    display: block;
    margin-bottom: 14px;
  }

  .nearby-heading h3,
  .rankings-heading h3 {
    font-size: 27px;
  }

  .nearby-heading p,
  .rankings-heading p {
    margin-top: 6px;
    font-size: 13px;
  }

  .nearby-grid {
    display: flex;
    width: calc(100% + var(--mobile-gutter));
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    padding-right: var(--mobile-gutter);
    background: transparent;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .nearby-grid::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .nearby-store-card {
    flex: 0 0 min(82vw, 318px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .nearby-store-head {
    min-height: 96px;
    padding: 15px;
  }

  .nearby-store-head span,
  .nearby-store-head small,
  .nearby-store-foot,
  .nearby-none,
  .nearby-stock-row span,
  .nearby-stock-row strong {
    font-size: 12px;
  }

  .nearby-store-head strong {
    margin-top: 7px;
    font-size: 16px;
  }

  .nearby-stock-row {
    min-height: 52px;
    padding: 10px 15px;
  }

  .pulse-stats {
    overflow: hidden;
    border-radius: 10px;
  }

  .pulse-stat {
    min-height: 112px;
    padding: 18px 14px;
  }

  .pulse-stat strong {
    font-size: 34px;
  }

  .pulse-stat span {
    font-size: 11px;
  }

  .rankings-wrap {
    margin-top: 32px;
  }

  .state-rankings li {
    min-height: 64px;
  }

  .state-rankings li > span:not(.rank-number),
  .state-rankings small {
    font-size: 12px;
  }

  .catalog-tools {
    gap: 10px;
    margin-bottom: 14px;
    padding: 8px 0 12px;
  }

  .catalog-search {
    height: 50px;
    border: 1px solid #3f3f3f;
    border-radius: 8px;
    padding: 0 13px;
    background: var(--surface);
  }

  .catalog-search input {
    min-height: 44px;
  }

  .filter-tabs {
    width: calc(100% + var(--mobile-gutter));
    gap: 8px;
    margin-right: calc(var(--mobile-gutter) * -1);
    overflow-x: auto;
    padding-right: var(--mobile-gutter);
    scrollbar-width: none;
  }

  .filter-tabs button {
    min-height: 44px;
    border: 1px solid #3b3b3b;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--surface);
    color: #cac9c3;
    font-size: 11px;
  }

  .filter-tabs button.active {
    border-color: #fff;
    background: #fff;
    color: #000;
  }

  .affiliate-disclosure {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.5;
  }

  .product-grid {
    border-right: 0;
    border-left: 0;
  }

  .product-visual {
    padding: 8px;
  }

  .product-copy {
    min-height: 78px;
    padding: 11px 10px 13px;
  }

  .product-copy strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .product-copy span {
    margin-top: 5px;
    font-size: 12px;
  }

  .product-status,
  .nearby-stock-shell > .product-status {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    min-height: 44px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: .04em;
  }

  .product-status span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .archive-market-link {
    min-height: 46px;
    padding: 0 10px;
    font-size: 10px;
  }

  .product-card:has(.nearby-stock-shell.open)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .62);
  }

  .nearby-stock-shell.open {
    z-index: 101;
  }

  .nearby-stock-popover {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 102;
    max-height: 72dvh;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .8);
  }

  .nearby-popover-head {
    min-height: 58px;
    padding: 14px 16px;
  }

  .nearby-popover-head strong,
  .nearby-popover-head span,
  .nearby-popover-row strong,
  .nearby-popover-row small,
  .nearby-popover-row b {
    font-size: 12px;
  }

  .nearby-popover-row {
    min-height: 58px;
    padding: 10px 16px;
  }

  footer {
    width: calc(100% - (var(--mobile-gutter) * 2));
    gap: 16px;
    padding: 34px 0 calc(40px + env(safe-area-inset-bottom));
    font-size: 12px;
    line-height: 1.6;
  }

  footer .wordmark {
    min-height: 44px;
  }

  footer p a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  dialog {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
  }

  .dialog-close {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(5, 5, 5, .88);
  }

  .detail-layout {
    display: block;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .detail-image {
    width: 100%;
    height: 34dvh;
    min-height: 250px;
    max-height: 330px;
    padding: 48px 20px 12px;
  }

  .detail-image img {
    max-height: 29dvh;
  }

  .detail-info {
    overflow: visible;
    padding: 22px 18px calc(48px + env(safe-area-inset-bottom));
  }

  .detail-info h2 {
    margin: 7px 0 14px;
    font-size: clamp(34px, 11vw, 44px);
    line-height: .98;
  }

  .detail-stock {
    margin: 18px 0;
    padding: 14px 0;
  }

  .detail-stock strong {
    font-size: 16px;
  }

  .detail-stock span,
  .detail-note,
  .detail-grid dd,
  .detail-row,
  .detail-row span,
  .detail-market small {
    font-size: 12px;
  }

  .detail-grid dt {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .site-header .wordmark {
    font-size: 9px;
  }

  .store-trigger {
    max-width: 126px;
  }

  .product-status,
  .nearby-stock-shell > .product-status {
    font-size: 9px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid div:nth-child(odd) {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
