:root {
  --ink: #1e343b;
  --mute: #516363;
  --line: #d5d8cc;
  --paper: #faf9f4;
  --sea: #dbe9e6;
  --orange: #b64a22;
  --head: 70px;
  font:
    17px/1.45 "Source Sans 3",
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #cb642e;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
#compare {
  border-block: 1px solid var(--line);
  padding: 12px 0;
}
#compare summary {
  cursor: pointer;
  font-weight: 600;
}
#scatter {
  display: block;
  width: 100%;
  height: 245px;
  cursor: crosshair;
}
.mast {
  height: var(--head);
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fcfbf6;
  border-bottom: 1px solid #cfd4c9;
  color: var(--ink);
  position: relative;
  z-index: 5;
}
.mast a {
  color: inherit;
  text-decoration: none;
}
#brand {
  font:
    400 clamp(19px, 2.2vw, 32px) / 1 "PT Serif",
    Georgia,
    serif;
  letter-spacing: -0.045em;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #243e43;
  color: #eccc87;
  border-radius: 50%;
}
nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}
.nav {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #536663;
  font-weight: 600;
  padding: 4px 14px 0;
}
.nav.active {
  border-color: #9d6738;
  color: #183137;
}
.dossiers-nav {display:flex; align-items:center}
#viewpoints {
  position:absolute; top:18px; right:16px; display:flex; overflow:hidden;
  border:1px solid #c4aa77; border-radius:4px; background:#263c34;
  box-shadow:0 2px 8px #2d302b3d;
}
#viewpoints button {
  border:0; border-right:1px solid #68745a; background:none; color:#f3e7c5;
  padding:5px 11px; font-size:.79rem; white-space:nowrap;
}
#viewpoints button:last-child {border-right:0}
#viewpoints button:hover,#viewpoints button:focus-visible {background:#465847}
.details .career-panel {padding:0 0 14px; margin:14px 0; border-bottom:1px solid var(--line)}
.career-panel h3 {margin:0 0 6px}
.career-panel .career-record {margin:7px 0}
.career-record a {font-weight:600}
.career-event small,.career-record small {display:block; line-height:1.35; color:var(--mute)}
.career-event {border-left:2px solid #ad724a; padding-left:9px; margin:14px 0}
.career-source,.career-panel summary {font-size:.86rem}
.career-panel summary {color:var(--ink); cursor:pointer}
.search {
  position: relative;
  margin-left: auto;
  max-width: 360px;
  min-width: 210px;
  flex: 1;
}
.search input {
  width: 100%;
  background: #29443f;
  color: white;
  border: 1px solid #48615c;
  border-radius: 4px;
  padding: 10px 12px 10px 39px;
}
.search input::placeholder {
  color: #d9e4db;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 4px;
  font-size: 26px;
}
.search #results {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: min(390px, 92vw);
  width: 100%;
  box-shadow: 0 8px 28px #18332e30;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: auto;
  max-height: 65vh;
}
#map-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 26vw, 390px);
  height: calc(100dvh - var(--head));
  min-height: 480px;
}
.map-area {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sea);
}
#map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#map.drag {
  cursor: grabbing;
}
.map-heading {
  position: absolute;
  top: 30px;
  left: clamp(18px, 2.8vw, 48px);
  max-width: min(90%, 670px);
  pointer-events: none;
  text-shadow:
    0 1px 3px #dbe9e6,
    0 0 12px #dbe9e6;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #405e55;
}
.map-heading h1,
.panel-page h1 {
  font:
    normal clamp(28px, 3.6vw, 58px) / 1.08 "PT Serif",
    Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0;
}
.controls {
  position: absolute;
  right: 16px;
  bottom: 65px;
  display: grid;
  border-radius: 12px;
  border: 1px solid #9bb2a7;
  overflow: hidden;
  box-shadow: 0 2px 8px #243d3518;
}
.controls button {
  width: 42px;
  height: 42px;
  border: 0;
  background: #f7faf4;
  font-size: 23px;
  line-height: 1;
}
.controls button + button {
  border-top: 1px solid var(--line);
}
button:hover {
  filter: brightness(0.96);
}
.map-foot {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  pointer-events: none;
  font-size: 0.75rem;
  color: #253e38;
}
.map-foot span {
  background: #f7faf1e8;
  padding: 5px 8px;
  border-radius: 3px;
}
.map-foot #scale {
  border-bottom: 2px solid #344e44;
  min-width: 60px;
  text-align: center;
}
.map-foot #legend {
  max-width: 75%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch {
  width: 13px;
  height: 8px;
  display: inline-block;
  border-radius: 1px;
}
.map-foot #legend:empty {
  display: none;
}
#tooltip {
  position: absolute;
  padding: 5px 9px;
  border-radius: 3px;
  background: #18332eee;
  color: white;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 4;
  max-width: 240px;
}
#loading {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px 19px;
  border-radius: 4px;
}
.sidebar {
  background: var(--paper);
  border-left: 1px solid #b8c8be;
  overflow: auto;
  scrollbar-width: thin;
}
.sidebar section {
  padding: 24px;
}
.layers {
  border-bottom: 1px solid var(--line);
}
.sidebar h2,
.panel-page h2 {
  font:
    normal 1.55rem/1.14 "PT Serif",
    Georgia,
    serif;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.sidebar h3 {
  margin: 22px 0 7px;
  font-size: 0.82rem;
  letter-spacing: 0.035em;
  color: var(--mute);
}
#layer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.layer-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  font-size: 0.93rem;
  font-weight: 550;
}
.layer-button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.layer-button i {
  width: 21px;
  flex: none;
  color: color-mix(in srgb, var(--icon-color), #223c38 32%);
  font-size: 21px;
}
.layer-button[aria-pressed="true"] i {
  color: #e9c98f;
}
.layer-button:hover:not([aria-pressed="true"]) {
  background: #e9ede3;
}
.field {
  display: grid;
  margin: 12px 0 0;
  gap: 4px;
  color: var(--mute);
  font-size: 0.81rem;
}
.field input,
.field select,
.filter {
  background: white;
  border: 1px solid #becac0;
  padding: 8px;
  border-radius: 3px;
  max-width: 100%;
  min-width: 0;
  font-size: 0.9rem;
}
.field select {
  width: 100%;
}
.details p {
  margin: 6px 0 10px;
}
.muted,
.note,
small {
  color: var(--mute);
}
.note,
small {
  font-size: 0.81rem;
}
.stat-line,
.rowlink {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce2da;
  padding: 8px 0;
}
.stat-line span {
  color: var(--mute);
  font-size: 0.88rem;
}
.stat-line b,
.rowlink b {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rowlink,
.search-result,
.linkbtn {
  border: 0;
  background: none;
  text-align: left;
}
.rowlink {
  width: 100%;
  border-bottom: 1px solid #dce2da;
}
.rowlink b {
  font-size: 0.9rem;
  font-weight: 550;
}
.search-result {
  width: 100%;
  display: block;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.search-result strong,
.search-result small {
  display: block;
}
.search-result:hover,
.rowlink:hover {
  background: #e5ede4;
}
.details a,
.panel-page a {
  color: #276354;
  text-underline-offset: 3px;
}
.linkbtn {
  color: #276354;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.metric-main {
  font:
    normal 2.45rem/1.1 Georgia,
    serif;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 3px;
}
.panel-page {
  max-width: 1240px;
  padding: 34px clamp(16px, 4vw, 64px) 70px;
  margin: auto;
}
.panel-page h1 {
  margin: 0 0 18px;
}
.panel-page p {
  max-width: 82ch;
}
.data-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin: 20px 0;
}
.data-tools .field {
  min-width: 135px;
  max-width: 430px;
  flex: 1;
  margin: 0;
}
.action {
  border: 1px solid #a6b5aa;
  background: #fff;
  padding: 8px 13px;
  border-radius: 3px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
thead {
  background: #e8eee6;
}
.source {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.source h3 {
  font-size: 1rem;
  margin: 0;
}
.source p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.download {
  display: inline-block;
  margin: 4px 14px 4px 0;
}
.empty {
  padding: 12px;
  color: var(--mute);
}
.mast .search input {
  background: #eef0e8;
  color: var(--ink);
  border-color: #d2d9cd;
  border-radius: 24px;
}
.mast .search input::placeholder {
  color: #52655f;
}
.search-icon.atlas-icon {
  font-size: 21px;
  top: 50%;
  transform: translateY(-50%);
  color: #50625b;
}
.brand-icon .atlas-icon {
  font-size: 25px;
}
.layers h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.layers h2 i {
  font-size: 23px;
  color: #74847c;
}
.layer-description {
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.42;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.map-heading .eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}
.dark-heading .map-heading {
  color: #fff5e0;
  text-shadow:
    0 2px 7px #101f2c,
    0 0 22px #12253599;
}
.dark-heading .map-heading .eyebrow {
  color: #e4c894;
}
.map-area[data-scene="split"]:not(.dark-heading) .map-heading {
  left: auto;
  right: 24px;
  text-align: right;
}
.map-area[data-scene="split"].dark-heading .map-heading {
  max-width: max(145px, calc(var(--divide) - 55px));
}
#curtain {
  position: absolute;
  left: clamp(12px, var(--divide), calc(100% - 12px));
  top: 0;
  bottom: 0;
  width: 27px;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
  z-index: 1;
}
#curtain:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: #fff2d0;
  box-shadow: 0 0 3px #1c2c36a8;
}
#curtain span {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: #fff6dd;
  border: 1px solid #a89a7a;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 23px;
  color: #35413d;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px #12252c40;
}
#curtain:focus-visible {
  outline: 0;
}
#curtain:focus-visible span {
  outline: 3px solid #dc9c4b;
  outline-offset: 3px;
}
#night-views {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  background: #f9f8f0;
  border: 1px solid #b5bcb0;
  border-radius: 30px;
  box-shadow: 0 3px 16px #132a3826;
  z-index: 2;
}
#night-views button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 600;
}
#night-views button[aria-pressed="true"] {
  background: #213a41;
  color: #fff4d9;
}
#night-views button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#night-views i {
  font-size: 17px;
}
.map-foot {
  z-index: 2;
}
.controls {
  z-index: 2;
}
.controls i {
  font-size: 20px;
}
.light-key {
  display: inline-block;
  width: 47px;
  height: 7px;
  position: relative;
  border-radius: 9px;
  background: linear-gradient(90deg, #142b36, #8e6442, #ffce70, #fff5c5);
}
.night-reading {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: #142c39;
  color: #f6e9ca;
  border-radius: 8px;
}
.night-reading small {
  display: block;
  color: #d6ded7;
}
.night-reading strong {
  font:
    400 1.8rem "PT Serif",
    serif;
  display: block;
  margin: 3px 0 10px;
}
.night-reading strong span {
  font:
    0.86rem "Source Sans 3",
    sans-serif;
  color: #d6ded7;
}
.night-reading .light-key {
  width: 100%;
  height: 6px;
  border: 1px solid #677673;
}
.night-reading .light-key i {
  position: absolute;
  height: 12px;
  top: -4px;
  border-left: 2px solid white;
}
.film-block {
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sidebar .film-block h3 {
  font:
    400 1.2rem/1.25 "PT Serif",
    Georgia,
    serif;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.filmstrip button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  min-width: 0;
  font-size: 0.82rem;
}
.filmstrip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 4px;
}
.filmstrip button:hover img {
  outline: 2px solid #b38b51;
  outline-offset: 1px;
}
@media (max-width: 880px) {
  .mast {
    gap: 14px;
    padding: 0 16px;
  }
  .nav {
    padding: 4px 9px 0;
  }
  #map-page {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .sidebar section {
    padding: 16px;
  }
  .map-heading {
    left: 16px;
    top: 16px;
  }
}
@media (max-width: 680px) {
  :root {
    --head: 106px;
  }
  .mast {
    height: var(--head);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 46px;
    gap: 0 4px;
    padding: 0 12px 8px;
  }
  .search {
    margin: 0;
    grid-column: 1/-1;
    min-width: 0;
    max-width: none;
  }
  .search input {
    height: 39px;
  }
  .nav {
    font-size: 0.83rem;
    padding: 3px 7px 0;
  }
  #brand {
    gap: 6px;
    font-size: 20px;
  }
  .brand-icon {
    width: 27px;
    height: 27px;
  }
  .brand-icon .atlas-icon {
    font-size: 20px;
  }
  .map-heading h1 {
    font-size: 27px;
  }
  #map-page {
    display: block;
    height: auto;
    min-height: 0;
  }
  .map-area {
    height: 54dvh;
    min-height: 295px;
    max-height: 550px;
  }
  .map-heading {
    top: 12px;
  }
  .map-foot {
    left: 9px;
    right: 9px;
    bottom: 8px;
  }
  .controls {
    right: 8px;
    bottom: 58px;
  }
  .controls button {
    width: 32px;
    height: 32px;
  }
  .sidebar {
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar section {
    padding: 16px;
  }
  .sidebar h2 {
    font-size: 1.3rem;
  }
  #layer-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .layer-button {
    font-size: 0.83rem;
    padding: 8px 4px;
    gap: 5px;
  }
  .panel-page {
    padding-top: 20px;
  }
  #night-views {
    bottom: 47px;
    padding: 3px;
  }
  #night-views button {
    font-size: 0.78rem;
    padding: 6px 9px;
  }
  .map-heading .eyebrow {
    font-size: 0.61rem;
    margin-bottom: 4px;
  }
  .map-heading {
    max-width: 92%;
  }
  #curtain span {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .map-foot #legend {
    max-width: 70%;
    font-size: 0.68rem;
  }
  .filmstrip img {
    max-height: 74px;
  }
  .sidebar.focused {
    display: flex;
    flex-direction: column;
  }
  .sidebar.focused .details {
    order: -1;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 359px) {
  #brand {
    font-size: 17px;
    gap: 4px;
  }
  .brand-icon {
    width: 22px;
    height: 22px;
  }
  .mast .nav {
    font-size: 0.72rem;
    padding-inline: 4px;
  }
  .map-heading h1 {
    font-size: 24px;
  }
  .layer-button {
    font-size: 0.78rem;
  }
}
@media (max-width: 410px) {
  .mast {
    gap: 0 2px;
    padding-inline: 8px;
  }
  .nav {
    padding-inline: 5px;
  }
  #brand {
    font-size: 19px;
  }
  .layer-button i {
    font-size: 18px;
    width: 18px;
  }
}
.mast {background:#263b33; color:#f0e5c8; border-bottom:2px solid #b99b61}
.mast #brand {color:#f7edd9}
.brand-icon {background:#344c3d; border:1px solid #baa77e; color:#e8cd91}
.mast .nav {color:#d1d7c7}
.mast .nav.active {border-color:#d4af6b; color:#fff3d8}
.mast .search input {background:#394e42; border-color:#70816c}
.mast .search-icon {color:#ead8ac}
.mast .search input::placeholder {color:#e4e5d3;opacity:1}
.terrain-key {display:flex;gap:8px;margin:8px 0 15px}
.terrain-key div {display:flex;flex:1;flex-direction:column;align-items:center;font-size:.76rem;line-height:1.2;text-align:center}
.terrain-key canvas {width:55px;height:55px}
.sidebar {background:#f4f1e7; border-color:#c8c2ad}
.sidebar .layers {background:#eae9db}
.layer-button[aria-pressed="true"] {background:#31483b; border-color:#31483b}
.illustrated .map-heading {
  top:18px; left:16px; padding:10px 16px 13px; border:1px solid #dac89d;
  border-left:3px solid #d1b377; border-radius:3px;
  background:#22372feF; color:#fff3d7; text-shadow:none; box-shadow:0 2px 9px #33372a40;
}
.illustrated .map-heading h1 {font-size:clamp(23px,2.45vw,40px)}
.illustrated .map-heading .eyebrow {font-size:.62rem; letter-spacing:.1em; color:#d5c295}
.illustrated .map-foot #legend {background:#273c33ed; color:#f3e7c7; border-color:#b6a277}
@media(max-width:880px) {
  #viewpoints {top:auto;bottom:49px;left:12px;right:auto}
  .illustrated .map-heading {top:11px;left:11px;padding:7px 11px 9px}
  .illustrated .map-heading h1 {font-size:23px}
}
