/* Shared print stylesheet for the one-page educator handouts.
   Each handout must fit ONE page on both US Letter (216 x 279 mm) and A4
   (210 x 297 mm). With 12 mm margins that leaves a 186 x 255 mm box (A4's
   width, Letter's height). scripts/render-handouts.js renders both sizes
   and fails if either spills onto a second page. */

* { box-sizing: border-box; margin: 0; padding: 0; }

@page { margin: 12mm; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #f4f1ea;
  line-height: 1.35;
  font-size: 10.5pt;
  padding: 24px;
  min-width: calc(186mm + 48px);
}

.sheet {
  background: #fff;
  border: 1px solid #ccc;
  /* On screen the sheet keeps its paper width and never squeezes: the
     handouts set a fixed 800px viewport, so a phone shows the whole sheet
     scaled down, and a narrow desktop window scrolls sideways. */
  width: 186mm;
  margin: 0 auto;
  padding: 10mm;
}

header {
  border-bottom: 3px double #1a1a1a;
  padding-bottom: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
h1 { font-size: 19pt; line-height: 1.1; }
header .meta { font-size: 8.5pt; text-align: right; font-style: italic; white-space: nowrap; }

.fields { display: flex; gap: 16px; font-size: 9.5pt; margin: 6px 0 8px; }
.fields span { flex: 1; border-bottom: 1px solid #1a1a1a; padding-bottom: 2px; }

h2 {
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  margin: 10px 0 6px;
}

p, li { font-size: 10pt; }
p + p { margin-top: 4px; }
ol, ul { padding-left: 18px; }
li { margin-bottom: 3px; }

.key { font-size: 9pt; margin-bottom: 5px; }
.key b { letter-spacing: 0.04em; }

table { width: 100%; border-collapse: collapse; font-size: 9pt; table-layout: fixed; }
th, td { border: 1px solid #1a1a1a; padding: 4px 6px; vertical-align: top; text-align: left; }
th { background: #eee; font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.04em; }
td.blank { height: 20mm; }
td.blank-short { height: 9mm; }
td.choice { font-size: 8.5pt; line-height: 1.6; }
td.center, th.center { text-align: center; }

.output-box {
  border: 1.5px dashed #555;
  min-height: 13mm;
  padding: 4px 6px;
  font-style: italic;
  font-size: 9.5pt;
}
.output-box .label { font-style: normal; font-weight: bold; font-size: 8.5pt; }

.lines { border-bottom: 1px solid #999; height: 7mm; }

.prompts li { margin-bottom: 9mm; }
.prompts.tight li { margin-bottom: 9mm; }

footer {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #1a1a1a;
  font-size: 8pt;
  display: flex;
  justify-content: space-between;
  color: #333;
}
footer a { color: #333; }

.print-btn {
  display: block;
  margin: 16px auto 0;
  padding: 10px 26px;
  font-size: 15px;
  font-family: inherit;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.screen-note { text-align: center; font-size: 13px; margin-top: 8px; color: #555; }

@media print {
  body { background: #fff; padding: 0; min-width: 0; }
  .sheet { border: none; padding: 0; width: auto; }
  .print-btn, .screen-note { display: none; }
}
