/* The sample audit report, drawn in the brand book's parts: paper sheets, mono legends, dark
   readouts for the numbers that matter, lamps with their word for severity (never colour alone),
   and acid only as the highlighter. Used by the page's screens and by /sample-report. */

.rp { --rp-pad: var(--ar-s-5); background: var(--ar-surface); color: var(--ar-text); border-radius: var(--ar-r-lg); border: 1px solid var(--ar-line);
  font-size: var(--ar-fs-sm); line-height: 1.5; overflow: hidden; container-type: inline-size; }
.rp * { box-sizing: border-box; }
.rp-bar { display: flex; align-items: center; gap: var(--ar-s-2); padding: var(--ar-s-3) var(--rp-pad); border-bottom: 1px solid var(--ar-line); }
.rp-bar .ar-legend { margin: 0; }
.rp-bar .rp-page { margin-left: auto; }
.rp-body { padding: var(--rp-pad); display: grid; gap: var(--ar-s-4); }
.rp-foot { display: flex; justify-content: space-between; gap: var(--ar-s-3); padding: var(--ar-s-3) var(--rp-pad); border-top: 1px solid var(--ar-line); }
.rp-foot .ar-legend { margin: 0; }

.rp h4 { font: 700 var(--ar-fs-xl)/1.1 var(--ar-font-display); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.rp h5 { font: 700 var(--ar-fs-md)/1.3 var(--ar-font-body); margin: 0; }
.rp p { margin: 0; }
.rp .rp-sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ar-s-2) var(--ar-s-3); }
.rp .rp-sec .ar-legend { flex: none; }
.rp-sec .rp-tag { margin-left: auto; flex: none; display: inline-flex; gap: var(--ar-s-2); align-items: center; }

/* Cover */
.rp-cover .rp-body { gap: var(--ar-s-5); }
.rp-title { font: 700 clamp(2rem, 9cqi, 3.4rem)/0.95 var(--ar-font-display); letter-spacing: -0.04em; margin: 0; }
.rp-client { font-size: var(--ar-fs-md); color: var(--ar-text-muted); }
.rp-readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ar-s-2); }
@container (min-width: 520px) { .rp-readouts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rp-readouts .ar-readout { min-width: 0; }
.rp-readouts .ar-readout__label { white-space: normal; }
.rp-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ar-s-3) var(--ar-s-4); padding-top: var(--ar-s-4); border-top: 1px solid var(--ar-line); }
@container (min-width: 520px) { .rp-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rp-meta div { display: grid; gap: 2px; }
.rp-meta b { font-weight: 600; }
.rp-note { color: var(--ar-text-muted); }

/* Severity and evidence: a lamp and its word */
.sev { display: inline-flex; align-items: center; gap: 7px; font: 500 var(--ar-fs-xs)/1 var(--ar-font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.sev .ar-lamp { width: 7px; height: 7px; }
.sev--critical .ar-lamp { --_c: var(--ar-bad); box-shadow: 0 0 0 2px var(--ar-lamp-bezel), 0 0 8px 1px color-mix(in srgb, var(--ar-bad) 60%, transparent); }
.sev--high .ar-lamp { --_c: var(--ar-bad); }
.sev--medium .ar-lamp { --_c: var(--ar-warn); }
.sev--low .ar-lamp, .sev--info .ar-lamp { --_c: var(--ar-text-faint); }
.proof { font: 500 var(--ar-fs-xs)/1 var(--ar-font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.proof--proven { background: var(--ar-acid); color: var(--ar-on-acid); padding: 3px 5px; border-radius: 3px; }

/* Tables inside a sheet */
.rp-table { width: 100%; border-collapse: collapse; font-size: var(--ar-fs-sm); }
.rp-table th { text-align: left; font: 500 var(--ar-fs-xs)/1.2 var(--ar-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ar-text-muted); padding: 0 var(--ar-s-2) var(--ar-s-2) 0; border-bottom: 1px solid var(--ar-line-strong); }
.rp-table td { padding: var(--ar-s-2) var(--ar-s-2) var(--ar-s-2) 0; border-bottom: 1px solid var(--ar-line); vertical-align: top; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table .n { font-family: var(--ar-font-mono); color: var(--ar-text-muted); width: 2.2em; }
.rp-table .c { white-space: nowrap; }
.rp-table .mono, .rp .mono { font-family: var(--ar-font-mono); font-size: 0.92em; overflow-wrap: anywhere; }
@container (max-width: 460px) { .rp-table .hide-sm { display: none; } }

/* Two columns of plain words, like the printed report */
.rp-cols { display: grid; gap: var(--ar-s-4); }
@container (min-width: 560px) { .rp-cols { grid-template-columns: 1fr 1fr; } }
.rp-cols p + p { margin-top: var(--ar-s-2); }

/* Evidence: what our listener or tool recorded */
.rp-evidence { margin: 0; padding: var(--ar-s-3) var(--ar-s-4); background: var(--ar-readout-bg); color: var(--ar-paper); border: 1px solid #000; border-radius: var(--ar-r-md);
  font: 400 0.8rem/1.6 var(--ar-font-mono); overflow-x: auto; white-space: pre; box-shadow: var(--ar-inset-1); }
.rp-evidence .hl { color: var(--ar-acid); }

.rp-steps { margin: 0; padding-left: 1.3em; display: grid; gap: var(--ar-s-2); }
.rp-steps b { font-weight: 600; }

.rp-callout { padding: var(--ar-s-3) var(--ar-s-4); border-left: 3px solid var(--ar-acid); background: var(--ar-sunken); border-radius: 0 var(--ar-r-md) var(--ar-r-md) 0; }

/* Leaked accounts: counts, never passwords */
.rp-mask { letter-spacing: 0.04em; }
.rp-bars { display: grid; gap: 6px; }
.rp-bar-row { display: grid; grid-template-columns: minmax(0, 9em) 1fr 2.5em; align-items: center; gap: var(--ar-s-2); font-size: var(--ar-fs-sm); }
.rp-bar-row i { display: block; height: 8px; border-radius: 2px; background: var(--ar-line-strong); }
.rp-bar-row i.on { background: var(--ar-text); }
.rp-bar-row span:last-child { font-family: var(--ar-font-mono); text-align: right; }

/* Monthly watch alert */
.rp-alert { display: grid; gap: var(--ar-s-2); padding: var(--ar-s-4); border: 1px solid var(--ar-line-strong); border-radius: var(--ar-r-md); background: var(--ar-surface); }
.rp-alert-head { display: flex; align-items: center; gap: var(--ar-s-2); flex-wrap: wrap; }
.rp-alert-head time { margin-left: auto; }

/* The whole sample report, one sheet after the other */
.sheets { display: grid; gap: var(--ar-s-6); }
.sheets .rp { box-shadow: var(--ar-raise-2); }
@media (min-width: 760px) { .sheets .rp { --rp-pad: var(--ar-s-7); } }

@media print {
  .site-head, .site-foot, .report-intro, .sa-consent { display: none !important; }
  .sheets { gap: 0; }
  .sheets .rp { box-shadow: none; border: 0; border-radius: 0; break-after: page; }
}
/* Bar lengths as classes: the content security policy allows no inline styles. */
.rp-bar-row i.w16 { width: 16%; } .rp-bar-row i.w22 { width: 22%; } .rp-bar-row i.w100 { width: 100%; }
