/* Generated by tools/printables.py */

.sheet { font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-size: 10.2pt; line-height: 1.35; color: #1d2433; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet, .sheet * { box-sizing: border-box; }
.sheet { color-scheme: light; text-align: left; }
.sheet pre, .sheet code { color: #1d2433; text-shadow: none; }
.sheet a { color: #003b8e; }
.sheet h1, .sheet h2, .sheet h3 { font-family: "Bricolage Grotesque", Arial, sans-serif; margin: 0; line-height: 1.1; }
.sheet code, .sheet pre { font-family: "JetBrains Mono", Consolas, monospace; font-variant-ligatures: none; }
.sheet p { margin: 0 0 4px; }
.sheet .ps-band { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #003b8e; color: #fff; border-radius: 10px; padding: 9px 14px; border-bottom: 5px solid var(--stage); }
.sheet .ps-band .ps-logo { height: 38px; border-radius: 3px; }
.sheet .ps-eyebrow { font-size: 8pt; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sheet .ps-band h1 { font-size: 19pt; font-weight: 800; }
.sheet .ps-band-side { display: grid; gap: 3px; justify-items: end; font-size: 8.5pt; }
.sheet .ps-band-side span { background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 999px; }
.sheet .ps-foot { margin-top: 6px; text-align: center; font-size: 7.5pt; color: #6b7487; letter-spacing: .06em; }
.sheet .ps-code { margin: 0; background: #f4f7fb; border: 1px solid #d7deea; border-radius: 6px; padding: 5px 7px; font-size: 8.4pt; line-height: 1.32; white-space: pre-wrap; }
.sheet .ps-code.ps-erl { border-left: 3px solid #26255d; }
.sheet .ps-code .ps-k { color: #a3248f; font-weight: 600; } .ps-code .ps-s { color: #1a7f37; } .ps-code .ps-n { color: #b0520b; }
.sheet .ps-code .ps-c { color: #6f7a8c; font-style: italic; } .ps-code .ps-b { color: #0f7489; }
.sheet .ps-out { margin: 3px 0 0; background: #fff; border: 1px dashed #b9c3d3; border-radius: 6px; padding: 3px 7px; font-size: 8pt; white-space: pre-wrap; }
.sheet .ps-out::before { content: "Output"; display: block; font-family: Arial, sans-serif; font-size: 6.5pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7487; }

/* ---------- knowledge organiser: one A4 side */
.sheet .ps-ko { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-areas: "big big" "words codes" "facts codes" "mistakes tips" "notes notes"; grid-template-rows: auto auto auto auto 1fr; gap: 7px; margin-top: 7px; flex: 1; }
.sheet.ko-page { display: flex; flex-direction: column; min-height: 297mm; }
.sheet .ps-notes { grid-area: notes; min-height: 12mm; background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #d5dce7 calc(100% - 1px)); background-size: 100% 8mm; background-position: 0 0; background-origin: content-box; }
@media print { .sheet.ko-page { min-height: 276mm; } }
.sheet .ps-big { grid-area: big; margin: 0; padding: 7px 12px; border-radius: 8px; background: #fff7cc; border-left: 5px solid #e6c800; font-weight: 700; font-size: 10.5pt; }
.sheet .ps-panel { border: 1.5px solid #d7deea; border-radius: 9px; padding: 7px 9px; break-inside: avoid; }
.sheet .ps-panel h2 { font-size: 11.5pt; color: #003b8e; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.sheet .ps-panel h2::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--stage); }
.sheet .ps-words { grid-area: words; } .sheet .ps-facts { grid-area: facts; } .sheet .ps-codes { grid-area: codes; } .sheet .ps-mistakes { grid-area: mistakes; } .sheet .ps-tips { grid-area: tips; }
.sheet .ps-words table { border-collapse: collapse; width: 100%; font-size: 8.8pt; }
.sheet .ps-words th { text-align: left; vertical-align: top; padding: 2px 6px 2px 0; color: #003b8e; white-space: nowrap; width: 1%; }
.sheet .ps-words td { padding: 2px 0; border-bottom: 1px solid #edf0f5; }
.sheet .ps-facts ul, .sheet .ps-mistakes ul, .sheet .ps-tips ul { margin: 0; padding-left: 15px; font-size: 9pt; }
.sheet .ps-facts li, .sheet .ps-tips li { margin-bottom: 2px; }
.sheet .ps-codegrid { display: grid; gap: 6px; }
.sheet .ps-codebox h3 { font-size: 9pt; margin: 0 0 2px; color: #1d2433; }
.sheet .ps-codebox h3 small { font-family: Arial, sans-serif; font-weight: 400; color: #6b7487; margin-left: 6px; font-size: 7pt; }
.sheet .ps-mistakes { background: #fff6f6; border-color: #f2c9c9; }
.sheet .ps-mistakes h2 { color: #b3141c; }
.sheet .ps-mistakes ul { list-style: none; padding: 0; }
.sheet .ps-mistakes li { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 3px; font-size: 8.6pt; }
.sheet .ps-mistakes .ps-bad { color: #9a1218; } .ps-mistakes .ps-good { color: #1a6b31; }
.sheet .ps-tips { background: #f2faf4; border-color: #c4e5cd; }
.sheet .ps-tips h2 { color: #1a6b31; }
.sheet .ps-diagram { margin-top: 6px; text-align: center; }
.sheet .ps-dnote { margin: 4px 0 0; font-size: 9pt; }
.sheet .ps-diagram svg { max-width: 100%; height: auto; }
.sheet .ps-diagram table { border-collapse: collapse; margin: 4px auto 0; font-size: 9pt; }
.sheet .ps-diagram th, .sheet .ps-diagram td { border: 1px solid #c9d2df; padding: 1px 8px; text-align: center; }
.sheet .ps-diagram th { background: #eef2f8; }
.sheet .ps-ko code { background: #eef2f8; padding: 0 3px; border-radius: 3px; font-size: .92em; }
/* Essentials: everything a size bigger */
.sheet.ess main.ps-ko { zoom: 1.38; }
.sheet.ess main.ps-hw, .sheet.ess .ps-namebar { zoom: 1.22; }
.sheet.ess .ps-band h1 { font-size: 23pt; }

/* ---------- homework */
.sheet .ps-namebar { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr; gap: 8px; margin: 8px 0 2px; font-size: 8.5pt; color: #4b5568; }
.sheet .ps-namebar span { border-bottom: 1.5px solid #9aa6b8; padding-bottom: 12px; }
.sheet .ps-part { margin-top: 10px; }
.sheet .ps-parthead { margin-bottom: 6px; }
.sheet .ps-scenario { margin-top: 10px; padding: 7px 12px; border-radius: 8px; background: #fff7cc; border-left: 5px solid #e6c800; break-inside: avoid; }
.sheet .ps-scenario h2 { font-size: 11pt; color: #003b8e; margin-bottom: 3px; }
.sheet .ps-scenario p:last-child { margin-bottom: 0; }
.sheet .ps-part h2 { font-size: 13pt; color: #003b8e; border-bottom: 2.5px solid var(--stage); padding-bottom: 3px; }
.sheet .ps-part h2 span { background: var(--stage); color: #fff; border-radius: 6px; padding: 1px 8px; margin-right: 6px; font-size: 10pt; vertical-align: middle; }
.sheet .ps-partintro { color: #4b5568; font-size: 8.8pt; margin: 3px 0 4px; font-style: italic; }
.sheet .ps-qs { list-style: none; padding: 0; margin: 0; }
.sheet .ps-q { break-inside: avoid; margin: 6px 0 9px; }
.sheet .ps-qhead { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: start; }
.sheet .ps-qn { width: 20px; height: 20px; border-radius: 50%; background: #003b8e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 8.5pt; }
.sheet .ps-qtext > *:last-child { margin-bottom: 0; }
.sheet .ps-qtext pre.ps-code { margin: 3px 0; }
.sheet .ps-qtext table { border-collapse: collapse; margin: 3px 0; font-size: 8.8pt; }
.sheet .ps-qtext th, .sheet .ps-qtext td { border: 1px solid #c9d2df; padding: 2px 7px; }
.sheet .ps-qtext th { background: #eef2f8; }
.sheet .ps-qtext ul, .sheet .ps-qtext ol { margin: 2px 0; padding-left: 18px; }
.sheet .ps-qtext code { background: #eef2f8; padding: 0 3px; border-radius: 3px; }
.sheet .ps-marks { font-weight: 700; color: #4b5568; font-size: 9pt; }
.sheet .ps-lines { margin: 2px 0 0 28px; }
.sheet .ps-lines i { display: block; height: 7.5mm; border-bottom: 1px solid #b9c3d2; }
.sheet .ps-lines.ps-codelines { border: 1.5px solid #c9d2df; border-radius: 6px; background: #fbfcfe; margin-top: 5px; }
.sheet .ps-lines.ps-codelines i { border-bottom-color: #e3e8f0; }
.sheet .ps-lines.ps-codelines i:last-child { border-bottom: 0; }
.sheet.ess .ps-lines i { height: 8mm; }
.sheet .ps-callout { border-left: 4px solid #003b8e; background: #eef3fb; padding: 4px 8px; border-radius: 6px; margin: 3px 0; }
.sheet .ps-callout p { margin: 0; }
.sheet .ps-answer { margin: 4px 0 0 28px; padding: 5px 9px; border-left: 4px solid #1a7f37; background: #f2faf4; border-radius: 6px; }
.sheet .ps-answer > *:last-child { margin-bottom: 0; }
.sheet .ps-answer pre.ps-code { background: #fff; }
.sheet .ps-ansnote { margin: 7px 0 0; padding: 5px 10px; background: #f2faf4; border-radius: 6px; color: #1a6b31; font-weight: 700; font-size: 9pt; }
