/* Página B do teste educ01 (professoras do 1º ao 4º ano). CSS próprio e curto:
   não herda o pagina.css da A, que fica congelado durante o teste.
   Paleta de uso de 12 cores e três tamanhos de letra (30, 17 e 14 px), pelo
   contexto/identidade-visual.md e pelo plano (seções 6 e 9). Celular primeiro. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fontes/fraunces-v2.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fontes/nunito-sans-v2.woff2) format('woff2'); }

:root {
  --papel: #F8F1E5; --claro: #FBF6EE; --areia: #E9D7BF; --argila: #E6D0B3;
  --musgo: #5F653D; --broto: #8C9A63; --terracota: #B96836; --terracota-fundo: #A5522C;
  --ocre: #D6B16B; --casca: #8B5A3C; --tinta: #3B241A; --tinta-suave: #6B4A3A;
  --serifa: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sem-serifa: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sombra-papel: 0 0 0 1px var(--argila), 0 2px 6px rgba(59, 36, 26, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 17px/26px var(--sem-serifa); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--terracota-fundo); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--musgo); outline-offset: 3px; border-radius: 4px; }

/* Os três tamanhos */
h1, h2, .preco { font: 600 30px/38px var(--serifa); color: var(--tinta); letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 17px; line-height: 26px; font-weight: 700; color: var(--musgo); }
figcaption, .fato, .rodape { font-size: 14px; line-height: 20px; }
figcaption { color: var(--tinta-suave); }

/* Colunas: o topo é largo; o resto numa coluna de leitura */
.topo, .coluna { width: calc(100% - 32px); margin-left: auto; margin-right: auto; }
.topo { max-width: 1040px; padding-top: 24px; }
.coluna { max-width: 640px; margin-top: 48px; }
.fluxo > * + * { margin-top: 14px; }

/* 1. Topo */
.filtro { font-weight: 700; color: var(--musgo); }
.topo h1 { margin-top: 8px; }
.topo-img { margin-top: 16px; }
/* Fotos reais (25/09/2026): cantos arredondados como os cartões, sem a sombra
   de papel das imagens tiradas do PDF. A aquarela sob o leque saiu com ele:
   foto opaca a cobriria. */
.foto { width: 100%; border-radius: 12px; background: var(--areia); }
.apoio { margin-top: 16px; }
.fato { margin-top: 16px; color: var(--tinta-suave); }
.topo .botao { margin-top: 12px; }

/* Botão em pílula */
.botao {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  padding: 8px 16px; border-radius: 999px; background: var(--terracota-fundo); color: var(--claro);
  font-weight: 700; font-size: 17px; line-height: 22px; text-align: center; text-decoration: none;
  transition: background-color .15s;
}
.botao:hover { background: var(--tinta-suave); }

/* Cartões */
.cartao { background: var(--claro); border: 1px solid var(--argila); border-radius: 16px; padding: 28px 20px; }
.oferta { background: var(--areia); border-radius: 16px; padding: 28px 20px; }

