/* Regras exclusivas do Universo Financeiro. */
#study.uf-active,#qg.uf-hub{--uf-gold:#f0cb76;--uf-text:#fff8e7;--uf-muted:#ddd7c4;--uf-coral:#efa48c;--uf-line:#d4b46c55;color:var(--uf-text)}
#qg.uf-hub #qg-view{display:block}
#qg.uf-hub .uf-hub-block{margin:1.5rem 0 2.5rem;padding:0 0 1rem;border-bottom:1px solid var(--uf-line)}
#qg.uf-hub .uf-hub-block h3{font:600 clamp(1.35rem,3vw,1.85rem)/1.35 Georgia,serif;color:var(--uf-gold);margin-bottom:.6rem}
#qg.uf-hub .uf-hub-block>p{color:var(--uf-muted);max-width:75ch;line-height:1.6}
#qg.uf-hub .uf-course-list{display:grid;margin-top:1rem}
#qg.uf-hub .uf-course-link{display:flex;justify-content:space-between;gap:1.2rem;align-items:center;padding:1.1rem .5rem;border-top:1px solid var(--uf-line);color:var(--uf-text);text-decoration:none;border-radius:.2rem}
#qg.uf-hub .uf-course-link>span:first-child{display:grid;gap:.35rem}
#qg.uf-hub .uf-course-link strong{font-size:1.05rem}
#qg.uf-hub .uf-course-link span span{font-size:.9rem;color:var(--uf-muted);line-height:1.5}
#qg.uf-hub .uf-study{white-space:nowrap;font-size:.9rem;color:var(--uf-gold)}
#qg.uf-hub .uf-course-link:hover{background:#403b2333;color:var(--uf-gold)}
#qg.uf-hub .section-nav-back{width:auto;min-width:5rem;height:2.75rem;margin-top:0;padding:0 1rem;border:1px solid var(--uf-line);border-radius:.5rem;clip-path:none;background:#2b2b20;box-shadow:none;filter:none}
#qg.uf-hub .section-nav-back::before{content:'Voltar';font:600 .875rem system-ui,sans-serif;color:var(--uf-gold)}
#qg.uf-hub .section-nav-back:hover{transform:none;background:#3b3826;filter:none}
#qg.uf-hub .section-nav-back:active{transform:none;background:#46422d}
#study.uf-active .study-kicker{letter-spacing:.09em;font-size:.8rem;color:var(--uf-gold)}
#study.uf-active .study-heading{background:linear-gradient(130deg,#2c2b20,#1f2420);box-shadow:none;border-radius:1rem;padding:clamp(1.4rem,4vw,2.6rem);margin-bottom:2rem}
#study.uf-active .study-heading::after{display:none}
#study.uf-active .study-heading h1{font:600 clamp(1.9rem,4vw,2.8rem)/1.2 Georgia,serif;color:var(--uf-gold)}
#study.uf-active #study-start-button{margin-top:1.3rem}
#study.uf-active .uf-lesson{max-width:1000px;margin:auto;line-height:1.75;font-size:1.04rem;overflow-wrap:anywhere}
#study.uf-active .uf-reading,#study.uf-active .uf-worked,#study.uf-active .uf-investigation,#study.uf-active .uf-practice,#study.uf-active .uf-references{margin:0 0 2.8rem;min-width:0}
#study.uf-active :is(.uf-reading,.uf-worked,.uf-investigation,.uf-practice,.uf-references) h2,#qg.uf-hub .uf-lab h2{font:600 clamp(1.35rem,3vw,1.85rem)/1.35 Georgia,serif;color:var(--uf-text);margin:0 0 1rem}
#study.uf-active .uf-lesson p{max-width:80ch;color:var(--uf-muted);margin:.85rem 0}
#study.uf-active .uf-lesson strong,#qg.uf-hub .uf-lab strong{color:var(--uf-gold)}
#study.uf-active .uf-source-note{font-size:.9rem;border-left:3px solid var(--uf-line);padding-left:1rem}
#study.uf-active .uf-worked{border-left:3px solid var(--uf-gold);padding:0 0 0 1.25rem;background:transparent}
#study.uf-active .uf-worked li{padding:.35rem 0;color:var(--uf-muted)}
#study.uf-active .uf-conclusion{color:var(--uf-text)!important}
#study.uf-active .uf-formula,#qg.uf-hub .uf-formula{font:500 clamp(1.1rem,2.6vw,1.4rem)/1.8 Georgia,serif;color:var(--uf-gold)!important;background:#343523;padding:.8rem 1rem;border-radius:.5rem;overflow-wrap:anywhere}
#study.uf-active .uf-timeline{display:flex;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
#study.uf-active .uf-timeline>span{flex:1;min-width:150px;border-top:2px solid var(--uf-gold);padding:.8rem;color:var(--uf-muted);background:#303223}
#study.uf-active .uf-investigation{padding:1.2rem 1.4rem;border:1px solid var(--uf-line);border-radius:.65rem}
:is(#study.uf-active,#qg.uf-hub) .uf-lab{background:linear-gradient(140deg,#2d2d23,#192523);border:1px solid var(--uf-line);border-radius:1rem;padding:clamp(1rem,3.5vw,2.1rem);margin:2rem 0 3rem;min-width:0;line-height:1.7}
:is(#study.uf-active,#qg.uf-hub) .uf-lab h2{color:var(--uf-gold)}
:is(#study.uf-active,#qg.uf-hub) .uf-eyebrow{font-size:.75rem;letter-spacing:.12em;color:var(--uf-gold)!important}
:is(#study.uf-active,#qg.uf-hub) .uf-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:1rem;margin:1.2rem 0}
:is(#study.uf-active,#qg.uf-hub) .uf-controls label{display:flex;flex-direction:column;gap:.4rem;min-width:0;overflow-wrap:anywhere;color:var(--uf-text);font-size:.95rem}
:is(#study.uf-active,#qg.uf-hub) .uf-wide{grid-column:1/-1}
:is(#study.uf-active,#qg.uf-hub) :is(.uf-lab,.uf-practice,.uf-calculator) :is(input,select,button){font:inherit;min-height:44px;max-width:100%;border:1px solid var(--uf-line);border-radius:.4rem;padding:.55rem .7rem;background:#202821;color:var(--uf-text);box-sizing:border-box}
:is(#study.uf-active,#qg.uf-hub) :is(.uf-lab,.uf-practice,.uf-calculator) :is(input,select){width:100%;min-width:0}
:is(#study.uf-active,#qg.uf-hub) button{cursor:pointer}
:is(#study.uf-active,#qg.uf-hub) button:hover{background:#46422d;border-color:var(--uf-gold)}
:is(#study.uf-active,#qg.uf-hub) button:disabled{opacity:.6;cursor:default}
:is(#study.uf-active,#qg.uf-hub) [aria-invalid=true]{border-color:#ffc1b0!important}
:is(#study.uf-active,#qg.uf-hub) :is(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #ffe0a0;outline-offset:3px}
:is(#study.uf-active,#qg.uf-hub) .uf-actions,:is(#study.uf-active,#qg.uf-hub) .uf-options{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0}
:is(#study.uf-active,#qg.uf-hub) .uf-validation{color:#ffc1b0!important;white-space:normal}
:is(#study.uf-active,#qg.uf-hub) .uf-validation:empty{display:none}
:is(#study.uf-active,#qg.uf-hub) .uf-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:.8rem;margin:1.5rem 0}
:is(#study.uf-active,#qg.uf-hub) .uf-results>div{border-top:1px solid var(--uf-line);padding:.7rem 0;min-width:0}
:is(#study.uf-active,#qg.uf-hub) .uf-results dt{font-size:.85rem;color:var(--uf-muted)}
:is(#study.uf-active,#qg.uf-hub) .uf-results dd{margin:.35rem 0;color:var(--uf-gold);font-size:1.15rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:is(#study.uf-active,#qg.uf-hub) .uf-calculation{border-top:1px dashed var(--uf-line);padding-top:.65rem}
:is(#study.uf-active,#qg.uf-hub) .uf-table-wrap{overflow:auto;width:100%;margin:1.3rem 0;border:1px solid var(--uf-line);border-radius:.4rem;max-height:34rem}
:is(#study.uf-active,#qg.uf-hub) table{border-collapse:collapse;min-width:100%;font-size:.9rem;font-variant-numeric:tabular-nums}
:is(#study.uf-active,#qg.uf-hub) caption{text-align:left;padding:.8rem;color:var(--uf-text);background:#242f27}
:is(#study.uf-active,#qg.uf-hub) th,:is(#study.uf-active,#qg.uf-hub) td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid var(--uf-line);white-space:nowrap}
:is(#study.uf-active,#qg.uf-hub) thead th{color:var(--uf-gold);background:#26302a;position:sticky;top:0}
:is(#study.uf-active,#qg.uf-hub) .uf-two{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
:is(#study.uf-active,#qg.uf-hub) .uf-grid100{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;max-width:300px}
:is(#study.uf-active,#qg.uf-hub) .uf-grid100 span{aspect-ratio:1;border:1px solid var(--uf-line);background:linear-gradient(90deg,var(--uf-gold) var(--fill),#1b2825 var(--fill))}
:is(#study.uf-active,#qg.uf-hub) .uf-big{font-size:2.4rem;color:var(--uf-gold)!important;text-align:center}
:is(#study.uf-active,#qg.uf-hub) .uf-graph{margin:1.7rem 0;background:#1b2723;padding:.8rem;border-radius:.5rem;min-width:0}
:is(#study.uf-active,#qg.uf-hub) .uf-graph svg{display:block;width:100%;height:auto;max-height:360px}
:is(#study.uf-active,#qg.uf-hub) .uf-graph text{fill:var(--uf-muted);font:13px system-ui,sans-serif}
:is(#study.uf-active,#qg.uf-hub) .uf-axis{fill:none;stroke:#b5bba7;stroke-width:1}
:is(#study.uf-active,#qg.uf-hub) .uf-line-0{fill:none;stroke:var(--uf-gold);stroke-width:3}
:is(#study.uf-active,#qg.uf-hub) .uf-line-1{fill:none;stroke:var(--uf-coral);stroke-width:3;stroke-dasharray:7 5}
:is(#study.uf-active,#qg.uf-hub) .uf-legend{display:flex;flex-wrap:wrap;gap:1rem;font-size:.85rem}
:is(#study.uf-active,#qg.uf-hub) .uf-key-0{color:var(--uf-gold)}
:is(#study.uf-active,#qg.uf-hub) .uf-key-1{color:var(--uf-coral)}
:is(#study.uf-active,#qg.uf-hub) .uf-payment-bars{display:grid;gap:.6rem;max-height:20rem;overflow:auto;padding:.4rem}
:is(#study.uf-active,#qg.uf-hub) .uf-payment-bar{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;text-align:left}
:is(#study.uf-active,#qg.uf-hub) .uf-bar-track{display:flex;height:20px;min-width:0}
:is(#study.uf-active,#qg.uf-hub) .uf-principal{background:var(--uf-gold)}
:is(#study.uf-active,#qg.uf-hub) .uf-interest{background:var(--uf-coral)}
:is(#study.uf-active,#qg.uf-hub) [aria-pressed=true]{border-color:var(--uf-gold)!important;background:#45432d!important}
#study.uf-active [data-result=retry]{border-color:var(--uf-coral)!important}
:is(#study.uf-active,#qg.uf-hub) details{margin:1rem 0;border-top:1px solid var(--uf-line);padding-top:.7rem}
:is(#study.uf-active,#qg.uf-hub) summary{cursor:pointer;min-height:44px;padding:.3rem 0;color:var(--uf-gold);font-weight:600}
#study.uf-active .uf-references a,#qg.uf-hub .uf-calculator a{color:var(--uf-gold);text-underline-offset:.2rem}
#study.uf-active .uf-feedback{padding:.5rem 0;color:var(--uf-gold)!important}
#qg.uf-hub .uf-calculator{min-width:0;padding:1rem;border:1px solid var(--uf-line);border-radius:.7rem;margin:2rem 0}
#qg.uf-hub .uf-calculator>label{display:grid;gap:.4rem;min-width:0;margin:1rem 0;overflow-wrap:anywhere}
#qg.uf-hub .uf-calculator [data-calculator]{display:flow-root;min-width:0}
#qg.uf-hub .uf-calculator>summary{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
:is(#study.uf-active,#qg.uf-hub) [hidden]{display:none!important}
@media(max-width:600px){:is(#study.uf-active,#qg.uf-hub) .uf-two{grid-template-columns:1fr}#qg.uf-hub .uf-course-link{align-items:flex-start}#qg.uf-hub .uf-study{font-size:.8rem}#study.uf-active .uf-worked{padding-left:.85rem}:is(#study.uf-active,#qg.uf-hub) .uf-payment-bar{grid-template-columns:1fr;gap:.3rem}:is(#study.uf-active,#qg.uf-hub) .uf-lab{padding:1rem}#study.uf-active .uf-formula{font-size:1.08rem}}
@media(prefers-reduced-motion:reduce){:is(#study.uf-active,#qg.uf-hub) *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
