/* =============================================================
   GASTRORANK — Editorial Design System
   A magazine-quality world gastronomy ranking experience
   ============================================================= */

/* ---------- Type & Tokens ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core palette — warm editorial */
  --cream: #faf5ee;
  --cream-deep: #f3ece0;
  --paper: #ffffff;
  --ink: #1a1613;
  --ink-soft: #3a332d;
  --ink-muted: #6b6259;
  --ink-faded: #a39a91;
  --line: #e6dfd3;
  --line-soft: #efe9de;

  /* Accents */
  --saffron: #e8a847;
  --saffron-deep: #c88a1f;
  --burgundy: #7a1f2b;
  --burgundy-soft: #9c3442;
  --sage: #6a7a52;
  --terracotta: #c8573f;
  --deep-sea: #1d4e5a;

  /* Scoring colors */
  --score-high: #4a7c3f;
  --score-mid: #d4a43b;
  --score-low: #b84438;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Typography */
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Shadow + Radius */
  --shadow-sm: 0 1px 2px rgba(26, 22, 19, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 22, 19, 0.06), 0 1px 3px rgba(26, 22, 19, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(26, 22, 19, 0.18), 0 8px 20px -8px rgba(26, 22, 19, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--burgundy);
}
.eyebrow--muted { color: var(--ink-muted); }
p { color: var(--ink-soft); }
small, .small { font-size: 0.82rem; color: var(--ink-muted); }

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: 900px; }
.container--wide { max-width: 1680px; }
.section { padding: var(--sp-9) 0; }
.section--sm { padding: var(--sp-7) 0; }
.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: var(--sp-7);
  align-items: end;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-5);
}
.atlas-hero__copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: var(--sp-3);
  line-height: 1.05;
}
.atlas-hero__copy h1 em {
  color: var(--burgundy);
  font-weight: 300;
}
.atlas-hero__copy p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: var(--sp-4);
}
.atlas-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-bottom: 2px;
}
.atlas-hero__fact {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
}
.atlas-hero__fact strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.atlas-hero__fact span {
  display: block;
  margin-top: var(--sp-2);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}
.atlas-hero__fact--wide {
  grid-column: 1 / -1;
  margin-top: var(--sp-3);
}
.atlas-hero__fact--wide strong {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.atlas-hero__fact--wide span {
  max-width: 52ch;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: var(--sp-7) 0;
  border: none;
}

/* ---------- Top Bar / Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--terracotta) 60%, var(--burgundy) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  align-self: center;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px dashed rgba(250, 245, 238, 0.5);
  border-radius: 50%;
}
.brand__dot { color: var(--burgundy); }
.brand__tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-left: var(--sp-2);
  padding-left: var(--sp-2);
  border-left: 1px solid var(--line);
}
.nav { display: flex; gap: var(--sp-5); align-items: center; margin-left: auto; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: var(--sp-1) 0;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--burgundy);
}
.nav__cta {
  padding: var(--sp-2) var(--sp-4);
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--burgundy); color: var(--cream); }
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--ink);
  line-height: 1;
}
.topbar__lang { display: inline-flex; align-items: center; margin-left: var(--sp-5); }

/* ---------- Language selector ---------- */
.lang-selector { position: relative; display: inline-flex; }
.lang-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px 6px 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
  letter-spacing: 0.04em;
}
.lang-selector__trigger:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.lang-selector__trigger[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--paper);
}
.lang-selector__code {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.lang-selector__chev {
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-left: -2px;
  line-height: 1;
}
.lang-selector__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(26, 22, 19, 0.16);
  padding: 6px;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.lang-selector__opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 140ms var(--ease);
  font-size: 0.9rem;
}
.lang-selector__opt:hover { background: var(--paper); }
.lang-selector__opt.is-active {
  background: var(--ink);
  color: var(--cream);
}
.lang-selector__opt.is-active .lang-selector__ccode { color: var(--saffron); }
.lang-selector__opt.is-active .country-flag {
  box-shadow: 0 0 0 1px rgba(250, 245, 238, 0.22);
}
.lang-selector__native {
  flex: 1;
  font-weight: 500;
}
.lang-selector__ccode {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 200ms var(--ease);
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--burgundy); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn--accent { background: var(--saffron); color: var(--ink); }
.btn--accent:hover { background: var(--saffron-deep); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: end;
}
.hero__headline {
  font-size: clamp(2.75rem, 6.8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--burgundy);
}
.hero__sub {
  margin-top: var(--sp-5);
  max-width: 54ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__stats {
  display: flex; gap: var(--sp-6); margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero__stat .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero__stat .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: var(--sp-2);
  display: block;
}
.hero__actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); }
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #ead7b0 0%, #d9a364 55%, #b56a3a 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__plate {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #fff6e3 0%, #f5e1b5 40%, #cda25d 100%);
}
.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.hero__plate img.gr-img--loaded { opacity: 1; }
.hero__plate-emoji {
  position: absolute;
  font-size: clamp(6rem, 14vw, 11rem);
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.15));
  transition: opacity 400ms var(--ease);
}
.hero__plate:has(img.gr-img--loaded) .hero__plate-emoji { opacity: 0; }
.hero__plate::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.hero__plate:has(img.gr-img--loaded)::after { opacity: 1; }
.hero__tag {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  background: var(--cream);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--burgundy);
  box-shadow: var(--shadow-md);
}
.hero__meta {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cream);
  opacity: 0.9;
  z-index: 2;
}
.hero__meta > span {
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__meta > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero__meta > span:last-child { flex-shrink: 0; display: block; }
.hero__meta .country-flag { box-shadow: 0 0 0 1px rgba(250, 245, 238, 0.22); }

/* ---------- Ticker (live-feed strip) ---------- */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-3) 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  gap: var(--sp-7);
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.ticker__item { display: flex; align-items: center; gap: var(--sp-2); }
.ticker__rank { color: var(--saffron); font-weight: 600; }
.ticker__name { color: var(--cream); }
.ticker__score { color: var(--saffron); font-weight: 600; margin-left: 4px; }
.ticker__item .country-flag--xs { box-shadow: 0 0 0 1px rgba(250, 245, 238, 0.18); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section header (editorial) ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.section-head__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink-muted);
}
.section-head__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-head__more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}
.section-head__more::after { content: " →"; }

