/* Global Wine&Spirits Awards — App Layout & Components */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

/* Nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid rgba(251,250,248,0.08);
}
.site-nav.scrolled {
  background: rgba(20,16,14,0.96);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  border-bottom-color: rgba(251,250,248,0.06);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand img { height: 38px; width: auto; }
.brand span { max-width: 160px; line-height: 1.15; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-search-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-search-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav-wrap {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(20,16,14,0.98);
    padding: 1rem 0 2rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    overflow-y: auto;
  }
  .nav-wrap.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 0.2rem; width: 88%; }
  .nav-links a { width: 100%; text-align: center; padding: 1rem; font-size: 0.95rem; }
  .nav-actions { width: 88%; justify-content: center; margin-top: 0.8rem; }
  .nav-search-btn { width: 100%; padding: 1rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 0 4.5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(107,21,36,0.45), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(176,141,87,0.18), transparent 30%),
    linear-gradient(150deg, var(--gwa-ink) 0%, #1f1814 55%, #2e2420 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0' stroke='%23B08D57' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
  color: var(--gwa-gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gwa-gold-400);
}
.hero-lead {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Hero search */
.hero-search {
  background: rgba(20,16,14,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 880px;
  margin-bottom: 1.4rem;
}
.hero-search .field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero-search label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  padding-left: 0.2rem;
}
.hero-search select,
.hero-search input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}
.hero-search select option { background: #1f1814; color: #fff; }
.hero-search select:focus,
.hero-search input:focus { border-color: var(--gwa-gold); background: rgba(255,255,255,0.1); }
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search .action {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}
.hero-search .btn { height: 46px; padding: 0 1.6rem; }

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.6rem;
}
.hero-quick a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  transition: background .2s, border-color .2s;
}
.hero-quick a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.hero-quick img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gwa-gold);
  line-height: 1;
}
.hero-stats .stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: #fff; }
.section.muted { background: var(--gwa-paper-200); }
.section.dark { background: var(--gwa-ink); color: #fff; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head p { color: rgba(255,255,255,0.65); }

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card-grid.list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Wine card */
.wine-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gwa-paper-400);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.wine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gwa-gold-200);
}
.wine-card .img-wrap {
  background: #fff;
  aspect-ratio: 1 / 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1rem 0.6rem;
  border-bottom: 1px solid var(--gwa-paper-300);
}
.wine-card .img-wrap img {
  max-height: 92%;
  width: auto;
  object-fit: contain;
  transition: transform .25s;
}
.wine-card:hover .img-wrap img { transform: scale(1.03); }
.wine-card .body {
  padding: 1.1rem 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wine-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wine-card .type { font-size: 0.72rem; color: var(--gwa-ink-700); text-transform: uppercase; letter-spacing: 0.06em; }
.wine-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--gwa-ink);
}
.wine-card .origin {
  font-size: 0.85rem;
  color: var(--gwa-ink-700);
}
.wine-card .origin .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gwa-gold);
  border-radius: 50%;
  margin: 0 0.45rem 0.15rem;
  vertical-align: middle;
}
.wine-card .footer {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Horizontal wine card */
.wine-row {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gwa-paper-400);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, border-color .2s;
}
.wine-row:hover { box-shadow: var(--shadow-md); border-color: var(--gwa-gold-200); }
.wine-row .img-wrap {
  width: 92px; height: 130px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wine-row .img-wrap img { max-height: 100%; width: auto; }
.wine-row .body { flex: 1; min-width: 0; }
.wine-row h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wine-row .meta { font-size: 0.85rem; color: var(--gwa-ink-700); margin-top: 0.25rem; }

/* Article card */
.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gwa-paper-400);
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--gwa-paper-300);
  overflow: hidden;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .body { padding: 1.1rem; }
.article-card .author {
  font-size: 0.78rem;
  color: var(--gwa-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--gwa-ink);
}

/* Article detail */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gwa-paper-400);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem 2.2rem;
}
.article-detail .cover {
  margin: -1.6rem -1.8rem 1.6rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gwa-paper-300);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.article-detail .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-detail .prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gwa-ink-800);
}
.article-detail .prose p { margin: 0 0 1rem; }
.article-detail .prose h2,
.article-detail .prose h3,
.article-detail .prose h4 {
  font-family: var(--font-display);
  color: var(--gwa-ink-900);
  margin: 1.6rem 0 0.7rem;
  line-height: 1.25;
}
.article-detail .prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.article-detail .prose ul,
.article-detail .prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.article-detail .prose li { margin-bottom: 0.35rem; }
.article-detail .prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gwa-gold);
  background: var(--gwa-paper-200);
  color: var(--gwa-ink-700);
}
@media (max-width: 640px) {
  .article-detail { padding: 1.1rem 1.15rem 1.6rem; }
  .article-detail .cover { margin: -1.1rem -1.15rem 1.1rem; }
}

