/* ═══════════════════════════════════════════════════════════
   WINE CELLAR — Style Sheet
   Palette inspired by existing wine card (#6B2D3E burgundy)
═══════════════════════════════════════════════════════════ */

:root {
  --burgundy:       #6B2D3E;
  --burgundy-deep:  #4a0e2b;
  --burgundy-mid:   #7D3548;
  --burgundy-light: #9b4d6b;
  --cream:          #F5F0E8;
  --cream-dark:     #e8ddd0;
  --gold:           #C4A07A;
  --gold-dark:      #a8873a;
  --text:           #3D1220;
  --text-light:     #8B4A5A;
  --border:         rgba(107,45,62,0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--cream-dark); overflow-x: clip; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--cream-dark);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-mid); }

/* ── Top Navigation ─────────────────────────────────────── */
.site-header {
  background: var(--burgundy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 64px;
}

/* Let the <nav> shrink so the .nav-links <ul> becomes the real horizontal
   scroll container, instead of the whole nav overflowing the page. */
.nav-inner nav {
  flex: 1;
  min-width: 0;
  display: flex;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
  /* flex-start (not flex-end): with flex-end, once the items overflow the bar
     the start is clipped and browsers can't scroll back to it. margin-left:auto
     still right-aligns the items when they DO fit. */
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links > li:first-child { margin-left: auto; }
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 0 0.85rem;
  height: 64px;
  line-height: 64px;
  color: rgba(245,240,232,0.75);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  border-bottom: 3px solid var(--gold);
}

/* ── Sub-navigation ─────────────────────────────────────── */
.sub-nav {
  background: var(--burgundy);
  border-bottom: 1px solid rgba(196,160,122,0.3);
}

.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav-inner::-webkit-scrollbar { display: none; }

.sub-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: rgba(245,240,232,0.65);
  font-size: 0.78rem;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Main content ────────────────────────────────────────── */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 60%, var(--burgundy-mid) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4A07A' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='18'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 em { color: var(--gold); font-style: italic; }

.hero p {
  color: rgba(245,240,232,0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-pillar {
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(196,160,122,0.35);
  border-radius: 6px;
  padding: 1.2rem 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-pillar:hover {
  background: rgba(245,240,232,0.18);
  transform: translateY(-2px);
}

.hero-pillar .icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.hero-pillar .label {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  font-size: 1rem;
}

/* ── Page headers ────────────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-size: 1.9rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.35rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1rem;
  font-style: italic;
}

/* ── Cards grid ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Grape card ─────────────────────────────────────────── */
.grape-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grape-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,14,43,0.15);
}

.grape-card-band {
  height: 6px;
}

.grape-card-band.red    { background: linear-gradient(90deg, #6B2D3E, #9b4d6b); }
.grape-card-band.white  { background: linear-gradient(90deg, #C4A07A, #e8d06e); }
.grape-card-band.rosé   { background: linear-gradient(90deg, #c47a8a, #e8b0bc); }
.grape-card-band.orange { background: linear-gradient(90deg, #c4944a, #d4b84a); }

.grape-card-body { padding: 1.1rem 1.25rem 1.25rem; }

.grape-card h3 {
  font-size: 1.2rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.25rem;
}

.grape-card .origin {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.grape-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.flavor-tag {
  background: rgba(107,45,62,0.1);
  color: var(--burgundy);
  border-radius: 50px;
  padding: 0.18rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ── Stat bars (body/tannin/acidity) ────────────────────── */
.stat-bars { margin-top: 0.85rem; }

.stat-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  width: 60px;
  flex-shrink: 0;
}

.stat-track {
  flex: 1;
  height: 5px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--burgundy);
  border-radius: 3px;
}

.stat-val {
  font-size: 0.7rem;
  color: var(--text-light);
  width: 40px;
  text-align: right;
}

/* ── Region card ────────────────────────────────────────── */
.region-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,14,43,0.15);
}

.region-card-header {
  background: var(--burgundy-deep);
  padding: 1.25rem 1.25rem 1rem;
}

.region-card-header h3 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.region-card-header .country {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.region-card-body { padding: 1rem 1.25rem 1.25rem; }

.region-card-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.region-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.region-meta-item { flex: 1; }

.region-meta-item .label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.region-meta-item .value {
  font-size: 0.85rem;
  color: var(--text);
}

/* ── Wine Card ──────────────────────────────────────────── */
.wine-card {
  background: var(--cream);
  border: 1.5px solid var(--burgundy);
  border-radius: 5px;
  overflow: hidden;
  font-family: 'EB Garamond', Georgia, serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wine-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(74,14,43,0.2);
}

.wine-card-cta {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(74,14,43,0.15);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-align: right;
}

.wine-profile-tagline {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-light);
  max-width: 46ch;
}

.wine-profile-tagline--light { color: var(--cream); }

.wine-profile-section { margin-bottom: 2rem; }
.wine-profile-section .detail-description { margin-top: 0.5rem; }

/* Producer hero — large photo on the left, text vertically centred on the right.
   Uses .detail-hero.detail-hero--liked (higher specificity) so it reliably
   overrides the base .detail-hero rule, which is defined later in this file. */
.detail-hero.detail-hero--liked {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 2.5rem;
}
.detail-hero--liked .detail-hero-text {
  flex: 1 1 0;
  min-width: 0;
}
.liked-hero-img {
  flex: 0 0 auto;
  width: 46%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(245, 240, 232, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.liked-hero-img img { display: block; width: 100%; height: auto; object-fit: cover; }

/* On narrow screens, stack the photo above the centred text. */
@media (max-width: 700px) {
  .detail-hero.detail-hero--liked {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .liked-hero-img { width: 100%; max-width: 100%; }
  .detail-hero--liked .wine-profile-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}
.detail-sidebar a { color: var(--burgundy); text-decoration: none; font-weight: 600; }
.detail-sidebar a:hover { text-decoration: underline; }

/* F5: cross-link blocks (reviews / cellar bottles) below a profile or vintage */
.cross-links { margin-top: 2.5rem; }
.cross-links .cards-grid { margin-top: 1rem; }

/* F9: visible keyboard-focus ring for clickable cards/rows (role=button divs) */
[role="button"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* F7: classification-tier groups in the Benchmark & Historic Producers section */
.producer-tier { margin-bottom: 2rem; }
.producer-tier-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--burgundy);
  margin: 0 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* F4: profile / producer images */
.wine-profile-img {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245,240,232,0.12);
  align-self: center;
}
.wine-profile-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wine-card-thumb {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: rgba(245,240,232,0.12);
}
.wine-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cellar bottle photo (real-bottle snapshot) on the public cellar card. */
.cellar-card-photo {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f3ece2;
}
.cellar-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cellar bottle photo on the public bottle-detail page. */
.bottle-detail-photo {
  margin: 1rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3ece2;
}
.bottle-detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}

.wine-card-header {
  padding: 1.1rem 1.1rem 0.9rem;
  text-align: center;
  position: relative;
}

.wine-card-header.style-red    { background: linear-gradient(160deg, #4a0e2b, #6B2D3E); }
.wine-card-header.style-white  { background: linear-gradient(160deg, #7a5c28, #a8873a); }
.wine-card-header.style-rosé   { background: linear-gradient(160deg, #6b2d47, #9b4d6b); }
.wine-card-header.style-sparkling { background: linear-gradient(160deg, #3a4a5c, #5a6a82); }
.wine-card-header.style-fortified { background: linear-gradient(160deg, #3a2010, #7a4a1a); }
.wine-card-header.style-dessert { background: linear-gradient(160deg, #6a4a0a, #a87a2a); }
.wine-card-header.style-default { background: linear-gradient(160deg, #4a0e2b, #6B2D3E); }

.wine-card-header .producer {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.wine-card-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.wine-card-header .vintage-region {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.7);
  font-style: italic;
}

.wine-card-body { padding: 0.9rem 1.1rem; }

.wine-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.wine-grapes {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.wine-rating-price {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.wine-stars { color: var(--burgundy); font-size: 0.85rem; }
.wine-score { color: var(--burgundy); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

/* Wine Reviews — cards reuse .wine-card; just clickable + dated */
.review-card { cursor: pointer; }
/* Winery name matches the wine name below it (same font, size, color) */
.review-card .wine-card-header .producer {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cream);
}
.review-date { color: var(--text-light); font-size: 0.8rem; font-style: italic; }
.review-price { color: var(--burgundy); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.review-score {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ── Wine Reviews: browse-by boxes ──────────────────── */
.review-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.review-browse-box {
  background: #fff;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.review-browse-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(107,45,62,0.16);
  border-color: var(--burgundy, #6B2D3E);
}
.rb-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.rb-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--burgundy-deep, #6B2D3E);
  margin-bottom: 0.35rem;
}
.rb-sub {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.review-crumb {
  cursor: pointer;
  color: var(--burgundy, #6B2D3E);
  font-size: 0.88rem;
}
.review-crumb:hover { text-decoration: underline; }
.review-crumb-sep { color: var(--text-light, #8a7d72); margin: 0 0.5rem; }

/* ── Rich tasting card (review detail) ───────────────── */
.tasting-card {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  background: #fff;
}
.tc-header {
  padding: 2rem 2.25rem 1.75rem;
  color: #fff;
  text-align: center;
}
.theme-red .tc-header { background: linear-gradient(135deg, #6b1a2e 0%, #4a1020 100%); }
.theme-white .tc-header { background: linear-gradient(135deg, #1b4060 0%, #2c4a5a 100%); }
.tc-producer {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.tc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.tc-vintage { font-weight: 400; opacity: 0.8; }
.tc-score {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 1px;
}
.tc-score-note {
  margin: 0.6rem auto 0;
  font-style: italic;
  font-size: 0.92rem;
  opacity: 0.85;
  max-width: 32rem;
  text-align: center;
}
.tc-body { padding: 1.75rem 2.25rem 2rem; }
.tc-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem 1.4rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ece7e0;
}
.tc-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.tc-detail-key {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.tc-detail-val {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-dark, #2b2b2b);
}
.tc-detail-grapes { grid-column: span 2; }
.tc-grape-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-dark, #2b2b2b);
}
.tc-grape-list li {
  position: relative;
  padding-left: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
}
.tc-grape-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dark);
}
.tc-section { margin-bottom: 1.5rem; }
.tc-section:last-child { margin-bottom: 0; }
.tc-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--burgundy-deep, #6B2D3E);
  margin-bottom: 0.75rem;
}
.tc-swatches { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.tc-swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.tc-tag {
  padding: 0.3rem 0.85rem;
  background: #f5efe8;
  border: 1px solid #e6dccf;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--burgundy-deep, #6B2D3E);
}
.tc-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-dark, #3a3a3a);
  margin: 0;
}
.tc-bars { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.7rem; }
.tc-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 0.75rem;
}
.tc-bar-label {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light, #8a7d72);
}
.tc-bar-track {
  height: 8px;
  background: #ece7e0;
  border-radius: 999px;
  overflow: hidden;
}
.tc-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.theme-red .tc-bar-fill { background: linear-gradient(90deg, #9b2335, #6b1a2e); }
.theme-white .tc-bar-fill { background: linear-gradient(90deg, #3a6c93, #1b4060); }
.tc-bar-value {
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  color: var(--text-dark, #3a3a3a);
  text-align: right;
}
.tc-tasted {
  text-align: center;
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--text-light, #8a7d72);
  font-size: 0.9rem;
}
.region-share-btn {
  margin-top: 0.8rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--burgundy-deep, #6B2D3E);
  border: 1px solid var(--burgundy-deep, #6B2D3E);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.region-share-btn:hover { background: var(--burgundy-deep, #6B2D3E); color: #f7efe6; }
.review-export { text-align: center; margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.review-export-btn {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 0.7rem 1.6rem;
  background: var(--burgundy-deep, #6B2D3E);
  color: #f7efe6;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}
.review-export-btn:hover { transform: translateY(-1px); opacity: 0.92; }
@media (max-width: 560px) {
  .tc-bar-row { grid-template-columns: 72px 1fr 64px; gap: 0.5rem; }
  .tc-name { font-size: 1.5rem; }
}
.wine-price {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.wine-tasting {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wine-pairings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pairing-chip {
  font-size: 0.72rem;
  background: rgba(107,45,62,0.1);
  color: var(--burgundy);
  border-radius: 50px;
  padding: 0.15rem 0.55rem;
}

/* Grape of the Month — labelled tasting notes + price-point picks */
.grape-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.grape-note {
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--burgundy);
  background: var(--cream, #faf6f0);
  border-radius: 0 8px 8px 0;
}

.grape-note-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  margin-bottom: 0.35rem;
}

.grape-note-text {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.grape-price-points {
  margin-top: 2rem;
}

.grape-price-points h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.price-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.price-tier {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.price-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.price-tier-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.price-tier-sym {
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1rem;
}

.price-tier-pick {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

.grape-food-pairings {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.grape-food-pairings h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.pairing-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pairing-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pairing-dot {
  color: var(--burgundy);
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* ── Detail page ────────────────────────────────────────── */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-back:hover { color: var(--burgundy); }

.detail-hero {
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy));
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.fun-fact-box {
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(196,160,122,0.4);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  width: 240px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  align-self: center;
}

.fun-fact-box:hover {
  background: rgba(245,240,232,0.17);
}

.fun-fact-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fun-fact-text {
  font-size: 0.85rem;
  color: var(--cream);
  line-height: 1.55;
  font-style: italic;
  transition: opacity 0.2s;
}

.fun-fact-hint {
  font-size: 0.65rem;
  color: rgba(196,160,122,0.6);
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

/* ── Fun Facts Modal ─────────────────────────────────────── */
.ff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74,14,43,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.ff-modal-overlay.show { opacity: 1; }

.ff-modal {
  background: var(--cream);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transform: translateY(12px);
  transition: transform 0.25s;
}

.ff-modal-overlay.show .ff-modal { transform: translateY(0); }

.ff-modal-header {
  background: var(--burgundy-deep);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ff-modal-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.ff-modal-title {
  font-size: 1.3rem;
  color: var(--cream);
}

.ff-modal-close {
  background: none;
  border: none;
  color: rgba(245,240,232,0.6);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.ff-modal-close:hover { color: var(--cream); }

.ff-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ff-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream-dark);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--burgundy);
}

.ff-card-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--burgundy-light);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
}

.ff-card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}

.ff-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-light);
}

.ff-empty-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.ff-empty p {
  font-style: italic;
  font-size: 0.95rem;
}

.detail-hero-text h2 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.detail-hero-text .subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.detail-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.detail-stat { text-align: center; }
.detail-stat .val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--cream);
  display: block;
}
.detail-stat .key {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .detail-body { grid-template-columns: 1fr; }
  .hero-pillars { grid-template-columns: 1fr; }
  .detail-hero { flex-direction: column; }
}

.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.detail-description ul,
.detail-description ol {
  padding-left: 1.75rem;
  margin: 0.6rem 0;
}

.detail-description li {
  margin: 0.3rem 0;
}

.detail-sidebar {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  align-self: start;
}

.detail-sidebar h4 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.sidebar-row:last-child { border-bottom: none; }
.sidebar-row .key { color: var(--text-light); flex-shrink: 0; }
.sidebar-row .val {
  color: var(--text);
  font-weight: 500;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

/* ── Education cards ────────────────────────────────────── */
.edu-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,14,43,0.12);
}

.edu-card .category {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.edu-card h3 {
  font-size: 1.15rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.5rem;
}

.edu-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Section heading with ornament ─────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.section-heading h3 {
  font-size: 1.1rem;
  color: var(--burgundy-deep);
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  order: 2;
}
.section-heading h3 { order: 1; }
.section-heading-link {
  order: 3;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--burgundy);
  cursor: pointer;
}
.section-heading-link:hover { color: var(--gold-dark); text-decoration: underline; }
.region-cellar-intro {
  margin: -0.6rem 0 1.25rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ── Table of Contents ─────────────────────────────────── */
.region-toc {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.region-toc-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

.region-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.region-toc-links a {
  font-size: 0.85rem;
  color: var(--burgundy);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.region-toc-links a:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* ── Producers I Like ──────────────────────────────────── */
.liked-producers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.liked-producer {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.liked-producer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.35rem;
}

.liked-producer-note {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.liked-producer.is-clickable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-left-color 0.12s ease;
}

.liked-producer.is-clickable:hover,
.liked-producer.is-clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74, 14, 43, 0.12);
  border-left-color: var(--burgundy-deep);
}

.liked-producer-cta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* ── Loading state ──────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-style: italic;
}

.loading::before {
  content: '◌';
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  animation: spin 2s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-style: italic; }

/* ── Toast notification ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--burgundy-deep);
  color: var(--cream);
  padding: 0.85rem 1.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error { background: #8B0000; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { gap: 1rem; }
  .site-logo { font-size: 1.1rem; }
  .nav-links { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .nav-links a { padding: 0 0.75rem; font-size: 0.72rem; }
  .sub-nav-inner { -webkit-overflow-scrolling: touch; }
  .cards-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1.5rem 1rem 3rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
}

/* ── Country cards (Regions landing page) ───────────────── */
.country-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74,14,43,0.18);
}

.country-card-header {
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy-mid));
  padding: 2rem 1.5rem 1.5rem;
}

.country-card-header h3 {
  font-size: 1.6rem;
  color: var(--cream);
  font-family: 'Playfair Display', Georgia, serif;
}

.country-card-body {
  padding: 1.1rem 1.5rem 1.4rem;
}

.country-card-body > p {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.country-card-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.country-card-tag {
  font-size: 0.78rem;
  background: rgba(107,45,62,0.08);
  color: var(--burgundy);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
}

/* ── Country region boxes ───────────────────────────────── */
.country-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.country-region-box {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.country-region-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,14,43,0.15);
  border-color: var(--burgundy);
}

.country-region-box .crb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.3rem;
}

.country-region-box .crb-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Sub-regions section ────────────────────────────────── */
.subregions-wrap {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.sr-banks {
  display: flex;
  gap: 1.25rem;
  flex: 2;
  flex-wrap: wrap;
}

.sr-bank {
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 1.5px solid var(--burgundy);
  border-radius: 6px;
  overflow: hidden;
}

.sr-bank-label {
  background: var(--burgundy);
  color: var(--cream);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  text-align: center;
}

.srg-group {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.srg-group:last-child { border-bottom: none; }

.srg-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.35rem;
}

.srg-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.srg-child {
  font-size: 0.72rem;
  background: rgba(107,45,62,0.08);
  color: var(--burgundy);
  border-radius: 50px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.3px;
}

.sr-extras {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-width: 160px;
}

.sr-extra-box {
  flex: 1;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--burgundy-deep);
  transition: border-color 0.2s, transform 0.2s;
}

.sr-extra-box:hover {
  border-color: var(--burgundy);
  transform: translateY(-2px);
}

/* ── Filter chips ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.filter-chip.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

/* ── Edu article body ───────────────────────────────────── */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 720px;
}

.article-body h2, .article-body h3 {
  color: var(--burgundy-deep);
  margin: 1.5rem 0 0.6rem;
}

.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.article-body li { margin-bottom: 0.4rem; }

/* ── Map containers ─────────────────────────────────────── */
#region-detail-map {
  height: 480px;
  border-radius: 12px;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  border: none;
  overflow: hidden;
  background: #d6cfc4;
  box-shadow: 0 4px 24px rgba(74,14,43,0.18), inset 0 0 0 1px rgba(74,14,43,0.1);
  position: relative;
}

#regions-map {
  height: 460px;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: none;
  overflow: hidden;
  background: #c9d4e0;
  box-shadow: 0 4px 24px rgba(74,14,43,0.18), inset 0 0 0 1px rgba(74,14,43,0.1);
  position: relative;
}

/* Fade edges of map inward for a framed effect */
#regions-map::after,
#region-detail-map::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  /* Soft edge vignette — kept light so it frames without muddying the base */
  box-shadow: inset 0 0 22px rgba(74,14,43,0.1);
  z-index: 500;
}

.leaflet-container {
  font-family: 'EB Garamond', Georgia, serif;
  background: #ece4d6;
}

/* Warm the base map ONLY (not the label tiles) to a soft parchment tone, so the
   blank Atlantic reads as intentional cream rather than dead grey, tying the map
   into the site's burgundy/cream palette. */
.map-base-tiles {
  filter: sepia(0.18) saturate(0.9) brightness(1.03) contrast(0.98);
}

/* OpenTopoMap topographic basemap (region/sub-region detail maps). A light warm
   wash ties the green/brown contour cartography into the site's parchment palette
   without flattening the contour lines or relief that make it read as a topo map. */
.map-topo-tiles {
  filter: sepia(0.22) saturate(0.92) brightness(1.04) contrast(0.97);
}

/* Soft drop-shadow under the region/country shapes gives every map a layered,
   printed-map depth (applies to the world overview and detail maps alike). */
#region-detail-map .leaflet-overlay-pane path,
#regions-map .leaflet-overlay-pane path {
  filter: drop-shadow(0 1px 2px rgba(42,8,20,0.22));
}

/* Style the zoom controls to match the site palette */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 2px 12px rgba(74,14,43,0.2) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background: #fffdf8 !important;
  color: var(--burgundy) !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
}

.leaflet-bar a:hover {
  background: var(--cream) !important;
  color: var(--burgundy-deep) !important;
}

.leaflet-bar a:last-child { border-bottom: none !important; }

.leaflet-control-attribution {
  background: rgba(255,253,248,0.75) !important;
  font-size: 0.65rem !important;
  color: #888 !important;
  border-radius: 6px 0 0 0 !important;
  backdrop-filter: blur(4px);
}

.leaflet-popup-content-wrapper {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(74,14,43,0.2);
}

.leaflet-popup-content {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text);
  font-size: 1rem;
}

.leaflet-popup-tip { background: var(--cream); }

/* Tooltip — shown on hover over a country or AOC polygon */
.map-tooltip {
  background: rgba(42, 8, 20, 0.88);
  color: #f5f0e8;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(74,14,43,0.35);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.map-tooltip::before { display: none; }

/* Permanent appellation labels drawn on the region detail map (cartographic style) */
.aoc-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #2a0814;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  /* Crisp white knockout outline (tight 1px ring) plus a soft glow so the
     names read cleanly over any appellation fill — standard map cartography. */
  text-shadow:
    -1px -1px 0 #fffdf8, 1px -1px 0 #fffdf8,
    -1px  1px 0 #fffdf8, 1px  1px 0 #fffdf8,
     0    0   4px #fffdf8, 0 0 7px rgba(255,253,248,0.9);
  pointer-events: none;
}

/* Winery location dot (curated producers with coordinates) */
.winery-pin { background: none; border: none; }
.winery-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #C9A24B;
  border: 2px solid #fffdf8;
  box-shadow: 0 0 0 1px rgba(107, 45, 62, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease;
}
.winery-pin:hover .winery-pin-dot { transform: scale(1.3); }
.winery-pin--link { cursor: pointer; }
.winery-pin--link:hover .winery-pin-dot { transform: scale(1.45); background: #6B2D3E; }

/* Atlas-plate title cartouche (top-right of detail maps) */
.map-cartouche {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem 0.55rem;
  box-shadow: 0 4px 16px rgba(74, 14, 43, 0.18);
  text-align: center;
  backdrop-filter: blur(4px);
  /* Hairline double-rule frame for an engraved, printed-plate feel */
  outline: 1px solid rgba(74, 14, 43, 0.25);
  outline-offset: 3px;
}

.map-cartouche-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--burgundy-deep);
  line-height: 1.1;
}

.map-cartouche-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-top: 0.2rem;
}

/* Appellation colour-family legend */
.map-legend {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 4px 16px rgba(74, 14, 43, 0.18);
  font-family: 'EB Garamond', Georgia, serif;
  backdrop-filter: blur(4px);
  line-height: 1.45;
}

.map-legend-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}

.map-legend-row {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text);
}

.map-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════
   PAIRINGS
═══════════════════════════════════════════ */
.pairing-panel {
  max-width: 760px;
  margin: 0 auto;
}

.pairing-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  margin-bottom: 1.25rem;
}

.pairing-mode {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pairing-mode:hover { color: var(--burgundy); }

.pairing-mode.active {
  background: var(--burgundy);
  color: var(--cream);
}

.pairing-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.pairing-autocomplete {
  position: relative;
  flex: 1;
}

.pairing-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pairing-input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(107, 45, 62, 0.12);
}

.pairing-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(74, 14, 43, 0.12);
  z-index: 50;
  overflow: hidden;
}

.pairing-suggestion {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.pairing-suggestion:hover {
  background: var(--cream);
  color: var(--burgundy);
}

.pairing-go {
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--cream);
  background: var(--burgundy);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.pairing-go:hover:not(:disabled) { background: var(--burgundy-mid); }
.pairing-go:disabled { opacity: 0.6; cursor: default; }

.pairing-result { margin-top: 1.75rem; }

.pairing-loading {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 1rem;
}

.pairing-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pairing-card-head {
  background: var(--burgundy);
  color: var(--cream);
  padding: 1.1rem 1.5rem;
}

.pairing-card-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.pairing-card-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
}

.pairing-card-body {
  padding: 1.25rem 1.5rem;
}

.pairing-error {
  background: #fbeaea;
  border: 1px solid #e0b4b4;
  color: #8a2b2b;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.pairing-error code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}

.pairing-error-detail {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .pairing-toggle { flex-direction: column; }
  .pairing-input-row { flex-direction: column; }
}

/* ── Compare (grapes / regions side by side) ────────────── */
.compare-panel { max-width: 860px; margin: 0 auto; }
.compare-toggle {
  display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 1.25rem;
}
.compare-mode {
  flex: 0 1 auto; background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.65rem 1.2rem; font-size: 0.92rem;
  font-weight: 600; color: var(--text-light); cursor: pointer; transition: all 0.16s ease;
}
.compare-mode:hover { border-color: var(--burgundy); }
.compare-mode.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.compare-pickers {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: center;
}
.compare-select {
  flex: 1 1 220px; min-width: 0; padding: 0.75rem 0.9rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem; background: #fff; color: var(--ink, #2b2b2b);
}
.compare-select:focus { outline: none; border-color: var(--burgundy); }
.compare-pickers-vs { font-style: italic; color: var(--text-light); font-size: 0.9rem; }
.compare-go {
  flex: 0 0 auto; background: var(--burgundy); color: var(--cream); border: none;
  border-radius: 10px; padding: 0.75rem 1.5rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s ease;
}
.compare-go:hover { background: var(--burgundy-deep); }
.compare-result { margin-top: 1.75rem; }
.compare-empty { text-align: center; color: var(--text-light); font-style: italic; padding: 1.5rem 0; }
.compare-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem 1.6rem; box-shadow: 0 3px 14px rgba(0,0,0,0.06);
}
.compare-head {
  display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--gold, #C4A07A);
}
.compare-head-col { flex: 1 1 0; text-align: center; cursor: pointer; text-decoration: none; }
.compare-head-col h3 { margin: 0.25rem 0 0; color: var(--burgundy-deep); font-size: 1.3rem; }
.compare-head-col:hover h3 { text-decoration: underline; }
.compare-head-eyebrow {
  display: inline-block; font-size: 0.66rem; letter-spacing: 1.5px; font-weight: 700;
  color: var(--burgundy); text-transform: uppercase;
}
.compare-vs {
  flex: 0 0 auto; font-style: italic; color: var(--text-light); font-size: 0.95rem;
  align-self: center;
}
.compare-table { margin-top: 0.5rem; }
.compare-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f1ece3;
}
.compare-key {
  text-align: center; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  color: #999; font-weight: 700; white-space: nowrap;
}
.compare-cell { font-size: 0.95rem; color: var(--ink, #2b2b2b); }
.compare-cell:first-child { text-align: right; }
.compare-cell:last-child { text-align: left; }
.compare-dash { color: #c4bcb0; }
.compare-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.compare-cell:first-child .compare-tags { justify-content: flex-end; }
.compare-tag {
  background: var(--cream); border: 1px solid var(--border); border-radius: 20px;
  padding: 2px 10px; font-size: 0.76rem; color: #6a5a4a;
}
.compare-tag.is-shared { background: var(--gold, #C4A07A); border-color: var(--gold, #C4A07A); color: #fff; font-weight: 600; }
.compare-shared-note { text-align: center; font-size: 0.8rem; color: var(--text-light); margin: 0.9rem 0 0; }
.compare-desc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.4rem;
  padding-top: 1.2rem; border-top: 1px solid #f1ece3;
}
.compare-desc-col h4 { margin: 0 0 0.5rem; color: var(--burgundy); font-size: 0.95rem; }
.compare-desc-col .detail-description { font-size: 0.9rem; }
.compare-actions { margin-top: 1.4rem; text-align: center; }
.compare-share {
  background: none; border: 1.5px solid var(--burgundy); color: var(--burgundy);
  border-radius: 10px; padding: 0.6rem 1.3rem; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all 0.16s ease;
}
.compare-share:hover { background: var(--burgundy); color: var(--cream); }
@media (max-width: 600px) {
  .compare-toggle { flex-wrap: wrap; }
  .compare-pickers { flex-direction: column; align-items: stretch; }
  .compare-pickers-vs { text-align: center; }
  .compare-go { width: 100%; }
  .compare-desc { grid-template-columns: 1fr; gap: 1rem; }
  .compare-card { padding: 1.2rem 1rem; }
  .compare-head-col h3 { font-size: 1.1rem; }
}

/* ── Hero newsletter CTA ────────────────────────────────── */
.hero-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.hero-cta > span {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream);
  opacity: 0.92;
}
.hero-cta-btn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--burgundy-deep);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.hero-cta-btn:hover { background: #d8b88f; transform: translateY(-1px); }

/* Inline newsletter signup inside the hero (home page) — compact.
   The footer form uses `flex:1 1 340px` for a horizontal row; here the hero
   stacks it in a column, so that basis would become a HEIGHT and balloon the
   form. Override flex + alignment so it stays a thin single-line bar. */
.hero-cta { flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.hero-cta > span { font-size: 0.92rem; }
.hero-signup-form {
  flex: 0 0 auto;
  width: 100%;
  max-width: 380px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.hero-signup-form .signup-input {
  flex: 1 1 auto;
  width: auto;
  height: 38px;
  font-size: 0.9rem;
  padding: 0 0.85rem;
  border-radius: 6px;
}
.hero-signup-form .signup-btn {
  flex: 0 0 auto;
  height: 38px;
  font-size: 0.9rem;
  padding: 0 1.1rem;
  border-radius: 6px;
}
.hero-signup-form .signup-msg {
  flex-basis: 100%;
  text-align: center;
  color: var(--cream);
  font-size: 0.82rem;
}

/* ── Site footer + newsletter signup ────────────────────── */
.site-footer {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy));
  color: var(--cream);
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  width: 100%;
  flex-wrap: wrap;
}
.footer-signup-text { flex: 1 1 320px; }
.footer-signup-text h3 {
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.footer-signup-text p {
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 42ch;
}
.signup-form {
  flex: 1 1 340px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}
.signup-input {
  flex: 1 1 200px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(245,240,232,0.35);
  background: rgba(245,240,232,0.97);
  color: var(--text);
  outline: none;
}
.signup-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,160,122,0.35); }
.signup-btn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--burgundy-deep);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.signup-btn:hover:not(:disabled) { background: #d8b88f; transform: translateY(-1px); }
.signup-btn:disabled { opacity: 0.6; cursor: default; }
.signup-msg {
  flex-basis: 100%;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-style: italic;
}
.signup-msg.ok    { color: #bfe6c8; }
.signup-msg.error { color: #f4c2c2; }
.footer-credit {
  width: 100%;
  border-top: 1px solid rgba(245,240,232,0.18);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
}
.footer-credit-accent { color: var(--gold); }
.footer-credit-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .footer-signup { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   BOTTLE OF THE MONTH (F7)
═══════════════════════════════════════════ */
.wotm-article { max-width: 760px; margin: 0 auto; }
.wotm-eyebrow {
  font-family: 'EB Garamond', Georgia, serif;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; color: var(--gold-dark); margin-bottom: 0.6rem;
}
.wotm-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; line-height: 1.1; color: var(--burgundy); margin: 0 0 0.4rem;
}
.wotm-meta { color: var(--text-light); font-size: 1.05rem; margin-bottom: 0.8rem; }
.wotm-score {
  display: inline-block; font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem; font-weight: 700; color: var(--burgundy);
  background: var(--cream-dark); border-radius: 10px; padding: 0.3rem 0.9rem; margin-bottom: 1.2rem;
}
.wotm-score span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.wotm-hero-img {
  width: 100%; height: 340px; background-size: cover; background-position: center;
  border-radius: 12px; margin: 0.4rem 0 1.6rem; border: 1px solid var(--border);
}
.wotm-intro { font-size: 1.15rem; line-height: 1.7; color: var(--text); margin-bottom: 1.8rem; }
.wotm-block { margin-bottom: 1.8rem; }
.wotm-block h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: var(--burgundy); margin-bottom: 0.5rem;
}
.wotm-block p, .wotm-intro p { margin: 0 0 0.8rem; }
.wotm-buy {
  display: inline-block; font-family: 'EB Garamond', Georgia, serif; font-size: 1rem;
  padding: 0.7rem 1.5rem; border-radius: 8px; background: var(--gold); color: var(--burgundy-deep);
  border: 1px solid var(--gold); text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.wotm-buy:hover { background: #d8b88f; transform: translateY(-1px); }

/* Newsletter CTA on WOTM pages */
.wotm-cta {
  max-width: 760px; margin: 2.5rem auto; padding: 2rem;
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy));
  border-radius: 12px; color: var(--cream); text-align: center;
}
.wotm-cta h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: var(--cream); margin-bottom: 0.4rem; }
.wotm-cta p { color: rgba(245,240,232,0.85); margin-bottom: 1.2rem; }
.wotm-cta .signup-form { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.wotm-cta .signup-input { flex: 1 1 240px; max-width: 320px; padding: 0.7rem 1rem; border-radius: 8px;
  border: 1px solid rgba(245,240,232,0.35); background: rgba(245,240,232,0.97); color: var(--text); outline: none; }

/* Archive grid + cards */
.wotm-archive-teaser { max-width: 760px; margin: 2.5rem auto 0; }
.wotm-archive-teaser h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; color: var(--burgundy); margin-bottom: 1rem; }
.wotm-archive-all { display: inline-block; margin-top: 1.2rem; color: var(--burgundy); font-size: 0.95rem; text-decoration: underline; }
.wotm-archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem;
}
.wotm-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s;
}
.wotm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(74,14,43,0.12); }
.wotm-card-img { height: 150px; background-size: cover; background-position: center; }
.wotm-card-img--blank { background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light)); }
.wotm-card-body { padding: 0.9rem 1rem 1.1rem; }
.wotm-card-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark); margin-bottom: 0.3rem; }
.wotm-card-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: var(--burgundy); line-height: 1.2; }
.wotm-card-meta { color: var(--text-light); font-size: 0.85rem; margin-top: 0.2rem; }

.wotm-empty { max-width: 620px; margin: 2rem auto; text-align: center; }
.wotm-empty h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: var(--burgundy); margin-bottom: 0.5rem; }
.wotm-empty p { color: var(--text-light); margin-bottom: 1rem; }

@media (max-width: 600px) {
  .wotm-title { font-size: 1.8rem; }
  .wotm-hero-img { height: 220px; }
  .wotm-intro { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════
   F8 — TASTE QUIZ
═══════════════════════════════════════════ */
.quiz-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: var(--cream);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0 1rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(74, 14, 43, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quiz-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(74, 14, 43, 0.32); }
.quiz-banner-eyebrow {
  display: block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.quiz-banner h3 { font-size: 1.6rem; margin: 0 0 0.4rem; color: var(--cream); }
.quiz-banner p { margin: 0; opacity: 0.9; max-width: 42ch; }
.quiz-banner-btn {
  background: var(--gold); color: var(--burgundy-deep);
  border: none; border-radius: 999px; padding: 0.85rem 1.6rem;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease;
}
.quiz-banner-btn:hover { background: #d8b78c; }

.quiz-intro {
  max-width: 560px; margin: 3rem auto; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 3rem 2.5rem; box-shadow: 0 10px 30px rgba(107, 45, 62, 0.08);
}
.quiz-eyebrow {
  display: block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.6rem;
}
.quiz-intro h2 { font-size: 2rem; color: var(--burgundy-deep); margin: 0 0 0.8rem; }
.quiz-intro p { color: var(--text-light); margin: 0 0 1.8rem; }
.quiz-start-btn {
  background: var(--burgundy); color: var(--cream);
  border: none; border-radius: 999px; padding: 0.95rem 2rem;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s ease;
}
.quiz-start-btn:hover { background: var(--burgundy-deep); }

.quiz-card {
  max-width: 600px; margin: 2.5rem auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem; box-shadow: 0 10px 30px rgba(107, 45, 62, 0.08);
}
.quiz-progress {
  height: 6px; background: rgba(107, 45, 62, 0.12); border-radius: 999px;
  overflow: hidden; margin-bottom: 1.2rem;
}
.quiz-progress-bar {
  height: 100%; background: var(--gold); border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz-step-label {
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.6rem;
}
.quiz-q { font-size: 1.5rem; color: var(--burgundy-deep); margin: 0 0 0.4rem; }
.quiz-sub { color: var(--text-light); margin: 0 0 1.6rem; font-size: 0.95rem; }
.quiz-options { display: grid; gap: 0.8rem; }
.quiz-option {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--cream); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 1rem 1.2rem; font-size: 1rem; color: var(--text); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.quiz-option:hover {
  border-color: var(--burgundy); background: #fff; transform: translateY(-1px);
}
.quiz-option-emoji { font-size: 1.5rem; line-height: 1; }
.quiz-option-label { flex: 1; }
.quiz-back {
  margin-top: 1.4rem; background: none; border: none; color: var(--text-light);
  font-size: 0.9rem; cursor: pointer; padding: 0.3rem 0;
}
.quiz-back:hover { color: var(--burgundy); }

.quiz-loading { text-align: center; padding: 4rem 1rem; color: var(--text-light); }
.quiz-spinner {
  width: 40px; height: 40px; margin: 0 auto 1.2rem;
  border: 3px solid rgba(107, 45, 62, 0.15); border-top-color: var(--burgundy);
  border-radius: 50%; animation: quiz-spin 0.8s linear infinite;
}
@keyframes quiz-spin { to { transform: rotate(360deg); } }

.quiz-results { max-width: 720px; margin: 2rem auto; }
.quiz-results-head { text-align: center; margin-bottom: 2rem; }
.quiz-results-head h2 { font-size: 1.9rem; color: var(--burgundy-deep); margin: 0.3rem 0; }
.quiz-budget { color: var(--text-light); margin: 0.6rem 0 0; }
.quiz-section-title {
  font-size: 1.2rem; color: var(--burgundy); margin: 0 0 1rem;
  text-align: center;
}
.quiz-picks { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.quiz-pick {
  display: flex; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 18px rgba(107, 45, 62, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.quiz-pick:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(107, 45, 62, 0.14); }
.quiz-pick-band { width: 8px; flex-shrink: 0; background: var(--burgundy); }
.quiz-pick-band.band-red    { background: #7b2738; }
.quiz-pick-band.band-white  { background: #c9a86a; }
.quiz-pick-band.band-rosé   { background: #d98a9e; }
.quiz-pick-band.band-orange { background: #d98841; }
.quiz-pick-body { padding: 1.3rem 1.5rem; }
.quiz-pick-color {
  font-size: 0.68rem; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 0.2rem;
}
.quiz-pick-body h3 { margin: 0 0 0.4rem; color: var(--burgundy-deep); font-size: 1.25rem; }
.quiz-pick-why { margin: 0 0 0.7rem; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.quiz-pick-notes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.quiz-pick-notes span {
  font-size: 0.72rem; background: var(--cream); border: 1px solid var(--border);
  color: var(--text-light); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.quiz-pick-link { font-size: 0.85rem; font-weight: 600; color: var(--burgundy); }

.quiz-firstpick {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: var(--cream); border-radius: 14px; padding: 1.6rem 1.8rem;
  margin-bottom: 2rem; cursor: pointer;
  transition: transform 0.16s ease;
}
.quiz-firstpick:hover { transform: translateY(-2px); }
.quiz-firstpick-eyebrow {
  display: block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.quiz-firstpick h3 { margin: 0 0 0.4rem; color: var(--cream); font-size: 1.25rem; }
.quiz-firstpick p { margin: 0; opacity: 0.9; font-size: 0.92rem; }

.quiz-capture {
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem; text-align: center; margin-bottom: 1.5rem;
}
.quiz-capture h3 { margin: 0 0 0.5rem; color: var(--burgundy-deep); }
.quiz-capture p { margin: 0 0 1.3rem; color: var(--text-light); }
.quiz-email-form {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  max-width: 480px; margin: 0 auto;
}
.quiz-name-input, .quiz-email-input {
  flex: 1 1 160px; padding: 0.8rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem; background: #fff;
}
.quiz-name-input:focus, .quiz-email-input:focus { outline: none; border-color: var(--burgundy); }
.quiz-email-btn {
  flex: 0 0 auto; background: var(--burgundy); color: var(--cream);
  border: none; border-radius: 10px; padding: 0.8rem 1.5rem;
  font-weight: 600; cursor: pointer; transition: background 0.18s ease;
}
.quiz-email-btn:hover { background: var(--burgundy-deep); }
.quiz-email-btn:disabled { opacity: 0.6; cursor: default; }
.quiz-email-msg { flex-basis: 100%; font-size: 0.88rem; margin-top: 0.4rem; min-height: 1.1em; }
.quiz-email-msg.ok { color: #2e7d4f; }
.quiz-email-msg.error { color: #b3261e; }
/* Inline reuse on game results, profile & vintage pages. */
.inline-capture { margin-top: 1.75rem; margin-bottom: 0; }
.quiz-retake { text-align: center; }

/* Lead magnet — Vintage Cheat-Sheet CTA on the home page. */
.lead-magnet {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border: 1.5px solid var(--burgundy);
  box-shadow: 0 4px 18px rgba(125,53,72,0.12);
}
.lead-magnet-badge {
  display: inline-block; margin: 0 0 0.6rem;
  background: var(--gold, #C9A24B); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px;
}
.lead-magnet-again {
  background: none; border: none; color: var(--burgundy);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  margin-top: 0.9rem; text-decoration: underline; text-underline-offset: 2px;
}
.lead-magnet-again:hover { color: var(--burgundy-deep); }

@media (max-width: 600px) {
  .quiz-banner { padding: 1.6rem 1.5rem; }
  .quiz-banner h3 { font-size: 1.35rem; }
  .quiz-card, .quiz-intro { padding: 1.8rem 1.4rem; }
  .quiz-q { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════
   PUBLIC CELLAR — clickable cards + bottle detail
═══════════════════════════════════════════ */
.wine-card.clickable { cursor: pointer; }
.wine-card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(74, 14, 43, 0.22);
}

.bottle-detail-hero {
  border-radius: 16px;
  padding: 2.2rem 2.4rem;
  margin: 0.5rem 0 1.75rem;
  color: var(--cream);
  background: linear-gradient(160deg, #4a0e2b, #6B2D3E);
}
.bottle-detail-hero.band-white { background: linear-gradient(160deg, #7a5c28, #a8873a); }
.bottle-detail-hero.band-rosé  { background: linear-gradient(160deg, #6b2d47, #9b4d6b); }
.bottle-detail-hero .bottle-producer {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 0.5rem;
}
.bottle-detail-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; line-height: 1.15; margin: 0 0 0.6rem; color: var(--cream);
}
.bottle-detail-hero .bottle-sub { font-size: 0.98rem; opacity: 0.9; }

.bottle-detail-body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}
.bottle-facts {
  background: var(--cream-soft, #faf4ee);
  border: 1px solid rgba(107, 45, 62, 0.15);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
}
.bottle-facts h4 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.9rem; color: var(--burgundy-deep); font-size: 1.15rem;
}
.bottle-facts .sidebar-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(107, 45, 62, 0.1);
  font-size: 0.92rem;
}
.bottle-facts .sidebar-row:last-of-type { border-bottom: none; }
.bottle-facts .sidebar-row .key { color: var(--text-light); }
.bottle-facts .sidebar-row .val { color: var(--burgundy-deep); font-weight: 500; text-align: right; }
.bottle-notes {
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(107, 45, 62, 0.15);
}
.bottle-notes .key {
  color: var(--text-light); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.bottle-notes > div:last-child { color: var(--burgundy-deep); line-height: 1.5; font-size: 0.92rem; }

.bottle-ai {
  background: #fff;
  border: 1px solid rgba(107, 45, 62, 0.15);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  min-height: 120px;
}
.ai-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--burgundy-deep); margin-bottom: 0.8rem;
}
.ai-head .spark { color: var(--gold, #a8873a); }
.ai-loading {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-light); padding: 0.5rem 0;
}
.ai-loading .spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(107, 45, 62, 0.25);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  display: inline-block;
  animation: bottle-spin 0.8s linear infinite;
}
@keyframes bottle-spin { to { transform: rotate(360deg); } }
.ai-body { color: var(--burgundy-deep); line-height: 1.65; font-size: 0.96rem; }
.ai-body p { margin: 0 0 0.85rem; }
.ai-body p:last-child { margin-bottom: 0; }
.ai-sources {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(107, 45, 62, 0.12);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.ai-sources .key {
  color: var(--text-light); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem;
}
.ai-sources a { font-size: 0.88rem; color: var(--burgundy); }
.ai-disclaimer {
  margin-top: 1rem; font-size: 0.78rem; font-style: italic;
  color: var(--text-light); opacity: 0.85;
}
.ai-retry {
  margin-top: 0.6rem;
  background: var(--burgundy); color: var(--cream);
  border: none; border-radius: 8px;
  padding: 0.5rem 1rem; cursor: pointer; font-size: 0.88rem;
}
.ai-retry:hover { background: var(--burgundy-mid); }

.bottle-share {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: -1rem 0 1.75rem;
}
.share-btn {
  background: var(--burgundy); color: var(--cream);
  border: none; border-radius: 9px;
  padding: 0.6rem 1.15rem; cursor: pointer;
  font-size: 0.9rem; font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}
.share-btn:hover { background: var(--burgundy-mid); transform: translateY(-1px); }
.share-btn.ghost {
  background: transparent; color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.share-btn.ghost:hover { background: rgba(107, 45, 62, 0.08); color: var(--burgundy); }

@media (max-width: 720px) {
  .bottle-detail-body { grid-template-columns: 1fr; }
  .bottle-detail-hero { padding: 1.7rem 1.6rem; }
  .bottle-detail-hero h2 { font-size: 1.6rem; }
  .share-btn { flex: 1 1 auto; text-align: center; }
}

/* ═══════════════════════════════════════════
   WINE GAMES — hub
═══════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: #fff;
  border: 1.5px solid var(--burgundy);
  border-radius: 16px;
  padding: 1.9rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(74, 14, 43, 0.2);
}
.game-card-icon { font-size: 2.8rem; line-height: 1; margin-bottom: 0.7rem; }
.game-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-deep);
  font-size: 1.35rem; margin: 0.2rem 0 0.55rem;
}
.game-card p {
  color: var(--text-light);
  font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.1rem;
}
.game-card-badge {
  display: inline-block;
  background: var(--burgundy); color: var(--cream);
  border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 500;
}
.game-card.soon { opacity: 0.7; }
.game-card.soon:hover { transform: translateY(-2px); }
.game-card.soon .game-card-badge {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

/* ── A2: Site-wide search ─────────────────────────────────── */
.nav-search-link { font-size: 1rem !important; }

.search-box { margin: 0 auto 2rem; max-width: 620px; }
.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.2rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--burgundy-deep);
  background: #fff;
  border: 1.5px solid var(--burgundy);
  border-radius: 999px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.search-loading, .search-hint {
  text-align: center;
  color: var(--text-light);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}
.search-section { margin-bottom: 2rem; }
.search-section-title {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-deep);
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(74, 14, 43, 0.15);
  padding-bottom: 0.4rem;
}
.search-count {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--burgundy);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.search-list { display: flex; flex-direction: column; gap: 0.5rem; }
.search-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid rgba(74, 14, 43, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.search-result:hover {
  transform: translateX(3px);
  border-color: var(--burgundy);
  box-shadow: 0 6px 16px rgba(74, 14, 43, 0.12);
}
.search-result-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.search-result-text { display: flex; flex-direction: column; min-width: 0; }
.search-result-title {
  color: var(--burgundy-deep);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}
.search-more {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  padding-left: 0.3rem;
}

/* ── Shared game shell ── */
.game-head { text-align: center; margin: 0.5rem 0 1.75rem; }
.game-head h2 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-deep); font-size: 2rem; margin: 0 0 0.4rem;
}
.game-head p { color: var(--text-light); margin: 0; }

/* ── Flashcards ── */
.fc-loading { text-align: center; color: var(--text-light); padding: 3rem 0; }
.fc-decks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; max-width: 640px; margin: 0 auto;
}
.fc-deck {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  background: #fff; border: 1.5px solid var(--burgundy); border-radius: 14px;
  padding: 1.6rem 1rem; cursor: pointer; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fc-deck:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(74, 14, 43, 0.18); }
.fc-deck-icon { font-size: 2.4rem; }
.fc-deck-name {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--burgundy-deep);
}
.fc-deck small { color: var(--text-light); font-size: 0.82rem; }

.fc-progress { font-size: 0.9rem; color: var(--text-light); }
.fc-card {
  position: relative; max-width: 540px; margin: 0 auto;
  min-height: 320px; border-radius: 18px; cursor: pointer;
  border: 1.5px solid var(--burgundy);
  box-shadow: 0 14px 34px rgba(74, 14, 43, 0.16);
}
.fc-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.4rem 2rem; min-height: 320px; box-sizing: border-box;
}
.fc-card .fc-back { display: none; }
.fc-card.flipped .fc-front { display: none; }
.fc-card.flipped .fc-back { display: flex; }
.fc-front {
  background: linear-gradient(150deg, var(--burgundy-deep), var(--burgundy)); color: var(--cream);
  border-radius: 18px;
}
.fc-back { background: #fff; border-radius: 18px; justify-content: flex-start; }
.fc-kind {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 0.8rem;
}
.fc-back .fc-kind { color: var(--text-light); opacity: 1; }
.fc-term { font-family: 'Playfair Display', serif; font-size: 2.1rem; line-height: 1.15; }
.fc-hint { margin-top: 1.4rem; font-size: 0.82rem; opacity: 0.75; }
.fc-facts { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.fc-fact {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid rgba(107, 45, 62, 0.12); padding-bottom: 0.45rem;
  text-align: left;
}
.fc-fact .k { color: var(--text-light); font-size: 0.85rem; }
.fc-fact .v { color: var(--burgundy-deep); font-weight: 500; text-align: right; }
.fc-blurb {
  margin: 1rem 0 0; color: var(--burgundy-deep); font-size: 0.92rem;
  line-height: 1.55; font-style: italic; opacity: 0.9;
}
.fc-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.fc-btn {
  border: none; border-radius: 10px; padding: 0.7rem 1.5rem;
  font-size: 0.95rem; font-family: inherit; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.fc-btn:hover { transform: translateY(-1px); }
.fc-btn.flip { background: var(--burgundy); color: var(--cream); }
.fc-btn.flip:hover { background: var(--burgundy-mid); }
.fc-btn.got { background: #2e7d4f; color: #fff; }
.fc-btn.got:hover { background: #276a43; }
.fc-btn.again { background: transparent; color: var(--burgundy); border: 1.5px solid var(--burgundy); }
.fc-btn.again:hover { background: rgba(107, 45, 62, 0.08); }

.fc-done { text-align: center; padding: 2.5rem 1rem; }
.fc-done-icon { font-size: 3rem; }
.fc-done h2 { font-family: 'Playfair Display', serif; color: var(--burgundy-deep); margin: 0.5rem 0; }
.fc-done p { color: var(--text-light); }
.fc-done-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

@media (max-width: 600px) {
  .fc-term { font-size: 1.7rem; }
  .fc-card, .fc-face { min-height: 280px; }
}

/* ────────────────────────────────────────────────────────
   WINE WORDLE
   ──────────────────────────────────────────────────────── */
.wd-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin: 1.6rem 0 0.8rem;
}
.wd-row { display: flex; gap: 6px; }
.wd-row.shake { animation: wd-shake 0.5s; }
@keyframes wd-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
.wd-tile {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d9cdbb;
  border-radius: 6px;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
  transition: transform 0.1s ease;
}
.wd-tile.filled { border-color: #9c8e78; }
.wd-tile.correct { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.wd-tile.present { background: #c9a227; border-color: #c9a227; color: #fff; }
.wd-tile.absent  { background: #8a8a8a; border-color: #8a8a8a; color: #fff; }

.wd-msg {
  text-align: center;
  min-height: 1.4rem;
  color: var(--burgundy-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.wd-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 0.5rem;
}
.wd-krow { display: flex; gap: 6px; justify-content: center; }
.wd-key {
  min-width: 34px;
  height: 52px;
  padding: 0 0.5rem;
  border: none;
  border-radius: 6px;
  background: #e6dccd;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.wd-key:hover { transform: translateY(-1px); }
.wd-key.wide { min-width: 56px; font-size: 0.8rem; }
.wd-key.correct { background: #2e7d4f; color: #fff; }
.wd-key.present { background: #c9a227; color: #fff; }
.wd-key.absent  { background: #8a8a8a; color: #fff; }

.wd-result { text-align: center; margin-top: 1.4rem; }
.wd-result-msg {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--burgundy-deep);
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .wd-tile { width: 48px; height: 48px; font-size: 1.5rem; }
  .wd-key { min-width: 28px; height: 48px; padding: 0 0.3rem; }
  .wd-key.wide { min-width: 46px; }
}

/* ────────────────────────────────────────────────────────
   WINE CROSSWORD
   ──────────────────────────────────────────────────────── */
.cw-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1.2rem;
}
.cw-grid {
  --cw-size: 38px;
  display: grid;
  gap: 2px;
  background: var(--burgundy-deep);
  padding: 2px;
  border-radius: 6px;
}
.cw-cell {
  width: var(--cw-size);
  height: var(--cw-size);
  position: relative;
  background: #fff;
}
.cw-cell.cw-block { background: transparent; }
.cw-cell.cw-active { background: #f3e6c4; }
.cw-num {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-light);
  pointer-events: none;
}
.cw-cell input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  caret-color: var(--burgundy);
  padding: 0;
}
.cw-cell input:focus { outline: 2px solid var(--burgundy); outline-offset: -2px; }
.cw-cell input.cw-right { color: #2e7d4f; }
.cw-cell input.cw-wrong { color: #c0392b; }

.cw-clues { display: flex; gap: 1.6rem; flex-wrap: wrap; max-width: 540px; }
.cw-cluelist { min-width: 200px; flex: 1; }
.cw-cluelist h3 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-deep);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.cw-cluelist ul { list-style: none; padding: 0; margin: 0; }
.cw-cluelist li {
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}
.cw-cluelist li:hover { background: #f3ece0; }
.cw-len { color: var(--text-light); font-size: 0.8rem; }

.cw-msg {
  text-align: center;
  min-height: 1.4rem;
  color: var(--burgundy-deep);
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}
.cw-actions { margin-top: 0.6rem; }

@media (max-width: 600px) {
  .cw-grid { --cw-size: 30px; }
  .cw-cell input { font-size: 0.9rem; }
  .cw-num { font-size: 0.45rem; }
  .cw-cluelist { min-width: 100%; }
}

/* ────────────────────────────────────────────────────────
   MAP GAME
   ──────────────────────────────────────────────────────── */
.mg-status {
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  margin: 0.4rem 0 1rem;
}
.mg-map {
  height: 460px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0d4c2;
  cursor: crosshair;
}
.mg-panel { text-align: center; margin-top: 1.2rem; }
.mg-prompt {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--burgundy-deep);
  margin-bottom: 1rem;
}
.mg-country { color: var(--text-light); font-size: 1rem; font-family: 'EB Garamond', serif; }
.mg-hint { color: var(--text-light); font-size: 0.9rem; margin-top: 0.6rem; }
.mg-result-msg {
  font-size: 1.15rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.6rem;
}
.mg-blurb {
  max-width: 560px;
  margin: 0 auto 1.1rem;
  color: var(--text);
  line-height: 1.5;
}
.mg-answer-label {
  background: var(--burgundy-deep);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: none;
}
.mg-answer-label::before { display: none; }

@media (max-width: 600px) {
  .mg-map { height: 360px; }
  .mg-prompt { font-size: 1.2rem; }
}

/* ── Guess the Wine (D6) ──────────────────────────── */
.gw-loading, .gw-empty {
  text-align: center;
  color: var(--text-light);
  padding: 2rem 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
}
.gw-card {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  padding: 1.5rem 1.6rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e6ddd4);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  text-align: center;
}
.gw-clue-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.gw-color {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--burgundy, #6B2D3E);
  margin-bottom: 0.75rem;
}
.gw-notes {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text, #2a2a2a);
}
.gw-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.gw-traits span {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  background: rgba(107,45,62,0.08);
  color: var(--burgundy, #6B2D3E);
  border-radius: 999px;
}
.gw-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 32rem;
  margin: 0 auto;
}
.gw-option {
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  font-family: 'EB Garamond', serif;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e6ddd4);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.gw-option:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--burgundy, #6B2D3E); }
.gw-option:disabled { cursor: default; opacity: 0.85; }
.gw-option.gw-correct {
  background: #e8f3e8;
  border-color: #4a8c4a;
  color: #2f6b2f;
  font-weight: 600;
}
.gw-option.gw-wrong {
  background: #f7e8e8;
  border-color: #b35454;
  color: #8c3030;
}
.gw-reveal { text-align: center; margin-top: 1.25rem; }
.gw-verdict {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.gw-verdict.ok { color: #2f6b2f; }
.gw-verdict.no { color: var(--burgundy, #6B2D3E); }
.gw-desc {
  max-width: 32rem;
  margin: 0 auto 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}
.gw-final { text-align: center; padding-top: 1rem; }
.gw-final-score {
  font-family: 'EB Garamond', serif;
  font-size: 2.6rem;
  color: var(--burgundy, #6B2D3E);
  margin-bottom: 0.4rem;
}
@media (max-width: 600px) {
  .gw-options { grid-template-columns: 1fr; }
}

/* ── Higher or Lower (D7) ──────────────────────────── */
.hl-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 30rem;
  margin: 0 auto 1.5rem;
}
.hl-metric-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.3rem 1rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e6ddd4);
  border-radius: 14px;
  cursor: pointer;
  font-family: 'EB Garamond', serif;
  transition: transform 0.12s, border-color 0.12s;
}
.hl-metric-btn:hover { transform: translateY(-2px); border-color: var(--burgundy, #6B2D3E); }
.hl-metric-icon { font-size: 1.8rem; }
.hl-metric-name { font-size: 1.2rem; color: var(--burgundy, #6B2D3E); }
.hl-metric-best { font-size: 0.8rem; color: var(--text-light); }

.hl-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}
.hl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e6ddd4);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.hl-wine { min-height: 3.4rem; display: flex; flex-direction: column; justify-content: center; }
.hl-wine-top {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text-dark, #2b2b2b);
}
.hl-wine-yr { color: var(--text-light); font-weight: 400; }
.hl-wine-sub {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}
.hl-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--gold-dark);
  margin-top: 0.9rem;
}
.hl-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--burgundy, #6B2D3E);
  margin-top: 0.25rem;
}
.hl-value.hl-q { color: var(--text-light); }
.hl-vs {
  align-self: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
}
.hl-buttons { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; width: 100%; }
.hl-btn {
  padding: 0.7rem 1rem;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  background: var(--burgundy-deep, #6B2D3E);
  color: #f7efe6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}
.hl-btn:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.92; }
.hl-btn:disabled { opacity: 0.55; cursor: default; }
.hl-reveal { text-align: center; margin-top: 1.5rem; }
.hl-final-best {
  font-family: 'EB Garamond', serif;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .hl-board { grid-template-columns: 1fr; }
  .hl-vs { padding: 0.2rem 0; }
}

/* ── B2: Vintage chart (drink/hold guidance) ───────────────────── */
.vc-intro {
  font-family: 'EB Garamond', serif;
  color: var(--text-light);
  margin: 0.25rem 0 0.9rem;
  max-width: 60ch;
}
.vc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.vc-key {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border-left: 4px solid transparent;
}
.vc-chart { display: flex; flex-direction: column; gap: 0.55rem; }
.vc-row {
  display: grid;
  grid-template-columns: 56px 1fr 116px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-left: 5px solid var(--burgundy-deep, #6B2D3E);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vc-year {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--burgundy-deep, #6B2D3E);
}
.vc-row[onclick]:hover {
  box-shadow: 0 4px 14px rgba(74,14,43,0.18);
  transform: translateY(-1px);
}
.vc-written {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 2px;
}
.vc-bar-track {
  position: relative;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
}
.vc-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--burgundy-deep, #6B2D3E);
  transition: width 0.4s ease;
}
.vc-score {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text, #2b2b2b);
}
.vc-status {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
}
.vc-note {
  grid-column: 1 / -1;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.1rem;
}
/* Status colour coding */
.vc-hold   { border-left-color: #8E2D3E; }
.vc-hold   .vc-bar { background: #8E2D3E; }
.vc-window { border-left-color: #C9A24B; }
.vc-window .vc-bar { background: #C9A24B; }
.vc-drink  { border-left-color: #4F7A4C; }
.vc-drink  .vc-bar { background: #4F7A4C; }
.vc-past   { border-left-color: #9a9a9a; }
.vc-past   .vc-bar { background: #9a9a9a; }
/* status pill + legend key fills */
.vc-status.vc-hold,   .vc-key.vc-hold   { background: rgba(142,45,62,0.12);  color: #8E2D3E; border-left-color: #8E2D3E; }
.vc-status.vc-window, .vc-key.vc-window { background: rgba(201,162,75,0.16);  color: #8a6d20; border-left-color: #C9A24B; }
.vc-status.vc-drink,  .vc-key.vc-drink  { background: rgba(79,122,76,0.14);   color: #3f6a3c; border-left-color: #4F7A4C; }
.vc-status.vc-past,   .vc-key.vc-past   { background: rgba(154,154,154,0.16); color: #6f6f6f; border-left-color: #9a9a9a; }
@media (max-width: 600px) {
  .vc-row { grid-template-columns: 44px 1fr 92px; gap: 0.5rem; padding: 0.55rem 0.6rem; }
  .vc-year { font-size: 1.05rem; }
  .vc-status { font-size: 0.72rem; padding: 0.25rem 0.3rem; }
}

/* ─── Site-wide newsletter prompt ─────────────────────────── */
.signup-pop {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1200;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 14px 40px rgba(74,14,43,0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.signup-pop.show { opacity: 1; transform: translateY(0); }
.signup-pop h3 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy-deep);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  padding-right: 1.5rem;
}
.signup-pop p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
}
.signup-pop-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.signup-pop-close:hover { color: var(--burgundy-deep); background: rgba(107,45,62,0.08); }
@media (max-width: 600px) {
  .signup-pop {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    padding: 1.2rem 1.1rem 1rem;
  }
}

/* ── I4: Wine glossary ───────────────────────── */
.gloss-tools { margin-bottom: 1rem; }
.gloss-filter {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.gloss-filter:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(196,160,122,0.25);
}
.gloss-az {
  position: sticky;
  top: 64px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.gloss-jump {
  min-width: 1.9rem;
  padding: 0.3rem 0.1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--burgundy);
  cursor: pointer;
}
.gloss-jump:hover { background: rgba(196,160,122,0.25); }
.gloss-jump.is-empty { color: var(--gold); opacity: 0.45; cursor: default; }
.gloss-group { margin-bottom: 2rem; }
.gloss-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.3rem;
  margin: 0 0 0.9rem;
  scroll-margin-top: 120px;
}
.gloss-term {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  scroll-margin-top: 130px;
  transition: background 0.4s ease;
}
.gloss-name {
  display: block;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.gloss-def { display: block; color: var(--text); line-height: 1.55; }
.gloss-term.is-target { background: rgba(196,160,122,0.28); }
.gloss-empty { color: var(--text-light); padding: 1.5rem 0; font-style: italic; }
@media (max-width: 600px) {
  .gloss-az { top: 56px; }
  .gloss-jump { min-width: 1.6rem; font-size: 0.82rem; }
}

/* ── I5: "Best Of" collections ───────────────── */
.best-section { margin-bottom: 2.5rem; }
.best-section-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 0 0 1.2rem;
}
.best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.best-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.best-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,45,62,0.12);
  border-color: var(--gold);
}
.best-card-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.best-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--burgundy);
  margin: 0 0 0.3rem;
}
.best-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.45; margin: 0; }
.best-card-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.best-back { margin-bottom: 1.25rem; }
.best-back a { color: var(--burgundy); text-decoration: none; font-weight: 600; }
.best-back a:hover { text-decoration: underline; }
.best-cta { margin-top: 2rem; }

/* Best-vintages ranked list */
.best-vintage-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.best-vintage-row {
  display: grid;
  grid-template-columns: 2rem 3.5rem 4.5rem auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.best-vintage-row:hover { border-color: var(--gold); transform: translateX(2px); }
.best-vintage-rank {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold-dark);
  text-align: center;
}
.best-vintage-year { font-weight: 700; color: var(--burgundy); font-size: 1.05rem; }
.best-vintage-score { font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.best-vintage-score small { color: var(--text-light); font-weight: 400; }
.best-vintage-note { color: var(--text); font-size: 0.9rem; }
@media (max-width: 600px) {
  .best-vintage-row {
    grid-template-columns: 1.6rem 3rem auto;
    row-gap: 0.3rem;
  }
  .best-vintage-note { grid-column: 1 / -1; }
}

/* Daily Challenge */
.daily-streaks {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.25rem 0 1.5rem;
}
.daily-streak {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.daily-streak-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.daily-streak-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
.daily-done-note {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin: 0.75rem 0 0;
}

