@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap");
:root {
  color-scheme: dark;
  --topbar-h: 56px;
  --bg: #0c141a;
  --panel: #101b25;
  --panel-2: #16242f;
  --panel-3: #1d2f3d;
  --ink: #f1e7cb;
  --ink-dim: #c5b995;
  --muted: #94a0a6;
  --gold: #d6b36a;
  --gold-bright: #f0d58f;
  --line: rgba(214, 179, 106, 0.32);
  --line-strong: rgba(214, 179, 106, 0.7);
  --easy: #5fd6ff;
  --moderate: #ffd34d;
  --challenging: #ff9440;
  --strenuous: #ff5470;
  --serif: "Cinzel", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --panel-bg: linear-gradient(180deg, rgba(24, 39, 52, 0.97), rgba(13, 22, 30, 0.97));
  --panel-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--sans);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:hover,
a:hover {
  color: var(--gold-bright);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible,
.detail:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.detail:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
svg {
  fill: currentColor;
}
kbd {
  font: 600 11px var(--sans);
  border: 1px solid rgba(214, 179, 106, 0.4);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0 4px;
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.2);
}
.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  z-index: 1000;
  background: var(--panel);
  padding: 16px;
}
.eyebrow {
  font: 600 10px var(--serif);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* Shared strategy-game controls */
.civ-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #223649, #142230);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: 600 12px var(--serif);
  letter-spacing: 1px;
  white-space: nowrap;
}
.civ-button:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #2a4258, #172838);
}
.civ-button svg {
  width: 15px;
  height: 15px;
}
.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px var(--sans);
  white-space: nowrap;
  color: var(--ink-dim);
}
.difficulty:before {
  content: "";
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--c, currentColor);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.difficulty.easy {
  --c: var(--easy);
}
.difficulty.moderate {
  --c: var(--moderate);
}
.difficulty.challenging {
  --c: var(--challenging);
}
.difficulty.strenuous {
  --c: var(--strenuous);
}
/* Top resource bar */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 18px;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #1a2b3a, #0f1a24);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-emblem {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f4a63, #142334);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px #000, 0 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--gold-bright);
}
.brand-emblem svg {
  width: 20px;
}
.brand-name {
  font: 700 21px var(--serif);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.brand small {
  font: 600 12px var(--serif);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.national-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  margin-left: 18px;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.stat svg {
  width: 17px;
  height: 17px;
}
.stat b {
  font: 700 15px var(--sans);
  color: var(--ink);
}
.stat-trails svg {
  color: var(--challenging);
}
.stat-regions svg {
  color: #8fd1c3;
}
.stat-peak svg {
  color: #e9eef2;
}
.stat-guides svg {
  color: var(--gold-bright);
}
button.stat:hover {
  background: rgba(214, 179, 106, 0.1);
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-actions #about span[aria-hidden] {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font: 700 10px var(--sans);
}
/* Layout */
.atlas-layout {
  display: grid;
  grid-template-columns: 342px minmax(0, 1fr);
  height: calc(100dvh - var(--topbar-h));
}
/* Trail library */
.library {
  background: var(--panel-bg), var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line-strong);
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.4);
  z-index: 5;
}
.library-heading {
  padding: 20px 22px 14px;
}
.library-heading .library-title {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}
.intro {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.search-wrap {
  display: flex;
  align-items: center;
  margin: 0 18px 12px;
  background: rgba(4, 10, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  gap: 9px;
  padding: 9px 11px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}
.search-wrap:focus-within {
  border-color: var(--line-strong);
}
.search-wrap svg {
  width: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  flex-shrink: 0;
}
.search-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
}
.search-wrap input::placeholder {
  color: #7f8b90;
}
.library-tabs {
  display: flex;
  margin: 0 18px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.library-tabs button {
  font: 600 12px var(--serif);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 0 10px;
  color: var(--muted);
  position: relative;
}
.library-tabs button[aria-selected="true"] {
  color: var(--gold-bright);
}
.library-tabs button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}
.library-tabs button > span {
  font: 600 10px var(--sans);
  background: rgba(214, 179, 106, 0.14);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 3px;
  color: var(--ink-dim);
  letter-spacing: 0;
}
.library-tabs button > span:empty {
  display: none;
}
.library-tabs #saved-toggle {
  margin-left: auto;
  font: 400 20px var(--sans);
  padding: 2px 4px 8px;
}
.library-tabs #saved-toggle[aria-pressed="true"] {
  color: var(--strenuous);
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 12px 18px 6px;
}
.filters label {
  min-width: 0;
}
.filters select {
  width: 100%;
  color: var(--ink);
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1c2d3b, #132029);
  padding: 8px 24px 8px 9px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='m2 2 3 3 3-3' stroke='%23d6b36a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1c2d3b, #132029);
  background-repeat: no-repeat;
  background-position: right 9px center, 0 0;
}
.filters select:hover {
  border-color: var(--line-strong);
}
.results-heading {
  padding: 8px 20px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.results-heading button {
  font-size: 12px;
  color: var(--gold);
  padding: 0;
}
.results {
  flex: 1;
  overflow-y: auto;
  padding: 2px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #3b5063 transparent;
  min-height: 0;
}
.trail-card {
  --diff: var(--gold);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  padding: 10px 10px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.14s, border-color 0.14s;
}
.trail-card:hover,
.trail-card.map-hover {
  background: rgba(214, 179, 106, 0.08);
  border-color: var(--line);
  color: inherit;
}
.trail-card.selected {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(214, 179, 106, 0.16), rgba(214, 179, 106, 0.04));
  box-shadow: inset 3px 0 0 var(--diff);
}
.card-hex {
  flex-shrink: 0;
  width: 38px;
  height: 42px;
  display: grid;
  place-content: center;
  text-align: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--diff);
  color: #0e1510;
  font: 700 14px/1 var(--sans);
  margin-top: 1px;
}
.card-hex.wide {
  font-size: 11.5px;
  letter-spacing: -0.3px;
}
.card-hex small {
  display: block;
  font: 700 7.5px var(--sans);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 2px;
}
.card-body {
  display: block;
  flex: 1;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.card-region {
  color: var(--gold);
  font: 600 10px var(--serif);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.card-title {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.saved-mark {
  color: var(--strenuous);
  font-size: 12px;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.card-guide {
  margin-left: auto;
  color: var(--gold);
  font-size: 11px;
}
.guide-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.empty-state {
  padding: 24px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.empty-state strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.empty-state button {
  padding: 10px 0;
  color: var(--gold);
  font-size: 13px;
  display: block;
}
.library-footer {
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.library-footer a {
  color: var(--gold);
}
.footer-mark {
  color: var(--gold);
  margin-right: 4px;
}
/* Map */
.map-shell {
  position: relative;
  overflow: hidden;
  background: #0e171e;
  min-width: 0;
}
.map-shell canvas#atlas-map {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.map-shell canvas#atlas-map:active {
  cursor: grabbing;
}
.map-topline {
  position: absolute;
  top: 16px;
  left: 20px;
  pointer-events: none;
}
.map-title {
  display: flex;
  flex-direction: column;
  padding: 8px 18px 10px 14px;
  background: linear-gradient(90deg, rgba(10, 18, 25, 0.78), rgba(10, 18, 25, 0));
  border-left: 2px solid var(--gold);
}
.map-title .eyebrow {
  font-size: 9px;
  margin: 0 0 2px;
}
.map-name {
  font: 700 32px/1.1 var(--serif);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 8px #000;
}
.map-name small {
  font: 500 16px var(--sans);
  letter-spacing: 0;
  color: var(--ink-dim);
  margin-left: 6px;
  text-transform: none;
}
.compass {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-bright);
  font: 700 11px var(--serif);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px #000);
}
.compass svg {
  width: 48px;
  height: 48px;
  order: 1;
}
.compass span {
  margin-bottom: -2px;
}
.map-tools {
  position: absolute;
  right: 16px;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}
.map-tools button {
  width: 38px;
  height: 38px;
  font-size: 20px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(214, 179, 106, 0.18);
  color: var(--ink);
}
.map-tools button svg {
  width: 16px;
  height: 16px;
}
.map-tools button:last-child {
  font: 600 13px var(--serif);
  border: 0;
}
.map-tools button:hover {
  background: rgba(214, 179, 106, 0.12);
}
.map-tools button[aria-pressed="false"] {
  color: var(--muted);
  text-decoration: line-through;
}
.minimap-frame {
  position: absolute;
  left: 16px;
  bottom: 46px;
  width: 214px;
  padding: 5px 5px 3px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}
.minimap-frame canvas {
  display: block;
  width: 202px;
  height: 116px;
  border-radius: 3px;
  cursor: crosshair;
  touch-action: none;
}
.minimap-frame span {
  display: block;
  text-align: center;
  font: 600 8.5px var(--serif);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 0 1px;
}
.map-bottom {
  position: absolute;
  bottom: 46px;
  left: 246px;
  right: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.lens-dock {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-strong);
  padding: 4px;
  background: var(--panel-bg);
  border-radius: 5px;
  box-shadow: var(--panel-shadow);
  pointer-events: auto;
}
.lens-dock button {
  padding: 8px 13px;
  border-radius: 3px;
  border: 1px solid transparent;
  color: var(--ink-dim);
  font: 600 12px var(--serif);
  letter-spacing: 1px;
  white-space: nowrap;
}
.lens-dock button span {
  margin-right: 5px;
  font-family: var(--sans);
}
.lens-dock button:hover {
  background: rgba(214, 179, 106, 0.1);
}
.lens-dock button[aria-pressed="true"] {
  background: linear-gradient(180deg, #6f5528, #463415);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.25);
}
.legend {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 5px;
  background: rgba(10, 17, 24, 0.82);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-dim);
  pointer-events: auto;
}
.legend-title {
  font: 600 9px var(--serif);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 4px;
}
.legend-routes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend-route {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.legend-route i {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  box-shadow: 0 0 0 1.5px #0a0e0a;
}
.legend-route em {
  font-style: normal;
  color: var(--muted);
}
.legend-bands {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 6px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.legend-bands .legend-title {
  grid-row: span 2;
}
.legend-swatches {
  display: flex;
}
.legend-swatches i {
  width: 14px;
  height: 7px;
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.map-credit {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}
.map-credit > * {
  pointer-events: auto;
}
.scale-bar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 30px;
  height: 17px;
  padding-bottom: 3px;
  border: 2px solid var(--ink-dim);
  border-top: 0;
  font: 600 10px/1 var(--sans);
  color: var(--ink-dim);
  white-space: nowrap;
}
.map-credit button {
  font-size: 11px;
  padding: 0;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-note {
  margin-left: auto;
}
.welcome-card {
  position: absolute;
  top: 78px;
  right: 16px;
  width: 268px;
  background: var(--panel-bg);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--gold);
  padding: 16px 16px 14px;
  border-radius: 5px;
  box-shadow: var(--panel-shadow);
}
.welcome-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.welcome-close:hover {
  background: rgba(214, 179, 106, 0.12);
}
.welcome-card h2 {
  font-size: 21px;
  line-height: 1.15;
  margin: 2px 0 8px;
}
.welcome-card p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0 0 12px;
}
.quick-picks {
  display: grid;
  gap: 5px;
}
.quick-picks button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f3243, #142230);
  font-size: 13px;
  font-weight: 600;
}
.quick-picks button:before {
  content: "";
  width: 9px;
  height: 10px;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold);
}
.quick-picks button[data-trail="everest-base-camp"]:before {
  background: var(--challenging);
}
.quick-picks button[data-trail="annapurna-circuit"]:before {
  background: var(--strenuous);
}
.quick-picks button[data-trail="poon-hill"]:before,
.quick-picks button[data-trail="shivapuri"]:before {
  background: var(--moderate);
}
.quick-picks button:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #2a4258, #172838);
}
.map-tooltip {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--panel-bg);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 12px;
  box-shadow: var(--panel-shadow);
  max-width: 270px;
  z-index: 4;
}
.map-tooltip strong {
  font: 700 14px var(--serif);
  letter-spacing: 0.5px;
}
.tt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
}
.tt-meta i {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000;
}
.tt-hint {
  color: var(--gold);
  font-size: 11px;
}
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(circle, #16242f, #0b1218);
  z-index: 8;
}
.map-loading h2 {
  font-size: 26px;
  margin: 18px 0 4px;
  text-align: center;
}
.map-loading p {
  font-size: 13px;
  color: var(--muted);
}
.loading-mountain {
  color: var(--gold);
  font-size: 52px;
  animation: breathe 2s infinite;
}
.map-loading button {
  color: var(--gold);
  padding: 14px;
}
/* Selected trail panel */
.detail {
  --diff: var(--gold);
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 14px;
  width: 352px;
  background: var(--panel-bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--panel-shadow);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b5063 transparent;
  z-index: 6;
}
.detail-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, #1c2e3e, #142330);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 -1px var(--diff);
}
.detail-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 600 12px var(--sans);
  color: var(--ink-dim);
}
.detail-nav small {
  color: var(--muted);
  font-size: 11px;
}
.detail-nav button,
.detail-close {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #223649, #142230);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.detail-nav button:hover,
.detail-close:hover {
  border-color: var(--line-strong);
}
.detail-header {
  padding: 16px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.detail-hero {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hex-badge {
  flex-shrink: 0;
  width: 66px;
  height: 74px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--gold-bright), #8a6a2c);
  display: grid;
  place-items: center;
}
.hex-badge span {
  width: 58px;
  height: 66px;
  clip-path: inherit;
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--diff) 85%, #fff), var(--diff) 60%, color-mix(in srgb, var(--diff) 70%, #000));
  display: grid;
  place-content: center;
  text-align: center;
  color: #101611;
}
.hex-badge b {
  font: 700 15px/1 var(--sans);
  letter-spacing: -0.3px;
}
.hex-badge small {
  font: 700 8px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.detail .eyebrow {
  margin: 0 0 4px;
  font-size: 9.5px;
}
.detail h2 {
  font-size: 23px;
  line-height: 1.12;
  margin: 0 0 7px;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.chips .difficulty {
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  color: var(--ink);
}
.chip {
  font: 600 11px var(--sans);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(143, 209, 107, 0.45);
  color: #b9e59c;
  background: rgba(143, 209, 107, 0.1);
}
.detail-summary {
  color: var(--ink-dim);
  line-height: 1.6;
  font-size: 14px;
  margin: 14px 0 0;
}
.detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}
.detail-metrics div {
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(4, 10, 15, 0.4);
  border: 1px solid rgba(214, 179, 106, 0.2);
}
.detail-metrics b {
  display: block;
  font: 700 15px var(--sans);
  color: var(--ink);
}
.detail-metrics span {
  font: 600 9px var(--serif);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}
.detail-actions .civ-button {
  justify-content: center;
}
.save-button {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #223649, #142230);
  font: 600 13px var(--sans);
}
.save-button[aria-pressed="true"] {
  color: #ffd0d8;
  border-color: rgba(255, 84, 112, 0.6);
  background: linear-gradient(180deg, #4a2230, #2c1520);
}
.detail-content {
  padding: 16px 18px 20px;
}
.section-label {
  font: 600 11px var(--serif);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label:after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.section-label span {
  font: 500 11px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.profile-wrap {
  border-radius: 4px;
  background: rgba(4, 10, 15, 0.4);
  border: 1px solid rgba(214, 179, 106, 0.2);
  padding: 4px 2px 0;
}
.profile {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  cursor: crosshair;
  touch-action: pan-y;
}
.profile-grid {
  stroke: rgba(214, 179, 106, 0.18);
  stroke-dasharray: 2 3;
}
.profile-axis {
  fill: var(--muted);
  font: 500 8px var(--sans);
}
.profile-stop {
  fill: #f1e7cb;
  stroke: #0d1410;
  stroke-width: 1.2;
}
.profile-goal {
  fill: var(--diff);
  stroke: #0d1410;
  stroke-width: 1.4;
}
.profile-cursor line {
  stroke: var(--gold-bright);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.profile-cursor circle {
  fill: #fff6dc;
  stroke: #0d1410;
  stroke-width: 1.5;
}
.profile-cursor text {
  fill: var(--ink);
  font: 700 8.5px var(--sans);
  paint-order: stroke;
  stroke: #0d1720;
  stroke-width: 3px;
}
.profile-caption {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 18px;
}
.waypoints {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  position: relative;
}
.waypoints:before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--diff);
  opacity: 0.55;
}
.stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 6px 5px 3px;
  border-radius: 4px;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
}
.stop:hover,
.stop:focus-visible {
  background: rgba(214, 179, 106, 0.1);
}
.pip {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #132130;
  border: 2px solid #e6c57e;
  font: 700 10px var(--sans);
  color: #f6ecd0;
  z-index: 1;
}
.stop.goal .pip {
  background: var(--diff);
  border-color: #0d130f;
  color: #121a14;
  box-shadow: 0 0 0 2px var(--diff);
}
.stop-name {
  flex: 1;
  min-width: 0;
}
.stop-name em {
  font: 600 10px var(--serif);
  font-style: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 4px;
}
.stop-elev {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.season-strip {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}
.season-strip span {
  flex: 1;
  text-align: center;
  font: 600 10px var(--sans);
  color: #5f6d74;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 0;
  border-radius: 3px;
  border: 1px solid transparent;
}
.season-strip .in-season {
  background: rgba(143, 209, 107, 0.2);
  color: #c9efae;
}
.season-strip .now {
  border-color: var(--gold-bright);
}
.season-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}
.detail-guide {
  display: block;
  background: linear-gradient(180deg, rgba(214, 179, 106, 0.14), rgba(214, 179, 106, 0.06));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  margin: 7px 0;
  color: var(--gold-bright);
  font-size: 14px;
  line-height: 1.5;
}
.detail-guide:hover {
  border-color: var(--line-strong);
}
.detail-guide small {
  display: block;
  color: var(--ink-dim);
  font: 600 9px var(--serif);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.detail-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 0;
}
.detail-sources a {
  font-size: 11px;
  color: var(--ink-dim);
  display: block;
  margin: 5px 0;
  text-decoration: underline;
}
/* Dialog */
dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 85dvh;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--gold);
  background: var(--panel-bg), var(--panel);
  color: var(--ink-dim);
  border-radius: 6px;
  padding: 24px 30px;
  box-shadow: 0 20px 100px #000c;
}
dialog::backdrop {
  background: rgba(4, 9, 13, 0.72);
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-header button {
  font-size: 27px;
  line-height: 1;
}
dialog h2 {
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 4px 0 14px;
}
dialog h3 {
  font: 600 13px var(--serif);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 22px;
}
dialog p,
dialog li {
  font-size: 14px;
  line-height: 1.7;
}
.howto {
  padding-left: 18px;
  margin: 0;
}
.howto b {
  color: var(--ink);
}
.swatch {
  white-space: nowrap;
}
.swatch:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: 2px;
  box-shadow: 0 0 0 1px #000;
  background: var(--c);
}
.swatch.easy {
  --c: var(--easy);
}
.swatch.moderate {
  --c: var(--moderate);
}
.swatch.challenging {
  --c: var(--challenging);
}
.swatch.strenuous {
  --c: var(--strenuous);
}
dialog a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#source-list p {
  font-size: 12px;
}
.dialog-footnote {
  color: var(--muted) !important;
  font-size: 12px !important;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 20px;
  background: linear-gradient(180deg, #f3dfa6, #d6b36a);
  color: #1b1608;
  border: 1px solid #8a6a2c;
  border-radius: 5px;
  box-shadow: 0 10px 40px #0007;
  z-index: 50;
  font-size: 13px;
  font-weight: 600;
}
.mobile-toggle {
  display: none;
}
.noscript {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  padding: 20px;
  background: var(--panel);
}
@keyframes breathe {
  50% {
    opacity: 0.35;
    transform: translateY(-4px);
  }
}
/* Selected trail: overlays step aside from the panel */
.has-selection .map-tools {
  right: 380px;
}
.has-selection .compass {
  display: none;
}
.has-selection .map-bottom {
  right: 434px;
}
.has-selection .credit-note,
.has-selection .legend-bands {
  display: none;
}
@media (min-width: 1600px) {
  .atlas-layout {
    grid-template-columns: 370px minmax(0, 1fr);
  }
}
@media (max-width: 1400px) {
  .legend-bands {
    display: none;
  }
}
@media (max-width: 1250px) {
  .stat-regions,
  .stat-peak {
    display: none;
  }
  .lens-dock button {
    padding: 8px 10px;
  }
}
@media (max-width: 1150px) {
  .atlas-layout {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .detail {
    width: 320px;
  }
  .has-selection .map-tools {
    right: 348px;
  }
  .has-selection .map-bottom {
    right: 400px;
  }
  .minimap-frame {
    width: 164px;
  }
  .minimap-frame canvas {
    width: 152px;
    height: 88px;
  }
  .map-bottom {
    left: 196px;
  }
  .legend {
    gap: 8px;
  }
  .legend-routes {
    gap: 7px;
  }
  .credit-note {
    display: none;
  }
  .welcome-card {
    width: 236px;
  }
  .welcome-card p:not(.eyebrow) {
    display: none;
  }
}
@media (max-width: 1250px) and (min-width: 761px) {
  .has-selection .minimap-frame,
  .has-selection .map-bottom .legend {
    display: none;
  }
  .has-selection .map-bottom {
    left: 16px;
  }
}
@media (max-width: 960px) and (min-width: 761px) {
  .map-bottom .legend .legend-title {
    display: none;
  }
}
@media (max-height: 720px) and (min-width: 761px) {
  .library-heading .intro {
    display: none;
  }
  .library-heading {
    padding-top: 14px;
  }
  .welcome-card {
    top: 70px;
  }
}
@media (max-width: 760px) {
  :root {
    --topbar-h: 54px;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .brand-emblem {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 17px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 1.6px;
  }
  .national-stats {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .label {
    display: none;
  }
  .header-actions .civ-button {
    padding: 8px 9px;
  }
  .atlas-layout {
    display: block;
  }
  .map-shell {
    height: 100%;
  }
  .library {
    position: absolute;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    padding-bottom: 70px;
    border: 0;
    z-index: 7;
  }
  .show-library .library {
    display: flex;
  }
  .show-library .map-shell {
    visibility: hidden;
  }
  .library-heading {
    padding: 16px 20px 12px;
  }
  .library-heading .library-title {
    font-size: 24px;
  }
  .filters select {
    font-size: 14px;
    padding: 10px;
  }
  .card-title {
    font-size: 16px;
  }
  .library-footer {
    display: none;
  }
  .map-topline {
    top: 12px;
    left: 12px;
  }
  .map-name {
    font-size: 24px;
    letter-spacing: 4px;
  }
  .map-title .eyebrow {
    font-size: 8px;
  }
  .compass {
    right: 10px;
    top: 10px;
    width: 40px;
  }
  .compass svg {
    width: 38px;
    height: 38px;
  }
  .minimap-frame {
    display: none;
  }
  .map-tools {
    right: 12px;
    bottom: 186px;
  }
  .map-tools button {
    width: 40px;
    height: 40px;
  }
  .map-bottom {
    left: 12px;
    right: 12px;
    bottom: 114px;
    gap: 6px;
  }
  .legend {
    padding: 5px 9px;
    font-size: 10px;
  }
  .legend .legend-title {
    display: none;
  }
  .legend-routes {
    gap: 8px;
  }
  .legend-route i {
    width: 11px;
  }
  .lens-dock button {
    font-size: 11px;
    padding: 9px 9px;
  }
  .map-credit {
    left: 14px;
    right: 14px;
    bottom: 84px;
    gap: 14px;
  }
  .map-credit button {
    margin-left: auto;
  }
  .welcome-card {
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 11px 12px;
    border-top-width: 2px;
  }
  .welcome-card .eyebrow {
    display: none;
  }
  .welcome-card h2 {
    font-size: 16px;
    margin: 0 0 8px;
  }
  .welcome-card p:not(.eyebrow) {
    display: none;
  }
  .quick-picks {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    margin: 0 -12px;
    padding: 0 12px;
  }
  .quick-picks button {
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 12px;
  }
  .mobile-toggle {
    display: block;
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    border: 1px solid #8a6a2c;
    border-radius: 30px;
    background: linear-gradient(180deg, #f3dfa6, #d6b36a);
    color: #1b1608;
    padding: 12px 28px;
    font: 700 13px var(--serif);
    letter-spacing: 1.2px;
    box-shadow: 0 8px 24px #0007;
    min-width: 170px;
  }
  .mobile-toggle:hover {
    color: #1b1608;
  }
  .detail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 68dvh;
    max-height: calc(100% - 80px);
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    padding-bottom: 78px;
    z-index: 8;
  }
  .detail-bar {
    border-radius: 12px 12px 0 0;
  }
  .detail h2 {
    font-size: 22px;
  }
  .toast {
    bottom: 85px;
    max-width: calc(100vw - 30px);
    width: max-content;
  }
  .has-selection .map-topline {
    display: none;
  }
  .has-selection .map-tools {
    top: 10px;
    bottom: auto;
    right: 10px;
    flex-direction: row;
  }
  .has-selection .map-tools button {
    border-bottom: 0;
    border-right: 1px solid rgba(214, 179, 106, 0.18);
  }
  .has-selection .map-tools button:last-child {
    border: 0;
  }
  .has-selection .map-bottom,
  .has-selection .map-credit {
    display: none;
  }
  dialog {
    padding: 20px;
  }
  dialog h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* The atlas keeps its first-screen height; the planning guide is a readable page below it. */
body {
  overflow-x: clip;
  overflow-y: auto;
}
.atlas-layout {
  position: relative;
}
#atlas {
  scroll-margin-top: var(--topbar-h);
}
.guide-jump {
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.map-noscript {
  position: absolute;
  z-index: 8;
  top: 36%;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 40px));
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}
.map-noscript h2 {
  font-size: 22px;
}
.map-noscript p {
  font-size: 16px;
  line-height: 1.7;
}
.map-noscript a {
  color: var(--gold);
  text-decoration: underline;
}
.trekking-guide {
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #101d28, #0c141a 800px);
  padding: 64px 28px 36px;
  scroll-margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #c8cfd2;
}
.guide-container {
  max-width: 1120px;
  margin: auto;
}
.trekking-guide a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #d6b36a60;
}
.trekking-guide a:hover {
  text-decoration-color: var(--gold-bright);
}
.trekking-guide h1,
.trekking-guide h2,
.trekking-guide h3,
.trekking-guide h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.trekking-guide h1,
.trekking-guide h2 {
  font-size: clamp(23px, 2.3vw, 32px);
  margin: 0 0 22px;
}
.trekking-guide h3 {
  font-size: 21px;
  margin: 28px 0 14px;
}
.trekking-guide h4 {
  font-size: 17px;
  margin: 0 0 8px;
}
.trekking-guide p {
  margin: 0 0 18px;
}
.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 44px;
  color: var(--muted);
}
.guide-heading {
  max-width: 900px;
  margin-bottom: 36px;
}
.guide-heading .eyebrow,
.guide-region > .eyebrow,
.guide-faq > .eyebrow {
  font-size: 12px;
}
.guide-lead {
  font-size: 18px;
  line-height: 1.85;
  max-width: 78ch;
}
.guide-map-link {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none !important;
  background: var(--panel-2);
  font-weight: 600;
}
.guide-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
  font-size: 14px;
}
.guide-planning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.guide-planning section {
  min-width: 0;
}
.guide-planning h2 {
  font-size: 24px;
}
.guide-planning h3 {
  font-size: 19px;
}
.guide-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.guide-section-heading > a {
  white-space: nowrap;
  font-size: 14px;
}
.guide-section-heading .eyebrow {
  font-size: 12px;
  margin-bottom: 8px;
}
.route-directory > p {
  max-width: 82ch;
}
.guide-region {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 40px;
}
.guide-region > h3 {
  margin-top: 0;
  font-size: 24px;
}
.guide-region > p:not(.eyebrow) {
  max-width: 90ch;
}
.guide-region > .eyebrow {
  margin-bottom: 8px;
}
.guide-route-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.guide-route-list > li {
  padding: 22px;
  background: #14222d;
  border: 1px solid #d6b36a24;
  border-radius: 6px;
  min-width: 0;
}
.guide-route-list h4 a {
  text-decoration: none;
}
.guide-route-list p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.guide-route-list .guide-route-meta {
  font-size: 13px;
  color: #b0bac0;
  margin-bottom: 12px;
}
.guide-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  margin-top: 16px;
}
.guide-faq {
  padding-top: 44px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.guide-faq dl {
  margin: 0;
}
.guide-faq dl > div {
  padding: 22px 0;
  border-bottom: 1px solid #d6b36a20;
}
.guide-faq dt {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}
.guide-faq dd {
  margin: 0;
  max-width: 92ch;
}
.guide-footer {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 56px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}
.guide-footer > .brand-name {
  text-decoration: none;
  font-size: 20px;
}
.guide-footer p {
  margin: 0;
}
@media (max-width: 760px) {
  .library {
    top: 0;
  }
  .mobile-toggle {
    position: absolute;
    bottom: auto;
    top: calc(100dvh - max(20px, env(safe-area-inset-bottom)) - 44px);
    height: 44px;
  }
  .trekking-guide {
    padding: 36px 20px 28px;
  }
  .guide-breadcrumbs {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .guide-lead {
    font-size: 17px;
  }
  .guide-planning {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }
  .guide-contents {
    gap: 12px 22px;
    margin-bottom: 32px;
  }
  .guide-route-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-route-list > li {
    padding: 18px;
  }
  .guide-section-heading {
    display: block;
  }
  .guide-section-heading > a {
    display: inline-block;
    margin-bottom: 18px;
  }
  .guide-footer {
    display: block;
  }
  .guide-footer p {
    margin-top: 16px;
  }
  .guide-faq {
    margin-top: 36px;
    padding-top: 32px;
  }
}
@media (max-width: 420px) {
  .brand small,
  .brand-divider {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .guide-jump {
    font-size: 11px;
  }
}

/* The curated pins use a separate layer control and the existing route sheet. */
.library-tabs {
  gap: 10px;
}
.library-tabs [role="tab"] {
  white-space: nowrap;
  letter-spacing: 0.65px;
  font-size: 11px;
}
.landmarks-toggle {
  pointer-events: auto;
  background: var(--panel-bg);
}
.landmarks-toggle[aria-pressed="true"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}
.landmark-card .card-body {
  display: grid;
  gap: 5px;
}
.landmark-card .card-guide {
  text-align: right;
}
.landmark-summary {
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1.45;
}
.landmark-link {
  width: 100%;
  text-align: left;
}
.landmark-pin-note {
  margin-bottom: 16px;
}

.photo-gallery {
  margin: 0 0 22px;
}
.photo-gallery figure {
  margin: 0;
}
.photo-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0b141b;
  color: var(--muted);
  font-size: 12px;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-gallery figcaption {
  padding: 9px 0 0;
}
.photo-caption {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}
.photo-credit {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.photo-nav button {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-bright);
}
.photo-count {
  min-width: 38px;
  color: var(--ink-dim);
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
