:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #1e1b17;
  background: #faf8f3;
  --green: #2c5c3e;
  --muted: #6b6055;
  --border: #e4ddd3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
a {
  color: var(--green);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.table-wrap:focus-visible {
  outline: 3px solid #628b48;
  outline-offset: 4px;
}
.table-wrap table {
  min-width: 360px;
}
nav > a:last-child {
  font-size: 14px;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 42px 24px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #1e1b17;
  text-decoration: none;
}
.brand span {
  color: var(--green);
}
header {
  max-width: 770px;
  margin: 20px 0 38px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 700;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 22px 0;
}
h1 em {
  color: var(--green);
  font-weight: 400;
}
.intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 0 0 18px;
}
h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
}
.composer,
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.query-row {
  display: flex;
  gap: 12px;
  margin: 8px 0 20px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input[type='search'] {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid #b5ac9f;
  border-radius: 8px;
  background: #fff;
}
button[type='submit'] {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 600;
}
.query-row button span {
  margin-left: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
legend span {
  font-weight: 400;
  color: var(--muted);
}
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interests label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 9px 13px;
  font-size: 14px;
  cursor: pointer;
}
.interests label:has(input:checked) {
  background: #eaf1eb;
  border-color: var(--green);
  color: var(--green);
}
input[type='checkbox'] {
  accent-color: var(--green);
}
.remember {
  font-size: 12px;
  color: var(--muted);
}
.examples {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.examples span {
  font-size: 12px;
  color: var(--muted);
}
.examples button,
.secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
}
.privacy {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 30px 0 18px;
}
#status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.notice {
  font-size: 14px;
  background: #f3ede3;
  padding: 14px 18px;
  border-radius: 8px;
  line-height: 1.5;
}
#dashboard {
  display: grid;
  gap: 22px;
}
.widget-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}
.widget {
  min-width: 0;
}
.widget-head h2 {
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--green);
}
.reason {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  margin-top: 0;
}
.map {
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3ede3;
  z-index: 0;
}
.chart-wrap {
  height: 340px;
  position: relative;
  margin: 20px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}
.place-card {
  padding: 18px;
  background: #faf8f3;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.place-card h3 {
  margin: 10px 0 14px;
}
.place-card p {
  font-size: 14px;
  line-height: 1.65;
}
.source,
.dataset-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}
.source a {
  display: inline-block;
  margin-right: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
td.numeric {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
details {
  margin-top: 16px;
}
summary {
  color: var(--green);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.expired {
  border-color: #bd7a35;
}
.expired-message {
  color: #8a4c18;
  font-weight: 600;
  font-size: 13px;
}
.empty {
  border: 1px dashed #c9bfae;
  border-radius: 16px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.empty > span {
  font-family: Georgia, serif;
  font-size: 30px;
  color: var(--green);
}
.empty h2 {
  margin-top: 16px;
}
.formats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
}
.formats span {
  padding: 8px 12px;
  border-radius: 20px;
  background: #f3ede3;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
footer p {
  max-width: 850px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  main {
    padding: 22px 16px;
  }
  nav {
    padding: 18px 20px;
  }
  .composer,
  .widget {
    padding: 19px;
  }
  .query-row {
    flex-direction: column;
  }
  .query-row button {
    text-align: left;
  }
  .map {
    height: 300px;
  }
  .chart-wrap {
    height: 290px;
  }
  .widget-head {
    display: block;
  }
  .badge {
    margin-bottom: 10px;
  }
  .result-heading {
    align-items: flex-start;
  }
  .interests label {
    font-size: 12px;
    padding: 8px 10px;
  }
}
@media print {
  body {
    background: #fff;
  }
  nav,
  .composer,
  header,
  .result-heading button,
  .examples,
  footer,
  .map {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .widget {
    break-inside: avoid;
    margin: 0 0 16px;
  }
  .table-wrap {
    overflow: visible;
  }
  .widget summary {
    display: none;
  }
  details {
    display: block;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .chart-wrap {
    height: 250px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

select {
  font: inherit;
  padding: 12px;
  border: 1px solid #ccd3ca;
  border-radius: 10px;
  max-width: 100%;
  background: white;
  color: #17312b;
}
.preferences {
  margin: 16px 0;
}
#feedback {
  padding: 24px 0;
}
#feedback button {
  margin: 4px;
}
[aria-pressed='true'] {
  border-color: #166349;
  background: #e4f3e8;
}
@media print {
  #feedback,
  .place-card button {
    display: none;
  }
}

#feedback button {
  font: inherit;
  border: 1px solid #bcccbc;
  border-radius: 8px;
  background: #f5f8f4;
  color: #254d35;
  padding: 10px 14px;
  cursor: pointer;
}
#feedback button[aria-pressed='true'] {
  background: #dcefdc;
}
#feedback button:disabled {
  cursor: default;
}

.account-sync {
  margin-top: 20px;
  padding: 18px;
  background: #eef3ec;
  border: 1px solid #dce6d9;
  border-radius: 10px;
}
.account-sync p {
  font-size: 13px;
  line-height: 1.6;
}
.account-sync button {
  margin: 4px 4px 4px 0;
}
nav {
  flex-wrap: wrap;
}
@media print {
  .account-sync,
  #account-link {
    display: none;
  }
}

.question-settings {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.question-settings > summary {
  cursor: pointer;
  color: var(--green);
  font-size: 14px;
  margin-bottom: 16px;
}
.question-settings > label {
  margin-top: 16px;
}
