:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --band: #e9efea;
  --surface: #ffffff;
  --surface-soft: #f9faf6;
  --ink: #17201d;
  --muted: #5f6a64;
  --line: #d7ded5;
  --green: #0f7a5f;
  --green-soft: #dff1eb;
  --blue: #285ea8;
  --blue-soft: #e2ebf8;
  --amber: #9a650f;
  --red: #9f352f;
  --shadow: 0 18px 46px rgba(28, 38, 33, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.42;
}
a { color: inherit; }
.topbar {
  background: rgba(245, 246, 241, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.topbar-inner,
.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}
.topbar-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: grid; gap: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.45rem; line-height: 1.1; margin-bottom: 0; }
h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.04;
  margin-bottom: 12px;
  max-width: 780px;
}
h3 { font-size: 1rem; line-height: 1.2; margin-bottom: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 7px 10px;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible {
  background: var(--green-soft);
  border-color: rgba(15, 122, 95, 0.42);
  color: var(--green);
  outline: none;
}
.eyebrow, .label, .lane-kicker {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.scan-band {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.scan-layout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.62fr);
  padding-bottom: 24px;
  padding-top: 24px;
}
.scan-copy {
  align-content: center;
  display: grid;
  min-height: 244px;
}
.scan-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 0;
  max-width: 820px;
}
.snapshot {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  margin: 0;
}
.snapshot div {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}
.snapshot div:last-child { border-bottom: 0; }
.snapshot dt, .source-counters dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}
.snapshot dd, .source-counters dd {
  font-size: 1.04rem;
  font-weight: 760;
  margin: 4px 0 0;
}
.action-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 24px;
  padding-top: 18px;
}
.action-card, .gate-card, .lane-card, .proof-grid article, .freshness-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}
.action-card {
  border-left: 6px solid var(--green);
  min-height: 148px;
}
.action-card.caution { border-left-color: var(--amber); }
.action-card h3 { font-size: 1.22rem; }
.action-card p:last-child, .gate-card p:last-child, .lane-card p:last-child { margin-bottom: 0; }
.action-card p:not(.label), .gate-card p, .lane-card p, .proof-grid li, .section-heading > p, .freshness-card li, .source-row p {
  color: var(--muted);
}
.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 14px;
  padding-top: 8px;
}
.section-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 0;
}
.section-heading > p { margin-bottom: 0; max-width: 410px; }
.gate-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 30px;
}
.gate-card {
  display: grid;
  gap: 8px;
  min-height: 210px;
  position: relative;
}
.gate-card strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.9rem;
}
.status-dot {
  background: var(--amber);
  border-radius: 999px;
  height: 10px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 10px;
}
.after-gates .status-dot { background: var(--blue); }
.needs-proof { border-top: 4px solid var(--amber); }
.after-gates { border-top: 4px solid var(--blue); }
.lanes-band {
  background: #eef1ed;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: 30px;
}
.lane-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lane-card {
  display: grid;
  gap: 9px;
  min-height: 314px;
}
.lane-card h3 { font-size: 1.08rem; }
.stands {
  background: var(--blue-soft);
  color: var(--blue) !important;
  font-size: 0.84rem;
  font-weight: 780;
  padding: 8px 9px;
}
.proof-section, .source-health {
  padding-bottom: 30px;
  padding-top: 8px;
}
.proof-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.proof-grid ul, .freshness-card ul {
  margin: 0;
  padding-left: 18px;
}
.proof-grid li + li, .freshness-card li + li { margin-top: 8px; }
.source-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
}
.source-counters div {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 132px;
  padding: 10px 12px;
}
.freshness-card { margin-bottom: 12px; }
.source-list {
  display: grid;
  gap: 10px;
}
.source-row {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr) auto;
  padding: 14px;
}
.source-row a {
  color: var(--green);
  font-weight: 850;
  overflow-wrap: anywhere;
}
.source-row p { margin: 0; }
.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.73rem;
  font-weight: 850;
  padding: 5px 8px;
  white-space: nowrap;
}
.status-good { background: var(--green-soft); color: var(--green); }
.status-warn, .status-missing { background: #f6ebd5; color: var(--amber); }
@media (max-width: 1040px) {
  .lane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane-card { min-height: 236px; }
}
@media (max-width: 820px) {
  .topbar-inner, .section-heading { align-items: start; flex-direction: column; }
  .topbar-inner { padding-bottom: 12px; padding-top: 12px; }
  nav { justify-content: flex-start; }
  .scan-layout, .action-strip, .gate-grid, .lane-grid, .proof-grid, .source-row { grid-template-columns: 1fr; }
  .scan-copy { min-height: 0; }
  .snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot div {
    border-right: 1px solid var(--line);
    padding: 12px;
  }
  .snapshot div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  nav { display: none; }
}
@media (max-width: 520px) {
  .topbar-inner, .shell { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { min-height: 62px; }
  h2 { font-size: 1.72rem; }
  .scan-layout { gap: 14px; padding-bottom: 18px; padding-top: 18px; }
  .scan-copy p:not(.eyebrow) { font-size: 0.98rem; }
  .action-card, .gate-card, .lane-card, .proof-grid article, .freshness-card { padding: 14px; }
}
