/* One finger scrolls the page; a two-finger gesture belongs to the map only. */
#map-shell, #vietnam-map { touch-action: pan-y; }

.ttv-home-map__capital-star {
  fill: #f3b62f;
  stroke: #713027;
  stroke-width: .8;
  paint-order: stroke;
  font-size: 17px;
  font-weight: 800;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Self-hosted book typography; Vietnamese, Latin and Latin-ext, real italics. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-italic-vietnamese.52cf47cc78e74e7d.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-italic-latin-ext.14e38c2d6a4ea6ef.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-italic-latin.b4f56ddc9873487f.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-normal-vietnamese.c3de01b5144e1a2d.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-normal-latin-ext.d10ccbbd0dc4ebae.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/site-assets/assets/fonts/source-serif-4-normal-latin.382475f38242c52d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Reference-fit layer
 * -------------------
 * This file is intentionally loaded last. It turns the working map experience
 * into the supplied editorial composition without replacing the SVG, province
 * identifiers, keyboard controls, URL state, or click handlers.
 */

.province-music-controls { margin-block: 1rem; max-width: 28rem; }
#province-music-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--reference-rule); border-radius: 50%; background: var(--reference-paper-light); color: var(--reference-navy); cursor: pointer; }
#province-music-toggle svg { display: block; flex: none; }
#province-music-toggle .province-music-icon-on { display: none; }
#province-music-toggle[aria-pressed="true"] .province-music-icon-on { display: inline; }
#province-music-toggle[aria-pressed="true"] .province-music-icon-off { display: none; }
#province-music-toggle[aria-pressed="true"] { background: var(--reference-navy); color: var(--reference-paper-light); }
#province-music-toggle:focus-visible { outline: 3px solid var(--reference-red); outline-offset: 3px; }
#province-music-status { margin-block: .5rem 0; font-size: .875rem; line-height: 1.5; color: var(--reference-navy); overflow-wrap: anywhere; }

:root {
  --reference-paper: #f5f1e8;
  --reference-paper-light: #fbf9f4;
  --reference-navy: #102a49;
  --reference-red: #a5483d;
  --reference-blue: #9fb4c4;
  --reference-rule: rgba(16, 42, 73, .16);
  --font-reading: "Source Serif 4", Georgia, serif;
  --reading-ink: #334655;
}

body {
  color: var(--reference-navy);
  background-color: var(--reference-paper);
}

/* Remove the technical scaffolding called out in the review image. */
.atlas-intro::before,
.intro-meta,
.map-legend {
  display: none !important;
}

.atlas-intro::before {
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.ink-landscape {
  bottom: 76px;
  opacity: .22;
  filter: contrast(1.18) saturate(.82);
  image-rendering: auto;
}

.map-region-labels,
.map-cartography {
  pointer-events: none;
  user-select: none;
}

.map-region-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  color: rgba(16, 42, 73, .72);
  font: 600 9px/1.2 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-region-label {
  position: absolute;
  white-space: nowrap;
}

.map-region-label--north { top: 18%; left: 72%; }
.map-region-label--central { top: 49%; left: 11%; }
.map-region-label--south { top: 69%; left: 8%; }

.map-cartography {
  position: absolute;
  inset: 0;
  z-index: 4;
  color: rgba(16, 42, 73, .68);
  font-family: var(--font-display);
}

.map-compass {
  position: absolute;
  left: 14%;
  bottom: 34px;
  width: 48px;
  display: grid;
  justify-items: center;
  grid-template-rows: 10px 28px 10px;
  gap: 2px;
  font-size: 8px;
  line-height: 1;
}

.map-compass b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.map-compass i {
  font-style: normal;
}

.map-compass i:nth-of-type(2) {
  position: absolute;
  top: 20px;
  left: -1px;
  width: 50px;
  word-spacing: 25px;
  text-align: center;
}

.map-scale {
  position: absolute;
  right: 7%;
  bottom: 24px;
  width: 150px;
  display: grid;
  gap: 4px;
}

.map-scale i {
  position: relative;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.map-scale i::before,
.map-scale i::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 1px;
  height: 5px;
  background: currentColor;
}

.map-scale i::before { left: 33%; }
.map-scale i::after { left: 66%; }
.map-scale small { font-size: 7px; text-align: center; }

/* The reference uses light island constellations, not large range circles. */
.archipelago-range,
.archipelago-leader { display: none; }

.archipelago-center {
  fill: var(--reference-paper-light);
  stroke: var(--reference-blue);
  stroke-width: 2;
}

.archipelago-center-dot { fill: var(--reference-red); }

.province-shape {
  fill: var(--reference-blue);
  stroke: rgba(251, 249, 244, .92);
  stroke-width: 1.05;
}

.province-shape.is-selected {
  fill: var(--reference-red);
  stroke: var(--reference-paper-light);
  stroke-width: 1.5;
}

.vietnam-map[data-camera-mode="province"] .province-shape:not(.is-selected) {
  opacity: 1;
}

@media (min-width: 1181px) {
  .site-header {
    height: 70px;
    min-height: 70px;
    padding-inline: 58px;
    border-bottom-color: var(--reference-rule);
  }

  .explorer {
    height: clamp(690px, calc(100svh - 190px), 790px);
    min-height: 690px;
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
    overflow: hidden;
    border-bottom: 1px solid var(--reference-rule);
  }

  .explore-stage {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(410px, 53.5%) minmax(0, 46.5%);
    border-right: 1px solid var(--reference-rule);
  }

  .atlas-intro {
    height: 100%;
    min-height: 0;
    padding: 126px 30px 28px 48px;
    border-right: 0;
  }

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

  .atlas-intro h1 {
    font-size: clamp(52px, 3.1vw, 60px);
    line-height: .94;
    letter-spacing: -.05em;
    text-wrap: balance;
  }

  .intro-note {
    max-width: 390px;
    margin-top: 20px;
    font-size: 20px;
  }

  .atlas-intro .search {
    width: min(100%, 410px);
    margin-top: 30px;
  }

  .atlas-intro .search input {
    height: 50px;
    border-color: rgba(16, 42, 73, .22);
    border-radius: 4px;
    background: rgba(251, 249, 244, .9);
    box-shadow: 0 3px 9px rgba(16, 42, 73, .07);
  }

  .region-filter {
    width: min(100%, 410px);
    margin-top: 16px;
  }

  .filter-chip {
    min-width: 66px;
    min-height: 38px;
    padding-inline: 17px;
  }

  .intro-meta { display: none; }

  .atlas-signature {
    position: absolute;
    z-index: 2;
    left: 48px;
    bottom: 118px;
    display: block;
    margin: 0;
    padding: 18px 0 0;
    color: rgba(16, 42, 73, .65);
    font: italic 400 15px/1.38 var(--font-display);
    letter-spacing: 0;
  }

  .atlas-signature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 1px;
    background: rgba(16, 42, 73, .55);
  }

  .ink-landscape {
    z-index: 0;
    bottom: 82px;
    width: min(760px, 68%);
    max-height: 36%;
    opacity: .24;
  }

  .map-column {
    height: 100%;
    min-height: 0;
    padding: 0 8px;
  }

  .map-stage {
    height: 100%;
    display: block;
  }

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

  .map-shell {
    overflow: hidden;
    contain: layout paint;
  }

  .map-heading {
    top: 12px;
    right: 10px;
  }

  .map-legend,
  .accessible-list { display: none; }

  .map-status {
    top: 39%;
    right: auto;
    bottom: auto;
    left: 42%;
    width: auto;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(16, 42, 73, .2);
    border-radius: 4px;
    color: var(--reference-navy);
    background: rgba(251, 249, 244, .96);
    box-shadow: 0 2px 7px rgba(16, 42, 73, .12);
  }

  .map-status span { display: none; }
  .map-status strong { font-size: 13px; }

  .detail-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .detail-panel::before {
    top: 10px;
    right: 38px;
    font-size: 13px;
    line-height: 1.35;
  }

  .detail-content {
    height: calc(100% - 40px);
    min-height: 0;
    margin: 14px 34px 26px 14px;
    padding-bottom: 14px;
    overflow: hidden;
    border-color: rgba(16, 42, 73, .18);
    background: rgba(251, 249, 244, .94);
    box-shadow: 0 3px 12px rgba(16, 42, 73, .08);
  }

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

  .feature-image {
    aspect-ratio: 3.06 / 1;
    border-radius: 7px 7px 0 0;
  }

  .feature-image img { object-position: 50% 50%; }

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

  .province-heading h2 {
    font-size: clamp(48px, 3.25vw, 58px);
    line-height: .93;
  }

  .save-button {
    min-width: 76px;
    min-height: 40px;
  }

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

  .province-description {
    max-width: 76ch;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.48;
  }

  .specialty-section {
    margin-top: 16px;
    padding-top: 13px;
  }

  .section-heading {
    min-height: 32px;
    padding-bottom: 4px;
  }

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

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

  .specialty-item,
  .specialty-item.has-thumb {
    min-height: 66px;
    padding: 6px 0;
  }

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

  .specialty-thumb {
    width: 62px;
    height: 50px;
  }

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

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

@media (min-width: 701px) and (max-width: 1180px) {
  .map-region-labels,
  .map-cartography { display: none; }
}

@media (max-width: 700px) {
  .map-region-labels,
  .map-cartography { display: none; }

  .ink-landscape {
    bottom: 124px;
    left: -12%;
    width: 112%;
    max-height: 30%;
    opacity: .2;
  }

  .explore-stage { overflow-x: clip; }

  .province-shape { stroke-width: 1.15; }

  .detail-panel[data-sheet-state="peek"] .sheet-summary {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-status,
  .detail-content { scroll-behavior: auto; }
}

/* Cultural profile modules and long-form story reader. */
body.story-open { overflow: hidden; }

.detail-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding-top: 76px;
}

.profile-nav {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 0;
  overflow-x: auto;
  border-block: 1px solid var(--reference-rule);
  background: rgba(251, 249, 244, .96);
  scrollbar-width: none;
}

.profile-nav::-webkit-scrollbar { display: none; }
.profile-nav[hidden] { display: none; }

.profile-nav button {
  min-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(16, 42, 73, .68);
  background: transparent;
  font: 600 11px/1 var(--font-body);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}

.profile-nav button:is(:hover, :focus-visible) {
  color: var(--reference-navy);
  border-color: rgba(16, 42, 73, .2);
  transform: translateY(-1px);
}

.profile-nav button[aria-pressed="true"] {
  color: var(--reference-paper-light);
  border-color: var(--reference-navy);
  background: var(--reference-navy);
}

.province-overview { scroll-margin-top: 76px; }

.province-identity {
  margin-top: 16px;
  padding: 15px 16px 13px;
  border-inline-start: 3px solid var(--reference-red);
  background: rgba(159, 180, 196, .11);
}

.province-identity[hidden] { display: none; }

/* Editorial polish stays inside the existing province drawer. No content is
   shortened, hidden behind accordions, or replaced by inferred statistics. */
#province-overview .province-description.is-quote {
  max-width: none;
  margin: 14px 0;
  padding: 12px 15px;
  border-inline-start: 2px solid var(--reference-red, #A33327);
  border-radius: 8px;
  color: var(--ink-strong, #17334A);
  background: #f8efdf;
  font: italic 400 1.2rem/1.7 var(--font-reading);
  font-synthesis: none;
  text-wrap: pretty;
}
#province-approved-overview:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 20px;
  overflow-wrap: anywhere;
}
#province-approved-overview > * { grid-column: 1 / -1; min-width: 0; max-width: 64ch; margin: 0; color: var(--reading-ink); font: 400 1.125rem/1.8 var(--font-reading); font-synthesis: none; font-optical-sizing: auto; letter-spacing: 0; text-wrap: pretty; }
#province-approved-overview > .province-overview__heading { margin-top: 16px; padding-top: 7px; color: var(--ink-strong, #17334A); font: 600 1.35rem/1.4 var(--font-reading); }
#province-approved-overview > .province-overview__heading:first-child { margin-top: 0; padding-top: 0; }
#province-approved-overview > .province-overview__fact { grid-column: auto; padding: 14px 16px; border: 1px solid var(--line, #D8C9AC); border-radius: 8px; background: var(--paper-light, #FFFAF0); color: var(--ink-strong, #17334A); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; font-variant-numeric: lining-nums; }
#province-approved-overview > .province-overview__milestone { padding-inline-start: 14px; border-inline-start: 2px solid var(--reference-red, #A33327); }
@media (max-width: 30rem) { #province-approved-overview > .province-overview__fact { grid-column: 1 / -1; } }
.province-identity .kicker { margin: 0 0 4px; color: var(--reference-red); font-size: 9px; }
.province-identity h3 { margin: 0; font: 600 19px/1.15 var(--font-display); }
.province-identity > p:last-of-type { margin: 7px 0 0; color: rgba(16, 42, 73, .76); font: 400 12px/1.55 var(--font-body); }

.province-identity ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.province-identity li,
.story-card__themes > span,
.story-reader__themes > span {
  padding: 5px 8px;
  border: 1px solid rgba(16, 42, 73, .14);
  border-radius: 999px;
  color: rgba(16, 42, 73, .72);
  background: rgba(251, 249, 244, .72);
  font: 500 9px/1.2 var(--font-body);
}

.province-stories {
  margin-top: 18px;
  padding-top: 15px;
  scroll-margin-top: 76px;
  border-top: 1px solid var(--reference-rule);
}

.province-stories[hidden] { display: none; }
.province-stories .section-heading { align-items: end; }
.section-eyebrow { display: block; margin-bottom: 3px; color: var(--reference-red); font: 600 8px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

.province-story-list { display: grid; gap: 10px; }

.province-story-card,
.featured-story-card {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: start;
  border: 1px solid rgba(16, 42, 73, .15);
  color: var(--reference-navy);
  background: rgba(251, 249, 244, .78);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
}

.province-story-card {
  gap: 7px;
  min-height: 166px;
  padding: 16px;
  border-radius: 5px;
}

.province-story-card::before,
.featured-story-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--reference-red);
  transform: scaleY(.34);
  transform-origin: top;
  transition: transform 260ms var(--ease-out);
}

.province-story-card:is(:hover, :focus-visible),
.featured-story-card:is(:hover, :focus-visible) {
  border-color: rgba(165, 72, 61, .42);
  background: var(--reference-paper-light);
  box-shadow: 0 14px 32px rgba(16, 42, 73, .1);
  transform: translateY(-3px);
}

.province-story-card:is(:hover, :focus-visible)::before,
.featured-story-card:is(:hover, :focus-visible)::before { transform: scaleY(1); }

.story-card__meta { color: var(--reference-red); font: 600 9px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.story-card__title { max-width: 21ch; font: 600 20px/1.08 var(--font-display); text-wrap: balance; }
.story-card__summary { color: rgba(16, 42, 73, .72); font: 400 11px/1.5 var(--font-body); }
.story-card__themes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.story-card__action { align-self: end; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--reference-red); font: 600 10px/1 var(--font-body); }
.story-card__action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease-out); }
.province-story-card:is(:hover, :focus-visible) .story-card__action svg,
.featured-story-card:is(:hover, :focus-visible) .story-card__action svg { transform: translateX(3px); }

