/* v144 — estilos restritos às aulas de Matemática Essencial. */
#study .essential-lesson { --er-accent:var(--xb-accent,var(--deep-accent,#edc595)); --er-line:var(--xb-line,var(--deep-edge,#a88491)); --er-panel:var(--xb-panel,var(--deep-panel,#50394a)); }
#study .essential-lesson [hidden] { display:none!important; }
#study .essential-lesson .er-section { min-width:0; }
#study .essential-lesson .er-section > header { max-width:75ch; margin-bottom:1.8rem; }
#study .essential-lesson .er-section > header h2 { margin:0 0 .8rem; }
#study .essential-lesson .er-section p { font-size:1.0625rem; line-height:1.65; }
#study .essential-lesson :is(.er-controls,.er-choices) { display:flex; flex-wrap:wrap; align-items:end; gap:.8rem; margin:1rem 0; }
#study .essential-lesson .er-controls > * { min-width:0; }
#study .essential-lesson .er-field { display:flex; flex-direction:column; gap:.55rem; flex:1 1 10rem; min-width:0; max-width:100%; color:#fff1eb; font:600 1rem/1.45 system-ui,sans-serif; }
#study .essential-lesson .er-field :is(input,select),#study .essential-lesson .er-practice-tools select { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:3rem; padding:.7rem .8rem; border:1px solid var(--er-line); border-radius:.5rem; background:#302336; color:#fff4ec; font:400 1rem/1.5 system-ui,sans-serif; }
#study .essential-lesson select option { background:#302336; color:#fff4ec; }
#study .essential-lesson .er-choices button { flex:1 1 11rem; min-height:3rem; white-space:normal; line-height:1.5; font-size:1rem; }
#study .essential-lesson :is(button,input,select,summary,a,[tabindex]):focus-visible { outline:3px solid #ffe4ba; outline-offset:4px; }
#study .essential-lesson .er-feedback { min-height:3rem; margin:1.3rem 0; padding:1rem 1.2rem; border:1px solid var(--er-line); border-left:4px solid var(--er-accent); border-radius:.4rem; background:#3d2e43; color:#fff1e9; }
#study .essential-lesson .er-feedback[data-correct=true] { background:#2c433a; border-color:#9fcbb6; color:#edfff4; }
#study .essential-lesson .er-feedback[data-correct=false] { background:#50313c; border-color:#e6a4ad; color:#fff0f0; }
#study .essential-lesson .er-choices [aria-pressed=true] { box-shadow:inset 0 0 0 2px var(--er-accent); }
#study .essential-lesson :is(.er-equation,.er-math,.er-fraction,.er-radical) { overflow-wrap:normal; word-break:normal; }
#study .essential-lesson .er-equation { display:flex; flex-wrap:nowrap; align-items:center; gap:.6rem; max-width:100%; overflow-x:auto; white-space:nowrap; padding-block:.35rem; margin:1.3rem 0; color:var(--er-accent); font:500 clamp(1.35rem,2.8vw,2rem)/1.8 Georgia,serif; }
#study .essential-lesson .er-math { display:inline-block; white-space:nowrap; }
#study .essential-lesson .er-fraction { display:inline-grid; grid-template-rows:auto auto; flex:none; align-items:center; text-align:center; vertical-align:middle; line-height:1.35; white-space:nowrap; }
#study .essential-lesson .er-fraction > span { padding:.05em .3em; }
#study .essential-lesson .er-fraction > span:first-child { border-bottom:1.5px solid currentColor; }
#study .essential-lesson .er-radical { display:inline-flex; align-items:baseline; white-space:nowrap; }
#study .essential-lesson .er-radical sup { position:relative; top:-.5em; font-size:.6em; }
#study .essential-lesson .er-radicand { border-top:1.5px solid currentColor; padding:.05em .18em; }
#study .essential-lesson .er-math-scroll { display:block; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; padding:.4rem .15rem .8rem; scrollbar-color:var(--er-accent) #302336; }
#study .essential-lesson .er-equation.er-math-scroll { white-space:nowrap; }
#study .essential-lesson .er-math-scroll .er-fraction { display:inline-grid; }
#study .essential-lesson .er-reading { margin:1.5rem 0; border-block:1px solid var(--er-line); padding:0 1rem; background:#34273c; }
#study .essential-lesson .er-reading summary { padding:1.1rem 0; color:#fff2eb; cursor:pointer; font:600 1.0625rem/1.5 system-ui,sans-serif; }
#study .essential-lesson .er-reading[open] { border-color:var(--er-accent); }
#study .essential-lesson .er-note { padding:.8rem 1.2rem; border-left:3px solid var(--er-accent); background:#463349; }
#study .essential-lesson :is(.er-number-lists,.er-science-pair,.er-factor-layout,.er-divisibility-layout,.fr-opening,.fr-build-layout,.fr-equivalence-work,.fr-product-layout,.fr-comparison-bars) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(1.3rem,4vw,3.5rem); align-items:start; }
#study .essential-lesson :is(.er-number-lists,.er-science-pair,.er-factor-layout,.er-divisibility-layout,.fr-opening,.fr-build-layout,.fr-equivalence-work,.fr-product-layout,.fr-comparison-bars) > * { min-width:0; }
#study .essential-lesson .er-list-number { display:inline-block; padding:.4rem .65rem; margin:.25rem; border:1px solid var(--er-line); font:600 1rem system-ui,sans-serif; border-radius:.3rem; }
#study .essential-lesson .er-list-number.common { border:3px double var(--er-accent); background:#554357; }
#study .essential-lesson .er-table { width:100%; min-width:28rem; border-collapse:collapse; font:400 1rem/1.5 system-ui,sans-serif; color:#fff1ec; }
#study .essential-lesson .er-table caption { text-align:left; padding:.7rem 0; font-weight:600; }
#study .essential-lesson .er-table :is(th,td) { border:1px solid var(--er-line); padding:.65rem .8rem; text-align:left; }
#study .essential-lesson .er-table th { background:#4b374e; }
#study .essential-lesson .er-factor-tree { display:block; width:100%; max-width:none; height:auto; }
#study .essential-lesson .er-factor-tree line { stroke:var(--er-line); stroke-width:2; }
#study .essential-lesson .er-factor-tree rect { fill:#44314b; stroke:var(--er-line); stroke-width:1.5; }
#study .essential-lesson .er-factor-tree rect.prime-leaf { fill:#31453b; stroke:#b8dfc6; stroke-width:3; }
#study .essential-lesson .er-factor-tree text { fill:#fff2ed; font:18px system-ui,sans-serif; }
#study .essential-lesson .er-power-anatomy { display:flex; align-items:center; flex-wrap:wrap; gap:2rem; }
#study .essential-lesson .er-power-anatomy > div > span { color:var(--er-accent); font:clamp(2.3rem,6vw,4rem)/1.4 Georgia,serif; }
#study .essential-lesson .er-root-anatomy { display:grid; grid-template-columns:minmax(0,.6fr) minmax(0,1fr); gap:2rem; }
#study .essential-lesson :is(.er-root-anatomy,.fr-anatomy) dl { margin:0; }
#study .essential-lesson :is(.er-root-anatomy,.fr-anatomy) dl > div { padding:.8rem 0; border-bottom:1px solid var(--er-line); }
#study .essential-lesson :is(.er-root-anatomy,.fr-anatomy) dt { font-weight:700; color:var(--er-accent); }
#study .essential-lesson :is(.er-root-anatomy,.fr-anatomy) dd { margin:.3rem 0 0; font-size:1rem; }
#study .essential-lesson .er-law-condition { padding:1rem; border-left:3px solid var(--er-accent); background:#30273a; }
#study .essential-lesson :is(.er-scale-path,.er-dimension-links,.er-percent-path,.er-pattern-strip) { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin:1.5rem 0; }
#study .essential-lesson :is(.er-scale-path,.er-dimension-links,.er-percent-path,.er-pattern-strip) > :is(div,span:not([aria-hidden])) { flex:1 1 9rem; padding:1rem; border-bottom:2px solid var(--er-accent); background:var(--er-panel); font-size:1rem; }
#study .essential-lesson :is(.er-percent-path,.er-pattern-strip) :is(strong,small) { display:block; }
#study .essential-lesson .er-pattern-strip strong { color:var(--er-accent); font-size:1.6rem; }
#study .essential-lesson .er-pattern-strip small { font-size:.875rem; }
#study .essential-lesson .er-decimal-wholes { display:flex; gap:.7rem; margin:1rem 0; }
#study .essential-lesson .er-decimal-wholes span { display:grid; place-items:center; width:4rem; height:4rem; border:2px solid var(--er-accent); background:#684962; color:#fff2e9; font:2rem Georgia,serif; }
#study .essential-lesson .er-decimal-grid { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:2px; width:min(100%,18rem); aspect-ratio:1; }
#study .essential-lesson .er-decimal-grid span { border:1px solid #a48ca4; background:#34273c; }
#study .essential-lesson .er-decimal-grid .tenths { background:#b57d9f; }
#study .essential-lesson .er-decimal-grid .hundredths { background:#d7b182; }
#study .essential-lesson :is(.er-decimal-grid,.er-decimal-wholes) .selected { outline:2px solid #fff2e7; outline-offset:-2px; }
#study .essential-lesson .er-practice { margin-top:3rem; border-top:3px solid var(--er-accent); }
#study .essential-lesson .er-practice-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; max-width:32rem; margin-bottom:1.8rem; }
#study .essential-lesson .er-practice-tools select { flex:1 1 13rem; width:auto; }
#study .essential-lesson .er-practice-stage h3 { max-width:70ch; font-size:clamp(1.3rem,2.5vw,1.65rem); line-height:1.5; }
#study .essential-lesson .er-practice-stage .er-choices { flex-direction:column; align-items:stretch; max-width:55rem; }
#study .essential-lesson .er-practice-stage .er-choices button { flex:initial; text-align:left; }
#study .essential-fractions { --er-accent:#f1c2a4; --er-line:#b58b8d; --er-panel:#50333f; }
#study .essential-fractions .fr-intro { padding-top:0; border-top:0; }
#study .essential-fractions .fr-intro h2 { font-size:clamp(1.9rem,4vw,3rem); }
#study .essential-fractions .fr-anatomy { display:flex; align-items:center; gap:2rem; }
#study .essential-fractions .fr-anatomy > .er-fraction { font-size:3.5rem; color:var(--er-accent); }
#study .essential-fractions .fr-build-layout { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); }
#study .essential-fractions .fr-equivalence-work { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); }
#study .essential-fractions .fr-equivalence-work .er-field { margin-bottom:1rem; }
#study .essential-fractions .fr-simplify { margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--er-line); }
#study .essential-fractions .fr-common-inputs { display:grid; grid-template-columns:minmax(0,1fr) minmax(8rem,.55fr) minmax(0,1fr); gap:1.4rem; align-items:center; }
#study .essential-fractions .fr-common-inputs > * { min-width:0; }
#study .essential-fractions .fr-contexts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
#study .essential-fractions .fr-contexts > div { border-top:2px solid var(--er-accent); padding:1rem 0; }
#study .essential-lesson .er-unit-bars { display:grid; gap:.65rem; margin:1rem 0; }
#study .essential-lesson .er-unit-bar { display:grid; grid-template-columns:repeat(var(--er-parts),minmax(0,1fr)); gap:1px; height:2.5rem; border:1.5px solid #efc8bb; padding:2px; }
#study .essential-lesson .er-unit-bar span { border-inline-end:1px solid #93717d; background:#302535; }
#study .essential-lesson .er-unit-bar .filled { background:var(--er-accent); }
#study .essential-lesson .er-number-line { padding:1.5rem .8rem 2.4rem; }
#study .essential-lesson .er-line-track { position:relative; height:3px; background:#d6b7c6; }
#study .essential-lesson .er-line-tick { position:absolute; top:-.35rem; height:.8rem; border-left:2px solid #d6b7c6; }
#study .essential-lesson .er-line-tick b { position:absolute; top:1.1rem; transform:translateX(-50%); color:#fff1e9; font:1rem system-ui,sans-serif; }
#study .essential-lesson .er-line-point { position:absolute; top:-.4rem; width:1rem; height:1rem; transform:translateX(-50%); border:2px solid #fff1e9; border-radius:50%; background:#a96d83; }
#study .essential-fractions .fr-product-grid { display:grid; grid-template-columns:repeat(var(--fr-columns),minmax(0,1fr)); gap:3px; max-width:22rem; aspect-ratio:5/3; padding:4px; border:2px solid #e1c4bf; }
#study .essential-fractions .fr-product-grid span { border:1px solid #957780; background:#302535; }
#study .essential-fractions .fr-product-grid .fr-first { background:#76545a; }
#study .essential-fractions .fr-product-grid .fr-second { background:#52676c; }
#study .essential-fractions .fr-product-grid .fr-overlap { background:#efc6a2; border:2px solid #fff4e5; }
#study .essential-fractions .fr-division-strip { display:grid; grid-template-columns:repeat(var(--fr-columns),minmax(0,1fr)); height:3rem; border:2px solid #e7c6bf; padding:3px; margin:1.2rem 0; }
#study .essential-fractions .fr-division-strip span { background:#302535; border-right:1px solid #9b7682; }
#study .essential-fractions .fr-division-strip .filled { background:var(--er-accent); }
#study .essential-fractions .fr-division-strip .fr-group-start { border-left:3px solid #744555; }
#study .essential-lesson .er-real-video video { width:100%; max-height:70vh; background:#201a26; }
@media(max-width:760px) {
  #study .essential-lesson :is(.er-number-lists,.er-science-pair,.er-factor-layout,.er-divisibility-layout,.fr-opening,.fr-build-layout,.fr-equivalence-work,.fr-product-layout,.fr-comparison-bars,.er-root-anatomy) { grid-template-columns:minmax(0,1fr); }
  #study .essential-fractions .fr-common-inputs { grid-template-columns:minmax(0,1fr); }
  #study .essential-fractions .fr-contexts { grid-template-columns:minmax(0,1fr); gap:.6rem; }
}
@media(max-width:480px) {
  #study .essential-lesson .er-controls { flex-direction:column; align-items:stretch; }
  #study .essential-lesson .er-controls .er-field { flex:initial; }
  #study .essential-lesson .er-controls .basic-button { width:100%; }
  #study .essential-fractions .fr-anatomy { gap:1rem; }
  #study .essential-lesson .er-equation { font-size:1.3rem; gap:.4rem; }
}

/* Mais espaço para ler expressões e consultar a resolução, sem alterar o tema. */
#study .essential-lesson .er-practice-actions { display:flex; flex-wrap:wrap; gap:.85rem; align-items:center; }
#study .essential-lesson .er-practice-actions button { min-height:3rem; white-space:normal; }
#study .essential-lesson .xb-example-body > p { line-height:1.6; }
#study .essential-lesson .xb-example-steps > p { padding:.8rem 0; margin:.25rem 0; line-height:1.7; }
#study .essential-lesson .er-example-math { display:block; max-width:100%; overflow-x:auto; padding:.25rem 0; font:500 1.35rem/1.9 Georgia,serif; color:var(--er-accent); white-space:nowrap; }
#study .essential-lesson .er-example-math .er-radical { margin-inline:.1em; }
@media(max-width:480px) {
  #study .essential-lesson .er-practice-actions { align-items:stretch; }
  #study .essential-lesson .er-practice-actions button { flex:1 1 100%; }
}
