/* ============================================================
   THE SMASH SCALE — Global Stylesheet
   Editorial Food Magazine × Data Platform
   ============================================================ */

/* 1. CUSTOM PROPERTIES */
:root {
  --cream:        #FAF6EF;
  --cream-2:      #F2EAD8;
  --cream-3:      #E5D8C0;
  --ember:        #E86209;
  --ember-2:      #FF7A2A;
  --ember-glow:   rgba(232, 98, 9, 0.15);
  --gold:         #C8900A;
  --gold-light:   #E8B84B;
  --char:         #1A1208;
  --char-2:       #2D1E0D;
  --brown:        #6B4220;
  --smoke:        #9A8A74;
  --smoke-light:  #C8BAA8;
  --white:        #FFFDF8;

  /* Score tier colors */
  --score-elite: #E86209;
  --score-great: #C8900A;
  --score-good:  #5A8A3E;
  --score-fair:  #4A80AA;
  --score-below: #8A7A6A;

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-label:   'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;

  /* Space */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 6rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px  rgba(26,18,8,0.08);
  --shadow-md:    0 4px 20px rgba(26,18,8,0.12);
  --shadow-lg:    0 8px 40px rgba(26,18,8,0.18);
  --shadow-ember: 0 4px 24px rgba(232,98,9,0.32);

  --max-w: 1280px;
  --content-w: 900px;
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtle noise grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 700;
}
.display-xl {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  letter-spacing: -0.025em;
  line-height: 0.93;
}
.display-lg  { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.02em; }
.display-md  { font-size: clamp(1.8rem, 3.5vw, 3.2rem); letter-spacing: -0.015em; }
.display-sm  { font-size: clamp(1.4rem, 2.5vw, 2.2rem); letter-spacing: -0.01em; }
.label       { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }
.label-lg    { font-family: var(--font-label); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }

.section-eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ember);
  flex-shrink: 0;
}

/* 4. LAYOUT */
.container        { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--content-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: var(--gap-xl) 0; }
.section-sm { padding: var(--gap-lg) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* 5. NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-3);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo { display: flex; align-items: baseline; gap: 0.6rem; }
.nav-logo-mark {
  font-family: var(--font-label);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--char);
  line-height: 1;
}
.nav-logo-mark span { color: var(--ember); }
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--char-2);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--ember);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--ember); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon-btn {
  background: none; border: none;
  color: var(--char); padding: 0.5rem;
  display: flex; align-items: center;
  transition: color 0.2s;
}
.nav-icon-btn:hover { color: var(--ember); }
.btn-nav {
  background: var(--ember); color: var(--white);
  font-family: var(--font-label); font-size: 0.78rem;
  letter-spacing: 0.1em; padding: 0.6rem 1.4rem;
  border-radius: var(--r-full); border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.btn-nav:hover {
  background: var(--char); transform: translateY(-1px);
  box-shadow: var(--shadow-ember);
}
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--char); padding: 0.5rem; }
.nav-mobile-menu {
  display: none; flex-direction: column;
  background: var(--cream); border-top: 1px solid var(--cream-3);
  padding: 1.25rem 2rem; gap: 1rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-size: 0.92rem; font-weight: 500; color: var(--char-2); padding: 0.5rem 0; border-bottom: 1px solid var(--cream-2); }

/* 6. SMASH SCORE COMPONENT */
.smash-score {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smash-score svg { transform: rotate(-135deg); display: block; }
.smash-score .ss-track { fill: none; stroke: var(--cream-3); }
.smash-score .ss-arc   { fill: none; stroke-linecap: round; stroke-dasharray: 0 9999; transition: stroke-dasharray 1.3s cubic-bezier(0.34,1.4,0.64,1); }
.score-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1; gap: 1px;
}
.score-num  { font-family: var(--font-label); line-height: 1; }
.score-tag  { font-family: var(--font-label); font-size: 0.58em; letter-spacing: 0.08em; color: var(--smoke); text-align: center; line-height: 1.2; }

/* Sizes */
.ss-xl  { width: 180px; height: 180px; }
.ss-xl  .score-num { font-size: 3.6rem; }
.ss-xl  .ss-track, .ss-xl  .ss-arc { stroke-width: 7; }
.ss-lg  { width: 120px; height: 120px; }
.ss-lg  .score-num { font-size: 2.4rem; }
.ss-lg  .ss-track, .ss-lg  .ss-arc { stroke-width: 6; }
.ss-md  { width: 80px; height: 80px; }
.ss-md  .score-num { font-size: 1.55rem; }
.ss-md  .ss-track, .ss-md  .ss-arc { stroke-width: 5; }
.ss-sm  { width: 58px; height: 58px; }
.ss-sm  .score-num { font-size: 1.1rem; }
.ss-sm  .score-tag { display: none; }
.ss-sm  .ss-track, .ss-sm  .ss-arc { stroke-width: 5; }

/* Tier colors */
.tier-elite .ss-arc, .tier-elite .score-num { stroke: var(--score-elite); color: var(--score-elite); }
.tier-great .ss-arc, .tier-great .score-num { stroke: var(--score-great); color: var(--score-great); }
.tier-good  .ss-arc, .tier-good  .score-num { stroke: var(--score-good);  color: var(--score-good); }
.tier-fair  .ss-arc, .tier-fair  .score-num { stroke: var(--score-fair);  color: var(--score-fair); }
.tier-below .ss-arc, .tier-below .score-num { stroke: var(--score-below); color: var(--score-below); }
.tier-elite.ss-xl, .tier-elite.ss-lg { filter: drop-shadow(0 0 14px rgba(232,98,9,0.38)); }

