/* Print stylesheet for the two-page handouts. Letter, 0.45in x 0.5in margins. */
@page { size: letter; margin: 0.45in 0.5in; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { font-family: Inter, "Liberation Sans", Arial, Helvetica, sans-serif; color: #0f172a; font-size: 9.5pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.page { width: 7.5in; height: 10.1in; margin: 0 auto; position: relative; overflow: hidden; padding-bottom: 0.3in; break-after: page; page-break-after: always; }
.page:last-child { break-after: auto; page-break-after: auto; }
@media screen { body { background: #e5e7eb; padding: 24px 0; } .page { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); padding: 0.45in 0.5in; height: 11in; width: 8.5in; margin-bottom: 24px; } }

.kicker { font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; color: #475569; font-weight: 700; margin: 0 0 4pt; }
h1 { font-size: 22pt; line-height: 1.08; margin: 0 0 6pt; letter-spacing: -0.01em; }
.sub { font-size: 10.5pt; color: #334155; margin: 0 0 4pt; }
.by { font-size: 8pt; color: #64748b; margin: 0 0 8pt; }
h2 { font-size: 11pt; margin: 11pt 0 5pt; }
h2 .meta { font-weight: 500; color: #64748b; font-size: 8pt; margin-left: 6pt; }
p { margin: 0 0 5pt; }
.note { font-size: 7.5pt; color: #475569; }
strong { font-weight: 700; }

/* KPI row */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8pt; margin: 8pt 0; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { border: 1px solid #e2e8f0; border-radius: 6pt; padding: 7pt 10pt; background: #f8fafc; }
.tile .label { font-size: 7.5pt; color: #475569; margin-bottom: 2pt; }
.tile .value { font-size: 20pt; font-weight: 700; color: #2563eb; line-height: 1.05; }
.tile .value.sm { font-size: 15pt; }
.tile .sub { font-size: 7.5pt; color: #475569; margin: 2pt 0 0; }

/* Six-hop strip */
.hops { display: flex; margin: 6pt 0 8pt; }
.hop { flex: 1; position: relative; padding: 5pt 11pt 5pt 8pt; border: 1px solid #cbd5e1; border-right: none; background: #fff; }
.hop:first-child { border-radius: 6pt 0 0 6pt; }
.hop:last-child { border-right: 1px solid #cbd5e1; border-radius: 0 6pt 6pt 0; }
.hop .n { display: inline-block; width: 13pt; height: 13pt; border-radius: 50%; background: #2563eb; color: #fff; font-size: 7.5pt; font-weight: 700; text-align: center; line-height: 13pt; margin-bottom: 2pt; }
.hop .t { font-weight: 700; font-size: 7.8pt; display: block; line-height: 1.2; }
.hop .l { font-size: 6.8pt; color: #475569; display: block; line-height: 1.3; margin-top: 2pt; }
.hop::after { content: ""; position: absolute; right: -5.5pt; top: 50%; width: 10pt; height: 10pt; background: #fff; border-top: 1px solid #cbd5e1; border-right: 1px solid #cbd5e1; transform: translateY(-50%) rotate(45deg); z-index: 2; }
.hop:last-child::after { display: none; }

/* Scorecard cards */
.card { border: 1px solid #e2e8f0; border-radius: 6pt; overflow: hidden; margin: 0 0 6pt; break-inside: avoid; }
.card .head { background: #eff6ff; padding: 4pt 8pt; font-weight: 700; font-size: 9pt; color: #1e3a8a; display: flex; justify-content: space-between; align-items: baseline; }
.card .head span { font-weight: 500; color: #475569; font-size: 7.5pt; }
table.sc { width: 100%; border-collapse: collapse; }
table.sc th { text-align: left; font-size: 6.8pt; color: #64748b; font-weight: 700; padding: 3pt 8pt; border-bottom: 1px solid #e2e8f0; text-transform: uppercase; letter-spacing: .05em; }
table.sc td { padding: 3.2pt 8pt; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 8.3pt; }
table.sc tr:last-child td { border-bottom: none; }
table.sc td.v { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.sc td.fix { color: #475569; font-size: 7.8pt; }
.chip { display: inline-block; font-size: 6.8pt; font-weight: 700; padding: 1pt 5pt; border-radius: 8pt; margin-left: 4pt; vertical-align: middle; white-space: nowrap; }
.chip.crit { background: #fbe1e1; color: #8f1d1d; }
.chip.ser  { background: #fde4d9; color: #8a3a12; }
.chip.warn { background: #fdefc9; color: #6b4a00; }
.chip.good { background: #dcf5dc; color: #005200; }
.chip.na   { background: #e2e8f0; color: #334155; }

/* Plain tables */
table.t { width: 100%; border-collapse: collapse; font-size: 8.2pt; }
table.t th { text-align: left; background: #f1f5f9; padding: 3pt 6pt; font-size: 7.3pt; border-bottom: 1px solid #e2e8f0; }
table.t td { padding: 2.8pt 6pt; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tr.total td { font-weight: 700; background: #f8fafc; border-top: 1px solid #cbd5e1; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt; }
ol.g { margin: 0; padding-left: 12pt; font-size: 8.2pt; }
ol.g li { margin-bottom: 2.4pt; }
ul.b { margin: 0; padding-left: 12pt; font-size: 8.5pt; }
ul.b li { margin-bottom: 2.4pt; }
.box { border: 1.5px solid #2563eb; border-radius: 6pt; padding: 7pt 10pt; background: #fff; break-inside: avoid; }
.box h2 { margin: 0 0 4pt; }
ul.chk { list-style: none; margin: 0; padding: 0; }
ul.chk li { padding-left: 14pt; position: relative; margin-bottom: 3pt; font-size: 8.5pt; }
ul.chk li::before { content: ""; position: absolute; left: 0; top: 2pt; width: 8pt; height: 8pt; border: 1.2px solid #2563eb; border-radius: 2pt; }
.ledgers { display: grid; grid-template-columns: 1fr 1fr; gap: 8pt; margin: 6pt 0; }
.ledger { border: 1px solid #e2e8f0; border-radius: 6pt; padding: 7pt 9pt; background: #f8fafc; }
.ledger h3 { margin: 0 0 3pt; font-size: 9.5pt; color: #2563eb; }
.ledger p { font-size: 8.2pt; margin-bottom: 3pt; }
.foot { position: absolute; bottom: 0; left: 0; right: 0; font-size: 7pt; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 3pt; display: flex; justify-content: space-between; }
@media screen { .foot { left: 0.5in; right: 0.5in; bottom: 0.45in; } }