/* ---------- Ranking row (editorial index) ---------- */
.rank-list { border-top: 1px solid var(--line); }
.rank-row {
  display: grid;
  grid-template-columns: 104px 88px minmax(0, 1fr) 168px 184px 104px;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--line);
  transition: background 180ms var(--ease);
  cursor: pointer;
}
.rank-row:hover { background: var(--paper); }
.rank-row__rank {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding-right: var(--sp-2);
}
.rank-row__rank em {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 300;
}
.rank-row__thumb {
  width: 88px; height: 88px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ead7b0, #cda25d);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(26,22,19,0.08);
}
.rank-row__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.rank-row__thumb img.gr-img--loaded { opacity: 1; }
.rank-row__emoji {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: opacity 400ms var(--ease);
}
.rank-row__thumb:has(img.gr-img--loaded) .rank-row__emoji {
  opacity: 0;
}
.rank-row__thumb.no-image .rank-row__emoji { opacity: 1; }
.rank-row__name { min-width: 0; }
.rank-row__name h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.rank-row__name .native {
  font-style: italic;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.92rem;
  margin-bottom: var(--sp-2);
  display: block;
}
.rank-row__name .desc {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 62ch;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.rank-row__country {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.rank-row__country .country-stack { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-row__country .country-stack__top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.rank-row__country .country-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row__country .country-region {
  font-size: 0.64rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--sans);
}

/* ---------- Flag images + ISO badge (shared) ---------- */
.country-flag {
  display: inline-block;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(26, 22, 19, 0.08), 0 1px 3px rgba(26, 22, 19, 0.10);
  background: var(--line-soft);
  flex-shrink: 0;
  vertical-align: middle;
}
.country-flag--xs { width: 22px; height: 16px; border-radius: 2px; }
.country-flag--sm { width: 34px; height: 24px; }
.country-flag--md { width: 48px; height: 34px; border-radius: 4px; }
.country-flag--lg { width: 72px; height: 52px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(26,22,19,0.08), 0 4px 14px rgba(26,22,19,0.14); }
.country-flag--xl { width: 120px; height: 86px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(26,22,19,0.10), 0 8px 22px rgba(26,22,19,0.16); }

.country-iso {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  background: rgba(124, 35, 45, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.country-iso--dark {
  color: var(--cream);
  background: rgba(250, 245, 238, 0.14);
}

.country-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: baseline;
}
.country-inline__name { color: inherit; }
.rank-row__bars { display: flex; flex-direction: column; gap: var(--sp-1); width: 100%; }
.bar {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.7rem;
}
.bar__label {
  color: var(--ink-muted);
  width: 48px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.bar__track {
  flex: 1;
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 400ms var(--ease);
}
.bar__fill--h { background: var(--score-high); }   /* NOVA */
.bar__fill--p { background: var(--terracotta); }   /* Nutrient density */
.bar__fill--a { background: var(--deep-sea); }     /* Anti-inflammatory */
.bar__fill--g { background: var(--burgundy); }     /* Glycemic load */

/* Method II filter badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(26, 22, 19, 0.06);
  color: var(--ink-soft);
}
.badge-pill--minimal    { background: rgba(116, 168, 116, 0.14); color: #4a7a4a; }
.badge-pill--moderate   { background: rgba(205, 162, 93, 0.15); color: #8a6626; }
.badge-pill--complex    { background: rgba(207, 116, 60, 0.13); color: #8b3f1e; }
.badge-pill--elaborate  { background: rgba(124, 35, 45, 0.11); color: var(--burgundy); }
.badge-pill--staple     { background: rgba(116, 168, 116, 0.14); color: #4a7a4a; }
.badge-pill--everyday   { background: rgba(26, 22, 19, 0.06);  color: var(--ink-soft); }
.badge-pill--occasional { background: rgba(205, 162, 93, 0.18); color: #8a6626; }
.badge-pill--luxurious  { background: rgba(124, 35, 45, 0.14); color: var(--burgundy); }

/* xs variant — used on rank rows + cards so chips don't crowd the layout */
.badge-pill--xs {
  padding: 2px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.dish-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.card .dish-chips {
  margin: 0 0 var(--sp-3) 0;
}
.bar__val { font-family: var(--mono); color: var(--ink); width: 24px; text-align: right; font-weight: 500; }
.rank-row__overall {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.rank-row__overall small { display: block; font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-top: 2px; font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  transition: all 220ms var(--ease);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #ead7b0, #cda25d);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms var(--ease), transform 600ms var(--ease);
}
.card__media img.gr-img--loaded { opacity: 1; }
.card:hover .card__media img.gr-img--loaded { transform: scale(1.04); }
.card__emoji {
  position: relative;
  font-size: 3.4rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
  transition: opacity 400ms var(--ease);
}
.card__media:has(img.gr-img--loaded) .card__emoji { opacity: 0; }
.card__health {
  position: absolute;
  left: var(--sp-3); bottom: var(--sp-3);
  background: rgba(26, 22, 19, 0.82);
  color: var(--cream);
  padding: 4px var(--sp-3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.card__health strong { color: var(--saffron); font-weight: 600; margin-left: 2px; }
.card__body {
  padding: var(--sp-5);
  display: flex; flex-direction: column; flex: 1;
  min-width: 0;
}
.card__country {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  display: flex; align-items: center; gap: var(--sp-2);
  min-width: 0;
}
.card__country > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: var(--sp-2) 0 var(--sp-3);
  line-height: 1.2;
  overflow-wrap: break-word;
}
.card__desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.card__foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  gap: var(--sp-3);
}
.card__score {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--serif);
  flex: 1;
}
.card__score .val { font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1; }
.card__score .lbl { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; font-family: var(--sans); }

/* ---------- Country grid (map-style) ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.country-tile {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: all 200ms var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.country-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--saffron);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 200ms var(--ease);
}
.country-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.country-tile:hover::before { transform: scaleY(1); }
.country-tile__flag {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--sp-1);
}
.country-tile__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.country-tile__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  overflow-wrap: break-word;
  line-height: 1.25;
  min-width: 0;
}
.country-tile__meta {
  display: flex; justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

/* ---------- Rankings page filter rail ---------- */
.filter-rail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  position: sticky;
  top: 88px;
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.filter-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
}
.filter-group select,
.filter-group input {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 160ms var(--ease);
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--burgundy);
}
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 160ms var(--ease);
  font-weight: 500;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.rankings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.rankings-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.rankings-toolbar__count {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.rankings-toolbar__count em { color: var(--burgundy); font-style: italic; }
.rankings-toolbar__range {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sort-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: 0.85rem; }
.sort-bar button {
  padding: var(--sp-2) var(--sp-3);
  min-height: 34px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-weight: 500;
  transition: all 160ms var(--ease);
}
.sort-bar button.active { background: var(--ink); color: var(--cream); }
.sort-bar button:not(.active):hover { background: var(--cream-deep); color: var(--ink); }
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.pagination__btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 160ms var(--ease);
}
.pagination__btn:not(:disabled):hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pagination__btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.pagination__btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.pagination__ellipsis {
  color: var(--ink-muted);
  padding: 0 var(--sp-1);
}

/* ---------- Analytics page ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.kpi {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.kpi__label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.kpi__value {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  margin: var(--sp-2) 0;
  letter-spacing: -0.02em;
}
.kpi__trend { font-size: 0.82rem; color: var(--sage); font-weight: 500; }
.kpi__spark {
  position: absolute;
  right: var(--sp-3); top: var(--sp-3);
  width: 70px; height: 30px;
  opacity: 0.6;
}
.chart-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.chart-card h3 {
  font-family: var(--serif);
  margin-bottom: var(--sp-2);
}
.chart-card__sub { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: var(--sp-5); }

/* Horizontal bar chart */
.hbar-chart { display: flex; flex-direction: column; gap: var(--sp-3); }
.hbar-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: var(--sp-4); align-items: center; }
.hbar-row__label { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.hbar-row__label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-row__track { height: 14px; background: var(--line-soft); border-radius: 999px; overflow: hidden; position: relative; }
.hbar-row__fill { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--terracotta)); border-radius: 999px; }
.hbar-row__val { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); text-align: right; font-weight: 500; }