/* 7. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-label); font-size: 0.82rem;
  letter-spacing: 0.1em; padding: 0.85rem 2rem;
  border-radius: var(--r-full); border: none;
  transition: all 0.22s; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--char); transform: translateY(-2px); box-shadow: var(--shadow-ember); }
.btn-outline { background: transparent; color: var(--char); border: 1.5px solid var(--char); }
.btn-outline:hover { background: var(--char); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ember);
  padding: 0; font-size: 0.8rem; letter-spacing: 0.06em;
}
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover { color: var(--char); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* 8. SEARCH BAR */
.search-bar {
  display: flex; align-items: center;
  background: var(--white); border: 2px solid var(--cream-3);
  border-radius: var(--r-full); padding: 0.7rem 0.75rem 0.7rem 1.4rem;
  gap: 0.75rem; max-width: 520px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-glow); }
.search-bar input {
  flex: 1; border: none; outline: none;
  background: transparent; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--char);
}
.search-bar input::placeholder { color: var(--smoke-light); }
.search-bar button {
  background: var(--ember); color: var(--white); border: none;
  border-radius: var(--r-full); padding: 0.55rem 1.2rem;
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.1em; transition: background 0.2s;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--char); }

/* 9. TICKER MARQUEE */
.ticker { background: var(--char); overflow: hidden; padding: 0.65rem 0; }
.ticker-inner {
  display: flex; animation: ticker-scroll 50s linear infinite;
  white-space: nowrap; will-change: transform;
}
.ticker-item {
  font-family: var(--font-label); font-size: 0.75rem;
  letter-spacing: 0.14em; padding: 0 2.5rem;
  display: inline-flex; align-items: center; gap: 0.85rem;
  flex-shrink: 0; color: var(--cream);
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); flex-shrink: 0; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 10. CARDS — Restaurant */
.restaurant-card {
  background: var(--white); border: 1px solid var(--cream-3);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.restaurant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rc-img-wrap { position: relative; overflow: hidden; }
.rc-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.55s; display: block; }
.restaurant-card:hover .rc-img { transform: scale(1.05); }
.rc-rank-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--char); color: var(--cream);
  font-family: var(--font-label); font-size: 0.68rem;
  letter-spacing: 0.1em; padding: 0.3rem 0.65rem;
  border-radius: var(--r-sm);
}
.rc-score-pos { position: absolute; top: 0.7rem; right: 0.7rem; }
.rc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.rc-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.25rem; }
.rc-meta { font-size: 0.8rem; color: var(--smoke); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.rc-meta .sep { color: var(--smoke-light); }
.rc-desc { font-size: 0.86rem; color: var(--brown); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--cream-2); }

/* 10b. CARDS — Article */
.article-card {
  background: var(--white); border: 1px solid var(--cream-3);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ac-img-wrap { overflow: hidden; }
.ac-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; display: block; }
.article-card:hover .ac-img { transform: scale(1.05); }
.ac-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.ac-tag { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.15em; color: var(--ember); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.ac-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
.ac-excerpt { font-size: 0.84rem; color: var(--smoke); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--cream-2); font-size: 0.78rem; color: var(--smoke); }

/* 10c. STATE CARD */
.state-card {
  background: var(--white); border: 1.5px solid var(--cream-3);
  border-radius: var(--r-md); padding: 1.1rem 1.35rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.22s; cursor: pointer;
}
a.state-card:hover, .state-card:hover {
  border-color: var(--ember); background: var(--cream);
  transform: translateX(4px); box-shadow: var(--shadow-sm);
}
.sc-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.sc-count { font-size: 0.78rem; color: var(--smoke); margin-top: 0.2rem; }
.sc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.sc-top-score { font-family: var(--font-label); font-size: 1.1rem; color: var(--ember); }
.sc-top-label { font-size: 0.68rem; color: var(--smoke); }

/* 11. HERO */
.hero { position: relative; overflow: hidden; }
.hero-shell { max-width: 1440px; margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; min-height: clamp(560px, calc(100svh - 70px), 720px); }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 5vw, 5.5rem); }
.hero-eyebrow {
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.25em; color: var(--ember);
  text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 36px; height: 1.5px; background: var(--ember); }
.hero-title {
  font-size: clamp(3.35rem, 4.7vw, 5rem);
  letter-spacing: -0.018em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.hero-title em { font-style: italic; color: var(--ember); }
.hero-desc { font-size: 1.05rem; color: var(--brown); line-height: 1.65; max-width: 460px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero .search-bar { max-width: 430px; border: 1px solid var(--brown); border-radius: 0; background: transparent; padding: 0.55rem 0.65rem 0.55rem 0.9rem; }
.hero .search-bar button { background: transparent; color: var(--ember); padding: 0.45rem 0.55rem; }
.hero .search-bar button:hover { background: transparent; color: var(--char); }
.hero-mobile-links { display: none; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.2rem; padding-top: 1.65rem; border-top: 1px solid var(--cream-3); flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-label); font-size: 1.85rem; letter-spacing: -0.01em; color: var(--char); line-height: 1; }
.hero-stat-label { font-size: 0.76rem; color: var(--smoke); letter-spacing: 0.04em; margin-top: 0.25rem; }

.hero-visual { position: relative; min-height: 100%; }
.hero-img-wrap { height: 100%; overflow: hidden; background: var(--brown); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform 7s ease; }
.hero-img-wrap.is-portrait .hero-img { object-fit: contain; object-position: center center; }
.hero-img-wrap:hover .hero-img { transform: scale(1.05); }
.hero-float-card {
  position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 2;
  display: flex; align-items: center; gap: 0.85rem;
  min-width: 230px; padding: 0.8rem 1rem 0.8rem 0.8rem;
  background: rgba(250,246,239,0.96); border-left: 3px solid var(--ember);
  box-shadow: var(--shadow-md);
}
.hfc-info h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.hfc-info p { font-size: 0.75rem; color: var(--smoke); margin-top: 0.16rem; }
.hfc-badge { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ember); margin-top: 0.4rem; }

