/* CPI lab round 4, part 2: the PDF report on A4 (794 x 1123 CSS px). Print-safe: no shadows in print, flat colour. */
body.pdfp { background: var(--light-l); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#sheets { padding: 24px 16px 56px; }
.sbox { width: calc(794px * var(--s, 1)); height: calc(1123px * var(--s, 1)); margin: 0 auto 32px; }
.a4 { position: relative; width: 794px; height: 1123px; padding: 52px 64px 0; overflow: hidden; background: var(--white);
  transform: scale(var(--s, 1)); transform-origin: 0 0; box-shadow: 0 0 0 1px var(--line); font-size: 12px; line-height: 1.5; color: var(--ink); }
.a4 h1, .a4 h2, .a4 h3 { letter-spacing: -0.005em; }
.a4 p { text-wrap: pretty; }
.a4 ul, .a4 ol { list-style: none; }

/* header and footer, shared */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.pl { display: block; height: 32px; width: auto; }
.ph-r { display: flex; align-items: center; gap: 16px; }
.pr-name { font-size: 12px; color: var(--ink-2); }
.pr-org img { display: block; height: 32px; width: auto; }
.pr-org.on-mid { padding: 4px 10px; border-radius: 8px; background: var(--white); }
.pr-org.on-mid img { height: 26px; }
.pf { position: absolute; left: 64px; right: 64px; bottom: 30px; display: flex; justify-content: space-between; gap: 24px; padding-top: 10px; box-shadow: 0 -1px 0 var(--line); font-size: 10px; color: var(--ink-2); }

/* band scale: ink tints only; the current band is midnight and bold; coral mark at the score */
.bs-row { position: relative; display: flex; gap: 2px; }
.bs-s { display: flex; flex-direction: column; min-width: 0; }
.bs-s::before { content: ''; display: block; height: 8px; border-radius: 2px; background: var(--line); }
.bs-s.on::before { background: var(--ink); }
.bs-s span { margin-top: 6px; font-size: 11px; color: var(--ink-2); }
.bs-s small { font-size: 10px; color: var(--ink-2); }
.bs-s.on span { color: var(--ink); font-weight: 700; }
.bs-mark { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--coral); box-shadow: 0 0 0 2px var(--white); }

/* rings in a row: the still of "four rings fold into one" */
.fr { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 16px; }
.fr-c { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.fr-c figcaption { text-align: center; line-height: 1.3; }
.fr-c figcaption b { display: block; font-size: 14px; }
.fr-c figcaption span { display: block; font-size: 11px; color: var(--ink-2); }
.fr-x { font-size: 18px; color: var(--ink-2); line-height: 64px; }
.fr-cpi figcaption b { font-size: 15px; }

/* the 1 to 10 strip with the ruler's coral mark */
.sc { position: relative; display: block; width: 72px; height: 12px; }
.sc-t { position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; background: var(--ink-4); }
.sc-best { position: absolute; left: 50%; top: 2px; width: 2px; height: 8px; margin-left: -1px; background: var(--ink); }
.sc-m { position: absolute; top: 0; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--coral); }

/* ======================= A: Editorial ======================= */
.a-top { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 40px; }
.a-ring { position: relative; width: 232px; height: 232px; }
.a-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.a-num .fig { font-size: 92px; color: var(--ink); }
.a-pc { font-family: var(--serif); font-weight: 700; font-size: 34px; align-self: flex-start; margin-top: 66px; margin-left: 2px; }
.a-intro h1 { font-size: 30px; line-height: 1.12; }
.a-who { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.a-intro h2 { margin-top: 22px; font-size: 20px; line-height: 1.2; }
.a-intro p:last-child { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.a-bs { margin-top: 30px; }
.a-h { margin-top: 34px; font-size: 20px; line-height: 1.2; }
.a-lead { margin-top: 4px; color: var(--ink-2); }
.a-drs { margin-top: 10px; }
.a-dr { padding: 12px 0; box-shadow: 0 -1px 0 var(--line); }
.a-dr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.a-dr h3 { font-size: 16px; }
.a-dr-h b { font-size: 13px; }
.a-said { color: var(--ink-2); }
.a-dr p:last-child { margin-top: 3px; }
.a-h1 { margin-top: 32px; font-size: 30px; line-height: 1.12; }
.a-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 18px; }
.a-l + .a-l { margin-top: 18px; }
.a-l h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; }
.a-l h3 i, .b-g i, .c-g i, .c-lt i, .b-leg i { display: inline-block; flex: none; width: 4px; height: 14px; border-radius: 2px; }
.a-l h3 span { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-2); margin-left: auto; }
.a-l li { display: grid; grid-template-columns: minmax(0, 1fr) 72px; grid-template-areas: "q s" "v s"; column-gap: 16px; align-items: center; padding: 4px 0; box-shadow: 0 -1px 0 var(--line); }
.a-q { grid-area: q; font-size: 12px; line-height: 1.35; }
.a-v { grid-area: v; font-size: 11px; line-height: 1.35; color: var(--ink-2); }
.a-l .sc { grid-area: s; }
.a-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 26px; padding-top: 18px; box-shadow: 0 -2px 0 var(--ink); }
.a-notes h2 { font-size: 15px; line-height: 1.25; }
.a-notes p { margin-top: 5px; font-size: 11px; color: var(--ink-2); }

