:root {
  color-scheme: light;
  --wine-950: #321018;
  --wine-900: #4c1723;
  --wine-800: #6b1f2b;
  --wine-700: #862b38;
  --wine-100: #f2e3e4;
  --wine-50: #fbf5f4;
  --charcoal: #26201d;
  --ink-soft: #655d57;
  --sage: #697064;
  --gold: #b08a48;
  --ivory: #f7f2e9;
  --paper: #fffdf9;
  --white: #ffffff;
  --border: #ddd6cc;
  --border-soft: #ebe5dc;
  --sale: #a52834;
  --sale-soft: #f8e8e8;
  --success: #3f684c;
  --success-soft: #e7f0e8;
  --shadow-sm: 0 1px 2px rgba(50, 16, 24, 0.05);
  --shadow-md: 0 18px 50px rgba(50, 16, 24, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 0%, rgba(176, 138, 72, 0.1), transparent 28rem),
    var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select,
summary {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid rgba(176, 138, 72, 0.65);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: var(--wine-950);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(50, 16, 24, 0.97);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.nav-shell,
main,
.footer-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--white);
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.locale-link {
  min-width: 30px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.locale-short {
  display: none;
}

.locale-link:hover,
.locale-link.is-active {
  background: var(--white);
  color: var(--wine-900);
  text-decoration: none;
}

.update-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.update-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78d89c;
  box-shadow: 0 0 0 4px rgba(120, 216, 156, 0.12);
}

main {
  padding: 46px 0 76px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 38px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, var(--wine-800), var(--wine-950));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 250px;
  right: -130px;
  bottom: -155px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-9deg);
  box-shadow:
    0 -35px 0 rgba(255, 255, 255, 0.025),
    0 -70px 0 rgba(255, 255, 255, 0.018);
}

.hero::after {
  inset: 0;
  background-image: linear-gradient(110deg, transparent 52%, rgba(255, 255, 255, 0.025) 52% 52.3%, transparent 52.3%);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e4bdc6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.hero-art {
  min-height: 245px;
  display: grid;
  place-items: center;
}

.hero-art-ring {
  position: absolute;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.026),
    0 0 0 49px rgba(255, 255, 255, 0.018);
}

.hero-art-glass {
  position: relative;
  width: 95px;
  height: 135px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-top: 0;
  border-radius: 8px 8px 48px 48px;
  transform: translateY(-14px);
}

.hero-art-glass::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 54px;
  border-radius: 6px 6px 32px 32px;
  background: rgba(194, 90, 107, 0.72);
}

.hero-art-glass::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 132px;
  width: 3px;
  height: 58px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: -27px 58px 0 0 rgba(255, 255, 255, 0.78);
}

.hero-art-glass i {
  position: absolute;
  left: 18px;
  top: 188px;
  width: 57px;
  height: 3px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-art-caption {
  position: absolute;
  right: 8px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--serif);
  font-size: 44px;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -32px 28px 0;
}

.stat-card {
  min-height: 142px;
  padding: 23px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.97);
  box-shadow: var(--shadow-sm);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--ink-soft);
}

.stat-card span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 7px 0 2px;
  color: var(--wine-800);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card small {
  font-size: 12px;
}