/* 12. SECTION HEADER */
.section-header { margin-bottom: 2.75rem; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.section-title em { font-style: italic; color: var(--ember); }
.section-desc { font-size: 0.92rem; color: var(--smoke); margin-top: 0.65rem; max-width: 480px; line-height: 1.6; }

/* 13. RANKING LIST */
.rankings-list { display: flex; flex-direction: column; gap: 0.85rem; }
.ranking-item {
  display: grid; grid-template-columns: 44px 76px 1fr auto;
  align-items: center; gap: 1.35rem;
  background: var(--white); border-radius: var(--r-md);
  padding: 0.9rem 1.4rem; border: 1px solid var(--cream-3);
  transition: all 0.22s; cursor: pointer;
}
.ranking-item:hover { border-color: var(--ember); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.rank-num { font-family: var(--font-label); font-size: 1.55rem; color: var(--smoke-light); line-height: 1; }
.rank-num.top3 { color: var(--ember); }
.rank-img { width: 76px; height: 58px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.rank-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.rank-info p { font-size: 0.79rem; color: var(--smoke); margin-top: 0.15rem; }
.rank-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.rank-tag { font-size: 0.68rem; background: var(--cream-2); color: var(--brown); padding: 0.18rem 0.5rem; border-radius: var(--r-full); font-weight: 500; }

.city-hero-bg {
  position: relative;
  background: var(--char);
  overflow: hidden;
  padding: 2.75rem 0 2rem;
  color: var(--cream);
}
.city-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  display: block;
}
.city-hero-bg .container { position: relative; z-index: 1; }
.city-hero-bg .page-hero-eyebrow { color: var(--ember-2); }
.city-hero-bg .page-hero-eyebrow::before { background: var(--ember-2); }
.city-hero-bg h1 { color: var(--white); }
.city-hero-bg .page-hero-meta { color: rgba(250,246,239,0.65); }
.city-hero-bg .page-hero-meta strong { color: var(--ember-2); }
.ranking-hero-header { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; }
.ranking-hero-header h1 { font-family:var(--font-display); font-size:clamp(3rem,7vw,5.5rem); font-weight:700; letter-spacing:-0.025em; line-height:.95; }
.ranking-hero-score { display:grid; grid-template-columns:auto auto; column-gap:.6rem; align-items:baseline; padding:.6rem 0 .55rem 1rem; border-left:1px solid rgba(255,255,255,.22); text-align:right; }
.ranking-hero-score span { grid-column:1 / -1; font-family:var(--font-label); font-size:.58rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(250,246,239,.55); }
.ranking-hero-score strong { font-family:var(--font-label); font-size:2.35rem; line-height:1; color:var(--ember-2); }
.ranking-hero-score small { grid-column:1 / -1; max-width:240px; font-size:.7rem; line-height:1.35; color:rgba(250,246,239,.66); }
.ranking-hero-summary { margin-top:.9rem; max-width:620px; font-size:.95rem; color:rgba(250,246,239,.72); line-height:1.65; }
.ranking-hero-pills { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.25rem; }
.neighborhood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--cream);
}
.neighborhood-pill.active {
  background: var(--ember);
  border-color: var(--ember);
}
.list-card {
  display: grid;
  grid-template-columns: 44px 100px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-md);
  padding: 1rem 1.4rem;
  transition: all 0.22s;
  cursor: pointer;
}
.list-card:hover {
  border-color: var(--ember);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.list-card-img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.list-card-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}
.list-card-sub {
  font-size: 0.8rem;
  color: var(--smoke);
  margin-top: 0.2rem;
}
.list-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}
.list-card-highlight {
  font-size: 0.82rem;
  color: var(--brown);
  font-style: italic;
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.score-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--cream-2);
  border-radius: var(--r-md);
  border: 1px solid var(--cream-3);
  margin-bottom: 2rem;
}
.score-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.score-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* 14. SCORE BREAKDOWN */
.score-breakdown { display: flex; flex-direction: column; gap: 1rem; }
.score-component { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 1rem; }
.sc-label { font-size: 0.82rem; font-weight: 500; color: var(--char-2); }
.sc-label small { display: block; font-size: 0.68rem; color: var(--smoke); font-weight: 400; }
.sc-bar-track { height: 7px; background: var(--cream-2); border-radius: var(--r-full); overflow: hidden; }
.sc-bar-fill { height: 100%; border-radius: var(--r-full); background: var(--ember); width: 0; transition: width 1.3s cubic-bezier(0.34,1.4,0.64,1); }
.sc-value { font-family: var(--font-label); font-size: 1rem; color: var(--char); text-align: right; }

/* 15. PHOTO GALLERY */
.photo-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.65rem; border-radius: var(--r-lg); overflow: hidden; }
.pg-main { grid-row: span 2; height: 420px; overflow: hidden; }
.pg-thumb { height: 200px; overflow: hidden; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s; cursor: zoom-in; }
.photo-gallery img:hover { transform: scale(1.04); }
.restaurant-map-link { color: inherit; text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.restaurant-map-link:hover { color: var(--ember); }
.profile-jump-nav { display: none; }

/* Restaurant profile mobile introduction. The full gallery remains available below on desktop. */
.restaurant-mobile-hero { display: none; }

/* 16. REVIEWS */
.review-card {
  background: var(--white); border: 1px solid var(--cream-3);
  border-radius: var(--r-md); padding: 1.4rem 1.5rem;
  position: relative;
}
.review-quote-mark {
  font-family: var(--font-display); font-size: 5rem;
  color: var(--cream-3); position: absolute;
  top: 0.4rem; left: 1.25rem; line-height: 1;
  pointer-events: none; user-select: none;
}
.review-text { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; line-height: 1.55; color: var(--char-2); padding-top: 0.75rem; position: relative; z-index: 1; }
.review-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--cream-2); }
.review-source-logo { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-label); font-size: 0.45rem; letter-spacing: 0.04em; color: var(--smoke); flex-shrink: 0; }
.review-source-name { font-size: 0.82rem; font-weight: 600; color: var(--char); }
.review-source-tier { font-size: 0.7rem; color: var(--smoke); }
.review-source-score { margin-left: auto; font-family: var(--font-label); font-size: 0.95rem; color: var(--ember); }

