@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNk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r38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.18.6"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.katex-newline{display:block}.katex .katex-base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .katex-vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .katex-thinbox{display:inline-flex;flex-direction:row;max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .katex-hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.katex-root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .katex-stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}
/**
 * designTokens.css
 * MONOMATH 2.0 — Design System Tokens
 * Approved Specification: monomath_2_0_design_system.md
 *
 * Light-first academic canvas with restrained palette, high contrast,
 * and WCAG 2.1 AA accessibility compliance.
 */

:root {
  /* Canvas & Surfaces */
  --mono-bg-canvas: #FBFBFA;
  --mono-bg-surface: #FFFFFF;
  --mono-bg-subtle: #F8FAFC;
  --mono-bg-muted: #F1F5F9;
  --mono-bg-highlight: #EEF2FF;

  /* Text & Hierarchy (Contrast > 7:1) */
  --mono-text-primary: #0F172A;
  --mono-text-secondary: #334155;
  --mono-text-muted: #64748B;
  --mono-text-placeholder: #64748B;
  --mono-text-inverse: #FFFFFF;

  /* Brand & Intelligence Accent */
  --mono-brand-primary: #0F172A;
  --mono-brand-accent: #2563EB;
  --mono-brand-accent-hover: #1D4ED8;
  --mono-brand-accent-subtle: #EFF6FF;
  --mono-brand-accent-border: #BFDBFE;

  /* Mastery States (Color-Independent Multi-Tier) */
  --mono-mastery-unstarted: #94A3B8;
  --mono-mastery-learning: #3B82F6;
  --mono-mastery-developing: #F59E0B;
  --mono-mastery-proficient: #10B981;
  --mono-mastery-mastered: #6366F1;

  /* Diagnostic Error Autopsy Colors */
  --mono-error-conceptual: #EF4444;
  --mono-error-conceptual-bg: #FEF2F2;
  --mono-error-method: #F97316;
  --mono-error-method-bg: #FFF7ED;
  --mono-error-procedural: #EAB308;
  --mono-error-procedural-bg: #FEFCE8;
  --mono-error-algebraic: #84CC16;
  --mono-error-algebraic-bg: #F7FEE7;

  /* Borders & Dividers */
  --mono-border-subtle: #E2E8F0;
  --mono-border-default: #CBD5E1;
  --mono-border-strong: #94A3B8;
  --mono-border-focus: #2563EB;

  /* Typography Stack */
  --mono-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono-font-serif: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --mono-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Typography Scale */
  --mono-text-display: clamp(2rem, 4.5vw, 2.75rem);
  --mono-text-h1: clamp(1.6rem, 3.5vw, 2.0rem);
  --mono-text-h2: 1.5rem;
  --mono-text-h3: 1.125rem;
  --mono-text-h4: 0.9375rem;
  --mono-text-body-lg: 1.0625rem;
  --mono-text-body: 0.9375rem;
  --mono-text-body-sm: 0.8125rem;
  --mono-text-caption: 0.6875rem;

  /* Spacing Scale (8-point geometric scale) */
  --mono-space-1: 4px;
  --mono-space-2: 8px;
  --mono-space-3: 12px;
  --mono-space-4: 16px;
  --mono-space-5: 20px;
  --mono-space-6: 24px;
  --mono-space-8: 32px;
  --mono-space-10: 40px;
  --mono-space-12: 48px;
  --mono-space-16: 64px;
  --mono-space-24: 96px;

  /* Radii */
  --mono-radius-xs: 4px;
  --mono-radius-sm: 6px;
  --mono-radius-md: 10px;
  --mono-radius-lg: 14px;
  --mono-radius-xl: 20px;
  --mono-radius-full: 9999px;

  /* Shadows (Subtle, Clean) */
  --mono-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --mono-shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --mono-shadow-md: 0 8px 16px -3px rgba(15, 23, 42, 0.06), 0 3px 6px -2px rgba(15, 23, 42, 0.03);
  --mono-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.02);

  /* Transitions */
  --mono-transition-fast: 120ms cubic-bezier(0.16, 1, 0.3, 1);
  --mono-transition-base: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Boundaries */
  --mono-container-max: 1280px;
  --mono-reading-max: 720px;
  --mono-problem-canvas-max: 880px;
}

