/* Loaded on every page: color tokens, the reset, and the site chrome
   (header/nav and footer) shared by home, graph, search, and doc pages. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --surface: #ffffff;
  --surface-strong: #f7f7f7;
  --line: #d9d9d9;
  --text: #111111;
  --muted: #5a5a5a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.06), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: flex;
  align-items: center;
  justify-self: start;
}

.site-title {
  color: #006dbc;
  justify-self: center;
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-brand__logo {
  width: min(13rem, 46vw);
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding-top: 5.4rem;
}

/* Placeholder copy shown before a node/agency is selected, or when data
   fails to load. Used by both the graph and agency-search detail panels. */
.detail-copy {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  text-align: center;
}

.site-footer__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.site-footer__social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer__legal a {
  color: var(--text);
}

.site-footer__legal a:hover {
  text-decoration: underline;
}
