/* Evidence page. Scoped to body.evidence; the shared ../styles.css sets the site's base. Light theme only. */
.evidence {
  --e-ink: #1a1d23;
  --e-muted: #5b6270;
  --e-line: #d9dde3;
  --e-surface: #ffffff;
  --e-tint: #f4f6f9;
  --e-link: #1757ac;
  --e-data: #1757ac;
  --e-track: #e8edf5;
  --e-chg: #fff4d6;
  --e-chg-mark: #8a5a00;
  margin: 0;
  background: var(--e-surface);
  color: var(--e-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.evidence a { color: var(--e-link); }
.evidence *, .evidence *::before, .evidence *::after { box-sizing: border-box; }
.e-top, .e-main, .e-foot { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
.e-top { padding-top: 16px; padding-bottom: 8px; }
.e-home { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.e-label { margin: 24px 0 8px; font-weight: 500; color: var(--e-muted); }
.evidence h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; max-width: 22ch; }
.evidence h2 { margin: 56px 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 600; }
.evidence h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 600; }
.evidence p { max-width: 72ch; }
.e-lede { margin: 0; font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }
.e-muted { color: var(--e-muted); }
.e-small { font-size: 14px; }
.e-list { padding-left: 20px; }
.e-list li { margin: 4px 0; }
.e-list code { font-family: inherit; font-size: 13px; background: var(--e-tint); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }

.e-stats { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
.e-stat { padding: 20px; border: 1px solid var(--e-line); border-radius: 12px; background: var(--e-tint); }
.e-stat p { margin: 0; }
.e-num { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px !important; }

/* Small multiples */
.e-panels { display: grid; gap: 16px 24px; grid-template-columns: 1fr; margin: 24px 0 8px; }
.e-panel { margin: 0; }
.e-panel figcaption { font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.e-panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.e-base { stroke: var(--e-line); stroke-width: 1; }
.e-bar { fill: var(--e-data); }
.e-hit { fill: transparent; cursor: default; }
.e-hit:hover { fill: rgba(23, 87, 172, 0.08); }
.e-peak { font-size: 12px; fill: var(--e-ink); font-variant-numeric: tabular-nums; }
.e-axis { font-size: 11px; fill: var(--e-muted); }
.e-tip { position: fixed; z-index: 10; pointer-events: none; background: var(--e-surface); border: 1px solid var(--e-line); border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* Horizontal bars */
.e-hbars { display: grid; gap: 8px; margin: 16px 0 4px; max-width: 760px; }
.e-hrow { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; align-items: center; }
.e-hlabel { font-size: 15px; }
.e-htrack { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* --w is the bar's share of the largest value; 6.5rem stays free for the value at the tip */
.e-hbar { display: block; height: 20px; min-width: 2px; width: calc((100% - 6.5rem) * var(--w)); background: var(--e-data); border-radius: 0 4px 4px 0; flex: none; }
.e-hval { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.e-hval .e-muted { font-weight: 400; }

/* Tables */
.e-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--e-line); border-radius: 8px; }
.e-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.e-table th, .e-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--e-line); }
.e-table thead th { font-weight: 600; color: var(--e-muted); font-size: 14px; background: var(--e-tint); }
.e-table tbody tr:last-child > * { border-bottom: 0; }
.e-table tbody th { font-weight: 500; }
.e-table .e-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.e-cw { font-size: 13px; }
.e-cw th:first-child { position: sticky; left: 0; z-index: 1; background: var(--e-surface); min-width: 8rem; max-width: 9rem; box-shadow: 1px 0 0 var(--e-line); }
.e-cw thead th:first-child { background: var(--e-tint); }
.e-cw td { min-width: 6.5rem; overflow-wrap: anywhere; }
.e-cw thead th { white-space: nowrap; }
.e-cw td.e-chg { background: var(--e-chg); }
.e-id { font-weight: 600; color: var(--e-muted); }
.e-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; margin-right: 6px; border-radius: 10px; background: var(--e-chg-mark); color: #ffffff !important; font-size: 12px; font-weight: 600; text-decoration: none; }
.e-notes { padding-left: 24px; font-size: 15px; }
.e-notes li { margin: 6px 0; max-width: 80ch; }
.e-notes li:target { background: var(--e-chg); }

.e-px { font-size: 14px; }
.e-px td, .e-px th { min-width: 13rem; }
.e-px th[scope="row"] { min-width: 8rem; }
.e-px p { margin: 0 0 6px; }
.e-q { font-weight: 500; }
.e-src { font-size: 12px; color: var(--e-muted); }

.e-cols { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0; }
.e-card { padding: 20px; border: 1px solid var(--e-line); border-radius: 12px; min-width: 0; }
.e-card h3 { margin-top: 0; }
.e-card .e-hrow { grid-template-columns: 7rem 1fr; }

.e-foot { padding-top: 32px; padding-bottom: 48px; color: var(--e-muted); font-size: 14px; }

@media (min-width: 700px) {
  .e-hrow { grid-template-columns: 12rem 1fr; }
  .e-cw th:first-child { min-width: 11rem; max-width: 14rem; }
  .e-stats { grid-template-columns: repeat(3, 1fr); }
  .e-panels { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .e-panels { grid-template-columns: repeat(4, 1fr); }
  .e-cols { grid-template-columns: 1fr 1fr; }
}