[data-theme="dark"] {
  --mono-bg-canvas: #080A10;
  --mono-bg-surface: #0E121D;
  --mono-bg-subtle: #131826;
  --mono-bg-muted: #1A2133;
  --mono-bg-highlight: #1E2744;

  --mono-text-primary: #F8FAFC;
  --mono-text-secondary: #94A3B8;
  --mono-text-muted: #64748B;
  --mono-text-placeholder: #475569;
  --mono-text-inverse: #080A10;

  --mono-brand-primary: #818CF8;
  --mono-brand-accent: #38BDF8;
  --mono-brand-accent-hover: #0284C7;
  --mono-brand-accent-subtle: rgba(56, 189, 248, 0.15);
  --mono-brand-accent-border: rgba(56, 189, 248, 0.35);

  --mono-border-subtle: rgba(255, 255, 255, 0.08);
  --mono-border-default: rgba(255, 255, 255, 0.12);
  --mono-border-strong: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mono-bg-canvas: #080A10;
    --mono-bg-surface: #0E121D;
    --mono-bg-subtle: #131826;
    --mono-bg-muted: #1A2133;
    --mono-bg-highlight: #1E2744;

    --mono-text-primary: #F8FAFC;
    --mono-text-secondary: #94A3B8;
    --mono-text-muted: #64748B;
    --mono-text-placeholder: #475569;
    --mono-text-inverse: #080A10;

    --mono-brand-primary: #818CF8;
    --mono-brand-accent: #38BDF8;
    --mono-brand-accent-hover: #0284C7;
    --mono-brand-accent-subtle: rgba(56, 189, 248, 0.15);
    --mono-brand-accent-border: rgba(56, 189, 248, 0.35);

    --mono-border-subtle: rgba(255, 255, 255, 0.08);
    --mono-border-default: rgba(255, 255, 255, 0.12);
    --mono-border-strong: rgba(255, 255, 255, 0.2);
  }
}

/* Responsive Navbar & Navigation Utilities */
@media (min-width: 900px) {
  .desktop-nav {
    display: flex !important;
  }
  .desktop-only-btn {
    display: flex !important;
  }
  .mobile-menu-trigger {
    display: none !important;
  }
  .search-cmd-badge {
    display: inline-block !important;
  }
}

@media (max-width: 899px) {
  .mobile-bottom-bar {
    display: flex !important;
  }
  body {
    padding-bottom: 60px;
  }
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Theme Tokens: Editorial Academic */
  --bg-app: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #eef0f3;
  --bg-subtle: #fafbfc;
  --bg-input: #ffffff;
  --bg-highlight: #e3eaf6;

  --border-hairline: #e6e8ec;
  --border-default: #d0d4da;
  --border-strong: #9aa1ab;
  --border-focus: #1d4ed8;

  --text-primary: #121826;
  --text-secondary: #344054;
  --text-muted: #647183;
  --text-inverse: #ffffff;

  /* MonoMath Academic Palette — restrained, single-accent */
  --brand-primary: #152b52; /* Deep Oxford Navy */
  --brand-primary-hover: #0e1f3d;
  --brand-accent: #2048a0; /* Academic Blue */
  --brand-accent-subtle: #eef2fa;
  --brand-cyan: #16799c;
  --brand-emerald: #2f6f57;
  --brand-amber: #9a6a0d;
  --brand-rose: #a23943;
  --brand-purple: #5b4a8f; /* kept only for the 4-course roadmap map */

  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.05);
  --shadow-md: 0 1px 2px rgba(18, 24, 38, 0.04), 0 12px 32px -20px rgba(18, 24, 38, 0.28);
  --shadow-lg: 0 2px 4px rgba(18, 24, 38, 0.04), 0 28px 56px -28px rgba(18, 24, 38, 0.34);

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;

  --container: 1200px;
  --measure: 62ch;
}

