/* Final shared-shell cascade for the V2.2 prototype. */
html,
body {
  overflow-x: clip;
}

/* Compact mobile presentation for the five primary discovery pages. */
.score-methodology-compact {
  display: none;
}

.mobile-section-browse {
  display: none;
}

.search-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.search-empty-state p {
  margin: 0;
}

@media (max-width: 599px) {
  .mobile-section-browse {
    display: flex;
    justify-content: center;
    padding: 10px 0 2px;
  }

  .mobile-section-browse .button {
    width: 100%;
    min-height: 38px;
  }

  body[data-page-mode="section"] .site-header {
    margin-bottom: 0 !important;
  }

  body[data-page-mode="section"] .site-header .home-search-copy {
    display: none !important;
  }

  body[data-page-mode="section"]:has(.favorites-empty) .site-footer {
    display: none !important;
  }

  body[data-page-mode="section"] .detail-panel {
    padding: 10px 7px calc(72px + env(safe-area-inset-bottom));
  }

  body[data-page-mode="section"] .section-header {
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
  }

  body[data-page-mode="section"] .section-header > div {
    min-width: 0;
  }

  body[data-page-mode="section"] .section-header .eyebrow {
    margin: 0 0 1px;
    font-size: 8.5px;
    line-height: 1.1;
    letter-spacing: 0.08em;
  }

  body[data-page-mode="section"] .section-header h1,
  body[data-page-mode="section"] .section-header h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .section-header .pill {
    min-height: 25px;
    flex: 0 0 auto;
    padding: 0 8px;
    font-size: 9.5px;
  }

  body[data-page-mode="section"] .section-copy,
  body[data-page-mode="section"] .retailer-page-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 8px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  /* Top Bottles: one decision-focused row instead of three nested offer cards. */
  body[data-page-mode="section"] .top-list {
    gap: 6px;
  }

  body[data-page-mode="section"] .top-list-row {
    grid-template-columns: 30px 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 92px;
    gap: 2px 7px;
    align-items: center;
    border-radius: 9px;
    padding: 6px 31px 6px 6px;
  }

  body[data-page-mode="section"] .top-list-row > .favorite-button {
    top: 5px;
    right: 4px;
    width: 25px;
    height: 25px;
  }

  body[data-page-mode="section"] .top-list-row .rank-chip {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    align-self: center;
    font-size: 10px;
  }

  body[data-page-mode="section"] .top-list-bottle {
    display: contents;
  }

  body[data-page-mode="section"] .top-list-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 54px;
    height: 78px;
    padding: 4px;
  }

  body[data-page-mode="section"] .top-list-img {
    max-height: 69px;
  }

  body[data-page-mode="section"] .top-list-bottle > div:last-child {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    min-width: 0;
  }

  body[data-page-mode="section"] .top-list-bottle h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.08;
  }

  body[data-page-mode="section"] .top-list-bottle p {
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .top-list-note {
    display: none;
  }

  body[data-page-mode="section"] .top-list-prices {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    margin: 2px 0 0;
    gap: 0;
  }

  body[data-page-mode="section"] .top-list-prices > span {
    height: 9px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0;
    line-height: 1;
  }

  body[data-page-mode="section"] .top-list-prices > span::after {
    content: "Best local price";
    font-size: 8px;
  }

  body[data-page-mode="section"] .price-preview-card {
    gap: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }

  body[data-page-mode="section"] .price-preview-line {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 0;
  }

  body[data-page-mode="section"] .price-preview-line:nth-child(n + 2) {
    display: none;
  }

  body[data-page-mode="section"] .price-preview-line strong {
    font-size: 13.5px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .price-preview-line em {
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Browse: compact controls and rows show substantially more catalog per screen. */
  body[data-page-mode="section"] .browse-layout,
  body[data-page-mode="section"] .browse-results {
    gap: 6px;
  }

  body[data-page-mode="section"] .browse-filter-toggle {
    min-height: 34px;
    border-radius: 8px;
    font-size: 11px;
  }

  body[data-page-mode="section"] .browse-results-head {
    align-items: stretch;
    gap: 5px;
    margin: 0 0 6px;
  }

  body[data-page-mode="section"] .browse-results-head p {
    overflow: hidden;
    margin: 0;
    font-size: 9.5px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .browse-sort {
    display: flex;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body[data-page-mode="section"] .browse-sort::-webkit-scrollbar,
  body[data-page-mode="section"] .retailer-map-toolbar::-webkit-scrollbar {
    display: none;
  }

  body[data-page-mode="section"] .browse-sort button {
    min-height: 28px;
    flex: 0 0 auto;
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 9.5px;
  }

  body[data-page-mode="section"] .browse-product-grid {
    gap: 6px;
  }

  body[data-page-mode="section"] .browse-product-tile {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 94px;
    border-radius: 9px;
  }

  body[data-page-mode="section"] .browse-product-art {
    min-height: 94px;
    padding: 5px;
  }

  body[data-page-mode="section"] .browse-product-img {
    max-height: 82px;
  }

  body[data-page-mode="section"] .browse-product-copy {
    align-content: center;
    gap: 2px;
    padding: 6px 30px 6px 8px;
  }

  body[data-page-mode="section"] .browse-product-copy > span {
    font-size: 8px;
  }

  body[data-page-mode="section"] .browse-product-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.08;
  }

  body[data-page-mode="section"] .browse-product-copy p {
    overflow: hidden;
    margin: 0;
    font-size: 8.5px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .browse-product-copy > div {
    margin-top: 2px;
  }

  body[data-page-mode="section"] .browse-product-copy > div strong {
    font-size: 13.5px;
  }

  body[data-page-mode="section"] .browse-product-copy > div em {
    max-width: 58%;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Deals & Trends: retain the signal, compress explanatory and store metadata. */
  body[data-page-mode="section"] .market-update-page .update-summary-grid {
    gap: 0;
    margin: 6px 0 8px;
  }

  body[data-page-mode="section"] .market-update-page .update-summary-grid div {
    min-height: 44px;
    padding: 4px 2px;
  }

  body[data-page-mode="section"] .market-update-page .update-summary-grid span {
    font-size: 8px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .market-update-page .update-summary-grid strong {
    font-size: 15px;
    line-height: 1;
  }

  body[data-page-mode="section"] .update-section {
    margin-top: 7px;
  }

  body[data-page-mode="section"] .section-title-row {
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
  }

  body[data-page-mode="section"] .section-title-row h2 {
    font-size: 16px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .section-title-description {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .deal-list,
  body[data-page-mode="section"] .signal-list {
    gap: 6px;
  }

  body[data-page-mode="section"] .deal-card,
  body[data-page-mode="section"] .signal-card {
    grid-template-columns: 48px minmax(0, 1fr) 76px;
    min-height: 82px;
    gap: 6px;
    border-radius: 9px;
    padding: 6px 29px 6px 6px;
  }

  body[data-page-mode="section"] .deal-card .signal-img,
  body[data-page-mode="section"] .signal-card .signal-img {
    width: 48px;
    height: 67px;
    max-height: 67px;
  }

  body[data-page-mode="section"] .deal-card .signal-copy,
  body[data-page-mode="section"] .signal-card .signal-copy {
    align-self: center;
    min-width: 0;
  }

  body[data-page-mode="section"] .deal-card .signal-title,
  body[data-page-mode="section"] .signal-card .signal-title {
    gap: 2px;
  }

  body[data-page-mode="section"] .deal-card .signal-title strong,
  body[data-page-mode="section"] .signal-card .signal-title strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12.5px;
    line-height: 1.08;
  }

  body[data-page-mode="section"] .deal-card .signal-copy p,
  body[data-page-mode="section"] .signal-card .signal-copy p,
  body[data-page-mode="section"] .deal-card .signal-meta span:nth-child(n + 2),
  body[data-page-mode="section"] .signal-card .signal-meta span:nth-child(n + 2) {
    display: none;
  }

  body[data-page-mode="section"] .deal-card .signal-meta,
  body[data-page-mode="section"] .signal-card .signal-meta {
    margin-top: 3px;
    font-size: 8px;
  }

  body[data-page-mode="section"] .deal-card .signal-side,
  body[data-page-mode="section"] .signal-card .signal-side {
    align-self: center;
    min-width: 0;
    text-align: right;
  }

  body[data-page-mode="section"] .deal-card .signal-side > strong,
  body[data-page-mode="section"] .signal-card .signal-side > strong {
    font-size: 15px;
  }

  body[data-page-mode="section"] .deal-card .signal-side > div,
  body[data-page-mode="section"] .signal-card .signal-side > div {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .deal-card .deal-save {
    font-size: 8px;
  }

  /* Top Stores: a useful map followed by five concise decision cards. */
  body[data-page-mode="section"] .score-methodology {
    width: 100%;
    margin: 0 0 7px;
    border-radius: 8px;
    padding: 7px 9px;
  }

  body[data-page-mode="section"] .score-methodology summary {
    gap: 5px;
    font-size: 10.5px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .score-methodology-full {
    display: none;
  }

  body[data-page-mode="section"] .score-methodology-compact {
    display: inline;
  }

  body[data-page-mode="section"] .score-methodology summary span {
    margin-left: auto;
    font-size: 8.5px;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .score-methodology p {
    margin: 7px 0 0;
    font-size: 9.5px;
    line-height: 1.3;
  }

  body[data-page-mode="section"] .retailer-map-panel {
    gap: 5px;
    margin: 0 0 8px;
    border-radius: 9px;
    padding: 5px;
  }

  body[data-page-mode="section"] .retailer-map-toolbar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body[data-page-mode="section"] .map-filter {
    min-height: 28px;
    flex: 0 0 auto;
    border-radius: 7px;
    padding: 4px 9px;
    font-size: 9px;
  }

  body[data-page-mode="section"] .map-fit-all {
    display: none;
  }

  body[data-page-mode="section"] .map-canvas {
    height: 218px;
    min-height: 218px;
    border-radius: 7px;
  }

  body[data-page-mode="section"] .mobile-retailer-cards {
    gap: 6px;
  }

  body[data-page-mode="section"] .mobile-retailer-card {
    gap: 6px;
    border-radius: 9px;
    padding: 7px;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 7px;
  }

  body[data-page-mode="section"] .mobile-retailer-rank {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > div > strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12.5px;
    line-height: 1.08;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > div > span,
  body[data-page-mode="section"] .mobile-retailer-rating > span {
    font-size: 8px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .mobile-score-breakdown {
    border-radius: 7px;
    padding: 5px;
  }

  body[data-page-mode="section"] .mobile-score-breakdown-label {
    display: none;
  }

  body[data-page-mode="section"] .mobile-score-components {
    gap: 3px;
  }

  body[data-page-mode="section"] .mobile-score-components > div {
    min-height: 42px;
    padding: 3px;
  }

  body[data-page-mode="section"] .mobile-score-components span,
  body[data-page-mode="section"] .mobile-score-components small {
    font-size: 7.5px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .mobile-score-components strong {
    font-size: 12px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .mobile-retailer-deals {
    min-height: 0;
  }

  body[data-page-mode="section"] .mobile-featured-find {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px;
    border-radius: 7px;
    padding: 5px 7px;
  }

  body[data-page-mode="section"] .mobile-featured-find span,
  body[data-page-mode="section"] .mobile-featured-find strong,
  body[data-page-mode="section"] .mobile-featured-find b {
    overflow: hidden;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .mobile-retailer-actions {
    gap: 5px;
  }

  body[data-page-mode="section"] .mobile-retailer-actions .button,
  body[data-page-mode="section"] .mobile-show-more,
  body[data-page-mode="section"] .market-show-more {
    min-height: 30px;
    border-radius: 7px;
    font-size: 9.5px;
  }

  body[data-page-mode="section"] .mobile-show-more,
  body[data-page-mode="section"] .market-show-more {
    margin-top: 6px;
  }

  /* Favorites: eliminate the dead signed-out page and tighten watchlist cards. */
  body[data-page-mode="section"] .favorites-empty {
    display: grid;
    width: 100%;
    max-width: 430px;
    min-height: 0;
    justify-items: center;
    gap: 7px;
    margin: 12px auto 0;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
  }

  .favorites-empty-star {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--olive);
    border-radius: 50%;
    color: var(--olive);
    font-size: 25px;
    line-height: 1;
  }

  .favorites-empty > strong {
    font-size: 18px;
  }

  .favorites-empty > p {
    max-width: 290px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .favorites-empty-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 280px;
    gap: 7px;
    margin-top: 3px;
  }

  .favorites-empty-actions .button {
    min-height: 34px;
  }

  body[data-page-mode="section"] .favorite-watch-list {
    gap: 7px;
  }

  body[data-page-mode="section"] .favorite-watch-row {
    gap: 6px;
    border-radius: 10px;
    padding: 7px 30px 7px 7px;
  }

  body[data-page-mode="section"] .favorite-watch-main {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 70px;
    gap: 7px;
  }

  body[data-page-mode="section"] .favorite-watch-art {
    width: 54px;
    height: 70px;
    padding: 4px;
  }

  body[data-page-mode="section"] .favorite-watch-img {
    max-height: 62px;
  }

  body[data-page-mode="section"] .favorite-watch-copy {
    align-content: center;
    gap: 1px;
  }

  body[data-page-mode="section"] .favorite-watch-copy h2 {
    font-size: 13.5px;
    line-height: 1.08;
  }

  body[data-page-mode="section"] .favorite-watch-copy span,
  body[data-page-mode="section"] .favorite-watch-copy p,
  body[data-page-mode="section"] .favorite-watch-copy em {
    font-size: 8px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .favorite-watch-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

  body[data-page-mode="section"] .favorite-watch-metrics > div {
    min-height: 43px;
    gap: 1px;
    padding: 4px 2px;
  }

  body[data-page-mode="section"] .favorite-watch-metrics span,
  body[data-page-mode="section"] .favorite-watch-metrics small {
    font-size: 7px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .favorite-watch-metrics strong {
    font-size: 11.5px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .favorite-watch-actions {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 5px;
  }

  body[data-page-mode="section"] .favorite-buy-signal,
  body[data-page-mode="section"] .favorite-watch-actions .button {
    min-height: 37px;
    border-radius: 7px;
    padding: 5px 7px;
  }

  body[data-page-mode="section"] .favorite-buy-signal strong,
  body[data-page-mode="section"] .favorite-buy-signal small {
    display: none;
  }

  body[data-page-mode="section"] .favorite-buy-signal span,
  body[data-page-mode="section"] .favorite-watch-actions .button {
    font-size: 9.5px;
  }
}

/* Conditional homepage proof point: one rigorously qualified Top 100 deal. */
.weekly-scout-pick {
  display: grid;
  grid-template-columns: 48px 58px minmax(210px, 1fr) auto minmax(190px, auto) auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  border: 1px solid #d9c29d;
  border-radius: 14px;
  padding: 10px 16px;
  background: #fffdf8;
  color: #352116;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.weekly-scout-pick:has(a:hover) {
  border-color: #b9986f;
  background: #fffefa;
}

.weekly-scout-label {
  display: grid;
  justify-items: start;
  color: #b44718;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.weekly-scout-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3e8d7;
}

.weekly-scout-img {
  width: 52px;
  height: 58px;
  object-fit: contain;
}

.weekly-scout-copy,
.weekly-scout-value,
.weekly-scout-proof {
  min-width: 0;
}

.weekly-scout-copy {
  display: grid;
  gap: 2px;
}

.weekly-scout-copy > strong {
  overflow: hidden;
  color: #352116;
  font-size: 20px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-scout-copy > span:last-child,
.weekly-scout-value > span,
.weekly-scout-proof > span {
  color: #756558;
  font-size: 11px;
  font-weight: 700;
}

.weekly-scout-value,
.weekly-scout-proof {
  display: grid;
  gap: 2px;
}

.weekly-scout-value {
  min-width: 150px;
}

.weekly-scout-value > strong {
  color: #267044;
  font-size: 24px;
  line-height: 1;
}

.weekly-scout-value > span {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-scout-proof > strong {
  color: #66732f;
  font-size: 15px;
}

.weekly-scout-actions {
  display: grid;
  gap: 6px;
  width: 112px;
}

.weekly-scout-cta,
.weekly-scout-deals-cta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.weekly-scout-cta {
  background: #b44718;
  color: #fffdf8;
}

.weekly-scout-deals-cta {
  border: 1px solid #b44718;
  background: #fffdf8;
  color: #8e3b18;
}

.weekly-scout-cta:hover {
  background: #963a13;
}

.weekly-scout-deals-cta:hover {
  background: #f8eadb;
}

@media (max-width: 899px) {
  .weekly-scout-pick {
    grid-template-columns: 44px 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 80px;
    padding: 9px 11px 9px 9px;
  }

  .weekly-scout-label {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    font-size: 11px;
  }

  .weekly-scout-art {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 52px;
    height: 58px;
  }

  .weekly-scout-img {
    width: 46px;
    height: 52px;
  }

  .weekly-scout-copy {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .weekly-scout-copy > strong {
    font-size: 18px;
  }

  .weekly-scout-value {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
  }

  .weekly-scout-value > strong {
    font-size: 21px;
  }

  .weekly-scout-proof {
    grid-column: 3;
    grid-row: 3;
  }

  .weekly-scout-actions {
    display: grid;
    grid-column: 4;
    grid-row: 2 / 4;
    align-self: center;
    gap: 4px;
    width: auto;
  }

  .weekly-scout-cta {
    grid-column: auto;
    grid-row: auto;
  }

  .weekly-scout-deals-cta {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 2px 0;
    background: transparent;
    color: #8e3b18;
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (max-width: 599px) {
  .weekly-scout-pick {
    grid-template-columns: 38px 42px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 0;
    border-radius: 11px;
    padding: 9px 10px;
  }

  .weekly-scout-label {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    font-size: 10px;
    letter-spacing: 0.035em;
  }

  .weekly-scout-art {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 42px;
    height: 61px;
  }

  .weekly-scout-img {
    width: 38px;
    height: 55px;
  }

  .weekly-scout-copy {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .weekly-scout-copy > strong {
    font-size: 16px;
  }

  .weekly-scout-copy > span:last-child {
    display: none;
  }

  .weekly-scout-value {
    grid-column: 3;
    grid-row: 2;
  }

  .weekly-scout-value > strong {
    font-size: 19px;
  }

  .weekly-scout-value > span {
    max-width: 150px;
    font-size: 10px;
  }

  .weekly-scout-proof {
    grid-column: 3;
    grid-row: 3;
    display: flex;
    gap: 5px;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .weekly-scout-proof > strong,
  .weekly-scout-proof > span {
    font-size: 10px;
  }

  .weekly-scout-proof > span {
    display: none;
  }

  .weekly-scout-cta {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .weekly-scout-deals-cta {
    font-size: 9px;
  }
}

@media (min-width: 900px) {
  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header {
    width: 100vw;
    min-height: 76px;
    margin-top: 26px;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    padding-right: max(26px, calc((100vw - 1380px) / 2 + 18px));
    padding-left: max(164px, calc((100vw - 1380px) / 2 + 152px));
  }

  .site-header .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link {
    left: max(24px, calc((100vw - 1380px) / 2 + 18px));
    width: 112px;
    height: 112px;
  }

  .action-tiles a,
  body[data-page-mode="home"] .action-tiles a,
  body[data-page-mode="detail"] .action-tiles a,
  body[data-page-mode="section"] .action-tiles a {
    min-height: 76px;
  }

  body[data-page-mode="home"] .site-header {
    margin-bottom: 446px;
  }
}

@media (max-width: 899px) {
  .app-shell {
    width: 100%;
    padding-top: 0;
  }

  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    width: 100%;
    min-height: 74px;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: 74px;
    margin: 0 0 42px;
    border-radius: 0;
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 5px;
    left: 10px;
    width: 78px;
    height: 78px;
  }

  .logo-link img,
  body[data-page-mode="home"] .logo-link img,
  body[data-page-mode="detail"] .logo-link img,
  body[data-page-mode="section"] .logo-link img {
    width: 61px;
  }

  .page-grid,
  .site-footer {
    width: calc(100% - 16px);
    margin-inline: auto;
  }

  body[data-page-mode="home"] .site-header {
    grid-template-rows: 74px auto auto;
  }

  body[data-page-mode="home"] .site-header::before {
    height: 74px;
    border-radius: 0;
  }

  .v2-market-map {
    min-height: 230px;
  }
}

/* V2.3 — measured against the approved desktop and mobile mockups. */
:root {
  --v23-type: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

body[data-page-mode="detail"] {
  --v2-display: var(--v23-type);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--v23-type);
}

body {
  color: #241911;
}

h1,
h2,
h3,
h4,
.section-header h2,
.v3-pdp-copy > h1,
.v3-listings-head h2,
.home-search-copy h1,
.home-card h2,
.v2-home-proof strong,
.v3-pdp-stats strong,
.v3-offer-price > strong {
  font-family: var(--v23-type);
}

.v2-coverage-pin-wrap {
  background: transparent;
  border: 0;
}

.v2-coverage-pin {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #fff9ec;
  border-radius: 50% 50% 50% 0;
  background: #bd3f17;
  box-shadow: 0 3px 8px rgba(45, 25, 14, 0.38);
  transform: rotate(-45deg);
}

.v2-coverage-pin.is-olive {
  background: #64702d;
}

.v2-coverage-pin i {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff9ec;
}

body[data-page-mode="detail"] .page-grid {
  display: block;
  width: min(970px, calc(100% - 36px));
  margin-inline: auto;
}

body[data-page-mode="detail"] .main-view,
body[data-page-mode="detail"] .detail-panel {
  width: 100%;
}

body[data-page-mode="detail"] .right-rail {
  display: none;
}

.v3-pdp-breadcrumb {
  gap: 11px;
  margin: 0 0 18px;
  color: #40372f;
  font-size: 15px;
  line-height: 1.4;
}

.v3-pdp-breadcrumb a {
  color: #40372f;
}

.v3-pdp-breadcrumb strong {
  color: #40372f;
  font-weight: 500;
}

.v3-pdp-hero {
  grid-template-columns: 39% 61%;
  gap: 0;
  min-height: 350px;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(57, 36, 23, 0.05);
}

.v3-pdp-art {
  min-height: 350px;
  align-items: center;
  justify-items: center;
  padding: 22px 28px 18px;
  background: #fffefa;
}

.v3-pdp-art .large-img {
  width: auto;
  max-width: 72%;
  height: 292px;
  max-height: 292px;
  filter: drop-shadow(0 10px 9px rgba(53, 33, 22, 0.16));
}

.v3-pdp-art::after {
  right: 24%;
  bottom: 23px;
  left: 24%;
  height: 14px;
}

.v3-rank-badge {
  top: 24px;
  left: 26px;
  min-width: 78px;
  width: 78px;
  height: 78px;
  place-content: center;
  border: 4px double #a69e55;
  border-radius: 50%;
  background: #596329;
  padding: 8px 5px;
  clip-path: none;
  text-align: center;
  box-shadow: 0 2px 7px rgba(45, 43, 20, 0.24);
}

.v3-rank-badge::before,
.v3-rank-badge::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -25px;
  width: 23px;
  height: 33px;
  background: #596329;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 76%, 22% 100%);
}

.v3-rank-badge::before { left: 11px; transform: rotate(8deg); }
.v3-rank-badge::after { right: 11px; transform: rotate(-8deg); }

.v3-rank-badge span,
.v3-rank-badge small {
  font-size: 7px;
  line-height: 1.15;
}

.v3-rank-badge strong {
  font-family: var(--v23-type);
  font-size: 25px;
}

.v3-pdp-copy {
  justify-content: end;
  padding: 26px 38px 4px 14px;
}

.v3-pdp-copy > .eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.v3-pdp-copy > h1 {
  margin: 6px 0 9px;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.v3-pdp-description {
  font-size: 14px;
  line-height: 1.45;
}

.v3-product-tags {
  margin-top: 12px;
}

.v3-product-tags span {
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.v3-pdp-commerce {
  padding: 0 38px 22px 14px;
}

.v3-pdp-stats {
  margin: 14px 0 14px;
  border: 1px solid #dfc39e;
  border-radius: 7px;
}

.v3-pdp-stats > div {
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 8px;
  min-height: 64px;
  border-color: #e6d3ba;
  padding: 8px 14px;
}

.v3-pdp-stats > div:first-child {
  padding-left: 14px;
}

.v3-pdp-stats svg {
  grid-row: 1 / span 2;
  align-self: center;
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #5f682c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v3-pdp-stats span {
  align-self: end;
  color: #302820;
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.v3-pdp-stats strong {
  align-self: start;
  font-size: 22px;
  font-weight: 700;
}

.v3-pdp-actions .product-alert-button,
.v3-pdp-actions .product-track-button {
  min-height: 42px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.v3-pdp-commerce .product-market-proof {
  margin-top: 11px;
  color: #302820;
  font-size: 12px;
}

.product-other-markets {
  display: flex;
  gap: 3px 7px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 4px 0 0;
  color: #75675d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.product-other-markets > span {
  font-weight: 800;
}

.product-other-markets a {
  color: #9d3c16;
  text-decoration: none;
}

.product-other-markets a:hover,
.product-other-markets a:focus-visible {
  text-decoration: underline;
}

.product-other-markets i {
  color: #b9aa9c;
  font-style: normal;
}

.product-live-intelligence {
  margin-top: 10px;
  border-radius: 10px;
  padding: 16px 20px 18px;
}

.listing-expansion-control {
  margin-top: 9px;
}

.listing-expansion-control .button {
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 2px 8px;
  color: #a93818;
  box-shadow: none;
  font-size: 10px;
  text-decoration: underline;
}

.v3-listings-head {
  align-items: center;
  margin-bottom: 10px;
}

.v3-listings-head .eyebrow {
  display: none;
}

.v3-listings-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.v3-listings-head > span {
  color: #40372f;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.v3-offer-list {
  border-radius: 7px;
}

.v3-offer-columns {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) minmax(115px, 0.8fr) 96px 90px 72px 76px;
  gap: 12px;
  align-items: center;
  min-height: 31px;
  border-bottom: 1px solid #e4d7c4;
  padding: 5px 12px;
  color: #574b41;
  font-size: 10px;
  font-weight: 600;
}

.v3-offer-row {
  grid-template-columns: minmax(220px, 1.45fr) minmax(115px, 0.8fr) 96px 90px 72px 76px;
  gap: 12px;
  min-height: 50px;
  padding: 6px 12px;
}

.v3-store-mark {
  width: 27px;
  height: 27px;
  font-size: 13px;
}

.v3-offer-store {
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
}

.v3-offer-store a {
  font-size: 12px;
}

.v3-offer-store span,
.v3-offer-status span,
.v3-offer-price small {
  font-size: 8px;
}

.v3-offer-price > strong {
  font-size: 18px;
}

.v3-offer-location,
.v3-offer-updated {
  color: #554a40;
  font-size: 10px;
}

.v3-offer-actions .v3-view-offer {
  min-height: 0;
  justify-content: flex-end;
  background: transparent;
  padding: 2px 0;
  color: #b33216;
  font-size: 11px;
  font-weight: 700;
}

.v3-offer-actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
}

.v3-offer-secondary {
  display: flex;
  gap: 5px;
  align-items: center;
}

.v3-offer-secondary > a,
.v3-offer-secondary .listing-report-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #8f7d6c;
  font-size: 6px;
  line-height: 1;
}

.home-card-grid {
  align-items: stretch;
}

.home-card {
  min-height: 330px;
}

.home-top-list {
  align-content: start;
}

.v2-market-map {
  min-height: 225px;
}

@media (min-width: 900px) {
  .app-shell {
    width: min(1320px, 100%);
  }

  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header {
    grid-template-columns: 190px minmax(560px, 1fr) 86px 48px;
    grid-template-rows: 72px;
    width: 100vw;
    min-height: 72px;
    margin: 0 0 46px calc(50% - 50vw);
    padding: 0 max(24px, calc((100vw - 1220px) / 2));
    padding-left: max(150px, calc((100vw - 1320px) / 2 + 120px));
    box-shadow: 0 5px 15px rgba(47, 27, 16, 0.15);
  }

  .site-header .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link {
    top: 0;
    left: clamp(30px, 3.4vw, 52px);
    width: 100px;
    height: 100px;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
    transform: none;
  }

  .site-header .logo-link img,
  body[data-page-mode="home"] .logo-link img,
  body[data-page-mode="detail"] .logo-link img,
  body[data-page-mode="section"] .logo-link img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }

  .header-tools .location-tools,
  body[data-page-mode="detail"] .header-tools .location-tools,
  body[data-page-mode="section"] .header-tools .location-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .location-tools {
    width: auto;
    margin-left: 0;
    transform: none;
  }

  .site-header .location-trigger {
    max-width: 168px;
    border: 0 !important;
    background: transparent !important;
    padding-inline: 4px;
    font-size: 12px;
  }

  .action-tiles,
  body[data-page-mode="home"] .action-tiles,
  body[data-page-mode="detail"] .action-tiles,
  body[data-page-mode="section"] .action-tiles {
    justify-content: space-evenly;
  }

  .action-tiles a,
  body[data-page-mode="home"] .action-tiles a,
  body[data-page-mode="detail"] .action-tiles a,
  body[data-page-mode="section"] .action-tiles a {
    min-height: 72px;
    padding-inline: clamp(9px, 1.25vw, 20px);
  }

  .action-tiles strong,
  body[data-page-mode="home"] .action-tiles strong,
  body[data-page-mode="detail"] .action-tiles strong,
  body[data-page-mode="section"] .action-tiles strong {
    font-size: 12px;
    font-weight: 500;
    color: #fff7e9 !important;
  }

  .site-header .account-link,
  .site-header .account-tools .auth-menu > summary,
  .site-header .account-menu > summary {
    min-height: 34px;
    border: 0 !important;
    background: transparent !important;
    padding: 4px;
    color: #fff7e9;
    font-size: 12px;
  }

  .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search {
    grid-column: 4;
    width: 42px;
    min-width: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  body:not([data-page-mode="home"]) .hero-search input {
    display: none;
  }

  body:not([data-page-mode="home"]) .hero-search button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    background: transparent;
    padding: 9px;
  }

  body:not([data-page-mode="home"]) .hero-search .search-button-icon {
    display: block;
    width: 24px;
    height: 24px;
  }

  body:not([data-page-mode="home"]) .hero-search .search-button-label {
    display: none;
  }

  body[data-page-mode="home"] .site-header {
    margin-bottom: 333px;
  }

  body[data-page-mode="home"] .home-search-copy {
    top: 136px;
    left: max(24px, calc((100vw - 1320px) / 2)) !important;
    width: min(780px, calc(100vw - 560px));
    max-width: none;
  }

  body[data-page-mode="home"] .home-search-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(35px, 2.8vw, 44px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.35;
  }

  body[data-page-mode="home"] .hero-search {
    top: 308px;
    left: max(24px, calc((100vw - 1320px) / 2)) !important;
    width: min(610px, 52vw);
    grid-column: auto !important;
  }

  body[data-page-mode="home"] .home-hero-brand {
    top: 80px;
    right: max(34px, calc((100vw - 1320px) / 2 + 30px));
    width: min(360px, 29vw);
    height: 270px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-page-mode="home"] .home-hero-brand::before,
  body[data-page-mode="home"] .home-hero-brand::after,
  body[data-page-mode="home"] .home-hero-brand .home-hero-orbit,
  body[data-page-mode="home"] .home-hero-brand .home-hero-pin {
    display: none;
  }

  body[data-page-mode="home"] .home-hero-brand img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    filter: none;
    transform: scale(1.5);
    transform-origin: right center;
  }

  body[data-page-mode="home"] .home-market-proof {
    position: absolute;
    top: 230px;
    left: 0;
    margin: 0;
  }

  body[data-page-mode="detail"] .home-search-copy,
  body[data-page-mode="section"] .home-search-copy {
    top: calc(100% + 10px);
    left: max(20px, calc((100vw - 1050px) / 2));
  }

  body[data-page-mode="detail"] .home-search-copy #heroSubtitle,
  body[data-page-mode="section"] .home-search-copy #heroSubtitle {
    font-size: 11px;
  }

  .site-header .location-trigger,
  .site-header .location-trigger strong,
  .site-header .location-trigger span {
    color: #fff7e9 !important;
  }
}

@media (max-width: 899px) {
  body[data-page-mode="detail"] .page-grid {
    width: calc(100% - 24px);
  }

  .v3-pdp-breadcrumb {
    margin: 0 4px 18px;
    font-size: 15px;
  }

  .v3-pdp-hero {
    grid-template-columns: 42% 58%;
    min-height: 0;
  }

  .v3-pdp-art {
    min-height: 170px;
    padding: 13px 8px 8px;
  }

  .v3-pdp-art .large-img {
    max-width: 82%;
    height: 152px;
    max-height: 152px;
  }

  .v3-rank-badge {
    top: auto;
    right: -58px;
    bottom: 4px;
    left: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-width: 3px;
  }

  .v3-rank-badge strong {
    font-size: 14px;
  }

  .v3-rank-badge span,
  .v3-rank-badge small {
    font-size: 5px;
  }

  .v3-rank-badge::before,
  .v3-rank-badge::after {
    bottom: -12px;
    width: 14px;
    height: 18px;
  }

  .v3-rank-badge::before,
  .v3-rank-badge::after {
    bottom: -20px;
    width: 18px;
    height: 28px;
  }

  .v3-pdp-copy {
    justify-content: start;
    padding: 22px 12px 6px 8px;
  }

  .v3-pdp-copy > .eyebrow {
    font-size: 9px;
  }

  .v3-pdp-copy > h1 {
    margin-top: 8px;
    font-size: 28px;
  }

  .v3-product-tags {
    margin-top: 14px;
  }

  .v3-product-tags span {
    padding: 5px 9px;
    font-size: 11px;
  }

  .v3-pdp-commerce {
    padding: 0 14px 12px;
  }

  .v3-pdp-stats {
    margin: 0 0 14px;
  }

  .v3-pdp-stats > div,
  .v3-pdp-stats > div:first-child {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 7px;
  }

  .v3-pdp-stats svg {
    width: 23px;
    height: 23px;
  }

  .v3-pdp-stats span {
    font-size: 8px;
  }

  .v3-pdp-stats strong {
    font-size: 17px;
  }

  .v3-pdp-actions .product-alert-button,
  .v3-pdp-actions .product-track-button {
    min-height: 36px;
    font-size: 12px;
  }

  .v3-pdp-commerce .product-market-proof {
    font-size: 11px;
  }

  .product-other-markets {
    font-size: 10px;
  }

  .product-live-intelligence {
    margin-top: 12px;
    padding: 17px 16px;
  }

  .v3-listings-head h2 {
    font-size: 24px;
  }

  .v3-offer-row {
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-rows: auto auto auto;
    gap: 3px 8px;
    min-height: 76px;
    padding: 8px 10px;
  }

  .v3-offer-columns {
    display: none;
  }

  .v3-offer-location {
    grid-column: 1;
    grid-row: 2;
    padding-left: 39px;
    font-size: 9px;
  }

  .v3-offer-status {
    grid-column: 1;
    grid-row: 3;
    padding-left: 39px;
  }

  .v3-offer-updated {
    display: none;
  }

  .v3-offer-store a {
    font-size: 11px;
  }

  .v3-offer-price > strong {
    font-size: 18px;
  }

  .v3-best-price {
    display: none;
  }

  .v3-offer-actions {
    grid-column: 2;
    grid-row: 3;
    display: block;
    justify-self: end;
  }

  .v3-offer-actions .v3-view-offer {
    min-height: 0;
    background: transparent;
    padding: 0;
    color: #b33216;
    font-size: 11px;
  }

  .v3-offer-secondary {
    display: none;
  }

  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    min-height: 70px;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: 70px;
  }

  .site-header .location-trigger,
  .site-header .account-link,
  .site-header .account-tools .auth-menu > summary,
  .site-header .account-menu > summary {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff7e9 !important;
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 0;
    left: 12px;
    width: 78px;
    height: 78px;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
    transform: none;
  }

  .logo-link img,
  body[data-page-mode="home"] .logo-link img,
  body[data-page-mode="detail"] .logo-link img,
  body[data-page-mode="section"] .logo-link img,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }

  body[data-page-mode="home"] .site-header {
    grid-template-rows: 70px auto auto;
  }

  body[data-page-mode="home"] .site-header::before {
    height: 70px;
  }
}

/* V2.4 desktop command bar and homepage composition. */
@media (min-width: 1025px) {
  body[data-page-mode="home"] .home-market-card .v2-market-map {
    min-height: 320px;
  }

  body[data-page-mode="home"] .home-hero-brand[data-metro="chicago"],
  body[data-page-mode="home"] .home-hero-brand[data-metro="seattle"] {
    top: 98px;
    width: min(440px, 36vw);
    height: 263px;
  }

  body[data-page-mode="home"] #homeHeroImage[data-metro="chicago"],
  body[data-page-mode="home"] #homeHeroImage[data-metro="seattle"] {
    transform: scale(1.05);
    transform-origin: right top;
  }

  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    grid-template-columns: 228px minmax(0, 1fr) 100px;
    grid-template-rows: 56px 42px;
    column-gap: 12px;
    row-gap: 0;
    min-height: 98px;
    margin: 0 0 46px calc(50% - 50vw);
    padding: 0 22px;
    background: #321c10;
  }

  .header-tools,
  body[data-page-mode="home"] .header-tools,
  body[data-page-mode="detail"] .header-tools,
  body[data-page-mode="section"] .header-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools {
    position: static;
    display: contents;
    width: auto;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .site-header .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link {
    top: 2px;
    left: 22px;
    width: 92px;
    height: 92px;
  }

  .header-tools .location-tools,
  body[data-page-mode="detail"] .header-tools .location-tools,
  body[data-page-mode="section"] .header-tools .location-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .location-tools {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: auto;
    margin: 0 0 0 98px;
    transform: none;
  }

  .site-header .location-trigger {
    width: 100%;
    max-width: none;
    min-height: 40px;
    height: 40px;
    box-sizing: border-box;
    justify-content: flex-start;
    border: 1px solid #d4c1a7 !important;
    border-radius: 7px;
    background: #fff8eb !important;
    padding: 0 9px;
    color: #5a2d18 !important;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
  }

  .site-header .location-trigger strong,
  .site-header .location-trigger span {
    color: #5a2d18 !important;
  }

  .header-tools .account-tools {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: 100%;
  }

  .header-tools .account-tools > details {
    width: 100%;
  }

  .site-header .account-link,
  .site-header .account-tools .auth-menu > summary,
  .site-header .account-menu > summary {
    width: 100%;
    min-height: 40px;
    height: 40px;
    box-sizing: border-box;
    justify-content: center;
    border: 1px solid #d4c1a7 !important;
    border-radius: 7px;
    background: #fff8eb !important;
    padding: 0 10px;
    color: #5a2d18 !important;
    font-size: 12px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
  }

  .site-header .location-trigger:hover,
  .site-header .account-link:hover,
  .site-header .account-tools .auth-menu > summary:hover,
  .site-header .account-menu > summary:hover {
    border-color: #c7a47c !important;
    background: #fff !important;
  }

  .hero-search,
  body[data-page-mode="home"] .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search {
    position: relative;
    top: auto;
    right: auto;
    left: auto !important;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    width: 100%;
    min-width: 0;
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #d9c5aa;
    border-radius: 7px;
    background: #fff;
    padding: 0;
    box-shadow: none;
  }

  .hero-search input,
  body[data-page-mode="home"] .hero-search input,
  body:not([data-page-mode="home"]) .hero-search input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: #fff;
    padding: 0 18px;
    font-size: 14px;
    box-shadow: none;
  }

  .hero-search button,
  body[data-page-mode="home"] .hero-search button,
  body:not([data-page-mode="home"]) .hero-search button {
    display: grid;
    width: 42px;
    min-width: 42px;
    min-height: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(120, 61, 28, 0.2);
    border-radius: 0 6px 6px 0;
    background: #b94a1b !important;
    color: #fff !important;
    padding: 0 5px;
    font-size: 11px;
  }

  .hero-search .search-button-icon,
  body[data-page-mode="home"] .hero-search .search-button-icon,
  body:not([data-page-mode="home"]) .hero-search .search-button-icon {
    display: block;
    width: 19px;
    height: 19px;
  }

  .hero-search .search-button-label,
  body[data-page-mode="home"] .hero-search .search-button-label,
  body:not([data-page-mode="home"]) .hero-search .search-button-label {
    display: none;
  }

  .action-tiles,
  body[data-page-mode="home"] .action-tiles,
  body[data-page-mode="detail"] .action-tiles,
  body[data-page-mode="section"] .action-tiles {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    display: flex;
    width: min(1050px, calc(100% - 320px));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
  }

  .action-tiles a,
  body[data-page-mode="home"] .action-tiles a,
  body[data-page-mode="detail"] .action-tiles a,
  body[data-page-mode="section"] .action-tiles a {
    flex: 1 1 0;
    min-height: 42px;
    border: 1px solid rgba(255, 248, 235, 0.14);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 248, 235, 0.035);
    padding: 0 8px;
    box-shadow: inset 0 -1px 0 rgba(255, 248, 235, 0.08);
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  }

  .action-tiles a:hover,
  .action-tiles a:focus-visible,
  body[data-page-mode="home"] .action-tiles a:hover,
  body[data-page-mode="detail"] .action-tiles a:hover,
  body[data-page-mode="section"] .action-tiles a:hover,
  .action-tiles a[aria-current="page"] {
    border-color: rgba(207, 113, 55, 0.55);
    background: rgba(190, 101, 45, 0.22);
    box-shadow: inset 0 -3px 0 #cf7137;
    transform: none;
  }

  body[data-page-mode="home"] .site-header {
    margin-bottom: 281px;
  }

  body[data-page-mode="home"] .home-search-copy {
    top: 158px;
    left: max(clamp(60px, 7vw, 100px), calc((100vw - 1200px) / 2)) !important;
    width: 390px;
    max-width: 390px;
  }

  body[data-page-mode="home"] .home-hero-eyebrow,
  body[data-page-mode="home"] .home-market-proof {
    display: none;
  }

  body[data-page-mode="home"] .home-search-copy h1 {
    width: 380px;
    max-width: 380px;
    margin: 0;
    font-family: "Roboto Slab", var(--v23-type);
    font-size: clamp(37px, 3.35vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: normal;
  }

  body[data-page-mode="home"] .home-search-copy h1 span {
    display: block;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    width: min(600px, calc(100vw - 34px - min(540px, 46.5vw) - clamp(60px, 7vw, 100px) - 28px));
    max-width: 600px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.35;
  }

  body[data-page-mode="home"] .home-hero-brand {
    top: 116px;
    right: max(34px, calc((100vw - 1200px) / 2));
    width: min(360px, 31vw);
    height: 250px;
  }
}

@media (max-width: 1024px) {
  .action-tiles,
  body[data-page-mode="home"] .action-tiles,
  body[data-page-mode="detail"] .action-tiles,
  body[data-page-mode="section"] .action-tiles,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .action-tiles {
    display: none;
  }

  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    position: relative;
    isolation: isolate;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: 54px 50px 44px;
    gap: 0;
    width: 100%;
    min-height: 148px;
    margin: 0 0 42px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #321c10;
    padding: 0;
    box-shadow: 0 7px 16px rgba(47, 27, 16, 0.2);
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 11px;
    left: 12px;
    width: 88px;
    height: 88px;
  }

  .header-tools,
  body[data-page-mode="home"] .header-tools,
  body[data-page-mode="detail"] .header-tools,
  body[data-page-mode="section"] .header-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    justify-self: stretch;
    display: flex;
    width: auto;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 6px 8px 4px 0;
    box-shadow: none;
  }

  .header-tools .metro-nav {
    display: none;
  }

  .header-tools .location-tools,
  body[data-page-mode="detail"] .header-tools .location-tools,
  body[data-page-mode="section"] .header-tools .location-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .location-tools {
    order: 1;
    display: flex;
    width: auto;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
  }

  .header-tools .account-tools,
  body[data-page-mode="detail"] .header-tools .account-tools,
  body[data-page-mode="section"] .header-tools .account-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .account-tools {
    order: 2;
    display: flex;
    width: auto;
    flex: 0 0 auto;
  }

  .location-trigger,
  .account-link,
  .account-tools .auth-menu > summary,
  .account-menu > summary,
  body[data-page-mode="detail"] .location-trigger,
  body[data-page-mode="section"] .location-trigger {
    min-height: 38px;
    border: 2px solid #d4c1a7 !important;
    border-radius: 8px;
    background: #fff8eb !important;
    padding: 0 8px;
    color: #5a2d18 !important;
    font-size: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
  }

  .site-header .location-trigger strong,
  .site-header .location-trigger span {
    color: #5a2d18 !important;
  }

  .site-header .location-trigger {
    min-width: 110px;
    max-width: none;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger {
    min-height: 38px;
    border: 2px solid #d4c1a7 !important;
    border-radius: 8px;
    background: #fff8eb !important;
    padding: 0 8px;
    color: #5a2d18 !important;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
  }

  .site-header .location-trigger strong {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-header .location-trigger .location-market-label,
  .site-header .location-trigger .location-label-separator,
  .site-header .location-trigger .location-action-label {
    display: inline;
  }

  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    min-height: 38px !important;
    border: 2px solid #d4c1a7 !important;
    border-radius: 8px !important;
    background: #fff8eb !important;
    padding: 0 8px !important;
    color: #5a2d18 !important;
    font-size: 10px !important;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
  }

  .hero-search,
  body[data-page-mode="home"] .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .hero-search {
    position: relative;
    z-index: 3;
    top: auto;
    right: auto;
    left: auto !important;
    grid-column: 2 !important;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    width: auto !important;
    max-width: none;
    min-width: 0;
    height: 44px;
    margin: 2px 8px 4px 0;
    border: 2px solid #d4c1a7;
    border-radius: 8px;
    background: #fff8eb;
    padding: 2px;
    box-shadow: none;
  }

  .hero-search input,
  body[data-page-mode="home"] .hero-search input,
  body[data-page-mode="detail"] .hero-search input,
  body[data-page-mode="section"] .hero-search input {
    display: block;
    min-height: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hero-search button,
  body[data-page-mode="home"] .hero-search button,
  body[data-page-mode="detail"] .hero-search button,
  body[data-page-mode="section"] .hero-search button {
    display: grid;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    height: 36px;
    place-items: center;
    border-radius: 5px;
    border: 0;
    background: #b94a1b !important;
    color: #fff !important;
    padding: 0;
  }

  .hero-search .search-button-icon,
  body[data-page-mode="home"] .hero-search .search-button-icon,
  body[data-page-mode="detail"] .hero-search .search-button-icon,
  body[data-page-mode="section"] .hero-search .search-button-icon {
    display: block !important;
  }

  .hero-search .search-button-label,
  body[data-page-mode="home"] .hero-search .search-button-label,
  body[data-page-mode="detail"] .hero-search .search-button-label,
  body[data-page-mode="section"] .hero-search .search-button-label {
    display: none !important;
  }

  .mobile-site-nav,
  body[data-page-mode="home"] .mobile-site-nav,
  body[data-page-mode="detail"] .mobile-site-nav,
  body[data-page-mode="section"] .mobile-site-nav,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .mobile-site-nav {
    position: relative;
    z-index: 3;
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-top: 1px solid rgba(255, 245, 226, 0.18);
    border-radius: 0;
    background: transparent;
  }

  .mobile-site-nav a,
  body[data-page-mode="home"] .mobile-site-nav a,
  body[data-page-mode="detail"] .mobile-site-nav a,
  body[data-page-mode="section"] .mobile-site-nav a {
    min-height: 44px;
    padding: 6px 2px;
    color: #fff8eb;
    font-size: 9px;
    line-height: 1.05;
  }

  .mobile-site-nav a.active,
  .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="home"] .mobile-site-nav a.active,
  body[data-page-mode="home"] .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="detail"] .mobile-site-nav a.active,
  body[data-page-mode="detail"] .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="section"] .mobile-site-nav a.active,
  body[data-page-mode="section"] .mobile-site-nav a[aria-current="page"] {
    border-radius: 0;
    background: transparent;
    color: #fff8eb;
    box-shadow: inset 0 -3px 0 #c44b1a;
  }

  .mobile-site-nav svg {
    display: none;
  }

  body[data-page-mode="home"] .site-header {
    grid-template-rows: 54px 50px 44px auto;
    width: 100%;
    min-height: 0;
    margin-bottom: 18px;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  body[data-page-mode="home"] .site-header::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    display: block;
    height: 148px;
    border-radius: 0;
    background: #321c10;
    box-shadow: 0 7px 16px rgba(47, 27, 16, 0.2);
  }

  body[data-page-mode="home"] .home-search-copy {
    position: relative;
    top: auto;
    left: auto !important;
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    max-width: none;
    padding: 47px 13px 18px;
  }

  body[data-page-mode="home"] .home-search-copy h1 {
    width: min(620px, 100%);
    max-width: 620px;
    font-family: "Roboto Slab", var(--v23-type);
    font-size: clamp(36px, 10vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: normal;
  }

  body[data-page-mode="home"] .home-search-copy h1 span {
    display: block;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    width: min(620px, 100%);
    max-width: 620px;
  }

  body[data-page-mode="home"] .home-market-proof {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: 10px;
  }

  body[data-page-mode="home"] .home-hero-brand {
    display: none;
  }
}

/* V2.5 coverage proof and tablet navigation refinements. */
.v2-home-proof > div {
  grid-template-columns: auto auto;
  align-items: center;
  align-content: center;
  justify-content: center;
  column-gap: 14px;
  text-align: center;
}

.v2-proof-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #5e682c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2-proof-copy {
  display: grid;
  justify-items: center;
  min-width: 0;
  margin: 0 !important;
}

.v2-proof-copy > strong,
.v2-proof-copy > span {
  display: block;
}

.v2-updated-mobile,
.v2-home-updated-detail {
  display: none;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .mobile-site-nav a,
  body[data-page-mode="home"] .mobile-site-nav a,
  body[data-page-mode="detail"] .mobile-site-nav a,
  body[data-page-mode="section"] .mobile-site-nav a {
    padding-inline: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
  }
}

@media (max-width: 599px) {
  .v2-home-proof > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .v2-proof-icon {
    display: none;
  }
}

/* Keep the location dialog above every header and page layer while open. */
.site-header:has(.location-popover.is-open),
body[data-page-mode="home"] .site-header:has(.location-popover.is-open),
body[data-page-mode="detail"] .site-header:has(.location-popover.is-open),
body[data-page-mode="section"] .site-header:has(.location-popover.is-open) {
  z-index: 5000;
  overflow: visible;
}

.location-tools:has(.location-popover.is-open) {
  position: relative;
  z-index: 5001;
}

.location-popover.is-open {
  z-index: 5002;
}

@media (max-width: 680px) {
  .location-popover.is-open {
    z-index: 10000;
  }
}

/* Compact Top Stores ranking beside the homepage coverage map. */
.v2-market-top-stores {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.v2-market-top-stores-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #e6d5bc;
}

.v2-market-top-stores-head h3 {
  margin: 0;
  color: #321c10;
  font-family: var(--v23-type);
  font-size: 16px;
  line-height: 1;
}

.v2-market-top-stores-head span {
  color: #75675d;
  font-size: 9px;
  font-weight: 700;
}

.v2-market-top-stores ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-market-top-stores li {
  min-width: 0;
}

.v2-market-top-stores li > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid #eadbc5;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
  padding: 3px 7px 5px 5px;
  color: #321c10;
}

.v2-market-top-stores li > a:hover {
  border-color: #c8aa80;
  background: #fffefa;
  transform: translateY(-1px);
}

.v2-store-rank-badge {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px double #a69e55;
  border-radius: 50%;
  background: #596329;
  color: #fff8eb;
  box-shadow: 0 2px 5px rgba(45, 43, 20, 0.22);
}

.v2-store-rank-badge::before,
.v2-store-rank-badge::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -9px;
  width: 11px;
  height: 14px;
  background: #596329;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 76%, 22% 100%);
}

.v2-store-rank-badge::before {
  left: 5px;
  transform: rotate(8deg);
}

.v2-store-rank-badge::after {
  right: 5px;
  transform: rotate(-8deg);
}

.v2-store-rank-badge b {
  font-size: 13px;
  line-height: 1;
}

.v2-market-store-copy {
  display: grid;
  min-width: 0;
}

.v2-market-store-icon {
  display: none;
}

.v2-market-store-copy strong,
.v2-market-store-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-market-store-copy strong {
  font-size: 12px;
}

.v2-market-store-copy small {
  margin-top: 2px;
  color: #75675d;
  font-size: 9px;
}

.v2-market-store-score {
  display: flex;
  align-items: baseline;
  color: #596329;
}

.v2-market-store-score b {
  font-size: 13px;
}

.v2-market-store-score small {
  font-size: 8px;
  font-weight: 700;
}

.v2-market-top-stores > .text-link {
  color: #b94a1b;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 599px) {
  .v2-market-top-stores {
    gap: 7px;
  }

  .v2-market-top-stores li > a {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 44px;
  }
}

/* Homepage Top Bottles uses the shared rank-medal treatment. */
.home-top-row {
  min-height: 60px;
  padding-block: 6px;
}

.home-top-row > .v2-store-rank-badge.home-bottle-rank-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px double #a69e55;
  border-radius: 50%;
  background: #596329;
  color: #fff8eb;
  font-size: 13px;
}

.home-top-row > .v2-store-rank-badge.home-bottle-rank-badge > b {
  color: #fff8eb;
  font-size: 13px;
  line-height: 1;
}

.home-top-row em,
.home-top-row .home-top-price {
  font-size: 14px;
}

.home-card .section-header .home-card-subtitle {
  margin: 5px 0 0;
  color: #75675d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 599px) {
  .home-top-row > .v2-store-rank-badge.home-bottle-rank-badge {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .home-top-row > .v2-store-rank-badge.home-bottle-rank-badge > b {
    font-size: 11px;
  }
}

body[data-page-mode="home"] .home-search-copy h1 .home-headline-mobile {
  display: none;
}

.mobile-region-wordmark {
  display: none;
}

@media (max-width: 599px) {
  body[data-page-mode="home"] .site-header {
    grid-template-rows: 54px 50px 44px clamp(56px, 19vw, 68px) auto;
    margin-bottom: 3px;
  }

  body[data-page-mode="home"] .mobile-region-wordmark {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 4;
    display: block;
    width: 100%;
    height: clamp(56px, 19vw, 68px);
    overflow: hidden;
    background: var(--v2-cream);
  }

  body[data-page-mode="home"] .mobile-region-wordmark img {
    display: block;
    width: calc(100% - 20px);
    height: calc(100% - 4px);
    margin: 2px 10px;
    object-fit: contain;
    object-position: center;
  }

  body[data-page-mode="home"] .home-search-copy {
    grid-row: 5;
    min-height: 0;
    padding: 4px 10px 3px;
    text-align: center;
  }

  body[data-page-mode="home"] .home-search-copy h1 {
    width: 100%;
    max-width: none;
    font-family: var(--v23-type);
    font-size: clamp(15.3px, 4.93vw, 19.55px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  body[data-page-mode="home"] .home-search-copy h1 .home-headline-long {
    display: none;
  }

  body[data-page-mode="home"] .home-search-copy h1 .home-headline-mobile {
    display: block;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    margin-top: 8px;
    font-size: clamp(11px, 3.15vw, 12px);
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  body[data-page-mode="home"] .v2-home-proof .v2-proof-copy > span {
    margin-top: 3px;
    font-size: clamp(11px, 3.15vw, 12px);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  body[data-page-mode="home"] .home-top-row > strong {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page-mode="home"] .home-market-proof {
    display: none;
  }
}

/* PDP FAQ: keep SEO copy visible while separating each question and answer. */
.product-guide-section {
  overflow: hidden;
  padding: 0;
}

.product-guide-header {
  padding: 22px 26px 18px;
  border-bottom: 3px solid #b44718;
}

.product-guide-header h2 {
  margin: 0;
  color: #352116;
  font-family: var(--v23-type);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.product-guide-items {
  display: block;
}

.product-guide-item {
  padding: 20px 26px 18px;
  background: var(--v2-paper);
}

.product-guide-item:nth-child(even) {
  background: #fff8ea;
}

.product-guide-item + .product-guide-item {
  border-top: 1px solid #dec8a9;
}

.product-guide-question,
.product-guide-answer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-guide-answer {
  margin-top: 10px;
}

.product-guide-marker {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.product-guide-marker-question {
  background: #b44718;
  color: #fffdf8;
}

.product-guide-marker-answer {
  background: #66732f;
  color: #fffdf8;
}

.product-guide-question h3 {
  margin: 1px 0 0;
  color: #352116;
  font-family: var(--v23-type);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-guide-answer p {
  max-width: 820px;
  margin: 1px 0 0;
  color: #352116;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.product-guide-answer strong {
  color: #352116;
  font-weight: 900;
}

.product-guide-answer .product-guide-footnote {
  margin-top: 7px;
  color: #654938;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.product-guide-item .product-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: baseline;
  margin: 13px 0 0 40px;
  padding-top: 10px;
  border-top: 1px solid #dec8a9;
  color: #654938;
  font-size: 11px;
  font-weight: 700;
}

.product-guide-item .product-source-line > span {
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #654938;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.product-guide-item .product-source-line a {
  color: #b44718;
  font-size: 12px;
  font-weight: 800;
}

.product-guide-item .product-source-line small {
  color: #654938;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 599px) {
  .pdp-site-intro p {
    font-size: 12px;
    line-height: 1.4;
  }

  .price-history-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .price-history-summary div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px;
    text-align: center;
  }

  .price-history-summary dt {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
  }

  .price-history-summary dd {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
  }

  .chart-y-label {
    font-size: 15px;
    font-weight: 750;
  }

  .v3-pdp-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .v3-pdp-actions .product-alert-button,
  .v3-pdp-actions .product-track-button {
    gap: 4px;
    min-width: 0;
    min-height: 34px;
    padding: 5px 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .v3-pdp-actions .product-track-button span {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .v3-pdp-actions .product-track-button strong {
    min-width: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
  }

  .v3-pdp-actions .product-alert-icon,
  .v3-pdp-actions .product-alert-icon svg {
    width: 14px;
    height: 14px;
  }

  .v3-pdp-commerce .product-market-proof {
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .v3-pdp-commerce .product-market-proof > span {
    flex: 0 0 auto;
    font-size: 8.5px;
  }

  .v3-pdp-commerce .product-market-proof button {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: inherit;
  }

  .product-guide-header {
    padding: 13px 14px 10px;
  }

  .product-guide-header h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .product-guide-item {
    padding: 12px 14px;
  }

  .product-guide-question,
  .product-guide-answer {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 7px;
  }

  .product-guide-answer {
    margin-top: 7px;
  }

  .product-guide-marker {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .product-guide-question h3 {
    font-size: 15px;
    line-height: 1.25;
  }

  .product-guide-answer p {
    font-size: 12px;
    line-height: 1.45;
  }

  .product-guide-answer .product-guide-footnote {
    margin-top: 5px;
    font-size: 9.5px;
    line-height: 1.35;
  }

  .product-guide-item .product-source-line {
    gap: 4px 7px;
    margin: 8px 0 0 28px;
    padding-top: 6px;
    font-size: 9px;
  }

  .product-guide-item .product-source-line > span,
  .product-guide-item .product-source-line small {
    font-size: 9px;
  }

  .product-guide-item .product-source-line a {
    font-size: 10px;
  }
}

/* V2 PDP listing detail and responsive cleanup. */
.v3-offer-columns,
.v3-offer-row {
  grid-template-columns: minmax(165px, 1.15fr) minmax(220px, 1.45fr) 66px 86px 82px 154px;
  gap: 9px;
}

.v3-offer-row {
  min-height: 62px;
  align-items: center;
  padding-block: 7px;
}

.v3-offer-store {
  display: block;
  min-width: 0;
}

.v3-offer-store > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v3-offer-store a,
.v3-offer-store-location,
.v3-offer-listing {
  overflow: hidden;
}

.v3-offer-store a {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-offer-store-location {
  display: block;
  color: #75675d;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-offer-listing {
  display: -webkit-box;
  color: #554a40;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v3-offer-distance,
.v3-offer-updated {
  color: #554a40;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.v3-offer-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.v3-offer-actions .v3-view-offer,
.v3-offer-actions .v3-directions,
.v3-offer-actions .listing-report-button.is-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 27px;
  border: 1px solid #d8c3a5;
  border-radius: 5px;
  background: #fffaf1;
  padding: 4px 7px;
  color: #8e3517;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.v3-offer-actions .v3-view-offer {
  background: #b44718;
  color: #fffdf8;
}

.v3-offer-actions .listing-report-button.is-icon-only {
  width: 28px;
  min-width: 28px;
  padding-inline: 0;
  color: #75675d;
  cursor: pointer;
  font-size: 13px;
}

.v3-offer-actions .v3-view-offer:hover,
.v3-offer-actions .v3-directions:hover,
.v3-offer-actions .listing-report-button.is-icon-only:hover {
  border-color: #b44718;
  filter: brightness(0.98);
}

@media (min-width: 900px) {
  .v3-listings-head > span {
    font-size: 13px;
    font-weight: 700;
  }

  .v3-offer-columns {
    font-size: 11.5px;
    font-weight: 700;
  }

  .v3-offer-store a {
    font-size: 14px;
  }

  .v3-offer-store-location {
    font-size: 11px;
    font-weight: 650;
  }

  .v3-offer-listing,
  .v3-offer-distance {
    font-size: 12px;
  }

  .v3-offer-price > strong {
    font-size: 20px;
    line-height: 1;
  }

  .v3-best-price {
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1.05;
  }

  .v3-offer-price {
    gap: 1px;
  }

  .v3-offer-status strong {
    font-size: 11.5px;
    font-weight: 800;
  }

  .v3-offer-actions .v3-view-offer,
  .v3-offer-actions .v3-directions {
    font-size: 10.5px;
  }

  .product-live-intelligence > .product-freshness {
    margin-top: 10px;
    padding: 8px 11px;
  }

  .product-live-intelligence > .product-freshness .product-freshness-icon {
    font-size: 18px;
  }

  .product-live-intelligence > .product-freshness p {
    font-size: 11px;
  }
}

@media (max-width: 899px) {
  .v3-rank-badge {
    top: 10px;
    right: auto;
    bottom: auto;
    left: 7px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-width: 3px;
    padding: 4px;
  }

  .v3-rank-badge strong {
    font-size: 15px;
  }

  .v3-rank-badge span,
  .v3-rank-badge small {
    font-size: 5px;
  }

  .v3-rank-badge::before,
  .v3-rank-badge::after {
    bottom: -13px;
    width: 13px;
    height: 18px;
  }

  .v3-rank-badge::before {
    left: 7px;
  }

  .v3-rank-badge::after {
    right: 7px;
  }

  .v3-offer-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto auto;
    gap: 5px 8px;
    min-height: 0;
    padding: 10px;
  }

  .v3-offer-store {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .v3-offer-store a {
    font-size: 12px;
  }

  .v3-offer-store-location {
    font-size: 9px;
  }

  .v3-offer-listing {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 9px;
  }

  .v3-offer-distance {
    grid-column: 1;
    grid-row: 3;
  }

  .v3-offer-distance::before {
    content: "Distance ";
    color: #8b7a69;
    font-weight: 600;
  }

  .v3-offer-price {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .v3-offer-status {
    grid-column: 2;
    grid-row: 3;
    padding: 0;
  }

  .v3-offer-updated {
    display: block;
    grid-column: 3;
    grid-row: 3;
  }

  .v3-offer-updated::before {
    content: "Updated ";
    color: #8b7a69;
    font-weight: 600;
  }

  .v3-offer-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    justify-self: stretch;
    justify-content: flex-end;
    margin-top: 2px;
  }

  .v3-offer-actions .v3-view-offer,
  .v3-offer-actions .v3-directions,
  .v3-offer-actions .listing-report-button.is-icon-only {
    min-height: 29px;
    font-size: 9px;
  }

  .v3-offer-actions .listing-report-button.is-icon-only {
    width: 30px;
    min-width: 30px;
    font-size: 13px;
  }
}

@media (max-width: 599px) {
  .v3-offer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 4px 8px;
    padding: 8px 9px;
  }

  .v3-offer-store {
    grid-column: 1;
    grid-row: 1;
  }

  .v3-offer-price {
    grid-column: 2;
    grid-row: 1;
  }

  .v3-offer-listing,
  .v3-offer-status,
  .v3-offer-updated {
    display: none;
  }

  .v3-offer-row.is-stale {
    grid-template-rows: auto auto auto auto;
  }

  .v3-offer-row.is-stale .v3-offer-status {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 0;
  }

  .v3-offer-row.is-stale .v3-offer-status strong {
    color: #9a461d;
  }

  .v3-offer-distance {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .v3-offer-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
    margin-top: 1px;
  }

  .v3-offer-row.is-stale .v3-offer-actions {
    grid-row: 4;
  }

  .product-live-intelligence > .product-freshness {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    margin-top: 8px;
    border-color: #ddcfbb;
    border-radius: 7px;
    background: #fbf6ee;
    padding: 8px 9px;
  }

  .product-live-intelligence > .product-freshness .product-freshness-icon {
    font-size: 17px;
    line-height: 1;
  }

  .product-live-intelligence > .product-freshness p {
    font-size: 9px;
    line-height: 1.35;
  }

  .v3-pdp-stats > div,
  .v3-pdp-stats > div:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    min-width: 0;
    min-height: 54px;
    overflow: hidden;
    padding: 6px 3px;
    text-align: center;
  }

  .v3-pdp-stats svg {
    display: none;
  }

  .v3-pdp-stats span {
    align-self: end;
    max-width: 100%;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
  }

  .v3-pdp-stats strong {
    align-self: start;
    max-width: 100%;
    font-size: clamp(14px, 4.8vw, 17px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .popular-bottles-section {
    padding: 10px;
  }

  .popular-bottles-head {
    margin-bottom: 8px;
  }

  .popular-bottles-head .eyebrow {
    font-size: 8px;
  }

  .popular-bottles-head h2 {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.1;
  }

  .popular-bottles-head > div > p:last-child {
    display: none;
  }

  .popular-bottle-carousel {
    gap: 8px;
    padding-bottom: 3px;
  }

  .popular-bottle-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    flex-basis: 88%;
    min-width: 210px;
  }

  .popular-bottle-art {
    min-height: 108px;
    padding: 7px;
  }

  .popular-bottle-img {
    max-width: 48px;
    max-height: 90px;
  }

  .popular-bottle-copy {
    min-height: 0;
    padding: 9px 10px;
  }

  .popular-bottle-copy > span {
    font-size: 7px;
  }

  .popular-bottle-copy h3 {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    margin: 3px 0 5px;
    font-size: 13px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .popular-bottle-copy > strong,
  .popular-bottle-copy p,
  .popular-bottle-copy > a {
    font-size: 10px;
  }

  .popular-bottle-copy p {
    margin: 2px 0 5px;
  }
}

/* Phone navigation prototype: compact utility header and persistent discovery bar. */
.account-person-icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 599px) {
  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    grid-template-columns: 62px minmax(0, 1fr) 46px;
    grid-template-rows: 58px 50px;
    min-height: 108px;
    isolation: auto;
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 2px;
    left: 4px;
    width: 54px;
    height: 54px;
  }

  .header-tools,
  body[data-page-mode="home"] .header-tools,
  body[data-page-mode="detail"] .header-tools,
  body[data-page-mode="section"] .header-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools {
    grid-column: 2 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 7px;
    padding: 8px 7px 7px 0;
  }

  .header-tools .location-tools,
  body[data-page-mode="detail"] .header-tools .location-tools,
  body[data-page-mode="section"] .header-tools .location-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .location-tools {
    grid-column: 1;
    grid-row: 1;
    position: static;
    align-self: stretch;
    justify-self: center;
    width: min(100%, 155px);
    margin: 0;
  }

  .header-tools .account-tools,
  body[data-page-mode="detail"] .header-tools .account-tools,
  body[data-page-mode="section"] .header-tools .account-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools .account-tools {
    grid-column: 2;
    width: 42px;
  }

  .site-header .location-trigger,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    border-width: 1px !important;
    border-radius: 8px !important;
    justify-content: center;
    font-size: 11.5px !important;
    letter-spacing: 0;
    box-shadow: none;
  }

  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu,
  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    width: 42px;
    min-width: 42px;
  }

  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    display: grid;
    min-height: 40px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
    place-items: center;
    padding: 0 !important;
    box-shadow: none;
  }

  .account-person-icon {
    display: block;
  }

  .account-summary-label {
    display: none;
  }

  .hero-search,
  body[data-page-mode="home"] .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .hero-search {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 43px;
    height: 43px;
    margin: 2px 7px 5px;
    overflow: hidden;
    border: 1px solid #d4c1a7;
    border-radius: 10px;
    background: #fff8eb;
    padding: 0;
    box-shadow: none;
  }

  .hero-search input,
  body[data-page-mode="home"] .hero-search input,
  body[data-page-mode="detail"] .hero-search input,
  body[data-page-mode="section"] .hero-search input {
    width: 100%;
    height: 41px;
    min-height: 41px;
    border-radius: 9px 0 0 9px;
    background: #fff8eb;
    padding-inline: 11px;
  }

  .hero-search button,
  body[data-page-mode="home"] .hero-search button,
  body[data-page-mode="detail"] .hero-search button,
  body[data-page-mode="section"] .hero-search button {
    width: 43px;
    min-width: 43px;
    height: 41px;
    min-height: 41px;
    border-radius: 0 9px 9px 0;
  }

  .mobile-site-nav,
  body[data-page-mode="home"] .mobile-site-nav,
  body[data-page-mode="detail"] .mobile-site-nav,
  body[data-page-mode="section"] .mobile-site-nav,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .mobile-site-nav {
    position: fixed;
    z-index: 2147483000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(59px + env(safe-area-inset-bottom));
    min-height: 59px;
    overflow: hidden;
    border-top: 1px solid #72513d;
    background-color: #321c10 !important;
    background-image: none !important;
    padding: 0 2px env(safe-area-inset-bottom);
    opacity: 1 !important;
    box-shadow: 0 -5px 16px rgba(47, 27, 16, 0.2);
    backdrop-filter: none;
    filter: none;
    mix-blend-mode: normal;
    isolation: isolate;
  }

  .mobile-site-nav a,
  body[data-page-mode="home"] .mobile-site-nav a,
  body[data-page-mode="detail"] .mobile-site-nav a,
  body[data-page-mode="section"] .mobile-site-nav a {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 25px auto;
    align-content: center;
    justify-items: center;
    min-height: 58px;
    gap: 2px;
    border-top: 3px solid transparent;
    padding: 3px 1px 4px;
    color: #f7eddd;
    font-size: 8px;
    font-weight: 750;
    line-height: 1;
  }

  .mobile-site-nav svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-site-nav a.active,
  .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="home"] .mobile-site-nav a.active,
  body[data-page-mode="home"] .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="detail"] .mobile-site-nav a.active,
  body[data-page-mode="detail"] .mobile-site-nav a[aria-current="page"],
  body[data-page-mode="section"] .mobile-site-nav a.active,
  body[data-page-mode="section"] .mobile-site-nav a[aria-current="page"] {
    border-top-color: #d8662c;
    background: #492817;
    color: #fff8eb;
    box-shadow: none;
  }

  .app-shell {
    padding-bottom: calc(67px + env(safe-area-inset-bottom));
  }

  .feedback-fab {
    bottom: calc(69px + env(safe-area-inset-bottom));
  }

  body[data-page-mode="home"] .site-header {
    grid-template-rows: 58px 50px clamp(56px, 19vw, 68px) auto;
    min-height: 0;
  }

  body[data-page-mode="home"] .site-header::before {
    height: 108px;
  }

  body[data-page-mode="home"] .mobile-region-wordmark {
    grid-row: 3;
  }

  body[data-page-mode="home"] .home-search-copy {
    grid-row: 4;
  }
}

/* Final phone-sized deal feed: one compact row with deliberate proportions. */
@media (max-width: 599px) {
  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) {
    grid-template-columns: 46px minmax(0, 1fr) 84px;
    grid-template-rows: minmax(60px, auto);
    min-height: 70px;
    align-items: center;
    gap: 5px 6px;
    padding: 5px 27px 5px 5px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .favorite-button {
    top: 4px;
    right: 3px;
    width: 24px;
    height: 24px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-img {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 60px;
    max-height: 60px;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-copy {
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    gap: 2px;
    min-width: 0;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    gap: 2px;
    margin: 0;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title > span {
    width: max-content;
    font-size: 8px;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.08;
    overflow-wrap: normal;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-copy > p {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .signal-meta {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta {
    display: flex;
    margin: 1px 0 0;
    font-size: 8px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta > span:nth-child(n + 2) {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-side {
    display: grid !important;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-items: end;
    gap: 2px;
    min-width: 0;
    text-align: right;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > strong {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    align-self: auto;
    max-width: 84px;
    font-size: 15px;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-save {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    justify-self: end;
    max-width: 84px;
    font-size: 8px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div {
    display: -webkit-box;
    grid-column: auto;
    grid-row: auto;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .market-update-page .deal-distance {
    display: none;
  }
}

/* Keep Browse price and availability on one readable mobile row. */
@media (max-width: 599px) {
  body[data-page-mode="section"] .browse-product-copy > div {
    display: flex !important;
    min-width: 0;
    align-items: baseline;
    justify-content: flex-start;
    gap: 9px;
  }

  body[data-page-mode="section"] .browse-product-copy > div > em {
    width: auto;
    min-width: 0;
    max-width: calc(100% - 58px);
    flex: 0 1 auto;
    font-size: 9.5px;
  }
}

/* Full ranking pages reuse the homepage/PDP ribbon-medallion language. */
.page-rank-badge {
  width: 40px;
  height: 40px;
  justify-self: center;
  flex: 0 0 auto;
}

.page-rank-badge b {
  color: #fff8eb;
  font-size: 14px;
}

.top-list-row > .page-rank-badge {
  align-self: center;
}

.retailer-rankings-table .page-rank-badge {
  margin: 0 auto 5px;
}

/* A small Top 100 credential belongs with deal evidence, not list order. */
.deal-card .deal-rank-credential {
  display: inline-flex;
  grid-column: 3;
  width: max-content;
  align-items: center;
  align-self: center;
  justify-content: center;
  justify-self: center;
  gap: 3px;
  margin: 0;
  color: #596329;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.deal-card > .signal-img {
  grid-column: 1;
}

.deal-card > .signal-copy {
  grid-column: 2;
}

.deal-card > .deal-rank-credential-spacer {
  grid-column: 3;
}

.deal-card > .signal-side {
  grid-column: 4;
}

.deal-card .deal-rank-credential small {
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.weekly-scout-product-name {
  color: inherit;
  text-decoration: none;
}

.weekly-scout-product-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.weekly-scout-store-mobile,
.weekly-scout-proof-mobile {
  display: none;
}

.deal-card .deal-page-rank-badge {
  flex: 0 0 auto;
  margin: -4px;
  transform: scale(0.76);
}

.deal-card .deal-page-rank-badge b {
  color: #fff8eb;
}

@media (min-width: 1025px) {
  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential {
    flex-direction: column-reverse;
    gap: 4px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-rank-credential small {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-page-rank-badge {
    width: 40px;
    height: 40px;
    margin: 0;
    transform: none;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-page-rank-badge b {
    font-size: 14px;
  }
}

/* V2 mobile usability contract.
   Phone layouts preserve the V2 visual language without miniaturizing desktop
   information. Core reading text stays at 12px or larger, product/store names
   sit at 16px+, and all primary controls retain touch-sized targets. */
@media (max-width: 599px) {
  :root {
    --mobile-body: 16px;
    --mobile-secondary: 13px;
    --mobile-meta: 12px;
    --mobile-card-title: 16px;
    --mobile-price: 20px;
    --mobile-section-title: 24px;
    --mobile-control-height: 46px;
  }

  /* Brand-forward utility header: the badge is deliberately V1-scale. */
  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    grid-template-columns: 102px minmax(0, 1fr) 50px;
    grid-template-rows: 102px 56px;
    min-height: 158px;
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 5px;
    left: 6px;
    width: 92px;
    height: 92px;
  }

  .header-tools,
  body[data-page-mode="home"] .header-tools,
  body[data-page-mode="detail"] .header-tools,
  body[data-page-mode="section"] .header-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools {
    grid-column: 2 / -1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    padding: 22px 8px 22px 2px;
  }

  .header-tools .location-tools,
  body[data-page-mode] .site-header .header-tools .location-tools {
    width: min(100%, 164px);
    justify-self: center;
  }

  .site-header .location-trigger,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger {
    min-height: 48px;
    border-radius: 10px !important;
    padding-inline: 8px;
    font-size: 13px !important;
    font-weight: 800;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger :is(strong, span) {
    font-size: 13px !important;
  }

  .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu,
  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    width: 46px;
    min-width: 46px;
  }

  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    min-height: 48px !important;
    border-radius: 10px !important;
  }

  .account-person-icon {
    width: 23px;
    height: 23px;
  }

  .hero-search,
  body[data-page-mode="home"] .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .hero-search {
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 50px;
    height: 50px;
    margin: 0 8px 6px;
    border-radius: 11px;
  }

  .hero-search input,
  body[data-page-mode="home"] .hero-search input,
  body[data-page-mode="detail"] .hero-search input,
  body[data-page-mode="section"] .hero-search input {
    height: 48px;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 16px !important;
  }

  .hero-search button,
  body[data-page-mode="home"] .hero-search button,
  body[data-page-mode="detail"] .hero-search button,
  body[data-page-mode="section"] .hero-search button {
    width: 50px;
    min-width: 50px;
    height: 48px;
    min-height: 48px;
  }

  .mobile-site-nav,
  body[data-page-mode="home"] .mobile-site-nav,
  body[data-page-mode="detail"] .mobile-site-nav,
  body[data-page-mode="section"] .mobile-site-nav,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .mobile-site-nav {
    height: calc(70px + env(safe-area-inset-bottom));
    min-height: 70px;
  }

  .mobile-site-nav a,
  body[data-page-mode="home"] .mobile-site-nav a,
  body[data-page-mode="detail"] .mobile-site-nav a,
  body[data-page-mode="section"] .mobile-site-nav a {
    grid-template-rows: 28px auto;
    min-height: 69px;
    gap: 3px;
    padding: 5px 1px 6px;
    font-size: 10px;
  }

  .mobile-site-nav svg {
    width: 25px;
    height: 25px;
  }

  .app-shell {
    padding-bottom: calc(79px + env(safe-area-inset-bottom));
  }

  .feedback-fab {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  /* Home: retain the short composition but restore readable brand and data scale. */
  body[data-page-mode="home"] .site-header {
    grid-template-rows: 102px 56px clamp(76px, 22vw, 92px) auto;
  }

  body[data-page-mode="home"] .site-header::before {
    height: 158px;
  }

  body[data-page-mode="home"] .mobile-region-wordmark {
    grid-row: 3;
    height: clamp(76px, 22vw, 92px);
  }

  body[data-page-mode="home"] .mobile-region-wordmark img {
    width: calc(100% - 24px);
    height: calc(100% - 6px);
    margin: 3px 12px;
  }

  body[data-page-mode="home"] .home-search-copy {
    grid-row: 4;
    padding: 5px 14px 9px;
  }

  body[data-page-mode="home"] .home-search-copy h1 {
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.15;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  body[data-page-mode="home"] .v2-home-proof > div {
    min-height: 76px;
    padding: 9px 4px;
  }

  body[data-page-mode="home"] .v2-home-proof .v2-proof-copy > strong {
    font-size: 19px;
  }

  body[data-page-mode="home"] .v2-home-proof .v2-proof-copy > span {
    margin-top: 4px;
    font-size: 12px;
  }

  .weekly-scout-pick {
    grid-template-columns: 49px 58px minmax(0, 1fr) 90px;
    grid-template-rows: auto auto;
    min-height: 112px;
    gap: 7px;
    padding: 10px;
  }

  .weekly-scout-label {
    font-size: 11px;
    line-height: 1.05;
  }

  .weekly-scout-art {
    width: 58px;
    height: 88px;
  }

  .weekly-scout-img {
    max-height: 80px;
  }

  .weekly-scout-copy > strong,
  .weekly-scout-product-name {
    font-size: 16px;
    line-height: 1.15;
  }

  .weekly-scout-copy > span:last-child,
  .weekly-scout-value > span,
  .weekly-scout-proof > span {
    font-size: 11px;
  }

  .weekly-scout-value > strong {
    font-size: 21px;
  }

  .weekly-scout-proof > strong {
    font-size: 12px;
  }

  .weekly-scout-actions a {
    min-height: 34px;
    font-size: 11px;
  }

  .home-card .section-header h2 {
    font-size: 22px;
  }

  .home-card .section-header .home-card-subtitle {
    font-size: 13px;
  }

  .home-top-row {
    grid-template-columns: 38px 56px minmax(0, 1fr) auto 30px;
    min-height: 78px;
    gap: 7px;
    padding: 8px;
  }

  .home-top-row > .v2-store-rank-badge.home-bottle-rank-badge {
    width: 36px;
    height: 36px;
  }

  .home-top-art {
    width: 56px;
    height: 62px;
  }

  .home-top-img {
    max-height: 58px;
  }

  body[data-page-mode="home"] .home-top-row > strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .home-top-row em {
    font-size: 12px;
  }

  .home-top-row .home-top-price {
    font-size: 18px;
  }

  /* Shared discovery-page reading scale. */
  body[data-page-mode="section"] .detail-panel {
    padding: 14px 10px calc(84px + env(safe-area-inset-bottom));
  }

  body[data-page-mode="section"] .section-header {
    margin-bottom: 9px;
  }

  body[data-page-mode="section"] .section-header .eyebrow {
    font-size: 11px;
  }

  body[data-page-mode="section"] .section-header h1,
  body[data-page-mode="section"] .section-header h2 {
    font-size: 26px;
  }

  body[data-page-mode="section"] .section-header .pill {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  body[data-page-mode="section"] :is(.section-copy, .retailer-page-copy) {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  /* Top Bottles: midpoint density between V1 and the former compressed V2. */
  body[data-page-mode="section"] .top-list {
    gap: 9px;
  }

  body[data-page-mode="section"] .top-list-row {
    grid-template-columns: 38px 74px minmax(0, 1fr);
    min-height: 126px;
    gap: 5px 9px;
    padding: 9px 36px 9px 8px;
  }

  body[data-page-mode="section"] .top-list-row > .favorite-button {
    width: 32px;
    height: 32px;
  }

  body[data-page-mode="section"] .page-rank-badge {
    width: 38px;
    height: 38px;
  }

  body[data-page-mode="section"] .page-rank-badge b {
    font-size: 13px;
  }

  body[data-page-mode="section"] .top-list-art {
    width: 74px;
    height: 104px;
  }

  body[data-page-mode="section"] .top-list-img {
    max-height: 94px;
  }

  body[data-page-mode="section"] .top-list-bottle h2 {
    font-size: 17px;
    line-height: 1.16;
  }

  body[data-page-mode="section"] .top-list-bottle p {
    font-size: 12px;
  }

  body[data-page-mode="section"] .top-list-prices > span {
    height: 14px;
  }

  body[data-page-mode="section"] .top-list-prices > span::after {
    font-size: 11px;
  }

  body[data-page-mode="section"] .price-preview-line {
    gap: 8px;
  }

  body[data-page-mode="section"] .price-preview-line strong {
    font-size: 20px;
  }

  body[data-page-mode="section"] .price-preview-line em {
    font-size: 12px;
  }

  /* Browse and Favorites share a legible bottle-card rhythm. */
  body[data-page-mode="section"] .browse-filter-toggle {
    min-height: 42px;
    font-size: 13px;
  }

  body[data-page-mode="section"] .browse-results-head p {
    font-size: 12px;
  }

  body[data-page-mode="section"] .browse-sort button {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }

  body[data-page-mode="section"] .browse-product-grid {
    gap: 9px;
  }

  body[data-page-mode="section"] .browse-product-tile {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 118px;
  }

  body[data-page-mode="section"] .browse-product-art {
    min-height: 118px;
    padding: 8px;
  }

  body[data-page-mode="section"] .browse-product-img {
    max-height: 104px;
  }

  body[data-page-mode="section"] .browse-product-copy {
    gap: 4px;
    padding: 9px 36px 9px 10px;
  }

  body[data-page-mode="section"] .browse-product-copy > span {
    font-size: 11px;
  }

  body[data-page-mode="section"] .browse-product-copy h2 {
    font-size: 17px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .browse-product-copy p {
    font-size: 12px;
  }

  body[data-page-mode="section"] .browse-product-copy > div strong {
    font-size: 20px;
  }

  body[data-page-mode="section"] .browse-product-copy > div > em {
    max-width: none;
    font-size: 12px;
  }

  body[data-page-mode="section"] .favorite-watch-row {
    gap: 10px;
    padding: 10px;
  }

  body[data-page-mode="section"] .favorite-watch-main {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 104px;
    gap: 10px;
  }

  body[data-page-mode="section"] .favorite-watch-art {
    width: 76px;
    min-height: 104px;
  }

  body[data-page-mode="section"] .favorite-watch-img {
    max-height: 94px;
  }

  body[data-page-mode="section"] .favorite-watch-copy h2 {
    font-size: 17px;
  }

  body[data-page-mode="section"] .favorite-watch-copy :is(span, p, em),
  body[data-page-mode="section"] .favorite-watch-metrics :is(span, small) {
    font-size: 12px;
  }

  body[data-page-mode="section"] .favorite-watch-metrics strong {
    font-size: 18px;
  }

  body[data-page-mode="section"] .favorite-watch-actions .button {
    min-height: 42px;
    font-size: 12px;
  }

  /* Deals: keep the concise signal, but make every fact readable. */
  body[data-page-mode="section"] .market-update-page .update-summary-grid div {
    min-height: 58px;
    padding: 7px 4px;
  }

  body[data-page-mode="section"] .market-update-page .update-summary-grid span {
    font-size: 11px;
  }

  body[data-page-mode="section"] .market-update-page .update-summary-grid strong {
    font-size: 19px;
  }

  body[data-page-mode="section"] .section-title-row h2 {
    font-size: 21px;
  }

  body[data-page-mode="section"] .section-title-description {
    font-size: 12px;
    line-height: 1.3;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card),
  body[data-page-mode="section"] .market-update-page .deal-card {
    grid-template-columns: 70px minmax(0, 1fr) 100px;
    grid-template-rows: auto 28px;
    min-height: 116px;
    gap: 5px 9px;
    padding: 9px 32px 9px 8px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-img,
  body[data-page-mode="section"] .market-update-page .deal-card > .signal-img {
    width: 70px;
    height: 98px;
    max-height: 98px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title strong {
    font-size: 16px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title > span {
    font-size: 11px;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta {
    font-size: 11px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > strong {
    max-width: 100px;
    font-size: 20px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-save,
  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div {
    max-width: 100px;
    font-size: 11px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential {
    top: -1px;
  }

  body[data-page-mode="section"] .deal-card .deal-rank-credential small {
    font-size: 8px;
  }

  body[data-page-mode="section"] .deal-card .deal-page-rank-badge {
    transform: scale(.75);
  }

  /* Stores: preserve V2 scoring while restoring V1-like readability. */
  body[data-page-mode="section"] .score-methodology summary {
    font-size: 13px;
  }

  body[data-page-mode="section"] .score-methodology summary span,
  body[data-page-mode="section"] .score-methodology p {
    font-size: 11px;
  }

  body[data-page-mode="section"] .map-filter {
    min-height: 38px;
    font-size: 12px;
  }

  body[data-page-mode="section"] .mobile-retailer-cards {
    gap: 9px;
  }

  body[data-page-mode="section"] .mobile-retailer-card {
    min-height: 198px;
    gap: 9px;
    padding: 10px;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > div > strong {
    font-size: 17px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > div > span,
  body[data-page-mode="section"] .mobile-retailer-rating > span {
    font-size: 11px;
  }

  body[data-page-mode="section"] .mobile-score-breakdown {
    padding: 8px;
  }

  body[data-page-mode="section"] .mobile-score-components > div {
    min-height: 56px;
    padding: 6px 4px;
  }

  body[data-page-mode="section"] .mobile-score-components :is(span, small) {
    font-size: 10px;
  }

  body[data-page-mode="section"] .mobile-score-components strong {
    font-size: 17px;
  }

  body[data-page-mode="section"] .mobile-featured-find {
    min-height: 42px;
    padding: 7px 9px;
  }

  body[data-page-mode="section"] .mobile-featured-find :is(span, strong, b) {
    font-size: 11px;
  }

  body[data-page-mode="section"] .mobile-retailer-actions .button,
  body[data-page-mode="section"] :is(.mobile-show-more, .market-show-more) {
    min-height: 42px;
    font-size: 12px;
  }

  /* PDP: larger bottle, readable facts, concise but not cramped listings. */
  body[data-page-mode="detail"] .page-grid {
    width: calc(100% - 16px);
  }

  body[data-page-mode="detail"] .detail-panel {
    padding-inline: 0;
  }

  .v3-pdp-breadcrumb {
    margin: 0 8px 14px;
    font-size: 14px;
  }

  .v3-pdp-hero {
    grid-template-columns: 44% 56%;
  }

  .v3-pdp-art {
    min-height: 208px;
    padding: 12px 7px 10px;
  }

  .v3-pdp-art .large-img {
    width: auto;
    max-width: 88%;
    height: 190px;
    max-height: 190px;
  }

  .v3-rank-badge {
    top: 9px;
    left: 7px;
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .v3-rank-badge strong {
    font-size: 18px;
  }

  .v3-rank-badge :is(span, small) {
    font-size: 6px;
  }

  .v3-pdp-copy {
    padding: 20px 12px 10px 8px;
  }

  .v3-pdp-copy > .eyebrow {
    font-size: 11px;
    line-height: 1.25;
  }

  .v3-pdp-copy > h1 {
    margin-top: 9px;
    font-size: 30px;
    line-height: 1.05;
  }

  .v3-product-tags span {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .v3-pdp-commerce {
    padding: 0 12px 14px;
  }

  .v3-pdp-stats > div,
  .v3-pdp-stats > div:first-child {
    min-height: 68px;
    padding: 8px 4px;
  }

  .v3-pdp-stats span {
    font-size: 11px;
    line-height: 1.15;
  }

  .v3-pdp-stats strong {
    font-size: clamp(17px, 5.2vw, 20px);
  }

  .v3-pdp-actions .product-alert-button,
  .v3-pdp-actions .product-track-button {
    min-height: 44px;
    padding: 7px 5px;
    font-size: 12px;
  }

  .v3-pdp-commerce .product-market-proof {
    margin-top: 9px;
    font-size: 12px;
  }

  .v3-pdp-commerce .product-market-proof > span {
    font-size: 11px;
  }

  .product-live-intelligence {
    margin-top: 12px;
    padding: 16px 12px;
  }

  .v3-listings-head h2 {
    font-size: 26px;
  }

  .v3-listings-head > span {
    font-size: 12px;
  }

  .v3-offer-row {
    min-height: 116px;
    gap: 7px 10px;
    padding: 11px 10px;
  }

  .v3-offer-store a {
    font-size: 16px;
    line-height: 1.2;
  }

  .v3-offer-store-location,
  .v3-offer-distance {
    font-size: 12px;
  }

  .v3-offer-price > strong {
    font-size: 21px;
  }

  .v3-offer-actions {
    gap: 6px;
  }

  .v3-offer-actions .v3-view-offer,
  .v3-offer-actions .v3-directions,
  .v3-offer-actions .listing-report-button.is-icon-only {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .v3-offer-actions .listing-report-button.is-icon-only {
    width: 40px;
    min-width: 40px;
  }

  .product-live-intelligence > .product-freshness p {
    font-size: 11px;
  }

  .pdp-site-intro p,
  .product-guide-answer p {
    font-size: 13px;
    line-height: 1.5;
  }

  .price-history-summary dt {
    font-size: 12px;
  }

  .price-history-summary dd {
    font-size: 16px;
  }

  .product-guide-question h3 {
    font-size: 16px;
  }

  .popular-bottle-copy > span {
    font-size: 10px;
  }

  .popular-bottle-copy h3 {
    font-size: 16px;
  }

  .popular-bottle-copy > strong,
  .popular-bottle-copy p,
  .popular-bottle-copy > a {
    font-size: 12px;
  }
}

/* iOS Safari magnifies focused controls rendered below 16px and can retain
   that visual zoom across client-side navigation. Keep controls at its
   anti-zoom threshold without disabling the user's pinch-to-zoom access. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 1024px) {
    input,
    select,
    textarea {
      font-size: 16px !important;
    }
  }
}

/* Tablet follows the mobile hierarchy: credential beneath the bottle title. */
@media (max-width: 1024px) {
  body[data-page-mode="section"] .market-update-page .deal-card {
    grid-template-columns: 72px minmax(0, 1fr) minmax(150px, 220px);
    grid-template-rows: auto auto;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-copy {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > :is(.deal-rank-credential, .deal-rank-credential-spacer) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-side {
    display: grid !important;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 700px) {
  .top-list-row .top-page-rank-badge {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
}

@media (max-width: 599px) {
  body[data-page-mode="section"] .top-list-row .top-page-rank-badge {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body[data-page-mode="section"] .page-rank-badge {
    width: 30px;
    height: 30px;
  }

  body[data-page-mode="section"] .page-rank-badge b {
    font-size: 11px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card {
    grid-template-columns: 46px minmax(0, 1fr) 84px;
    grid-template-rows: auto 20px;
    min-height: 78px;
    padding-bottom: 7px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-img {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential {
    display: inline-flex !important;
    position: relative;
    top: -4px;
    grid-column: 2;
    grid-row: 2;
    width: max-content;
    align-items: center;
    align-self: center;
    justify-content: center;
    justify-self: start;
    gap: 1px;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
    margin: 0 0 2px;
    color: #596329;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential-spacer {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-side {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  body[data-page-mode="section"] .deal-card .deal-rank-credential small {
    font-size: 6.5px;
    letter-spacing: 0;
  }

  body[data-page-mode="section"] .deal-card .deal-page-rank-badge {
    width: 34px;
    height: 34px;
    margin: -6px;
    transform: scale(0.62);
  }

  body[data-page-mode="section"] .deal-card .deal-page-rank-badge b {
    font-size: 13px;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > .store-page-rank-badge {
    align-self: start;
    margin-top: 1px;
  }
}

/* Desktop command-bar contents align to the same 1320px frame as page cards. */
@media (min-width: 1025px) {
  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    isolation: isolate;
  }

  body[data-page-mode="detail"] .site-header {
    width: min(970px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .site-header::after,
  body[data-page-mode="home"] .site-header::after,
  body[data-page-mode="detail"] .site-header::after,
  body[data-page-mode="section"] .site-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 98px;
    transform: translateX(-50%);
    background: #321c10;
    box-shadow: 0 5px 15px rgba(47, 27, 16, 0.15);
    pointer-events: none;
  }

  .site-header .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link {
    left: 0;
  }

  body[data-page-mode="home"] .home-search-copy {
    left: 60px !important;
  }

  body[data-page-mode="home"] .home-hero-brand {
    right: 60px;
  }

  body[data-page-mode="detail"] .home-search-copy,
  body[data-page-mode="section"] .home-search-copy {
    right: 0;
    left: 0 !important;
  }

  /* Authoritative desktop header-control contract for every page mode. */
  body[data-page-mode] .site-header .header-tools .location-tools {
    width: 130px;
    height: 40px;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    justify-content: flex-start;
    border: 1px solid #d4c1a7 !important;
    border-radius: 7px;
    background: #fff8eb !important;
    padding: 0 9px;
    color: #5a2d18 !important;
    font-size: 12px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger strong {
    display: block;
    width: auto;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-market-label,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-label-separator,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-action-label {
    display: inline;
    width: auto;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-action-label::before {
    content: none;
  }

  body[data-page-mode] .site-header .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools > details,
  body[data-page-mode] .site-header .header-tools .account-tools .auth-menu > summary,
  body[data-page-mode] .site-header .header-tools .account-tools .account-link {
    width: 100px;
    min-width: 100px;
    height: 40px;
  }

  body[data-page-mode] .site-header .action-tiles strong {
    font-size: 13px;
    font-weight: 700;
  }

  .site-header .location-popover {
    right: auto;
    left: 0;
  }
}

/* Keep the final ranking/deal cascade aligned with the mobile usability
   contract above. These declarations intentionally follow legacy overrides. */
@media (max-width: 599px) {
  body[data-page-mode="detail"] .home-search-copy #heroSubtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  body[data-page-mode="section"] .page-rank-badge {
    width: 38px;
    height: 38px;
  }

  body[data-page-mode="section"] .page-rank-badge b {
    font-size: 13px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card),
  body[data-page-mode="section"] .market-update-page .deal-card {
    grid-template-columns: 70px minmax(0, 1fr) 100px;
    grid-template-rows: auto 28px;
    min-height: 116px;
    gap: 5px 9px;
    padding: 9px 32px 9px 8px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-img,
  body[data-page-mode="section"] .market-update-page .deal-card > .signal-img {
    width: 70px;
    height: 98px;
    max-height: 98px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title strong {
    font-size: 16px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title > span,
  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta,
  body[data-page-mode="section"] .market-update-page .deal-card .deal-save,
  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div {
    font-size: 11px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > strong {
    max-width: 100px;
    font-size: 20px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential {
    top: -1px;
  }

  body[data-page-mode="section"] .deal-card .deal-rank-credential small {
    font-size: 8px;
  }

  body[data-page-mode="section"] .deal-card .deal-page-rank-badge {
    transform: scale(.75);
  }

  /* Visual-review corrections: do not force offer context into a run-on line,
     and keep PDP location/action information above the readable text floor. */
  body[data-page-mode="section"] .top-list-row {
    min-height: 136px;
  }

  body[data-page-mode="section"] .top-list-prices {
    gap: 2px;
  }

  body[data-page-mode="section"] .top-list-prices > span {
    height: 14px;
  }

  body[data-page-mode="section"] .top-list-prices > span::after {
    font-size: 11px;
  }

  body[data-page-mode="section"] .price-preview-line {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
  }

  body[data-page-mode="section"] .price-preview-line strong {
    font-size: 20px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .price-preview-line em {
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="detail"] .home-search-copy #heroSubtitle {
    font-size: 13px;
  }

  .v3-offer-store .v3-offer-store-location,
  .v3-offer-distance {
    font-size: 12px;
    line-height: 1.25;
  }

  .v3-offer-actions .v3-view-offer,
  .v3-offer-actions .v3-directions,
  .v3-offer-actions .listing-report-button.is-icon-only,
  .product-listing-expansion .button,
  .listing-expansion-control .button {
    font-size: 12px;
  }

  body[data-page-mode="section"] .mobile-score-components :is(span, small) {
    font-size: 11px;
  }

  .favorites-empty p {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* Deals & Trends: on phones, treat each Best Deal as a compact product card.
   The former three-column layout miniaturized the title and retailer into two
   competing slivers and left the Top 100 credential stranded below the copy. */
@media (max-width: 599px) {
  body[data-page-mode="section"] .market-update-page .deal-card {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 114px;
    column-gap: 11px;
    row-gap: 2px;
    padding: 9px 34px 9px 9px;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 76px;
    height: 96px;
    max-height: 96px;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .signal-title strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential {
    display: none !important;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .deal-rank-credential-spacer {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page .deal-card > .signal-side {
    display: grid !important;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-self: start;
    min-width: 0;
    text-align: left;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .signal-side > strong {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    font-size: 21px;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-save {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .signal-side > div {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .signal-side > div > strong,
  body[data-page-mode="section"] .market-update-page .deal-card .signal-side > div > span {
    display: block;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .market-update-page .signal-card {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 122px;
    column-gap: 11px;
    row-gap: 5px;
    padding: 8px 34px 8px 9px;
    align-items: center;
  }

  body[data-page-mode="section"] .market-update-page .signal-card > .signal-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 80px;
    height: 104px;
    max-height: 104px;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page .signal-card > .signal-copy {
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    gap: 4px;
    min-width: 0;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-title {
    gap: 3px;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-title > span {
    font-size: 10px;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-title strong {
    font-size: 17px;
    line-height: 1.15;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .market-update-page .signal-card > .signal-side {
    display: grid !important;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-self: start;
    align-items: start;
    min-width: 0;
    text-align: left;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .move-arrow {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-side > strong {
    grid-column: 1;
    max-width: none;
    font-size: 20px;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-side > div {
    display: -webkit-box;
    grid-column: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Top Stores mobile card: name gets the full first row; address and score
   share the second row. The redundant featured-find strip is omitted. */
@media (max-width: 1040px) {
  body[data-page-mode="section"] .mobile-retailer-card-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank name name"
      "rank address rating";
    gap: 3px 9px;
    align-items: start;
  }

  body[data-page-mode="section"] .mobile-retailer-card-head > .store-page-rank-badge {
    grid-area: rank;
    align-self: start;
    margin-top: 1px;
  }

  body[data-page-mode="section"] .mobile-retailer-name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .mobile-retailer-address {
    display: -webkit-box;
    grid-area: address;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body[data-page-mode="section"] .mobile-retailer-rating {
    grid-area: rating;
    align-self: start;
    justify-items: end;
    text-align: right;
  }

  body[data-page-mode="section"] .mobile-retailer-rating > span {
    font-size: 9px;
    line-height: 1.05;
  }

  body[data-page-mode="section"] .mobile-score-components > div {
    align-content: start;
    justify-items: center;
    text-align: center;
  }

  body[data-page-mode="section"] .mobile-score-components > div :is(span, strong, small) {
    width: 100%;
    text-align: center;
  }

  body[data-page-mode="section"] .mobile-retailer-deals {
    display: none;
  }
}

@media (max-width: 700px) {
  body[data-page-mode="section"] .mobile-retailer-card {
    min-height: 0;
    gap: 7px;
    padding: 8px;
  }

  body[data-page-mode="section"] .mobile-score-breakdown {
    padding: 6px;
  }

  body[data-page-mode="section"] .mobile-score-components > div {
    min-height: 50px;
    padding: 4px 3px;
  }

  body[data-page-mode="section"] .mobile-retailer-actions {
    gap: 6px;
  }

  body[data-page-mode="section"] .mobile-retailer-actions .button {
    min-height: 38px;
  }
}

@media (min-width: 701px) and (max-width: 1040px) {
  body[data-page-mode="section"] .mobile-retailer-card {
    grid-template-areas:
      "identity breakdown"
      "actions actions";
  }
}

/* Deals & Trends phone feed: remove the dashboard preamble and use one
   consistent, compact product-card hierarchy throughout every section. */
@media (max-width: 599px) {
  body[data-page-mode="section"] .market-update-page > .section-copy,
  body[data-page-mode="section"] .market-update-page > .update-summary-grid {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page > .section-header {
    margin-bottom: 9px;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 110px;
    column-gap: 10px;
    row-gap: 2px;
    padding: 8px 34px 8px 8px;
    align-items: center;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 76px;
    height: 92px;
    max-height: 92px;
    align-self: center;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-copy {
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    gap: 2px;
    min-width: 0;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title {
    display: block;
    margin: 0;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title > span {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-title strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-meta {
    display: flex;
    margin: 1px 0 0;
    font-size: 10px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) > .signal-side {
    display: grid !important;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1px;
    align-self: start;
    justify-items: center;
    min-width: 0;
    text-align: center;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > strong {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: none;
    font-size: 21px;
    line-height: 1;
  }

  body[data-page-mode="section"] .market-update-page .deal-card .deal-save {
    grid-column: 1;
    grid-row: 2;
    align-self: auto;
    justify-self: center;
    max-width: none;
    font-size: 11px;
    line-height: 1.1;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div {
    display: block;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    margin: 1px 0 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div > strong {
    display: inline;
    overflow: visible;
    text-overflow: clip;
    white-space: inherit;
  }

  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div > br,
  body[data-page-mode="section"] .market-update-page :is(.deal-card, .signal-card) .signal-side > div > span {
    display: none;
  }

  body[data-page-mode="section"] .market-update-page .signal-card .signal-side > div {
    grid-row: 2;
  }

  body[data-page-mode="section"] .market-update-page :is(.signal-card-new, .signal-card-back) .signal-meta {
    display: none;
  }
}

/* Phone header: horizontal wordmark and location share the first row; search
   and account share the second. Desktop retains the circular badge. */
@media (max-width: 599px) {
  .site-header,
  body[data-page-mode="home"] .site-header,
  body[data-page-mode="detail"] .site-header,
  body[data-page-mode="section"] .site-header,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .site-header {
    grid-template-columns: minmax(0, 1fr) 50px;
    grid-template-rows: 72px 52px;
    min-height: 124px;
  }

  .logo-link,
  body[data-page-mode="home"] .logo-link,
  body[data-page-mode="detail"] .logo-link,
  body[data-page-mode="section"] .logo-link,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .logo-link {
    top: 1px;
    left: 4px;
    width: clamp(196px, 64vw, 220px);
    height: 70px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page-mode] .site-header .logo-link picture,
  body[data-page-mode] .site-header .logo-link img {
    display: block;
    width: 100%;
    height: 100%;
  }

  body[data-page-mode] .site-header .logo-link img {
    object-fit: contain;
    object-position: left center;
  }

  .header-tools,
  body[data-page-mode="home"] .header-tools,
  body[data-page-mode="detail"] .header-tools,
  body[data-page-mode="section"] .header-tools,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .header-tools {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-rows: 72px 52px;
    gap: 0;
    padding: 0 6px 0 0;
    pointer-events: none;
  }

  .header-tools .location-tools,
  body[data-page-mode] .site-header .header-tools .location-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 88px;
    max-width: none;
    justify-self: end;
    pointer-events: auto;
  }

  .site-header .location-trigger,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger {
    min-height: 40px;
    height: 40px;
    border-radius: 9px !important;
    padding: 3px 4px 3px 15px;
    font-size: 12px !important;
    position: relative;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger :is(strong, span) {
    font-size: 12px !important;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger strong {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1px;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger > span[aria-hidden="true"] {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%) rotate(-45deg);
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-market-label,
  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-action-label {
    display: block;
    font-size: 12px !important;
    line-height: 1;
  }

  body[data-page-mode] .site-header .header-tools .location-tools .location-trigger .location-label-separator {
    display: none;
  }

  .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu,
  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    width: 40px;
    min-width: 40px;
  }

  .header-tools .account-tools,
  body[data-page-mode] .site-header .header-tools .account-tools {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    margin-top: 0;
    pointer-events: auto;
  }

  body[data-page-mode] .site-header .header-tools .account-tools > details.auth-menu > summary {
    min-height: 40px !important;
    height: 40px;
    border-radius: 9px !important;
  }

  .hero-search,
  body[data-page-mode="home"] .hero-search,
  body[data-page-mode="detail"] .hero-search,
  body[data-page-mode="section"] .hero-search,
  body:is([data-page-mode="detail"], [data-page-mode="section"]) .hero-search {
    grid-column: 1 !important;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 35px;
    width: auto;
    height: 40px;
    margin: 4px 6px 8px 4px;
    align-self: start;
    border-radius: 9px;
  }

  body[data-page-mode] .site-header .hero-search button {
    display: grid !important;
    width: 35px;
    min-width: 35px;
    height: 40px;
    min-height: 40px;
  }

  body[data-page-mode] .site-header .hero-search input {
    height: 40px !important;
    min-height: 40px !important;
  }

  /* Mobile homepage: prioritize the value proposition and live market data. */
  body[data-page-mode="home"] .site-header {
    grid-template-rows: 77px 52px auto;
    min-height: 0;
    margin-bottom: 2px;
  }

  body[data-page-mode="home"] .site-header::before {
    height: 129px;
  }

  body[data-page-mode="home"] .header-tools {
    grid-template-rows: 77px 52px;
  }

  body[data-page-mode="home"] .mobile-region-wordmark {
    display: none !important;
  }

  body[data-page-mode="home"] .home-search-copy {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 5px 12px 8px;
  }

  body[data-page-mode="home"] .home-search-copy #heroSubtitle {
    max-width: 100%;
    margin: 6px auto 0;
    overflow: visible;
    font-size: clamp(10.5px, 2.95vw, 11.5px);
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  body[data-page-mode="home"] .v2-home-proof-wrap {
    display: grid;
    gap: 3px;
  }

  body[data-page-mode="home"] .v2-home-proof > div {
    min-height: 52px;
    padding: 5px 2px;
  }

  body[data-page-mode="home"] .v2-home-proof .v2-proof-copy > strong {
    font-size: 17px;
  }

  body[data-page-mode="home"] .v2-home-proof .v2-proof-copy > span {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.05;
  }

  body[data-page-mode="home"] .v2-updated-desktop {
    display: none;
  }

  body[data-page-mode="home"] .v2-updated-mobile {
    display: grid;
  }

  body[data-page-mode="home"] .v2-home-updated-detail {
    display: block;
    margin: 0 4px;
    color: #75675d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  /* Scout Pick: compact mobile card matched to the approved horizontal mock. */
  body[data-page-mode="home"] .weekly-scout-pick {
    grid-template-columns: 94px minmax(0, 1fr) 88px;
    grid-template-rows: 20px repeat(3, auto);
    gap: 2px 6px;
    min-height: 0;
    border-radius: 11px;
    padding: 8px 9px;
  }

  body[data-page-mode="home"] .weekly-scout-label {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    display: flex;
    gap: 3px;
    font-size: 9.5px;
    letter-spacing: 0.025em;
    line-height: 1;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .weekly-scout-art {
    grid-column: 1;
    grid-row: 2 / 5;
    align-self: center;
    justify-self: start;
    width: 62px;
    height: 70px;
    border-radius: 9px;
  }

  body[data-page-mode="home"] .weekly-scout-img {
    width: 54px;
    height: 64px;
    max-height: 64px;
  }

  body[data-page-mode="home"] .weekly-scout-copy {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: center;
    display: block;
    overflow: hidden;
    padding-left: 0;
  }

  body[data-page-mode="home"] .weekly-scout-copy > strong,
  body[data-page-mode="home"] .weekly-scout-product-name {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .weekly-scout-copy > span:last-child {
    display: none;
  }

  body[data-page-mode="home"] .weekly-scout-value {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    min-width: 0;
  }

  body[data-page-mode="home"] .weekly-scout-value > strong {
    font-size: 22px;
    line-height: 1;
  }

  body[data-page-mode="home"] .weekly-scout-value > span {
    display: none;
  }

  body[data-page-mode="home"] .weekly-scout-proof {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    display: block;
    min-width: 0;
  }

  body[data-page-mode="home"] .weekly-scout-proof-desktop {
    display: none;
  }

  body[data-page-mode="home"] .weekly-scout-proof-mobile {
    display: block;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .weekly-scout-proof > span {
    display: none;
  }

  body[data-page-mode="home"] .weekly-scout-store-mobile {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
    display: -webkit-box;
    overflow: hidden;
    color: #756558;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.05;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page-mode="home"] .weekly-scout-actions {
    grid-column: 3;
    grid-row: 2 / 5;
    align-self: center;
    display: grid;
    gap: 5px;
    width: 88px;
  }

  body[data-page-mode="home"] .weekly-scout-actions a {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    padding: 6px 7px;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
  }

  body[data-page-mode="home"] .weekly-scout-deals-cta {
    border: 1px solid #b44718;
    background: #fffdf8;
    color: #8e3b18;
  }

  /* Mobile Top Bottles: dedicate the full text column to the bottle name. */
  body[data-page-mode="home"] .home-top-row {
    grid-template-columns: 28px 56px minmax(0, 1fr) 30px;
    grid-template-rows: auto auto;
    gap: 5px;
  }

  body[data-page-mode="home"] .home-top-row > .home-bottle-rank-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 25px;
    height: 25px;
    border-width: 2px;
    font-size: 9px;
  }

  body[data-page-mode="home"] .home-top-row > .home-bottle-rank-badge > b {
    font-size: 9px;
  }

  body[data-page-mode="home"] .home-top-row > .home-top-art {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  body[data-page-mode="home"] .home-top-row > strong {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .home-top-row > .home-top-price {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    justify-self: start;
  }

  body[data-page-mode="home"] .home-top-row > em {
    display: block;
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    margin-left: 66px;
    color: #51443b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .home-top-row > em::before {
    content: "Available at ";
  }

  body[data-page-mode="home"] .home-top-row.favorite-scope > .favorite-button {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
  }

  /* Match homepage Top Stores rows to the mobile Top Bottles card system. */
  body[data-page-mode="home"] .v2-market-top-stores li > a {
    grid-template-columns: 28px 42px minmax(0, 1fr) auto;
    gap: 5px;
    height: 80px;
    min-height: 80px;
    padding: 8px;
  }

  body[data-page-mode="home"] .v2-market-store-icon {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid #eadbc5;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
  }

  body[data-page-mode="home"] .v2-market-top-stores .v2-store-rank-badge {
    width: 25px;
    height: 25px;
    border-width: 2px;
  }

  body[data-page-mode="home"] .v2-market-top-stores .v2-store-rank-badge > b {
    font-size: 9px;
  }

  body[data-page-mode="home"] .v2-market-store-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  body[data-page-mode="home"] .v2-market-store-copy small {
    font-size: 10px;
  }

  body[data-page-mode="home"] .v2-market-store-score {
    display: inline-flex;
    align-items: baseline;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 5px 8px;
    white-space: nowrap;
  }

  body[data-page-mode="home"] .v2-market-store-score b {
    color: inherit;
    font-size: 14px;
    line-height: 1;
  }

  body[data-page-mode="home"] .v2-market-store-score small {
    color: inherit;
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  body[data-page-mode="home"] .home-top-row > em {
    font-size: 10px;
  }

  body[data-page-mode="home"] .home-top-row > em::before {
    content: "At ";
  }
}

/* Authoritative phone-header geometry. Page modes may change the content that
   follows the command bar, but never the command bar's control placement. */
@media (max-width: 599px) {
  :root {
    --mobile-header-brand-row: 77px;
    --mobile-header-search-row: 52px;
    --mobile-header-tools-column: 94px;
  }

  body[data-page-mode] .site-header {
    grid-template-rows: var(--mobile-header-brand-row) var(--mobile-header-search-row);
    min-height: calc(var(--mobile-header-brand-row) + var(--mobile-header-search-row));
  }

  body[data-page-mode="home"] .site-header {
    grid-template-rows: var(--mobile-header-brand-row) var(--mobile-header-search-row) auto;
  }

  body[data-page-mode] .site-header::before {
    height: calc(var(--mobile-header-brand-row) + var(--mobile-header-search-row));
  }

  body[data-page-mode] .site-header .header-tools {
    position: absolute;
    z-index: 3;
    top: 4px;
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100vw;
    max-width: none;
    height: calc(var(--mobile-header-brand-row) + var(--mobile-header-search-row));
    box-sizing: border-box;
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    padding: 0;
    transform: none;
  }

  body[data-page-mode] .site-header .header-tools .account-tools {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }

  /* Safari can resolve the homepage's extra grid row differently from the
     section/detail shells. Anchor these two controls to the command bar
     itself so their horizontal position never depends on page-mode grids. */
  body[data-page-mode] .site-header .header-tools .location-tools {
    position: absolute;
    top: calc((var(--mobile-header-brand-row) - 40px) / 2);
    right: 6px;
    left: auto;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    justify-self: auto;
    width: 88px;
    margin: 0;
    transform: none;
  }

  body[data-page-mode] .site-header .header-tools .account-tools {
    position: absolute;
    top: var(--mobile-header-brand-row);
    right: 6px;
    left: auto;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    justify-self: auto;
    width: 40px;
    margin: 0;
    transform: none;
  }

  body[data-page-mode="detail"] .product-context-back {
    margin-top: 6px;
  }
}
