@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #273b32;
  --muted: #768077;
  --line: #dfe3d9;
  --paper: #f8f9f3;
  --green: #496852;
  --orange: #bc7048;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #bb7849;
  outline-offset: 3px;
}
header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 65px;
  background: #fcfcf7;
}
.logo {
  font:
    800 34px Manrope,
    sans-serif;
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--ink);
}
.logo span {
  color: #afbe85;
  font-size: 15px;
  margin-left: 3px;
}
nav {
  display: flex;
  gap: 28px;
  height: 100%;
  align-items: stretch;
}
nav button {
  border: 0;
  background: none;
  color: #7e877c;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  padding: 0 3px;
}
nav button.active {
  color: var(--ink);
  border-color: var(--ink);
}
.tiny {
  padding-left: 8px;
}
.region {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--green);
}
main {
  display: flex;
  height: calc(100dvh - 82px);
}
.sidebar {
  width: 390px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 25px 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #728260;
}
h1 {
  font:
    500 31px/1.22 Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  margin: 14px 0;
}
.intro p {
  font-size: 12px;
  color: #798176;
  line-height: 1.8;
  margin: 0 0 24px;
}
.search {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #dce1d5;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
}
.search span {
  font-size: 23px;
}
.search input {
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  flex: 1;
  font-size: 12px;
}
.search button {
  border: 0;
  background: none;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 22px;
}
.filters button {
  border: 1px solid #dfe3d8;
  border-radius: 30px;
  background: transparent;
  padding: 7px 11px;
  font-size: 10px;
  color: #6d7969;
}
.filters button.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.results-label {
  display: flex;
  justify-content: space-between;
  color: #8b9487;
  font-size: 8px;
  letter-spacing: 1.2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
#count {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0;
}
#results {
  overflow: auto;
  flex: 1;
  min-height: 100px;
}
.place-card {
  width: 100%;
  display: block;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 3px;
  color: var(--ink);
}
.place-card:hover {
  background: #edf0e6;
}
.place-card strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 5px;
}
.place-card .address {
  font-size: 10px;
  color: #8c9287;
  display: block;
  margin-bottom: 9px;
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 3px;
  background: #e8eee2;
  color: #52624a;
  font-size: 9px;
  letter-spacing: 0.1px;
}
.badge.pe {
  background: #f5e8de;
  color: #a4643f;
}
.arrow {
  float: right;
  color: #a8b19e;
}
footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 10px;
  color: #586751;
  line-height: 1.6;
}
footer span {
  color: #929a8b;
  font-size: 9px;
}
.map-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
#map {
  height: 100%;
  background: #e9ecdf;
}
.map-caption {
  position: absolute;
  top: 23px;
  left: 24px;
  z-index: 500;
  background: #fffffff2;
  padding: 13px 18px;
  border-radius: 7px;
  box-shadow: 0 3px 20px #263b3210;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: #93a969;
  border-radius: 100%;
}
.map-caption-small {
  color: #92998f;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 6px;
  font-size: 10px;
}
.legend {
  position: absolute;
  bottom: 30px;
  left: 24px;
  z-index: 500;
  padding: 12px 15px;
  background: #fffffff2;
  border-radius: 6px;
  display: flex;
  gap: 18px;
  font-size: 9px;
  color: #7d8877;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  display: inline-block;
  margin-right: 6px;
}
.green {
  background: var(--green);
}
.orange {
  background: var(--orange);
}
#reset-map {
  position: absolute;
  right: 20px;
  bottom: 30px;
  z-index: 500;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 10px;
}
.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 1px 8px #0001 !important;
}
.leaflet-control-zoom a {
  color: var(--green) !important;
}
.leaflet-right .leaflet-control {
  margin-right: 23px;
}
.leaflet-top .leaflet-control {
  margin-top: 23px;
}
.cluster {
  border-radius: 50%;
  border: 3px solid #fffffff0;
  background: #496852e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 4px #20302025;
}
.cluster.pe {
  background: #bc7048ed;
}
.detail {
  position: absolute;
  z-index: 600;
  right: 20px;
  top: 20px;
  bottom: 85px;
  width: 350px;
  overflow: auto;
  background: #fcfcf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 35px #17331a20;
  padding: 24px;
}
.close {
  float: right;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
}
.detail h2 {
  font:
    500 25px Manrope,
    sans-serif;
  margin: 25px 0 10px;
  letter-spacing: -0.7px;
}
.detail p {
  font-size: 12px;
  line-height: 1.7;
  color: #77816f;
}
.detail h3 {
  font-size: 11px;
  margin-top: 24px;
}
.detail a,
.evidence a {
  color: #496852;
  text-underline-offset: 3px;
  font-size: 11px;
}
.detail .claim {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  margin-top: 12px;
}
.claim strong {
  font-size: 12px;
}
.claim small {
  font-size: 10px;
  color: #8b927f;
}
.detail .caution {
  padding: 13px;
  background: #f1f0e5;
  border-radius: 5px;
  color: #777c64;
  font-size: 11px;
}
#ledger {
  max-width: 1300px;
  margin: auto;
  padding: 44px 45px;
}
.ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ledger-heading h1 {
  font-size: 36px;
}
.ledger-heading p,
.history-heading p {
  color: var(--muted);
  font-size: 12px;
}
.primary {
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 12px;
}
.ledger-tools {
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 11px;
}
.ledger-tools input {
  border: 1px solid var(--line);
  padding: 8px;
  background: white;
  color: var(--ink);
  border-radius: 4px;
  margin-left: 10px;
}
.ledger-tools span {
  color: var(--muted);
}
.metrics {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}
.metric {
  background: #eff2e8;
  border: 1px solid var(--line);
  padding: 18px 25px;
  flex: 1;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}
