:root {
  color-scheme: dark;
  --green: #5ab352;
  --background: #27272c;
  --text: #bbc7da;
  --border: #565861;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font:
    600 15px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
summary {
  font: inherit;
}
button,
summary,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}
button {
  color: inherit;
}
button,
input[type="search"] {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background);
}
button:hover,
summary:hover {
  background: #35363d;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: absolute;
  z-index: 2000;
  background: var(--background);
  padding: 12px;
}
.navbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  box-shadow: 0 1px 6px #0005;
}
.brand {
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-about {
  text-decoration: none;
}
.languages {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.languages a {
  padding: 4px 7px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
}
.languages a[aria-current="true"] {
  background: #5ab35225;
  color: #98db90;
}
.dashboard {
  padding-top: 6px;
}
.tabs {
  display: flex;
  box-shadow: 0 2px 7px #0005;
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  border-top: 3px solid transparent;
  padding: 10px 12px;
  font-size: 18px;
  color: var(--green);
}
.tabs button[aria-selected="true"] {
  background: var(--green);
  color: #fff;
  border-top-color: #b7d7b3;
}
.filters {
  padding: 14px 20px 12px;
}
.macro-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.frequency {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
  color: #85ca7f;
}
.filter-row {
  display: flex;
  gap: 10px;
}
.picker {
  flex: 1;
  position: relative;
  min-width: 0;
  border: 1px solid #777d88;
  border-radius: 5px;
}
.picker summary {
  padding: 7px 12px;
  color: #86cc80;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker summary span + span {
  color: var(--text);
  font-size: 13px;
  padding-left: 10px;
}
.picker-panel {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  z-index: 1100;
  padding: 10px;
  background: var(--background);
  border: 1px solid #777d88;
  border-radius: 5px;
  box-shadow: 0 8px 18px #0006;
}
.picker-panel input[type="search"] {
  width: 100%;
  padding: 7px 10px;
  color: #fff;
  margin-bottom: 8px;
}
.options {
  max-height: 240px;
  overflow: auto;
}
.options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  font-weight: 500;
}
.options label:hover {
  background: #ffffff0a;
}
.reset {
  padding: 6px 12px;
  font-size: 13px;
}
.map-wrap {
  position: relative;
}
#map {
  height: 73vh;
  min-height: 370px;
  background: #d7dfdc;
}
body[data-mode="samples"] #map {
  height: 80vh;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-control-zoom a {
  background: var(--background);
  color: #fff;
}
.leaflet-control-zoom a:hover {
  background: #41434a;
  color: #fff;
}
.leaflet-control-attribution {
  color: #333;
  font-size: 10px;
  font-weight: 400;
}
.leaflet-control-attribution a {
  color: #285c72;
}
.map-info {
  position: absolute;
  right: 18px;
  bottom: 30px;
  z-index: 800;
  background: #27272cf2;
  padding: 13px 19px;
  border-radius: 5px;
  box-shadow: 0 3px 12px #0002;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  max-width: 65%;
  text-align: center;
  pointer-events: none;
}
.map-info strong {
  color: var(--green);
  font-size: 18px;
}
.map-info span {
  font-size: 17px;
  font-weight: 600;
}
.legend {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 800;
  display: grid;
  grid-template-columns: 20px auto;
  gap: 7px;
  background: #fffc;
  color: #25272b;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}
#legend-gradient {
  width: 20px;
  height: 150px;
}
.legend-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#legend-unit {
  grid-column: 1 / -1;
  text-align: center;
}
.fit-map {
  position: absolute;
  z-index: 800;
  left: 10px;
  bottom: 26px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px #0003;
  font-size: 12px;
}
.timeline {
  padding: 13px 25px 10px;
}
.timeline label {
  display: block;
  margin-bottom: 8px;
}
.timeline output {
  color: var(--green);
}
.timeline input {
  width: 100%;
  margin: 0;
  accent-color: var(--green);
}
.threshold-marks {
  display: flex;
  justify-content: space-between;
  color: var(--green);
  font-size: 12px;
}
.status {
  margin: 5px 20px;
  font-weight: 400;
  font-size: 13px;
}
.status:empty {
  display: none;
}
footer {
  padding: 15px 22px;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.prose {
  max-width: 940px;
  margin: auto;
  padding: 25px;
  font-weight: 400;
}
.prose h1,
.prose h2 {
  color: var(--green);
}
.prose a {
  color: #87c8ff;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.esteban-photo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 20px auto;
  border-radius: 5px;
}
@media (max-width: 700px) {
  .navbar {
    gap: 12px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 14px;
  }
  .nav-about {
    font-size: 12px;
  }
  .languages {
    gap: 0;
  }
  .languages a {
    padding: 4px;
  }
  .tabs button {
    font-size: 16px;
    padding: 9px;
  }
  .filters {
    padding: 12px;
  }
  .macro-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  fieldset {
    gap: 9px 12px;
  }
  .frequency {
    margin-left: 0;
    font-size: 13px;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .picker {
    flex-basis: 100%;
  }
  .reset {
    margin-left: auto;
  }
  #map {
    height: 53vh;
    min-height: 330px;
  }
  body[data-mode="samples"] #map {
    height: 73vh;
  }
  .map-info {
    right: 10px;
    bottom: 40px;
    padding: 9px 12px;
    min-width: 150px;
  }
  .map-info strong,
  .map-info span {
    font-size: 14px;
  }
  .legend {
    right: 10px;
    top: 10px;
    padding: 7px;
  }
  #legend-gradient {
    height: 110px;
  }
  .timeline {
    padding: 10px 14px;
    font-size: 13px;
  }
  .threshold-marks {
    font-size: 10px;
  }
  footer {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
