:root{
--navy:#16382b;
--ruler:#a6e05a;
--grid:#e2f1e1;
--green:#2f9e44;  --green-ink:#1f7a33;  --green-tint:#ebf8ec;  --green-line:#b5e0bc;
}
body.notes-page{
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cg fill='none' stroke='%232f9e44' stroke-opacity='.10' stroke-width='.7'%3E%3Crect x='1' y='1' width='18' height='10' rx='3'/%3E%3Crect x='21' y='1' width='18' height='10' rx='3'/%3E%3Crect x='11' y='13' width='18' height='10' rx='3'/%3E%3Crect x='-9' y='13' width='18' height='10' rx='3'/%3E%3Crect x='31' y='13' width='18' height='10' rx='3'/%3E%3C/g%3E%3C/svg%3E");
background-size:60px 36px;
}
.part-head,.formula{
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cg fill='none' stroke='%2316382b' stroke-opacity='.08' stroke-width='.7'%3E%3Crect x='1' y='1' width='18' height='10' rx='3'/%3E%3Crect x='21' y='1' width='18' height='10' rx='3'/%3E%3Crect x='11' y='13' width='18' height='10' rx='3'/%3E%3Crect x='-9' y='13' width='18' height='10' rx='3'/%3E%3Crect x='31' y='13' width='18' height='10' rx='3'/%3E%3C/g%3E%3Cg fill='%2316382b' fill-opacity='.06'%3E%3Ccircle cx='10' cy='6' r='1.6'/%3E%3Ccircle cx='30' cy='6' r='1.6'/%3E%3Ccircle cx='20' cy='18' r='1.6'/%3E%3Ccircle cx='0' cy='18' r='1.6'/%3E%3Ccircle cx='40' cy='18' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
background-size:44px 26.4px;
}
.cover-panel{
border-color:var(--green-line);
background-color:#f6fbf4;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'%3E%3Cg fill='none' stroke='%232f9e44' stroke-opacity='.17' stroke-width='.7'%3E%3Crect x='1' y='1' width='18' height='10' rx='3'/%3E%3Crect x='21' y='1' width='18' height='10' rx='3'/%3E%3Crect x='11' y='13' width='18' height='10' rx='3'/%3E%3Crect x='-9' y='13' width='18' height='10' rx='3'/%3E%3Crect x='31' y='13' width='18' height='10' rx='3'/%3E%3C/g%3E%3Cg fill='%232f9e44' fill-opacity='.15'%3E%3Ccircle cx='10' cy='6' r='1.6'/%3E%3Ccircle cx='30' cy='6' r='1.6'/%3E%3Ccircle cx='20' cy='18' r='1.6'/%3E%3Ccircle cx='0' cy='18' r='1.6'/%3E%3Ccircle cx='40' cy='18' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
background-size:56px 33.6px;
}
.cover h1 .hl{
background:linear-gradient(180deg,transparent 62%,rgba(166,224,90,.6) 62%,rgba(166,224,90,.6) 90%,transparent 90%);
}
.ch-badge{
position:relative;
border-radius:26px 6px 26px 6px;
background:linear-gradient(160deg,#ffffff 0%,#e4f5df 100%);
border:2.2px solid var(--green);color:var(--navy);
box-shadow:0 8px 18px -10px rgba(22,56,43,.45);
}
.ch-badge::before{
content:"";position:absolute;top:8px;right:9px;width:13px;height:13px;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14C2 6 7 2 14 2C14 9 10 14 2 14Z' fill='%232f9e44'/%3E%3Cpath d='M3 13L11 5' stroke='%23e4f5df' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.ch-badge span{position:absolute;top:9px;left:11px;opacity:1;color:var(--green-ink);letter-spacing:.14em}
.ch-badge strong{color:var(--navy);margin-top:4px}
.ch-badge::after{
content:"Biology";position:absolute;left:0;right:0;bottom:9px;text-align:center;
font:600 7.5px/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--green-ink);
}
.cover-class{border-color:var(--green-line);color:var(--green-ink)}
.cover-class::after{content:" · Biology"}
:lang(hi) .ch-badge::after{content:"जीव विज्ञान";font:600 9px/1 var(--f-mono);letter-spacing:0;text-transform:none}
:lang(hi) .cover-class::after{content:" · जीव विज्ञान"}
.ruler{height:17mm}
.topic > h3::after{
background:
linear-gradient(var(--a),var(--a)) left bottom/76px 2.5px no-repeat,
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='7'%3E%3Cpath d='M0 4.5Q10 1.5 20 4.5T40 4.5' fill='none' stroke='%23a9d8a6' stroke-width='1'/%3E%3Cpath d='M10 3C11.6 .9 14 .5 15.8 1C14.3 2.6 12.2 3.3 10 3Z' fill='%23a9d8a6'/%3E%3Cpath d='M30 6C31.6 6.7 34 6.6 35.8 5.2C34.2 4.3 31.8 4.5 30 6Z' fill='%23a9d8a6'/%3E%3C/svg%3E") left bottom/40px 7px repeat-x;
}
@media print{body.notes-page{background-image:none}}
.figcards > .card{display:flex;flex-direction:column}
.figcards > .card > .fig{margin:0 0 6px;padding:4px 0 2px;border:0;background:none}
.figcards > .card > .fig svg{width:auto;max-width:100%;height:auto}
.figcards > .card > .card-t{margin-top:2px}
.figcards > .card > :last-child{margin-bottom:0}
.fig img.pic{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;border-radius:0}
.figcards > .card:has(> .fig.pic){background:var(--paper)}
.figcards > .card > .fig.pic{flex:1 1 auto;display:flex;align-items:center;justify-content:center}
.figcards > .card > .fig.pic > img{min-width:0}
.figcards.c23{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.figcards > .card.span{grid-column:1 / -1}
.figcards > .card.row{flex-direction:row;align-items:center;gap:18px}
.figcards > .card.row > .fig{flex:0 0 auto;max-width:64%;margin:0}
.figcards > .card.row > .cbody{flex:1 1 0;min-width:0}
.figcards > .card.row > .cbody > :last-child{margin-bottom:0}
.figcards > .card.mid{justify-self:center;width:calc(50% - 6px)}
.split.pic{grid-template-columns:minmax(0,1fr) 400px}
.split > *{min-width:0}
.split.fit > .fig{justify-self:center}
.fig picture{display:block}
.fig .picrow{display:flex;align-items:flex-start;justify-content:center;gap:4px}
.fig .picrow > div{flex:0 1 auto;min-width:0}
.fig .picrow .arr{flex:0 0 auto;align-self:center;margin-top:-26px;color:var(--a);font:800 20px/1 var(--f-head)}
.pic-t{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:4px;font-family:var(--f-head);font-weight:700;font-size:13px;line-height:1.25;color:var(--a-ink)}
.pic-t .ix{flex:0 0 auto;display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:5px;background:var(--a);color:#fff;font:600 10px/1 var(--f-mono)}
@media screen and (max-width:640px){
.split.pic,.figcards.c23{grid-template-columns:1fr}
.fig img.pic{min-width:min(100%,300px)}
.split.fit > .fig{justify-self:stretch}
.fig .picrow{flex-direction:column;align-items:center;gap:2px}
.fig .picrow .arr{margin:0;transform:rotate(90deg)}
.figcards > .card.row{flex-direction:column;align-items:stretch}
.figcards > .card.row > .fig{max-width:none}
.figcards > .card.mid{width:auto}
}