/* ==== Learn About China — Global Styles ==== */

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

:root {
  --red: #c1272d;
  --red-dark: #8c1d21;
  --gold: #d4a017;
  --ink: #1a1a1a;
  --ink-light: #444;
  --paper: #faf7f2;
  --muted: #888;
  --line: #e6e2d8;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* touch screens: drop the grey flash box browsers paint over a tap */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--red-dark);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.nav.scrolled {
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.logo span {
  color: var(--red);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--red);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.05);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 18px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193, 39, 45, 0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 2px;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION ===== */
.section {
  padding: 100px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-alt {
  background: #fff;
  max-width: none;
}
.section-alt .section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--ink-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== GRID / CARDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card[id] {
  scroll-margin-top: 96px;
}
.card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.card-body p {
  color: var(--ink-light);
  font-size: 0.95rem;
  flex: 1;
}
.card-link {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== PILLAR SECTION (home) ===== */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.pillar + .pillar {
  margin-top: 40px;
}
.pillar.reverse {
  direction: rtl;
}
.pillar.reverse > * {
  direction: ltr;
}
.pillar-img {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}
.pillar-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.pillar h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 16px;
  font-weight: 700;
}
.pillar p {
  color: var(--ink-light);
  margin-bottom: 24px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #141014;
  background-size: cover;
  background-position: center;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}
.breadcrumb {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== FEATURE (detail row) ===== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.feature.reverse {
  direction: rtl;
}
.feature.reverse > * {
  direction: ltr;
}
.feature-img {
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-label {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 18px;
  font-weight: 700;
}
.feature p {
  color: var(--ink-light);
  margin-bottom: 16px;
}
.feature ul {
  list-style: none;
  padding: 0;
}
.feature li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  color: var(--ink-light);
}
.feature li::before {
  content: "◆";
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}

/* ===== STATS ===== */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}
.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
  font-weight: 700;
}
.cta p {
  margin-bottom: 32px;
  opacity: 0.9;
}
.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== i18n ===== */
html.i18n-loading body {
  visibility: hidden;
}

.lang-switch {
  position: relative;
  margin-left: auto;
  margin-right: 20px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--red);
}
.lang-globe { font-size: 0.95rem; line-height: 1; }
.lang-caret { font-size: 0.7rem; opacity: 0.65; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  display: none;
  min-width: 180px;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--paper); }
.lang-menu button.active { color: var(--red); font-weight: 600; }

