/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:            #f4f4f5;
  --surface:       #ffffff;
  --border:        #e4e4e7;
  --border-subtle: #f4f4f5;
  --text-1:        #18181b;
  --text-2:        #52525b;
  --text-3:        #a1a1aa;
  --header-bg:     #09090b;
  --accent:        #2563eb;
  --green:         #16a34a;
  --green-bg:      #dcfce7;
  --red:           #dc2626;
  --red-bg:        #fee2e2;
  --amber:         #ca8a04;
  --amber-bg:      #fef9c3;
  --amber-200:     #fde68a;
  --radius:        8px;
  --radius-sm:     4px;
  --radius-pill:   9999px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 56px;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header h1 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.site-header h1 a { color: #fff; text-decoration: none; }
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
}
.header-nav a:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); }
.header-nav a.active { color: #fff; }
#generated {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
}

/* ── Page body ──────────────────────────────────────────────────────────── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.75rem;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-success { background: var(--green-bg); color: var(--green); }
.badge-failed  { background: var(--red-bg);   color: var(--red);   }
.badge-partial { background: var(--amber-bg);  color: var(--amber); }
.badge-stale   { background: var(--amber-bg);  color: var(--amber); }
.badge-unknown { background: var(--border);    color: var(--text-2);}

/* ── Neighbourhood badge ────────────────────────────────────────────────── */
.nbhd-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.nbhd-filter-btn {
  cursor: pointer;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.22);
}
.nbhd-filter-btn:hover { opacity: 0.8; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
footer a { color: var(--text-3); text-decoration: none; transition: color .12s; }
footer a:hover { color: var(--text-2); }
footer .sep { color: var(--border); user-select: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; height: 48px; }
  .site-header h1 { font-size: 12px; }
  .site-header-inner { gap: 0.75rem; }
  .header-nav a { font-size: 12px; padding: 3px 7px; }
  #generated { display: none; }
  .page-body { padding: 1rem; }
}
