/* SPEKTRA — authority site
   Restrained, evidentiary. The audience reads regulatory submissions all day. */

:root {
  --primary: #0b1d2c;
  --accent: #0e9f8a;
  --accent-strong: #0b7d6d;
  --bg: #ffffff;
  --surface: #f6f8f9;
  --surface-2: #eef2f4;
  --text: #17242e;
  --muted: #5a6b78;
  --border: #dde4e8;
  --warn-bg: #fdf6e7;
  --warn-border: #e6c56a;
  --warn-text: #6b5010;
  --max: 76rem;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #e6edf2;
    --accent: #2dd4bf;
    --accent-strong: #5ee7d3;
    --bg: #0b1219;
    --surface: #121d26;
    --surface-2: #18242f;
    --text: #dce6ec;
    --muted: #92a5b2;
    --border: #24333f;
    --warn-bg: #221d10;
    --warn-border: #6b5722;
    --warn-text: #e0c583;
  }
}

:root[data-theme="dark"] {
  --primary: #e6edf2;
  --accent: #2dd4bf;
  --accent-strong: #5ee7d3;
  --bg: #0b1219;
  --surface: #121d26;
  --surface-2: #18242f;
  --text: #dce6ec;
  --muted: #92a5b2;
  --border: #24333f;
  --warn-bg: #221d10;
  --warn-border: #6b5722;
  --warn-text: #e0c583;
}

:root[data-theme="light"] {
  --primary: #0b1d2c;
  --accent: #0e9f8a;
  --accent-strong: #0b7d6d;
  --bg: #ffffff;
  --surface: #f6f8f9;
  --surface-2: #eef2f4;
  --text: #17242e;
  --muted: #5a6b78;
  --border: #dde4e8;
  --warn-bg: #fdf6e7;
  --warn-border: #e6c56a;
  --warn-text: #6b5010;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.brand .mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.brand .mark i {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
}

nav.site { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
nav.site a:hover { color: var(--text); }
nav.site a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- status banner ---------- */

.status-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 0.88rem;
  padding: 0.55rem 0;
}
.status-banner strong { font-weight: 650; }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.8rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 1rem;
}

/* ---------- sections ---------- */

section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--primary);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin: 2rem 0 0.6rem;
}
p { margin: 0 0 1.1rem; }
a { color: var(--accent-strong); }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

/* ---------- grid ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 0.5rem;
}

/* ---------- tables ---------- */

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

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--primary);
  font-weight: 650;
  background: var(--surface);
  white-space: nowrap;
}
tbody tr:hover { background: var(--surface); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 2rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.9rem;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}
.timeline li.key::before { background: var(--accent); }
.timeline li.pending::before { background: var(--warn-border); }
.timeline .date {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.timeline .event { font-weight: 600; color: var(--primary); }
.timeline .detail { color: var(--muted); font-size: 0.94rem; margin-top: 0.2rem; }

/* ---------- misc ---------- */

.pill {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pill.live { border-color: var(--accent); color: var(--accent); }
.pill.pending { border-color: var(--warn-border); color: var(--warn-text); background: var(--warn-bg); }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--border);
}

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

dl.facts { margin: 0; }
dl.facts div {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
dl.facts dt { color: var(--muted); min-width: 11rem; font-size: 0.92rem; }
dl.facts dd { margin: 0; font-weight: 550; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2rem;
}
footer.site .cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-bottom: 1.8rem;
}
footer.site h4 {
  color: var(--primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.4rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .legal { border-top: 1px solid var(--border); padding-top: 1.4rem; font-size: 0.84rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
  dl.facts div { flex-direction: column; gap: 0.2rem; }
}