/* ======================= B: Midnight cover band ======================= */
.b-band, .b-strip { margin: -52px -64px 0; padding: 52px 64px 36px; background: var(--ink); color: var(--white); }
.b-hero { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 32px; align-items: center; margin-top: 28px; }
.b-band h1 { color: var(--white); font-size: 28px; line-height: 1.12; }
.b-who { margin-top: 6px; font-size: 12px; color: var(--light); }
.b-score { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.b-score .fig { font-size: 76px; color: var(--coral); }
.b-score span:last-child { font-size: 16px; font-weight: 700; }
.b-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 20px; max-width: 340px; }
.b-leg li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.b-leg span { color: var(--light); }
.b-leg b { margin-left: auto; }
.b-conc { display: block; }
.b-cn { font-family: var(--serif); font-weight: 700; font-size: 46px; fill: var(--white); }
.b-cp { font-size: 20px; }
#p1 .b-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding-top: 26px; }
.b-body h2 { font-size: 16px; line-height: 1.25; }
.b-body p { margin-top: 5px; color: var(--ink-2); }
.b-bs { margin-top: 14px; }
.b-eqline { color: var(--ink) !important; font-weight: 700; font-size: 14px; }
.b-eqline span { font-weight: 500; color: var(--ink-2); }
.b-h { grid-column: 1 / -1; margin-top: 30px; font-size: 20px !important; }
.b-drs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.b-drs li { padding-top: 12px; box-shadow: 0 -2px 0 var(--ink); }
.b-drs h3 { font-size: 16px; line-height: 1.2; }
.b-said { font-size: 11.5px; }
.b-said b { color: var(--ink); }
.b-drs h4 { margin-top: 10px; font-size: 12px; font-weight: 700; }
.b-drs li p:last-child { font-size: 11.5px; margin-top: 2px; }
.b-strip { padding-bottom: 20px; }
.b-strip p { margin-top: 14px; font-size: 12px; color: var(--light); }
.b-strip p b { color: var(--white); }
.b-h1 { margin-top: 20px; font-size: 24px; line-height: 1.15; }
.b-t { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 11px; }
.b-t thead th { padding: 0 8px 5px 0; text-align: left; font-size: 10.5px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--ink); }
.b-t thead th:last-child, .b-p { text-align: right; padding-right: 0 !important; }
.b-t td { padding: 3px 8px 3px 0; box-shadow: inset 0 -1px 0 var(--line); vertical-align: middle; line-height: 1.3; }
.b-q { width: 38%; }
.b-a { color: var(--ink-2); }
.b-s { width: 88px; }
.b-p { width: 70px; }
.b-g th { padding: 10px 0 3px; text-align: left; font-family: var(--serif); font-weight: 700; font-size: 13px; }
.b-g th i { margin-right: 8px; vertical-align: -2px; }
.b-g th span { margin-left: 8px; font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink-2); }
.b-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.b-notes h2 { font-size: 14px; }
.b-notes p { font-size: 11px; }

