/*
 * 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.
 */

:root {
  --reference-paper: #f5f1e8;
  --reference-paper-light: #fbf9f4;
  --reference-navy: #102a49;
  --reference-red: #a5483d;
  --reference-blue: #9fb4c4;
  --reference-rule: rgba(16, 42, 73, .16);
}

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% - 104px);
    min-height: 0;
    margin: 78px 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%; }

  .feature-image .image-caption {
    right: 9px;
    bottom: 8px;
    width: min(62%, 380px);
    font-size: 8px;
  }

  .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; }
.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 2px;
  }

  .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; }
}

/* 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; }
}