/* Judge card */
.judge-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gwa-paper-400);
  padding: 1.5rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.judge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gwa-gold-200); }
.judge-card .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gwa-paper-200);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gwa-ink-700);
  border: 2px solid var(--gwa-paper-400);
}
.judge-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.judge-card .area {
  font-size: 0.82rem;
  color: var(--gwa-gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.judge-card .bio {
  font-size: 0.88rem;
  color: var(--gwa-ink-700);
  line-height: 1.55;
  max-height: 5.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Filter bar (wine guide) */
.filter-bar {
  background: #fff;
  border: 1px solid var(--gwa-paper-400);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-bar .field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.filter-bar label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gwa-ink-700);
}
.filter-bar select,
.filter-bar input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--gwa-paper);
  border: 1px solid var(--gwa-paper-400);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--gwa-ink);
  outline: none;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--gwa-gold); }
.filter-bar .btn { height: 42px; }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--gwa-ink-700);
  font-size: 0.9rem;
}
.results-meta .sort { display: flex; gap: 0.5rem; align-items: center; }
.results-meta select { background: transparent; border: 1px solid var(--gwa-paper-400); border-radius: 6px; padding: 0.3rem 0.5rem; }

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--gwa-ink-700);
}
.empty-state h4 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--gwa-ink); }

/* Wine detail */
.wine-detail {
  background: #fff;
  border-radius: var(--gwa-radius-xl);
  border: 1px solid var(--gwa-paper-400);
  overflow: hidden;
}
.wine-detail .hero-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: 2.5rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, #fff 0%, var(--gwa-cream) 100%);
}
.wine-detail .bottle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gwa-paper-300);
  padding: 1.5rem;
  min-height: 420px;
}
.wine-detail .bottle img { max-height: 360px; width: auto; }
.wine-detail .info { display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.wine-detail .info .tagline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.wine-detail .info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.wine-detail .info .producer {
  font-size: 1.05rem;
  color: var(--gwa-ink-700);
  margin-bottom: 0.6rem;
}
.wine-detail .info .origin-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--gwa-ink-700);
  margin-bottom: 1rem;
}
.wine-detail .info .origin-line img {
  width: 22px; height: 16px; object-fit: cover; border-radius: 2px; display: inline-block; margin-right: 0.3rem;
}
.wine-detail .info .origin-line span { display: inline-flex; align-items: center; gap: 0.35rem; }
.wine-detail .score-block {
  margin-top: 0.6rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--gwa-paper-400);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wine-detail .score-block .awards {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

.wine-detail .panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 2.2rem;
  background: var(--gwa-paper-200);
}
.wine-detail .panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gwa-paper-400);
  padding: 1.4rem;
}
.wine-detail .panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gwa-paper-300);
}
.wine-detail .panel p { font-size: 0.95rem; color: var(--gwa-ink-800); line-height: 1.6; }
.wine-detail .panel ul { list-style: disc; padding-left: 1.1rem; }
.wine-detail .panel li { margin-bottom: 0.5rem; color: var(--gwa-ink-800); font-size: 0.95rem; }
.wine-detail .yearly-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.8rem;
}
.wine-detail .yearly-item .yr {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gwa-ink);
  color: var(--gwa-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}
.wine-detail .yearly-item .txt h4 { font-size: 1rem; font-family: var(--font-display); }
.wine-detail .yearly-item .txt p { font-size: 0.85rem; color: var(--gwa-ink-700); margin-top: 0.15rem; }

@media (max-width: 720px) {
  .wine-detail .hero-panel { grid-template-columns: 1fr; padding: 1.4rem; }
  .wine-detail .bottle { min-height: 280px; }
  .wine-detail .panels { padding: 1.4rem; }
}

/* Scoring system */
.score-scale {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.score-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gwa-paper-400);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
}
.score-row .range {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gwa-gold);
  text-align: center;
  background: var(--gwa-ink);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
}
.score-row h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.25rem; }
.score-row p { font-size: 0.92rem; color: var(--gwa-ink-700); line-height: 1.5; }

