/*
 * Tập Tầm Vông — editorial Vietnamese culinary atlas.
 * The base stylesheet keeps component behavior; this layer owns the brand,
 * composition and responsive presentation. The final token/surface block at
 * the end is the active ivory atlas direction and keeps existing hooks intact.
 */

:root {
  --paper: #dce5e8;
  --paper-deep: #c5d0d4;
  --paper-light: #f3f4ef;
  --ink: #202a32;
  --ink-strong: #122a46;
  --ink-muted: #5f6f7b;
  --lacquer: #c94f42;
  --lacquer-dark: #98382f;
  --turmeric: #7fc0c7;
  --jade: #476b8a;
  --river: #4f8093;
  --patina: #8ca6b8;
  --line: rgba(32, 42, 50, .16);
  --line-strong: rgba(32, 42, 50, .28);
  --white: #f7f7f2;
  --shadow: 0 28px 90px rgba(9, 24, 43, .24);
  --shadow-float: 0 18px 50px rgba(9, 24, 43, .26);
  --ease-out: cubic-bezier(.22, .8, .22, 1);
  --ease-in-out: cubic-bezier(.72, 0, .22, 1);
  --motion-instant: 120ms;
  --motion-fast: 220ms;
  --motion-base: 360ms;
  --motion-camera: 560ms;
  --motion-sheet: 380ms;
  --header-height: 72px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
}

/* Daily message: a quiet, keyboard-friendly announcement band below the header. */
.daily-message-ticker {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 34px;
  padding: 0 clamp(16px, 4vw, 56px);
  overflow: hidden;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 237, .92);
}
.daily-message-ticker__viewport { min-width: 0; overflow: hidden; }
.daily-message-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 7px 0;
  font-size: 12px;
  animation: daily-message-marquee 28s linear infinite;
}
.daily-message-ticker__track:hover,
.daily-message-ticker__track:focus-visible,
.daily-message-ticker:focus-within .daily-message-ticker__track { animation-play-state: paused; }
.daily-message-ticker__label { color: var(--lacquer); font-weight: 700; }
.daily-message-ticker__dot { color: var(--turmeric); }
.daily-message-ticker__link { padding: 4px 0 4px 16px; color: var(--ink-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
@keyframes daily-message-marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (max-width: 700px) {
  .daily-message-ticker { min-height: 32px; padding-inline: 12px; }
  .daily-message-ticker__track { font-size: 11px; animation-duration: 34s; }
  .daily-message-ticker__link { padding-left: 8px; font-size: 11px; }
}

/* Accessible alternatives for dense map geometry on touch and keyboard. */
.province-quick-select {
  display: none;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.province-quick-select select {
  width: 100%;
  min-height: 44px;
  padding: 9px 38px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-strong);
  background: var(--paper-light);
  font: 600 13px/1.2 var(--font-body);
}

.province-shape:focus-visible {
  outline: 3px solid var(--lacquer-dark);
  outline-offset: 4px;
  stroke: var(--lacquer-dark);
  stroke-width: 5px;
  vector-effect: non-scaling-stroke;
}

.province-source-links a,
.dish-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 5px;
}

@media (max-width: 1180px) {
  .province-quick-select {
    display: grid;
    width: 100%;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-message-ticker__track { animation: none; transform: none; }
}

html { background: var(--ink-strong); }

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ink-strong);
}
body.sheet-open { overflow: hidden; }
body.contribution-open { overflow: hidden; }
body.dish-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  opacity: .026;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

::selection { color: var(--paper-light); background: var(--lacquer); }

.site-header {
  min-height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  padding: 10px clamp(18px, 3.5vw, 58px);
  border-bottom: 1px solid rgba(243, 244, 239, .14);
  color: var(--paper-light);
  background: rgba(18, 42, 70, .93);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.1);
}

.brand { min-height: 44px; gap: 11px; }
.brand-mark {
  width: 42px;
  height: 42px;
  overflow: visible;
  border: 1px solid rgba(247, 247, 242, .3);
  border-radius: 7px;
  color: var(--paper-light);
  background: var(--lacquer);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .14);
  transform: none;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.brand-mark::after { display: none; }
.brand strong { color: var(--paper-light); font-size: 20px; transition: color var(--motion-fast) ease; }
.brand small { color: rgba(243, 244, 239, .62); }

.desktop-nav a { color: rgba(243, 244, 239, .62); }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--turmeric);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--motion-fast) var(--ease-out);
}
.desktop-nav a:hover,
.desktop-nav a.is-current { color: var(--paper-light); }
.desktop-nav a.is-current::after {
  height: 1px;
  background: var(--turmeric);
  transform: scaleX(1);
}

.site-header .icon-button {
  border-color: rgba(243, 244, 239, .24);
  color: var(--paper-light);
}
.site-header .icon-button:hover { background: rgba(243, 244, 239, .1); }
.contribute-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-color: var(--turmeric);
  border-radius: 7px;
  color: var(--ink-strong);
  background: var(--turmeric);
  cursor: pointer;
}

main { background: var(--ink-strong); }

.explorer {
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(520px, 1.75fr) minmax(360px, .95fr);
  margin: 0;
  overflow: clip;
  border: 0;
  border-radius: 0;
  color: var(--paper-light);
  background: var(--ink-strong);
  box-shadow: none;
  animation: none;
}

.atlas-intro {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(44px, 6vh, 74px) clamp(24px, 2.6vw, 44px) 30px;
  border-right: 1px solid rgba(127, 192, 199, .28);
  background:
    linear-gradient(180deg, rgba(201, 79, 66, .12), transparent 28%),
    #183653;
}

.atlas-intro::before {
  content: "";
  position: absolute;
  top: 34px;
  right: -1px;
  width: 1px;
  height: 92px;
  background: var(--turmeric);
}

.atlas-intro__copy { max-width: 360px; }
.kicker {
  margin-bottom: 22px;
  color: var(--turmeric);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.atlas-intro h1 {
  max-width: 470px;
  margin: 0;
  color: var(--paper-light);
  font: 600 clamp(42px, 4vw, 70px)/.93 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.intro-note {
  max-width: 360px;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  color: rgba(243, 244, 239, .72);
  font-size: 13px;
  line-height: 1.72;
}

.region-filter {
  --indicator-y: 4px;
  --indicator-height: 44px;
  position: relative;
  width: 100%;
  min-height: auto;
  display: grid;
  gap: 2px;
  margin-top: clamp(34px, 7vh, 78px);
  padding: 4px;
  overflow: visible;
  border: 1px solid rgba(243, 244, 239, .17);
  border-radius: 9px;
  background: rgba(0, 0, 0, .08);
}
.region-filter__indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 4px;
  right: 4px;
  height: var(--indicator-height);
  opacity: 0;
  border-left: 2px solid var(--turmeric);
  border-radius: 5px;
  background: rgba(243, 244, 239, .10);
  transform: translate3d(0, var(--indicator-y), 0);
  transition: transform var(--motion-fast) var(--ease-out), height var(--motion-fast) var(--ease-out), opacity 160ms ease;
  pointer-events: none;
}
.region-filter.is-positioned .region-filter__indicator { opacity: 1; }
.filter-chip {
  position: relative;
  z-index: 1;
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  color: rgba(243, 244, 239, .66);
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
}
.filter-chip::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .5;
}
.filter-chip.is-active { color: var(--paper-light); }
.filter-chip.is-active::after { border-color: var(--turmeric); background: var(--turmeric); opacity: 1; }
.filter-chip:active { transform: none; }

.intro-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: auto;
  padding: 34px 0 0;
  color: rgba(243, 244, 239, .58);
  font-size: 10px;
}
.intro-meta span { display: grid; gap: 4px; }
.intro-meta strong { color: var(--paper-light); font: 600 27px/1 var(--font-display); }
.atlas-signature {
  margin: 24px 0 0;
  color: rgba(127, 192, 199, .78);
  font: 500 11px/1 var(--font-display);
  letter-spacing: .11em;
  transition: color var(--motion-base) ease, letter-spacing var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
}

.map-column {
  min-width: 0;
  padding: clamp(22px, 3vh, 34px) clamp(20px, 2.4vw, 38px) 20px;
  border-right: 1px solid rgba(243, 244, 239, .12);
  background:
    radial-gradient(circle at 20% 0%, rgba(71, 107, 138, .34), transparent 31rem),
    #132f4c;
}
.map-toolbar {
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 20px;
}
.search { flex: 1 1 auto; }
.search input {
  height: 50px;
  border: 1px solid rgba(243, 244, 239, .2);
  border-radius: 7px;
  color: var(--paper-light);
  background: rgba(10, 28, 49, .72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.search input::placeholder { color: rgba(243, 244, 239, .54); }
.search input:focus {
  border-color: var(--turmeric);
  outline: 3px solid rgba(127, 192, 199, .24);
}
.search > svg { color: rgba(243, 244, 239, .6); }
.search kbd {
  border-color: rgba(243, 244, 239, .2);
  border-radius: 4px;
  color: rgba(243, 244, 239, .6);
  background: rgba(243, 244, 239, .07);
}
.search-results {
  overflow: hidden;
  border-color: rgba(243, 244, 239, .18);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper-light);
}
.toolbar-hint {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(243, 244, 239, .58);
  font-size: 10px;
  white-space: nowrap;
}
.toolbar-hint span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turmeric);
  box-shadow: 0 0 0 5px rgba(127, 192, 199, .14);
}

.map-stage { margin-top: 18px; }
.map-heading { min-height: 48px; margin: 0 2px 7px; color: rgba(243, 244, 239, .6); }
.map-heading-copy strong { color: var(--paper-light); font-size: 17px; }
.map-heading-copy span { color: rgba(243, 244, 239, .54); }
.text-button {
  min-height: 44px;
  border-radius: 6px;
  color: #9bd4d8;
}
.text-button:hover { color: var(--paper-light); background: rgba(243, 244, 239, .08); }