/* Right-to-left layout (Arabic) */
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .feature li,
html[dir="rtl"] .feature li::before { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .feature li::before { left: auto; right: 0; }
html[dir="rtl"] .card-tag { left: auto; right: 14px; }
html[dir="rtl"] .pillar-icon { text-align: center; }
html[dir="rtl"] .feature,
html[dir="rtl"] .pillar { direction: rtl; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* 100vh is taller than what a phone actually shows while its toolbars are
     visible, so let the heroes follow the content and size from svh instead. */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .page-hero { height: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pillar, .feature { grid-template-columns: 1fr; }
  .pillar.reverse, .feature.reverse { direction: ltr; }
  .pillar-img, .feature-img { min-height: 280px; }
  .pillar-body { padding: 40px 28px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
/* ===== PHONES ===== */
@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; }
  .logo { font-size: 1.05rem; }
  .lang-switch { margin-right: 8px; }
  .lang-btn { padding: 5px 10px; font-size: 0.8rem; gap: 5px; }
  .lang-menu { min-width: 168px; }
  .nav-links { padding: 18px 16px; }
  .nav-toggle { padding: 8px; font-size: 1.3rem; }

  .hero-content, .page-hero-content { padding: 0 20px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { text-align: center; }

  .section, .section-alt .section-inner { padding: 64px 20px; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 1rem; }
  .stats, .cta { padding: 60px 20px; }
  .stats-inner { grid-template-columns: 1fr; gap: 28px; }
  .card-img { height: 190px; }
  .card-body { padding: 20px; }
  .pillar-body { padding: 36px 24px; }
  .pillar-img, .feature-img { min-height: 220px; }
  .feature { padding: 50px 20px; gap: 32px; }

  footer { padding: 48px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; margin-bottom: 32px; }
}

/* the 360px-and-below bar is the tightest one: give the language button and
   the logo room so nothing has to squeeze */
@media (max-width: 360px) {
  .logo { font-size: 0.95rem; }
  .lang-caret { display: none; }
  .lang-btn { padding: 5px 8px; }
}

/* ===== INTERACTIVE MAP + CAROUSEL ===== */
.explorer {
  max-width: 900px;
  margin: 0 auto;
}
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b0d13;
}
.china-map {
  display: block;
  width: 100%;
  height: auto;
}
/* the precise province outlines drawn underneath everything — decoration
   only, so it must never swallow a tap meant for a region or a dish pin */
.map-base {
  fill: rgba(226, 96, 106, 0.07);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.8;
  stroke-linejoin: round;
  pointer-events: none;
}
/* clickable region blocks (food page): the whole province is the target */
.map-region { cursor: pointer; outline: none; }
.map-region .region-shape {
  fill: rgba(226, 96, 106, 0.32);
  stroke: #ff8a92;
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
}
.map-region:hover .region-shape,
.map-region:focus-visible .region-shape { fill: rgba(226, 96, 106, 0.5); }
.map-region.active .region-shape {
  fill: rgba(255, 138, 146, 0.62);
  stroke: #fff;
  stroke-width: 2.2;
}
/* Region blocks carry no on-map label: the map stays clean and the cuisine
   name is read from the card below, revealed as soon as a block is opened. */
.map-marker { cursor: pointer; outline: none; }
.map-marker .marker-dot {
  fill: #ff8a92;
  stroke: #0b0d13;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
}
.map-marker .marker-halo {
  fill: none;
  stroke: #ff8a92;
  stroke-width: 1.6;
  opacity: 0;
  transition: opacity 0.2s, stroke-width 0.2s;
}
.map-marker .marker-name {
  fill: #fff;
  font-size: 17px;
  font-weight: 700;
  direction: ltr;
  opacity: 0;
  pointer-events: none;
  paint-order: stroke;
  stroke: #0b0d13;
  stroke-width: 3.5;
  stroke-opacity: 0.8;
  transition: opacity 0.2s;
}
.map-marker:hover .marker-halo,
.map-marker:focus-visible .marker-halo { opacity: 0.7; }
.map-marker:hover .marker-name,
.map-marker:focus-visible .marker-name { opacity: 1; }
.map-marker:focus-visible .marker-dot { stroke: #fff; }
.map-marker.active .marker-halo { opacity: 1; stroke-width: 2.6; }
.map-marker.active .marker-dot { fill: #fff; stroke: #e2606a; stroke-width: 3.5; }
.map-marker.active .marker-name { opacity: 1; }

/* --- city detail carousel --- */
.place-detail { margin-top: 30px; }
.slide-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  /* let a vertical drag scroll the page; claim horizontal drags for the swipe */
  touch-action: pan-y;
}
.slide-track {
  display: flex;
  direction: ltr;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.place-slide {
  flex: 0 0 100%;
  padding: 34px 40px;
}
.place-slide .feature-label { margin-bottom: 12px; }
.place-slide .card-tag {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}
.place-slide h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.place-slide p { color: var(--ink-light); margin-bottom: 14px; }
/* illustrated banner on the cuisine cards — the dish the card is talking about */
.place-slide .slide-figure {
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3efe7;
}
.place-slide .slide-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.place-slide .slide-figure figcaption {
  padding: 11px 16px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.place-slide ul { list-style: none; padding: 0; }
.place-slide li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--ink-light);
}
.place-slide li::before {
  content: "◆";
  color: var(--red);
  position: absolute;
  left: 0;
  top: 0.25em;
  font-size: 0.7rem;
}
.place-slide a.card-link { display: inline-block; }

.slide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.slide-arrow {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.slide-arrow:hover,
.slide-arrow:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.slide-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
}
.slide-dot {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
/* keep the dot itself small, but give a finger a much larger target to hit */
.slide-dot::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.slide-dot:hover { background: var(--muted); }
.slide-dot.active { background: var(--red); transform: scale(1.4); }

/* Right-to-left layout (Arabic) */
html[dir="rtl"] .place-slide { direction: rtl; }
html[dir="rtl"] .place-slide li { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .place-slide li::before { left: auto; right: 0; }

/* --- shared explorer extras --- */
.explorer-hint {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 620px;
  margin: -38px auto 32px;
}
.place-slide .slide-more {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ===== TOUCH / SMALL SCREENS (interactive map) ===== */
@media (max-width: 640px) {
  /* on a phone the header already sits close by — stop pulling up into it */
  .explorer-hint { margin: 0 auto 22px; font-size: 0.9rem; }

  /* Enlarge the pins without moving them: each circle is scaled about its own
     centre, so the map keeps its geography and the dots stay visible and
     tappable at phone width. */
  .map-marker .marker-dot,
  .map-marker .marker-halo {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1.6);
  }
  .map-marker .marker-name { font-size: 20px; stroke-width: 5; }

  .place-slide { padding: 24px 20px; }
  .place-slide h3 { font-size: 1.25rem; }
  .place-slide .feature-label { font-size: 0.78rem; }
  .place-slide .slide-figure { margin-bottom: 16px; }
  .place-slide .slide-figure img { height: 160px; }

  .slide-nav { gap: 12px; margin-top: 16px; }
  .slide-arrow { width: 46px; height: 46px; font-size: 1.3rem; }
  .slide-dots { max-width: 100%; gap: 14px; }
  .slide-dot { width: 11px; height: 11px; }
}

/* ===== NORTH vs SOUTH FOOD DEBATES (food.html) ===== */
.debate-list { display: grid; gap: 24px; }
.debate {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 28px 30px;
}
.debate-topic { font-size: 1.15rem; font-weight: 700; margin: 0 0 18px; }
.debate-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.debate-side { padding: 18px 20px; border-radius: 10px; }
.debate-side.north { background: #fdf4f4; border: 1px solid #f2dcdc; }
.debate-side.south { background: #f2f6fd; border: 1px solid #dbe3f4; }
.debate-side .feature-label { margin-bottom: 8px; }
.debate-side.north .feature-label { color: var(--red); }
.debate-side.south .feature-label { color: #2f5d9e; }
.debate-side p { color: var(--ink-light); font-size: 0.95rem; }
.debate-vs {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--paper);
  border: 1.5px solid var(--line);
}
@media (max-width: 700px) {
  .debate { padding: 22px 20px; }
  .debate-topic { font-size: 1.05rem; margin-bottom: 14px; }
  .debate-sides { grid-template-columns: 1fr; gap: 12px; }
  .debate-vs { margin: 0 auto; width: 40px; height: 40px; }
  .debate-side { padding: 16px; }
}

/* ===== 404 (404.html) ===== */
.err-panel {
  max-width: 660px;
  margin: 0 auto;
  padding: 160px 24px 120px;
  text-align: center;
}
.err-code {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 6px;
  color: var(--red);
  margin-bottom: 18px;
}
.err-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.err-panel p {
  color: var(--ink-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
}
@media (max-width: 560px) {
  .err-panel { padding: 120px 20px 80px; }
}