/* ======================= C: Dense brief ======================= */
.c-h1 { margin-top: 28px; font-size: 26px; line-height: 1.15; }
.c-who { margin-top: 4px; font-size: 12px; color: var(--ink-2); max-width: 46em; }
.c-grid { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 36px; margin-top: 22px; }
.c-side { padding-right: 28px; box-shadow: 1px 0 0 var(--line); }
.c-ring svg { display: block; margin: 0 auto; }
.c-rn { font-family: var(--serif); font-weight: 700; font-size: 50px; fill: var(--ink); }
.c-rp { font-size: 20px; }
.c-band { margin-top: 14px; font-size: 13px; }
.c-bs { margin-top: 12px; }
.c-bs .bs-s span { font-size: 9.5px; }
.c-bs .bs-s small { display: none; }
.c-side h2 { margin-top: 22px; font-size: 14px; line-height: 1.25; }
.c-lt { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 11px; }
.c-lt th { text-align: left; font-weight: 500; font-size: 10px; color: var(--ink-2); padding-bottom: 4px; }
.c-lt th:not(:first-child), .c-lt td:not(:first-child) { text-align: right; }
.c-lt td { padding: 4px 0; box-shadow: inset 0 1px 0 var(--line); }
.c-lt i { margin-right: 6px; vertical-align: -2px; }
.c-small { margin-top: 8px; font-size: 10.5px; color: var(--ink-2); }
.c-main h2 { font-size: 16px; line-height: 1.25; }
.c-main > p { margin-top: 5px; color: var(--ink-2); font-size: 12.5px; }
.c-h { margin-top: 26px; font-size: 20px !important; }
.c-drs { margin-top: 8px; }
.c-drs li { padding: 12px 0; box-shadow: 0 -1px 0 var(--line); }
.c-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.c-drs h3 { font-size: 16px; }
.c-gain { font-size: 12px; font-weight: 700; white-space: nowrap; }
.c-meta { margin-top: 2px; font-size: 11px; color: var(--ink-2); }
.c-drs p { margin-top: 5px; }
.c-ev { font-size: 10.5px; color: var(--ink-2); }
.c-side2 p { margin-top: 5px; font-size: 11px; color: var(--ink-2); }
.c-side2 h2:first-child { margin-top: 0; }
.c-t { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.c-t thead th { padding: 0 6px 5px 0; text-align: left; font-size: 10px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--ink); }
.c-t th:last-child, .c-t td:last-child { text-align: right; padding-right: 0; }
.c-t td { padding: 3px 6px 3px 0; box-shadow: inset 0 -1px 0 var(--line); line-height: 1.3; vertical-align: middle; }
.c-t td:nth-child(2) { color: var(--ink-2); }
.c-t td:nth-child(3) { width: 80px; }
.c-t tr.top td { font-weight: 700; color: var(--ink); }
.c-g th { padding: 9px 0 3px; text-align: left; font-family: var(--serif); font-weight: 700; font-size: 12.5px; }
.c-g th i { margin-right: 8px; vertical-align: -2px; }

/* ---------- print: each sheet is one A4 page ---------- */
@media print {
  @page { size: A4; margin: 0; }
  html, body.pdfp { background: var(--white); }
  .lab { display: none !important; }
  #sheets { padding: 0; }
  .sbox { width: auto; height: auto; margin: 0; }
  .a4 { width: 210mm; height: 297mm; transform: none; box-shadow: none; break-after: page; page-break-after: always; }
  .sbox:last-child .a4 { break-after: auto; page-break-after: auto; }
  .bs-mark { box-shadow: none; outline: 2px solid var(--white); }
}

/* fixes after the first look */
.b-band .pr-name, .b-strip .pr-name { color: var(--light); }
.b-drs li .b-ev { margin-top: 6px !important; font-size: 10.5px; color: var(--ink-2); }
.b-notes { display: block; max-width: 520px; }
.c-g th { text-align: left !important; }
.c-t td:nth-child(1), .c-t td:nth-child(2) { white-space: nowrap; }
.c-t .sc { width: 60px; }
.c-t td:nth-child(3) { width: 68px; }
.c-h2 { margin-top: 20px; font-size: 16px !important; }
.c-nx { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; }
.c-nx td { padding: 6px 12px 6px 0; box-shadow: inset 0 1px 0 var(--line); }
.c-nx td:nth-child(2) { color: var(--ink-2); }
.c-nx td:last-child { text-align: right; padding-right: 0; font-weight: 700; white-space: nowrap; }
.a-l li { padding: 3px 0; }
.a-h1 { margin-top: 26px; }
.a-cols { margin-top: 14px; }
.a-notes { margin-top: 20px; padding-top: 14px; }
/* round 6: the cover band carries the Hub's contour lines and the dial's one-neutral wash */
.b-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #253746 0%, #253746 55%, #1A2832 100%); }
.b-band > *:not(.ctr) { position: relative; z-index: 1; }
.b-band .ctr svg { top: 30%; height: 70%; }
.b-score .fig { color: var(--white); }
