/* Página /testes/: cartões dos temas.
   Usa o cartão da lista "Recomendado para ti" (.rec, .thumb), mas os
   cartões ainda não abrem nada: sem seta, sem mão nem realce ao passar. */
.testes-lista { margin: 0; padding: 0; list-style: none; }
.rec.rec--indisponivel {
  grid-template-columns: 56px minmax(0, 1fr);
  cursor: default;
}
.rec.rec--indisponivel:hover { border-color: var(--line); }
.rec--indisponivel .tag { margin-top: 6px; }

/* Tema que já tem perguntas: o cartão é um botão (.rec dentro do <li>). */
.testes-lista > li { display: grid; min-width: 0; }
.testes-lista button.rec { font: inherit; }
.rec[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Perguntas (teste e correção) */
.testes-perguntas { display: grid; gap: var(--esp-3); margin: 0; padding: 0; list-style: none; }
/* O <legend> fica DENTRO do cartão (por omissão, o browser põe-no em cima
   da borda): float + largura total, e as opções vêm a seguir, num bloco à parte. */
fieldset.testes-pergunta { display: block; margin: 0; min-width: 0; }
fieldset.testes-pergunta > legend { float: left; width: 100%; }
.testes-opcoes { display: grid; gap: var(--esp-2); clear: both; }
.testes-corrigida { display: grid; gap: var(--esp-2); }
.testes-pergunta legend,
.testes-enunciado {
  margin: 0 0 var(--esp-1);
  padding: 0;
  font-size: var(--fs-base);
  font-weight: var(--peso-forte);
  line-height: 1.4;
}
.testes-num { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Cada opção é um alvo de toque inteiro (44 px), com o texto a poder partir. */
.testes-opcao {
  align-items: flex-start;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--raio-md);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.testes-opcao input { margin-top: 1px; }
.testes-opcao:has(input:checked) { border-color: var(--mint); background: var(--mint-soft); }
.testes-opcao:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Nota e correção */
.testes-nota { display: grid; gap: var(--esp-1); text-align: center; }
.testes-nota h2 { margin: 0; }
.testes-nota-valor b { font-size: 40px; font-weight: var(--peso-extra); font-variant-numeric: tabular-nums; }
.testes-corrigida { border-left-width: 4px; }
.testes-corrigida.is-certa { border-left-color: var(--ok); }
.testes-corrigida.is-errada { border-left-color: var(--erro); }
.testes-corrigida .tag { justify-self: start; }
.testes-corrigida p { margin: 0; overflow-wrap: anywhere; }
.testes-explicacao { padding-top: var(--esp-2); border-top: 1px solid var(--line); }
.testes-fonte { color: var(--muted); font-size: 12px; }

/* Perfil: histórico das notas por tema */
.testes-historico { display: grid; gap: 4px; margin: 0; padding-left: 1.2em; font-variant-numeric: tabular-nums; }