[data-theme="dark"] {
  --bg-app: #0a0d14;
  --bg-surface: #12161f;
  --bg-surface-elevated: #1a1f2b;
  --bg-muted: #171c27;
  --bg-subtle: #0e1219;
  --bg-input: #12161f;
  --bg-highlight: #1a2440;

  --border-hairline: #232a38;
  --border-default: #313a4c;
  --border-strong: #4a5468;
  --border-focus: #5b8def;

  --text-primary: #eff2f7;
  --text-secondary: #c3cad6;
  --text-muted: #8b94a5;
  --text-inverse: #10141d;

  --brand-primary: #8fa9e0;
  --brand-primary-hover: #b3c5ec;
  --brand-accent: #7a9ce8;
  --brand-accent-subtle: rgba(122, 156, 232, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 30px 60px -26px rgba(0, 0, 0, 0.65);

  --brand-cyan: #3b9cc1;
  --brand-emerald: #6fbba0;
  --brand-amber: #d3a23e;
  --brand-rose: #e08a90;
  --brand-purple: #a897d8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Typography: serif display + sans subheads (editorial pairing) ── */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--text-primary);
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { max-width: var(--measure); }

a {
  color: var(--brand-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--bg-highlight);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Utility: editorial kicker (small-caps labelled rule) ── */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ── Card System ── */
.academic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.academic-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

/* ── Button System ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: var(--border-strong);
}

.btn-accent {
  background-color: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

.btn-accent:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

/* ── Badge System ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-blue {
  background-color: #eef2fa;
  color: #2048a0;
  border-color: #d4ddf0;
}

.badge-green {
  background-color: #eaf3ef;
  color: #2f6f57;
  border-color: #cfe2d9;
}

.badge-amber {
  background-color: #faf3e3;
  color: #9a6a0d;
  border-color: #ebdcc0;
}

.badge-purple {
  background-color: #f0edf7;
  color: #5b4a8f;
  border-color: #ddd5ec;
}

.badge-slate {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border-color: var(--border-hairline);
}

/* KaTeX formatting overrides */
.katex {
  font-size: 1.04em !important;
  color: inherit;
}

.katex-display {
  margin: 14px 0 !important;
}

/* Exam Paper Print Stylesheet */
@page {
  size: A4;
  margin: 15mm 15mm 15mm 15mm;
}

/* ==========================================================================
   Ambient + Glass utilities (restrained by default)
   ========================================================================== */

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 232, 236, 0.9);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .glass-panel {
  background: rgba(18, 22, 31, 0.8);
  border: 1px solid rgba(49, 58, 76, 0.7);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glass-card:hover, .card-interactive:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.glow-accent {
  position: relative;
}

.glow-accent::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(32, 72, 160, 0.18), rgba(22, 121, 156, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ambient-gradient-mesh {
  position: relative;
  overflow: hidden;
}

.ambient-gradient-mesh::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(32, 72, 160, 0.05) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.ambient-gradient-mesh::after {
  content: '';
  position: absolute;
  top: 12%;
  right: 4%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 121, 156, 0.04) 0%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .ambient-gradient-mesh::before {
  background: radial-gradient(circle, rgba(122, 156, 232, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .ambient-gradient-mesh::after {
  background: radial-gradient(circle, rgba(59, 156, 193, 0.08) 0%, transparent 70%);
}

/* 3D Formula Flip Cards */
.perspective-1000 {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Pulsing badge */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  box-shadow: 0 0 0 0 rgba(47, 111, 87, 0.6);
  animation: pulse-ring 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 111, 87, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(47, 111, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 111, 87, 0);
  }
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header, nav, footer, .no-print {
    display: none !important;
  }

  .pdf-modal-backdrop {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }

  #printable-pyq-document, #printable-ib-paper, #printable-formula-sheet {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

  #printable-formula-sheet {
    page-break-after: avoid !important;
  }

  .print-only {
    display: block !important;
  }

  .exam-page {
    page-break-after: always;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .exam-question-box {
    page-break-inside: avoid;
    border-bottom: 1px solid #000000 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
  }
}

/* Responsive KaTeX Math Overflow Protection & Baseline Alignment */
.math-rendered {
  max-width: 100%;
  display: inline;
  line-height: inherit;
}

.math-rendered .katex {
  font-size: 1.04em;
  text-rendering: auto;
  line-height: normal;
  display: inline-block;
  vertical-align: -0.06em;
}

.math-rendered .katex-display {
  display: block !important;
  text-align: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 0 !important;
  margin: 0.75em 0 !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

.math-rendered .katex-display .mtable {
  margin: 0 auto !important;
}

.math-rendered .katex-display::-webkit-scrollbar {
  height: 4px;
}

.math-rendered .katex-display::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

.math-block-container {
  display: block !important;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.katex-error {
  color: inherit !important;
  font-family: var(--font-mono) !important;
  font-style: normal !important;
  background: transparent !important;
}

.math-fallback {
  font-family: var(--font-mono);
  font-style: normal;
  display: inline;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1280px) {
  .desktop-nav {
    display: flex !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 1279px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Compact header on small screens: hide secondary action buttons and
   secondary logo text to prevent horizontal page overflow. */
@media (max-width: 719px) {
  .hdr-search-btn,
  .hdr-sound-btn,
  .hdr-shortcuts-btn {
    display: none !important;
  }
  .monomath-brand-lockup > div:last-child > div > span:last-child,
  .monomath-brand-lockup > div:last-child > span:last-child {
    display: none !important;
  }
}

/* ── Student Command Center 2-Column Responsive Layout ── */
.command-center-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1023px) {
  .command-center-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .mobile-tab-bar {
    display: block !important;
  }
}

/* ── Linear / Raycast Dark Aesthetic Utilities ── */
.linear-dark-canvas {
  background-color: #080A10;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 70%, rgba(139, 92, 246, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 30% at 10% 40%, rgba(6, 182, 212, 0.06), transparent 60%);
  color: #F1F5F9;
  font-family: var(--font-sans);
}

.linear-glass-panel {
  background: rgba(17, 21, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.linear-glass-card {
  background: rgba(17, 21, 33, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.linear-glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.linear-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.linear-pill-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #E2E8F0;
}

.linear-pill-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.gradient-title-dark {
  background: linear-gradient(180deg, #FFFFFF 15%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-sans) !important;
  letter-spacing: -0.03em;
}

.gradient-accent-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.linear-dark-canvas .universal-search-box {
  background: rgba(18, 23, 36, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.linear-dark-canvas .universal-search-box:focus-within {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.linear-dark-canvas .universal-search-box input {
  color: #F8FAFC !important;
}

.linear-dark-canvas .universal-search-box input::placeholder {
  color: #64748B !important;
}

.linear-dark-canvas .search-cmd-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #94A3B8 !important;
}

/* ── Modern Brilliant.org / Revision Village Style Utilities ── */
.rv-canvas {
  background: #FFFFFF;
  color: var(--mono-text-primary, #0F172A);
  font-family: var(--font-sans);
}

.rv-hero-gradient {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  position: relative;
}

.rv-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.rv-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
}

.rv-primary-btn {
  background: #4F46E5;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  transition: all 0.15s ease;
}

.rv-primary-btn:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
}

.rv-secondary-btn {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.rv-secondary-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.rv-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rv-step-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.18s ease;
  overflow: hidden;
}

.rv-step-item:hover {
  border-color: #CBD5E1;
}

.rv-step-item.active {
  border-color: #818CF8;
  box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .rv-canvas {
  background: #0A0D14;
  color: #F1F5F9;
}

[data-theme="dark"] .rv-hero-gradient {
  background: linear-gradient(180deg, #0D111A 0%, #0A0D14 100%);
}

[data-theme="dark"] .rv-card {
  background: #111520;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .rv-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .rv-secondary-btn {
  background: #161B28;
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .rv-secondary-btn:hover {
  background: #1E2538;
}

[data-theme="dark"] .rv-step-item {
  background: #111520;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .rv-step-item.active {
  border-color: #6366F1;
}