.metric strong {
  display: block;
  color: var(--ink);
  font: 500 28px Manrope;
  margin-bottom: 6px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fcfcf7;
}
th {
  text-align: left;
  color: #86907d;
  background: #f0f2e9;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px;
}
td {
  padding: 15px;
  border-top: 1px solid var(--line);
}
td a {
  color: var(--green);
}
.history-heading {
  margin: 35px 0 20px;
}
.history-heading h2 {
  font: 500 23px Manrope;
}
.evidence {
  border-left: 2px solid #bdc7ab;
  padding: 0 0 25px 24px;
  margin-left: 5px;
}
.evidence .date {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.evidence strong {
  font-size: 13px;
  font-weight: 500;
}
.evidence p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 780px;
}
.evidence code {
  font-size: 9px;
  color: #9ba58d;
  display: block;
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 650px;
  max-width: 95vw;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #1c332d70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  font: 500 24px Manrope;
  margin: 0;
}
.dialog-heading button {
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid #d4dacb;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.full {
  grid-column: 1/-1;
}
#form-error {
  color: #a6442d;
}
#map-error {
  position: absolute;
  top: 75px;
  left: 25px;
  z-index: 500;
  background: #fff3df;
  padding: 10px;
  font-size: 11px;
  max-width: 330px;
}
[hidden] {
  display: none !important;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
@media (max-width: 850px) {
  header {
    height: 65px;
    padding: 0 20px;
    gap: 25px;
  }
  .region {
    display: none;
  }
  nav {
    gap: 18px;
  }
  main {
    height: calc(100dvh - 65px);
  }
  .sidebar {
    width: 300px;
    padding: 22px 17px 0;
  }
  .intro h1 {
    font-size: 25px;
  }
  .map-caption-small {
    display: none;
  }
  .map-caption {
    left: 15px;
    font-size: 10px;
  }
  .legend {
    left: 10px;
    bottom: 65px;
    gap: 10px;
  }
  .detail {
    right: 10px;
    left: 10px;
    width: auto;
    top: 10px;
  }
  .ledger-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  #ledger {
    padding: 30px 20px;
  }
}
@media (max-width: 600px) {
  header {
    gap: 24px;
  }
  .logo {
    font-size: 29px;
  }
  nav button {
    font-size: 11px;
  }
  main {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: 43%;
    padding: 14px 18px 0;
    border: 0;
  }
  .intro {
    display: none;
  }
  .search {
    padding: 6px 10px;
  }
  .filters {
    margin: 9px 0;
    gap: 5px;
  }
  .filters button {
    font-size: 9px;
    padding: 5px 8px;
  }
  .results-label {
    padding-bottom: 7px;
  }
  .place-card {
    padding: 10px 2px;
  }
  .place-card .address {
    margin-bottom: 5px;
  }
  .sidebar footer {
    display: none;
  }
  .map-wrap {
    height: 57%;
    flex: none;
  }
  .map-caption {
    top: 12px;
    padding: 10px;
    left: 12px;
  }
  .legend {
    bottom: 26px;
  }
  .legend span {
    font-size: 8px;
  }
  #reset-map {
    bottom: 58px;
    right: 10px;
    padding: 8px;
  }
  .detail {
    bottom: 20px;
    padding: 16px;
  }
  .detail h2 {
    margin-top: 10px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    padding: 12px;
  }
  .metric strong {
    font-size: 23px;
  }
  .ledger-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .ledger-heading h1 {
    font-size: 29px;
  }
}
.cluster.mixed::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  background: var(--orange);
  border-radius: 50%;
}
.correct-event {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  color: var(--green);
  padding: 5px 8px;
  margin-top: 9px;
}
.leaflet-tile-pane {
  filter: saturate(0.35);
}
.detail {
  z-index: 1000;
}
.export-link {
  color: var(--green);
  font-size: 11px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.public-map .correct-event {
  display: none;
}

.estimate-score { float: right; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
