/* Ñ Conecta · folhas de aula (Literatura 2ª e Lengua 3ª)
   Camada de leitura das páginas /m2/<obra>-* e /m3/* servidas por /nconecta/pages.
   Lume, 18/10/2026. Só vale dentro de article.paper; topo, capa da página,
   navegação e rodapé do portal não mudam. Cores e fontes vêm dos tokens do tema
   (tema-n-conecta.css): o eixo dá o acento (urucum na 2ª, verde na 3ª) e o tema
   claro/escuro troca sozinho. Nenhuma cor nova. Piso de 14 px. */

.nc-subpage.template-material .legacy-content article.paper{
  --nc-folha-acento: var(--accent-text);
  --nc-folha-tinta: var(--text-primary);
  --nc-folha-tinta-2: var(--text-secondary);
  --nc-folha-linha: var(--border-default);
  --nc-folha-linha-forte: var(--border-glass);
  --nc-folha-quadro: color-mix(in srgb, var(--accent-text) 7%, var(--surface-1));
  --nc-folha-capa: color-mix(in srgb, var(--accent-text) 11%, var(--surface-1));
  --nc-folha-cabeca: color-mix(in srgb, var(--accent-text) 13%, var(--surface-1));
  --nc-folha-vazio: color-mix(in srgb, var(--text-primary) 4%, transparent);
  padding: clamp(22px, 4.4vw, 58px);
  border-radius: 22px;
  border: 1px solid var(--nc-folha-linha);
  background: var(--surface-1);
  color: var(--nc-folha-tinta);
  overflow-wrap: break-word;
}
.nc-subpage.template-material .legacy-content article.paper :is(p, li, th, td){
  overflow-wrap: anywhere;
}

/* ---------- texto corrido ---------- */
.nc-subpage.template-material .legacy-content article.paper p{
  font: 400 18px/1.72 Inter, system-ui, sans-serif;
  color: var(--nc-folha-tinta);
  margin: 0 0 14px;
  max-width: 60ch;
  text-wrap: pretty;
}
.nc-subpage.template-material .legacy-content article.paper > p:first-child:not([class]){
  font-size: 19px;
  color: var(--nc-folha-tinta-2);
  margin-bottom: 22px;
}
.nc-subpage.template-material .legacy-content article.paper em{ color: inherit; }
.nc-subpage.template-material .legacy-content article.paper strong{ font-weight: 650; color: var(--nc-folha-tinta); }

/* ---------- títulos: três degraus ---------- */
.nc-subpage.template-material .legacy-content article.paper :is(h2, h3){
  font-family: Sora, Inter, sans-serif;
  color: var(--nc-folha-tinta);
  letter-spacing: -.012em;
  text-wrap: balance;
  max-width: 34ch;
}
.nc-subpage.template-material .legacy-content article.paper h2{
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  margin: 60px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--nc-folha-linha-forte);
}
.nc-subpage.template-material .legacy-content article.paper h2:first-child{
  margin-top: 0; padding-top: 0; border-top: 0;
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.12;
}
/* título automático do arquivo (nome do .docx), repetido pela capa logo abaixo e pela
   capa da página: sai da vista, continua para leitor de tela */
