@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(../media/KaTeX_AMS-Regular.BQhdFMY1.woff2)format("woff2"),url(../media/KaTeX_AMS-Regular.DMm9YOAa.woff)format("woff"),url(../media/KaTeX_AMS-Regular.DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(../media/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2)format("woff2"),url(../media/KaTeX_Caligraphic-Bold.BEiXGLvX.woff)format("woff"),url(../media/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(../media/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2)format("woff2"),url(../media/KaTeX_Caligraphic-Regular.CTRA-rTL.woff)format("woff"),url(../media/KaTeX_Caligraphic-Regular.wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(../media/KaTeX_Fraktur-Bold.CL6g_b3V.woff2)format("woff2"),url(../media/KaTeX_Fraktur-Bold.BsDP51OF.woff)format("woff"),url(../media/KaTeX_Fraktur-Bold.BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(../media/KaTeX_Fraktur-Regular.CTYiF6lA.woff2)format("woff2"),url(../media/KaTeX_Fraktur-Regular.Dxdc4cR9.woff)format("woff"),url(../media/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(../media/KaTeX_Main-Bold.Cx986IdX.woff2)format("woff2"),url(../media/KaTeX_Main-Bold.Jm3AIy58.woff)format("woff"),url(../media/KaTeX_Main-Bold.waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(../media/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2)format("woff2"),url(../media/KaTeX_Main-BoldItalic.SpSLRI95.woff)format("woff"),url(../media/KaTeX_Main-BoldItalic.DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(../media/KaTeX_Main-Italic.NWA7e6Wa.woff2)format("woff2"),url(../media/KaTeX_Main-Italic.BMLOBm91.woff)format("woff"),url(../media/KaTeX_Main-Italic.3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(../media/KaTeX_Main-Regular.B22Nviop.woff2)format("woff2"),url(../media/KaTeX_Main-Regular.Dr94JaBh.woff)format("woff"),url(../media/KaTeX_Main-Regular.ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(../media/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2)format("woff2"),url(../media/KaTeX_Math-BoldItalic.iY-2wyZ7.woff)format("woff"),url(../media/KaTeX_Math-BoldItalic.B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(../media/KaTeX_Math-Italic.t53AETM-.woff2)format("woff2"),url(../media/KaTeX_Math-Italic.DA0__PXp.woff)format("woff"),url(../media/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(../media/KaTeX_SansSerif-Bold.D1sUS0GD.woff2)format("woff2"),url(../media/KaTeX_SansSerif-Bold.DbIhKOiC.woff)format("woff"),url(../media/KaTeX_SansSerif-Bold.CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(../media/KaTeX_SansSerif-Italic.C3H0VqGB.woff2)format("woff2"),url(../media/KaTeX_SansSerif-Italic.DN2j7dab.woff)format("woff"),url(../media/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(../media/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2)format("woff2"),url(../media/KaTeX_SansSerif-Regular.CS6fqUqJ.woff)format("woff"),url(../media/KaTeX_SansSerif-Regular.BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(../media/KaTeX_Script-Regular.D3wIWfF6.woff2)format("woff2"),url(../media/KaTeX_Script-Regular.D5yQViql.woff)format("woff"),url(../media/KaTeX_Script-Regular.C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(../media/KaTeX_Size1-Regular.mCD8mA8B.woff2)format("woff2"),url(../media/KaTeX_Size1-Regular.C195tn64.woff)format("woff"),url(../media/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(../media/KaTeX_Size2-Regular.Dy4dx90m.woff2)format("woff2"),url(../media/KaTeX_Size2-Regular.oD1tc_U0.woff)format("woff"),url(../media/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/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0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HQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(../media/KaTeX_Size3-Regular.CTq5MqoE.woff)format("woff"),url(../media/KaTeX_Size3-Regular.DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(../media/KaTeX_Size4-Regular.Dl5lxZxV.woff2)format("woff2"),url(../media/KaTeX_Size4-Regular.BF-4gkZK.woff)format("woff"),url(../media/KaTeX_Size4-Regular.DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(../media/KaTeX_Typewriter-Regular.CO6r4hn1.woff2)format("woff2"),url(../media/KaTeX_Typewriter-Regular.C0xS9mPB.woff)format("woff"),url(../media/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif;position:relative}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.katex .base,.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;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{line-height:0;display:inline}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.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{width:.12em;display:inline-block}.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 .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.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;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.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{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;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{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-family:Source Code Pro;font-weight:100 900;font-style:normal;src:url(../media/SourceCodeVF-Upright.ttf.BjWn63N-.woff2)format("woff2")}@font-face{font-family:Source Code Pro;font-weight:100 900;font-style:italic;src:url(../media/SourceCodeVF-Italic.ttf.Ba1oaZG1.woff2)format("woff2")}@font-face{font-family:Source Sans;font-weight:100 900;font-style:normal;src:url(../media/SourceSansVF-Upright.ttf.BsWL4Kly.woff2)format("woff2")}@font-face{font-family:Source Sans;font-weight:100 900;font-style:italic;src:url(../media/SourceSansVF-Italic.ttf.Bt9VkdQ3.woff2)format("woff2")}@font-face{font-family:Source Serif;font-weight:100 900;font-style:normal;src:url(../media/SourceSerifVariable-Roman.ttf.mdpVL9bi.woff2)format("woff2")}@font-face{font-family:Source Serif;font-weight:100 900;font-style:italic;src:url(../media/SourceSerifVariable-Italic.ttf.CVdzAtxO.woff2)format("woff2")}@font-face{font-family:Material Symbols Rounded;font-style:normal;font-weight:400;font-display:block;src:url(../media/MaterialSymbols-Rounded.BFs6ZT6g.woff2)format("woff2")}


/* ca-parts-style-v5 — full token set from docs/UI_STYLE.md */
:root {
  /* 10 design tokens copied from Parts UI_STYLE.md */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --good: #16a34a;
  --warn: #ca8a04;
  --bad: #dc2626;
  --accent: #3b82f6;
  --accent-light: #2563eb;
  /* Aliases retained from earlier (--ca-* names still referenced below) */
  --ca-bg: var(--bg);
  --ca-card-bg: var(--card-bg);
  --ca-text: var(--text);
  --ca-text-muted: var(--text-muted);
  --ca-border: var(--border);
  --ca-accent: var(--good);          /* primary action stays green */
  --ca-accent-hover: #15803d;
  --ca-bad: var(--bad);
}

/* ---- Base typography + page chrome ---- */
html, body, section[data-testid="stAppViewContainer"] {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  color: var(--text);
}
section[data-testid="stMain"] { background: var(--bg) !important; }
[data-testid="stMainBlockContainer"]{
  max-width:100%!important; width:100%!important;
  padding: 1.25rem 1.5rem 2rem 1.5rem !important;
}

/* Hide sidebar and its toggle entirely */
[data-testid="stSidebar"]{display:none!important}
[data-testid="stSidebarCollapseButton"]{display:none!important}
[data-testid="collapsedControl"]{display:none!important}
header[data-testid="stHeader"]{background:transparent!important;}

/* Standard Streamlit headings reuse Parts scale */
h1, .stMarkdown h1 { font-size: 24px; font-weight: 700; color: var(--text); }
h2, .stMarkdown h2 { font-size: 18px; font-weight: 600; color: var(--text); }
h3, .stMarkdown h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.stCaption, [data-testid="stCaptionContainer"] { color: var(--text-muted) !important; }

/* Subheader (st.subheader) — used heavily for "Step 1 / Step 2 / ..." */
[data-testid="stHeading"] h2,
[data-testid="stHeading"] h3 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Streamlit metric cards (used on Ready to Close + Commission Audit) */
[data-testid="stMetric"] {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
[data-testid="stMetricLabel"] {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted) !important;
  font-weight: 600;
}
[data-testid="stMetricValue"] {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Dataframe / data_editor — match Parts table conventions */
[data-testid="stDataFrame"], [data-testid="stDataEditor"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* Banners: st.success / st.info / st.warning / st.error rendered with
   Parts' accent palette (left-border strip + tinted background). */
[data-testid="stAlertContainer"] {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  border-left-width: 4px !important;
}
[data-testid="stAlertContainer"][kind="success"] {
  background: #ecfdf5 !important;
  border-left-color: var(--good) !important;
  color: #065f46 !important;
}
[data-testid="stAlertContainer"][kind="info"] {
  background: #eff6ff !important;
  border-left-color: var(--accent) !important;
  color: #1e40af !important;
}
[data-testid="stAlertContainer"][kind="warning"] {
  background: #fef3c7 !important;
  border-left-color: var(--warn) !important;
  color: #92400e !important;
}
[data-testid="stAlertContainer"][kind="error"] {
  background: #fef2f2 !important;
  border-left-color: var(--bad) !important;
  color: #991b1b !important;
}

/* Divider line softer than Streamlit default */
[data-testid="stDivider"] hr,
hr { border-color: var(--border) !important; }

/* ---- Header card ---- */
.ca-header {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ca-header-left h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.ca-header-left .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}
.ca-header-right {
  text-align: right;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.ca-header-right strong { color: var(--text); }
.ca-status-dot { font-size: 10px; vertical-align: 1px; }

/* ---- Top nav — Streamlit buttons styled to look like Parts .nav-link ---- */
/* st.container(key="ca_nav") emits a wrapper div with class st-key-ca_nav.
   We turn that into the Parts .top-nav card and restyle the buttons inside. */
.st-key-ca_nav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 20px;
}
.st-key-ca_nav [data-testid="stHorizontalBlock"]{
  gap: 6px !important;
  align-items: center;
}
.st-key-ca_nav [data-testid="stColumn"]{
  padding: 0 !important;
}
.st-key-ca_nav .stButton > button {
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  white-space: nowrap !important;
  transition: background-color 0.15s, color 0.15s;
}
.st-key-ca_nav .stButton > button:hover {
  background: rgba(0,0,0,0.04) !important;
  color: var(--text) !important;
  border-color: transparent !important;
}
.st-key-ca_nav .stButton > button[kind="primary"]{
  background: var(--ca-accent) !important;
  color: #ffffff !important;
}
.st-key-ca_nav .stButton > button[kind="primary"]:hover {
  background: var(--ca-accent-hover) !important;
  color: #ffffff !important;
}
/* Sign-out button hovers red like Parts .logout-link */
.st-key-navbtn_signout button:hover,
.st-key-ca_nav .stButton [data-key="navbtn_signout"]:hover {
  background: rgba(220,38,38,0.06) !important;
  color: var(--bad) !important;
}


/* ca-parts-style-v5 — full token set from docs/UI_STYLE.md */
:root {
  /* 10 design tokens copied from Parts UI_STYLE.md */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --good: #16a34a;
  --warn: #ca8a04;
  --bad: #dc2626;
  --accent: #3b82f6;
  --accent-light: #2563eb;
  /* Aliases retained from earlier (--ca-* names still referenced below) */
  --ca-bg: var(--bg);
  --ca-card-bg: var(--card-bg);
  --ca-text: var(--text);
  --ca-text-muted: var(--text-muted);
  --ca-border: var(--border);
  --ca-accent: var(--good);          /* primary action stays green */
  --ca-accent-hover: #15803d;
  --ca-bad: var(--bad);
}

/* ---- Base typography + page chrome ---- */
html, body, section[data-testid="stAppViewContainer"] {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  color: var(--text);
}
section[data-testid="stMain"] { background: var(--bg) !important; }
[data-testid="stMainBlockContainer"]{
  max-width:100%!important; width:100%!important;
  padding: 1.25rem 1.5rem 2rem 1.5rem !important;
}

/* Hide sidebar and its toggle entirely */
[data-testid="stSidebar"]{display:none!important}
[data-testid="stSidebarCollapseButton"]{display:none!important}
[data-testid="collapsedControl"]{display:none!important}
header[data-testid="stHeader"]{background:transparent!important;}

/* Standard Streamlit headings reuse Parts scale */
h1, .stMarkdown h1 { font-size: 24px; font-weight: 700; color: var(--text); }
h2, .stMarkdown h2 { font-size: 18px; font-weight: 600; color: var(--text); }
h3, .stMarkdown h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.stCaption, [data-testid="stCaptionContainer"] { color: var(--text-muted) !important; }

/* Subheader (st.subheader) — used heavily for "Step 1 / Step 2 / ..." */
[data-testid="stHeading"] h2,
[data-testid="stHeading"] h3 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Streamlit metric cards (used on Ready to Close + Commission Audit) */
[data-testid="stMetric"] {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
[data-testid="stMetricLabel"] {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted) !important;
  font-weight: 600;
}
[data-testid="stMetricValue"] {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Dataframe / data_editor — match Parts table conventions */
[data-testid="stDataFrame"], [data-testid="stDataEditor"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* Banners: st.success / st.info / st.warning / st.error rendered with
   Parts' accent palette (left-border strip + tinted background). */
[data-testid="stAlertContainer"] {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  border-left-width: 4px !important;
}
[data-testid="stAlertContainer"][kind="success"] {
  background: #ecfdf5 !important;
  border-left-color: var(--good) !important;
  color: #065f46 !important;
}
[data-testid="stAlertContainer"][kind="info"] {
  background: #eff6ff !important;
  border-left-color: var(--accent) !important;
  color: #1e40af !important;
}
[data-testid="stAlertContainer"][kind="warning"] {
  background: #fef3c7 !important;
  border-left-color: var(--warn) !important;
  color: #92400e !important;
}
[data-testid="stAlertContainer"][kind="error"] {
  background: #fef2f2 !important;
  border-left-color: var(--bad) !important;
  color: #991b1b !important;
}

/* Divider line softer than Streamlit default */
[data-testid="stDivider"] hr,
hr { border-color: var(--border) !important; }

/* ---- Header card ---- */
.ca-header {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ca-header-left h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.ca-header-left .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}
.ca-header-right {
  text-align: right;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.ca-header-right strong { color: var(--text); }
.ca-status-dot { font-size: 10px; vertical-align: 1px; }

/* ---- Top nav — Streamlit buttons styled to look like Parts .nav-link ---- */
/* st.container(key="ca_nav") emits a wrapper div with class st-key-ca_nav.
   We turn that into the Parts .top-nav card and restyle the buttons inside. */
.st-key-ca_nav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 20px;
}
.st-key-ca_nav [data-testid="stHorizontalBlock"]{
  gap: 6px !important;
  align-items: center;
}
.st-key-ca_nav [data-testid="stColumn"]{
  padding: 0 !important;
}
.st-key-ca_nav .stButton > button {
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  white-space: nowrap !important;
  transition: background-color 0.15s, color 0.15s;
}
.st-key-ca_nav .stButton > button:hover {
  background: rgba(0,0,0,0.04) !important;
  color: var(--text) !important;
  border-color: transparent !important;
}
.st-key-ca_nav .stButton > button[kind="primary"]{
  background: var(--ca-accent) !important;
  color: #ffffff !important;
}
.st-key-ca_nav .stButton > button[kind="primary"]:hover {
  background: var(--ca-accent-hover) !important;
  color: #ffffff !important;
}
/* Sign-out button hovers red like Parts .logout-link */
.st-key-navbtn_signout button:hover,
.st-key-ca_nav .stButton [data-key="navbtn_signout"]:hover {
  background: rgba(220,38,38,0.06) !important;
  color: var(--bad) !important;
}
