:root {
  --panel-bg: rgba(250, 243, 229, 0.94);
  --panel-border: rgba(0, 0, 0, 0.08);
  --ink: #3e3528;
  --ink-muted: #6b5a47;
  --brass: #b79a72;
  --navy: #000042;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.10);
  --radius: 12px;
  --gutter-w: 12px;
  --dblue: #071E3A;
  --glass: rgba(7, 30, 58, 0.72);
  --glass-light: rgba(255, 255, 255, 0.72);
  --accent: #f2c76b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--ink);
}

.story-view {
  background: #f0e7d6; 
}

.atlas-shell { position: relative; min-height: 100vh; display: block; }

/* Map background */
#map { position: fixed; inset: 0; z-index: 0; }

/* Header */
.topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: var(--dblue);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.map-view > .topbar {
  background: linear-gradient(90deg, var(--glass), rgba(7, 30, 58, 0.5));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  flex-shrink: 0;
}
.brand-mark { height: 46px; display: block; }
.brand-copy { display: grid; gap: 2px; }
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: .02em; color: #f8f3ea; }
.brand-subtitle {
  font-size: 11px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 243, 234, 0.72);
}
.header-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #f7f3ea;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
}
.header-actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}
.nav-pill {
  color: #f7f3ea;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav-pill:hover,
.nav-pill:focus-visible { border-color: rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.16); }
.nav-pill.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}
.nav-pill--accent {
  background: rgba(242, 199, 107, 0.18);
  border-color: rgba(242, 199, 107, 0.6);
  color: #fff7e5;
}
.nav-pill--accent:hover,
.nav-pill--accent:focus-visible { background: rgba(242, 199, 107, 0.28); }
.nav-pill--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.nav-pill--ghost:hover,
.nav-pill--ghost:focus-visible { background: rgba(255, 255, 255, 0.16); }
.nav-pill--dropdown::after {
  content: '▾';
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.75;
}

.nav-icon {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f7f3ea;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.nav-icon:hover,
.nav-icon:focus-visible { background: rgba(255, 255, 255, 0.2); }
.nav-icon--dropdown::after {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.75;
}

.nav-menu {
  position: relative;
}
.nav-menu summary {
  list-style: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu[open] .nav-icon {
  border-color: rgba(255, 255, 255, 0.45);
}
.nav-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(15, 30, 56, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}
.nav-menu__panel a {
  color: #f7f3ea;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.nav-menu__panel a.is-active {
  color: var(--accent);
}

.atlas-filter-strip {
  position: fixed;
  top: 66px;
  right: 0;
  width: calc(100% - var(--map-panel-width, 0px) - 48px);
  z-index: 19;
  pointer-events: auto;
}
.atlas-filter-strip__row {
  justify-content: right;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 10px;
}
.atlas-filter-strip__row::-webkit-scrollbar { height: 4px; }
.atlas-filter-strip.is-empty { display: none; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-pill--active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.filter-pill--option {
  padding: 6px 14px;
}
.filter-pill--theme {
  border-color: var(--theme-color, rgba(0, 0, 0, 0.2));
}
.filter-pill__label--theme {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--theme-color, currentColor);
}
.filter-pill.is-active {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.96);
}
.filter-pill__close {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: rgba(0, 0, 0, 0.22);
}

.atlas-filter-panels {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  display: grid;
  gap: 12px;
  pointer-events: none;
  z-index: 24;
}
.atlas-filter-panel {
  display: none;
}
.atlas-filter-panel.is-open {
  display: block;
}
.atlas-filter-panel__inner {
  backdrop-filter: blur(3px);
  pointer-events: auto;
  background: linear-gradient(rgba(255, 250, 242, 0.95), rgba(255,250,242,0.4));
  border-radius: 0 0 20px 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  animation: filter-slide 0.2s ease;
}
.atlas-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.atlas-filter-panel__header h2 {
  margin: 0;
  font-size: 18px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
}
.atlas-filter-panel__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-clear {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

@keyframes filter-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .atlas-filter-panel__inner {
    width: min(60%, 900px);
    margin-left: auto;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Split overlay */
#split-overlay { position: fixed; inset: 0; display: flex; z-index: 10; pointer-events: none; }
#featured {
  pointer-events: auto;
  width: clamp(320px, 32vw, 460px);
  height: 100%;
  background: linear-gradient(180deg, rgba(250,243,229,0.96), rgba(250,243,229,0.88));
  border-right: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
  border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  backdrop-filter: blur(6px);
}
#featured::after {
  content: ""; position: absolute; top: 0; right: -22px; width: 22px; height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.16), rgba(0,0,0,0)); filter: blur(8px); opacity: .30;
}
#transparent { flex: 1; pointer-events: none; }

