/* Printable worksheets: the sheet, and the page around it. */

/* ---- the sheet (US Letter, 0.5in margins) ---- */
.sheet { width: 7.5in; height: 9.95in; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--ink); font-family: var(--font); text-align: left; break-after: page; }
.sheet:last-child { break-after: auto; }
.sheet a { color: var(--brand); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1.5pt solid var(--ink); padding-bottom: 5pt; }
.sheet-title { font-size: 15pt; font-weight: 700; line-height: 1.15; }
.sheet-title small { display: block; font-size: 9.5pt; font-weight: 500; color: var(--muted); }
.sheet-name { font-size: 9.5pt; white-space: nowrap; }
.sheet-name span { display: inline-block; border-bottom: 0.75pt solid var(--ink); width: 1.7in; margin: 0 10pt 0 4pt; }
.sheet-name span.short { width: 0.9in; margin-right: 0; }
.sheet-instr { font-size: 10.5pt; line-height: 1.3; margin: 7pt 0 5pt; }
.sheet-grid { flex: 1 1 auto; min-height: 0; display: grid; gap: 0; border-top: 0.5pt solid var(--brand-line); border-left: 0.5pt solid var(--brand-line); }
.sheet-cell { position: relative; border-right: 0.5pt solid var(--brand-line); border-bottom: 0.5pt solid var(--brand-line); min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 3pt 4pt 4pt; }
.sheet-num { position: absolute; top: 3pt; left: 5pt; font-size: 10pt; font-weight: 700; line-height: 1.2; }
.sheet-draw { flex: 1 1 auto; min-height: 0; display: flex; }
.sheet-draw svg { width: 100%; height: 100%; display: block; }
.sheet-ans { align-self: flex-end; width: 0.5in; height: 19pt; border-bottom: 0.75pt solid var(--ink); text-align: center; font-size: 16pt; line-height: 19pt; font-weight: 800; color: var(--brand); }
.sheet-code { position: absolute; left: 4pt; bottom: 4pt; display: flex; align-items: flex-end; gap: 3.5pt; font-size: 6.5pt; line-height: 1.25; font-weight: 600; text-decoration: none; }
.sheet-code svg { width: 0.5in; height: 0.5in; display: block; flex: 0 0 auto; }
.sheet-code span { display: block; }
.sheet-code u { display: block; font-weight: 800; }
.sheet-foot { display: flex; align-items: center; gap: 9pt; margin-top: 6pt; font-size: 8.5pt; line-height: 1.35; }
.sheet-foot .sheet-qr { width: 0.72in; height: 0.72in; flex: 0 0 auto; display: block; }
.sheet-foot .sheet-qr svg { width: 100%; height: 100%; display: block; }
.sheet-foot .foot-main { flex: 1 1 auto; }
.sheet-foot .foot-main strong { font-size: 9.5pt; }
.sheet-foot .foot-id { text-align: right; color: var(--muted); white-space: nowrap; }

/* ---- the page around it ---- */
.ws-page { max-width: 920px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.ws-page h1 { margin-bottom: 0.4em; }
.ws-lead { max-width: 46em; margin: 0 auto 1em; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; margin: 1rem 0 0.6rem; }
.ws-btn { display: inline-block; min-width: 128px; padding: 0.6em 1.2em; border: 1px solid var(--brand); border-radius: var(--r-sm); background: var(--brand); color: var(--surface); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.ws-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--surface); }
.ws-btn.ws-btn-quiet { background: var(--surface); color: var(--brand); }
.ws-btn.ws-btn-quiet:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.ws-more { text-align: center; margin: 0.4rem 0 1.2rem; }
.ws-more a, .ws-more strong { margin: 0 0.3em; }
.ws-sheets { background: var(--well); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 0; overflow: hidden; }
.ws-sheets .sheet { box-sizing: border-box; width: 8.5in; height: 10.95in; padding: 0.5in; margin: 0 auto 14px; box-shadow: var(--shadow-2); zoom: var(--ws-zoom, 1); }
.ws-sheets .sheet:last-child { margin-bottom: 0; }
.ws-list { max-width: 40em; margin: 0 auto; text-align: left; }
.ws-list h2 { text-align: left; margin: 1.4em 0 0.4em; }
.ws-list ul { list-style: disc; padding-left: 1.4rem; }
.ws-list li { margin: 0.35em 0; }

@page { size: Letter; margin: 0.5in; }
@media print {
    body > :not(main) { display: none !important; }
    .ws-page { max-width: none; margin: 0; padding: 0; }
    .ws-page > :not(.ws-sheets) { display: none !important; }
    .ws-sheets { background: none; border: 0; padding: 0; overflow: visible; }
    .ws-sheets .sheet { width: 7.5in; height: 9.95in; padding: 0; margin: 0; box-shadow: none; zoom: 1; }
}