.province-story-empty {
  padding: 16px;
  border: 1px dashed rgba(16, 42, 73, .2);
  border-radius: 5px;
  color: rgba(16, 42, 73, .68);
  background: rgba(159, 180, 196, .08);
}

.province-story-empty strong { color: var(--reference-navy); font: 600 15px/1.3 var(--font-display); }
.province-story-empty p { margin: 7px 0 0; font: 400 11px/1.55 var(--font-body); }

.featured-stories {
  padding: clamp(38px, 5vw, 72px) clamp(22px, 4.4vw, 68px);
  border-top: 1px solid var(--reference-rule);
  background:
    linear-gradient(100deg, rgba(159, 180, 196, .12), transparent 42%),
    var(--reference-paper-light);
  scroll-margin-top: 76px;
}

.featured-stories__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: end;
  gap: 32px;
  margin-bottom: 26px;
}

.featured-stories__heading h2 { max-width: 17ch; margin: 0; font: 600 clamp(34px, 4vw, 58px)/.98 var(--font-display); text-wrap: balance; }
.featured-stories__heading > p { max-width: 56ch; margin: 0; color: rgba(16, 42, 73, .68); font: 400 14px/1.65 var(--font-body); }
.featured-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.featured-story-card { gap: 12px; min-height: 310px; padding: clamp(22px, 2.4vw, 34px); border-radius: 7px; }
.featured-story-card:nth-child(2) { margin-top: 24px; }
.featured-story-card .story-card__title { max-width: 19ch; font-size: clamp(27px, 2.2vw, 38px); }
.featured-story-card .story-card__summary { max-width: 45ch; font-size: 13px; line-height: 1.65; }
.featured-story-card .story-card__action { font-size: 12px; }