/* Drawer header & content */
.panel-header { position: sticky; top: 0; z-index: 2; padding: 16px 20px 12px 20px;
  background: linear-gradient(to bottom, rgba(250,243,229,.98), rgba(250,243,229,.90));
  border-bottom: 1px solid var(--panel-border);
  display: grid; gap: 12px; align-content: start;
}
.panel-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-context { display: grid; gap: 6px; }
.panel-title { margin: 0; font-size: 20px; font-weight: 700;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
.panel-sub { margin-top: 2px; font-size: 12px; color: var(--ink-muted); }
.panel-hint { font-size: 12px; color: var(--ink-muted); }
.panel-link { font-size: 12px; color: var(--navy); text-decoration: none; font-weight: 600; padding-top: 6px; }
.panel-link:hover { text-decoration: underline; }
.panel-scroll { position: relative; overflow: auto; overflow-x: hidden; padding: 18px 20px 32px; scrollbar-width: thin;
  display: grid; gap: 28px; align-content: start; 
}
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 999px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll[data-loading]::before,
.panel-scroll[data-loading]::after { content:""; position: absolute; inset: 0; pointer-events: none; }
.panel-scroll[data-loading]::after { background: linear-gradient(180deg, rgba(250,243,229,.94), rgba(250,243,229,.82)); }
.panel-scroll[data-loading]::before { width: 36px; height: 36px; border-radius: 999px; border: 3px solid rgba(13,31,45,0.18);
  border-top-color: rgba(13,31,45,0.65); margin: auto; animation: panel-spinner .75s linear infinite;
  top: calc(50% - 18px); left: calc(50% - 18px); right: auto; bottom: auto; background: transparent; }

@keyframes panel-spinner {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes atlas-pulse {
  0% { transform: scale(0.96); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0.6; }
}
.story-section { display: grid; gap: 16px; }
.story-rail { display: grid; gap: 16px; }
.panel-scroll .empty { margin: 0; font-size: 13px; color: var(--ink-muted); text-align: center; }
.embla { position: relative; }
.embla__viewport { overflow: hidden; touch-action: pan-y; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 116px 1fr;
  transition: box-shadow .15s ease, border-color .15s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.card:hover,
.card:focus-visible { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }
.card.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08), 0 12px 24px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}
.card.is-active .headline { color: var(--navy); }
.card:focus { outline: none; }
.card:focus-visible { outline: 2px solid rgba(13,31,45,0.2); outline-offset: 2px; }
.card picture { display: block; }
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; background: #eee; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.meta { font-size: 12px; color:#6f6455; display:flex; gap:10px; align-items:center; text-transform: uppercase; letter-spacing: .06em; }
.meta--with-author { justify-content: space-between; }
.meta-details { display: inline-flex; align-items: center; gap: 10px; }
.meta-flag {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-size: 14px;
  line-height: 1;
}
.meta-read { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-muted); }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--panel-border); background:#fafafa; font-weight: 600; }
.meta-authors { display: inline-flex; align-items: center; gap: 6px; }
.meta-author {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f6f3ee;
  text-decoration: none;
  color: inherit;
}
.meta-author[data-author-url] {
  cursor: pointer;
}
.meta-author img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta-author__initials { font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--navy); }
.meta-author:hover,
.meta-author:focus-visible { box-shadow: 0 0 0 2px rgba(13, 31, 45, 0.12); }
.headline { font-size: 18px; font-weight: 600; line-height: 1.25; font-family: "Playfair Display", Georgia, serif; }
.desc { font-size: 13px; color:#4b4136; line-height: 1.5; }
.card-actions { margin-top: auto; display: flex; justify-content: flex-end; }
.card-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
}
.plain {
    text-decoration: none;
    color: inherit;
}
.card-open:hover,
.card-open:focus-visible { text-decoration: underline; }
.card-open:focus-visible {
  outline: 2px solid rgba(13, 31, 45, 0.28);
  outline-offset: 2px;
}
.card-open-icon {
  font-size: 13px;
  transition: transform .16s ease;
}
.card-open:hover .card-open-icon,
.card-open:focus-visible .card-open-icon { transform: translateX(2px); }

