/* ═══════════════════════════════════════════════════════════
   VinVeritas — Shared Stylesheet
   Covers: index.html · search.php · all future pages
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── DESIGN TOKENS ─── */
:root {
  --burgundy-deep:   #2A0A10;
  --burgundy-mid:    #5C1A28;
  --burgundy-bright: #8B2D3F;
  --burgundy-light:  #B85A6A;
  --gold:            #C9A84C;
  --gold-light:      #E4C97A;
  --cream:           #F5F0E8;
  --cream-warm:      #EDE6D6;
  --cream-muted:     #C8BFA8;
  --ink:             #1A1008;
  --ink-soft:        #3D2B1F;
  --text-muted:      #7A6B5A;
  /* Safety tiers — bright (UI indicators) */
  --safe:    #4ADE80;
  --caution: #FBBF24;
  --flagged: #F87171;
  /* Safety tiers — dark (semantic / DB use) */
  --safe-green:    #2D6A4F;
  --caution-amber: #B45309;
  --flagged-red:   #991B1B;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE (landing page only) ─── */
body.has-noise::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
}

/* ─── NAV (shared base) ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  background: rgba(26,16,8,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Landing page override — fixed nav */
nav.nav--fixed {
  position: fixed;
  left: 0; right: 0;
  background: rgba(26,16,8,0.82);
  border-bottom-color: rgba(201,168,76,0.12);
}

.nav-logo {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
}

.nav-logo span {
  color: var(--cream-muted);
  font-weight: 300;
  font-style: italic;
}

/* Landing page nav links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }

/* Search page back link */
.nav-back {
  font-size: 0.8rem;
  color: var(--cream-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--gold-light); }

/* ─── SHARED COMPONENTS ─── */

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Gold gradient divider */
.rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
}

/* Primary button (gold CTA) */
.btn-primary {
  background: var(--gold);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--gold-light); }

/* Shared form input field */
.field-input {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  width: 100%;
}

.field-input::placeholder { color: var(--text-muted); }
.field-input.error { border-color: rgba(248,113,113,0.7); }

/* Score badge pill */
.score-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.score-badge.safe    { background: rgba(74,222,128,0.1);  color: #4ADE80; border: 1px solid rgba(74,222,128,0.25); }
.score-badge.caution { background: rgba(251,191,36,0.1);  color: #FBBF24; border: 1px solid rgba(251,191,36,0.25); }
.score-badge.flagged { background: rgba(248,113,113,0.1); color: #F87171; border: 1px solid rgba(248,113,113,0.25); }

/* Risk / additive badge */
.risk-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* Tier badge (certifications) */
.tier-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.25);
}

/* Score circle (result cards) */
.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  flex-shrink: 0;
}