/* About / CTA band */
.cta-band {
  background: var(--gwa-ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 1rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.cta-band p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 1.4rem; }

/* Footer */
.site-footer {
  background: var(--gwa-ink);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.site-footer p { line-height: 1.6; }
.site-footer .brand-foot {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-weight: 500; margin-bottom: 0.4rem;
}
.site-footer .brand-foot img { height: 34px; width: auto; }
.site-footer .copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); }
@media (max-width: 640px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* Page banner (non-home) */
.page-banner {
  position: relative;
  padding: 8rem 0 3.5rem;
  background: var(--gwa-ink);
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(176,141,87,0.16), transparent 40%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .eyebrow {
  color: var(--gwa-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}
.page-banner p {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--gwa-paper-300) 25%, var(--gwa-paper-200) 50%, var(--gwa-paper-300) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Helpers */
.hidden { display: none !important; }
.badge-award {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--gwa-gold-200); color: #5E4624;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-award img { height: 18px; width: auto; }

/* Medal tiers */
.medal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}
.medal-chip-lg { letter-spacing: 0.1em; }

.medal-seal {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--seal-bg);
  color: var(--seal-ink);
  border: 3px solid var(--seal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(20,16,14,0.14);
}
.medal-seal-inner { text-align: center; }
.medal-seal-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.medal-seal-sub {
  display: block;
  font-size: 0.7rem;
  opacity: 0.75;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}

/* Medal tier display block (scoring page) */
.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.medal-tier-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gwa-paper-400);
  background: #fff;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.medal-tier-card .disc {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.medal-tier-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.medal-tier-card .range {
  font-size: 0.8rem;
  color: var(--gwa-ink-700);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.medal-tier-card p { font-size: 0.85rem; color: var(--gwa-ink-700); line-height: 1.5; }

/* Combined band + medal table */
.band-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--gwa-paper-400); border-radius: var(--radius-lg); overflow: hidden; }
.band-table th, .band-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--gwa-paper-300);
  font-size: 0.92rem;
}
.band-table tr:last-child td { border-bottom: none; }
.band-table th {
  background: var(--gwa-paper-200);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gwa-ink-700);
}
.band-table .score-cell {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gwa-gold);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .band-table th, .band-table td { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
}

/* Medal badge pinned to wine card image */
.wine-card .img-wrap { position: relative; }
.wine-card .card-medal {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
}

/* =========================================================================
   Mobile adaptation — phones & small tablets
   Goal: every control is a comfortable touch target, forms stack to a single
   column, tables scroll horizontally instead of overflowing, and nothing
   pushes the page wider than the viewport. (Viewport zoom is intentionally
   left enabled — no user-scalable=no.)
   ========================================================================= */

/* Small tablets / large phones */
@media (max-width: 720px) {
  .section { padding: 3.2rem 0; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }

  /* Hero search: two-up → one column */
  .hero-search .field { flex: 1 1 100%; }
  .hero-search .action { flex: 1 1 100%; }
  .hero-search .btn { width: 100%; height: 48px; }

  .hero-quick { gap: 0.45rem; }
  .hero-quick a { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

  .hero-stats { gap: 1.2rem 1.6rem; justify-content: flex-start; }
  .hero-stats .stat strong { font-size: 1.6rem; }
}

/* Phones */
@media (max-width: 640px) {
  .page-banner { padding: 6.5rem 0 2.4rem; }
  .page-banner h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  .section { padding: 2.8rem 0; }
  .section-head { margin-bottom: 1.6rem; }

  /* Wine guide filter bar stacks fully */
  .filter-bar { flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.7rem; }
  .filter-bar .field { flex: 1 1 auto; }
  .filter-bar select,
  .filter-bar input { padding: 0.8rem 0.9rem; min-height: 44px; font-size: 1rem; }
  .filter-bar .btn { width: 100%; height: 48px; }

  .results-meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .results-meta .sort { width: 100%; }
  .results-meta select { width: 100%; padding: 0.5rem; }

  .card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-grid.list { grid-template-columns: 1fr; }

  .wine-card h3 { font-size: 1.1rem; }

  /* Wine detail: tighten and let the bottle image scale */
  .wine-detail .hero-panel { gap: 1.2rem; }
  .wine-detail .bottle { min-height: 240px; padding: 1rem; }
  .wine-detail .bottle img { max-height: 240px; width: auto; }
  .wine-detail .info h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .wine-detail .score-block { gap: 1rem; }
  .wine-detail .panels { grid-template-columns: 1fr; }

  /* Scoring rows stack */
  .score-row { grid-template-columns: 1fr; text-align: center; gap: 0.6rem; padding: 1rem; }
  .score-row .range { padding: 0.5rem 0; font-size: 1.1rem; }

  /* Tables scroll horizontally instead of overflowing */
  .band-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .band-table th, .band-table td { white-space: nowrap; }

  /* CTA band */
  .cta-band { padding: 2.2rem 1.3rem; }
  .cta-band h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Footer already single column at 640 (see earlier rule) */
  .site-footer .container { gap: 1.4rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-lead { font-size: 0.98rem; }
  .wine-detail .bottle { min-height: 200px; }
  .wine-detail .bottle img { max-height: 200px; }
  .medal-seal { width: 96px; height: 96px; }
  .medal-seal-label { font-size: 1.05rem; }
}

/* Horizontal wine-row: keep readable on narrow screens */
@media (max-width: 480px) {
  .wine-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .wine-row .img-wrap { width: 72px; height: 100px; }
  .wine-row h3 { white-space: normal; }
}
