/* Composition of an engraved atlas leaf, following the supplied reference. */
.story-layout {
  display: flex;
  flex-direction: column;
  max-width: 1740px;
  padding: 0 28px;
  gap: 64px;
}
.map-aside {
  position: relative;
  top: auto;
  order: 0;
  width: 100%;
  margin: 0;
}
.chapters {
  order: 1;
  width: min(100%, 830px);
  margin: 0 auto;
}
.chapter {
  min-height: 0;
  padding: 65px 0;
}
.chapter-map-link {
  display: inline-block;
  margin: 0 0 24px;
  font:
    13px Arial,
    sans-serif;
  color: #835337;
}
.map-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.map-viewport {
  order: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1670/942;
  min-height: 0;
  background: #ead2a0;
  box-shadow: 0 8px 28px #3c2c1926;
  isolation: isolate;
  overflow: hidden;
}
.map-heading {
  order: 1;
  background: transparent;
  border: 0;
  padding: 22px 0 14px;
  justify-content: flex-start;
  gap: 22px;
}
.map-heading h2 {
  font:
    19px Georgia,
    serif;
  text-transform: none;
  letter-spacing: 0;
  color: #55432b;
}
.era {
  font:
    38px Georgia,
    serif;
  color: #7f3824;
  min-width: 0;
  order: -1;
  text-shadow: none;
}
.scene {
  font:
    12px/1.5 Arial,
    sans-serif;
  color: #796c56;
}
.map-top-actions {
  margin-left: auto;
  flex-direction: row;
}
.map-scope {
  order: 2;
  padding: 0 0 12px;
}
.modern-layer-control {
  order: 3;
  padding: 0 0 12px;
  background: transparent;
}
.legend {
  order: 4;
  background: transparent;
  padding: 8px 0 16px;
  border: 0;
  color: #6f6048;
}
.timeline {
  order: 5;
  padding: 16px 0 10px;
  background: transparent;
  border-top: 1px solid #bba78366;
}
.timeline label {
  font:
    14px Georgia,
    serif;
  color: #55432b;
}
.timeline input {
  accent-color: #8c4c32;
}
.timeline-ends {
  color: #81705a;
}
.place-detail {
  order: 6;
  max-height: none;
  min-height: 0;
  margin: 16px 0;
  background: #eee1c4;
  border: 1px solid #b6a17a;
  border-left: 3px solid #8d3e28;
}
.place-detail.is-open {
  max-width: 760px;
}
.place-detail strong {
  font-size: 28px;
}
.mobile-chooser {
  display: block;
  padding: 10px 0 0;
  max-width: 480px;
}
.mobile-chooser label {
  font-size: 12px;
  color: #796c56;
}
.mobile-chooser select {
  display: block;
  width: 100%;
  font-size: 14px;
  margin: 8px 0 0;
  padding: 10px 12px;
  color: #55432b;
  background: #f8f0dd;
  border: 1px solid #b6a17a;
}
.map-caption {
  max-width: 1000px;
  color: #81705a;
  line-height: 1.65;
}
.control {
  color: #665338;
  border-color: #bfaa85;
  border-radius: 2px;
}
.control:hover {
  background: #e9dcc2;
}
.control[aria-pressed='true'] {
  color: #fff7e6;
  background: #80613c;
  border-color: #80613c;
}
.map-buttons {
  top: 3.5%;
  right: 1.8%;
  gap: 10px;
}
.map-buttons .control {
  width: clamp(34px, 3.4vw, 55px);
  height: clamp(34px, 3.4vw, 55px);
  min-height: 0;
  border: 1px solid #b7a17a;
  background: #fcf5e2;
  box-shadow: 0 3px 8px #55432b33;
  color: #55432b;
  font:
    30px/1 Georgia,
    serif;
  border-radius: 50%;
  padding: 0;
}
.north {
  display: none;
}
.attribution {
  bottom: 14px;
  right: 24px;
  background: transparent;
  font:
    9px Arial,
    sans-serif;
  color: #7e6b4d;
}
.atlas-frame rect {
  stroke: #685131;
  stroke-width: 1.6;
  opacity: 0.9;
}
.atlas-frame rect + rect {
  stroke-width: 0.65;
  opacity: 0.8;
}
.graticule {
  display: none;
}
.river-bank {
  stroke: #f4e0ae;
  stroke-width: 3.7;
  opacity: 0.6;
}
.river-bank.main {
  stroke-width: 5.9;
  opacity: 0.85;
}
.river-bank.hydro {
  stroke-width: 1.8;
  opacity: 0.16;
}
.waterline {
  stroke: #5b969d;
  stroke-width: 1.3;
  opacity: 0.85;
}
.waterline.main {
  stroke: #246d82;
  stroke-width: 3.1;
  opacity: 1;
}
.waterline.hydro {
  stroke: #6f9d9c;
  stroke-width: 0.65;
  opacity: 0.55;
}
.river-label {
  font:
    italic 16px Georgia,
    'Times New Roman',
    serif;
  fill: #205e75;
  stroke: #ead8af;
  stroke-width: 2px;
  letter-spacing: 0.01em;
}
.city-label {
  font:
    16px Georgia,
    'Times New Roman',
    serif;
  fill: #3e2e1c;
  stroke: #efddb3;
  stroke-width: 2px;
  letter-spacing: 0;
  pointer-events: auto;
  cursor: pointer;
}
.city-label.focus,
.city-label.yelets {
  font-size: 18px;
  fill: #8d3320;
  font-weight: bold;
}
.city-label.old {
  fill: #867352;
  font-size: 15px;
}
.city-miniature {
  pointer-events: none;
}
.fortress-disc {
  display: none;
}
.city.reference .city-shape {
  fill: #55432b;
  stroke: #f8eccf;
  stroke-width: 1.5;
}
.city.is-muted,
.city-label.is-muted {
  opacity: 0.62;
}
.city.is-selected .focus-ring {
  stroke: #8d3e28;
  stroke-dasharray: 2 4;
  stroke-width: 1.4;
}
.label-leader {
  display: block;
  stroke: #685338;
  stroke-width: 0.7px;
  stroke-dasharray: none;
  opacity: 0.75;
  pointer-events: none;
}
.label-leader.is-muted {
  opacity: 0.3;
}
.label-leader.is-selected {
  stroke: #8d3320;
  stroke-width: 1.2px;
  opacity: 1;
}
.city-label.is-selected {
  fill: #8d3320;
}
.city-anchor {
  fill: #55432b;
  stroke: #f5e7c6;
  stroke-width: 1px;
  pointer-events: none;
}
.focus-ring {
  stroke: #8d3e28;
}
.arrival-wave {
  stroke: #9c6135;
}
.scale text {
  font:
    16px Georgia,
    serif;
  fill: #55432b;
}
.scale path {
  stroke: #55432b;
  stroke-width: 1.25;
}
.atlas-furniture text {
  font-family: Georgia, 'Times New Roman', serif;
  fill: #3e2e1c;
}
.atlas-title-text {
  font-size: 53px;
  font-weight: 700;
  letter-spacing: -1px;
}
.atlas-subtitle {
  font-size: 20px;
}
.atlas-quote {
  font-size: 20px;
  font-style: italic;
}
.atlas-vignette {
  opacity: 0.7;
}
.atlas-divider {
  stroke: #80643d;
  stroke-width: 0.7;
  fill: none;
}
.atlas-compass circle,
.atlas-compass path {
  stroke: #55432b;
  stroke-width: 0.65;
}
.atlas-compass circle {
  fill: none;
}
.atlas-compass text {
  font-size: 17px;
  text-anchor: middle;
}
.atlas-cartouche > path {
  fill: #ead2a0;
  fill-opacity: 0.92;
  stroke: #80643d;
  stroke-width: 1;
}
.atlas-cartouche > path.inner-border {
  fill: none;
  stroke-width: 0.6;
}
.atlas-cartouche > path.atlas-divider {
  fill: none;
  stroke-width: 0.7;
}
.atlas-cartouche text {
  text-anchor: middle;
}
.cartouche-heading {
  font-size: 23px;
}
.cartouche-subtitle {
  font-size: 16px;
}
.fullscreen-map .map-aside {
  inset: 0;
  padding: 16px 24px;
  background: #f5eddd;
}
.fullscreen-map .map-shell {
  max-width: 1680px;
}
.fullscreen-map .map-viewport {
  height: auto;
  aspect-ratio: 1670/942;
  min-height: 0;
  max-height: none;
}
.fullscreen-map .map-caption {
  padding: 0;
  max-width: 1680px;
}
.fullscreen-map .map-heading {
  padding-top: 18px;
}
@media (min-width: 1500px) {
  .map-viewport {
    height: auto;
  }
  .chapter {
    min-height: 0;
  }
}
@media (max-width: 1050px) {
  .story-layout {
    padding: 0 20px;
    gap: 40px;
  }
  .map-top-actions {
    flex-direction: row;
  }
  .map-heading {
    padding: 18px 0 12px;
  }
  .map-viewport {
    height: auto;
    min-height: 0;
  }
  .city-label {
    font-size: 13px;
  }
  .city-label.focus,
  .city-label.yelets {
    font-size: 15px;
  }
  .river-label {
    font-size: 13px;
  }
  .scale text {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .story-layout {
    padding: 0 14px;
    gap: 35px;
  }
  .map-aside {
    padding: 0;
    margin: 0;
  }
  .map-viewport {
    height: 520px;
    aspect-ratio: auto;
  }
  .chapters {
    padding: 0 12px;
  }
  .chapter {
    padding: 40px 0;
  }
  .map-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .map-heading > div:first-child {
    flex: 1;
  }
  .map-heading h2 {
    font-size: 16px;
  }
  .era {
    font-size: 32px;
  }
  .map-top-actions {
    width: 100%;
    margin: 0;
  }
  .map-scope {
    padding: 0 0 10px;
  }
  .map-scope span {
    margin: 0;
  }
  .modern-layer-control {
    padding: 0 0 10px;
  }
  .legend {
    font-size: 11px;
    padding: 10px 0 14px;
    gap: 8px 12px;
  }
  .timeline {
    padding: 14px 0 8px;
  }
  .timeline-ends {
    font-size: 10px;
  }
  .place-detail {
    padding: 16px;
  }
  .mobile-chooser {
    padding: 10px 0 0;
  }
  .attribution {
    bottom: 12px;
    right: 15px;
    font-size: 8px;
    max-width: 180px;
    text-align: right;
  }
  .map-buttons {
    top: 18px;
    right: 18px;
    gap: 7px;
  }
  .city-label {
    font-size: 12px;
  }
  .city-label.focus,
  .city-label.yelets {
    font-size: 14px;
  }
  .river-label {
    font-size: 12px;
  }
  .scale text {
    font-size: 12px;
  }
  .fullscreen-map .map-aside {
    padding: 12px;
  }
  .fullscreen-map .map-viewport {
    height: max(420px, 65dvh);
    aspect-ratio: auto;
    min-height: 0;
  }
  .fullscreen-map .mobile-chooser {
    display: block;
  }
}
@media (max-width: 380px) {
  .map-viewport {
    height: 450px;
  }
  .map-top-actions .control {
    padding: 8px 12px;
  }
}
@media print {
  .story-layout {
    display: block;
  }
  .chapter-map-link {
    display: none;
  }
}
