/* report.css — the Model Report: tiles, two charts, direction, methodology. */

.report-loading { display: flex; justify-content: center; padding: 120px 0; }

.report-hero { margin-bottom: 28px; }
.report-title { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 6px 0 8px; }
.report-lede { font-size: 17px; color: var(--label-2); }

/* ── Tiles ──────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; }
.tile { padding: 20px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.tile-label { font-size: 13px; font-weight: 600; color: var(--label-2); }
.tile-value { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tile-hero { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.tile-note { font-size: 12.5px; color: var(--label-2); line-height: 1.4; }
.r2-note { font-size: 13.5px; color: var(--label-2); margin: 14px 4px 24px; max-width: 760px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.rpt-card { padding: 26px; margin-bottom: 20px; }
.rpt-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.rpt-sub { font-size: 14px; color: var(--label-2); margin: 4px 0 18px; }
.rpt-h3 { font-size: 15px; font-weight: 700; margin: 26px 0 12px; }
.rpt-foot { font-size: 12.5px; color: var(--label-3); margin-top: 12px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-grid .rpt-card { margin-bottom: 20px; }

/* ── Tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.tests { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--border-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.tbl th:first-child { text-align: left; font-weight: 500; white-space: normal; padding-left: 0; }
.tbl thead th { font-size: 12px; font-weight: 600; color: var(--label-2); border-bottom-color: var(--border); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: none; }
.tbl .is-shipped th, .tbl .is-shipped td { color: var(--accent); font-weight: 600; }
.tbl--compact th, .tbl--compact td { padding: 8px 8px; font-size: 13.5px; }
.tbl--compact th:first-child { padding-left: 0; }

/* ── Direction ──────────────────────────────────────────────────────── */
.dir-rows { display: flex; flex-direction: column; gap: 10px; }
.dir-row {
  display: grid; grid-template-columns: 110px repeat(3, 1fr) 84px; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2);
}
.dir-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.dir-cell { display: flex; flex-direction: column; align-items: center; }
.dir-cell--r2 { align-items: flex-end; }
.dir-k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); }
.dir-v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* ── Methodology (collapsed) ────────────────────────────────────────── */
.rpt-method summary {
  display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none;
}
.rpt-method summary::-webkit-details-marker { display: none; }
.rpt-method summary .muted { font-size: 13.5px; }
.rpt-method summary::after {
  content: ''; margin-left: auto; align-self: center; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.rpt-method[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.rpt-method[open] summary { margin-bottom: 4px; }

/* ── Charts ─────────────────────────────────────────────────────────── */
.chart { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .ref { stroke: var(--label-3); stroke-width: 1; }
.chart .tick { fill: var(--label-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .tick--y { text-anchor: end; }
.chart .tick--x { text-anchor: middle; }
.chart .axis-label { fill: var(--label-2); font-size: 11.5px; font-weight: 600; text-anchor: middle; }
.chart .series-line { fill: none; stroke: var(--pass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-dot { fill: var(--pass); stroke: var(--surface); stroke-width: 2; }
.chart .series-dot:hover { r: 7; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 180px) 1fr 48px; align-items: center; gap: 14px; }
.bar-label { font-size: 14px; font-weight: 500; }
.bar-track { height: 10px; }
.bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: width .5s var(--ease-out); }
.bar-fill--accent  { background: var(--accent); }
.bar-fill--neutral { background: var(--label-3); }
.bar-val { text-align: right; font-weight: 600; font-size: 14px; }