.map-shell {
  --pointer-x: 50%;
  --pointer-y: 45%;
  min-height: clamp(540px, calc(100svh - 225px), 720px);
  overflow: hidden;
  border: 1px solid rgba(127, 192, 199, .28);
  border-radius: 12px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(243, 244, 239, .14), transparent 25%),
    radial-gradient(circle at 50% 46%, rgba(71, 107, 138, .3), transparent 45%),
    linear-gradient(150deg, #1c4264, #0d2239 78%);
  box-shadow: inset 0 0 0 1px rgba(247, 247, 242, .045), 0 28px 70px rgba(3, 15, 32, .22);
  isolation: isolate;
  contain: paint;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.map-shell::before {
  width: min(45vw, 490px);
  height: min(45vw, 490px);
  left: 12%;
  top: 10%;
  border-color: rgba(127, 192, 199, .16);
  box-shadow: 0 0 0 76px rgba(127, 192, 199, .03), 0 0 0 154px rgba(127, 192, 199, .018);
}
.map-shell::after {
  inset: 12px;
  border: 1px solid rgba(243, 244, 239, .09);
  border-radius: 7px;
}
.map-shell.has-focus {
  border-color: rgba(127, 192, 199, .52);
  box-shadow: inset 0 0 0 1px rgba(127, 192, 199, .1), 0 32px 76px rgba(3, 15, 32, .25);
}
.map-shell.is-animating .map-viewport { will-change: transform; }
.map-viewport { will-change: auto; }
.vietnam-map { height: clamp(540px, calc(100svh - 225px), 720px); }
.province-shape {
  fill: var(--patina);
  stroke: #1b4564;
  stroke-width: 1.2;
  transition: fill var(--motion-fast) ease, opacity var(--motion-fast) ease, stroke var(--motion-fast) ease;
}
.province-shape.is-selected {
  fill: var(--lacquer);
  stroke: var(--paper-light);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(127, 192, 199, .48));
}
.province-shape:focus-visible {
  outline: none;
  stroke: var(--turmeric);
  stroke-width: 4px;
  filter: drop-shadow(0 0 8px rgba(127, 192, 199, .7));
}
.archipelago-marker:focus-visible { outline: none; }
.archipelago-marker:focus-visible .archipelago-zone { stroke: var(--turmeric); stroke-width: 3px; }
.vietnam-map[data-camera-mode="province"] .province-shape:not(.is-selected) { opacity: .24; }
.vietnam-map[data-camera-mode="archipelago"] .province-shape { opacity: .13; }
.vietnam-map[data-camera-mode="region"] .province-shape.is-muted { opacity: .12; }
.archipelago-marker .archipelago-zone { fill: rgba(79, 128, 147, .24); stroke: #90bdc8; }
.archipelago-marker .archipelago-point { fill: var(--turmeric); }
.archipelago-marker.is-selected .archipelago-zone { fill: rgba(201, 79, 66, .3); stroke: #f08b78; }
.archipelago-marker text { fill: var(--paper-light); }

.map-loading { color: rgba(243, 244, 239, .72); }
.map-loading p { color: rgba(243, 244, 239, .66); }
.map-tooltip {
  position: absolute;
  left: 0 !important;
  top: 0 !important;
  width: max-content;
  min-width: 150px;
  max-width: min(260px, calc(100% - 24px));
  padding: 11px 13px 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(79, 128, 147, .3);
  border-left: 2px solid var(--lacquer);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(247, 247, 242, .97);
  box-shadow: 0 16px 38px rgba(3, 15, 32, .25), 0 2px 8px rgba(3, 15, 32, .12);
  backdrop-filter: blur(12px);
  animation: tooltip-reveal 120ms ease-out both;
  will-change: transform;
}
.map-tooltip strong,
.map-tooltip span { display: block; }
.map-tooltip strong { font: 600 15px/1.15 var(--font-display); }
.map-tooltip span { margin-top: 4px; color: var(--ink-muted); font-size: 11px; line-height: 1.4; }
.map-tooltip::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: solid rgba(79, 128, 147, .3);
  background: var(--paper-light);
  transform: rotate(45deg);
}
.map-tooltip[data-placement^="above"]::after { bottom: -5px; border-width: 0 1px 1px 0; }
.map-tooltip[data-placement^="below"]::after { top: -5px; border-width: 1px 0 0 1px; }
.map-tooltip[data-placement$="right"]::after { left: 18px; }
.map-tooltip[data-placement$="left"]::after { right: 18px; }
@keyframes tooltip-reveal { from { opacity: 0; } to { opacity: 1; } }
.archipelago-map-card {
  border: 1px solid rgba(127, 192, 199, .46);
  border-radius: 7px;
  background: rgba(13, 34, 57, .95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.map-status {
  position: absolute;
  z-index: 5;
  left: 26px;
  bottom: 24px;
  min-width: 150px;
  padding: 11px 14px;
  border-left: 2px solid var(--turmeric);
  color: var(--paper-light);
  background: rgba(11, 31, 52, .86);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.map-status span,
.map-status strong { display: block; }
.map-status span { color: rgba(243, 244, 239, .58); font-size: 9px; }
.map-status strong { margin-top: 1px; font: 600 20px/1.15 var(--font-display); }

.map-legend {
  margin-top: 7px;
  padding-top: 8px;
  border-top-color: rgba(243, 244, 239, .12);
  color: rgba(243, 244, 239, .57);
}
.legend-swatch { border-radius: 2px; }
.map-source { color: rgba(243, 244, 239, .4); }
.accessible-list { border-top-color: rgba(243, 244, 239, .12); }
.accessible-list summary { color: rgba(243, 244, 239, .7); }
.province-list button { border-color: rgba(243, 244, 239, .15); color: var(--paper-light); background: rgba(243, 244, 239, .05); }

.detail-panel {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  max-height: calc(100svh - var(--header-height));
  padding: 0;
  overflow: auto;
  border: 0;
  border-left: 1px solid rgba(32, 42, 50, .14);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 42, 50, .032) 1px, transparent 1px),
    var(--paper-light);
  background-size: 28px 28px, auto;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-deep) transparent;
}
.detail-content { min-height: 100%; padding: 36px clamp(28px, 3vw, 46px) 42px; }
.sheet-grabber { display: none; }
.sheet-summary { display: none; }
.panel-topline { color: var(--lacquer); }
.panel-topline::after { background: var(--line); }
.province-heading { margin-top: 24px; }
.province-heading h2 {
  max-width: 100%;
  color: var(--ink-strong);
  font-size: clamp(48px, 4vw, 70px);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.province-number { margin-bottom: 2px; color: var(--lacquer); font-size: 15px; }
.save-button {
  min-height: 44px;
  border-radius: 7px;
  background: rgba(220, 229, 232, .48);
}
.province-description { margin-block: 24px 28px; color: #53636e; font-size: 16px; line-height: 1.68; }
.feature-image {
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(32, 42, 50, .08);
  transition: box-shadow var(--motion-base) ease, transform var(--motion-base) var(--ease-out);
}
.feature-image img { transition: opacity var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), clip-path var(--motion-base) var(--ease-out); }
.feature-image.is-revealing img { clip-path: inset(0 0 100% 0); transform: scale(1.025); }
.image-caption { left: 18px; bottom: 14px; font-size: 15px; transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }

.local-sound {
  margin-top: 22px;
  border: 1px solid rgba(127, 192, 199, .28);
  border-radius: 8px;
  background: var(--ink-strong);
  box-shadow: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) var(--ease-out);
}
.sound-play { border-color: rgba(243, 244, 239, .25); background: rgba(243, 244, 239, .07); transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }
.sound-play { width: 46px; height: 46px; }
.specialty-section { margin-top: 32px; }
.section-heading { border-bottom-color: var(--line); }
.section-heading h3 { color: var(--ink-strong); font-size: 23px; }
.specialty-item {
  min-height: 66px;
  margin-inline: 0;
  width: 100%;
  padding: 10px 0;
  border-radius: 0;
}
.specialty-item:hover { background: transparent; }
.specialty-item:hover .specialty-name { color: var(--lacquer); }
.specialty-arrow { border-radius: 50%; background: rgba(201, 79, 66, .09); transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }
.province-sources {
  margin-top: 30px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: minmax(130px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  border-top: 1px solid var(--line);
}
.province-sources > div:first-child span {
  display: block;
  color: var(--river);
  font-size: 9px;
  font-weight: 600;
}
.province-sources h3 {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font: 600 18px/1.1 var(--font-display);
}
.province-source-links { display: grid; align-content: start; gap: 8px; }
.province-source-links a,
.province-source-links > span {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.45;
}
.province-source-links a {
  width: fit-content;
  text-decoration-color: rgba(79, 128, 147, .5);
  text-underline-offset: 3px;
  transition: color var(--motion-instant) ease, text-decoration-color var(--motion-instant) ease;
}
.province-cta {
  min-height: 62px;
  border-radius: 7px;
  background: var(--lacquer);
  box-shadow: 7px 7px 0 rgba(152, 56, 47, .18);
}
.province-cta:hover { background: var(--lacquer-dark); }
.archipelago-detail { border-color: var(--line); border-radius: 8px; background: rgba(220, 229, 232, .46); }
.archipelago-fact,
.archipelago-groups,
.archipelago-places { border-color: var(--line); }

.contribution {
  width: 100%;
  margin: 0;
  padding: clamp(52px, 7vw, 92px) clamp(24px, 8vw, 128px);
  border-radius: 0;
  color: var(--paper-light);
  background:
    linear-gradient(115deg, rgba(0, 0, 0, .18), transparent 52%),
    var(--lacquer-dark);
  box-shadow: none;
}
.contribution .kicker { color: #9bd4d8; }
.contribution h2 { color: var(--paper-light); }
.contribution p { color: rgba(247, 247, 242, .74); }
.contribution__action { align-self: end; max-width: 480px; }
.contribution-button {
  min-height: 54px;
  margin-top: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(155, 212, 216, .55);
  border-radius: 7px;
  color: var(--ink-strong);
  background: #9bd4d8;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion-instant) var(--ease-out), background-color var(--motion-instant) ease;
}
.contribution-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-out);
}
.contribution__count { margin: 14px 0 0; font-size: 11px; }

.contribution-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 192, 199, .4);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 30px 100px rgba(5, 18, 34, .48);
}
.contribution-dialog::backdrop {
  background: rgba(5, 18, 34, .72);
  backdrop-filter: blur(7px);
}
.contribution-dialog[open] { animation: contribution-dialog-in 260ms var(--ease-out) both; }
.contribution-dialog__scroll {
  max-height: min(860px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 34px clamp(24px, 4vw, 46px) 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-deep) transparent;
}
.contribution-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.contribution-dialog__header .kicker { margin-bottom: 8px; }
.contribution-dialog__header h2 {
  margin: 0;
  color: var(--ink-strong);
  font: 600 clamp(34px, 5vw, 54px)/1 var(--font-display);
  letter-spacing: -.035em;
}
.dialog-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-strong);
  background: rgba(220, 229, 232, .56);
  cursor: pointer;
}
.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.contribution-dialog__description {
  max-width: 620px;
  margin: 16px 0 24px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}
