/* Sample triage report: a deliverable laid out as a document. Loads after styles.css. */

.report { padding: 56px 0 96px; }
.report-wrap { max-width: 980px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 56px) 56px; border-radius: 10px; }
@media (max-width: 760px) { .report { padding-top: 0; } .report-wrap { border-radius: 0; } }

/* ── Cover ── */
.rcover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.rcover-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 28px; background: var(--ink); color: var(--soft); }
.rcover-panel img { width: min(240px, 100%); height: auto; }
.rcover-panel .digits { font-size: 12px; max-width: 100%; overflow: hidden; }
.rcover-panel .on-paper { display: none; }
.rcover-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; }
.rcover-text .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.rcover-text h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.rcover-text .covers { color: var(--mute); font-size: 15px; }
.rcover-meta { margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.rcover-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.rcover-meta dd { margin: 2px 0 0; font-size: 14px; }

.sample-note { margin-top: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; font-size: 14px; color: var(--mute); }
.sample-note strong { color: var(--ink); font-weight: 600; }
.sample-note .tag { margin-right: 10px; vertical-align: 1px; }

/* ── Running mark ── */
.runmark { display: flex; align-items: center; gap: 10px; margin-top: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.runmark img { width: 24px; height: 24px; }
.runmark .name { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.runmark .doc { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mute); text-align: right; }

/* ── Sections ── */
.rsec { padding-top: 44px; }
.rsec h2 { display: flex; align-items: baseline; gap: 14px; }
.rsec h2 .n { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.rsec .sub { margin-top: 10px; max-width: 38em; color: var(--mute); }
.rsec > p { max-width: 40em; }
.rsec > p + p { margin-top: 1em; }
.rsec .sub + * { margin-top: 24px; }
.rsec h2 + p { margin-top: 14px; }

.verdict { margin-top: 22px; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink); max-width: 40em; }
.verdict p + p { margin-top: 0.8em; }

.ranks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ranks li { padding: 16px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; }
.ranks .num { display: block; font-family: var(--mono); font-weight: 500; font-size: 27px; letter-spacing: -0.04em; line-height: 1.1; }
.ranks .lab { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* ── Diagram ── */
.sysmap { margin-top: 24px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }
.sysmap .scroll { overflow-x: auto; }
.sysmap svg { width: 100%; min-width: 600px; height: auto; font-family: var(--mono); }
.sysmap svg text { fill: var(--ink); font-size: 12px; }
.sysmap svg .m { fill: var(--mute); }
.sysmap svg .box { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.sysmap svg .box-soft { fill: var(--bone); stroke: var(--rule); stroke-width: 1; }
.sysmap svg .ln { stroke: var(--ink); stroke-width: 1; fill: none; }
.sysmap .hint { display: none; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
@media (max-width: 760px) { .sysmap .hint { display: block; } }
.sysmap .cap { margin-top: 14px; font-size: 14px; color: var(--mute); }

/* ── Findings ── */
.finding { margin-top: 14px; padding: 24px 26px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; }
.finding:first-of-type { margin-top: 24px; }
.f-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.f-id { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.finding h3, .fix h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; flex: 1 1 18em; }
.sev { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--ink); white-space: nowrap; }
.sev--crit { background: var(--ink); color: var(--bone); }
.sev--high { background: var(--white); color: var(--ink); }
.sev--med { border-color: var(--soft); color: var(--mute); }
.finding dl { margin: 16px 0 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
.finding dt, .fix dt, .accept .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.finding dd { margin: 0; }

/* ── Fix plan ── */
.fix { margin-top: 14px; padding: 24px 26px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; }
.fix:first-of-type { margin-top: 24px; }
.fix .f-head .tagline { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.fix p { margin-top: 12px; font-size: 15px; color: var(--mute); }
.accept { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; }
.accept .lab { display: block; margin-bottom: 4px; }

.built { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 40em; font-size: 15px; }
.built li { padding-left: 18px; position: relative; }
.built li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; border-top: 1px solid var(--ink); }

.report-foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--mute); }
.report-foot a { text-decoration: underline; text-underline-offset: 3px; }
.report-foot .mono { font-size: 12px; }

.closing .actions { margin-top: 0; }


@media (max-width: 760px) {
  .report { padding-top: 32px; }
  .rcover { grid-template-columns: minmax(0, 1fr); }
  .rcover-panel { padding: 32px 24px; }
  .rcover-text { padding: 28px 22px; }
  .rcover-meta { grid-template-columns: minmax(0, 1fr); }
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .finding, .fix { padding: 20px; }
  .finding dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .finding dd { margin-bottom: 10px; }
  .runmark { flex-wrap: wrap; }
  .runmark .doc { margin-left: 0; text-align: left; width: 100%; }
  .fix .f-head .tagline { margin-left: 0; white-space: normal; }
}

/* ── Print: US Letter, document only ── */
@page { size: letter; margin: 0.75in; }
@media print {
  .report-wrap { padding: 0; border-radius: 0; }
  .report-foot { margin-top: 24px; }
  html, body { background: #fff; color: #111; font-size: 10.5pt; line-height: 1.5; }
  .skip, .site-header, .site-footer, .closing { display: none !important; }
  .report { padding: 0; }
  .report-wrap { max-width: none; padding: 0; }

  .rcover, .sample-note, .runmark, .finding, .fix, .sysmap, .verdict, .accept, .ranks li, .rsec .sub { break-inside: avoid; page-break-inside: avoid; }
  .rsec--newpage { break-before: page; page-break-before: always; }
  .sysmap .hint { display: none; }
  h2, h3, .sub { break-after: avoid; page-break-after: avoid; }
  p { orphans: 3; widows: 3; }

  /* Ink panel becomes a bordered white panel with the ink mark */
  .rcover { border: 1px solid #111; border-radius: 0; }
  .rcover-panel { background: #fff; color: #111; border-right: 1px solid #111; }
  .rcover-panel .on-ink { display: none !important; }
  .rcover-panel .on-paper { display: block !important; }
  .rcover-panel .digits { color: #111; }

  /* Digits static: no scramble overlay, real text always visible */
  .scr-fx { display: none !important; }
  .scr[data-busy] .scr-real, .scr-real { color: inherit !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  .finding, .fix, .sample-note, .ranks li, .sysmap { border-color: #999; border-radius: 0; }
  .sev--crit { background: #fff; color: #111; border-width: 2px; }
  .sysmap .scroll { overflow: visible; }
  .sysmap svg { min-width: 0; }
  .rcover-text h1 { font-size: 28pt; }
  .report-foot a { text-decoration: underline; }
  a { color: #111; }
}

/* Redactions: placeholder text keeps the width; nothing real is in the page. */
.redact { display: inline-block; vertical-align: -0.12em; height: 1.05em; line-height: 1; padding: 0 2px; border-radius: 2px; background: var(--ink); color: transparent; user-select: none; font-family: var(--mono); font-size: 0.95em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.redact-bar { fill: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sample-note--redact { display: flex; align-items: center; gap: 12px; }
.sample-note--redact .redact { flex-shrink: 0; }
