/* Print / Save-as-PDF styling for the Candidate Decision Record.
   Linked with media="print", so everything here applies only to the printed page.
   The candidate uses the browser's own print-to-PDF: no library, nothing to install,
   and nothing for corporate laptop policy to block. */

@page {
  size: A4;
  margin: 18mm 16mm 16mm;
}

body {
  background: #fff;
  font-size: 10.5pt;
  line-height: 1.45;
}

/* Anything interactive, and the exercise shell itself, never prints. */
.screen-only,
.topbar,
.rail,
.gate,
button,
.actions,
.record__actions,
noscript { display: none !important; }

#app, #gate { display: none !important; }
#record-view { display: block !important; }

.record {
  max-width: none;
  margin: 0;
  padding: 0;
}

.record__masthead {
  border-bottom: 1.5pt solid #26404e;
  padding-bottom: 8pt;
  margin-bottom: 14pt;
}

.record__kicker { font-size: 7.5pt; letter-spacing: 0.12em; }
.record__title { font-size: 18pt; }

.record__meta { gap: 0 20pt; margin-top: 10pt; font-size: 9pt; }
.record__meta dt { font-size: 7pt; }

/* Keep a round, and a single question with its answer, off a page boundary. */
.record__section { break-inside: avoid; page-break-inside: avoid; margin-bottom: 16pt; }
.record__step { break-inside: avoid; page-break-inside: avoid; margin-bottom: 12pt; }
.record__entry { break-inside: avoid; page-break-inside: avoid; }

.record__round {
  font-size: 9pt;
  border-bottom: 0.5pt solid #cfcec6;
  padding-bottom: 3pt;
  margin-bottom: 9pt;
}

.record__stepheading { font-size: 11pt; margin-bottom: 3pt; }
.record__stamp { font-size: 7.5pt; }

.record__entrylabel { font-size: 8.5pt; color: #4a5560; }
.record__entryvalue { font-size: 10pt; }

/* The allocation bars carry meaning at a glance, so force them to print rather than
   relying on the browser's default of dropping backgrounds. */
.record__allocbar,
.record__allocbar span {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.record__allocrow { font-size: 9.5pt; }

a[href]::after { content: ""; }
