/* Ensino - correções da verificação de 21/10/2026 (plugin ensino-correcoes-2026-10). Desfazer: desativar o plugin.
   Cada bloco traz o achado que resolve. As regras com !important e "html body" na frente vencem o bloco
   "ensino-justificado" do plugin ensino-pagina-inteira (que força text-align:start !important em tudo que tem "__" ou "ensino-" na classe). */

/* C16: tabela de gabarito (Questão | Q1..Q8) a 390 px: cabeçalho e primeira coluna sem quebra letra a letra; a tabela rola de lado */
.e-tabela-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.e-tabela-wrap table{width:max-content;min-width:100%;max-width:none;border-collapse:collapse}
.e-tabela-wrap th,.e-tabela-wrap th p,.e-tabela-wrap td:first-child,.e-tabela-wrap td:first-child p{white-space:nowrap}
.e-tabela-wrap th:first-child,.e-tabela-wrap td:first-child{min-width:6em}
.e-tabela-wrap td{min-width:2.5em}

/* V03: coluna de leitura do material com 70 caracteres (45 a 75, padrão de editora), texto corrido justificado com hifenização.
   O visualizador de PDF (.e-doc) continua na largura cheia. */
.e-leitura__corpo .e-prosa>.ensino-texto-integral,.e-leitura__corpo .e-prosa>.e-objetivo,.e-leitura__corpo .e-prosa>p,.e-leitura__corpo .e-prosa>ul,.e-leitura__corpo .e-prosa>ol,.e-leitura__corpo .e-prosa>h2,.e-leitura__corpo .e-prosa>h3,.e-leitura__corpo .e-prosa>blockquote{max-width:var(--e-medida,70ch);margin-inline:auto}
html body .e-prosa .ensino-texto-integral :is(p,li,dd),html body .e-prosa .ensino-texto-integral>p{text-align:justify!important;-webkit-hyphens:auto!important;hyphens:auto!important;hyphenate-limit-chars:6 3 3}
html body .e-prosa .ensino-texto-integral :is(h1,h2,h3,h4,h5,h6,th,td,figcaption,caption,summary,li:has(>a:only-child)){text-align:start!important}

/* A5: caixas sem filete lateral colorido (regra do dono de 08/10/2026): moldura fina de 1 px nos quatro lados, padrão de editora */
html body .e-prosa .e-objetivo,html body .e-prosa .e-objetivo:not(.ensino-atv *){border:1px solid var(--e-borda,#EAE4D8)!important;border-left-width:1px!important}
html body .e-eng-aviso{border:1px solid var(--e-borda,#EAE4D8)!important;border-left-width:1px!important;background:var(--e-superficie,#FBF9F4)!important}
html body .e-interesse,html body .e-interesse--pv{border:1px solid var(--e-borda,#EAE4D8)!important;border-left-width:1px!important}
html body .ensino-objetivo__rotulo,html body .e-objetivo__rotulo{font-variant:small-caps;letter-spacing:.08em}

/* V10: /brite/ no celular: coluna de 27 a 36 caracteres não se justifica (rios); fica alinhado à esquerda */
@media (max-width:40rem){
html body .brite-idx p.lead,html body .brite-idx .card p.lead,html body .brite-idx p{text-align:start!important;-webkit-hyphens:manual!important;hyphens:manual!important}
html body .brite-idx .card .in{padding-inline:12px}
}

/* A12: rótulos com no mínimo 12 px (HUD do tema, cartões de matéria, selos) */
html body .j-dica,html body .j-dica b,html body .e-materia-card__rotulo,html body .e-cat-item__eyebrow,html body .e-marca__legenda,html body .e-lateral .ensino-curso-aula>.ensino-selo,html body .j-ficha dt,html body .j-ficha__titulo,html body .j-rotulo{font-size:max(.75rem,12px)!important}

/* A11: alvos de toque de 44 px na barra do tema (HUD de 42 px) e nos atalhos */
html[data-v7] .j-hud-btn,html body .j-hud-btn{width:44px;height:44px;min-width:44px;min-height:44px}
html body .e-nav__admin a,html body .e-rodape a{display:inline-flex;align-items:center;min-height:44px}

/* V15: item "Administrador" do menu principal só para quem está logado (o HTML também sai pelo buffer; o CSS cobre a página em cache) */
body:not(.logged-in) .e-nav__admin{display:none!important}

/* V16: parágrafo de abertura do herói da home centrado como o título e o botão (vence o start !important do ensino-justificado) */
html body .j-titulo .j-titulo__lede,html body .j-titulo p.e-lede{text-align:center!important;margin-inline:auto;text-wrap:balance;display:block}

/* V19: rodapé no celular: as duas listas lado a lado (de 1.121 px para cerca de 770 px de altura) */
@media (max-width:40rem){
html body .e-rodape__grade{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:1rem}
html body .e-rodape__grade>.e-rodape__marca{grid-column:1/-1}
html body .e-rodape__grade>*:not(.e-rodape__marca){min-width:0}
}

/* V14: miniaturas do folheador do manual com 40 px de largura no celular e rolagem com encaixe */
@media (max-width:30rem){
html body .e-folheador__miniaturas{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.35rem;padding-bottom:.25rem}
html body .e-folheador__miniaturas>li{flex:0 0 auto}
html body .e-folheador__mini{min-width:44px;min-height:44px;scroll-snap-align:start}
}

/* D05: cadeado em SVG no sumário do manual (no lugar do emoji) */
.e-c10-cadeado{display:inline-block;width:.8em;height:.8em;vertical-align:-.08em;margin-right:.15em}

/* C14: h1 duplicado rebaixado a h2 (texto diferente do título) ou a parágrafo (cabeça escondida das páginas de venda) */
.e-c10-h1{font-size:inherit;line-height:inherit;margin:0}
.e-pagina__cabeca .e-c10-h1-tema{font-size:var(--e-t-6,2rem);font-weight:600;margin:0}

/* V12: páginas de venda do livro do PAS: texto de no mínimo 13 px (0,8125 rem), parágrafos com até 70 caracteres por linha */
html body .pasv .selo,html body .pasv .apoio,html body .pasv .num span,html body .pasv .marca-linha,html body .pasv .am-cab,html body .pasv .am-cab span,html body .pasv .am-cab b,html body .pasv .ficha dt,html body .pasv dt,html body .pasv .folhas-dica,html body .pasv .folha figcaption b,html body .pasv figcaption b,html body .pasv .btn-bloco small,html body .pasv small,html body .pasv .cookies p,html body .pasv .cookies a{font-size:max(.8125rem,13px)!important}
html body .pasv .miolo>p,html body .pasv .nota-cobertura,html body .pasv .sub,html body .pasv .topo-in>p{max-width:70ch}
