:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --steel: #2f6fed;
  --steel-dim: rgba(47,111,237,0.12);
  --ink: #16202e;
  --slate: #4a5568;
  --line: #e2e6ec;
  --bg: #f6f8fb;
  --card: #ffffff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
header.site {
  background: var(--navy);
  color: #eef2f8;
  padding: 4.5rem 0 3.5rem;
}
header.site .wrap { display: flex; flex-direction: column; gap: 0.6rem; }
header.site h1 { margin: 0; font-size: 2.4rem; letter-spacing: -0.01em; }
header.site .tagline {
  font-size: 1.05rem;
  color: #a9bde0;
  font-weight: 500;
}
header.site .role-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #c3d1e8;
  max-width: 60ch;
}

nav.site {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav.site .wrap {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}
nav.site a { color: #cddcf2; }

/* SECTIONS */
main { padding: 3rem 0 5rem; }
section.intro { padding-bottom: 2.5rem; }
section.intro p { color: var(--slate); font-size: 1.02rem; max-width: 68ch; }

h2.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin: 2.75rem 0 1.25rem;
}
h2.section-title:first-child { margin-top: 0; }

/* CASE STUDY CARDS */
.case-grid {
  display: grid;
  gap: 1rem;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.case-card.live { border-color: var(--steel); box-shadow: 0 2px 10px rgba(47,111,237,0.08); }
.case-card h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.case-card p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.case-card .cta { white-space: nowrap; font-size: 0.85rem; font-weight: 600; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}
.badge.adopted { background: rgba(29,158,110,0.12); color: #1a7a52; }
.badge.soon { background: #eef1f5; color: #8a93a3; }

/* ADR PAGE */
.adr-header {
  background: var(--navy);
  color: #eef2f8;
  padding: 3.5rem 0 2.5rem;
}
.adr-header .wrap a.back { color: #a9bde0; font-size: 0.85rem; }
.adr-header h1 { margin: 0.8rem 0 0.5rem; font-size: 1.9rem; letter-spacing: -0.01em; }
.adr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #c3d1e8;
  margin-top: 0.8rem;
}
.adr-meta span strong { color: #eef2f8; }

article.adr { padding: 3rem 0 5rem; }
article.adr section { margin-bottom: 2.75rem; }
article.adr h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--steel);
  margin: 0 0 1rem;
  font-family: var(--mono);
}
article.adr p { color: var(--ink); max-width: 68ch; }

.options-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.option-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: var(--card);
}
.option-card.rejected { opacity: 0.85; }
.option-card.chosen { border-color: var(--steel); background: var(--steel-dim); }
.option-card h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.option-card .verdict {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.option-card.rejected .verdict { color: #b3452c; }
.option-card.chosen .verdict { color: #1a5fd1; }
.option-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--slate); }

.consequences {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .consequences { grid-template-columns: 1fr; } }
.consequences .col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
}
.consequences .col.pos h3 { color: #1a7a52; }
.consequences .col.neg h3 { color: #b3452c; }
.consequences ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; color: var(--slate); }

.chart-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.chart-block .note {
  font-size: 0.78rem;
  color: #8a93a3;
  margin-top: 0.9rem;
}
.bar-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.85rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { width: 150px; font-size: 0.85rem; color: var(--slate); flex-shrink: 0; }
.bar-track { flex: 1; background: #eef1f5; border-radius: 4px; overflow: hidden; height: 22px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-fill.import { background: var(--steel); }
.bar-fill.directquery { background: #c2540f; }
.bar-value { width: 46px; text-align: right; font-family: var(--mono); font-size: 0.82rem; color: var(--ink); flex-shrink: 0; }

/* LINE CHART */
.line-chart-legend {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.line-chart-legend .swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.swatch.cy { background: var(--steel); }
.swatch.py { background: #94a3b8; }
.swatch.oo { background: #c2540f; }
.line-chart svg { width: 100%; height: auto; }
.line-chart .axis-label { font-family: var(--mono); font-size: 10px; fill: #8a93a3; }
.line-chart .gridline { stroke: #eef1f5; stroke-width: 1; }

/* FOOTER */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
  color: #8a93a3;
  font-size: 0.85rem;
}
