/* Approved handwritten reference: compact notes, open separators and diagrams. */
@font-face{font-family:'Study Notes';src:url('../study-fonts/Kalam-Regular.ttf');font-weight:400;font-display:swap}
@font-face{font-family:'Study Notes';src:url('../study-fonts/Kalam-Bold.ttf');font-weight:700;font-display:swap}
.main:has(.category-sheet){max-width:1280px}.sheet-intro h1{font-size:clamp(1.7rem,3vw,2.5rem)}.sheet-intro .lede{max-width:70ch}
.formula-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:24px 0}.formula-download,.formula-print{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #b7d3d9;border-radius:8px;padding:10px 18px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}.formula-download{background:#105e70;color:#fff}.formula-download:hover{background:#0b4f63;color:#fff}.formula-print{background:#fff;color:#183044}.formula-print:hover{background:#eaf1f4}
.category-sheet{font:16px/1.27 'Study Notes',cursive;color:#12191b}.sheet-page{background:#fff;padding:25px;margin:30px 0;border:1px solid #d5d9dc}.sheet-heading{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #bbb;padding-bottom:8px;margin-bottom:8px}.sheet-heading h2{font:700 1.05rem/1.3 'Study Notes',cursive;margin:0}.sheet-heading>span{font-size:.9rem;white-space:nowrap}
.sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;position:relative}.sheet-grid:after{content:'';position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed #839195}
.sheet-topic{--hl:#c8e8dc;--pen:#297c69;min-width:0;min-height:0;padding:5px 0 10px;border-bottom:1px dashed #8f999c}.sheet-topic:nth-child(3n+2){--hl:#f6df99;--pen:#976e19}.sheet-topic:nth-child(3n){--hl:#f0cbd5;--pen:#ad4662}.sheet-topic:nth-last-child(-n+2){border-bottom:0}
.sheet-topic h3{font:700 1.4rem/1.16 'Study Notes',cursive;margin:0 0 10px;letter-spacing:0}.sheet-topic h3>span:not(.sheet-topic-number){box-decoration-break:clone;-webkit-box-decoration-break:clone;background:linear-gradient(transparent 50%,var(--hl) 50%,var(--hl) 95%,transparent 95%);padding:0 2px}.sheet-topic-number{font:inherit;color:#12191b}
.sheet-topic p{margin:4px 0}.sheet-topic b,.sheet-topic u{font-weight:700}.sheet-topic u{text-decoration-color:var(--pen);text-underline-offset:2px;text-decoration-thickness:1.5px}.sheet-topic ul{padding-left:17px;margin:4px 0}.sheet-topic li{margin:3px 0}.sheet-notes ul{list-style:none;padding-left:0}.sheet-notes li{position:relative;padding-left:17px}.sheet-notes li::before{content:"•";position:absolute;left:1px;font-family:Arial,sans-serif}.sheet-legend,.sheet-small{font-size:.87em;line-height:1.24}.sheet-compact{font-size:.93em}.sheet-expressions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;margin:10px 0}.sheet-formula{font-size:1.15em;max-width:100%;padding:3px 4px}.sheet-formula:first-child,.sheet-box{display:inline-block;border:1.2px solid var(--pen);background:#fffef6;padding:4px 7px}.sheet-formula-caption{display:block;font-size:.7em;line-height:1.25;margin-bottom:3px;color:var(--pen)}.sheet-math{text-align:center;font-size:1.23em;margin:7px 0}.sheet-box{padding:4px 7px}.sheet-tag{font-weight:700;color:var(--pen)}
.sheet-topic mjx-container{margin:0!important}.sheet-topic mjx-container svg{max-width:100%;height:auto;stroke:none}.sheet-notes:has(.sheet-figure){display:grid;grid-template-columns:minmax(0,1fr) 30%;gap:8px;align-items:start}.sheet-figure{grid-column:2;grid-row:1;margin:5px 0 0}.sheet-notes:has(.sheet-figure) ul{grid-column:1;grid-row:1}.sheet-figure img{width:100%;max-height:110px;object-fit:contain}.sheet-figure figcaption{font-size:.76em;line-height:1.2}.sheet-source{font-size:.75em;color:#324f48;display:inline-block;margin-top:3px}.sheet-pair{display:grid;grid-template-columns:1fr 32mm;gap:2mm;align-items:center}.sheet-cols{display:grid;grid-template-columns:1fr 1fr;gap:2mm}.sheet-cols>div+div{border-left:1px dotted #aaa;padding-left:2mm}.sheet-diagram{margin:4px 0}.sheet-diagram svg,.sheet-pair>svg{display:block;width:100%;height:auto;overflow:visible;stroke:#151e20;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sheet-diagram svg{max-height:100px}.sheet-topic svg text{font:16px 'Study Notes',cursive;fill:#151e20;stroke:none}.sheet-topic svg .accent{stroke:var(--pen)}.sheet-footer{display:flex;justify-content:space-between;gap:12px;font-size:.65em;margin-top:8px}
@media(max-width:700px){.sheet-page{padding:16px}.sheet-grid{grid-template-columns:minmax(0,1fr)}.sheet-grid:after{display:none}.sheet-topic:nth-last-child(2){border-bottom:1px dashed #8f999c}.sheet-heading{flex-wrap:wrap}.sheet-heading>span{display:none}.sheet-footer{flex-wrap:wrap}.sheet-topic h3{font-size:1.25rem}.sheet-notes:has(.sheet-figure){grid-template-columns:minmax(0,1fr) 28%}}
@page{size:A4 portrait;margin:9mm 10mm 10mm}
@media print{
 html,body{background:white!important;color:#12191b!important}.category-sheet{font:11.1pt/1.23 'Study Notes',cursive;width:190mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.category-sheet-3{font-size:11.8pt;line-height:1.27}.sidebar,.sheet-intro,.back-to-top,body>script{display:none!important}.site-shell{display:block!important;min-height:0!important;margin:0!important}.main:has(.category-sheet){display:block!important;padding:0!important;margin:0!important;max-width:none!important;width:auto!important}
 .sheet-page{height:277mm;margin:0;padding:0;border:0;display:flex;flex-direction:column;break-after:page}.sheet-page:last-child{break-after:auto}.sheet-heading{flex:none;padding-bottom:2mm;margin-bottom:2mm;align-items:baseline}.sheet-heading h2{font-size:10.5pt}.sheet-heading>span{display:block;font-size:9pt}.sheet-grid{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--rows),auto);column-gap:6mm}.sheet-topic{padding:2mm 0 3mm;break-inside:avoid}.category-sheet-3 .sheet-topic{padding:1mm 0 2mm}.sheet-topic h3{font-size:15pt;line-height:1.16;margin:0 0 1.5mm}.category-sheet-3 .sheet-topic h3{font-size:16pt}.sheet-legend{font-size:9.1pt;line-height:1.2}.sheet-topic p{margin:1mm 0}.sheet-topic ul{margin:1mm 0;padding-left:3.5mm}.sheet-topic li{margin:.7mm 0}.sheet-notes ul{padding-left:0}.sheet-notes li{padding-left:3.5mm}.sheet-expressions{gap:1mm 2mm;margin:1.5mm 0}.sheet-formula{font-size:12pt;padding:.5mm .6mm}.sheet-formula:first-child{padding:.6mm 1mm}.sheet-formula-caption{font-size:7.2pt}.sheet-math{font-size:14pt;margin:1.5mm 0}.sheet-small{font-size:9.8pt}.sheet-compact{font-size:10.5pt}.sheet-box{padding:1mm 2mm}.sheet-notes:has(.sheet-figure){grid-template-columns:minmax(0,1fr) 25mm;gap:2mm}.sheet-figure{margin:1mm 0 0}.sheet-figure img{max-height:20mm}.sheet-figure figcaption{font-size:8pt;line-height:1.16}.sheet-source{display:none}.sheet-diagram{margin:1mm 0}.sheet-diagram svg{max-height:24mm}.sheet-footer{flex:none;font-size:6.5pt;min-height:4mm;line-height:1.2;margin-top:1.5mm}.category-sheet-1 .sheet-page,.category-sheet-2 .sheet-page{height:274mm}.sheet-topic svg text{font-family:'Study Notes',cursive}a::after{content:none!important}
}

.sheet-page-note{font-size:.8em;line-height:1.2;margin:0 0 8px}.sheet-topic .sheet-question-examples{font-size:.72em;line-height:1.2;color:#33443f;margin-top:6px}
@media print{.sheet-page-note{flex:none;font-size:7.5pt;line-height:1.2;margin:0 0 1.5mm}.sheet-topic .sheet-question-examples{font-size:7.4pt;line-height:1.2;margin-top:1mm}}

.sheet-notes:has(.sheet-figure-wide){display:flex;flex-direction:column}.sheet-notes:has(.sheet-figure-wide) ul{order:0}.sheet-figure-wide{order:1;width:100%;text-align:center}.sheet-figure-wide img{max-height:180px}.sheet-figure-wide figcaption{text-align:left}
@media print{.sheet-figure-wide img{max-height:38mm}.sheet-figure-wide figcaption{font-size:7.8pt}}

@media print{.category-sheet-1 .sheet-topic{padding-top:3mm}.category-sheet-1 .sheet-page{height:277mm}}

.sheet-topic .sheet-technical-sources{font-size:.72em;line-height:1.2;margin-top:4px}
@media print{.sheet-topic .sheet-technical-sources{font-size:7.2pt;line-height:1.2;margin:1mm 0}}

/* Independent columns fill downwards; legends support the card at its foot. */
.sheet-grid-columns{align-items:start}.sheet-column{min-width:0;display:flex;flex-direction:column}
.sheet-column>.sheet-topic{flex:none;border-bottom:1px dashed #8f999c}.sheet-column>.sheet-topic:last-child{border-bottom:0}
.sheet-topic .sheet-legend{font-size:.72em;line-height:1.2;color:#000;margin:6px 0 0}
@media print{.sheet-grid{grid-template-rows:repeat(var(--rows),max-content);align-content:start}.sheet-grid-columns{grid-template-rows:minmax(0,1fr);align-content:stretch}.sheet-topic .sheet-legend{font-size:7.4pt;line-height:1.2;margin:1mm 0 0}.sheet-column>.sheet-topic{padding:2mm 0}}
@media print{.category-sheet-3 .sheet-topic{padding:.8mm 0 1mm}.category-sheet-3 .sheet-topic h3{margin-bottom:1mm}.category-sheet-3 .sheet-topic p{margin:.8mm 0}}