/* Visible gutters */
.gutter { pointer-events: auto; }
.gutter.gutter-horizontal { width: var(--gutter-w); background: transparent; position: relative; }
.gutter.gutter-horizontal::before {
  content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width: 4px; height: 48px; border-radius: 3px; background: rgba(0,0,0,0.12);
  box-shadow: 0 -10px 0 0 rgba(0,0,0,.12), 0 10px 0 0 rgba(0,0,0,.12);
}
.gutter.gutter-vertical { height: 10px; background: transparent; position: relative; }
.gutter.gutter-vertical::before {
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width: 40px; height: 4px; border-radius: 3px; background: rgba(0,0,0,0.2);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
}

/* Footer */
.site-footer {
  margin: 24px auto 32px;
  width: fit-content;
  display: flex; gap: 16px; align-items: center;
  padding: 6px 12px; height: 34px;
  background: rgba(250, 243, 229, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(3px);
  font-size: 12px; color: var(--ink-muted);
}
.map-view .site-footer {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  margin: 0;
  z-index: 20;
}
.site-footer a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--ink-muted); }
.footer-sep { width: 1px; height: 16px; background: var(--panel-border); }

/* Map controls */
.map-controls {
  position: fixed; right: 18px; top: 120px; display: grid; gap:10px; z-index: 22;
}
.ctrl {
  width: 38px; height: 38px;
  display:grid; place-items:center; cursor:pointer; user-select:none;
  background: rgba(250,243,229,.95);
  border:1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ctrl:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.16); }
.ctrl:active { transform: translateY(0); }

