:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #163b38;
  background: #edf0e9;
  --ink: #163b38;
  --muted: #5f7068;
  --line: #d8dfd3;
  --paper: #f8f8ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#map {
  position: absolute;
  inset: 0 0 0 340px;
  background: #dae5e3;
}
#panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 340px;
  z-index: 800;
  overflow: auto;
  padding: 30px 26px 20px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 17px;
}
h1 {
  font:
    34px/1.08 Georgia,
    serif;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
h1 em {
  font-size: 27px;
  font-weight: 400;
}
.intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.control {
  margin: 0 0 20px;
}
.control > label,
h2 {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.1px;
  margin: 0 0 9px;
}
select {
  width: 100%;
  font-size: 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #a5b5aa;
  border-radius: 5px;
  padding: 11px 9px;
}
#description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 9px 0 0;
}
.ramp {
  height: 12px;
  border-radius: 2px;
}
.ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
}
.legend-title {
  font-size: 12px;
  margin: 0 0 8px;
}
.key {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin: 7px 0;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
output {
  float: right;
  font-weight: 400;
}
input[type="range"] {
  width: 100%;
  accent-color: #237669;
}
input[type="checkbox"] {
  accent-color: #237669;
}
.overlays {
  display: grid;
  gap: 8px;
  font-size: 12px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.places {
  padding-top: 21px;
}
#bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
button {
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #a9b7ab;
  color: var(--ink);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
}
button:hover {
  background: #e5eee5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d5862f;
  outline-offset: 3px;
}
.text-button {
  padding: 11px 0;
  border: 0;
  background: none;
  font-size: 12px;
}
.scope {
  font-size: 12px;
  line-height: 1.5;
  background: #e7eee2;
  border-left: 3px solid #608c69;
  padding: 10px 12px;
}
.resolution {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}
a {
  color: #17695d;
}
#notice {
  font-size: 12px;
  line-height: 1.5;
  color: #87531e;
}
.map-caption {
  position: absolute;
  z-index: 500;
  left: 362px;
  top: 20px;
  padding: 10px 14px;
  background: rgba(248, 248, 239, 0.95);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 2px 8px #163b3812;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  pointer-events: none;
}
.dot {
  width: 7px;
  height: 7px;
  background: #399a6a;
  border-radius: 50%;
}
.divider {
  color: #a0aaa2;
}
#toggle-panel {
  display: none;
}
.leaflet-control-attribution {
  max-width: calc(100vw - 360px);
  font-size: 10px !important;
}
.leaflet-control-zoom {
  border: 1px solid #b2c0b2 !important;
}
.about {
  max-width: 760px;
  margin: 50px auto;
  padding: 0 28px;
}
.about h1 {
  font-size: 44px;
}
.about h2 {
  font-size: 14px;
  margin-top: 32px;
}
.about p,
.about li {
  line-height: 1.7;
  font-size: 15px;
}
.about .eyebrow {
  margin-top: 35px;
}
.about ul {
  padding-left: 20px;
}
@media (max-width: 720px) {
  #map {
    inset: 0;
  }
  #panel {
    width: min(340px, 88vw);
    top: 58px;
    bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 0 8px 8px 0;
    box-shadow: 5px 5px 24px #163b3820;
    padding: 22px;
  }
  #panel.closed {
    display: none;
  }
  #toggle-panel {
    display: block;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 900;
    background: var(--paper);
  }
  .map-caption {
    top: 12px;
    left: 130px;
    right: 50px;
    justify-content: center;
    padding: 9px;
    font-size: 10px;
  }
  .map-caption .divider,
  .map-caption #layer-caption {
    display: none;
  }
  .leaflet-control-attribution {
    max-width: 100vw;
  }
  h1 {
    font-size: 30px;
  }
  .intro {
    margin-bottom: 20px;
  }
}

.scientific-tiles .leaflet-tile {
  image-rendering: pixelated;
}