/* 2. Como funciona */
.papel { box-shadow: var(--sombra-papel); border-radius: 2px; background: #fff; }
.missao { position: relative; }
.marca, .legendas li::before {
  width: 22px; height: 22px; border-radius: 50%; background: var(--claro); border: 2px solid var(--terracota-fundo);
  color: var(--terracota-fundo); font: 700 14px/18px var(--sem-serifa); text-align: center;
}
.marca { position: absolute; margin: -11px 0 0 -11px; box-shadow: 0 1px 3px rgba(59, 36, 26, .25); }
.legendas { list-style: none; padding: 0; margin-top: 14px; counter-reset: marca; }
.legendas li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; counter-increment: marca; }
.legendas li + li { margin-top: 6px; }
.legendas li::before { content: counter(marca); flex: none; margin-top: -1px; }
.legendas + figcaption { margin-top: 10px; }
.tres { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tres .foto { border-radius: 8px; }
.tres + figcaption, .grade + figcaption, .resposta img + figcaption, .retrato figcaption { margin-top: 8px; }
.passos, .missoes { padding-left: 26px; }
.passos li + li, .missoes li + li { margin-top: 6px; }
.passos li::marker, .missoes li::marker { color: var(--tinta-suave); font-weight: 700; }
.passos { margin-top: 6px; }

/* 3. Prova */
.missoes b { font-weight: 600; }
.estrelas { color: var(--terracota-fundo); letter-spacing: 1px; }
.mais { margin-top: 10px; }
.mais > summary, .pergunta > summary { list-style: none; cursor: pointer; position: relative; }
.mais > summary::-webkit-details-marker, .pergunta > summary::-webkit-details-marker { display: none; }
.mais > summary { display: inline-block; padding: 8px 28px 8px 0; font-weight: 700; color: var(--terracota-fundo); text-decoration: underline; text-underline-offset: 4px; }
/* O "/ ''" tira o sinal do nome que o leitor de tela lê; a primeira declaração
   fica de reserva para navegador que não entende a barra (revisão de 25/09/2026). */
.mais > summary::after, .pergunta > summary::after { content: '+'; content: '+' / ''; position: absolute; right: 4px; font-weight: 700; color: var(--musgo); }
.mais > summary::after { top: 8px; }
.mais[open] > summary::after, .pergunta[open] > summary::after { content: '\2212'; content: '\2212' / ''; }
.mais > ol { margin-top: 6px; }

/* 4. Oferta com garantia */
/* Tinta Suave, não Musgo: Musgo sobre Areia dá 4,37:1, abaixo de 4,5 para
   texto de 17 px (conferência visual de 25/09/2026). Tinta Suave dá 5,6:1 e
   mantém o nome do produto distinto do texto por peso e cor. */
.produto { font-weight: 700; color: var(--tinta-suave); }
.entregas { list-style: none; padding: 0; }
.entregas li { position: relative; padding-left: 20px; }
.entregas li + li { margin-top: 6px; }
.entregas li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 50% 0; background: var(--musgo); transform: rotate(45deg); }
/* O bloco do preço (preço, parcela e botão) é o #preco, gatilho do ViewContent. */
.fluxo > .bloco-preco { margin-top: 24px; }
.bloco-preco > .parcela { margin-top: 2px; color: var(--tinta-suave); }
.oferta .botao { margin-top: 16px; }
.fluxo > .selo { margin-top: 28px; width: 104px; }
.garantia span { display: block; }

/* 5. Quem fez: foto pequena, à direita do texto, como no texto aprovado pela
   Rafaela ("pequena, ao lado do texto"). No celular, 42% da coluna (150 px a
   390); a partir de 672 px, onde a coluna já tem 640 px, fica em 240 px.
   Decisão do Tiago, 25/09/2026, à noite: poupa 296 px no celular. */
.quem { display: flow-root; }
.retrato { float: right; width: 42%; margin: 4px 0 8px 16px; }
@media (min-width: 672px) {
  .retrato { width: 240px; margin-left: 24px; }
}

/* 6. Perguntas */
.perguntas { border-top: 1px solid var(--argila); }
.pergunta { border-bottom: 1px solid var(--argila); }
.pergunta > summary { padding: 12px 32px 12px 0; font-weight: 600; }
.pergunta > summary::after { top: 12px; }
.resposta { padding-bottom: 16px; }
.resposta > * + * { margin-top: 14px; }

/* 7. Fechamento */
.fecho { display: flex; align-items: center; gap: 12px; }
.fecho h2 { flex: 1; }
.fecho img { flex: none; width: 57px; }
.coluna > .botao { margin-top: 16px; }

/* 8. Rodapé */
.rodape { margin-top: 56px; padding: 32px 16px 40px; border-top: 1px solid var(--argila); text-align: center; color: var(--tinta-suave); }
.rodape img { margin: 0 auto 10px; }
.rodape p + p { margin-top: 4px; }
.rodape a { color: var(--tinta-suave); }

/* Computador: topo em duas colunas, texto à esquerda e imagem à direita */
@media (min-width: 900px) {
  .topo {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding-top: 56px;
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas: '. img' 'filtro img' 'titulo img' 'apoio img' 'fato img' 'botao img' '. img';
  }
  .filtro { grid-area: filtro; }
  .topo h1 { grid-area: titulo; }
  .topo-img { grid-area: img; margin-top: 0; align-self: center; }
  .apoio { grid-area: apoio; }
  .fato { grid-area: fato; }
  .topo .botao { grid-area: botao; }
  .coluna { margin-top: 64px; }
  .cartao, .oferta { padding: 36px 40px; }
  .botao { display: inline-flex; width: auto; padding: 8px 36px; justify-self: start; }
  .fluxo > .botao { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) { .botao { transition: none; } }