/* Popup styling */
.maplibregl-marker.story-marker-pin {
  cursor: pointer;
  transform-origin: center bottom;
}
.maplibregl-marker.story-marker-pin:focus { outline: none; }
.maplibregl-marker.story-marker-pin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}
.maplibregl-marker.story-marker-pin > * {
  transform-origin: center bottom;
  transition: transform 0.22s ease, filter 0.18s ease;
}
.maplibregl-marker.story-marker-pin svg path {
  fill: var(--pin-base, #0d1f2d);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.1px;
  transition: fill 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease;
}
.maplibregl-marker.story-marker-pin.is-active svg path {
  /* fill: var(--pin-accent, #b79a72); */
  filter: brightness(1.5);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.4px;
}
.maplibregl-marker.story-marker-pin.is-hovered svg path {
  /* fill: var(--pin-accent, #b79a72); */
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.3px;
}
.story-marker-pin.is-active, .story-marker-pin.has-open-popup {
  z-index: 100;
}
.maplibregl-marker.story-marker-pin.is-hovered > * {
  filter: drop-shadow(0 8px 16px rgba(13, 31, 45, 0.18));
  transform: scale(1.05);
}
.maplibregl-marker.story-marker-pin.is-active > *,
.maplibregl-marker.story-marker-pin.has-open-popup > * {
  filter: drop-shadow(0 10px 18px rgba(13, 31, 45, 0.22));
}
.maplibregl-marker.story-marker-pin.is-hovered > * {
  filter: drop-shadow(0 8px 16px rgba(13, 31, 45, 0.18));
  transform: scale(1.05);
}

/* Popup styling */
.story-popup-card {
  background: #fffaf2;
}
.maplibregl-popup-content {
  border-radius: 14px !important;
  padding: 0 !important;
  background: #fffaf2;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  width: min(320px, calc(100vw - 56px));
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.maplibregl-popup {
  max-width: calc(100vw - 40px);
}
.story-popup-media {
  background: #efe5d3;
}
.story-popup-image {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.story-popup-body { padding: 14px 16px 16px; }
.story-popup-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #7a6a52; font-weight: 600; }
.story-popup-read { padding-left: 10px; border-left: 1px solid rgba(0,0,0,0.14); font-weight: 500; color: var(--ink-muted); letter-spacing: 0; text-transform: none; }
.story-popup-title { font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-weight: 700; line-height: 1.25; color: #3e3528; margin-top: 5px; margin-bottom: 10px; }
.story-popup-excerpt { font-size: 13px; color: #4b4136; line-height: 1.5; margin: 0; }
.story-popup-actions {
  padding: 0;
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.story-popup-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}
.story-popup-open:hover,
.story-popup-open:focus-visible { text-decoration: underline; }
.story-popup-open:focus-visible {
  outline: 2px solid rgba(13, 31, 45, 0.28);
  outline-offset: 2px;
}
.story-popup-open-icon {
  font-size: 13px;
  transition: transform .16s ease;
}
.story-popup-open:hover .story-popup-open-icon,
.story-popup-open:focus-visible .story-popup-open-icon { transform: translateX(2px); }

/* Map preview card */
.map-preview {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: min(360px, 90vw);
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  overflow: hidden;
  z-index: 21;
  backdrop-filter: blur(8px);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.map-preview[data-visible='true'] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.map-preview:hover {
  box-shadow: 0 20px 46px rgba(0,0,0,0.24);
}
.map-preview {
  cursor: pointer;
}
.map-preview a {
  pointer-events: auto;
}
.map-preview__media {
  background: #efe5d3;
  min-height: 120px;
}
.map-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-preview__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}
.map-preview__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(13, 31, 45, 0.08);
  color: #2c2418;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.map-preview__close:hover,
.map-preview__close:focus-visible {
  background: rgba(13, 31, 45, 0.16);
}
.map-preview__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6a52;
  font-weight: 600;
}
.map-preview__read:empty { display: none; }
.map-preview__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
}
.map-preview__excerpt {
  margin: 0;
  font-size: 13px;
  color: #4b4136;
  line-height: 1.5;
}

@media (min-width: 769px) {
  .map-preview {
    display: none;
  }
}
/* Mobile bottom sheet styles */
@media (max-width: 768px) {
  #split-overlay { flex-direction: column; padding: 0; }
  #transparent { display: none; }
  #featured {
    display: flex;
    width: 100%;
    height: auto;
    max-height: none;
    border-right: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
  }
  #featured::after { display: none; }
  #split-overlay {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }
  .panel-header { display: none; }
  .panel-meta { flex-direction: row; align-items: flex-start; gap: 10px; }
  .panel-context { align-items: flex-start; text-align: left; }
  .panel-hint { font-size: 11px; }
  .panel-link { padding-top: 0; }
  .panel-scroll { padding: 0; gap: 0; overflow: visible; position: unset; }
  .story-section { gap: 12px; padding: 0 0 12px; display: block; width: 100vw; }
  .embla__viewport { padding: 0; margin: 0 -14px; }
  .story-rail { display: flex; gap: 14px; padding-inline: 14px; }
  .story-rail::-webkit-scrollbar { height: 6px; }
  .embla__slide { flex: 0 0 320px; width: 320px; display: unset; margin-bottom: 0; }
  .card { grid-template-columns: 1fr; min-height: 100%; }
  .thumb { width: 100%; height: 140px; }
  .card-body { gap: 8px; }
  .meta { font-size: 11px; gap: 8px; }
  .card .desc { display: block; }
  .site-footer { display: none; }
  .topbar {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0;
    max-width: 100vw;
    border-radius: 0;
    border-left: 1px solid var(--panel-border);
    border-right: 1px solid var(--panel-border);
    padding: 8px 12px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .header-links {
    display: none;
  }
  .header-actions {
    display: flex;
  }
  .brand {
    width: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
  .brand-mark { height: 42px; }
  .brand-copy { display: none; }
  .nav-icon {
    padding: 6px 10px;
    font-size: 11px;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu__panel {
    right: 0;
  }
  .atlas-filter-strip__row {
    justify-content: center;
    background: rgba(250, 243, 229, 0.50);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  .atlas-filter-strip {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-width: none;
    width: auto;
  }
  .atlas-filter-panels {
    top: 64px;
  }
}

@media (max-width: 768px) {
  #featured { border-radius: 0; box-shadow: none; }
  .panel-link { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.65); font-weight: 600; transition: background .2s ease,
    border-color .2s ease, color .2s ease;
  }
  .panel-link:hover { border-color: rgba(0,0,0,0.2); }
  .panel-link::after { content: '↗'; margin-left: 6px; font-size: 11px; }
  .panel-scroll { overscroll-behavior-y: contain; padding: 0; }
  .map-preview { display: none; }
  .map-controls {
    top: 124px;
    right: 14px;
    bottom: auto;
  }
  .ctrl {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 9px;
  }
  .map-preview {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    grid-template-columns: 120px 1fr;
  }
}

.bordered {
    border: 5px #000056;
    transform: scale(2.0);
}

/* Stories view */
.stories-view {
  background: var(--bg);
  min-height: 100vh;
}

/* Author view */
.author-view {
  background: #f5ecdc;
  min-height: 100vh;
}

.author-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  gap: 32px;
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(0, 0, 66, 0.08), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-lg);
}

.author-hero__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 66, 0.12);
  border: 2px solid rgba(0, 0, 0, 0.08);
  font-weight: 800;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.author-hero__avatar--image {
  background-size: cover;
  background-position: center;
  color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.author-hero__body {
  display: grid;
  gap: 12px;
}

.author-hero__bios {
  display: grid;
  gap: 12px;
}

.author-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.author-hero__name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--navy);
}

.author-hero__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-muted);
}

