.legends-atlas {
  --legend-bg: #1d1712;
  --legend-panel: #262019;
  --legend-ink: #f7e9d0;
  --legend-muted: #d7c3a8;
  --legend-gold: #edc383;
  --legend-line: #725939;
  --legend-focus: #ffdea0;
  margin: 0;
  padding: 0;
  max-width: none;
  background: radial-gradient(ellipse at 68% 0%, #32261c, transparent 46rem), var(--legend-bg);
  color: var(--legend-ink);
  color-scheme: dark;
  font: 1.13rem/1.67 "Source Serif 4", Georgia, serif;
}
.legends-atlas *, .legends-atlas *::before, .legends-atlas *::after { box-sizing: border-box; }
.legends-atlas [hidden] { display: none !important; }
.legends-atlas :focus-visible { outline: 2px solid var(--legend-focus); outline-offset: 4px; }
.legends-atlas :target { scroll-margin-block-start: 5.5rem; }
.legends-atlas :is(a, summary) { color: var(--legend-gold); text-underline-offset: .24em; }
.legends-atlas a:hover, .legends-atlas summary:hover { color: var(--legend-ink); }
.legends-atlas :is(h1, h2, h3) {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -.012em;
  color: var(--legend-ink);
  text-wrap: balance;
  margin: 0;
}
.legends-atlas h1 { font-size: clamp(3rem, 7.25vw, 6rem); }
.legends-atlas h2 { font-size: clamp(2.05rem, 4vw, 3.1rem); }
.legends-atlas h3 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); margin: 0 0 .65rem; }
.legends-atlas p, .legends-atlas blockquote { margin: 0 0 1.15em; }
.legend-frame {
  width: min(100% - clamp(2rem, 7.5vw, 7rem), 87rem);
  margin-inline: auto;
  padding-block: clamp(.9rem, 2.1vw, 1.7rem) clamp(3rem, 6vw, 6rem);
}
.legend-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--legend-muted);
}
.legend-breadcrumb li + li::before { content: "/"; color: var(--legend-muted); padding-inline-end: .65rem; }
.legend-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 5.5rem);
  padding-block: clamp(2.25rem, 5.5vw, 5rem);
}
.legend-intro { margin-block-start: 1.25rem; }
.legend-intro p:first-child { color: var(--legend-ink); font-size: 1.08em; line-height: 1.57; }
.legend-intro p { color: var(--legend-muted); }
.legend-cta {
  display: inline-flex;
  min-height: 2.95rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2b56f;
  padding: .37rem .95rem;
  color: #21170d !important;
  text-decoration: none;
  background: #e8bd7a;
  font-weight: 650;
}
.legend-cta:hover { background: #f9d8a3; }
.legend-figure {
  margin: 0 auto;
  background: #231b14;
  border: 1px solid var(--legend-line);
  padding: clamp(.6rem, 1.2vw, .95rem);
  box-shadow: 0 1rem 2.2rem #120d0980;
}
.legend-figure img { display: block; width: 100%; height: auto; max-height: 38rem; object-fit: contain; }
.legend-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
  justify-content: space-between;
  margin: 0;
  padding: .68rem .1rem .12rem;
  color: var(--legend-muted);
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.legend-figure details summary { cursor: pointer; }
.legend-figure details[open] div { padding-block-start: .4rem; }
.legend-hero-image { width: 100%; }
.legend-explorer {
  border-top: 1px solid var(--legend-line);
  padding-block-start: clamp(1.5rem, 3vw, 2.4rem);
}
.legend-explorer > h2 { margin-block-end: .9rem; }
.legend-map {
  margin: 0;
  padding: clamp(.35rem, 1.4vw, .95rem);
  background: #20211e;
  border: 1px solid #706044;
  isolation: isolate;
}
.legend-map svg { display: block; width: 100%; height: auto; aspect-ratio: 2.25 / 1; background: radial-gradient(at 48% 42%, #3b3c32, #222420 75%); }
.legend-map-local svg { aspect-ratio: 1000 / 570; }
.legend-land path {
  fill: #4a4739;
  stroke: #b6a37e;
  stroke-opacity: .4;
  stroke-width: .65;
  vector-effect: non-scaling-stroke;
}
.legend-country-outline path {
  fill: #976a3d;
  stroke: #f4c98d;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.legend-country-outline.is-active path { fill: #805e3b; }
.legend-country-outline:is(:hover, :focus-visible, .is-highlighted) path { fill: #d7a562; stroke: #fff0bf; stroke-width: 2.4; }
.legend-map a { cursor: pointer; }
.legend-map figcaption {
  display: flex;
  gap: .35rem .75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: .55rem .2rem 0;
  font-size: .83rem;
  color: var(--legend-muted);
}
.legend-map-local figcaption span { display: inline-flex; align-items: center; gap: .5rem; }
.legend-map-local figcaption i {
  display: inline-block;
  width: .58rem;
  height: .58rem;
  border-radius: 50%;
  border: 1px solid var(--legend-gold);
}
.legend-map-views { display: flex; gap: .4rem; flex-wrap: wrap; }
.legend-map-views button {
  cursor: pointer;
  color: var(--legend-ink);
  background: var(--legend-panel);
  border: 1px solid var(--legend-line);
  min-height: 2.7rem;
  padding: .25rem .6rem;
  font: inherit;
}
.legend-map-views button[aria-pressed="true"] { border-color: var(--legend-gold); color: var(--legend-gold); }
.legend-country-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .58rem;
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
}
.legend-country-list a {
  display: flex;
  height: 100%;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: .43rem .62rem;
  border: 1px solid var(--legend-line);
  background: var(--legend-panel);
  text-align: center;
  text-decoration: none;
  font-size: 1.07rem;
}
.legend-country-list a:is(:hover, :focus-visible, [aria-current="page"], .is-highlighted) {
  border-color: var(--legend-gold);
  background: #3f2e1d;
  color: var(--legend-ink);
}
.legend-guide-intro { max-width: 70ch; margin: clamp(2rem, 5vw, 4.5rem) auto 2rem; text-align: center; }
.legend-guide-index {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 3vw, 2.9rem);
  align-items: center;
  padding: clamp(.95rem, 2.7vw, 2rem);
  border-block: 1px solid var(--legend-line);
  background: #251c15;
}
.legend-guide-index ol { margin: .65rem 0 0; padding-inline-start: 1.55rem; }
.legend-guide-index li::marker { color: var(--legend-muted); }
.legend-guide-index li a { display: inline-block; padding-block: .19rem; }
.legend-pin circle {
  stroke: #ffdf9e;
  stroke-width: 1.3;
  fill: #e6a95b;
  vector-effect: non-scaling-stroke;
}
.legend-pin.is-approximate circle { fill: #252018; }
.legend-pin circle.legend-pin-hit { fill: transparent; stroke: none; }
.legend-pin:is(:hover, :focus-visible, .is-highlighted) circle:not(.legend-pin-hit) { fill: #fff0bc; stroke: #231b14; stroke-width: 1.65; }
.legend-story {
  border-block-end: 1px solid var(--legend-line);
  padding-block: clamp(2.7rem, 6.5vw, 6rem);
}
.legend-story:focus { outline: none; }
.legend-story:target .legend-story-header h2 { color: var(--legend-focus); }
.legend-story-header { text-align: center; margin: 0 auto 1.35rem; max-width: 72ch; }
.legend-place { color: var(--legend-gold); margin: 0 0 .45rem !important; font-size: .97rem; }
.legend-summary { margin: .75rem 0 0 !important; color: var(--legend-muted); }
.legend-story .legend-figure { max-width: 55rem; }
.legend-prose { max-width: 68ch; margin: clamp(1.4rem, 4vw, 3rem) auto 0; font-size: clamp(1.1rem, 1.65vw, 1.29rem); line-height: 1.78; }
.legend-prose section + section { margin-top: 2.1rem; }
.legend-prose p { overflow-wrap: break-word; }
.legend-sources { margin-block-start: 1.5rem; padding: .66rem .85rem; border-block: 1px solid var(--legend-line); font-size: .965rem; }
.legend-sources summary { cursor: pointer; }
.legend-sources p, .legend-sources ul { margin: .6rem 0 .25rem; }
.legend-sources ul { padding-inline-start: 1.2em; }
.legend-sources li { margin-block: .4rem; }
.legend-sources a { overflow-wrap: anywhere; }
.legend-story-links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-block-start: .85rem; font-size: .91rem; }
.legend-related { margin-block-start: 2rem; }
.legend-related ul + a { display: inline-block; margin-top: 1.1rem; }
@media (max-width: 740px) {
  .legend-hero, .legend-guide-index { grid-template-columns: minmax(0, 1fr); }
  .legend-hero { padding-block: 1.6rem 2.25rem; }
  .legend-hero-image { max-width: 38rem; }
  .legend-country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend-map svg { aspect-ratio: 2 / 1; }
  .legend-map-local svg { aspect-ratio: 1.6 / 1; }
  .legend-guide-intro { text-align: start; }
  .legend-map figcaption { justify-content: space-between; }
}

.legend-catalogue { margin-block-start: clamp(2rem, 5vw, 4.25rem); }
.legend-catalogue-title, .legend-hub-country > header {
  display: flex;
  gap: .65rem 1.1rem;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}
.legend-catalogue-title { margin-block-end: 1.4rem; }
.legend-hub-country { padding-block: 1.4rem 1.8rem; border-block-start: 1px solid var(--legend-line); }
.legend-hub-country > header a { font-size: .95rem; }
.legend-hub-country h3, .legend-hub-story, .legend-inline-reading { scroll-margin-block-start: 5.5rem; }
.legend-hub-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.legend-hub-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--legend-line);
  background: var(--legend-panel);
}
.legend-preview-image { border-block-end: 1px solid var(--legend-line); background: var(--legend-bg); }
.legend-preview-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.legend-preview-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(.9rem, 2vw, 1.35rem); }
.legend-preview-copy .legend-read-story { align-self: flex-start; margin-block-start: auto; padding-block-start: .35rem; }
.legend-hub-story:has([aria-expanded="true"]):has(.legend-inline-reading .legend-figure) .legend-preview-image { display: none; }
.legend-hub-story:has([aria-expanded="true"]) { grid-column: 1 / -1; }
.legend-hub-story h4, .legend-inline-reading h5 {
  margin: 0;
  font: 650 1.65rem/1.1 "Cormorant Garamond", Georgia, serif;
  color: var(--legend-ink);
}
.legend-inline-reading h5 { margin-block-end: .65rem; font-size: 1.9rem; }
.legend-read-story { display: inline-flex; min-height: 2.75rem; align-items: center; margin-block-start: .35rem; }
.legend-read-story[aria-expanded="true"] { display: none; }
.legend-inline-reading { padding: clamp(.9rem, 2vw, 1.35rem); border-block-start: 1px solid var(--legend-line); }
.legend-inline-reading > button { margin-block-end: .8rem; }
.legend-inline-reading .legend-figure { max-width: 55rem; }
.legend-catalogue button {
  font: inherit;
  color: var(--legend-gold);
  background: var(--legend-panel);
  border: 1px solid var(--legend-line);
  padding: .3rem .65rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.legend-catalogue button:hover { color: var(--legend-ink); border-color: var(--legend-gold); }
.legend-inline-reading [role="status"]:empty { margin: 0; }
.legend-map-return { display: inline-flex; align-items: center; min-height: 2.75rem; }
.legend-country-list a[aria-current="true"] { color: var(--legend-ink); background: #3f2e1d; border-color: var(--legend-gold); }
.legend-country-outline[aria-current="true"] path { fill: #9b7046; stroke-width: 2; }
@media (max-width: 740px) {
  .legend-hub-stories { grid-template-columns: minmax(0, 1fr); }
}
