/* Printable worksheets: A4, black and white friendly. */
@page { size: A4; margin: 14mm; }
:root { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #000; }
body { margin: 0; background: #eee; }
.sheet { background: #fff; width: 210mm; min-height: 297mm; margin: 12px auto; padding: 14mm; box-shadow: 0 2px 10px rgba(0,0,0,.15); box-sizing: border-box; }
.toolbar { max-width: 210mm; margin: 12px auto 0; display: flex; gap: 12px; align-items: center; font-size: 1rem; flex-wrap: wrap; }
.toolbar a { color: #1f47c8; }
.toolbar button { font: inherit; font-weight: 700; padding: .5em 1em; border-radius: 10px; border: 2px solid #1f47c8; background: #1f47c8; color: #fff; cursor: pointer; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; gap: 12px; }
.sheet-head h1, .sheet-head h2 { font-size: 20pt; margin: 0; }
.sheet-head .sub { font-size: 10pt; margin: 2px 0 0; }
.sheet-tag { font-size: 9pt; text-align: right; white-space: nowrap; }
.namebox { display: flex; gap: 24px; margin: 6px 0 12px; font-size: 12pt; }
.namebox span { flex: 1; border-bottom: 1px solid #000; padding-bottom: 2px; }
.instructions { font-weight: 700; font-size: 12pt; margin: 0 0 10px; }
.qa-list { columns: 2; column-gap: 12mm; padding-left: 0; margin: 0; list-style: none; counter-reset: q; font-size: 15pt; }
.qa-list li { break-inside: avoid; padding: 7px 0; display: flex; gap: 8px; align-items: baseline; }
.qa-list li::before { counter-increment: q; content: counter(q) "."; font-size: 10pt; font-weight: 700; min-width: 1.8em; }
.qa-list .ans { display: inline-block; min-width: 3.5em; border-bottom: 1px solid #000; height: 1.1em; }
.qa-list.answers .ans { border: 0; font-weight: 800; min-width: 0; height: auto; }
.choice-row { font-size: 11pt; display: block; margin-top: 2px; }
.match-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30mm; font-size: 16pt; }
.match-sheet div { border: 1.5px solid #000; border-radius: 8px; padding: 8px; text-align: center; position: relative; }
.match-sheet .l::after, .match-sheet .r::before { content: "•"; position: absolute; top: 50%; transform: translateY(-55%); font-size: 18pt; }
.match-sheet .l::after { right: -14px; } .match-sheet .r::before { left: -14px; }
.match-answers { columns: 2; font-size: 14pt; }
.order-sheet li { margin: 0 0 16px; font-size: 15pt; }
.order-sheet .boxes { display: flex; gap: 8px; margin-top: 6px; }
.order-sheet .boxes span { flex: 1; border: 1.5px solid #000; border-radius: 6px; height: 1.6em; display: grid; place-items: center; font-weight: 800; }
.line-sheet li { margin: 0 0 6px; font-size: 13pt; break-inside: avoid; }
.line-sheet svg { width: 100%; height: auto; display: block; }
.line-sheet .nl-axis, .line-sheet .nl-tick { stroke: #000; }
.line-sheet .nl-axis { stroke-width: 3; }
.line-sheet .nl-tick { stroke-width: 1.5; }
.line-sheet .nl-major { stroke-width: 3; }
.line-sheet text { font: 700 24px system-ui, sans-serif; }
.line-sheet .nl-ans { fill: #000; }
.page-break { break-before: page; }
.foot { font-size: 8.5pt; color: #333; margin-top: 12px; border-top: 1px solid #999; padding-top: 4px; }
.frac { display: inline-flex; align-items: center; vertical-align: middle; gap: .12em; }
.frac-v { display: inline-flex; flex-direction: column; align-items: center; font-size: .78em; line-height: 1.05; }
.frac-n { border-bottom: .09em solid currentColor; padding: 0 .12em; }
.frac-d { padding: 0 .12em; }
.missing { display: inline-block; min-width: 1.5em; border: 1.5px solid #000; border-radius: 4px; text-align: center; color: transparent; }
.answers .missing { color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; }
}
/* word cards to number in order (timelines, food chains, algorithm steps) */
.order-words .order-cards { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.order-words .order-cards li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14pt; }
.order-words .num-box { flex: none; width: 1.6em; height: 1.6em; border: 1.5px solid #000; border-radius: 6px; display: grid; place-items: center; font-weight: 800; }
.ans-h { font-size: 13pt; margin: 10px 0 4px; } .g-answers { margin-bottom: 8px; }