.author-hero__bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}

.author-hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-social:hover,
.author-social:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.author-social__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.author-social__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-hero__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
}

.author-hero__meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.author-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.author-profile {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.author-profile__card {
  background: var(--panel-bg);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.author-profile__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.author-profile__sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.author-profile__item {
  display: grid;
  gap: 6px;
}

.author-profile__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 700;
}

.author-profile__value {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.author-profile__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-map-card {
  padding: 20px;
}

.author-map-card .story-map-card__map {
  height: 180px;
}

.author-map-card .story-map-card__meta {
  justify-content: flex-start;
}

.author-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 66, 0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.author-pill__count {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.author-stories__header h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3.5vw, 36px);
}

.author-stories__sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.stories-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  gap: 32px;
}

.stories-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}

.stories-sub {
  color: #4b4136;
  font-size: 16px;
  max-width: 580px;
}

.stories-grid .card,
.stories-container .empty {
  background: var(--panel-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 0;
}

.stories-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stories-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stories-grid .card .thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.stories-grid .card .card-body {
  display: grid;
  gap: 12px;
}

.stories-container .empty {
  padding: 48px;
  text-align: center;
  color: #7a6a52;
  font-size: 16px;
}

.is-external::after {
    content: ' ↗';
    font-size: 0.8em;
    margin-left: 2px;
    vertical-align: super;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 768px) {
  .stories-container {
    padding: 24px 20px 48px;
  }

  .author-shell {
    padding: 24px 20px 48px;
  }

  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-hero__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .author-hero__socials {
    justify-content: center;
  }

  .author-hero__actions {
    justify-content: center;
  }
}

@media (min-width: 768px) {
    .topbar {
        top: 0;
        left: 0;
        max-width: unset;
        width: 100vw;
        min-height: 60px;
        border-radius: unset;
    }

    #featured {
        opacity: 0.9;
        height: auto;
        padding-bottom: 0px;
    }

    .story-rail {
        gap: 0;
    }

    .panel-header {
        padding-top: 72px;
    }
}

/* Story read */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero-size--small,
.page-hero--small,
.story-hero--small {
  min-height: 400px;
}

.hero-size--medium,
.page-hero--medium,
.story-hero--medium {
  min-height: 600px;
}

.hero-size--large,
.page-hero--large,
.story-hero--large {
  min-height: 800px;
}

.page-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #0c172d;
  margin-bottom: 24px;
  display: grid;
  align-items: end;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.6) 80%);
}

.page-hero__caption {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
}