/* Region cards */
.region-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.region-card {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cream), var(--paper));
  padding: var(--sp-4);
}
.region-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.region-card__rank {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  font-weight: 700;
}
.region-card h4 {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  margin-top: 0;
}
.region-card p {
  margin-top: var(--sp-1);
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.region-card__score {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.region-card__score span {
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 0.9;
  color: var(--score-high);
}
.region-card__score small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.region-card__metrics {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.region-card__metric > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.region-card__metric strong {
  color: var(--ink);
}
.region-card__metric-track {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(27, 22, 18, 0.08);
  margin-top: var(--sp-1);
}
.region-card__metric-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-sea), var(--score-high));
}

/* Score distribution */
.score-distribution {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.score-distribution__row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 112px;
  gap: var(--sp-4);
  align-items: center;
}
.score-distribution__label {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
}
.score-distribution__track {
  display: block;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(27, 22, 18, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(27, 22, 18, 0.04);
}
.score-distribution__fill {
  display: block;
  height: 100%;
  min-height: 34px;
  border-radius: 999px;
  min-width: 4px;
}
.score-distribution__value {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  align-items: baseline;
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.score-distribution__value strong {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.92rem;
}

/* Category pie (svg based) */
.pie-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.pie-legend { display: flex; flex-direction: column; gap: var(--sp-3); }
.pie-legend__item { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.9rem; }
.pie-legend__swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.pie-legend__meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-muted); margin-left: auto; }

