/* Lemonmath printable self-study sheet (A4). On screen it looks like a sheet of paper; in print only the sheet is printed. */
@page { size: A4; margin: 13mm 14mm 14mm; }
* { box-sizing: border-box; }
html { background: #EDEAE0; }
body { margin: 0; color: #1f1f24; font: 400 11.5pt/1.5 "Nunito Variable", "Nunito", system-ui, sans-serif; }
.katex { font-size: 1.05em; }
.ws-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; padding: 12px 16px; background: #FFD43B; border-bottom: 2px solid #2B2A33; font-weight: 700; }
.ws-bar a { color: #2B2A33; }
.ws-bar button { font: inherit; padding: 8px 18px; border: 2px solid #2B2A33; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 #2B2A33; cursor: pointer; }
.ws-bar small { width: 100%; text-align: center; font-weight: 600; }
.ws-sheet { width: 210mm; max-width: 100%; margin: 18px auto 40px; padding: 13mm 14mm; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.ws-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 2.5px solid #1f1f24; }
.ws-brand { font: 800 15pt/1 "Baloo 2", sans-serif; }
.ws-brand b { color: #C2410C; }
.ws-brand span { margin-left: 10px; padding: 2px 10px; border: 1.5px solid #1f1f24; border-radius: 999px; font: 700 9pt/1.4 "Nunito Variable", sans-serif; text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }
.ws-where { font-weight: 700; font-size: 10pt; }
h1 { margin: 8px 0 6px; font: 800 18pt/1.2 "Baloo 2", sans-serif; }
h2 { margin: 0 0 4px; font: 800 11.5pt/1.3 "Nunito Variable", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.ws-fields { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 10px; font-weight: 600; }
.ws-fields i { display: inline-block; width: 62mm; border-bottom: 1px dotted #555; }
.ws-fields i.s { width: 24mm; }
.ws-how { margin: 6px 0 10px; padding: 7px 12px; border: 1.5px dashed #888; border-radius: 10px; font-size: 10pt; }
.ws-how ol { margin: 2px 0 4px; padding-left: 18px; }
.ws-why { margin: 4px 0 0; font-style: italic; color: #444; }
.ws-box { margin: 8px 0; padding: 6px 12px; border: 1.5px solid #1f1f24; border-radius: 10px; }
.ws-box p, .ws-box ul, .ws-box ol { margin: .3em 0; }
.ws-sum { background: #FFF8D6; }
.ws-h2 { margin-top: 12px; padding-bottom: 3px; border-bottom: 1.5px solid #1f1f24; }
.ws-ex { margin: 8px 0 4px; break-inside: avoid; }
.ws-ex h3 { margin: 0; font-size: 11pt; }
.ws-ex h3 span { display: inline-block; padding: 0 9px; border-radius: 999px; background: #1f1f24; color: #fff; font-size: 9.5pt; }
.ws-ex h3 em { font-weight: 700; color: #C2410C; }
.ws-q p { margin: .25em 0; }
.ws-space { height: 38mm; margin-top: 3px; border: 1px solid #c9c9c9; border-radius: 6px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 7.5mm, #e3e3e3 7.5mm, #e3e3e3 7.8mm); }
.ws-ex.hard .ws-space { height: 58mm; }
.ws-hints { column-count: 2; column-gap: 8mm; margin-top: 12px; padding: 6px 12px; border: 1.5px solid #888; border-radius: 10px; font-size: 9.5pt; color: #333; break-inside: auto; }
.ws-hint { margin: 4px 0; break-inside: avoid; }
.ws-hint > b { display: block; }
.ws-hint p, .ws-hint ol, .ws-hint ul { margin: .15em 0; }
.ws-end { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; break-inside: avoid; }
.ws-self { flex: 1; }
.ws-self table { border-collapse: collapse; width: 100%; font-size: 9.5pt; text-align: center; }
.ws-self th, .ws-self td { border: 1px solid #999; padding: 2px 4px; }
.ws-again { margin: 6px 0 0; font-weight: 700; font-size: 10pt; }
.ws-qrbox { width: 34mm; text-align: center; font-size: 8.5pt; font-weight: 700; }
.ws-qr { width: 30mm; height: 30mm; }
.ws-qrbox p { margin: 2px 0 0; }
.ws-foot { margin-top: 10px; padding-top: 5px; border-top: 1px solid #999; font-size: 8.5pt; text-align: center; color: #444; }
.katex-display { margin: .4em 0; }
@media print {
  html, body { background: #fff; }
  .no-print { display: none !important; }
  .ws-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
}
@media (max-width: 700px) {
  .ws-sheet { padding: 16px; }
  .ws-end { flex-direction: column; }
}
.ws-hints h2 { column-span: all; }
.ws-quiz { break-before: auto; }
.ws-quiz h3 { margin: 8px 0 3px; font-size: 10.5pt; }
.ws-qnote { margin: 2px 0 6px; font-size: 9.5pt; font-style: italic; }
.ws-qi { margin: 4px 0 6px; break-inside: avoid; }
.ws-qi p { margin: .15em 0; }
.ws-mc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; margin-top: 2px; }
.ws-tf { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
.ws-tf td { padding: 2px 4px; border-bottom: 1px dotted #aaa; }
.ws-tf td.box { width: 18mm; text-align: center; color: #888; }
.ws-sa { display: flex; gap: 3px; margin-top: 3px; }
.ws-sa span { width: 8mm; height: 9mm; border: 1.2px solid #444; }
.ws-score { text-align: right; font-weight: 700; margin: 4px 0 0; }