.section-block {
  margin-top: 74px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.section-heading h2,
.editorial-card h2 {
  margin-bottom: 0;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-heading > p {
  max-width: 490px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  text-align: right;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deal-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 25px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.deal-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -85px;
  bottom: -80px;
  border: 1px solid rgba(107, 31, 43, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(107, 31, 43, 0.025);
}

.deal-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sale-badge,
.rating-badge,
.availability-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sale-badge {
  background: var(--sale-soft);
  color: var(--sale);
}

.deal-rank {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.deal-card h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.22;
}

.deal-subtitle {
  min-height: 44px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
}

.deal-pricing strong {
  color: var(--wine-800);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.deal-pricing del {
  color: var(--ink-soft);
  font-size: 13px;
}

.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.deal-footer span {
  color: var(--sale);
  font-weight: 750;
}

.deal-footer a {
  position: relative;
  z-index: 1;
  color: var(--wine-800);
  font-weight: 750;
}

.results-section {
  scroll-margin-top: 90px;
  padding: 32px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.results-heading {
  margin-bottom: 20px;
}

#result-count {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--wine-50);
  color: var(--wine-800);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.3fr) minmax(150px, 0.5fr) minmax(190px, 0.6fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #faf7f1;
}

.search-control {
  position: relative;
  display: block;
}

.search-control svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.search-control input,
.sort-control select,
.select-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
}

.search-control input {
  padding: 10px 12px 10px 40px;
}

.sort-control select,
.select-control select {
  padding: 10px 34px 10px 12px;
}

.share-control,
.load-more {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--wine-800);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--wine-800);
  font-size: 12px;
  font-weight: 750;
}

.share-control:hover,
.load-more:hover {
  background: var(--wine-800);
  color: var(--white);
}

.filter-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--wine-800);
  background: var(--wine-800);
  color: var(--white);
}

.table-shell {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 14px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border);
  background: #f6f0e7;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

thead th:first-child {
  border-left: 1px solid var(--border-soft);
  border-radius: 10px 0 0 0;
}

thead th:last-child {
  border-right: 1px solid var(--border-soft);
  border-radius: 0 10px 0 0;
}

.number-column {
  text-align: right;
}

.action-column {
  text-align: right;
}

.wine-main-row {
  transition: background 140ms ease;
}

tbody[data-wine-row]:nth-of-type(even) .wine-main-row {
  background: rgba(247, 242, 233, 0.46);
}

.wine-main-row:hover {
  background: var(--wine-50);
}

tbody td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.rank-cell,
.rating-cell,
.price-cell,
.availability-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--wine-800);
  font-family: var(--serif);
  font-weight: 700;
}

.wine-name {
  display: block;
  max-width: 355px;
  margin-bottom: 4px;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
}

.wine-cell-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wine-image {
  width: 54px;
  height: 82px;
  flex: 0 0 auto;
  object-fit: contain;
}

.wine-copy {
  min-width: 0;
}

.wine-subtitle,
.wine-sku,
.rating-meta,
.price-note,
.availability-meta {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.wine-sku {
  margin-top: 5px;
  color: #8a817a;
}

.rating-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.rating-score i {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
}

.rating-badge {
  margin-top: 5px;
  background: #efe9df;
  color: var(--ink-soft);
}

.rating-badge.exact {
  background: var(--success-soft);
  color: var(--success);
}

.rating-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-top: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #efe9df;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.confidence-badge.high {
  background: var(--success-soft);
  color: var(--success);
}

.confidence-badge.medium {
  background: #eee7f7;
  color: #65438f;
}

.confidence-badge.limited {
  background: #f6ece0;
  color: #875e25;
}

.taxonomy-warning-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid #e3c78f;
  border-radius: 999px;
  background: #fff7e6;
  color: #79551b;
  font-size: 10px;
  font-weight: 800;
}

.taxonomy-warning {
  color: #79551b;
  font-weight: 700;
}