/* ---------- Dish detail page ---------- */
.dish-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-7);
  padding: var(--sp-8) 0;
  align-items: center;
}
.dish-hero__info .eyebrow { margin-bottom: var(--sp-4); }
.dish-hero__title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-2);
}
.dish-hero__native {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.dish-hero__native em { font-style: italic; }
.dish-hero__country {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1rem;
  font-style: normal;
  color: var(--ink-soft);
  font-family: var(--sans);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--line);
}

/* ---------- Dish breadcrumb ---------- */
.dish-breadcrumb {
  padding: var(--sp-5) 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.dish-breadcrumb a { color: var(--ink-muted); transition: color 160ms var(--ease); }
.dish-breadcrumb a:hover { color: var(--ink); }
.dish-breadcrumb .sep { color: var(--ink-muted); opacity: 0.5; }
.dish-breadcrumb .current { color: var(--ink); font-weight: 500; }
.dish-breadcrumb .country-inline { gap: 6px; }

.feature-lead__country {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.dish-hero__desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; line-height: 1.55; }
.dish-hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.meta-item .lbl { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.meta-item .val { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-top: var(--sp-1); }
.dish-hero__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #f2e3c3, #c88a55);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  isolation: isolate;
}
.dish-hero__visual img.gr-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 600ms var(--ease);
}
.dish-hero__visual img.gr-img--loaded { opacity: 1; }
.dish-hero__visual .dish-hero__emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(6rem, 14vw, 10rem);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.18));
  transition: opacity 400ms var(--ease), transform 600ms var(--ease);
  z-index: 1;
}
.dish-hero__visual:has(img.gr-img--loaded) .dish-hero__emoji {
  opacity: 0;
  transform: scale(0.6);
}
.dish-hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,22,19,0.45) 0%, transparent 40%);
  opacity: 0; transition: opacity 600ms var(--ease);
  z-index: 2; pointer-events: none;
}
.dish-hero__visual:has(img.gr-img--loaded)::after { opacity: 1; }
.dish-hero__visual.no-image .dish-hero__emoji { opacity: 1; transform: scale(1); }

