/* Modo Prova: configuração, resposta registrada e revisão somente ao final. */
/* The document owns scrolling. An auto-overflow body traps sticky descendants
   even when that body has no scroll range of its own. */
body.nq-studying:has(#examPage) { overflow: visible !important; }
#examPage { --txt: #eee8d9; --txt-dim: #b7c2cc; --gold: #edce83; background: #0b141d; color: var(--txt); font-family: var(--nql-font-body, Philosopher, sans-serif); }
#examPage .nq-study-content { width: min(100%, 1080px); padding-block: clamp(24px, 4vw, 48px); }
#examPage .nq-exam-intro { max-width: 1080px !important; }
#examPage h1 { color: var(--gold); font-family: var(--nql-font-display, Cinzel, serif); font-size: clamp(1.4rem, 3vw, 2rem); }
#examPage h2 { font-family: var(--nql-font-display, Cinzel, serif); font-size: 1.15rem; }
#examPage .nq-exam-intro > p { max-width: 68ch; margin-block: 12px 28px; }
#examPage .nq-exam-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid #607480; border-radius: 18px; overflow: hidden; background: #101e29; }
#examPage .nq-exam-config { display: grid; align-content: start; min-width: 0; margin: 0; padding: 24px; border: 0; }
#examPage .nq-exam-config legend { float: left; width: 100%; padding: 0 0 22px; color: var(--gold); font: 600 1.25rem/1.4 var(--nql-font-display, Cinzel, serif); }
#examPage .nq-exam-config label { display: block; color: var(--txt); font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
#examPage .nq-exam-config input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 52px; padding: 10px 14px; border: 1px solid #78929f; border-radius: 8px; background: #08121b; color: var(--txt); font-family: inherit; font-size: 1.3rem; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
#examPage .nq-exam-config p { margin: 8px 0 24px; color: var(--txt-dim); font-size: .9rem; line-height: 1.6; }
#examPage .nq-exam-config p:last-child { margin-bottom: 0; }
#examPage .nq-exam-brief { padding: 24px; background: #14252c; border-left: 1px solid #607480; }
#examPage .nq-exam-brief h2 { margin: 0 0 20px !important; color: #91dfe3; }
#examPage .nq-exam-brief p { color: #d1dde3; line-height: 1.8; max-width: 48ch; margin: 0 0 22px; }
#examPage .nq-exam-brief p:last-child { margin-bottom: 0; }
#examPage .nq-exam-cabecalho { position: sticky; top: var(--nq-exam-safe-top, env(safe-area-inset-top, 0px)); z-index: 2; border-bottom-color: #607480; padding-block: 12px; margin-bottom: 12px; background: #0b141d; box-shadow: 0 10px 16px -14px #000; }
#examPage .nq-exam-contexto { min-width: 0; display: grid; gap: 2px; }
#examPage .nq-exam-titulo { font-family: var(--nql-font-display, Cinzel, serif); color: var(--gold); font-size: .8rem; }
#examPage .nq-exam-contexto h1 { margin: 0; color: var(--txt); font-family: var(--nql-font-body, sans-serif); font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
#examPage .nq-exam-relogio { color: #91dfe3; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
#examPage :is(.nq-exam-opcao, #examCorrecao, .nq-exam-rodape button) { scroll-margin-block-start: calc(var(--nq-exam-header-height, 7rem) + var(--nq-exam-safe-top, env(safe-area-inset-top, 0px)) + 16px); scroll-margin-block-end: 16px; }
#examPage .nq-exam-relogio.nq-exam-urgente { color: #f7b2bf; }
#examPage .nq-exam-progresso { height: 6px; }
#examPage .nq-exam-questao { max-width: 78ch; padding-block: 24px 28px; }
#examPage .nq-exam-questao h1 { color: var(--txt-dim); font-family: inherit; font-size: 1rem; margin-bottom: 18px; }
#examPage .nq-exam-enunciado { font-size: 1.15rem; line-height: 1.8; margin-bottom: 24px; }
#examPage .nq-exam-opcoes { gap: 12px; }
#examPage .nq-exam-opcao { align-items: center; padding: 16px; border-color: #607480; border-radius: 10px; background: #101e29; color: var(--txt); min-height: 58px; }
#examPage .nq-exam-opcao-selecionada { border-color: #bfa5df; background: #26253c; }
#examPage .nq-exam-letra { border-color: #78929f; }
#examPage .nq-exam-marca { color: #d8c4ef; }
#examPage .nq-exam-registro { margin-top: 20px; padding-left: 16px; border-left: 3px solid #bfa5df; }
#examPage .nq-exam-registro p { color: var(--txt-dim); line-height: 1.7; }
#examPage #examCorrecao > .btn { margin-top: 14px; }
#examPage .btn { min-height: 48px; }
#examPage :is(button, input, summary):focus-visible { outline: 2px solid #91dfe3; outline-offset: 4px; }
#examPage .nq-study-result-metrics { margin-block: 24px; }
#examPage .nq-exam-erros :is(article, ul, li) { min-width: 0; }
#examPage .nq-exam-erros :is(p, li) { overflow-wrap: anywhere; }
#examPage .nq-exam-revisao-demais { margin-top: 24px; border-top: 1px solid #607480; padding-top: 16px; }
#examPage .nq-exam-revisao-demais summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--txt); font-weight: 700; }
#examPage .nq-exam-revisao-demais article { padding: 16px 0; border-bottom: 1px solid #607480; }
#examPage .nq-exam-revisao-demais article p { line-height: 1.7; overflow-wrap: anywhere; }
#examPage .nq-exam-revisao-demais ul { list-style: none; padding: 0; display: grid; gap: 6px; }
#examPage .nq-exam-revisao-demais li { padding: 8px 12px; border: 1px solid #607480; border-radius: 6px; color: var(--txt-dim); overflow-wrap: anywhere; }
@media (max-width: 700px) {
  #examPage .nq-exam-setup { grid-template-columns: minmax(0, 1fr); }
  #examPage .nq-exam-brief { border-left: 0; border-top: 1px solid #607480; }
  #examPage .nq-exam-config, #examPage .nq-exam-brief { padding: 20px 16px; }
  #examPage .nq-exam-cabecalho { grid-template-columns: minmax(0, 1fr); }
  #examPage .nq-exam-titulo { display: none; }
  #examPage .nq-exam-opcao { padding: 12px; gap: 10px; }
}