.story-shell {
  background: radial-gradient(circle at 12% 28%, rgba(183, 154, 114, 0.14), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(0, 0, 66, 0.14), transparent 35%),
    linear-gradient(180deg, #fdf7ee, #f4eee2 58%, #f0e7d6);
  min-height: 100vh;
  padding-top: 72px;
}

.story-hero {
  --hero-overlay-opacity: 0;
  --hero-copy-opacity: 1;
  --hero-copy-offset: 0px;
  --hero-image-shift: 0px;
  --hero-blur: 0px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 20px 30px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background-color: #0c172d;
  background-image: var(--hero-image-landscape, linear-gradient(135deg, #0c172d, #211018 65%, rgba(25, 31, 71, 0.86)));
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-position: center calc(50% + var(--hero-image-shift));
  background-repeat: no-repeat;
  background-size: cover;
}

.story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.55) 5%, rgba(8, 14, 26, 0.78) 65%, rgba(8, 14, 26, 0.9) 100%);
  opacity: var(--hero-overlay-opacity);
  transition: opacity 0.2s ease;
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
  z-index: 0;
  pointer-events: none;
}


.story-hero__inner {
  padding: 16px;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 18px;
  height: 100%;
  will-change: transform;
}

.story-hero__mobile {
  display: none;
  gap: 12px;
  opacity: var(--hero-copy-opacity);
  transform: translateY(var(--hero-copy-offset));
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  max-width: 520px;
  will-change: opacity, transform;
}

.story-hero--gsap .story-hero__mobile {
  transition: none;
}

.story-hero__top,
.story-hero__body {
  position: relative;
  z-index: 1;
  align-content: end;
}