/* 17. ACCOLADES */
.accolade-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: linear-gradient(135deg, var(--cream-2), var(--white));
  border: 1px solid var(--gold-light); border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.accolade-icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1; margin-top: 0.1rem; }
.accolade-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; line-height: 1.25; }
.accolade-detail { font-size: 0.77rem; color: var(--smoke); margin-top: 0.25rem; }

/* 18. BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--smoke); padding: 1.1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--smoke); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb-sep { color: var(--smoke-light); font-size: 0.68rem; }
.breadcrumb-current { color: var(--char); font-weight: 500; }

/* 19. TAGS */
.tag { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; padding: 0.28rem 0.75rem; border-radius: var(--r-full); background: var(--cream-2); color: var(--brown); cursor: pointer; transition: all 0.2s; border: 1.5px solid transparent; }
.tag:hover, .tag.active { background: var(--ember); color: var(--white); border-color: var(--ember); }
.tag-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* 20. DIVIDERS */
.divider       { height: 1px; background: var(--cream-3); }
.divider-ember { height: 2px; background: linear-gradient(90deg, var(--ember) 0%, transparent 100%); }

/* 21. TIER BADGE */
.tier-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-label); font-size: 0.65rem;
  letter-spacing: 0.12em; padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}
.tier-badge-elite { background: rgba(232,98,9,0.12); color: var(--ember); }
.tier-badge-great { background: rgba(200,144,10,0.12); color: var(--gold); }
.tier-badge-a { background: rgba(232,98,9,0.1); color: var(--ember); }
.tier-badge-b { background: rgba(200,144,10,0.1); color: var(--gold); }

/* 22. INFO BOX */
.info-box { background: var(--white); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: 1.5rem; }
.info-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--cream-2); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; margin-top: 0.1rem; }
.info-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); font-weight: 500; margin-bottom: 0.15rem; }
.info-value { font-size: 0.9rem; color: var(--char); font-weight: 500; line-height: 1.4; }

/* 23. SECTION BG VARIANTS */
.bg-cream   { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-white   { background: var(--white); }
.bg-char    { background: var(--char); color: var(--cream); }
.bg-char .section-eyebrow { color: var(--ember-2); }
.bg-char .section-eyebrow::before { background: var(--ember-2); }
.bg-char .section-title  { color: var(--cream); }
.bg-char .section-desc   { color: var(--smoke-light); }
.bg-char .divider { background: rgba(255,255,255,0.1); }
.bg-char .state-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--cream); }
.bg-char .state-card:hover { background: rgba(255,255,255,0.1); border-color: var(--ember); }
.bg-char .sc-count { color: var(--smoke-light); }

/* 24. ARTICLE BODY */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--char-2); }
.article-body h2 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--char); }
.article-body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--char); }
.article-body p  { margin-bottom: 1.35rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--char); font-weight: 600; }
.article-body img { border-radius: var(--r-md); margin: 2rem 0; width: 100%; }
.pull-quote {
  border-left: 4px solid var(--ember); padding: 1rem 1.5rem;
  margin: 2.5rem 0; background: var(--cream-2); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pull-quote p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--char); line-height: 1.5; margin: 0; }

/* 25. CITY/PAGE HERO BAND */
.page-hero {
  background: var(--cream-2); padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--cream-3); position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--cream-3));
  pointer-events: none;
}
.page-hero-eyebrow {
  font-family: var(--font-label); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--ember); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.0; margin-bottom: 0.75rem; }
.page-hero-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--smoke); margin-top: 1rem; }
.page-hero-meta .sep { color: var(--smoke-light); }
.page-hero-score { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }

/* 25b. STATES DIRECTORY */
.states-finder-hero {
  background: var(--cream-2);
  border-bottom: 1px solid var(--cream-3);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.states-finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}
.states-finder-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.states-finder-intro > p {
  max-width: 570px;
  margin-top: 1.35rem;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.65;
}
.states-finder-intro .page-hero-meta { margin-top: 1.35rem; }
.state-finder { border-top: 2px solid var(--char); padding-top: 1rem; }
.state-finder label {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--char);
}
.state-finder-field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 2px solid var(--char);
  padding: 0.75rem 0.1rem;
  color: var(--ember);
}
.state-finder-field:focus-within { border-color: var(--ember); }
.state-finder-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--char);
  font: 600 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--font-display);
}
.state-finder-field input::placeholder { color: var(--smoke-light); opacity: 1; }
.state-finder-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  color: var(--ember);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.state-finder-match:hover { color: var(--char); }
.state-finder-status { margin-top: 0.85rem; color: var(--smoke); font-size: 0.82rem; }
.states-directory-section { padding: clamp(3.5rem, 7vw, 6.25rem) 0; }
.states-directory-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.states-directory-heading p { max-width: 260px; color: var(--smoke); font-size: 0.9rem; line-height: 1.55; }
.state-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--cream-3);
  border-left: 1px solid var(--cream-3);
}
.state-quick-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.45rem;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--cream-3);
  border-bottom: 1px solid var(--cream-3);
  color: var(--char);
  transition: background 0.2s, color 0.2s;
}
.state-quick-link span { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.1; }
.state-quick-link small { color: var(--smoke); font-size: 0.7rem; white-space: nowrap; }
.state-quick-link:hover { background: var(--char); color: var(--cream); }
.state-quick-link:hover small { color: var(--ember-2); }
.state-quick-link.is-filtered-out, .state-list-row.is-filtered-out { display: none; }
.featured-state-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.state-directory-list { border-top: 1px solid var(--cream-3); }
.state-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--cream-3);
  color: var(--char);
  transition: color 0.2s, padding 0.2s;
}
.state-list-row:hover { color: var(--ember); padding-left: 0.8rem; padding-right: 0.8rem; }
.state-list-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.state-list-meta { color: var(--smoke); font-size: 0.8rem; }
.state-list-score { color: var(--ember); font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.08em; white-space: nowrap; }
.state-list-arrow { color: var(--ember); font-size: 1.2rem; }