.adjusted-rating,
.volume-price {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.current-price {
  display: block;
  color: var(--wine-800);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.regular-price {
  display: block;
  color: #8c837c;
  font-size: 12px;
}

.price-note.sale {
  margin-top: 4px;
  color: var(--sale);
  font-weight: 750;
}

.availability-main {
  display: block;
  font-weight: 750;
}

.availability-badge {
  margin-bottom: 6px;
  background: #efe9df;
  color: var(--ink-soft);
}

.availability-badge.high {
  background: var(--success-soft);
  color: var(--success);
}

.availability-badge.low,
.availability-badge.limited {
  background: #f6ece0;
  color: #875e25;
}

.action-cell {
  text-align: right;
}

.action-links {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.action-button {
  min-width: 144px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--wine-800);
  border-radius: var(--radius-sm);
  background: var(--wine-800);
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.action-button:hover {
  background: var(--wine-900);
}

.secondary-link {
  color: var(--wine-800);
  font-size: 12px;
  font-weight: 700;
}

.wine-guide-row {
  background: transparent;
}

.wine-guide-cell {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.wine-guide {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(247, 242, 233, 0.55);
}

.wine-guide summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  list-style: none;
  color: var(--wine-800);
}

.wine-guide summary::-webkit-details-marker {
  display: none;
}

.wine-guide summary > span {
  display: grid;
  gap: 1px;
}

.wine-guide summary strong {
  font-family: var(--serif);
  font-size: 15px;
}

.wine-guide summary small {
  color: var(--ink-soft);
  font-size: 11px;
}

.wine-guide summary > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.wine-guide[open] summary > i {
  transform: rotate(225deg) translate(-2px, -2px);
}

.guide-content {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(330px, 1.45fr) minmax(190px, 0.75fr);
  gap: 24px;
  padding: 4px 16px 18px;
}

.guide-sources {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
}

.guide-sources p {
  display: inline;
  margin: 5px 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.guide-sources a,
.report-link {
  color: var(--wine-800);
  font-weight: 750;
}

.guide-sources .report-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
}

.guide-label,
.guide-facts dt {
  color: var(--wine-800);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-intro p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.guide-facts div {
  min-width: 0;
}

.guide-facts dd {
  margin: 3px 0 0;
  color: var(--charcoal);
  font-size: 12px;
  line-height: 1.45;
}

.structure-grid {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.structure-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.structure-meter b {
  color: var(--ink-soft);
  font-size: 11px;
}

.structure-meter > span {
  display: inline-flex;
  gap: 4px;
}

.structure-meter i {
  width: 8px;
  height: 8px;
  border: 1px solid #c6bcae;
  border-radius: 50%;
  background: var(--white);
}

.structure-meter i.is-filled {
  border-color: var(--gold);
  background: var(--gold);
}

.empty-results {
  margin: 0;
  padding: 38px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.load-more {
  display: block;
  min-width: 190px;
  margin: 20px auto 0;
}

.load-more[hidden] {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.editorial-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.editorial-card > p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--ink-soft);
}

.method-steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
}

.method-steps li > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
}

.method-steps strong {
  font-family: var(--serif);
  font-size: 17px;
}

.method-steps p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.methodology-card .quality-note {
  padding: 11px 13px;
  border: 1px solid #d8cab4;
  border-radius: var(--radius-sm);
  background: #f8f0e3;
  color: #675641;
  font-size: 13px;
  font-weight: 700;
}

.rating-card {
  background: var(--wine-950);
  color: var(--white);
}

.rating-card .section-kicker {
  color: #dbb4be;
}

.rating-card > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.rating-key {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.rating-key span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.key-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7ada5;
}

.key-dot.exact {
  background: #78d89c;
}

.key-dot.high {
  background: #78d89c;
}

.key-dot.medium {
  background: #b79bd8;
}

.key-dot.limited {
  background: #d7ad72;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.policy-card {
  padding: 25px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.policy-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
}

.policy-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.policy-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--wine-800);
  font-size: 13px;
  font-weight: 750;
}

.fine-print {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 4px;
  color: var(--wine-800);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 850px;
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.disclosure {
  margin-top: 56px;
  padding: 20px 22px;
  border: 1px solid #d8cab4;
  border-radius: var(--radius-md);
  background: #f2eadc;
  color: #5c5042;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--wine-950);
  color: var(--white);
}

.footer-shell {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
}

.footer-shell p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }

  .update-pill {
    margin-left: auto;
  }

  .locale-switcher {
    margin-left: auto;
  }

  .update-pill {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .controls {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
  }

  .search-control {
    grid-column: 1 / -1;
  }

  .filter-scroll {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .guide-content {
    grid-template-columns: 1fr 1.4fr;
  }

  .structure-panel {
    grid-column: 1 / -1;
  }

  .structure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

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

  .deal-grid,
  .content-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .nav-shell,
  main,
  .footer-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .brand-name {
    font-size: 17px;
  }

  .update-pill {
    display: none;
  }

  .locale-full {
    display: none;
  }

  .locale-short {
    display: inline;
  }

  main {
    padding-top: 22px;
  }

  .hero {
    padding: 34px 25px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 44px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .stats-grid {
    gap: 9px;
    margin: -18px 10px 0;
  }

  .stat-card {
    min-height: 126px;
    padding: 17px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .section-block {
    margin-top: 55px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .deal-grid {
    display: flex;
    overflow-x: auto;
    margin-inline: -14px;
    padding: 0 14px 8px;
    scroll-snap-type: x mandatory;
  }

  .deal-card {
    min-width: min(86vw, 360px);
    scroll-snap-align: start;
  }

  .results-section {
    margin-inline: -14px;
    padding: 26px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .results-heading {
    display: flex;
    align-items: end;
  }

  .controls {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .filter-scroll {
    grid-row: auto;
    grid-column: auto;
    margin-inline: -3px;
  }

  .search-control,
  .review-control,
  .sort-control,
  .share-control {
    grid-column: auto;
  }

  .filter-scroll {
    grid-row: auto;
  }

  .table-shell {
    overflow: visible;
  }

  table,
  tbody[data-wine-row],
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody[data-wine-row] {
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--white);
  }

  tbody[data-wine-row] .wine-main-row,
  tbody[data-wine-row]:nth-of-type(even) .wine-main-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    column-gap: 12px;
    padding: 18px;
    background: var(--white);
  }

  .wine-main-row td {
    display: grid;
    grid-template-columns: minmax(92px, 0.35fr) minmax(0, 0.65fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
  }

  .wine-main-row td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .wine-main-row .wine-cell {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
    width: auto;
    display: block;
    padding-top: 2px;
  }

  .wine-main-row .wine-cell::before {
    display: none;
  }

  .wine-name {
    max-width: none;
    font-size: 20px;
  }

  .wine-main-row .rank-cell {
    position: static;
    grid-row: 1;
    grid-column: 2;
    align-self: start;
    justify-self: end;
    display: block;
    width: 34px;
    padding: 0;
    border: 0;
  }

  .wine-main-row .rank-cell::before {
    display: none;
  }

  .wine-main-row td:not(.rank-cell):not(.wine-cell) {
    grid-column: 1 / -1;
  }

  .rating-cell > *,
  .price-cell > *,
  .availability-cell > * {
    justify-self: start;
  }

  .wine-main-row .action-cell {
    display: block;
    padding-bottom: 0;
    border: 0;
  }

  .wine-main-row .action-cell::before {
    display: none;
  }

  .action-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
  }

  .action-button {
    min-width: 0;
    min-height: 46px;
  }

  .secondary-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .wine-guide-row {
    padding: 0 18px 18px;
    background: var(--white);
  }

  .wine-guide-cell {
    display: block;
    padding: 0;
    border: 0;
  }

  .wine-guide-cell::before {
    display: none;
  }

  .wine-guide summary {
    padding: 12px 14px;
  }

  .wine-guide summary small {
    max-width: 230px;
  }

  .guide-content {
    display: block;
    padding: 4px 14px 16px;
  }

  .guide-sources p {
    display: block;
    margin-right: 0;
  }

  .guide-facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .structure-panel {
    margin-top: 18px;
  }

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

  .editorial-card {
    padding: 27px 22px;
  }

  .footer-shell {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
  }

}

@media (max-width: 420px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .update-pill {
    max-width: 104px;
    line-height: 1.15;
  }

  .nav-shell {
    gap: 12px;
  }

  .locale-link {
    min-width: 28px;
  }

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

  .stat-card {
    min-height: auto;
  }

  .results-heading {
    align-items: start;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