.story-reader {
  width: min(1120px, calc(100vw - 48px));
  height: min(90dvh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 73, .22);
  border-radius: 10px;
  color: var(--reference-navy);
  background: var(--reference-paper-light);
  box-shadow: 0 42px 120px rgba(8, 25, 45, .38);
}

.story-reader::backdrop { background: rgba(8, 25, 45, .68); backdrop-filter: blur(8px); }
.story-reader[open] { animation: story-reader-in 360ms var(--ease-out) both; }
.story-reader__panel { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }

.story-reader__toolbar {
  position: relative;
  z-index: 4;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 360px) 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--reference-rule);
  background: rgba(251, 249, 244, .96);
}

.story-reader__back {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  color: var(--reference-navy);
  background: transparent;
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
}

.story-reader__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.story-reader__progress { height: 2px; overflow: hidden; background: rgba(16, 42, 73, .12); }
.story-reader__progress span { width: 100%; height: 100%; display: block; background: var(--reference-red); transform: scaleX(0); transform-origin: left; will-change: transform; }
.story-reader__time { justify-self: end; color: rgba(16, 42, 73, .58); font: 500 11px/1 var(--font-body); }

.story-reader__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background:
    linear-gradient(rgba(16, 42, 73, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--reference-paper-light);
}

.story-reader__hero,
.story-toc,
.story-reader__body,
.story-reader__footer {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

.story-reader__hero { padding: clamp(48px, 7vw, 88px) 0 36px; border-bottom: 1px solid var(--reference-rule); }
.story-reader__hero h2 { max-width: 17ch; margin: 8px 0 20px; font: 600 clamp(46px, 6vw, 78px)/.94 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.story-reader__hero h2:focus { outline: none; }
.story-reader__summary { max-width: 65ch; margin: 0; color: rgba(16, 42, 73, .76); font: 500 clamp(17px, 1.7vw, 21px)/1.62 var(--font-display); }
.story-reader__themes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.story-reader__note { margin: 24px 0 0; padding: 14px 16px; border-inline-start: 3px solid var(--reference-red); color: rgba(16, 42, 73, .72); background: rgba(165, 72, 61, .07); font: 400 13px/1.6 var(--font-body); }

.story-toc { padding: 28px 0; border-bottom: 1px solid var(--reference-rule); }
.story-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 12px 0 0; padding: 0; list-style-position: inside; }
.story-toc a { color: rgba(16, 42, 73, .75); font: 500 12px/1.45 var(--font-body); text-underline-offset: 3px; }

.story-reader__body > section {
  position: relative;
  padding: clamp(38px, 5vw, 60px) 0;
  scroll-margin-top: 20px;
  border-bottom: 1px solid var(--reference-rule);
  outline: none;
}

.story-reader__body > section:focus-visible { box-shadow: 0 0 0 3px rgba(79, 128, 147, .32); }
.story-section__number { display: block; margin-bottom: 9px; color: var(--reference-red); font: 600 11px/1 var(--font-body); letter-spacing: .08em; }
.story-reader__body h3 { max-width: 22ch; margin: 0 0 18px; font: 600 clamp(28px, 3.2vw, 42px)/1.05 var(--font-display); text-wrap: balance; }
.story-reader__body p { max-width: 68ch; margin: 0; color: rgba(16, 42, 73, .84); font: 400 16px/1.82 var(--font-body); }

.story-reader__footer { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; padding: 48px 0 70px; }
.story-reader__footer h3 { margin: 6px 0 16px; font: 600 28px/1.1 var(--font-display); }
.story-reader__sources { display: grid; gap: 8px; }
.story-reader__sources a { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--reference-rule); color: var(--reference-navy); text-decoration: none; }
.story-reader__sources a:is(:hover, :focus-visible) strong { color: var(--reference-red); text-decoration: underline; text-underline-offset: 3px; }
.story-reader__sources strong { font: 600 12px/1.45 var(--font-body); }
.story-reader__sources span { color: rgba(16, 42, 73, .56); font: 500 10px/1.35 var(--font-body); }
.story-reader__editorial { align-self: start; padding: 18px; border: 1px solid var(--reference-rule); background: rgba(159, 180, 196, .09); }
.story-reader__editorial p { margin: 0 0 8px; color: rgba(16, 42, 73, .68); font: 400 11px/1.5 var(--font-body); }
.story-reader__editorial strong { color: var(--reference-navy); }
.story-reader__editorial a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; color: var(--reference-red); font: 600 11px/1.3 var(--font-body); text-underline-offset: 3px; }