.contribution-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-field { min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 600;
}
.form-field label span { color: var(--ink-muted); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 42, 50, .22);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: 500 15px/1.5 var(--font-body);
  transition: border-color var(--motion-instant) ease, box-shadow var(--motion-instant) ease;
}
.form-field textarea { min-height: 126px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #829099; }
.form-field :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(79, 128, 147, .18);
}
.form-field :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 3px rgba(201, 79, 66, .12);
}
.form-field > small {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.45;
}
.field-error {
  min-height: 18px;
  display: block;
  margin-top: 3px;
  color: var(--lacquer-dark);
  font-size: 11px;
  font-weight: 600;
}
.contribution-image-field { padding-top: 2px; }
.contribution-upload-help { margin: -1px 0 10px; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.contribution-upload { display: grid; gap: 10px; padding: 14px; border: 1px dashed rgba(32, 42, 50, .28); border-radius: 8px; background: rgba(255,255,255,.55); }
.contribution-upload > input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.contribution-upload__button { width: fit-content; min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--ink-strong); border-radius: 7px; color: var(--ink-strong); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.contribution-upload__button:focus-within, .contribution-upload__button:focus { outline: 3px solid rgba(79, 128, 147, .25); outline-offset: 2px; }
.contribution-upload__filename { color: var(--ink-muted); font-size: 11px; overflow-wrap: anywhere; }
.contribution-upload__preview { width: min(100%, 420px); max-height: 230px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); background: #e9edf0; }
.contribution-upload__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contribution-upload__actions .button-secondary { min-height: 38px; padding-inline: 12px; font-size: 11px; }
.contribution-turnstile { margin-top: 14px; }
.form-error-summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--lacquer);
  color: var(--ink-strong);
  background: rgba(201, 79, 66, .08);
}
.form-error-summary strong { font-size: 13px; }
.form-error-summary ul { margin: 7px 0 0; padding-left: 18px; }
.form-error-summary a { color: var(--lacquer-dark); font-size: 12px; }
.contribution-form__footer {
  margin-top: 8px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.contribution-form__footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 10px;
}
.contribution-form__footer p svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.contribution-form__footer > div,
.contribution-success > div { display: flex; gap: 10px; }
.button-primary,
.button-secondary {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink-strong);
  border-radius: 7px;
  font: 600 12px var(--font-body);
  cursor: pointer;
}
.button-primary { color: var(--paper-light); background: var(--ink-strong); }
.button-secondary { color: var(--ink-strong); background: transparent; }
.contribution-success { padding: 22px 0 8px; }
.contribution-success__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--ink-strong);
  background: #9bd4d8;
  font-size: 25px;
  font-weight: 700;
}
.contribution-success .kicker { margin-bottom: 8px; }
.contribution-success h3 {
  max-width: 520px;
  margin: 0;
  color: var(--ink-strong);
  font: 600 clamp(32px, 5vw, 48px)/1.04 var(--font-display);
}
.contribution-success > p:not(.kicker) { max-width: 590px; margin: 18px 0 28px; color: var(--ink-muted); }

.dish-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 192, 199, .42);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 30px 100px rgba(5, 18, 34, .48);
}
.dish-dialog::backdrop {
  background: rgba(5, 18, 34, .72);
  backdrop-filter: blur(7px);
}
.dish-dialog[open] { animation: contribution-dialog-in 240ms var(--ease-out) both; }
.dish-dialog__panel {
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
  padding: 32px clamp(24px, 4vw, 42px) 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-deep) transparent;
}
.dish-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dish-dialog__header .kicker { margin-bottom: 8px; }
.dish-dialog__header h2 {
  max-width: 520px;
  margin: 0;
  color: var(--ink-strong);
  font: 600 clamp(32px, 5vw, 50px)/1.02 var(--font-display);
  text-wrap: balance;
}
.dish-visual {
  position: relative;
  height: 190px;
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-deep);
}
.dish-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03);
}
.dish-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  color: var(--white);
  background: rgba(9, 24, 43, .78);
  font-size: 10px;
  line-height: 1.35;
}
.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}
.dish-meta span {
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: rgba(220, 229, 232, .56);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
#dish-status[data-status="reviewed"] {
  color: #245d55;
  border-color: rgba(36, 93, 85, .28);
  background: rgba(127, 192, 199, .22);
}
#dish-status[data-status="multi_locality"] {
  color: var(--ink-strong);
  border-color: rgba(79, 128, 147, .34);
  background: rgba(79, 128, 147, .12);
}
#dish-status[data-status="needs_review"] {
  color: var(--lacquer-dark);
  border-color: rgba(201, 79, 66, .32);
  background: rgba(201, 79, 66, .08);
}
.dish-summary {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}
.dish-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.dish-section h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font: 600 18px/1.12 var(--font-display);
}
.dish-section p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
.dish-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dish-ingredients li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(220, 229, 232, .62);
  font-size: 12px;
  line-height: 1.35;
}
.dish-sources {
  display: grid;
  gap: 8px;
}
.dish-sources a,
.dish-sources span {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}
.dish-sources a {
  width: fit-content;
  text-decoration-color: rgba(79, 128, 147, .5);
  text-underline-offset: 3px;
}

