:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --ink: #1e2a2a;
  --muted: #4f5b5b;
  --border: #ccd6d5;
  --open: #0c7d43;
  --closed: #bb1e2d;
  --amber: #9a6b00;
  --none: #647280;
  --focus: #004b8d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(194, 215, 209, 0.35), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, var(--bg) 100%);
  line-height: 1.45;
}

.layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.75rem;
}

.site-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.kicker {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.2rem, 3.8vw, 1.65rem);
}

.policy-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toolbar {
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.meta-row p {
  margin: 0;
  font-size: 0.9rem;
}

.reset-note {
  margin-top: 0.25rem;
  color: var(--muted);
}

.flash-message {
  margin-top: 0.55rem;
  min-height: 1.2rem;
  font-weight: 700;
}

.map-wrap {
  margin-top: 0.75rem;
}

.map {
  height: 42vh;
  min-height: 280px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.location-list {
  list-style: decimal;
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 0.5rem;
  border-radius: 0.65rem;
  padding: 0.85rem;
}

.location-card.status-likely_open {
  border-left-color: var(--open);
}

.location-card.status-likely_closed {
  border-left-color: var(--closed);
}

.location-card.status-conflicting,
.location-card.status-restricted_or_unclear {
  border-left-color: var(--amber);
}

.location-card.status-none {
  border-left-color: var(--none);
}

.location-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.location-name {
  margin: 0;
  font-size: 1.05rem;
}

.status-pill {
  margin: 0.45rem 0 0;
  font-weight: 700;
}

.status-pill .dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.status-likely_open .dot {
  background: var(--open);
}

.status-likely_closed .dot {
  background: var(--closed);
}

.status-conflicting .dot,
.status-restricted_or_unclear .dot {
  background: var(--amber);
}

.status-none .dot {
  background: var(--none);
}

.breakdown,
.latest,
.note {
  margin: 0.35rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.report-controls {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.btn {
  appearance: none;
  border: 1px solid #2c3a3a;
  border-radius: 0.55rem;
  background: #fff;
  color: #1a2626;
  font-size: 1rem;
  font-weight: 700;
  min-height: 2.8rem;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-open {
  border-color: var(--open);
}

.btn-closed {
  border-color: var(--closed);
}

.btn-restricted,
.btn-unclear {
  border-color: var(--amber);
}

.note-input {
  width: 100%;
  min-height: 2.7rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  padding: 0.6rem;
  font: inherit;
}

.note-count {
  justify-self: end;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  margin: 0.9rem 0 0.6rem;
  padding: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
}

.link-button {
  margin-top: 0.5rem;
  border: none;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  color: #004f85;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal {
  border: none;
  border-radius: 0.7rem;
  padding: 0;
  width: min(92vw, 420px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.modal-card {
  padding: 1rem;
}

.btn-secondary {
  margin-top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (min-width: 760px) {
  .layout {
    padding: 1rem;
  }

  .map {
    min-height: 360px;
  }

  .button-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