.score-circle .num {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.score-circle .lbl {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Score circle — large (wine detail) */
.score-big {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  flex-shrink: 0;
}

.score-big .num {
  font-family: 'Cormorant Garant', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
}

.score-big .lbl {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════
   LANDING PAGE STYLES  (index.html)
   ════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-bg-circle.c1 {
  width: 600px; height: 600px;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(92,26,40,0.55) 0%, transparent 70%);
}

.hero-bg-circle.c2 {
  width: 400px; height: 400px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(42,10,16,0.8) 0%, transparent 70%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

.hero h1 {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 820px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s 0.1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
  animation: fadeUp 1s 0.2s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  animation: fadeUp 1.2s 0.4s ease forwards;
  opacity: 0;
}

/* Waitlist form (landing page) */
.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  width: 100%;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  overflow: hidden;
  animation: fadeUp 1.1s 0.3s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.waitlist-form input[type="email"] {
  flex: 1;
  background: rgba(245,240,232,0.06);
  border: none;
  outline: none;
  padding: 0.9rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--cream);
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder { color: var(--text-muted); }

.waitlist-form button {
  background: var(--gold);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist-form button:hover { background: var(--gold-light); }

/* Sections */
.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.section-title em { font-style: italic; color: var(--gold-light); }

.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream-muted);
  max-width: 480px;
  line-height: 1.8;
}

/* Score preview cards (landing page) */
.scores-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  overflow: hidden;
}

.score-card {
  padding: 2.5rem 2rem;
  background: rgba(42,10,16,0.5);
  text-align: center;
  transition: background 0.25s;
}

.score-card:hover { background: rgba(92,26,40,0.35); }
.score-card + .score-card { border-left: 1px solid rgba(201,168,76,0.12); }

.score-number {
  font-family: 'Cormorant Garant', serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-number.safe    { color: #4ADE80; }
.score-number.caution { color: #FBBF24; }
.score-number.flagged { color: #F87171; }

.score-wine-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.score-wine-detail {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.score-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 1.25rem;
}

.score-pill {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(245,240,232,0.12);
  color: var(--cream-muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4rem;
}

.feature-cell {
  padding: 2.5rem;
  background: rgba(26,16,8,0.6);
  transition: background 0.25s;
}

.feature-cell:hover { background: rgba(92,26,40,0.2); }
.feature-cell:nth-child(1), .feature-cell:nth-child(2) { border-bottom: 1px solid rgba(201,168,76,0.1); }
.feature-cell:nth-child(odd) { border-right: 1px solid rgba(201,168,76,0.1); }

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.feature-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Data / stats section */
.data-section {
  background: rgba(42,10,16,0.4);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 6rem 2rem;
}

.data-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.data-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* Certification hierarchy (landing page) */
.cert-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.1rem;
  border-radius: 5px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(42,10,16,0.4);
  transition: border-color 0.2s;
}

.cert-item:hover { border-color: rgba(201,168,76,0.3); }

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cert-dot.biodynamic  { background: #4ADE80; }
.cert-dot.organic     { background: #34D399; }
.cert-dot.sustainable { background: #FBBF24; }
.cert-dot.natural     { background: var(--cream-muted); }

.cert-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cream);
  flex: 1;
}

.cert-tier {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(92,26,40,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.cta-section h2 em { font-style: italic; color: var(--gold-light); }

.cta-section p {
  font-size: 0.95rem;
  color: var(--cream-muted);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Footer */
footer {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-logo span { color: var(--text-muted); font-weight: 300; font-style: italic; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}


/* ════════════════════════════════════════════════════════════
   SEARCH PAGE STYLES  (search.php)
   ════════════════════════════════════════════════════════════ */

.search-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(92,26,40,0.4) 0%, transparent 70%);
}

.search-hero h1 {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

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

.search-hero p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 4px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  background: rgba(245,240,232,0.06);
  border: none;
  outline: none;
  padding: 0.9rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--cream);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  background: var(--gold);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--gold-light); }

.container { max-width: 900px; margin: 0 auto; padding: 2rem; }

/* Results */
.results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.result-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
  background: rgba(42,10,16,0.4);
  margin-bottom: 1px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.result-card:hover {
  background: rgba(92,26,40,0.3);
  border-color: rgba(201,168,76,0.3);
}

.result-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.sub-scores { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.sub-pill {
  font-size: 0.65rem;
  font-weight: 400;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(245,240,232,0.12);
  color: var(--cream-muted);
  white-space: nowrap;
}

.result-arrow { font-size: 1.2rem; color: var(--text-muted); }

/* No results */
.no-results { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }

.no-results h3 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--cream-muted);
}

/* Wine detail */
.wine-detail { max-width: 760px; margin: 0 auto; padding: 2rem; }

.wine-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 2rem;
}

.wine-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.wine-producer { font-size: 0.9rem; color: var(--gold-light); margin-bottom: 0.5rem; }

.wine-meta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.wine-meta-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid rgba(245,240,232,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* Sub-score bars */
.sub-score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sub-score-name {
  font-size: 0.8rem;
  color: var(--cream-muted);
  width: 110px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(245,240,232,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill { height: 100%; border-radius: 100px; transition: width 0.6s ease; }

.sub-score-val {
  font-size: 0.8rem;
  color: var(--cream-muted);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* Detail sections */
.detail-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
  background: rgba(42,10,16,0.3);
}

.additive-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.additive-row:last-child { border-bottom: none; }

.risk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.additive-name { font-size: 0.9rem; color: var(--cream); flex: 1; }

.additive-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Certifications (search page) */
.cert-detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.cert-detail-row:last-child { border-bottom: none; }

/* Flags */
.flag-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.flag-row:last-child { border-bottom: none; }

.flag-title { font-size: 0.9rem; color: var(--flagged); margin-bottom: 0.3rem; }

.flag-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* Data sources */
.source-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.source-type {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 120px;
  flex-shrink: 0;
}

.source-link { color: var(--cream-muted); text-decoration: none; }
.source-link:hover { color: var(--gold-light); }


/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .scores-row { grid-template-columns: 1fr; }
  .score-card + .score-card { border-left: none; border-top: 1px solid rgba(201,168,76,0.12); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell:nth-child(odd) { border-right: none; }
  .feature-cell:nth-child(1), .feature-cell:nth-child(2), .feature-cell:nth-child(3) { border-bottom: 1px solid rgba(201,168,76,0.1); }
  .data-inner { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 640px) {
  .result-card { grid-template-columns: 64px 1fr; }
  .result-arrow { display: none; }
  .wine-header { grid-template-columns: 80px 1fr; }
}