.dish-scores {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.score-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.score-card__lbl { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.score-card__val {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 1;
  margin: var(--sp-3) 0;
  letter-spacing: -0.02em;
}
.score-card__bar { height: 4px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.score-card__bar > div { height: 100%; border-radius: 999px; transition: width 600ms var(--ease); }
.score-card--overall {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.score-card--overall .score-card__lbl { color: var(--saffron); }
.score-card--overall .score-card__val { color: var(--cream); }

.dish-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-9);
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.panel h3 { font-family: var(--serif); margin-bottom: var(--sp-3); }
.panel p { line-height: 1.65; color: var(--ink-soft); }
.dish-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.dish-badges .badge-pill {
  font-size: 0.72rem;
  padding: 4px 12px;
}
.ingredients { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.ingredients li {
  padding: var(--sp-2) var(--sp-3);
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.nutrition-table { width: 100%; border-collapse: collapse; }
.nutrition-table tr { border-bottom: 1px solid var(--line-soft); }
.nutrition-table tr:last-child { border-bottom: none; }
.nutrition-table td { padding: var(--sp-3) 0; font-size: 0.92rem; }
.nutrition-table td:first-child { color: var(--ink-muted); }
.nutrition-table td:last-child { font-family: var(--mono); text-align: right; font-weight: 500; color: var(--ink); }

/* ---------- World Map (countries page) ---------- */
.worldmap {
  position: relative;
  margin-bottom: var(--sp-8);
  background: linear-gradient(180deg, #f5eedb 0%, #ece3ca 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}
.worldmap__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.worldmap__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.worldmap__sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 52ch;
  margin-top: var(--sp-2);
}
.worldmap__svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
}
.worldmap__ocean { fill: transparent; }
.worldmap__graticule {
  fill: none;
  stroke: rgba(0,0,0,0.05);
  stroke-width: 0.4;
  pointer-events: none;
}
.worldmap__sphere {
  fill: none;
  stroke: rgba(40,30,20,0.35);
  stroke-width: 0.8;
  pointer-events: none;
}
.worldmap__country {
  stroke: rgba(40,30,20,0.28);
  stroke-width: 0.35;
  transition: stroke 150ms var(--ease), stroke-width 150ms var(--ease), filter 150ms var(--ease);
}
.worldmap__country--has:hover {
  stroke: var(--ink);
  stroke-width: 1.2;
  filter: brightness(1.05);
}
.worldmap__tip {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 0.85rem;
  min-width: 220px;
  max-width: 280px;
  transform: translate(0,0);
  transition: opacity 140ms var(--ease);
  z-index: 10;
}
.worldmap__tip-head {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}
.worldmap__tip-flag { display: inline-flex; align-items: center; }
.worldmap__tip-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.worldmap__tip-meta {
  font-size: 0.72rem; color: rgba(250,245,238,0.6);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
  font-weight: 500;
}
.worldmap__tip-scores {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  border-top: 1px solid rgba(250,245,238,0.12);
  padding-top: var(--sp-3);
}
.worldmap__tip-scores span {
  display: flex; flex-direction: column;
  font-size: 0.68rem; color: rgba(250,245,238,0.55);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.worldmap__tip-scores em {
  font-style: normal; font-family: var(--serif);
  font-size: 1.35rem; color: var(--saffron); font-weight: 400;
  margin-bottom: 2px;
}
.worldmap__tip-cta {
  margin-top: var(--sp-3);
  font-size: 0.75rem;
  color: var(--saffron);
  font-weight: 500;
}
.worldmap__legend {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.worldmap__legend-title {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}
.worldmap__legend-scale {
  display: flex; align-items: center; gap: 0;
  border-radius: 4px; overflow: hidden;
}
.worldmap__legend-stop {
  display: inline-block;
  width: 36px; height: 12px;
}
.worldmap__legend-lbl {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-muted);
  margin: 0 6px 0 2px;
}
.worldmap__error {
  padding: var(--sp-6);
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.95rem;
}
.worldmap__error a { color: var(--burgundy); font-weight: 500; }

@media (max-width: 720px) {
  .worldmap { padding: var(--sp-4); }
  .worldmap__tip { min-width: 180px; max-width: 220px; font-size: 0.78rem; }
  .worldmap__tip-scores em { font-size: 1.1rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-9) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer h4 { color: var(--cream); font-family: var(--serif); font-size: 1rem; margin-bottom: var(--sp-4); font-weight: 500; }
.footer a { color: rgba(250, 245, 238, 0.7); font-size: 0.88rem; display: block; margin-bottom: var(--sp-2); }
.footer a:hover { color: var(--saffron); }
.footer__brand { color: var(--cream); font-family: var(--serif); font-size: 1.5rem; }
.footer__tagline { color: rgba(250, 245, 238, 0.7); font-size: 0.95rem; margin-top: var(--sp-3); line-height: 1.5; max-width: 42ch; }
.footer__bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(250, 245, 238, 0.12);
  display: flex; justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250, 245, 238, 0.5);
}

/* ---------- Editorial pull-quote ---------- */
.pull-quote {
  max-width: 900px;
  margin: var(--sp-8) auto;
  padding: 0 var(--sp-5);
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
}
.pull-quote blockquote::before { content: "\201C"; color: var(--burgundy); font-size: 1.3em; line-height: 0.5; vertical-align: -0.2em; margin-right: 0.1em; }
.pull-quote blockquote::after { content: "\201D"; color: var(--burgundy); font-size: 1.3em; line-height: 0.5; vertical-align: -0.3em; margin-left: 0.1em; }
.pull-quote cite {
  display: block;
  margin-top: var(--sp-4);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---------- Featured block ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-5);
}
.feature-lead {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.feature-lead__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.feature-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 50, 70, 0.9) 0%, rgba(25, 50, 70, 0.76) 48%, rgba(25, 50, 70, 0.52) 100%),
    linear-gradient(0deg, rgba(10, 19, 31, 0.7) 0%, rgba(10, 19, 31, 0.22) 52%, rgba(10, 19, 31, 0.56) 100%);
  z-index: 1;
}
.feature-lead > *:not(.feature-lead__bg) {
  position: relative;
  z-index: 2;
}
.feature-lead__eyebrow { color: var(--saffron); }
.feature-lead h2 {
  color: var(--cream);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: var(--sp-4) 0 var(--sp-4);
  position: relative;
}
.feature-lead p { color: rgba(250, 245, 238, 0.75); max-width: 44ch; position: relative; font-size: 1rem; line-height: 1.55; }
.feature-lead__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(250, 245, 238, 0.12);
  position: relative;
}
.feature-lead__score {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--saffron);
}