/* 25c. CREDIBILITY PAGES */
.credibility-hero { position: relative; min-height: min(680px, calc(100svh - 70px)); display: flex; align-items: flex-end; overflow: hidden; background: var(--char); color: var(--cream); }
.credibility-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,16,9,.9) 0%, rgba(25,16,9,.58) 48%, rgba(25,16,9,.12) 100%); }
.credibility-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.credibility-hero-content { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: clamp(4rem, 9vw, 8rem); }
.credibility-hero .page-hero-eyebrow { color: var(--ember-2); }
.credibility-hero .page-hero-eyebrow::before { background: var(--ember-2); }
.credibility-hero h1, .methodology-hero h1 { max-width: 760px; font-family: var(--font-display); font-size: clamp(3.7rem, 8vw, 7.4rem); font-weight: 700; line-height: .9; letter-spacing: -.045em; }
.credibility-hero h1 em, .methodology-hero h1 em { color: var(--ember-2); }
.credibility-hero p { max-width: 570px; margin-top: 1.5rem; color: rgba(250,246,239,.78); font-size: 1.05rem; line-height: 1.65; }
.credibility-copy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 10vw, 9rem); }
.credibility-prose { color: var(--brown); font-size: 1.06rem; line-height: 1.8; }
.credibility-prose p + p { margin-top: 1.35rem; }
.credibility-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cream-3); }
.credibility-principles > div { min-height: 230px; padding: 1.5rem 2rem 1.5rem 0; margin-right: 2rem; border-right: 1px solid var(--cream-3); }
.credibility-principles > div:last-child { border-right: 0; margin-right: 0; }
.credibility-principles span { font-family: var(--font-label); font-size: .75rem; color: var(--ember); letter-spacing: .12em; }
.credibility-principles h3, .methodology-signals h3 { margin-top: 2.1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.credibility-principles p, .methodology-signals p { margin-top: .65rem; color: var(--smoke); font-size: .87rem; line-height: 1.65; }
.credibility-principle-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.credibility-principle-cards article { display: flex; min-height: 250px; flex-direction: column; padding: 1.35rem; background: var(--white); border: 1px solid var(--cream-3); border-radius: var(--r-lg); transition: transform .25s, box-shadow .25s, border-color .25s; }
.credibility-principle-cards article:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: var(--shadow-md); }
.credibility-principle-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--ember); font-family: var(--font-label); font-size: 1.1rem; }
.credibility-principle-cards h3 { margin-top: 1.85rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.12; }
.credibility-principle-cards p { margin-top: .65rem; color: var(--smoke); font-size: .86rem; line-height: 1.6; }
.credibility-principle-card-footer { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--cream-2); color: var(--ember); font-family: var(--font-label); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.credibility-cta { text-align: center; }
.credibility-cta .section-eyebrow { justify-content: center; }
.credibility-cta .section-title { max-width: 720px; margin: 0 auto; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.credibility-cta-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.credibility-cta .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.36); }
.methodology-hero { position: relative; overflow: hidden; background: var(--char); color: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 7vw, 6rem); }
.methodology-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,16,9,.9) 0%, rgba(25,16,9,.62) 52%, rgba(25,16,9,.2) 100%); }
.methodology-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.methodology-hero > .container { position: relative; z-index: 1; }
.methodology-hero .page-hero-eyebrow { color: var(--ember-2); }
.methodology-hero .page-hero-eyebrow::before { background: var(--ember-2); }
.methodology-hero > .container > p { max-width: 550px; margin-top: 1.45rem; color: rgba(250,246,239,.78); font-size: 1.05rem; line-height: 1.65; }
.methodology-intro { padding-top: 0; color: var(--brown); font-size: 1.03rem; line-height: 1.75; }
.methodology-lede { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.35; color: var(--char); margin-bottom: 1.35rem; }
.methodology-signals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cream-3); }
.methodology-signals article { padding: 1.5rem 1.5rem 1.75rem 0; margin-right: 1.5rem; border-right: 1px solid var(--cream-3); }
.methodology-signals article:last-child { border-right: 0; margin-right: 0; }
.methodology-weight { font-family: var(--font-label); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--ember); }
.methodology-weight-gold { color: var(--gold); }

/* 26. FILTER BAR */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--cream-3);
  padding: 1rem 0; position: sticky; top: 70px; z-index: 100;
}
.filter-bar-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.filter-label { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--smoke); white-space: nowrap; }
.filter-select {
  font-family: var(--font-body); font-size: 0.82rem;
  border: 1.5px solid var(--cream-3); border-radius: var(--r-full);
  padding: 0.35rem 0.9rem; background: var(--cream);
  color: var(--char); outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:hover, .filter-select:focus { border-color: var(--ember); }

/* 27. FEATURED ARTICLE HERO */
.featured-article {
  background: var(--char); color: var(--cream);
  border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.fa-img-wrap { overflow: hidden; }
.fa-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.featured-article:hover .fa-img { transform: scale(1.04); }
.fa-body { padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; }
.fa-tag { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.15em; color: var(--ember-2); margin-bottom: 0.75rem; display: block; }
.fa-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; color: var(--white); }
.fa-excerpt { font-size: 0.9rem; color: rgba(250,246,239,0.7); line-height: 1.6; margin-bottom: 1.5rem; }
.fa-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: rgba(250,246,239,0.5); }

