/* Nine-slice border: botanical corners retain space; side sprigs repeat naturally. */
h1.script{text-transform:none}
.christmas-frame{display:none!important}
.paper{min-height:0}
.paper:before{background:linear-gradient(var(--cream),var(--cream)) center/76% 100% no-repeat,repeating-linear-gradient(90deg,#781a29 0 24px,#f7f0e1 24px 43px,#b28b54 43px 45px,#f7f0e1 45px 49px)}
.paper:after{content:'';display:block;position:absolute;inset:0;z-index:3;pointer-events:none;border-style:solid;border-color:transparent;border-width:225px 135px 195px;border-image-source:url('assets/cornice-natale.png');border-image-slice:300 180 260;border-image-repeat:stretch round;border-image-width:1}
.paper-content{margin-left:20%!important;margin-right:20%!important;padding:265px 0 235px!important;min-height:0;z-index:4;background:transparent}
.paper-content>*{position:relative}
.snowfall{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden}
.snowflake{position:absolute;top:-60px;left:var(--x);width:var(--size);height:var(--size);color:#b82b3f;opacity:0;animation:red-snow var(--duration) var(--delay) linear infinite;filter:drop-shadow(0 1px 2px #51351b33)}
.snowflake svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.2;fill:none;stroke-linecap:round}
@keyframes red-snow{0%{transform:translate3d(0,-40px,0) rotate(0);opacity:0}8%{opacity:var(--opacity)}90%{opacity:var(--opacity)}100%{transform:translate3d(var(--drift),calc(100vh + 100px),0) rotate(200deg);opacity:0}}
@media screen and (max-width:1000px){.paper:after{border-width:170px 102px 147px}.paper-content{margin-left:19%!important;margin-right:19%!important;padding-top:205px!important;padding-bottom:185px!important}.script{font-size:57px}.formula-name{font-size:17px}}
@media screen and (max-width:760px){.paper:after{border-width:69px 41px 60px;border-image-repeat:stretch round}.paper-content{margin-left:14%!important;margin-right:14%!important;padding:110px 0 100px!important}.script{font-size:40px}.festive-story{font-size:17px}.formula-name{font-size:21px}table{font-size:15px}.table-wrap{margin:0}.page-footer{font-size:10px}.kicker{font-size:10px}.snowflake{filter:none}}
@media screen and (max-width:360px){.paper:after{border-width:56px 34px 49px}.paper-content{margin-left:14%!important;margin-right:14%!important;padding-top:94px!important;padding-bottom:85px!important}.script{font-size:34px}.kicker{font-size:9px}.intro{font-size:16px}table{font-size:14px}thead th{font-size:11px}.section-title{font-size:21px}}
@media(prefers-reduced-motion:reduce){.snowfall{display:none}}
@media print{.snowfall{display:none!important}.paper{height:297mm;min-height:0}.paper:after{border-width:42mm 25mm 36.4mm;border-image-repeat:stretch round}.paper-content{margin-left:20%!important;margin-right:20%!important;padding:48mm 0 41mm!important;height:297mm;min-height:0}.page-footer{position:relative}#formule .script{font-size:28pt}#formule .festive-story{font-size:8.5pt}#formule th,#formule td{padding:1.2mm .8mm}.course li{font-size:10pt}}