/* ---------- Empty / Loading ---------- */
.empty-state {
  padding: var(--sp-9) 0;
  text-align: center;
  color: var(--ink-muted);
}
.empty-state h3 { font-family: var(--serif); margin-bottom: var(--sp-3); }

/* ---------- Responsive ---------- */

/* Nav-specific collapse: hamburger kicks in at 1024px because 6 nav items + brand + lang
   selector overflow the topbar between 720px and ~1300px. Keeps content layout intact. */
@media (max-width: 1024px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5);
    gap: var(--sp-3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  body.nav-open .nav { display: flex; }
  .nav__toggle { display: block; min-width: 44px; min-height: 44px; }
}

@media (max-width: 1100px) {
  .rank-row { grid-template-columns: 84px 76px minmax(0, 1fr) 140px 88px; gap: var(--sp-4); }
  .rank-row__rank { font-size: 1.75rem; }
  .rank-row__thumb { width: 76px; height: 76px; }
  .rank-row__bars { display: none; }
  .dish-cols { grid-template-columns: 1fr; }
  .rankings-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .atlas-hero { grid-template-columns: 1fr; align-items: start; }
  .atlas-hero__facts { max-width: 760px; }
  .dish-hero { grid-template-columns: 1fr; }
  .dish-scores { grid-template-columns: repeat(3, 1fr); }
  /* Tablet: wrap the sort-bar + inline grids used on home/about/analytics */
  .sort-bar { flex-wrap: wrap; }
  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .region-score-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* Nav collapses into a dropdown toggled by the hamburger */
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5) var(--sp-4);
    box-shadow: 0 12px 28px -16px rgba(0,0,0,0.15);
    z-index: 50;
  }
  .nav a {
    padding: var(--sp-4) 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-of-type { border-bottom: 0; }
  body.nav-open .nav { display: flex; }
  .nav__toggle { display: block; min-width: 44px; min-height: 44px; }
  .topbar__lang { margin-left: auto; margin-right: var(--sp-2); }
  .brand__tag { display: none; }
  .rank-row { grid-template-columns: 64px 60px minmax(0, 1fr) 72px; gap: var(--sp-3); padding: var(--sp-4) 0; }
  .rank-row__rank { font-size: 1.4rem; }
  .rank-row__thumb { width: 60px; height: 60px; }
  .rank-row__name h3 { font-size: 1.1rem; }
  .rank-row__name .desc { -webkit-line-clamp: 2; }
  /* Compact the country cell — hide subregion + ISO + region text; keep flag + name */
  .rank-row__country .country-flag { width: 20px; height: 14px; }
  .rank-row__country .country-region { display: none; }
  .rank-row__country .country-iso { display: none; }
  .rank-row__country .country-stack__top { flex-wrap: wrap; gap: 4px; }
  .rank-row__country .dish-chips { display: none; }
  .rank-row__country .country-name { font-size: 0.85rem; }
  .dish-scores { grid-template-columns: repeat(2, 1fr); }
  .score-card { padding: var(--sp-4); }
  .score-card__val { font-size: 2.6rem; }
  /* Toolbar stacks on mobile */
  .rankings-toolbar { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .sort-bar { justify-content: flex-start; }
  .sort-bar button { padding: 10px 12px; min-height: 40px; }
  .chip { padding: 10px 14px; min-height: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: var(--sp-3); }
  .section-head__more { justify-self: start; }
  .hero__stats { flex-wrap: wrap; gap: var(--sp-4); }
  .atlas-hero { gap: var(--sp-5); }
  .atlas-hero__facts { grid-template-columns: 1fr; }
  .atlas-hero__fact--wide { margin-top: 0; }
  /* Catch-all for inline 1fr 1fr / 3-col grids that lack their own mobile rule */
    .responsive-grid-2,
    .responsive-grid-3,
    .responsive-grid-4 { grid-template-columns: 1fr !important; }
    .region-score-grid { grid-template-columns: 1fr; }
  /* Worldmap tooltip: keep within viewport */
  .worldmap__tip { min-width: 0; max-width: calc(100vw - 32px); }
  /* Nutrition / data tables scroll horizontally instead of squishing */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 420px; }
  /* Breadcrumb breathing room */
  .dish-breadcrumb { padding: var(--sp-4) 0 var(--sp-2); flex-wrap: wrap; gap: var(--sp-2); }
  /* Filter rail: tighten gap */
  .filter-rail {
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    gap: var(--sp-4);
  }
}