/* 28. REVEAL ANIMATIONS */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd-1 { transition-delay: 0.1s; }
.rd-2 { transition-delay: 0.2s; }
.rd-3 { transition-delay: 0.3s; }
.rd-4 { transition-delay: 0.4s; }
.rd-5 { transition-delay: 0.5s; }

/* 29. FOOTER */
.footer { background: var(--char); color: var(--cream); padding: 4rem 0 2rem; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand-name { font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-brand-name span { color: var(--ember); }
.footer-brand-desc { font-size: 0.86rem; color: var(--smoke-light); line-height: 1.65; max-width: 270px; }
.footer-col h4 { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--smoke); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li a { font-size: 0.86rem; color: var(--smoke-light); transition: color 0.2s; }
.footer-col li a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--smoke); flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom a { color: var(--smoke); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--ember); }

/* Restaurant affiliate product unit. Product content is hydrated from the
   server-side Amazon Creators API pool; the reserved frame prevents layout shift. */
.restaurant-product-ad-shell {
  width: 100%; max-width: 728px; min-width: 0; min-height: 116px; margin-top: 1.5rem;
}
.restaurant-product-ad-shell.is-empty { display: none; min-height: 0; margin: 0; }
.restaurant-product-ad-placeholder {
  width: 100%; height: 90px; border: 1px solid #dce4ee; border-left: 7px solid #1477d4; background: rgba(255,255,255,.55);
}
.restaurant-product-ad { position: relative; width: 100%; max-width: 728px; min-width: 0; }
.restaurant-product-ad-link {
  display: grid; grid-template-columns: 98px 118px minmax(190px,1fr) 92px 142px; align-items: stretch;
  width: 100%; height: 90px; overflow: hidden; border: 1px solid #dce4ee; border-left: 7px solid #1477d4;
  background: #fff; color: #0c1933; box-shadow: 0 5px 16px rgba(14,35,69,.12); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.restaurant-product-ad-link:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(14,35,69,.18); }
.restaurant-product-ad-kicker {
  display: flex; flex-direction: column; justify-content: center; padding: 0 12px;
  font-family: Outfit, sans-serif; font-size: 10px; font-weight: 700; line-height: 1.08; color: #1477d4; text-transform: uppercase;
}
.restaurant-product-ad-kicker small { margin-top: 5px; font-size: 7px; font-weight: 500; line-height: 1.2; color: #718096; text-transform: none; }
.restaurant-product-ad-image {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; background: #e2fbf7;
}
.restaurant-product-ad-image img { display: block; width: 100%; height: 100%; padding: 8px; object-fit: contain; mix-blend-mode: multiply; }
.restaurant-product-ad-image span { display: none; }
.restaurant-product-ad-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 8px 12px; }
.restaurant-product-ad-copy strong { display: block; font-family: Outfit, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.13; color: #0c1933; }
.restaurant-product-ad-copy span { display: block; margin-top: 4px; font-size: 9px; font-weight: 600; line-height: 1.15; color: #58708d; }
.restaurant-product-ad-price {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; border-left: 1px solid #e7edf4;
  font-family: Outfit, sans-serif; color: #0c1933;
}
.restaurant-product-ad-price-line { white-space: nowrap; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.restaurant-product-ad-price-currency { margin-right: 1px; font-size: 11px; vertical-align: 7px; letter-spacing: normal; }
.restaurant-product-ad-price-major { font-size: 22px; }
.restaurant-product-ad-price-minor { margin-left: 1px; font-size: 10px; vertical-align: 9px; letter-spacing: normal; }
.restaurant-product-ad-price-label { margin-top: 5px; font-size: 6px; font-weight: 700; letter-spacing: .04em; color: #8491a1; text-transform: uppercase; }
.restaurant-product-ad-cta-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 10px 0 8px; }
.restaurant-product-ad-cta {
  display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 0 9px;
  border-radius: 3px; background: #ffcf26; color: #10213a; box-shadow: 0 3px 0 #d5a900;
  font-family: Outfit, sans-serif; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; text-transform: uppercase;
}
.restaurant-product-ad-legal { margin: 6px 0 0; font-size: 9px; line-height: 1.35; color: var(--smoke); }
.restaurant-product-ad-legal details { display: inline; }
.restaurant-product-ad-legal summary { display: inline; cursor: pointer; color: #1477d4; text-decoration: underline; }
.restaurant-product-ad-legal details[open] { display: block; margin-top: 3px; }
.restaurant-product-ad-legal details span { display: block; max-width: 700px; margin-top: 3px; }

@media (max-width: 900px) {
  .restaurant-product-ad-shell { max-width: none; min-height: 128px; margin-top: 1.5rem; overflow: visible; }
  .restaurant-product-ad-placeholder { height: 100px; border-left-width: 4px; }
  .restaurant-product-ad-link {
    position: relative; grid-template-columns: minmax(72px,88px) minmax(0,1fr); grid-template-rows: 56px 43px;
    height: 100px; border-left-width: 4px; box-shadow: 0 4px 12px rgba(14,35,69,.1);
  }
  .restaurant-product-ad-kicker { display: none; }
  .restaurant-product-ad-image { grid-column: 1; grid-row: 1 / 3; background: #fff; }
  .restaurant-product-ad-image img { height: 100%; padding: 6px; mix-blend-mode: normal; }
  .restaurant-product-ad-copy { grid-column: 2; grid-row: 1; padding: 7px 64px 3px 8px; }
  .restaurant-product-ad-copy strong { font-size: clamp(9px,2.8vw,11px); line-height: 1.12; }
  .restaurant-product-ad-copy span { margin-top: 3px; font-size: 7px; }
  .restaurant-product-ad-price {
    position: absolute; top: 7px; right: 7px; display: block; width: 57px; border: 0; text-align: right;
  }
  .restaurant-product-ad-price-major { font-size: 20px; }
  .restaurant-product-ad-price-currency { font-size: 9px; vertical-align: 6px; }
  .restaurant-product-ad-price-minor { font-size: 8px; vertical-align: 8px; }
  .restaurant-product-ad-price-label { display: none; }
  .restaurant-product-ad-cta-wrap { grid-column: 2; grid-row: 2; padding: 2px 8px 7px; }
  .restaurant-product-ad-cta { min-height: 34px; font-size: 9px; }
  .restaurant-product-ad-legal { font-size: 8px; }
}

@media (max-width: 360px) {
  .restaurant-product-ad-link { grid-template-columns: 72px minmax(0,1fr); }
  .restaurant-product-ad-copy { padding-right: 58px; }
  .restaurant-product-ad-copy strong { font-size: 9px; }
  .restaurant-product-ad-price { right: 5px; width: 52px; }
  .restaurant-product-ad-cta-wrap { padding-left: 6px; padding-right: 6px; }
}

/* 30. RESPONSIVE */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .featured-article { grid-template-columns: 1fr; }
  .fa-img-wrap { height: 280px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: block; min-height: 0; order: -1; }
  .hero-img-wrap { height: clamp(280px, 62vw, 430px); }
  .hero-float-card { left: 1.25rem; bottom: 1.25rem; }
  .hero-content { padding: 2.75rem max(1.5rem, calc((100vw - var(--max-w)) / 2 + 2rem)) 3.25rem; }
  .hero-title { font-size: clamp(3.25rem, 12vw, 5rem); }
  .hero .search-bar { display: none; }
  .hero-mobile-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.4rem; }
  .hero-rankings-link, .hero-states-link { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 0.45rem; border-bottom: 2px solid currentColor; }
  .hero-rankings-link { color: var(--ember); }
  .hero-states-link { color: var(--char); }
  .hero-rankings-link span, .hero-states-link span { font-size: 1.35rem; line-height: 0.7; transition: transform 0.2s; }
  .hero-rankings-link:hover, .hero-states-link:hover { color: var(--ember); }
  .hero-rankings-link:hover span, .hero-states-link:hover span { transform: translateX(4px); }
  .photo-gallery { grid-template-columns: 1fr; }
  .pg-main { height: 280px; }
  .pg-thumb { display: none; }
  .restaurant-mobile-hero { display: block; position: relative; background: var(--cream-2); }
  .restaurant-mobile-hero-photo { height: clamp(265px, 70vw, 390px); overflow: hidden; background: var(--char); }
  .restaurant-mobile-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
  .restaurant-mobile-score-card {
    position: absolute; left: max(1.25rem, calc((100vw - var(--max-w)) / 2 + 1.5rem)); bottom: -2.5rem; z-index: 2;
    min-width: 204px; display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 1rem 0.65rem 0.7rem;
    background: var(--white); border: 1px solid var(--cream-3); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  }
  .restaurant-mobile-score-ring {
    width: 58px; height: 58px; border: 3px solid var(--ember); border-radius: 50%; flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  }
  .restaurant-mobile-score-ring strong { font-family: var(--font-label); color: var(--ember); font-size: 1.7rem; font-weight: 400; }
  .restaurant-mobile-score-ring span { margin-top: 0.08rem; font-family: var(--font-label); color: var(--smoke); font-size: 0.42rem; letter-spacing: 0.08em; line-height: 0.85; text-align: center; text-transform: uppercase; }
  .restaurant-mobile-score-copy { display: flex; flex-direction: column; gap: 0.18rem; }
  .restaurant-mobile-score-copy > span { font-family: var(--font-label); color: var(--smoke); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
  .restaurant-mobile-score-copy > strong { font-family: var(--font-display); color: var(--char); font-size: 1rem; font-weight: 700; line-height: 1.05; }
  .restaurant-gallery-section { display: none; }
  .profile-jump-nav { display: block; position: sticky; top: 70px; z-index: 120; background:rgba(255,253,248,0.96); border-top:1px solid var(--cream-3); border-bottom:1px solid var(--cream-3); box-shadow:0 5px 14px rgba(26,18,8,0.05); }
  .profile-jump-nav-inner { display:flex; align-items:stretch; justify-content:space-between; gap:0.45rem; padding:0 max(1.25rem, calc((100vw - var(--max-w)) / 2 + 1.5rem)); }
  .profile-jump-nav a { flex:1 1 0; min-width:0; padding:0.8rem 0 0.7rem; border-bottom:2px solid transparent; color:var(--smoke); font-family:var(--font-label); font-size:0.72rem; letter-spacing:0.08em; line-height:1; text-align:center; text-decoration:none; text-transform:uppercase; white-space:nowrap; transition:color 0.2s, border-color 0.2s; }
  .profile-jump-nav a:hover, .profile-jump-nav a.is-active { color:var(--ember); border-bottom-color:var(--ember); }
  [id^="profile-"] { scroll-margin-top:135px; }
  .burger-details-grid { grid-template-columns:1fr !important; gap:0.8rem !important; }
  .burger-details-grid .info-box { padding:1.15rem 1.25rem; }
  .restaurant-header { padding: 4.25rem 0 2.5rem !important; border-bottom: 0 !important; }
  .restaurant-header-inner > .score-panel { display: none; }
  .restaurant-header-inner > div:first-child > div:first-child { display: none; }
  .restaurant-header .rank-tag { display: none; }
  .restaurant-header .restaurant-name { font-size: clamp(2.55rem, 11vw, 3.5rem); }
  .restaurant-header .burger-name { margin-bottom: 0.75rem; }
  .restaurant-header .restaurant-meta-row { margin-bottom: 0.85rem; font-size: 0.82rem; }
  .restaurant-header .restaurant-meta-row .sep { display: none; }
  .restaurant-header .restaurant-meta-row span { white-space: nowrap; }
  .restaurant-header .restaurant-meta-row:first-of-type span:first-child::after { content: "·"; margin-left: 0.55rem; color: var(--smoke-light); }
  .restaurant-header .restaurant-score-updated { color:var(--smoke); }
  .restaurant-header .restaurant-meta-row + .restaurant-meta-row { margin-top: -0.35rem; font-size: 0.78rem; }
  .restaurant-header p[style] { margin: 1.15rem 0 1.35rem !important; font-size: 0.94rem !important; }
  .score-component { grid-template-columns: 90px 1fr 38px; gap: 0.75rem; }
  .ranking-hero-header { align-items:flex-start; }
  .states-finder-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .state-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .methodology-signals { grid-template-columns: repeat(2, 1fr); }
  .methodology-signals article:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions .btn-nav { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; }
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .city-hero-bg { padding:2.25rem 0 1.5rem; }
  .ranking-hero-header { align-items:flex-end; gap:1rem; }
  .ranking-hero-header h1 { font-size:clamp(2.8rem,14vw,4rem); }
  .ranking-hero-score { min-width:76px; padding:.35rem 0 .35rem .7rem; }
  .ranking-hero-score strong { font-size:2rem; }
  .ranking-hero-score small { display:none; }
  .ranking-hero-header.is-long-name { flex-wrap:wrap; }
  .ranking-hero-header.is-long-name > div:first-child { flex-basis:100%; min-width:0; }
  .ranking-hero-header.is-long-name h1 { font-size:clamp(2.35rem,11.5vw,3.2rem); letter-spacing:-.035em; }
  .ranking-hero-header.is-long-name .ranking-hero-score { margin-left:auto; }
  .ranking-hero-summary { font-size:.88rem; margin-top:.8rem; }
  .ranking-hero-pills { margin-top:1rem; }
  .ranking-item { grid-template-columns: 36px 60px 1fr; }
  .ranking-item:not(.list-card) > .smash-score { display: none; }
  /* City ranking cards keep the score visible without letting the desktop
     fourth column spill beyond a narrow viewport. */
  .list-card {
    position: relative;
    grid-template-columns: 34px 72px minmax(0, 1fr) !important;
    gap: 0.8rem !important;
    padding: 0.9rem !important;
  }
  .list-card.reveal { opacity: 1; transform: none; }
  .list-card-img { width: 72px !important; height: 64px !important; }
  .list-card > div:nth-child(3) { min-width: 0; padding-right: 3.7rem; }
  .list-card .smash-score {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 54px;
    height: 54px;
  }
  .list-card .smash-score svg { width: 54px; height: 54px; }
  .list-card .smash-score .score-num { font-size: 1.25rem; }
  .list-card .smash-score .score-tag { font-size: 0.34rem; line-height: 1.05; }
  .list-card-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .list-card-highlight, .list-card-tags { display: none !important; }
  .score-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
  .score-legend > span:first-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .filter-bar { top: 62px; }
  .featured-article .fa-body { padding: 1.75rem; }
  .fa-title { font-size: 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .hero-content { padding: 2.35rem 1.5rem 2.75rem; }
  .hero .search-bar { max-width: none; }
  .states-finder-hero { padding: 3.5rem 0; }
  .states-directory-heading { align-items: flex-start; flex-direction: column; gap: 0.85rem; }
  .featured-state-grid { grid-template-columns: 1fr; }
  .state-list-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.8rem; }
  .state-list-meta { grid-column: 1 / -1; grid-row: 2; margin-top: -0.45rem; }
  .credibility-hero { min-height: 600px; }
  .credibility-copy-grid { grid-template-columns: 1fr; gap: 2rem; }
  .credibility-principles { grid-template-columns: 1fr; }
  .credibility-principles > div { min-height: 0; margin: 0; padding: 1.35rem 0; border-right: 0; border-bottom: 1px solid var(--cream-3); }
  .credibility-principles > div:last-child { border-bottom: 0; }
  .credibility-principle-cards { grid-template-columns: 1fr; gap: 1rem; }
  .credibility-principle-cards article { min-height: 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-img-wrap { height: clamp(270px, 86vw, 360px); }
  .hero-float-card { left: 1rem; bottom: 1rem; min-width: 0; padding: 0.65rem 0.8rem 0.65rem 0.65rem; }
  .hero-float-card .ss-md { width: 68px; height: 68px; }
  .hero-float-card .ss-md svg { width: 68px; height: 68px; }
  .hero-float-card .ss-md .score-num { font-size: 1.35rem; }
  .hfc-info h4 { font-size: 0.9rem; }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 1.15rem; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .states-finder-intro h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .state-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-quick-link { min-height: 4.1rem; padding: 0.8rem; }
  .state-quick-link span { font-size: 1rem; }
  .state-quick-link small { font-size: 0.62rem; }
  .state-list-name { font-size: 1.17rem; }
  .state-list-score { font-size: 0.64rem; }
  .credibility-hero { min-height: 540px; }
  .credibility-hero::after { background: linear-gradient(90deg, rgba(25,16,9,.85), rgba(25,16,9,.46)); }
  .credibility-hero h1, .methodology-hero h1 { font-size: clamp(3.25rem, 17vw, 4.5rem); }
  .methodology-signals { grid-template-columns: 1fr; }
  .methodology-signals article, .methodology-signals article:nth-child(2) { padding: 1.25rem 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--cream-3); }
  .methodology-signals article:last-child { border-bottom: 0; }
  .credibility-principles h3, .methodology-signals h3 { margin-top: 1.25rem; }
}