.nc-subpage.template-material .legacy-content article.paper h2:first-child:has(+ table.nc-capa){
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nc-subpage.template-material .legacy-content article.paper h2 strong{ font-weight: inherit; }
.nc-subpage.template-material .legacy-content article.paper h3{
  font-size: 21px; line-height: 1.3; font-weight: 600; margin: 36px 0 10px;
}

/* ---------- capa da folha (1ª tabela de uma coluna) ---------- */
.nc-subpage.template-material .legacy-content article.paper table.nc-capa{
  display: block; width: 100%; margin: 0 0 18px;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--nc-folha-linha-forte);
  border-radius: 18px;
  background: var(--nc-folha-capa);
  overflow: visible;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-capa :is(thead, tbody, tr, th){
  display: block; padding: 0; border: 0; background: none; text-align: left;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-capa colgroup{ display: none; }
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p{ margin: 0; max-width: 40ch; }
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p:first-child:not(:only-child){
  font: 700 14px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--nc-folha-acento);
  margin-bottom: 14px;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p:first-child:not(:only-child) strong{ color: inherit; font-weight: inherit; }
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p:is(:nth-child(2), :only-child){
  font: 600 clamp(32px, 5vw, 50px)/1.06 Sora, Inter, sans-serif;
  letter-spacing: -.025em;
  color: var(--nc-folha-tinta);
  margin-bottom: 16px;
  text-wrap: balance;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p:is(:nth-child(2), :only-child) strong{ font-weight: inherit; }
.nc-subpage.template-material .legacy-content article.paper table.nc-capa th p:nth-child(n+3){
  font-size: 16px; line-height: 1.6; color: var(--nc-folha-tinta-2); max-width: 60ch;
}

/* ---------- identificação (Nombre / Curso / Fecha) ---------- */
.nc-subpage.template-material .legacy-content article.paper table.nc-ident{
  display: block; width: 100%; margin: 0 0 26px; border: 0; background: none; overflow: visible;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-ident colgroup{ display: none; }
.nc-subpage.template-material .legacy-content article.paper table.nc-ident :is(thead, tbody){ display: block; }
.nc-subpage.template-material .legacy-content article.paper table.nc-ident tr{
  display: flex; flex-wrap: wrap; gap: 6px 28px; border: 0; background: none;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-ident th{
  flex: 1 1 240px; display: block; padding: 10px 0; border: 0;
  border-bottom: 1px solid var(--nc-folha-linha-forte);
  background: none; text-align: left;
  font: 500 16px/1.5 Inter, system-ui, sans-serif; color: var(--nc-folha-tinta-2);
}

/* ---------- quadros de instrução e de observação ---------- */
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro{
  display: block; width: 100%; margin: 22px 0 24px;
  padding: 22px clamp(18px, 3vw, 28px);
  border: 1px solid var(--nc-folha-linha-forte);
  border-radius: 16px;
  background: var(--nc-folha-quadro);
  overflow: visible;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro colgroup{ display: none; }
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro :is(thead, tbody, tr, th){
  display: block; padding: 0; border: 0; background: none; text-align: left; font-weight: 400;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th{
  font: 400 17px/1.65 Inter, system-ui, sans-serif; color: var(--nc-folha-tinta);
}
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th :is(em, strong):not(p:first-child > strong:only-child){ color: inherit; }
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th p{
  font-size: 17px; line-height: 1.65; margin: 0 0 8px; max-width: 66ch;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th p:last-child{ margin-bottom: 0; }
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th p:first-child:has(> strong:only-child){
  font: 700 14px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--nc-folha-acento);
  margin-bottom: 12px;
}
.nc-subpage.template-material .legacy-content article.paper table.nc-quadro th p:first-child:has(> strong:only-child) strong{ color: inherit; font-weight: inherit; }

/* ---------- marcos do percurso ---------- */
.nc-subpage.template-material .legacy-content article.paper p.nc-rotulo{
  font: 700 14px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--nc-folha-acento);
  margin: 64px 0 16px; padding-top: 24px;
  border-top: 1px solid var(--nc-folha-linha-forte);
  max-width: none;
}
.nc-subpage.template-material .legacy-content article.paper p.nc-rotulo strong{ color: inherit; font-weight: inherit; }
.nc-subpage.template-material .legacy-content article.paper :is(table.nc-capa, table.nc-ident, table.nc-quadro) + p.nc-rotulo{ margin-top: 40px; }
.nc-subpage.template-material .legacy-content article.paper p.nc-abertura{
  font: 600 clamp(27px, 3.4vw, 36px)/1.12 Sora, Inter, sans-serif;
  letter-spacing: -.015em; margin: 0 0 20px; max-width: 30ch; text-wrap: balance;
}
.nc-subpage.template-material .legacy-content article.paper p.nc-subtitulo{
  font: 600 22px/1.3 Sora, Inter, sans-serif;
  letter-spacing: -.01em; margin: 40px 0 10px; text-wrap: balance;
}
.nc-subpage.template-material .legacy-content article.paper p.nc-enunciado{
  font: 600 18.5px/1.55 Inter, system-ui, sans-serif;
  margin: 36px 0 14px;
}
.nc-subpage.template-material .legacy-content article.paper :is(p.nc-abertura, p.nc-subtitulo, p.nc-enunciado) strong{ font-weight: inherit; }

/* ---------- perguntas ---------- */
.nc-subpage.template-material .legacy-content article.paper p.nc-questao{
  padding-left: 2.1em; text-indent: -2.1em;
}
.nc-subpage.template-material .legacy-content article.paper p.nc-questao > strong:first-child{
  display: inline-block; min-width: 1.82em; text-indent: 0;
  color: var(--nc-folha-acento); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nc-subpage.template-material .legacy-content article.paper blockquote{
  margin: 18px 0 26px; padding: 18px clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--nc-folha-linha);
  border-radius: 14px;
  background: var(--nc-folha-vazio);
  color: var(--nc-folha-tinta);
  font-style: normal;
}
.nc-subpage.template-material .legacy-content article.paper blockquote p{ margin: 0 0 10px; }
.nc-subpage.template-material .legacy-content article.paper blockquote p:last-child{ margin-bottom: 0; }
.nc-subpage.template-material .legacy-content article.paper blockquote.nc-questoes{
  padding: 4px 0; border: 0; border-radius: 0; background: none;
  border-top: 1px solid var(--nc-folha-linha); border-bottom: 1px solid var(--nc-folha-linha);
}
.nc-subpage.template-material .legacy-content article.paper blockquote.nc-questoes p{
  margin: 0; padding-top: 14px; padding-bottom: 14px; max-width: none;
  border-top: 1px solid var(--nc-folha-linha);
}
.nc-subpage.template-material .legacy-content article.paper blockquote.nc-questoes p:first-child{ border-top: 0; }

/* ---------- listas ---------- */
.nc-subpage.template-material .legacy-content article.paper :is(ul, ol){ padding-left: 1.35em; margin: 6px 0 18px; max-width: 62ch; }
.nc-subpage.template-material .legacy-content article.paper li{ margin: 6px 0; font-size: 18px; line-height: 1.65; }
.nc-subpage.template-material .legacy-content article.paper li::marker{ color: var(--nc-folha-acento); }
.nc-subpage.template-material .legacy-content article.paper li > p{ margin: 0; }

/* ---------- tabelas de resposta e de comparação ---------- */
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro){
  display: table; width: 100%; max-width: 100%;
  border-collapse: separate; border-spacing: 0;
  margin: 18px 0 28px;
  border: 1px solid var(--nc-folha-linha-forte);
  border-radius: 14px;
  font-size: 16px;
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td){
  padding: 12px 14px; border: 0; vertical-align: top; text-align: left;
  font: 400 16px/1.55 Inter, system-ui, sans-serif; color: var(--nc-folha-tinta);
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td, th *, td *){
  overflow-wrap: break-word; /* palavra inteira na coluna estreita ("Artículo definido") */
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td) p{
  font-size: inherit; line-height: inherit; margin: 0 0 6px; max-width: none;
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td) p:last-child{ margin-bottom: 0; }
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) th{
  background: var(--nc-folha-cabeca); font-weight: 650;
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td) strong{ font-weight: 650; }
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) td{
  border-top: 1px solid var(--nc-folha-linha);
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td) + :is(th, td){
  border-left: 1px solid var(--nc-folha-linha);
}
.nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) td:empty{
  height: 48px; background: var(--nc-folha-vazio);
}

/* contêiner da tabela: rola na horizontal quando a tabela não cabe */
.nc-subpage.template-material .legacy-content article.paper .nc-rolagem{
  overflow-x: auto; max-width: 100%; margin: 18px 0 28px; border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.nc-subpage.template-material .legacy-content article.paper .nc-rolagem > table{ margin: 0; }
.nc-subpage.template-material .legacy-content article.paper .nc-rolagem:focus-visible{ outline: 2px solid var(--nc-folha-acento); outline-offset: 3px; }

/* ---------- PDF e modo leitura ---------- */
.nc-subpage.template-material .legacy-content article.paper p.meta{
  font-size: 15px; color: var(--text-muted); margin: 0 0 14px;
}
.nc-subpage.template-material .legacy-content article.paper > a.quiet-link{
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--nc-folha-linha-forte);
  color: var(--nc-folha-tinta); text-decoration: none; font: 600 15px/1.2 Inter, system-ui, sans-serif;
  margin: 0 0 18px;
}
.nc-subpage.template-material .legacy-content article.paper > a.quiet-link:hover{ border-color: var(--nc-folha-acento); }
.nc-subpage.template-material .legacy-content article.paper .pdfbox{
  border: 1px solid var(--nc-folha-linha-forte); border-radius: 16px; overflow: hidden;
}
.nc-subpage.template-material .legacy-content article.paper details > summary{
  min-height: 44px; display: inline-flex; align-items: center;
}
.nc-subpage.template-material .legacy-content article.paper .reading{
  font: 400 17px/1.8 Inter, system-ui, sans-serif;
  color: var(--nc-folha-tinta);
  max-width: 64ch; margin-top: 18px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.nc-subpage.template-material .legacy-content article.paper :is(a:focus-visible, summary:focus-visible){
  outline: 2px solid var(--nc-folha-acento); outline-offset: 3px;
}

/* ---------- nota final ---------- */
.nc-subpage.template-material .legacy-content article.paper .source{
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--nc-folha-linha);
  font-size: 15px; line-height: 1.6; color: var(--text-muted);
}

/* ---------- celular ---------- */
@media (max-width: 640px){
  .nc-subpage.template-material .legacy-content article.paper{ padding: 22px 16px; border-radius: 16px; }
  .nc-subpage.template-material .legacy-content article.paper p{ font-size: 17px; }
  .nc-subpage.template-material .legacy-content article.paper table.nc-capa{ padding: 22px 18px; }
  .nc-subpage.template-material .legacy-content article.paper table.nc-quadro{ padding: 18px 16px; }
  /* no celular a largura das colunas vem do conteúdo, não do .docx (12% espremia "Artículo");
     se a tabela não couber, ela rola dentro do próprio bloco (.nc-rolagem) */
  .nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) col{ width: auto !important; }
  .nc-subpage.template-material .legacy-content article.paper .nc-rolagem table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td){
    min-width: 60px;
  }
  /* tabela de texto vira lista: cada linha é um bloco, as células uma embaixo da outra;
     a grade de resposta (.nc-resposta) continua grade e rola dentro do bloco */
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta),
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) :is(thead, tbody, tr, th, td){
    display: block; width: auto; min-width: 0;
  }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) colgroup{ display: none; }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) tr{
    padding: 14px 16px; border-top: 1px solid var(--nc-folha-linha);
  }
  /* o cabeçalho sai da vista (fica para leitor de tela) e cada célula mostra o próprio rótulo */
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) thead{
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) tbody tr:first-child{ border-top: 0; }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) td[data-rotulo]::before{
    content: attr(data-rotulo); display: block; margin: 8px 0 2px;
    font: 700 14px/1.4 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
    color: var(--nc-folha-acento);
  }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) td[data-rotulo]:first-child::before{ margin-top: 0; }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) :is(th, td){
    padding: 3px 0; border: 0; background: none; overflow-wrap: anywhere;
  }
  .nc-subpage.template-material .legacy-content article.paper table.nc-tabela:not(.nc-resposta) td:empty{ display: none; }
  .nc-subpage.template-material .legacy-content article.paper table:not(.nc-capa, .nc-ident, .nc-quadro) :is(th, td){
    padding: 10px 8px; font-size: 16px; hyphens: auto;
  }
  .nc-subpage.template-material .legacy-content article.paper h2{ margin-top: 48px; }
  .nc-subpage.template-material .legacy-content article.paper p.nc-rotulo{ margin-top: 48px; }
}

/* ---------- impressão: tinta sobre papel, sem fundos ---------- */
@media print{
  .nc-subpage.template-material .legacy-content article.paper,
  .nc-subpage.template-material .legacy-content article.paper :is(table, th, td, blockquote){
    background: none !important; color: #000 !important; border-color: #888 !important;
  }
  .nc-subpage.template-material .legacy-content article.paper :is(p, li, strong, h2, h3){ color: #000 !important; }
}

/* separador "/" da linha de apoio da capa da página: estava com 3,1:1 (abaixo de 4,5:1).
   Só nestas folhas, porque este arquivo só é ligado a elas. */
.nc-subpage.template-material .page-hero-new .overline span{ color: var(--accent-text); opacity: 1; }