@media (max-width: 720px) {
  :root {
    --sp-5: 1.15rem;
    --sp-6: 1.5rem;
    --sp-7: 2rem;
    --sp-8: 2.7rem;
    --sp-9: 3.5rem;
    --sp-10: 4.5rem;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .container,
  .topbar__inner {
    width: 100%;
    max-width: 100%;
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .topbar__inner {
    height: 64px;
    gap: var(--sp-2);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
    font-size: 1.28rem;
    line-height: 1;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .brand__tag {
    display: none;
  }

  .topbar__lang {
    margin-left: auto;
    margin-right: var(--sp-2);
  }

  .lang-selector__trigger {
    min-height: 38px;
    padding: 5px 9px 5px 7px;
    gap: 6px;
  }

  .lang-selector__code {
    font-size: 0.68rem;
  }

  .lang-selector__menu {
    right: -48px;
    max-width: calc(100vw - 32px);
  }

  .nav {
    top: 64px;
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
  }

  .nav__toggle {
    min-width: 42px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .hero,
  .section,
  .section--sm,
  section.container,
  section.container--wide,
  section.container--narrow {
    padding-top: var(--sp-7) !important;
    padding-bottom: var(--sp-7) !important;
  }

  section.container + section.container,
  section.container + section.container--wide,
  section.container--wide + section.container {
    padding-top: 0 !important;
  }

  .hero__grid {
    gap: var(--sp-6);
    align-items: start;
  }

  h1,
  .hero__headline,
  .atlas-hero__copy h1,
  .dish-hero__title,
  section.container > h1[style],
  section.container--wide > h1[style] {
    font-size: clamp(2.2rem, 12vw, 3rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em;
  }

  h2,
  .section-head__title,
  .feature-lead h2,
  .chart-card h3 {
    overflow-wrap: anywhere;
  }

  .hero__sub,
  .atlas-hero__copy p,
  .dish-hero__desc,
  section.container > p[style],
  section.container--wide > p[style] {
    max-width: none !important;
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .hero__stat .num {
    font-size: 1.8rem;
  }

  .hero__stat .lbl {
    font-size: 0.58rem;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  .hero__visual,
  .dish-hero__visual {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }

  .hero__tag {
    top: var(--sp-3);
    right: var(--sp-3);
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
  }

  .hero__meta {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: var(--sp-3);
    gap: var(--sp-2);
    font-size: 0.68rem;
  }

  .featured-grid {
    gap: var(--sp-4);
  }

  .feature-lead {
    min-height: 360px;
    padding: var(--sp-5);
    border-radius: var(--radius-md);
  }

  .feature-lead__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-4);
  }

  .feature-lead__score {
    font-size: 3.1rem;
    align-self: flex-end;
  }

  .card__media {
    height: 190px;
  }

  .card__body {
    padding: var(--sp-4);
  }

  .card__foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .card,
  .chart-card,
  .feature-lead,
  .filter-rail,
  .panel,
  .worldmap {
    min-width: 0;
  }

  .responsive-grid-2 > *,
  .responsive-grid-3 > *,
  .responsive-grid-4 > *,
  .region-score-grid > *,
  section.container > div[style*="display: grid"] > * {
    min-width: 0;
  }

  .atlas-hero {
    gap: var(--sp-5);
  }

  .atlas-hero__facts {
    grid-template-columns: 1fr;
  }

  .atlas-hero__fact--wide {
    margin-top: 0;
  }

  .worldmap {
    margin-left: calc(-1 * var(--sp-1));
    margin-right: calc(-1 * var(--sp-1));
    padding: var(--sp-4);
    border-radius: var(--radius-md);
  }

  .worldmap__head {
    margin-bottom: var(--sp-4);
  }

  .worldmap__canvas {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
  }

  .worldmap__svg {
    min-width: 620px;
    max-width: none;
  }

  .worldmap__legend {
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .worldmap__tip {
    min-width: 0;
    max-width: calc(100vw - 32px);
    font-size: 0.78rem;
  }

  .worldmap__tip-scores em {
    font-size: 1.1rem;
  }

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

  .country-tile {
    padding: var(--sp-4);
  }

  .rankings-layout {
    gap: var(--sp-5);
  }

  .filter-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
  }

  .filter-group select,
  .filter-group input {
    min-height: 44px;
    font-size: 1rem;
  }

  .rankings-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }

  .sort-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
  }

  .sort-bar > span {
    grid-column: 1 / -1;
    margin-right: 0 !important;
  }

  .sort-bar button,
  .chip {
    min-height: 42px;
    padding: 9px 12px;
    line-height: 1.2;
  }

  .rank-list {
    border-top: 0;
  }

  .rank-row {
    grid-template-columns: 52px 58px minmax(0, 1fr);
    gap: var(--sp-3);
    align-items: start;
    padding: var(--sp-4) 0;
    position: relative;
  }

  .rank-row__rank {
    font-size: 1.35rem;
    padding-top: 3px;
    padding-right: 0;
  }

  .rank-row__thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
  }

  .rank-row__name h3 {
    font-size: 1.08rem;
    line-height: 1.18;
    margin-right: 44px;
  }

  .rank-row__name .native {
    font-size: 0.82rem;
    margin-bottom: var(--sp-1);
  }

  .rank-row__name .desc {
    display: none;
  }

  .rank-row__country {
    grid-column: 2 / -1;
    gap: var(--sp-2);
    margin-top: calc(-1 * var(--sp-2));
  }

  .rank-row__country .country-flag {
    width: 20px;
    height: 14px;
  }

  .rank-row__country .country-region,
  .rank-row__country .country-iso,
  .rank-row__country .dish-chips {
    display: none;
  }

  .rank-row__country .country-stack__top {
    flex-wrap: wrap;
    gap: 4px;
  }

  .rank-row__country .country-name {
    font-size: 0.84rem;
  }

  .rank-row__overall {
    position: absolute;
    top: var(--sp-4);
    right: 0;
    min-width: 38px;
    text-align: right;
  }

  .rank-row__overall {
    font-size: 1.35rem;
  }

  .rank-row__overall small {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--sp-2);
  }

  .pagination__btn {
    flex: 0 0 auto;
    min-width: 40px;
    min-height: 40px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .kpi {
    padding: var(--sp-4);
  }

  .kpi__value {
    font-size: 2.4rem;
  }

  .chart-card {
    padding: var(--sp-4);
    border-radius: var(--radius-md);
  }

  .hbar-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .hbar-row__label > span {
    white-space: normal;
  }

  .hbar-row__val {
    text-align: left;
  }

  .score-distribution__row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: var(--sp-3);
  }

  .score-distribution__value {
    grid-column: 2;
    justify-content: flex-start;
  }

  .pie-wrap {
    grid-template-columns: 1fr;
  }

  .dish-hero {
    gap: var(--sp-5);
    padding: var(--sp-6) 0;
  }

  .dish-hero__native {
    font-size: 1.05rem;
    gap: var(--sp-2);
  }

  .dish-hero__country {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .dish-hero__meta {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .dish-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .score-card {
    padding: var(--sp-4);
  }

  .score-card__lbl {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .score-card__val {
    font-size: 2.35rem;
  }

  .panel {
    padding: var(--sp-4);
    border-radius: var(--radius-md);
  }

  .panel > div[style*="display: flex"] {
    flex-wrap: wrap;
    align-items: flex-start !important;
  }

  .panel > div[style*="display: flex"] > span[style*="margin-left: auto"] {
    width: 100%;
    margin-left: 0 !important;
  }

  .dish-cols {
    gap: var(--sp-5);
  }

  .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
  }

  .table-scroll table {
    min-width: 520px;
  }

  .nutrition-table td {
    padding: var(--sp-2) var(--sp-2) var(--sp-2) 0;
    font-size: 0.86rem;
    vertical-align: top;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
  }

  .section-head__more {
    justify-self: start;
  }

  .section-head__kicker {
    font-size: 0.95rem;
  }

  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-4,
  .region-score-grid {
    grid-template-columns: 1fr !important;
  }

  .footer {
    padding: var(--sp-7) 0 var(--sp-5);
    margin-top: var(--sp-7);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .footer__bottom {
    display: grid;
    gap: var(--sp-2);
  }

  .dish-breadcrumb {
    padding: var(--sp-4) 0 var(--sp-2);
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .pull-quote {
    margin: var(--sp-6) auto;
    padding: 0 var(--sp-4);
  }

  section.container > div[style*="background: var(--ink)"],
  section.container > div[style*="background: var(--cream-deep)"] {
    padding: var(--sp-5) !important;
    border-radius: var(--radius-md) !important;
  }

  div[style*="font-size: 3.5rem"] {
    font-size: 2.65rem !important;
  }
}

@media (max-width: 420px) {
  .container,
  .topbar__inner {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .topbar__lang {
    margin-right: 2px;
  }

  .lang-selector__trigger {
    padding-right: 7px;
  }

  .lang-selector__code {
    display: none;
  }

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

  .sort-bar,
  .dish-scores {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 52px minmax(0, 1fr);
    gap: var(--sp-2);
  }

  .rank-row__thumb {
    width: 52px;
    height: 52px;
  }

  .rank-row__rank {
    font-size: 1.18rem;
  }

  .rank-row__name h3 {
    font-size: 1rem;
    margin-right: 40px;
  }

  .rank-row__overall {
    font-size: 1.18rem;
  }
}
