
@font-face{font-family:Manrope;src:url("assets/Manrope.ttf");font-weight:200 900;font-display:swap}
@font-face{font-family:Montserrat;src:url("assets/Montserrat.ttf");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--paper:#fff8f4;--surface:#fffdfb;--ink:#130d0c;--muted:#5e544d;--line:#d5c8be;--scene:#edf5f8;--green:#10b742;--accent:#a22600;--orange:#ef4511;--tint:#f4eee9;--shade:#d8f2df}
:root[data-theme="night"]{color-scheme:dark;--paper:#111816;--surface:#18221f;--ink:#f2f6ee;--muted:#bbc8bf;--line:#42524c;--scene:#0e1716;--accent:#ffb391;--tint:#22312a;--shade:#24412c}
*{box-sizing:border-box}
html{scroll-padding-top:16px}
body{margin:0;background:var(--paper);color:var(--ink);font:500 15px/1.55 Manrope,Arial,sans-serif}
a{color:var(--accent);font-weight:800;text-underline-offset:.23em}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
h1,h2,h3{font-family:Montserrat,Arial,sans-serif;font-weight:850;line-height:1.05;letter-spacing:-.045em}
h1{font-size:clamp(44px,8vw,110px);margin:2px 0 10px}
h2{font-size:clamp(26px,4vw,40px);margin:0 0 10px}
h3{font-size:20px;margin:0 0 10px}
p{margin:0 0 10px}
.wrap{width:min(1320px,100% - 64px);margin-inline:auto}
.mast{background:var(--green);color:#130d0c}
.mast .wrap{min-height:70px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.logo{width:min(176px,100%);display:block}
.mast :focus-visible{outline-color:#130d0c}
.tools,.themes{display:flex;align-items:center;gap:6px}
.tools>a,.themes button{border:1px solid #174c27;border-radius:5px;padding:5px 9px;background:#d8f2df;color:#130d0c;font-size:13px;font-weight:850;text-decoration:none;white-space:nowrap}
.themes button[aria-pressed="true"]{background:#142b1b;color:#f6fff6}
.hero{margin-top:36px}
.kicker{font-size:13px;font-weight:850;color:var(--accent)}
.hero .deck{color:var(--muted);font-size:clamp(16px,2vw,20px);max-width:76ch}
.actions,.nav,.chapter-links{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.actions{margin-top:16px}
.actions a.primary{padding:6px 11px;background:var(--green);color:#130d0c;text-decoration:none;border-radius:5px}
.nav{border-block:1px solid var(--line);padding-block:12px;margin-top:24px}
.nav a{color:var(--ink);font-weight:800}
.sheet{border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:18px 0 24px;overflow-wrap:anywhere}
.sheet-head{padding:16px 20px 12px}
.sheet-id{font-size:12px;font-weight:850;color:var(--accent)}
.sheet-head h2{margin:3px 0 0}
.section-copy{color:var(--muted);margin:7px 0 0;max-width:91ch}
.frame{display:block;width:100%;padding:0;border:0;background:var(--scene);line-height:0}
.frame picture,.frame img{display:block;width:100%;height:auto}
.frame:hover{box-shadow:inset 0 0 0 1px var(--accent)}
.sheet-foot{padding:10px 20px 14px;display:flex;gap:7px 17px;align-items:baseline;flex-wrap:wrap;font-size:13px}
.sheet-foot span,.note{color:var(--muted)}
.detail{padding:14px 20px 0}
.detail .frame{max-width:880px}
.detail .sheet-foot{padding-inline:0}
.chapter{border-top:1px solid var(--line);margin:39px 0 4px;padding-top:18px}
.chapter h2{font-size:30px}
.chapter-links{gap:4px 11px;font-size:13px}
.chapter-links a{font-weight:700}
.analytic{padding:0 20px 15px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 15px}
.stat{padding:10px 14px;border-top:3px solid var(--orange);background:var(--tint)}
.stat strong{display:block;font:800 clamp(20px,3vw,34px) Montserrat,Arial,sans-serif}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;min-width:480px;font-variant-numeric:tabular-nums}
th,td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:7px 9px}
thead th{background:var(--tint)}
tbody th{font-weight:800}
.note{font-size:13px;margin:10px 0}
.bars{display:grid;gap:6px;margin-block:12px}
.bar{display:grid;align-items:center;grid-template-columns:minmax(100px,240px) minmax(80px,1fr) auto;gap:8px;font-size:13px}
.bar i{height:12px;background:var(--green);display:block}
.bar:nth-child(even) i{background:var(--orange)}
.foot{padding:10px 0 28px;color:var(--muted);border-top:1px solid var(--line)}
dialog{width:min(calc(100% - 18px),1780px);max-width:none;max-height:95vh;padding:8px 10px 10px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
dialog::backdrop{background:#06100bd9}
dialog form{display:flex;justify-content:space-between;align-items:center;margin:0 0 5px}
dialog button{padding:3px 8px;background:var(--tint);border:1px solid var(--line);border-radius:4px}
dialog img{display:block;width:100%;max-height:85vh;object-fit:contain}
.print-brand{display:none}
@media(max-width:650px){
 .wrap{width:calc(100% - 24px)}
 .mast .wrap{min-height:57px}
 .logo{width:122px}
 .tools,.themes{gap:4px}
 .tools>a,.themes button{padding:5px 6px;font-size:12px}
 .hero{margin-top:24px}
 .chapter{margin-top:25px}
 .sheet-head,.analytic,.detail{padding-inline:12px}
 .sheet-foot{padding-inline:12px}
 .stats{grid-template-columns:1fr 1fr}
 .bar{grid-template-columns:110px minmax(50px,1fr) auto}
}
@media(max-width:360px){.logo{width:106px}.tools>a,.themes button{padding-inline:4px}}
@page{size:A4 landscape;margin:11mm}
@media print{
 :root,:root[data-theme="night"]{color-scheme:light;--paper:#fff;--surface:#fff;--ink:#130d0c;--muted:#493d37;--line:#c7bdb6;--accent:#a22600;--tint:#f0f3ef;--scene:#edf5f8}
 body{background:white;font-size:10.3pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .wrap{width:100%}
 .mast,.hero,.nav,.chapter,.foot,dialog,.sheet-foot a{display:none!important}
 .sheet{margin:0;border:0;border-radius:0;break-after:page;break-inside:avoid;overflow:visible}
 .sheet:last-of-type{break-after:auto}
 .print-brand{display:flex;justify-content:space-between;align-items:center;background:#10b742;padding:3mm 6mm;color:#130d0c;font-weight:900}
 .print-brand img{width:34mm;height:auto}
 .sheet-head{padding:4mm 0 3mm}
 .sheet-head h2{font-size:23pt}
 .frame{width:100%;background:#edf5f8}
 .frame img{height:127mm;width:100%;object-fit:contain}
 .sheet-foot{padding:3mm 0 0}
 .detail{display:none}
 .analytic{padding-inline:0}
 .table-wrap{overflow:visible}
 table{min-width:0}
}

.study-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.study-gallery figure{margin:0;min-width:0}
.study-gallery img{width:100%;height:clamp(105px,19vw,210px);object-fit:contain;background:#edf5f8}
.study-gallery figcaption{font-size:13px;color:var(--muted)}
@media(max-width:600px){.study-gallery{grid-template-columns:1fr 1fr}}
@media print{.study-gallery img{height:45mm}}
