*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --yellow: #ffd60a;
  --ink: #17140a;
  --bg: #f7f7f2;
  --panel: #ffffff;
  --fg: #17140a;
  --muted: #5a5640;
  --frame: #17140a;
  --soft: #dedcca;
  --bar: #17140a;
  --on-bar: #ffffff;
  --down: #b3121a;
  --down-dot: #b3121a;
  --back: #0b6b34;
  --btn-bg: #17140a;
  --btn-fg: #ffd60a;
  --focus: #17140a;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130c;
    --panel: #1e1c12;
    --fg: #f4f1df;
    --muted: #b9b49b;
    --frame: #f4f1df;
    --soft: #34311f;
    --bar: #2b281a;
    --on-bar: #f4f1df;
    --down: #ff9a92;
    --btn-bg: #f4f1df;
    --btn-fg: #17140a;
    --focus: #ffd60a;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

input,
button {
  caret-color: currentColor;
  accent-color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  background: var(--yellow);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

h1,
h2,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 44rem;
  min-height: 3.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wordmark {
  font: 700 2rem/1 var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.header-link:hover {
  background: var(--ink);
  color: var(--yellow);
}

.site-header :focus-visible {
  outline-color: var(--ink);
}

.crumbs {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs li + li::before {
  content: "›";
  padding: 0 0.4rem;
  color: var(--muted);
}

.crumbs a,
.crumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.crumbs span {
  color: var(--muted);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
}

.site-header + main {
  padding-top: 1.5rem;
}

h1 {
  font: 700 2.5rem/1.05 var(--font-display);
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

h2.section {
  margin: 2.25rem 0 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--bar);
  color: var(--yellow);
  font: 700 0.875rem/1.3 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-total {
  color: var(--on-bar);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}

.lead {
  max-width: 34rem;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

time {
  white-space: nowrap;
}

p + p {
  margin-top: 0.75rem;
}

.search label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.search-row {
  position: relative;
  display: flex;
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0 0.9rem;
  border: 3px solid var(--frame);
  border-radius: 0;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 1.125rem;
  -webkit-appearance: none;
  appearance: none;
}

.search input:focus-visible,
.filter input:focus-visible {
  outline-offset: -7px;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button,
.filter input::-webkit-search-cancel-button {
  display: none;
}

.search button {
  min-height: 3.5rem;
  padding: 0 1.25rem;
  border: 3px solid var(--frame);
  border-left-width: 0;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.0625rem var(--font-body);
  cursor: pointer;
}

.search button:hover {
  background: var(--yellow);
  color: var(--ink);
}

.suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 3px solid var(--frame);
  border-top-width: 1px;
  background: var(--panel);
}

.suggest[hidden] {
  display: none;
}

.suggest li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--soft);
  cursor: pointer;
}

.suggest li:last-child {
  border-bottom: 0;
}

.suggest li[aria-selected="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.suggest .uf {
  margin-left: auto;
  font-weight: 700;
}

.suggest mark {
  background: none;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--frame);
  background: var(--panel);
}

.notice[hidden] {
  display: none;
}

.notice .icon {
  flex: none;
  margin-top: 0.1rem;
}

.notice[data-tone="ok"] {
  border-color: var(--back);
}

.notice[data-tone="ok"] .icon {
  color: var(--back);
}

.notice[data-tone="error"] {
  border-color: var(--down);
}

.notice[data-tone="error"] .icon {
  color: var(--down);
}

.notice p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .notice[data-tone="ok"] {
    border-color: #6fd39a;
  }

  .notice[data-tone="ok"] .icon {
    color: #6fd39a;
  }
}

.answer {
  padding: 1.1rem 1rem 1rem;
  border: 3px solid var(--frame);
  background: var(--yellow);
  color: var(--ink);
}

.answer[data-state="back"] {
  background: var(--back);
  color: #ffffff;
}

.answer[data-state="none"] {
  border-style: dashed;
  background: transparent;
  color: var(--fg);
}

.answer[data-state="shared"] .verdict {
  color: #a60f16;
}

.verdict {
  font: 700 2.375rem/1.02 var(--font-display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.answer-text {
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.facts {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid currentColor;
}

.facts > div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 1.0625rem;
}

.facts dt {
  display: flex;
  flex: 1;
  align-items: baseline;
}

.facts dt::after,
.dots {
  content: "";
  flex: 1 1 1rem;
  height: 0.25rem;
  margin: 0 0.4rem 0.2em;
  background: radial-gradient(circle at 1.5px 50%, currentColor 1.2px, transparent 1.6px) 0 0 / 6px 4px;
  background-repeat: round no-repeat;
  opacity: 0.7;
}

.facts dd {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.window {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.report {
  margin-top: 1.5rem;
}

.report-prompt {
  margin-bottom: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.report-state {
  margin-bottom: 0.6rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--frame);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.btn:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn[data-kind="up"] {
  background: var(--back);
  color: #ffffff;
}

.btn[data-kind="up"]:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn:disabled {
  cursor: progress;
  background: var(--soft);
  color: var(--fg);
}

.btn--quiet {
  min-height: 3.25rem;
  background: var(--panel);
  color: var(--fg);
  font-size: 1.125rem;
}

.notice--share {
  flex-wrap: wrap;
  gap: 0 0.5rem;
  align-items: center;
  padding: 0.125rem 0.5rem 0.125rem 1rem;
}

.notice--share .icon {
  margin-top: 0;
}

.notice--share p {
  flex: 1 1 8rem;
  padding-block: 0.625rem;
}

.notice-action {
  position: relative;
  display: inline-flex;
  flex: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0.5rem 0 0.5rem auto;
  padding: 0.125rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.notice-action:hover {
  background: none;
  color: inherit;
}

.notice-action::after {
  content: "";
  position: absolute;
  inset: -0.5625rem 0;
}

.notice-action svg {
  flex: none;
}

.report-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.report-note + .report-note {
  margin-top: 0.2rem;
}

.report-next {
  margin-top: 1.5rem;
}

.cf-turnstile:empty {
  display: none;
}

.cf-turnstile {
  margin-top: 0.75rem;
}

.note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--frame);
  background: var(--panel);
  font-size: 0.9375rem;
}

.map {
  max-width: 28rem;
  margin: 0 auto;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map path {
  fill: var(--panel);
  stroke: var(--frame);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s ease-out;
}

.map a.has-reports path {
  fill: var(--yellow);
}

@media (hover: hover) {
  .map a:hover path {
    fill: var(--frame);
  }
}

.map-dots {
  pointer-events: none;
}

.map-dots circle {
  r: 10px;
  fill: var(--down-dot);
  stroke: var(--frame);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.map figcaption {
  margin-top: 0.5rem;
}

.key {
  display: inline-block;
  margin-right: 1rem;
}

.swatch {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.5rem;
  border: 2px solid var(--frame);
  background: var(--yellow);
  vertical-align: -0.1em;
}

.swatch--down {
  width: 0.75rem;
  height: 0.75rem;
  margin: 0 0.5625rem 0 0.0625rem;
  border-radius: 50%;
  background: var(--down-dot);
}

.swatch--back {
  background: var(--back);
}

.swatch--here {
  border-style: dashed;
  background: transparent;
}

.swatch--mine {
  border-width: 4px;
  background: transparent;
}

.area {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem 1rem;
  border: 2px solid var(--frame);
  background: var(--panel);
}

.area-prompt {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.area-note {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.geo-pick .btn {
  margin-top: 0.75rem;
}

.geo-hint {
  min-height: 2.9em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.geo-map {
  height: 20rem;
  border: 3px solid var(--frame);
  background: var(--panel);
}

.regions {
  margin-top: 1rem;
}

.map-actions {
  display: flex;
  gap: 0.5rem;
}

.map-actions .btn {
  flex: 1 1 0;
  min-width: 0;
}

.near-status {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.regions .facts {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.geo-view {
  margin-top: 1rem;
}

.geo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.geo-map.leaflet-container {
  font: inherit;
  font-size: 0.8125rem;
}

.geo-map.leaflet-container:focus-visible {
  outline-offset: -7px;
}

.geo-map.leaflet-container .leaflet-bar {
  border: 3px solid var(--frame);
  border-radius: 0;
  box-shadow: none;
}

.geo-map.leaflet-container .leaflet-bar a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  border-bottom-color: var(--frame);
  background: var(--panel);
  color: var(--fg);
  font: 700 1.5rem/2.5rem var(--font-body);
}

.geo-map.leaflet-container .leaflet-bar a:hover {
  background: var(--yellow);
  color: var(--ink);
}

.geo-map.leaflet-container .leaflet-bar a.leaflet-disabled {
  background: var(--soft);
  color: var(--muted);
}

.geo-map.leaflet-container .leaflet-control-attribution {
  background: var(--panel);
  color: var(--fg);
  font-size: 0.75rem;
}

.geo-map.leaflet-container .leaflet-control-attribution a {
  color: inherit;
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.rows {
  list-style: none;
  padding: 0;
}

.rows a {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  min-height: 3rem;
  margin: 0 -0.4rem;
  padding: 0.7rem 0.4rem;
  text-decoration: none;
}

.rows li {
  border-bottom: 1px solid var(--soft);
}

.rows .name {
  font-weight: 600;
}

.rows .value {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rows a:hover .value {
  color: var(--ink);
}

.rows .uf {
  font-weight: 700;
}

.rows .hot,
.rows--now .value {
  color: var(--fg);
  font-weight: 700;
}

.rows--now {
  margin: 1rem 0 1.5rem;
}

.rows--now a {
  flex-wrap: wrap;
}

.rows--now .ago {
  flex-basis: 100%;
  margin-top: -0.1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.rows--now a:hover .ago {
  color: var(--ink);
}

.rows--single {
  margin-top: 1.5rem;
}

.rows--single a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.rows--single .name::after {
  content: "›";
  margin-left: 0.5rem;
}

.rows--cols {
  column-width: 15rem;
  column-gap: 2rem;
}

.rows--cols li {
  break-inside: avoid;
}

.more {
  margin-top: 0.5rem;
}

.more summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin: 0 -0.4rem;
  padding: 0 0.4rem;
  font-weight: 700;
  cursor: pointer;
}

.more summary[hidden] {
  display: none;
}

.more summary:hover {
  background: var(--yellow);
  color: var(--ink);
}

.filter {
  margin-bottom: 0.75rem;
}

.filter label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.filter input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 3px solid var(--frame);
  border-radius: 0;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.filter input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search + .empty {
  margin-top: 1.25rem;
}

.empty {
  padding: 1rem;
  border: 3px dashed var(--frame);
}

.empty p {
  max-width: 34rem;
}

.prose h2.section:first-child {
  margin-top: 1.5rem;
}

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.prose ul + p {
  margin-top: 0.75rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose p,
.prose li {
  max-width: 36rem;
  text-wrap: pretty;
}

.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p {
  padding-top: 1rem;
  border-top: 1px solid var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 3rem;
  }

  .verdict {
    font-size: 2.75rem;
  }

  .geo-map {
    height: 26rem;
  }

  main {
    padding-top: 1rem;
  }

  .site-header + main {
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .map path {
    transition: none;
  }
}
