/* Shared print rules (linked with media="print" on every study page). Pages can add their own on top. */
@page{size:A4;margin:12mm 12mm 14mm}
html,body{background:#fff!important;color:#000!important}
body{font-size:10.5pt;line-height:1.4}
*{box-shadow:none!important;text-shadow:none!important}
/* chrome of the page */
header,nav,.top,.bar,.tabbar,.subnav,.nav-more,#searchOverlay,#searchBtn,.lang,.rep-wrap,.rep-link,.noprint,
button,.btn,.acts,.opt input,input[type=checkbox],input[type=radio],select,.back,dialog{display:none!important}
.wrap,main{max-width:none!important;padding:0!important;margin:0!important}
a{color:#000!important;text-decoration:none!important}
/* external links: show where they go */
a[href^="http"]:not([href*="mouadelassadi.com"])::after{content:" (" attr(href) ")";font-size:8pt;color:#444;word-break:break-all}
/* keep blocks whole */
h1,h2,h3,h4{break-after:avoid;page-break-after:avoid;color:#000!important}
.card,.qbox,.q,.mist,.st,.ex,.it,.fc,.cex,.item,li,tr,figure,.katex-display{break-inside:avoid;page-break-inside:avoid}
img,svg{max-width:100%!important}
/* hidden answers are printed when the page asks for it (body.print-all) */
body.print-all [hidden]{display:block!important}
body.print-all details>*{display:block!important}
/* licence and address at the end */
body::after{content:"mouadelassadi.com · CC BY-NC-SA 4.0 — partage et adaptation libres pour un usage non commercial, en citant l’auteur.";display:block;margin-top:8mm;padding-top:2mm;border-top:1px solid #999;font-size:8pt;color:#444}
html[lang=en] body::after{content:"mouadelassadi.com · CC BY-NC-SA 4.0 — free to share and adapt for non-commercial use, citing the author."}
