:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5f6c80;
  --soft: #f5f7fb;
  --line: #dfe6f1;
  --paper: #ffffff;
  --navy: #0b1f3a;
  --blue: #2563eb;
  --sky: #7dd3fc;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #7c3aed;
  --shadow: 0 18px 60px rgba(13, 31, 58, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 211, 252, 0.32), transparent 30rem),
    radial-gradient(circle at 90% 4%, rgba(124, 58, 237, 0.13), transparent 28rem),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 45%, #f7f9fc 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(223, 230, 241, 0.92);
}
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
  display: grid;
  place-items: center;
  color: white;
  font-size: 17px;
}
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.navlinks a {
  color: #26354f;
  font-weight: 650;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
}
.navlinks a:hover, .navlinks a[aria-current="page"] {
  background: #eaf1ff;
  text-decoration: none;
}

main { max-width: 1180px; margin: 0 auto; padding: 38px 24px 84px; }
.hero {
  border: 1px solid rgba(223, 230, 241, 0.95);
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.96), rgba(37, 99, 235, 0.89)),
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.7), transparent 22rem);
  color: white;
  border-radius: 34px;
  padding: clamp(30px, 6vw, 66px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 38px solid rgba(255, 255, 255, 0.08);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.hero p { max-width: 780px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: rgba(255,255,255,.88); }
.hero-actions { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 26px; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.18);
  background: var(--blue);
  color: white;
  font-weight: 780;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.23);
  cursor: pointer;
}
.button:hover { text-decoration: none; filter: brightness(1.03); }
.button.secondary {
  background: rgba(255,255,255,.12);
  color: white;
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}
.button.ghost {
  background: white;
  color: var(--ink);
  box-shadow: none;
  border-color: var(--line);
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards { margin-top: 28px; }
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(13, 31, 58, 0.07);
}
.card h2, .card h3 { margin-top: 0; letter-spacing: -0.035em; }
.card p { color: var(--muted); line-height: 1.58; }
.metric { font-size: 34px; font-weight: 850; letter-spacing: -0.05em; color: var(--navy); }
.metric-label { color: var(--muted); font-size: 13px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }

.callout {
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 0 10px 28px rgba(13, 31, 58, 0.06);
}
.callout strong { display: block; margin-bottom: 5px; }
.callout.warning { border-left-color: var(--amber); background: #fffaf0; }
.callout.danger { border-left-color: var(--red); background: #fff7f7; }
.callout.ok { border-left-color: var(--green); background: #f4fff8; }

.section-title {
  margin: 44px 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}
.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.055em; }
.section-title p { margin: 6px 0 0; color: var(--muted); max-width: 760px; line-height: 1.55; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(13, 31, 58, 0.06);
  margin: 16px 0 28px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 13px; border-bottom: 1px solid #edf1f7; vertical-align: top; text-align: left; }
th { position: sticky; top: 0; background: #f8fbff; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #41536f; cursor: pointer; }
tbody tr:hover { background: #fbfdff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chart-panel { min-height: 270px; }
.chart-title { font-weight: 850; letter-spacing: -0.03em; margin: 0 0 6px; }
.chart-subtitle { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #24344e; }
.bar-track { height: 14px; background: #edf3fb; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--sky)); min-width: 2px; }
.bar-fill.amber { background: linear-gradient(90deg, var(--amber), #facc15); }
.bar-fill.red { background: linear-gradient(90deg, var(--red), #fb7185); }
.bar-value { font-variant-numeric: tabular-nums; color: #3a4a63; }

.download-list { display: flex; gap: 10px; flex-wrap: wrap; }
.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 750;
}

.report-frame-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.report-frame {
  width: 100%;
  min-height: 78vh;
  height: 1100px;
  border: 0;
  background: white;
}

.prose {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 12px 36px rgba(13, 31, 58, 0.07);
  line-height: 1.65;
}
.prose h1 { font-size: 42px; line-height: 1.05; color: var(--navy); }
.prose h2 { margin-top: 2em; font-size: 28px; letter-spacing: -0.04em; }
.prose h3 { margin-top: 1.7em; font-size: 21px; }
.prose pre { overflow:auto; background:#0b1220; color:#e5eefb; padding:16px; border-radius:16px; }
.prose code { background:#eef4ff; padding:.15em .35em; border-radius:7px; }
.prose pre code { background: transparent; padding: 0; }
.prose blockquote { border-left: 5px solid var(--blue); margin: 1.5em 0; padding: 0.5em 1em; background:#f8fbff; border-radius:0 14px 14px 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px 42px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:800;
  color:#344560;
  background:white;
}
.badge.ok { color:#166534; background:#ecfdf3; border-color:#bbf7d0; }
.badge.warn { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.badge.info { color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }

@media (max-width: 820px) {
  .navbar { align-items: flex-start; flex-direction: column; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .bar-row { grid-template-columns: 1fr; gap: 5px; }
  .report-frame { height: 900px; }
}

/* v2 refinement: editorial evidence-site layout, fewer boxed cards */
body {
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f6f1e8 44%, #fbfaf7 100%);
}
.site-header { background: rgba(251,250,247,.9); border-bottom-color: #e7e1d5; }
.hero {
  background: #172033;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  margin-inline: calc(50% - 50vw);
  padding-left: max(24px, calc((100vw - 1180px)/2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px)/2 + 24px));
}
.hero:after { display: none; }
.kicker { background: transparent; border-color: rgba(255,255,255,.25); }
.report-list {
  margin: 36px 0 26px;
  border-top: 1px solid #e7e1d5;
}
.report-row {
  display: grid;
  grid-template-columns: 150px minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid #e7e1d5;
  color: var(--ink);
}
.report-row:hover { text-decoration: none; }
.report-row:hover strong { color: var(--blue); }
.report-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8b5e21;
  font-size: 12px;
  font-weight: 900;
}
.report-row strong { font-size: clamp(22px, 3vw, 34px); line-height: 1.05; letter-spacing: -.05em; }
.report-row span:last-child { color: var(--muted); line-height: 1.55; }
.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e7e1d5;
  border: 1px solid #e7e1d5;
  margin: 24px 0;
}
.status-strip > div {
  background: #fffdf9;
  padding: 18px 20px;
}
.status-strip strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.06em;
  color: #172033;
}
.status-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.callout.slim { box-shadow: none; border-radius: 0 16px 16px 0; }
.card {
  box-shadow: none;
  background: #fffdf9;
  border-color: #e7e1d5;
}
.chart-panel { background: #fff; }
.table-wrap { box-shadow: none; border-color: #e7e1d5; }
th { background: #f7f3ec; }
.prose { box-shadow: none; background: #fffdf9; border-color: #e7e1d5; }
@media (max-width: 820px) {
  .report-row { grid-template-columns: 1fr; gap: 8px; }
  .status-strip { grid-template-columns: 1fr; }
}
