/* Printable student sheets (/learn/printables/<id>/): black on white, letter or A4, big type and plenty of room to
   write. tools/learn/build-sheets.mjs writes the pages and prints each to PDF. On screen the sheet sits on a grey desk
   with a bar to print or download; the bar doesn't print. */
@page { size: letter; margin: 13mm 14mm 14mm; }
* { box-sizing: border-box; }
html { background: #d9dee0; }
body { margin: 0; font: 400 11.5pt/1.35 "Public Sans", Arial, Helvetica, sans-serif; color: #111; }
.bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 10px 16px; background: #0b1215; color: #e4eceb; font-size: 14px; }
.bar a, .bar button { font: 600 14px "Public Sans", Arial, sans-serif; padding: 8px 14px; border-radius: 20px; border: 1px solid #86d9dd; background: transparent; color: #86d9dd; text-decoration: none; cursor: pointer; }
.bar .primary { background: #86d9dd; color: #0b1215; }
.sheet { width: min(816px, 100%); margin: 18px auto 40px; padding: 44px 52px; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,0.18); }
.sheet + .sheet { margin-top: 0; }
@media (max-width: 700px) { .sheet { padding: 22px 18px; margin: 0; box-shadow: none; } }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #111; padding-bottom: 8px; }
.kicker { margin: 0; font: 600 9.5pt "IBM Plex Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #0e6f76; }
h1 { margin: 2px 0 0; font: 800 26pt/1 "Big Shoulders Display", "Arial Narrow", Arial, sans-serif; letter-spacing: 0.01em; }
.who { display: grid; grid-template-columns: auto 190px; gap: 6px 8px; font-size: 11pt; white-space: nowrap; }
.who span { border-bottom: 1px solid #111; }
.intro { margin: 10px 0 4px; font-size: 12pt; }
.meta { margin: 0 0 12px; font-size: 10pt; color: #444; }
.meta a { color: #0e6f76; }
h2 { margin: 12px 0 2px; font: 800 15pt/1.1 "Big Shoulders Display", "Arial Narrow", Arial, sans-serif; letter-spacing: 0.02em; break-after: avoid; }
h2 .n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: #111; color: #fff; font: 700 11pt "Public Sans", Arial, sans-serif; vertical-align: 2px; }
.q { margin: 7px 0 0; break-inside: avoid; }
.q > p { margin: 0 0 4px; font-weight: 600; }
.lines { height: calc(var(--n, 2) * 27px); background: repeating-linear-gradient(transparent 0 26px, #9aa3a5 26px 27px); }
.box { height: var(--h, 140px); border: 1.5px solid #111; border-radius: 6px; position: relative; }
.box small { position: absolute; left: 8px; bottom: 5px; color: #666; font-size: 9pt; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 0; padding: 0; list-style: none; }
.opts li::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 1.5px solid #111; border-radius: 50%; vertical-align: -2px; }
.check { margin: 4px 0 0; padding: 0; list-style: none; }
.check li { margin: 3px 0; }
.check li::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 1.5px solid #111; vertical-align: -2px; }
table { width: 100%; border-collapse: collapse; margin: 4px 0 0; font-size: 11pt; break-inside: avoid; }
th, td { border: 1.5px solid #111; padding: 3px 6px; text-align: left; vertical-align: top; }
th { background: #eef3f3; font-weight: 600; font-size: 10.5pt; }
td { height: 27px; }
td.lab { font-weight: 600; background: #fafbfb; width: 30%; }
.fact { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid #0e6f76; background: #eef6f6; font-size: 11.5pt; break-inside: avoid; }
.fact b { color: #0e6f76; }
.grid { --c: 10; --r: 8; position: relative; height: calc(var(--r) * 26px); margin: 4px 0 0 34px; border-left: 2px solid #111; border-bottom: 2px solid #111;
  background-image: linear-gradient(#c9d0d1 1px, transparent 1px), linear-gradient(90deg, #c9d0d1 1px, transparent 1px); background-size: calc(100% / var(--c)) 26px; break-inside: avoid; }
.grid .y { position: absolute; left: -30px; top: 0; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 9.5pt; white-space: nowrap; color: #333; }
.grid-x { margin: 3px 0 0 34px; font-size: 9.5pt; color: #333; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.ext { margin-top: 14px; padding: 8px 12px; border: 1.5px dashed #111; border-radius: 8px; break-inside: avoid; }
.ext > p:first-child { margin: 0 0 4px; font: 600 9.5pt "IBM Plex Mono", Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.foot { margin-top: 16px; padding-top: 6px; border-top: 1px solid #999; font-size: 8.5pt; color: #555; display: flex; justify-content: space-between; gap: 12px; }
.pb { break-before: page; }
@media screen { .pb { break-before: auto; } }
@media print {
  html { background: #fff; }
  .bar { display: none; }
  .sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  a { color: #111; text-decoration: none; }
}
@media (max-width: 600px) { .top { flex-direction: column; align-items: stretch; } .who { grid-template-columns: auto 1fr; } }