@keyframes story-reader-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .featured-stories__heading { grid-template-columns: 1fr; gap: 14px; }
  .featured-story-grid { grid-template-columns: 1fr; }
  .featured-story-card,
  .featured-story-card:nth-child(2) { min-height: 240px; margin-top: 0; }
  .story-reader__footer { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mobile-nav__item { font-size: 8px; }
}

@media (max-width: 700px) {
  .detail-content {
    height: auto;
    margin: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .profile-nav {
    top: 34px;
    margin-inline: -2px;
    padding: 8px 8px;
  }

  .profile-nav button { min-height: 44px; padding-inline: 14px; font-size: 11px; }
  .province-identity { padding: 16px; }
  .province-identity > p:last-of-type,
  .province-story-empty p,
  .story-card__summary { font-size: 12px; }
  .province-story-card { min-height: 188px; padding: 18px; }
  .story-card__title { font-size: 23px; }
  .featured-stories { padding: 42px 18px; }
  .featured-stories__heading h2 { font-size: 38px; }
  .featured-story-card { min-height: 280px; padding: 24px 20px; }

  .story-reader {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .story-reader__toolbar {
    min-height: calc(58px + env(safe-area-inset-top));
    grid-template-columns: 1fr 72px;
    gap: 10px;
    padding: env(safe-area-inset-top) 12px 0;
  }

  .story-reader__progress { position: absolute; right: 0; bottom: 0; left: 0; }
  .story-reader__time { font-size: 10px; }
  .story-reader__hero,
  .story-toc,
  .story-reader__body,
  .story-reader__footer { width: min(100% - 36px, 680px); }
  .story-reader__hero { padding: 48px 0 30px; }
  .story-reader__hero h2 { font-size: clamp(42px, 13vw, 62px); }
  .story-reader__summary { font-size: 17px; }
  .story-toc ol { grid-template-columns: 1fr; gap: 10px; }
  .story-toc a { min-height: 36px; display: inline-flex; align-items: center; }
  .story-reader__body p { font-size: 16px; line-height: 1.78; }
  .story-reader__footer { gap: 28px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .mobile-nav__item { font-size: 7px; }
  .mobile-nav__item svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-reader[open] { animation: none; }
  .story-reader__scroll { scroll-behavior: auto; }
  .province-story-card,
  .featured-story-card,
  .story-card__action svg,
  .profile-nav button { transition: none; }
}

/* Book-like reading surfaces; controls and navigation retain their UI face.
   Presentation only: no generated text, truncation, clamps or content changes. */
.atlas-intro h1,
#province-title,
#dish-title,
#minigame-title,
.story-reader__body h3,
.province-identity h3 {
  font-family: var(--font-reading);
  font-weight: 500;
  font-optical-sizing: auto;
  font-synthesis: none;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.atlas-intro .intro-note { font-family: var(--font-reading); font-weight: 400; line-height: 1.55; }
.province-identity > p:last-of-type { font: 400 1.0625rem/1.75 var(--font-reading); color: var(--reading-ink); }
.dish-summary,
.dish-section p,
.story-reader__body p {
  font: 400 1.125rem/1.85 var(--font-reading);
  color: var(--reading-ink);
  max-width: 64ch;
  letter-spacing: 0;
  font-synthesis: none;
  font-optical-sizing: auto;
  text-wrap: pretty;
}
.dish-summary p + p { margin-top: 1em; }
.dish-section h3 { font: 600 1.35rem/1.4 var(--font-reading); }
@media (max-width: 30rem) {
  #province-overview .province-description.is-quote { font-size: 1.125rem; }
  #province-approved-overview > *, .dish-summary, .dish-section p, .story-reader__body p { font-size: 1.0625rem; }
  #province-approved-overview > .province-overview__heading { font-size: 1.25rem; }
}

/* Keep the non-map province list available to assistive technology without
   letting it disturb the editorial composition. Reveal it when focused. */
.accessible-list {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.accessible-list:focus-within {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  margin: 12px 0 !important;
  padding: 0 12px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 1px solid var(--line) !important;
}

@media (forced-colors: active) {
  .profile-nav button[aria-pressed="true"],
  .province-story-card,
  .featured-story-card,
  .story-reader { border: 1px solid CanvasText; }
}

.featured-stories__status {
  margin: 24px 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}
.featured-stories__status:empty,
#featured-stories-pagination[hidden] { display: none; }
#featured-stories-pagination { margin-top: 14px; }
#featured-stories-pagination .pagination-btn { min-height: 44px; }
#featured-stories-pagination .pagination-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Long source URLs must wrap inside the reading surface, never be clipped. */
#dish-sources,
#story-reader-sources { min-width: 0; max-width: 100%; }
#dish-sources > *,
#story-reader-sources > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 700px) {
  /* Leave room for Vietnamese ascenders/diacritics in multi-line titles. */
  .story-reader__hero h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
  }
  .story-reader__hero { padding-block: 28px 24px; }
  #dish-title, #province-title { overflow-wrap: anywhere; }
  .featured-story-card .story-card__title { line-height: 1.2; overflow-wrap: anywhere; }
  .featured-story-card .story-card__summary { font-size: 15px; line-height: 1.65; }
  .story-card__meta, .featured-story-card .story-card__action,
  .story-reader__time { font-size: 12px; line-height: 1.5; }
  .profile-nav button, .region-filter .filter-chip { font-size: 14px; }
  #dish-sources > *, #story-reader-sources > * { font-size: 14px; line-height: 1.65; }
  #sound-title, #sound-artist {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }
  #sound-artist { font-size: 12px; line-height: 1.5; }
}

/* Shared bounded discussion: no infinite append, no lost comment text. */
.ttv-seo-home-link, .ttv-seo-read-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--lacquer, #a8483d); font-size: 14px; }
.ttv-seo-catalogue { max-width: 1160px; margin: 2rem auto; padding: 0 clamp(16px, 4vw, 40px); color: var(--ink-strong, #17334a); }
.ttv-seo-catalogue h1 { font: 600 clamp(2rem, 5vw, 3.3rem)/1.2 var(--font-display, Georgia, serif); overflow-wrap: anywhere; }
.ttv-seo-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 6px 12px; font-size: 14px; }
.ttv-seo-breadcrumbs li + li::before { content: '›'; margin-right: 12px; }
.ttv-seo-breadcrumbs a { overflow-wrap: anywhere; }
.ttv-seo-catalogue-tabs, .ttv-seo-catalogue-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 24px; }
.ttv-seo-catalogue-tabs a, .ttv-seo-catalogue-pagination a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line, #d8c9ac); border-radius: 24px; text-decoration: none; }
.ttv-seo-catalogue-tabs [aria-current] { background: var(--ink-strong, #17334a); color: #fffaf0; }
.ttv-seo-catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ttv-seo-catalogue-card { min-width: 0; border: 1px solid var(--line, #d8c9ac); border-radius: 12px; background: var(--paper-light, #fffaf0); overflow: hidden; }
.ttv-seo-catalogue-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ttv-seo-catalogue-card > div { padding: 20px; }
.ttv-seo-catalogue-card h2 { margin: 0 0 12px; font: 600 1.5rem/1.3 var(--font-display, Georgia, serif); overflow-wrap: anywhere; }
.ttv-seo-catalogue-card p { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.ttv-seo-catalogue-card h2 a { color: inherit; text-decoration: none; }
.ttv-seo-catalogue a:focus-visible, .ttv-seo-home-link:focus-visible { outline: 3px solid var(--ink-strong, #17334a); outline-offset: 3px; }
@media (max-width: 900px) { .ttv-seo-catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ttv-seo-catalogue-grid { grid-template-columns: minmax(0, 1fr); } }
.ttv-comments-toggle[hidden], .ttv-comments-content[hidden], .ttv-comments-pagination[hidden],
.ttv-comments-content [hidden] { display: none !important; }
.ttv-comments-toggle, .ttv-comments-collapse, .ttv-comments-retry, .ttv-comments-compose > summary,
.ttv-comments-pagination button, .ttv-comment-more {
  min-height: 44px; padding: 9px 14px; border: 1px solid var(--line, #D8C9AC);
  border-radius: 7px; background: var(--paper-light, #FFFAF0);
  color: var(--ink-strong, #17334A); font: 500 14px/1.5 var(--font-body, sans-serif);
  cursor: pointer;
}
.ttv-comments-toggle { margin-block: 12px; }
.ttv-comments-compose > summary { width: fit-content; margin-block: 12px; }
.ttv-comments-compose > summary:focus-visible { outline: 3px solid var(--ink-strong, #17334A); outline-offset: 3px; }
.ttv-comments-content [tabindex="-1"] { scroll-margin-block-start: 90px; }
.ttv-comments-content { min-width: 0; max-width: 100%; }
.ttv-comments-content [aria-busy="true"] { opacity: .65; }
.ttv-comments-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.ttv-comments-page { margin: 0; flex: 1 1 130px; text-align: center; font: 400 14px/1.5 var(--font-body, sans-serif); }
.ttv-comments-pagination button:disabled { opacity: .45; cursor: default; }
.ttv-comments-content .ttv-comment-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; }
.ttv-comments-content .ttv-comment-body[data-collapsed="true"] {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.ttv-comments-content .province-comment__meta { flex-wrap: wrap; overflow-wrap: anywhere; }
.ttv-comments-content .province-comment { min-width: 0; max-width: 100%; }
.ttv-comment-more { display: block; margin-block: 6px; }
.ttv-comments-toggle:focus-visible, .ttv-comments-content button:focus-visible { outline: 3px solid var(--ink-strong, #17334A); outline-offset: 3px; }
@media (max-width: 700px) {
  .ttv-comments-content input, .ttv-comments-content textarea { font-size: 16px; }
  .ttv-comments-pagination { gap: 8px; }
  .ttv-comments-pagination button { flex: 0 0 auto; }
  .ttv-comments-content .province-comment__report { min-height: 44px; font-size: 13px; }
}
.saved-provinces-list { display: grid; gap: .65rem; margin-top: 1rem; }
.saved-provinces-list__item { width: 100%; min-height: 46px; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 12px; color: var(--ink-strong); background: var(--paper); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.saved-provinces-list__item:hover,.saved-provinces-list__item:focus-visible { border-color: var(--accent); background: var(--paper-warm); outline: none; }

/* Approved dish presentation: metadata retained in administration. */
#dish-dialog .dish-meta,
#dish-dialog .dish-section[aria-labelledby="dish-flavors-title"] {
  display: none;
}

/* Omit ingredient hashtags from dish listing cards as well. */
.discover-food-card .discover-card-tags { display: none; }