.story-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.story-hero__topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.ghost-link {
  color: #fefefe;
  text-decoration: none;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  padding-bottom: 2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ghost-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.ghost-link--primary {
  color: #0c172d;
  background: #fff8ef;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.ghost-link--primary:hover,
.ghost-link--primary:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.story-hero__chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.story-hero__read {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.story-hero__eyebrow {
  margin: 12px 0 0;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.story-hero__title {
  margin: 0 0 10px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.story-hero__meta {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.story-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-hero__meta-label {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.story-hero__meta-divider {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.story-hero__excerpt {
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.story-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.story-hero__author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
  max-width: 520px;
}

.story-hero__author--compact {
  margin-top: 0;
  padding: 10px 12px;
  background: rgba(10, 18, 34, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.story-hero__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  background-size: contain;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
  letter-spacing: .02em;
}

.story-hero__avatar--image {
  background-size: cover;
  background-position: center;
  color: transparent;
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.story-hero__avatar--small {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 66, 0.08);
  color: var(--navy);
  border-color: rgba(0, 0, 0, 0.08);
}

.story-hero__author--compact .story-hero__avatar--small {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.story-hero__author-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.story-hero__author-link,
.story-aside__author-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
}

.story-hero__author-link:hover,
.story-hero__author-link:focus-visible,
.story-aside__author-link:hover,
.story-aside__author-link:focus-visible {
  text-decoration: underline;
}

.story-hero__author-meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.story-hero__visit {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-hero__visit-location {
  color: rgba(255, 255, 255, 0.92);
}

.story-hero__author-bio {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.story-body {
  max-width: 1150px;
  margin: 10px auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: start;
  will-change: opacity, transform;
}

.story-article {
  background: #fffcf7;
  border-radius: 22px;
  padding: 16px 38px 44px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 20px;
  position: relative;
}

.story-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(183, 154, 114, 0.08), transparent 28%);
  pointer-events: none;
}

.story-article > * { position: relative; z-index: 1; }

.story-block h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  margin: 10px 0 6px;
  color: var(--navy);
}

.story-paragraph {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.story-paragraph p {
  margin: 0 0 14px;
}

/* .story-paragraph p:first-of-type::first-letter { */
/*   font-size: 3em; */
/*   float: left; */
/*   line-height: 0.75; */
/*   padding-right: 6px; */
/*   padding-top: 5px; */
/*   font-family: "Playfair Display", Georgia, serif; */
/*   color: var(--navy); */
/* } */

.story-paragraph a {
  color: var(--navy);
  font-weight: 600;
}

.story-quote {
  border-left: 4px solid var(--navy);
  padding-left: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

.story-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.story-figure {
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f2e8;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}

.story-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.story-figure figcaption {
  padding: 12px 14px;
  color: var(--ink-muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.02);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.story-aside {
}

.story-aside__card {
  background: linear-gradient(180deg, #fffaf2, #f3e8d5);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.story-map-card {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 20px 20px 18px;
  background: radial-gradient(circle at 14% 12%, rgba(0, 0, 66, 0.08), transparent 38%),
    radial-gradient(circle at 82% 16%, rgba(183, 154, 114, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff, #f5eee3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.story-map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 34%);
  pointer-events: none;
}

.story-map-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.story-map-card__eyebrow {
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 66, 0.08);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11px;
}

.story-map-card__title {
  margin: 2px 0 2px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.story-map-card__copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.story-map-card__map-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.story-map-card__map {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  filter: saturate(1.05) contrast(1.05);
}

.story-map-card__pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(183, 154, 114, 0.28), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: atlas-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.story-map-card[data-visible='true'] .story-map-card__pulse,
.story-map-card[data-focused='true'] .story-map-card__pulse {
  opacity: 0.8;
}

.story-map-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.story-map-card__location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-map-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b79a72, #000042);
  box-shadow: 0 0 0 8px rgba(183, 154, 114, 0.1);
}

.story-map-card__label {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.story-map-card__value {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.story-map-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-map-card__recenter,
.story-map-card__atlas {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-map-card__recenter:hover,
.story-map-card__recenter:focus-visible,
.story-map-card__atlas:hover,
.story-map-card__atlas:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  border-color: rgba(0, 0, 0, 0.14);
}

.story-map-card__recenter.is-active {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.story-aside__card--author {
  margin-top: 10px;
  gap: 10px;
}

.story-aside__label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.story-aside__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 66, 0.08);
  color: var(--navy);
  font-weight: 700;
  width: fit-content;
}

.story-aside__meta {
  display: grid;
  gap: 4px;
}

.story-meta__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-meta__pills .pill {
  text-transform: none;
  letter-spacing: 0;
}

.story-aside__hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.story-aside__value {
  font-weight: 700;
  color: var(--ink);
}

.story-aside__author {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 35, 82, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(0, 0, 66, 0.08);
}

.story-aside__author-name {
  margin: 0;
  font-weight: 700;
}

.story-aside__author-title {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 14px;
}

.story-aside__visit {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.story-aside__visit-location {
  color: var(--ink-muted);
}

.story-aside__author-bio {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.story-aside__cta {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-aside__cta:hover {
  text-decoration: underline;
}

.story-empty {
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
}

@media (max-width: 900px) {
  .story-body {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }

  .story-aside {
    position: static;
  }

  .story-map-card__map {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .story-hero,
  .story-body {
    padding-inline: 0;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    border: 0;
  }

  .story-hero {
    --hero-overlay-opacity: 0.9;
    --hero-blur: 14px;
    min-height: 86vh;
    align-content: end;
    padding-block: 24px 18px;
    gap: 12px;
    background-position: center calc(48% + var(--hero-image-shift));
    background-image: var(--hero-image-portrait, var(--hero-image-landscape, linear-gradient(135deg, #0c172d, #211018 65%, rgba(25, 31, 71, 0.86))));
  }

  .story-hero__inner {
    gap: 16px;
  }

  .story-hero__body {
    display: grid;
    gap: 16px;
  }

  .story-hero__mobile {
    display: grid;
  }

  .story-hero__meta {
    display: flex;
  }

  .story-hero__actions {
    margin-top: 4px;
  }

  .story-hero__excerpt {
    font-size: 16px;
    line-height: 1.6;
  }

  .story-article {
    padding: 22px;
    border-radius: 0;
  }

  .story-article > .story-hero__title {
    display: none;
  }

  .story-aside__card .story-hero__excerpt {
    display: none;
  }

  .story-aside__card--meta {
    display: none;
  }

  .story-aside__card--author {
    display: none;
  }

  .story-map-card__map {
    height: 180px;
  }

  .story-hero__title {
    font-size: clamp(28px, 8vw, 38px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero__mobile {
    transition: none;
  }

  .story-hero::before {
    transition: none;
  }
}