@keyframes contribution-dialog-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .atlas-intro {
    background:
      radial-gradient(circle 260px at var(--surface-x, 50%) var(--surface-y, 35%), rgba(127, 192, 199, .15), transparent 72%),
      linear-gradient(180deg, rgba(201, 79, 66, .12), transparent 28%),
      #183653;
  }
  .detail-panel {
    background:
      radial-gradient(circle 280px at var(--surface-x, 50%) var(--surface-y, 28%), rgba(127, 192, 199, .13), transparent 72%),
      linear-gradient(90deg, rgba(32, 42, 50, .032) 1px, transparent 1px),
      var(--paper-light);
    background-size: auto, 28px 28px, auto;
  }
  .contribution {
    background:
      radial-gradient(circle 340px at var(--surface-x, 74%) var(--surface-y, 50%), rgba(155, 212, 216, .18), transparent 70%),
      linear-gradient(115deg, rgba(0, 0, 0, .18), transparent 52%),
      var(--lacquer-dark);
  }
  .brand:hover .brand-mark {
    border-color: rgba(247, 247, 242, .58);
    box-shadow: 7px 8px 0 rgba(0, 0, 0, .17);
    transform: translate3d(0, -2px, 0) rotate(-2deg);
  }
  .brand:hover strong { color: #b6e1e4; }
  .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
  .filter-chip:hover { color: var(--paper-light); }
  .province-shape:hover { stroke: var(--paper-light); stroke-width: 1.8; filter: drop-shadow(0 0 7px rgba(127, 192, 199, .38)); }
  .icon-button:hover,
  .save-button:hover { transform: translateY(-1px); }
  .contribute-link:hover,
  .province-cta:hover,
  .contribution-button:hover { transform: translateY(-1px); }
  .contribution-button:hover { background: #b5e0e3; }
  .contribution-button:hover svg { transform: translate3d(4px, 0, 0); }
  .atlas-intro:hover .atlas-signature { color: #b6e1e4; letter-spacing: .15em; transform: translate3d(3px, 0, 0); }
  .feature-image:hover { box-shadow: 14px 16px 0 rgba(32, 42, 50, .11); transform: translate3d(0, -2px, 0); }
  .feature-image:hover img { transform: scale(1.028); }
  .feature-image:hover .image-caption { background: rgba(9, 24, 43, .86); transform: translate3d(0, -2px, 0); }
  .local-sound:hover { border-color: rgba(127, 192, 199, .6); box-shadow: 0 16px 38px rgba(9, 24, 43, .17); transform: translate3d(0, -2px, 0); }
  .local-sound:hover .sound-play { background: rgba(243, 244, 239, .14); transform: scale(1.04); }
  .specialty-item:hover .specialty-arrow { background: rgba(201, 79, 66, .16); transform: translate3d(3px, -2px, 0) rotate(-8deg); }
  .province-source-links a:hover { color: var(--lacquer-dark); text-decoration-color: currentColor; }
  .dish-sources a:hover { color: var(--lacquer-dark); text-decoration-color: currentColor; }
  .button-primary:hover { background: #1d4063; }
  .button-secondary:hover,
  .dialog-close:hover { background: var(--paper-deep); }
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .filter-chip:not(.is-active):hover { transform: translate3d(3px, 0, 0); }
  .filter-chip::after { transition: transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) ease; }
  .filter-chip:hover::after { opacity: 1; transform: scale(1.3); }
}

button:active,
.contribute-link:active,
.province-cta:active,
.contribution-button:active,
.button-primary:active,
.button-secondary:active,
.dialog-close:active {
  transform: none;
  opacity: .82;
  transition-duration: var(--motion-instant);
}

/* One coordinated entrance, instead of scattered section reveals. */
.atlas-intro__copy,
.atlas-intro .region-filter,
.atlas-intro .intro-meta,
.map-column,
.detail-content { opacity: 0; }
.map-column { clip-path: inset(0 100% 0 0); }
body.is-ready .atlas-intro__copy { animation: atlas-copy-in 620ms var(--ease-out) 60ms both; }
body.is-ready .atlas-intro .region-filter { animation: atlas-copy-in 520ms var(--ease-out) 180ms both; }
body.is-ready .atlas-intro .intro-meta { animation: atlas-copy-in 480ms var(--ease-out) 260ms both; }
body.is-ready .map-column { animation: atlas-map-in 720ms var(--ease-out) 90ms both; }
body.is-ready .detail-content { animation: atlas-detail-in 540ms var(--ease-out) 310ms both; }
@keyframes atlas-copy-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes atlas-map-in {
  from { opacity: .15; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes atlas-detail-in {
  from { opacity: 0; transform: translate3d(-12px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 1180px) {
  :root { --header-height: 68px; }
  .explorer { grid-template-columns: minmax(190px, .55fr) minmax(470px, 1.45fr) minmax(330px, .9fr); }
  .atlas-intro { padding-inline: 24px; }
  .atlas-intro h1 { font-size: clamp(38px, 4.3vw, 56px); }
  .toolbar-hint { display: none; }
  .detail-content { padding-inline: 28px; }
  .province-heading h2 { font-size: clamp(44px, 4.6vw, 60px); }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .explorer {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    min-height: auto;
  }
  .atlas-intro {
    grid-column: 1 / -1;
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(280px, .8fr);
    align-items: end;
    gap: 30px 56px;
    padding: 34px clamp(24px, 5vw, 50px) 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 192, 199, .28);
  }
  .atlas-intro::before { top: auto; right: auto; left: 50px; bottom: -1px; width: 100px; height: 1px; }
  .atlas-intro h1 { font-size: clamp(44px, 7vw, 68px); }
  .intro-note { margin-top: 18px; }
  .region-filter {
    --indicator-x: 4px;
    --indicator-width: 90px;
    align-self: end;
    display: flex;
    margin-top: 0;
  }
  .region-filter__indicator {
    top: 4px;
    left: 0;
    right: auto;
    width: var(--indicator-width);
    height: calc(100% - 8px);
    border-left: 0;
    border-bottom: 2px solid var(--turmeric);
    transform: translate3d(var(--indicator-x), 0, 0);
    transition-property: transform, width, opacity;
  }
  .filter-chip { flex: 1 1 0; justify-content: center; padding-inline: 10px; text-align: center; }
  .filter-chip::after { display: none; }
  .intro-meta { grid-column: 2; display: flex; margin-top: -16px; padding: 0; }
  .intro-meta span { display: inline-flex; align-items: baseline; }
  .intro-meta strong { font-size: 20px; }
  .atlas-signature { display: none; }
  .map-column { padding: 22px 20px 26px; }
  .map-shell,
  .vietnam-map { min-height: 560px; height: 560px; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .site-header { min-height: var(--header-height); padding-inline: 16px; background: rgba(18, 42, 70, .97); }
  .brand-mark { width: 38px; height: 38px; }
  .brand small { display: none; }
  .header-actions .icon-button { display: none; }
  .contribute-link { padding-inline: 12px; font-size: 11px; }

  .explorer { display: block; }
  .atlas-intro {
    min-height: auto;
    display: block;
    padding: 28px 18px 22px;
  }
  .atlas-intro::before { left: 18px; width: 64px; }
  .atlas-intro__copy { max-width: 620px; }
  .kicker { margin-bottom: 12px; }
  .atlas-intro h1 { max-width: 620px; font-size: clamp(42px, 11vw, 66px); }
  .intro-note { max-width: 560px; margin-top: 16px; font-size: 12px; }
  .region-filter { margin-top: 22px; }
  .intro-meta { display: none; }

  .map-column { min-height: 680px; padding: 14px 12px 96px; border-right: 0; }
  .map-toolbar { display: block; }
  .search input { height: 50px; }
  .map-stage { margin-top: 12px; }
  .map-heading { margin-inline: 5px; }
  .map-shell {
    min-height: clamp(440px, 62svh, 560px);
    height: clamp(440px, 62svh, 560px);
    border-radius: 9px;
  }
  .map-shell::after { inset: 8px; border-radius: 4px; }
  .map-shell::before { width: 350px; height: 350px; left: -3%; }
  .vietnam-map { height: clamp(440px, 62svh, 560px); min-height: 0; }
  .map-status { left: 18px; bottom: 18px; }
  .map-legend { padding-inline: 5px; }
  .map-source { display: none !important; }

  .detail-panel {
    position: fixed;
    z-index: 55;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88dvh, 800px);
    overflow: auto;
    overflow-x: hidden;
    border: 1px solid rgba(32, 42, 50, .16);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 70px rgba(9, 24, 43, .34);
    transform: translate3d(0, var(--sheet-offset, calc(100% - 100px)), 0);
    transition: transform var(--motion-fast) var(--ease-in-out), box-shadow var(--motion-fast) ease;
    will-change: transform;
  }
  .detail-panel.is-open {
    transform: translate3d(0, var(--sheet-offset, 0), 0);
    transition-duration: var(--motion-sheet);
    transition-timing-function: var(--ease-out);
  }
  .detail-panel.is-dragging { transition: none; cursor: grabbing; }
  .detail-panel[data-sheet-state="full"] { border-radius: 18px 18px 0 0; }
  .detail-content { padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
  .sheet-grabber {
    position: sticky;
    z-index: 6;
    top: 0;
    width: 100%;
    min-height: 52px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--paper-light);
    cursor: grab;
    touch-action: none;
    user-select: none;
  }
  .sheet-grabber > span[aria-hidden="true"] {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7897a5, #4f8093, #7897a5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .72);
    transition: width 180ms var(--ease-out), background-color 180ms ease;
  }
  .sheet-grabber:is(:hover, :focus-visible) > span[aria-hidden="true"],
  .detail-panel.is-dragging .sheet-grabber > span[aria-hidden="true"] { width: 68px; }
  .sheet-summary {
    position: absolute;
    z-index: 5;
    top: 52px;
    left: 0;
    right: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 20px 9px;
    border: 0;
    color: var(--ink);
    background: var(--paper-light);
    text-align: left;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }
  .sheet-summary span { color: var(--lacquer); font-size: 10px; }
  .sheet-summary strong { overflow: hidden; font: 600 22px/1 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
  .sheet-summary small { color: var(--ink-muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
  .sheet-summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .detail-panel.is-open .sheet-summary { display: none; }
  .detail-panel.is-prompting:not(.is-open) .sheet-grabber > span[aria-hidden="true"] {
    animation: sheet-hint 720ms var(--ease-out) 1;
  }
  .panel-topline { min-height: 36px; }
  .panel-topline,
  .map-heading-copy span,
  .specialty-meta,
  .sound-heading span,
  .sound-heading a,
  #sound-time { font-size: 11px; }
  .panel-close { display: inline-grid; }
  .province-heading { margin-top: 10px; }
  .province-heading h2 { font-size: clamp(43px, 13vw, 60px); }
  .province-description { margin-block: 18px 22px; }
  .mobile-backdrop { background: rgba(9, 24, 43, .58); transition-duration: 180ms; }
  body.sheet-mid .mobile-backdrop.is-visible { opacity: .72; }
  .contribution { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

  .contribution-dialog {
    width: 100%;
    max-height: min(92dvh, 840px);
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }
  .dish-dialog {
    width: 100%;
    max-height: min(88dvh, 780px);
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }
  .contribution-dialog[open] { animation-name: contribution-sheet-in; }
  .dish-dialog[open] { animation-name: contribution-sheet-in; }
  .contribution-dialog__scroll {
    max-height: min(92dvh, 840px);
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .dish-dialog__panel {
    max-height: min(88dvh, 780px);
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .contribution-dialog__header h2 { font-size: clamp(36px, 10vw, 48px); }
  .dish-dialog__header h2 { font-size: clamp(34px, 10vw, 46px); }
  .dish-visual { height: 170px; margin-top: 18px; }
  .contribution-dialog__description { margin-bottom: 20px; }
  .contribution-form__grid { grid-template-columns: 1fr; gap: 12px; }
  .form-field--wide { grid-column: auto; }
  .contribution-form__footer { align-items: stretch; flex-direction: column; }
  .contribution-form__footer > div { display: grid; grid-template-columns: 1fr 1.25fr; }
  .contribution-form__footer p { order: 2; justify-content: center; }
  .button-primary,
  .button-secondary { min-height: 48px; }
}

@media (max-width: 480px) {
  .site-header { padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 18px; }
  .contribute-link { min-height: 44px; padding-inline: 10px; }
  .atlas-intro { padding-inline: 16px; }
  .atlas-intro h1 { font-size: clamp(40px, 12.6vw, 56px); }
  .intro-note { display: none; }
  .region-filter { width: 100%; gap: 0; }
  .filter-chip { min-width: 0; padding-inline: 4px; font-size: 11px; }
  .map-heading-copy span { max-width: 170px; }
  .text-button { padding-inline: 6px; }
  .text-button span { font-size: 9px; }
  .map-shell { min-height: clamp(440px, 62svh, 540px); height: clamp(440px, 62svh, 540px); }
  .vietnam-map { height: clamp(440px, 62svh, 540px); }
  .archipelago-map-card { top: 12px; left: 12px; width: min(238px, calc(100% - 24px)); border-radius: 6px; }
  .map-status { left: 14px; bottom: 14px; padding: 9px 11px; }
  .map-status strong { font-size: 18px; }
  .map-legend { flex-wrap: wrap; gap: 8px 14px; }
  .detail-content { padding-inline: 18px; }
  .archipelago-facts { grid-template-columns: 1fr; }
  .archipelago-places ul { grid-template-columns: 1fr; }
  .feature-image { border-radius: 7px; box-shadow: 7px 8px 0 rgba(32, 42, 50, .08); }
  .province-sources { grid-template-columns: 1fr; gap: 12px; }
  .dish-dialog__header { gap: 12px; }
  .dish-meta { gap: 6px; }
  .dish-meta span,
  .dish-ingredients li {
    max-width: 100%;
    white-space: normal;
  }
  .contribution { grid-template-columns: 1fr; gap: 24px; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  .atlas-intro { display: none; }
  .map-column { min-height: calc(100dvh - var(--header-height)); padding-bottom: 12px; }
  .map-toolbar { width: calc(56vw - 30px); }
  .map-heading { width: calc(56vw - 30px); min-height: 38px; }
  .map-shell,
  .vietnam-map { width: calc(56vw - 24px); min-height: calc(100dvh - var(--header-height) - 124px); height: calc(100dvh - var(--header-height) - 124px); }
  .map-legend,
  .accessible-list { display: none; }
  .detail-panel {
    top: var(--header-height);
    left: auto;
    right: 0;
    bottom: 0;
    width: 44vw;
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    border-radius: 18px 0 0 0;
    transform: translate3d(calc(100% - 70px), 0, 0);
  }
  .detail-panel.is-open { transform: translate3d(0, 0, 0); }
  .detail-panel:not(.is-open) .detail-content { visibility: hidden; }
  .sheet-grabber {
    position: sticky;
    z-index: 6;
    top: 0;
    min-height: 46px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 18px 0 0 0;
    background: var(--paper-light);
  }
  .sheet-grabber > span[aria-hidden="true"] { width: 40px; height: 5px; border-radius: 999px; background: #93a7ad; }
  .detail-panel:not(.is-open) .sheet-grabber { width: 70px; }
  .sheet-summary {
    position: absolute;
    top: 46px;
    left: 0;
    right: auto;
    width: 70px;
    min-height: calc(100% - 46px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    gap: 12px;
    padding: 12px 8px;
  }
  .detail-panel.is-open .sheet-summary { display: none; }
  .sheet-summary span { display: none; }
  .sheet-summary small { display: none; }
  .sheet-summary strong { writing-mode: vertical-rl; font-size: 19px; text-overflow: clip; }
  .sheet-summary svg { transform: rotate(90deg); }
  .detail-content { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-intro__copy,
  .atlas-intro .region-filter,
  .atlas-intro .intro-meta,
  .map-column,
  .detail-content {
    opacity: 1 !important;
    clip-path: none !important;
    animation: none !important;
    transform: none !important;
  }
  .map-shell { --pointer-x: 50% !important; --pointer-y: 45% !important; }
  .contribution-dialog[open],
  .dish-dialog[open],
  .detail-panel.is-prompting .sheet-grabber > span[aria-hidden="true"] { animation: none !important; }
  .brand-mark,
  .brand strong,
  .desktop-nav a::after,
  .atlas-signature,
  .feature-image,
  .feature-image img,
  .image-caption,
  .local-sound,
  .sound-play,
  .specialty-arrow,
  .contribution-button svg { transition: none !important; }
  .brand:hover .brand-mark,
  .filter-chip:hover,
  .atlas-intro:hover .atlas-signature,
  .feature-image:hover,
  .feature-image:hover img,
  .feature-image:hover .image-caption,
  .local-sound:hover,
  .local-sound:hover .sound-play,
  .specialty-item:hover .specialty-arrow,
  .contribution-button:hover svg { transform: none !important; }
}

@keyframes sheet-hint {
  0%, 100% { width: 52px; }
  45% { width: 72px; background: var(--river); }
}

@keyframes contribution-sheet-in {
  from { opacity: .5; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (forced-colors: active) {
  .atlas-intro,
  .map-column,
  .detail-panel { border: 1px solid CanvasText; }
  .region-filter__indicator { border-color: Highlight; }
  .province-shape.is-selected { stroke-width: 4px; }
}

/* Final shell polish: keep the atlas editorial on wide screens and thumb-friendly
   on small screens without changing any data-rendering hooks. */
.mobile-nav {
  display: none;
}

.feature-image .image-caption {
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--paper-light);
  background: rgba(9, 24, 43, .76);
  font: 500 11px/1.35 var(--font-body);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .24);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.feature-image.is-loading::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .12) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: image-sheen 1.15s linear infinite;
  pointer-events: none;
}

@keyframes image-sheen {
  to { background-position: -220% 0; }
}

.detail-panel {
  overscroll-behavior: contain;
}

.dish-visual {
  height: 280px;
}

.specialty-item {
  border-top: 1px solid rgba(32, 42, 50, .10);
}

.specialty-item:last-child {
  border-bottom: 1px solid rgba(32, 42, 50, .10);
}

.specialty-index {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    padding: 8px 12px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(243, 244, 239, .16);
    color: rgba(243, 244, 239, .62);
    background: rgba(10, 28, 49, .94);
    box-shadow: 0 -12px 32px rgba(3, 15, 32, .18);
    backdrop-filter: blur(18px) saturate(1.15);
  }

  .mobile-nav__item {
    position: relative;
    min-width: 44px;
    min-height: 52px;
    display: inline-grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 9px;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
  }

  .mobile-nav__item svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav__item.is-current {
    color: var(--paper-light);
    background: rgba(127, 192, 199, .14);
  }

  .mobile-nav__item.is-current::after {
    content: "";
    position: absolute;
    bottom: calc(5px + env(safe-area-inset-bottom));
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--turmeric);
  }

  .mobile-backdrop {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .map-column {
    min-height: 600px;
  }

  .map-shell,
  .vietnam-map {
    min-height: clamp(340px, 50svh, 450px);
    height: clamp(340px, 50svh, 450px);
  }

  .map-shell::before {
    width: 280px;
    height: 280px;
    top: 9%;
    left: -8%;
  }

  .detail-panel {
    max-height: min(84dvh, 760px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .detail-panel[data-sheet-state="peek"] {
    box-shadow: 0 -12px 34px rgba(9, 24, 43, .24);
  }

  .detail-panel[data-sheet-state="mid"] {
    box-shadow: 0 -20px 58px rgba(9, 24, 43, .34);
  }

  .detail-panel[data-sheet-state="full"] {
    box-shadow: 0 -24px 72px rgba(9, 24, 43, .38);
  }

  .feature-image {
    aspect-ratio: 16 / 9;
  }

  .dish-visual {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .map-column {
    min-height: 560px;
  }

  .map-shell,
  .vietnam-map {
    min-height: clamp(320px, 46svh, 400px);
    height: clamp(320px, 46svh, 400px);
  }

  .map-status {
    left: 12px;
    bottom: 12px;
  }

  .feature-image .image-caption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .dish-visual {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-image.is-loading::before {
    animation: none;
  }

  .mobile-nav__item {
    transition: none;
  }
}

/* Editorial ivory atlas surface. The selectors below intentionally stay on the
   existing shell hooks so the D3/data contract remains untouched. */
:root {
  --paper: #f3eee3;
  --paper-deep: #e8dfcf;
  --paper-light: #fbf8f0;
  --ink: #24324b;
  --ink-strong: #12233f;
  --ink-muted: #667083;
  --lacquer: #a8483d;
  --lacquer-dark: #7f302a;
  --turmeric: #b9a06b;
  --jade: #9db3c3;
  --river: #6c8da4;
  --patina: #a9bcc9;
  --line: rgba(18, 35, 63, .15);
  --line-strong: rgba(18, 35, 63, .28);
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(18, 35, 63, .12);
  --shadow-float: 0 18px 48px rgba(18, 35, 63, .18);
}

html,
body,
main { background: var(--paper); }

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(168, 72, 61, .035), transparent 28%),
    linear-gradient(rgba(18, 35, 63, .018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, auto;
}

body::before { opacity: .018; }

.site-header {
  color: var(--ink);
  border-bottom-color: var(--line);
  background: rgba(251, 248, 240, .92);
  box-shadow: 0 1px 0 rgba(18, 35, 63, .025);
}

.brand-mark {
  border-color: rgba(168, 72, 61, .28);
  color: var(--paper-light);
  background: var(--lacquer);
  box-shadow: 4px 4px 0 rgba(18, 35, 63, .10);
}
.brand strong { color: var(--ink-strong); }
.brand small { color: var(--ink-muted); }
.desktop-nav a { color: var(--ink-muted); }
.desktop-nav a:hover,
.desktop-nav a.is-current { color: var(--ink-strong); }
.desktop-nav a.is-current::after { background: var(--lacquer); }
.site-header .icon-button {
  border-color: var(--line);
  color: var(--ink-strong);
}
.site-header .icon-button:hover { background: var(--paper-deep); }
.contribute-link {
  border-color: var(--lacquer);
  color: var(--paper-light);
  background: var(--lacquer);
}
.contribute-link:hover { background: var(--lacquer-dark); }

.explorer {
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}
.atlas-intro {
  color: var(--ink);
  border-right-color: var(--line);
  background:
    linear-gradient(180deg, rgba(168, 72, 61, .045), transparent 30%),
    var(--paper);
}
.atlas-intro::before { background: var(--lacquer); }
.kicker { color: var(--lacquer); }
.atlas-intro h1 { color: var(--ink-strong); }
.intro-note { color: var(--ink-muted); }
.region-filter {
  border-color: var(--line);
  background: rgba(255, 253, 248, .62);
}
.region-filter__indicator {
  border-color: var(--lacquer);
  background: rgba(168, 72, 61, .08);
}
.filter-chip { color: var(--ink-muted); }
.filter-chip.is-active { color: var(--ink-strong); }
.intro-meta { color: var(--ink-muted); }
.intro-meta strong { color: var(--ink-strong); }
.atlas-signature { color: var(--ink-muted); }

.map-column { background: var(--paper-light); }
.search input {
  border-color: var(--line);
  color: var(--ink-strong);
  background: rgba(255, 253, 248, .84);
}
.search input::placeholder { color: #7b8290; }
.search input:focus { border-color: var(--lacquer); outline-color: rgba(168, 72, 61, .18); }
.search kbd { border-color: var(--line); color: var(--ink-muted); background: var(--paper); }
.search-results { border-color: var(--line); background: var(--paper-light); box-shadow: var(--shadow-float); }
.search-option { color: var(--ink); }
.search-option:hover,
.search-option[aria-selected="true"] { background: var(--paper); }
.toolbar-hint { color: var(--ink-muted); }
.toolbar-hint span { background: var(--lacquer); }
.map-heading { color: var(--ink-muted); }
.map-heading-copy strong { color: var(--ink-strong); }
.text-button { color: var(--lacquer); }
.text-button:hover { color: var(--lacquer-dark); }

.map-shell {
  border-color: rgba(108, 141, 164, .28);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 253, 248, .68), transparent 26%),
    radial-gradient(circle at 50% 46%, rgba(157, 179, 195, .24), transparent 48%),
    linear-gradient(145deg, #dbe6e9, #eef1eb 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .7), 0 20px 54px rgba(18, 35, 63, .10);
}
.map-shell::before {
  border-color: rgba(108, 141, 164, .16);
  box-shadow: 0 0 0 76px rgba(108, 141, 164, .035), 0 0 0 154px rgba(108, 141, 164, .022);
}
.map-shell::after { border-color: rgba(18, 35, 63, .10); }
.map-shell.has-focus {
  border-color: rgba(168, 72, 61, .38);
  box-shadow: inset 0 0 0 1px rgba(168, 72, 61, .08), 0 24px 62px rgba(18, 35, 63, .14);
}
.province-shape {
  fill: var(--patina);
  stroke: var(--paper-light);
  stroke-width: 1.35;
}
.province-shape.is-selected {
  fill: var(--lacquer);
  stroke: var(--paper-light);
  filter: drop-shadow(0 0 6px rgba(168, 72, 61, .28));
}
.province-shape:focus-visible {
  outline: none;
  stroke: var(--lacquer-dark);
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 5px rgba(168, 72, 61, .34));
}
.archipelago-marker .archipelago-range { fill: rgba(108, 141, 164, .12); stroke: var(--river); }
.archipelago-marker .archipelago-center { fill: var(--paper-light); stroke: var(--lacquer); }
.archipelago-marker .archipelago-center-dot { fill: var(--lacquer); }
.archipelago-marker .archipelago-leader { stroke: var(--ink-muted); }
.archipelago-marker .archipelago-name,
.archipelago-marker .archipelago-meta { fill: var(--ink-strong); }
.archipelago-marker.is-selected .archipelago-range { fill: rgba(168, 72, 61, .12); stroke: var(--lacquer); }
.archipelago-marker:focus-visible .archipelago-range { stroke: var(--lacquer-dark); stroke-width: 2.5px; }
.map-loading { color: var(--ink-strong); }
.map-loading p { color: var(--ink-muted); }
.map-tooltip {
  border-color: var(--line);
  border-left-color: var(--lacquer);
  color: var(--ink);
  background: rgba(251, 248, 240, .97);
  box-shadow: var(--shadow-float);
}
.map-tooltip span { color: var(--ink-muted); }
.map-tooltip::after { border-color: var(--line); background: var(--paper-light); }
.archipelago-map-card {
  border-color: rgba(168, 72, 61, .28);
  background: rgba(251, 248, 240, .94);
  box-shadow: var(--shadow-float);
}
.archipelago-map-card span,
.archipelago-map-card small { color: var(--ink-muted); }
.archipelago-map-card strong { color: var(--ink-strong); }
.map-status {
  color: var(--ink-strong);
  border-left-color: var(--lacquer);
  background: rgba(251, 248, 240, .88);
  box-shadow: 0 10px 22px rgba(18, 35, 63, .08);
}
.map-status span { color: var(--ink-muted); }
.map-legend,
.accessible-list { border-top-color: var(--line); color: var(--ink-muted); }
.map-source,
.accessible-list summary { color: var(--ink-muted); }
.legend-swatch--default { background: var(--patina); }
.legend-swatch--selected { background: var(--lacquer); }
.legend-swatch--island { border-color: var(--river); background: transparent; }
.province-list button { border-color: var(--line); color: var(--ink); background: transparent; }
.province-list button:hover { color: var(--ink-strong); background: var(--paper); }

.detail-panel {
  border-left-color: var(--line);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 35, 63, .028) 1px, transparent 1px),
    var(--paper-light);
  background-size: 28px 28px, auto;
}
.panel-topline { color: var(--lacquer); }
.panel-topline::after { background: var(--line); }
.province-number { color: var(--lacquer); }
.province-heading h2,
.section-heading h3,
.province-sources h3,
.archipelago-section-heading h3 { color: var(--ink-strong); }
.save-button { border-color: var(--line); background: rgba(232, 223, 207, .45); }
.save-button[aria-pressed="true"] { color: var(--lacquer); background: rgba(168, 72, 61, .08); border-color: rgba(168, 72, 61, .28); }
.province-description { color: var(--ink-muted); }
.feature-image { box-shadow: 10px 12px 0 rgba(18, 35, 63, .08); }
.feature-image::after { background: linear-gradient(180deg, transparent 50%, rgba(18, 35, 63, .64)); }
.local-sound { border-color: var(--line); color: var(--paper-light); background: var(--ink-strong); }
.sound-play { border-color: rgba(251, 248, 240, .36); background: rgba(251, 248, 240, .06); }
.sound-heading span { color: #d4bd83; }
.sound-heading a { color: var(--paper-deep); }
.section-heading { border-bottom-color: var(--line); }
.specialty-item { border-color: var(--line); }
.specialty-name { color: var(--ink-strong); }
.specialty-meta { color: var(--ink-muted); }
.specialty-arrow { color: var(--lacquer); background: rgba(168, 72, 61, .09); }
.specialty-item:hover .specialty-name { color: var(--lacquer); }
.province-sources { border-top-color: var(--line); }
.province-source-links a,
.province-source-links > span { color: var(--ink-muted); }
.province-cta { color: var(--paper-light); background: var(--lacquer); box-shadow: 7px 7px 0 rgba(127, 48, 42, .16); }
.province-cta:hover { background: var(--lacquer-dark); }
.archipelago-detail { border-color: var(--line); background: rgba(232, 223, 207, .32); }
.archipelago-fact,
.archipelago-groups,
.archipelago-places { border-color: var(--line); }

.contribution {
  color: var(--paper-light);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 241, 218, .20), transparent 24%),
    linear-gradient(115deg, rgba(127, 48, 42, .34), transparent 58%),
    var(--lacquer);
}
.contribution .kicker { color: #f1d9a6; }
.contribution p { color: rgba(255, 253, 248, .78); }
.contribution-button { border-color: rgba(255, 241, 218, .58); color: var(--ink-strong); background: #f0d9a6; }
.contribution-button:hover { background: #f6e5bd; }
.contribution__count { color: rgba(255, 253, 248, .72); }

.mobile-nav {
  color: var(--ink-muted);
  border-top-color: var(--line);
  background: rgba(251, 248, 240, .95);
  box-shadow: 0 -12px 32px rgba(18, 35, 63, .10);
}
.mobile-nav__item.is-current { color: var(--ink-strong); background: rgba(168, 72, 61, .08); }
.mobile-nav__item.is-current::after { background: var(--lacquer); }
.mobile-backdrop { background: rgba(18, 35, 63, .34); }

@media (max-width: 820px) {
  .site-header { color: var(--ink); background: rgba(251, 248, 240, .96); }
  .atlas-intro { border-right: 0; border-bottom-color: var(--line); }
  .map-column { background: var(--paper-light); }
  .detail-panel {
    bottom: calc(74px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 60px rgba(18, 35, 63, .20);
  }
  .mobile-backdrop { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .sheet-grabber,
  .sheet-summary { background: var(--paper-light); }
  .sheet-grabber > span[aria-hidden="true"] { background: var(--lacquer); box-shadow: none; }
  .sheet-summary { color: var(--ink); }
  .sheet-summary span { color: var(--lacquer); }
  .sheet-summary strong { color: var(--ink-strong); }
  .sheet-summary small { color: var(--ink-muted); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-image.is-loading::before { animation: none; }
}

/* Desktop composition: one generous discovery stage plus one readable detail rail. */
.explorer {
  grid-template-columns: minmax(0, 1.65fr) minmax(420px, .95fr);
}

.explore-stage {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(320px, 29vw, 380px) minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.explore-stage .atlas-intro {
  min-width: 0;
  padding-inline: clamp(24px, 1.7vw, 32px);
  border-right-color: var(--line);
}

.explore-stage .map-column { min-width: 0; }

@media (max-width: 1180px) {
  .explorer { grid-template-columns: minmax(0, 1.58fr) minmax(380px, .92fr); }
  .explore-stage { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .explorer { display: block; }
  .explore-stage {
    display: block;
    border-right: 0;
  }
  .explore-stage .atlas-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Reference refinement: quiet paper, ink, and image-led food discovery. */
:root {
  --header-height: 70px;
  --shadow: none;
  --shadow-float: none;
}

html,
body,
main { background: var(--paper); }

body {
  background: var(--paper);
}

body::before { display: none; }

.site-header {
  height: var(--header-height);
  min-height: var(--header-height);
  padding-block: 8px;
  border-bottom-color: var(--line);
  background: var(--paper-light);
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  border-radius: 2px;
  box-shadow: none;
}

.brand small {
  max-width: 190px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.site-header .icon-button,
.contribute-link { box-shadow: none; }

.mobile-nav {
  background: var(--paper-light);
  box-shadow: none;
  backdrop-filter: none;
}

.explorer {
  grid-template-columns: minmax(0, 1.65fr) minmax(420px, .95fr);
  min-height: calc(100svh - var(--header-height));
  overflow: visible;
  background: var(--paper-light);
}

.explore-stage {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(320px, 29vw, 380px) minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.atlas-intro {
  min-width: 0;
  min-height: 0;
  padding: clamp(36px, 6vh, 64px) clamp(24px, 2.5vw, 36px) 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.atlas-intro::before { top: 34px; background: var(--lacquer); }
.atlas-intro__copy { max-width: 330px; }
.atlas-intro h1 { max-width: 330px; font-size: clamp(42px, 4vw, 62px); }
.intro-note { max-width: 320px; margin-top: 24px; color: var(--ink-muted); }

.region-filter {
  border-color: var(--line);
  border-radius: 0;
  background: var(--paper-light);
}

.filter-chip { border-radius: 0; }
.filter-chip.is-active { color: var(--ink-strong); }

.map-column {
  min-width: 0;
  border-right: 0;
  background: var(--paper-light);
  background-image: none;
}

.map-toolbar { gap: 16px; }
.search input {
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
.search-results { border-radius: 0; box-shadow: none; }
.toolbar-hint span { box-shadow: none; }

.map-shell {
  border-radius: 0;
  background: #dfe7e4;
  box-shadow: none;
}
.map-shell::before,
.map-shell::after { display: none; }
.map-shell.has-focus { box-shadow: inset 0 0 0 2px rgba(168, 72, 61, .42); }
.province-shape.is-selected,
.province-shape:focus-visible { filter: none; }
.map-tooltip,
.archipelago-map-card,
.map-status {
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.map-tooltip { background: var(--paper-light); }
.map-status { background: var(--paper-light); }

.detail-panel {
  border-left-color: var(--line);
  background: var(--paper-light);
  background-image: none;
  box-shadow: none;
}

.detail-content { padding: 30px clamp(26px, 3vw, 42px) 36px; }
.feature-image {
  aspect-ratio: 16 / 6;
  border-radius: 0;
  box-shadow: none;
}
.feature-image::after { display: none; }
.feature-image .image-caption {
  left: 0;
  right: auto;
  bottom: 0;
  max-width: 100%;
  border-radius: 0;
  background: var(--ink-strong);
  text-shadow: none;
}
.feature-image.is-loading::before { display: none; }

.specialty-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.specialty-item {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.specialty-item.has-thumb { grid-template-columns: 74px minmax(0, 1fr) auto; }
.specialty-thumb {
  width: 74px;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}
.specialty-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.specialty-index { grid-column: 2; grid-row: 1; align-self: start; }
.specialty-item.has-thumb .specialty-index { display: none; }
.specialty-item.has-thumb .specialty-arrow { grid-column: 3; grid-row: 1; align-self: end; }
.specialty-item:not(.has-thumb) .specialty-arrow { grid-column: 2; grid-row: 1; }
.specialty-item:hover { background: var(--paper-light); }
.specialty-arrow { background: transparent; }

.contribution {
  background: var(--ink-strong);
  box-shadow: none;
}

.discover-by-food {
  padding: clamp(46px, 6vw, 76px) clamp(24px, 8vw, 128px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.discover-by-food__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.discover-by-food h2 {
  margin: 0;
  color: var(--ink-strong);
  font: 600 clamp(30px, 4vw, 48px)/1 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.discover-by-food__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--lacquer);
  font-size: 12px;
  font-weight: 600;
}
.discover-by-food__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.discover-food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.discover-food-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-light);
  text-align: left;
}
.discover-food-card:hover { border-color: var(--lacquer); background: var(--white); }
.discover-food-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.discover-food-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.discover-food-card__media > span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  color: var(--paper-light);
  font: 600 11px/1 var(--font-body);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.discover-food-card__copy { min-width: 0; display: grid; gap: 6px; }
.discover-food-card__copy strong { color: var(--ink-strong); font: 600 20px/1.05 var(--font-display); }
.discover-food-card__copy small { color: var(--ink-muted); font-size: 11px; line-height: 1.4; }

@media (max-width: 1180px) {
  .explorer { grid-template-columns: minmax(0, 1.58fr) minmax(380px, .92fr); }
  .explore-stage { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .site-header { height: 64px; min-height: 64px; }
  .explorer { display: block; }
  .explore-stage { display: block; border-right: 0; }
  .atlas-intro { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-column { min-height: 600px; }
  .detail-panel { box-shadow: none; }
  .specialty-list { grid-template-columns: 1fr; }
  .discover-by-food { padding-inline: 18px; }
  .discover-by-food__heading { align-items: start; flex-direction: column; gap: 12px; }
  .discover-food-grid { grid-template-columns: 1fr; }
  .discover-food-card { grid-template-columns: 112px minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .atlas-intro h1 { font-size: clamp(38px, 12vw, 52px); }
  .map-column { min-height: 560px; }
}

@media (min-width: 1181px) {
  .explorer {
    grid-template-columns: minmax(0, 1.38fr) minmax(460px, 1fr);
  }

  .explore-stage {
    grid-template-columns: clamp(430px, 23vw, 460px) minmax(0, 1fr);
  }

  .atlas-intro__copy,
  .atlas-intro h1 {
    max-width: 440px;
  }

  .atlas-intro h1 {
    font-size: clamp(44px, 3.1vw, 56px);
  }
}

/* ================================================================
   Visual fidelity pass 1 — reference geometry
   Keeps every map/data hook intact; only the surrounding composition moves.
   ================================================================ */

.explore-stage {
  position: relative;
  isolation: isolate;
}

.ink-landscape {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: -1px;
  width: min(720px, 72%);
  height: auto;
  max-height: 36%;
  object-fit: contain;
  object-position: left bottom;
  opacity: .16;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.atlas-intro,
.map-column {
  position: relative;
  z-index: 1;
}

.atlas-intro .search {
  width: 100%;
  margin-top: 28px;
  z-index: 20;
}

.atlas-intro__copy {
  position: relative;
  z-index: 30;
}

.atlas-intro .search-results { z-index: 100; }

.region-filter { z-index: 1; }

.atlas-intro .search input {
  height: 52px;
  padding-right: 52px;
}

.atlas-intro .search kbd { display: none; }

@media (min-width: 1181px) {
  .explorer {
    height: min(790px, calc(100svh - 190px));
    min-height: 700px;
    grid-template-columns: minmax(0, 58.5fr) minmax(0, 41.5fr);
  }

  .explore-stage {
    grid-template-columns: minmax(350px, 46.7%) minmax(0, 53.3%);
  }

  .atlas-intro {
    padding: 58px 34px 28px 40px;
    background: transparent;
  }

  .atlas-intro::before { top: 55px; }

  .atlas-intro__copy,
  .atlas-intro h1 { max-width: 350px; }

  .atlas-intro h1 {
    font-size: clamp(48px, 3.65vw, 58px);
    line-height: .98;
  }

  .intro-note {
    max-width: 345px;
    margin-top: 18px;
  }

  .region-filter {
    width: fit-content;
    margin-top: 20px;
  }

  .intro-meta {
    margin-top: auto;
    padding-bottom: 26px;
  }

  .atlas-signature { padding-bottom: 0; }

  .map-column {
    min-height: 0;
    padding: 8px 18px 14px;
    background: transparent;
  }

  .map-toolbar { display: none; }

  .map-stage {
    position: relative;
    height: calc(100% - 42px);
    margin-top: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .map-heading {
    position: absolute;
    z-index: 8;
    top: 8px;
    right: 4px;
    min-height: 44px;
    margin: 0;
  }

  .map-heading-copy { display: none; }

  .text-button {
    width: 44px;
    padding: 0;
    justify-content: center;
    border-color: var(--line);
    color: var(--ink-strong);
    background: rgba(251, 248, 240, .86);
  }

  .text-button span { display: none; }

  .map-shell {
    min-height: 0;
    height: 100%;
    border: 0;
    background: transparent;
    contain: layout paint;
  }

  .vietnam-map {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .map-legend {
    min-height: 34px;
    padding-top: 8px;
  }

  .accessible-list { margin-top: 8px; }

  .detail-panel {
    height: 100%;
    min-height: 0;
    overflow: auto;
    border-left: 1px solid var(--line);
    background: var(--paper-light);
  }

  .detail-content {
    min-height: 100%;
    padding: 54px 34px 28px;
  }

  .feature-image { aspect-ratio: 3 / 1; }

  .panel-topline { margin-top: 12px; }

  .province-heading { margin-top: 4px; }

  .province-heading h2 {
    font-size: clamp(44px, 4vw, 58px);
    line-height: .95;
  }

  .province-description {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .specialty-section { margin-top: 22px; }

  .specialty-list { gap: 0 14px; }

  .specialty-item,
  .specialty-item.has-thumb {
    min-height: 78px;
    padding: 8px 0;
    border-width: 0 0 1px;
    background: transparent;
  }

  .specialty-item.has-thumb {
    grid-template-columns: 66px minmax(0, 1fr) auto;
  }

  .specialty-thumb { width: 66px; }

  .specialty-name { font-size: 13px; }
  .specialty-meta { font-size: 9px; }
  .specialty-arrow { display: none; }

  .province-sources,
  .province-cta { display: none; }

  .discover-by-food {
    padding: 26px 58px 30px;
  }

  .discover-by-food__heading { margin-bottom: 16px; }

  .discover-by-food h2 { font-size: 30px; }

  .discover-food-card {
    grid-template-columns: minmax(130px, 45%) minmax(0, 1fr);
    min-height: 90px;
    padding: 0;
  }

  .discover-food-card__copy { padding-right: 16px; }
}

/* Visual fidelity pass 2 — type, controls, media crop and editorial rhythm. */

:root {
  --paper: #f4f0e7;
  --paper-light: #faf8f3;
  --ink: #172331;
  --ink-strong: #102a49;
  --ink-muted: #6e7274;
  --lacquer: #a5483d;
  --lacquer-dark: #873b33;
  --patina: #9fafbc;
}

.brand-mark { display: none; }

.brand strong::after {
  content: "V";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--lacquer);
  font: 600 10px/1 var(--font-display);
  vertical-align: .14em;
}

.brand small {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 7px;
}

.atlas-intro .search > svg {
  color: var(--ink-strong);
}

.atlas-intro .search input {
  color: var(--ink-strong);
  font: 400 13px/1 var(--font-body);
}

.atlas-intro .search input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.region-filter {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.region-filter__indicator { display: none; }

.filter-chip {
  min-width: 66px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-strong);
  background: rgba(251, 248, 240, .5) !important;
  justify-content: center;
  text-align: center;
}

.filter-chip::after { display: none; }

.filter-chip.is-active {
  color: var(--paper-light);
  border-color: var(--ink-strong);
  background: var(--ink-strong) !important;
  box-shadow: none;
}

.map-shell.has-focus { box-shadow: none; }

.feature-image .image-caption {
  left: auto;
  right: 10px;
  bottom: 8px;
  width: min(72%, 410px);
  max-height: 34px;
  padding: 5px 8px;
  overflow: hidden;
  color: var(--paper-light);
  background: rgba(16, 42, 73, .84);
  font: 400 9px/1.35 var(--font-body);
  text-align: right;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.province-description {
  font-family: var(--font-body);
}

@media (min-width: 1181px) {
  .atlas-intro {
    padding-top: 132px;
  }

  .atlas-intro::before { top: 128px; }

  .atlas-intro .kicker { display: none; }

  .atlas-intro__copy,
  .atlas-intro h1 {
    width: 410px;
    max-width: 410px;
  }

  .atlas-intro h1 {
    font-size: 54px;
    font-weight: 600;
    letter-spacing: -.045em;
    text-wrap: wrap;
  }

  .intro-note {
    max-width: 380px;
    margin-top: 20px;
    color: var(--ink-strong);
    font: 400 20px/1.35 var(--font-display);
  }

  .atlas-intro .search {
    width: 406px;
    margin-top: 28px;
  }

  .atlas-intro .search input {
    background: rgba(251, 248, 240, .88);
  }

  .region-filter {
    width: 406px;
    margin-top: 18px;
  }

  .detail-panel {
    position: relative;
    top: 0;
    border-left: 0;
    background: transparent;
  }

  .detail-panel::before {
    content: "Ẩm thực là ký ức\A lưu văn hoá\A là con người Việt Nam.";
    position: absolute;
    top: 12px;
    right: 34px;
    color: var(--ink-muted);
    font: italic 400 13px/1.45 var(--font-display);
    text-align: right;
    white-space: pre;
    pointer-events: none;
  }

  .detail-content {
    min-height: 0;
    margin: 86px 16px 18px;
    padding: 0 0 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 248, 240, .9);
    overflow: hidden;
  }

  .detail-content > :not(.feature-image) {
    margin-left: 24px;
    margin-right: 24px;
  }

  .feature-image {
    width: 100%;
    aspect-ratio: 3 / 1;
  }

  .province-number { display: none; }

  .province-heading {
    margin-top: 14px;
    align-items: center;
  }

  .province-heading h2 {
    font-size: 54px;
    font-weight: 600;
  }

  .save-button {
    min-width: 74px;
    min-height: 42px;
    border-radius: 5px;
    background: transparent;
  }

  .panel-topline {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 6px;
    color: var(--lacquer);
    font-size: 13px;
  }

  .panel-topline::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lacquer);
    box-shadow: 0 5px 0 -3px var(--lacquer);
  }

  .panel-topline::after { display: none; }
  .panel-topline .panel-close { display: none; }

  .province-description {
    margin-top: 14px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.55;
  }

  .specialty-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .section-heading { padding-bottom: 8px; }

  .section-heading h3 { font-size: 25px; }

  .specialty-item,
  .specialty-item.has-thumb {
    min-height: 72px;
  }

  .specialty-item.has-thumb {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .specialty-thumb {
    width: 64px;
    border-radius: 4px;
  }

  .specialty-copy { gap: 3px; }

  .specialty-name {
    font-size: 13px;
    line-height: 1.15;
  }

  .specialty-meta {
    font-size: 9px;
    line-height: 1.35;
  }

  .discover-by-food .kicker { display: none; }

  .discover-food-card__copy strong {
    font-size: 18px;
  }

  .discover-food-card__copy small {
    color: var(--ink);
    font-family: var(--font-display);
    font-style: italic;
  }
}

/* Responsive composition from the supplied desktop / tablet / mobile board. */

@media (min-width: 701px) and (max-width: 1180px) {
  :root { --header-height: 64px; }

  body { padding-bottom: 0; }

  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding-inline: 30px;
    color: var(--ink-strong);
    background: var(--paper-light);
  }

  .header-actions .icon-button { display: inline-grid; }
  .contribute-link { display: none; }
  .mobile-nav,
  .mobile-backdrop { display: none !important; }

  .explorer {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .explore-stage {
    height: clamp(440px, 58svh, 520px);
    display: grid;
    grid-template-columns: minmax(300px, 44%) minmax(0, 56%);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .atlas-intro {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 44px 22px 24px 32px;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
  }

  .atlas-intro::before { top: 40px; left: 32px; }
  .atlas-intro .kicker { display: none; }

  .atlas-intro__copy,
  .atlas-intro h1 {
    width: 100%;
    max-width: 390px;
  }

  .atlas-intro h1 {
    font-size: clamp(40px, 4.4vw, 46px);
    line-height: .98;
    text-wrap: wrap;
  }

  .intro-note {
    display: block;
    margin-top: 16px;
    color: var(--ink-strong);
    font: 400 18px/1.4 var(--font-display);
  }

  .atlas-intro .search {
    width: 100%;
    margin-top: 22px;
  }

  .atlas-intro .search input { height: 48px; }

  .region-filter {
    width: 100%;
    margin-top: 16px;
    gap: 6px;
  }

  .filter-chip {
    min-width: 0;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .intro-meta,
  .atlas-signature { display: none; }

  .ink-landscape {
    width: 62%;
    max-height: 34%;
    opacity: .17;
  }

  .map-column {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    padding: 10px 18px 18px;
    border-right: 0;
    background: transparent;
  }

  .map-toolbar { display: none; }

  .map-stage {
    position: relative;
    height: calc(100% - 34px);
    margin: 0;
  }

  .map-heading {
    position: absolute;
    z-index: 8;
    top: 8px;
    right: 2px;
    width: auto;
    min-height: 44px;
    margin: 0;
  }

  .map-heading-copy { display: none; }
  .text-button { width: 44px; padding: 0; justify-content: center; }
  .text-button span { display: none; }

  .map-shell,
  .vietnam-map {
    width: 100%;
    min-height: 0;
    height: 100%;
  }

  .map-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .map-shell::before,
  .map-shell::after { display: none; }

  .map-legend { min-height: 30px; padding-top: 6px; }
  .map-source { display: none !important; }
  .accessible-list { display: none; }

  .detail-panel {
    position: static;
    inset: auto;
    top: auto;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: var(--paper-light);
    box-shadow: none;
    transform: none !important;
  }

  .detail-panel::before,
  .sheet-grabber,
  .sheet-summary { display: none; }

  .detail-content {
    min-height: 0;
    margin: 0;
    padding: 18px 24px 28px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper-light);
    visibility: visible !important;
  }

  .feature-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    border-radius: 7px;
    box-shadow: none;
  }

  .province-number { display: none; }
  .province-heading { margin-top: 16px; }
  .province-heading h2 { font-size: 48px; }
  .panel-topline { justify-content: flex-start; gap: 8px; margin-top: 6px; color: var(--lacquer); }
  .panel-topline::after { display: none; }
  .panel-topline .panel-close { display: none; }
  .province-description { max-width: 72ch; font: 400 13px/1.6 var(--font-body); }
  .specialty-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .province-sources,
  .province-cta { display: none; }

  .discover-by-food { padding: 34px 30px 40px; }
  .discover-food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-height: 62px; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 7px 16px;
    color: var(--ink-strong);
    background: rgba(250, 248, 243, .97);
  }

  .brand strong { font-size: 21px; }
  .brand small { display: block; font-size: 6px; }
  .header-actions .icon-button { display: inline-grid; }
  .contribute-link { display: none; }

  .explorer {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .explore-stage {
    display: block;
    border: 0;
  }

  .atlas-intro {
    min-height: 0;
    display: block;
    padding: 14px 16px 12px;
    border: 0;
    background: transparent;
  }

  .atlas-intro::before,
  .atlas-intro .kicker,
  .intro-meta,
  .atlas-signature { display: none; }

  .atlas-intro__copy,
  .atlas-intro h1 {
    width: 100%;
    max-width: none;
  }

  .atlas-intro h1 {
    max-width: 320px;
    font-size: clamp(34px, 9.7vw, 40px);
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: wrap;
  }

  .intro-note {
    display: block;
    max-width: none;
    margin-top: 6px;
    color: var(--ink-strong);
    font: 400 14px/1.4 var(--font-display);
  }

  .atlas-intro .search {
    width: 100%;
    margin-top: 12px;
  }

  .atlas-intro .search input {
    height: 44px;
    padding-left: 44px;
    font-size: 12px;
    background: var(--paper-light);
  }

  .atlas-intro .search > svg { left: 14px; width: 18px; height: 18px; }

  .region-filter {
    width: 100%;
    margin-top: 10px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .region-filter::-webkit-scrollbar { display: none; }

  .filter-chip {
    flex: 1 0 auto;
    min-width: 66px;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .ink-landscape {
    bottom: 72px;
    width: 100%;
    max-height: 24%;
    opacity: .14;
  }

  .map-column {
    min-height: 0;
    padding: 0 10px 90px;
    border: 0;
    background: transparent;
  }

  .map-toolbar { display: none; }

  .map-stage {
    position: relative;
    height: clamp(340px, 48svh, 430px);
    margin: 0;
  }

  .map-heading {
    position: absolute;
    z-index: 8;
    top: 4px;
    right: 4px;
    min-height: 44px;
    margin: 0;
  }

  .map-heading-copy { display: none; }
  .text-button { width: 44px; padding: 0; justify-content: center; }
  .text-button span { display: none; }

  .map-shell,
  .vietnam-map {
    width: 100%;
    min-height: 0;
    height: 100%;
  }

  .map-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .map-shell::before,
  .map-shell::after { display: none; }
  .map-legend,
  .accessible-list { display: none; }
  .map-status { left: 10px; bottom: 10px; }

  .mobile-nav {
    min-height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 5px env(safe-area-inset-bottom);
    color: var(--ink-muted);
    border-top-color: var(--line);
    background: rgba(250, 248, 243, .98);
  }

  .mobile-nav__item {
    min-width: 0;
    min-height: 56px;
    padding-inline: 2px;
    color: inherit;
    border-radius: 0;
    font-size: 9px;
  }

  .mobile-nav__item.is-current {
    color: var(--ink-strong);
    background: transparent;
  }

  .mobile-nav__item.is-current::after { background: var(--lacquer); }

  .detail-panel {
    bottom: calc(68px + env(safe-area-inset-bottom));
    max-height: min(88dvh, 760px);
    padding-bottom: 0;
    border-color: var(--line);
    border-radius: 18px 18px 0 0;
    background: var(--paper-light);
    box-shadow: 0 -12px 40px rgba(16, 42, 73, .16);
  }

  .detail-panel::before { display: none; }

  .sheet-grabber {
    min-height: 34px;
    border-radius: 18px 18px 0 0;
  }

  .sheet-grabber > span[aria-hidden="true"] {
    width: 44px;
    height: 4px;
    background: var(--ink-muted);
    box-shadow: none;
  }

  .sheet-summary {
    top: 34px;
    min-height: 124px;
    grid-template-columns: 76px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 8px 16px 14px;
    background: var(--paper-light);
  }

  .sheet-summary > img {
    width: 76px;
    height: 76px;
    display: block;
    border-radius: 7px;
    object-fit: cover;
    background: var(--paper-deep);
  }

  .sheet-summary__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: var(--ink);
  }

  .sheet-summary .sheet-summary__copy > strong {
    color: var(--ink-strong);
    font: 600 22px/1 var(--font-display);
  }

  .sheet-summary .sheet-summary__copy > span {
    color: var(--lacquer);
    font-size: 10px;
  }

  .sheet-summary .sheet-summary__copy > small {
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sheet-summary > svg { align-self: start; margin-top: 4px; }

  .detail-content {
    margin: 0;
    padding: 0 18px 26px;
    border: 0;
    border-radius: 0;
  }

  .feature-image {
    aspect-ratio: 16 / 8;
    border-radius: 7px;
    box-shadow: none;
  }

  .province-number { display: none; }
  .province-heading h2 { font-size: 42px; }
  .panel-topline { justify-content: space-between; }
  .panel-topline::after { display: none; }
  .province-description { font-family: var(--font-body); }
  .specialty-list { grid-template-columns: 1fr; }
  .province-sources { grid-template-columns: 1fr; }

  .discover-by-food { padding: 28px 16px 34px; }
  .discover-by-food__heading { margin-bottom: 16px; }
  .discover-by-food h2 { font-size: 30px; }
  .discover-food-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .discover-food-grid::-webkit-scrollbar { display: none; }
  .discover-food-card {
    min-width: min(84vw, 340px);
    grid-template-columns: 45% minmax(0, 1fr);
    scroll-snap-align: start;
  }
}

/* Five compact destinations fit the public mobile navigation after Minigame. */
@media (max-width: 700px) {
  .mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mobile-nav__item { font-size: 8px; }
  .minigame-page { padding-bottom: 0; }
}

@media (max-width: 820px) {
  body.sheet-open .mobile-nav {
    transform: translateY(100%);
    pointer-events: none;
  }
}

/* Keep these accessibility rules last so editorial theme overrides cannot
   remove keyboard focus or the compact touch alternative. */
.province-shape:focus-visible {
  outline: 3px solid var(--lacquer-dark);
  outline-offset: 4px;
  stroke: var(--lacquer-dark);
  stroke-width: 5px;
  vector-effect: non-scaling-stroke;
}

.province-source-links a,
.dish-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 5px;
}

@media (max-width: 1180px) {
  .province-quick-select { display: grid; }
}
