/* ==========================================================================
   ACERVO CORE — tema claro, alinhado à identidade Método TEF (Home/TEF271)
   Paleta: fundo branco/neutro, tinta navy, dourado só como destaque —
   nunca dourado vivo em texto pequeno (falha de contraste AA).

   Arquivo único compartilhado pelas 6 seções do Acervo (fuvest, militares,
   uece, unicamp, urca, vunesp) — mantido idêntico nas 6 pastas para evitar
   divergência. Ver memória "project_site_audit_2026-07-16" para o histórico
   da consolidação.
   ========================================================================== */
body#acervo-root{
  --bg1:#ffffff;      /* fundo principal da página */
  --bg2:#f7f8fa;      /* fundo de cards/superfícies */
  --bg3:#eef1f5;      /* fundo de elementos internos: alternativas, botões */
  --gold:#8a680f;     /* dourado seguro para texto sobre fundo claro (AA 5.16:1) */
  --gold2:#D4A017;    /* dourado vivo — só fundos/bordas/hover, nunca texto pequeno */
  --white:#131b2c;    /* tinta principal do texto (nome mantido por compatibilidade) */
  --text2:#5b6b83;    /* texto secundário/muted */
  --border:#dde2e9;   /* bordas e divisores */
  --ink:#071323;      /* texto de alto contraste sobre fundo dourado (badges, abas ativas) */
  --green:#168252;    /* verde de confirmação — gabarito correto, selo disponível (AA-safe) */
}
:where(#acervo-root,#acervo-root *){box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:120px}
body#acervo-root{font-family:Inter,system-ui,sans-serif;background:var(--bg1);color:var(--white)}
body#acervo-root > main.container,
body#acervo-root [id^="questoes-wrap"].container,
body#acervo-root #questoes-wrap > .container,
body#acervo-root .ac-header .container,
body#acervo-root .ac-nav .container,
body#acervo-root .etapa-bar .container,
body#acervo-root .ac-cta-strip .container,
body#acervo-root .ac-dados-prova.container{width:min(860px,calc(100% - 40px));margin:auto}
.kicker{font-size:10px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:12px}
.ac-header{
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(212,160,23,.08), transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 60%);
  padding:56px 0 40px;border-bottom:1px solid var(--border);text-align:center
}
.ac-header h1{font-family:'Playfair Display',serif;font-size:clamp(28px,5vw,52px);line-height:1.05;letter-spacing:-.03em;margin-bottom:12px}
.ac-header h1 span{color:var(--gold);font-style:italic}
.ac-header p{font-size:14px;color:var(--text2);max-width:480px;margin:0 auto}
.ac-header-id{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:16px}
.ac-header-logo{width:72px;height:72px;border-radius:14px;background:#fff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px;flex-shrink:0}
.ac-header-logo img{max-width:100%;max-height:100%;object-fit:contain}
.ac-header-text{text-align:left}
.ac-header-text h1{margin-bottom:4px}
.ac-header-sub{font-size:13px;color:var(--text2);font-weight:600}
@media(max-width:480px){
  .ac-header-id{flex-direction:column;gap:12px}
  .ac-header-text{text-align:center}
}
.ac-nav{background:var(--bg1);border-bottom:1px solid var(--border);padding:12px 0;position:sticky;top:0;z-index:98}
.ac-nav-inner{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ac-nav-groups{display:flex;flex-direction:column;gap:10px}
body#acervo-root .ufpr-prova-nav{position:static;top:auto}
body#acervo-root .ufpr-prova-nav .etapa-inner{flex-direction:column;align-items:stretch}
body#acervo-root .ufpr-prova-nav ~ .etapa-secao > .ac-nav{display:none}
.ac-nav-label{font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.1em;margin-right:4px}
.ac-nav-btn{background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:5px 11px;font-size:12px;font-weight:700;color:var(--text2);cursor:pointer;transition:.2s;text-decoration:none}
.ac-nav-inner button.ac-nav-btn{font-family:Inter,Arial,sans-serif;font-size:12px;line-height:1.35}
.ac-nav-btn:hover{border-color:var(--gold2);color:var(--gold)}
.ac-nav-btn.q-current{background:var(--gold2);color:var(--ink);border-color:var(--gold2)}
.ac-nav-btn.ac-dados-toggle{background:#fff;color:var(--white);font-weight:800}
.ac-nav-btn.ac-dados-toggle.is-open{background:var(--gold2);border-color:var(--gold2);color:var(--ink)}
.ac-nav-btn--prova{background:transparent;border-color:rgba(217,96,59,.35);color:#D9603B;font-weight:800;margin-right:6px}
.ac-nav-btn--prova:hover{border-color:#D9603B;color:#D9603B;background:rgba(217,96,59,.08)}
.ac-card{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:32px;margin-bottom:24px;scroll-margin-top:120px;box-shadow:0 1px 2px rgba(10,26,51,.05);overflow:hidden}
.ac-card.ac-card--ativo{display:block}
.ac-card-header{display:flex;align-items:center;gap:12px;margin:-32px -32px 20px -32px;padding:13px 20px;background:linear-gradient(90deg,#071323 0%,#12253B 100%);border-radius:15px 15px 0 0}
.ac-num-badge{background:var(--gold2);color:var(--ink);border-radius:8px;padding:4px 12px;font-size:13px;font-weight:900;flex-shrink:0}
.ac-assunto{font-size:13px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.08em;margin-top:0}
.ac-enunciado{font-size:14px;color:var(--text2);line-height:1.9;margin-bottom:24px}
.ac-enunciado strong{color:var(--white)}
.ac-enunciado p{margin-bottom:14px}
.ac-enunciado p:last-child{margin-bottom:0}
.ac-figura{margin:20px auto;text-align:center}
.ac-figura img{display:block;width:auto;max-width:min(100%,420px);height:auto;margin:auto;border:1px solid var(--border);border-radius:10px;background:#fff}
.ac-alt-img{display:block;max-width:min(100%,420px);width:auto;height:auto;margin:10px auto 0;background:#fff;border-radius:8px}
.ac-figura-indisponivel{margin:20px 0;padding:16px 18px;border:1px dashed var(--border);border-radius:10px;font-size:13px;color:var(--text2);font-style:italic}
.ac-table-wrap{overflow-x:auto;margin:18px 0 24px;border:1px solid var(--border);border-radius:10px}
.ac-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}
.ac-table-wrap th,.ac-table-wrap td{padding:10px 16px;text-align:left;border-bottom:1px solid var(--border)}
.ac-table-wrap thead th{background:var(--bg3);color:var(--white);font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.ac-table-wrap tbody td{color:var(--text2)}
.ac-table-wrap tbody tr:last-child td{border-bottom:none}
.ac-alternativas{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.ac-alt{position:relative;background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:12px 16px 12px 46px;font-size:14px;color:var(--white);line-height:1.7}
.ac-alt-letra{position:absolute;left:16px;top:12px;font-weight:900;color:var(--gold)}
.ac-botoes-resposta{display:flex;gap:12px;flex-wrap:wrap}
.ac-gabarito-btn{display:inline-block;background:transparent;border:1px solid var(--border);border-radius:8px;padding:9px 18px;font-size:13px;font-weight:700;color:var(--text2);cursor:pointer;font-family:inherit;text-decoration:none;transition:.2s}
.ac-gabarito-btn:hover{border-color:var(--gold2);color:var(--gold)}
.ac-gabarito-reveal{display:none;margin-top:14px;background:rgba(22,130,82,.08);border:1px solid rgba(22,130,82,.3);border-radius:10px;padding:14px 18px}
.ac-gabarito-reveal p{font-size:12px;color:var(--text2);margin-bottom:4px}
.ac-gabarito-reveal strong{color:var(--green);font-size:16px}
.ac-resolucao-reveal{display:none;margin-top:14px;background:rgba(22,130,82,.08);border:1px solid rgba(22,130,82,.3);border-radius:10px;padding:16px 18px}
.ac-resolucao-reveal .ac-resp-label{font-size:11px;color:var(--green);font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px;display:block}
.ac-resolucao-reveal p{font-size:13px;color:var(--text2);line-height:1.85;margin-bottom:10px}
.ac-resolucao-reveal p:last-child{margin-bottom:0}
.ac-nota-transparencia{font-size:12px;color:var(--text2);font-style:italic;border-top:1px dashed var(--border);padding-top:10px;margin-top:6px}
.ac-resposta-final{margin-top:12px!important;padding-top:12px;border-top:1px dashed rgba(22,130,82,.3);font-size:13px;font-weight:800;color:var(--white)}
.ac-resposta-final strong{color:var(--green)}
.ac-resposta-final.ac-resposta-anulada{border-top-color:rgba(217,96,59,.35)}
.ac-resposta-final.ac-resposta-anulada strong{color:#D9603B}
.ac-dados-prova{margin:28px auto 0;padding:28px 30px;background:var(--bg2);border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 34px rgba(15,35,70,.08)}
.ac-dados-prova[hidden]{display:none!important}
.ac-dados-prova h2{font-family:"Playfair Display",serif;font-size:26px;line-height:1.1;margin:0 0 10px;color:var(--white)}
.ac-dados-prova p{margin:0 0 18px;color:var(--text2)}
.ac-dados-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}
.ac-dado{padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--bg3);color:var(--white);font-size:15px;line-height:1.35}
@media(max-width:720px){.ac-dados-prova{padding:22px 18px}.ac-dados-grid{grid-template-columns:1fr}}
[id^="questoes-wrap"] .ac-card{display:none}
[id^="questoes-wrap"] .ac-card.q-active{display:block}
.q-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.q-arrow{background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:12px 22px;font-size:14px;font-weight:800;color:var(--white);cursor:pointer;font-family:inherit;transition:.2s;flex:1;max-width:200px}
.q-arrow:hover{border-color:var(--gold2);color:var(--gold)}
.q-arrow:disabled{opacity:.35;cursor:not-allowed;color:var(--text2)}
.q-arrow.prev{text-align:left}
.q-arrow.next{text-align:right}
.ac-voltar{display:block;text-align:center;padding:32px 0 48px;color:var(--gold);font-size:13px;font-weight:700;text-decoration:none}
.ac-voltar:hover{text-decoration:underline}
.ac-voltar-top{display:flex;align-items:center;gap:6px;width:max-content;margin:0 0 22px;padding:9px 14px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--white);font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 8px 22px rgba(10,26,51,.06);transition:.2s}
.ac-voltar-top:hover{border-color:var(--gold2);color:var(--gold)}
@media(max-width:768px){.ac-card{padding:20px}.ac-card-header{margin:-20px -20px 16px -20px}}

/* ---- Hub de duas colunas: banca à esquerda, edições à direita ----
   Ativado quando .ac-header + .ac-grid-wrap estão dentro de .ac-hub-layout,
   pra caber sem rolar (pedido 2026-08-05). Fora do .ac-hub-layout,
   .ac-header continua com o layout de hero antigo (compat). */
@media (min-width: 860px) {
  .ac-hub-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(20px, 3vh, 32px) 20px;
  }

  .ac-hub-layout .ac-header {
    background: none;
    border-bottom: none;
    padding: 0;
    text-align: left;
  }

  .ac-hub-layout .ac-header .container {
    width: auto;
    margin: 0;
  }

  .ac-hub-layout .ac-header-id {
    justify-content: flex-start;
  }

  .ac-hub-layout .ac-header p {
    margin: 0;
    max-width: none;
  }

  .ac-hub-layout .ac-voltar-top {
    margin-bottom: 20px;
  }
}

/* --- CTA de contato: WhatsApp + Grupo (injetado via acervo-core.js) --- */
.ac-cta-strip{border-bottom:1px solid var(--border);background:var(--bg2);padding:14px 0}
.ac-cta-strip--bottom{border-bottom:none;border-top:1px solid var(--border);padding:20px 0 8px}
.ac-cta-inner{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ac-cta-copy{flex:1;min-width:180px;font-size:13px;line-height:1.4;color:var(--text2)}
.ac-cta-copy strong{display:block;font-weight:700;color:var(--white);margin-bottom:2px}
.ac-cta-btns{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}
.ac-cta-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;transition:opacity .15s,transform .1s;white-space:nowrap;font-family:inherit}
.ac-cta-btn:hover{opacity:.85;transform:translateY(-1px)}
.ac-cta-btn--zap{background:#25d366;color:#fff}
.ac-cta-btn--grupo{background:transparent;color:var(--white);border:1.5px solid var(--border)}
.ac-cta-btn--grupo:hover{border-color:var(--text2)}
@media(max-width:520px){
  .ac-cta-inner{flex-direction:column;align-items:flex-start;gap:12px}
  .ac-cta-btns{width:100%}
  .ac-cta-btn{flex:1;justify-content:center}
}

/* KaTeX display-mode: overflow fix para telas estreitas */
.katex-display{overflow-x:auto;overflow-y:hidden;padding:4px 0;font-size:.88em}
@media(max-width:540px){.katex-display{font-size:.78em}}
@media(max-width:380px){.katex-display{font-size:.65em}}

/* Alternativas com imagem — grid 3+2 */
.ac-alt-img-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.ac-alt-img-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--bg3)}
.ac-alt-img-item .ac-alt-letra{position:static;font-weight:900;color:var(--gold);font-size:14px;align-self:flex-start}
.ac-alt-img-item img{max-width:100%;height:auto;border-radius:6px;background:#fff}
@media(max-width:600px){.ac-alt-img-grid{grid-template-columns:repeat(2,1fr)}}


/* ==========================================================================
   NAVEGAÇÃO LATERAL UNIVERSAL — body.ac-prova-lateral
   Ativado automaticamente pelo acervo-core.js em todas as páginas de prova.
   Mesma experiência do padrão FUVEST/UNICAMP para todo o acervo.
   ========================================================================== */

/* Suprimir navegação legada */
body.ac-prova-lateral #nav-questoes,
body.ac-prova-lateral .ac-nav-bar,
body.ac-prova-lateral>.ac-nav,
body.ac-prova-lateral>.ac-voltar,
body.ac-prova-lateral>.ac-cta-strip{display:none!important}

/* Sidebar — container extra */
body.ac-prova-lateral .fuvest-sidebar-extra{margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14)}
body.ac-prova-lateral .fuvest-data-toggle{display:flex;width:100%;min-height:40px;margin:0 0 12px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font:800 12px/1 Inter,sans-serif;cursor:pointer;transition:.18s ease}
body.ac-prova-lateral .fuvest-data-toggle:hover,
body.ac-prova-lateral .fuvest-data-toggle:focus-visible,
body.ac-prova-lateral .fuvest-data-toggle[aria-expanded="true"]{border-color:var(--gold);background:rgba(215,166,31,.16);outline:none}
body.ac-prova-lateral .fuvest-dados-prova{width:100%;max-height:230px;margin:0 0 14px;padding:14px;overflow:auto;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.07);color:#fff}
body.ac-prova-lateral .fuvest-dados-prova[hidden]{display:none!important}
body.ac-prova-lateral .fuvest-dados-prova h2{margin:0 0 8px;color:#fff;font-size:16px}
body.ac-prova-lateral .fuvest-dados-prova p{display:block!important;margin:0 0 10px!important;color:rgba(255,255,255,.72)!important;font-size:11px!important;line-height:1.45!important}
body.ac-prova-lateral .fuvest-dados-prova .ac-dados-grid{display:grid;grid-template-columns:1fr;gap:6px}
body.ac-prova-lateral .fuvest-dados-prova .ac-dado{padding:8px;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;font-size:11px}

/* Grade de questões na sidebar */
body.ac-prova-lateral .fuvest-qnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body.ac-prova-lateral .fuvest-qnav button,
body.ac-prova-lateral .fuvest-qnav a{display:grid;place-items:center;min-height:36px;padding:6px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.84);font:800 11px/1 Inter,sans-serif;text-decoration:none;cursor:pointer;transition:.18s ease}
body.ac-prova-lateral .fuvest-qnav button:hover,
body.ac-prova-lateral .fuvest-qnav button:focus-visible,
body.ac-prova-lateral .fuvest-qnav a:hover,
body.ac-prova-lateral .fuvest-qnav a:focus-visible{border-color:var(--gold);color:#fff;outline:none}
body.ac-prova-lateral .fuvest-qnav button.is-current,
body.ac-prova-lateral .fuvest-qnav a.is-current{border-color:var(--gold);background:var(--gold);color:#071323}

/* Alternativas estilizadas */
body.ac-prova-lateral #questoes-wrap .ac-alternativas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px;margin-bottom:20px}
body.ac-prova-lateral #questoes-wrap .ac-alternativas p,
body.ac-prova-lateral #questoes-wrap .ac-enunciado>p:has(>.ac-alt-label){margin:0 0 12px!important;padding:15px 18px;border:1px solid #d8e0ea;border-radius:12px;background:#eef2f6;color:#334a68;line-height:1.55;transition:border-color .18s ease,background .18s ease,transform .18s ease}
body.ac-prova-lateral #questoes-wrap .ac-alternativas p:hover,
body.ac-prova-lateral #questoes-wrap .ac-enunciado>p:has(>.ac-alt-label):hover{border-color:#b7c5d6;background:#f5f7fa;transform:translateY(-1px)}
body.ac-prova-lateral #questoes-wrap .ac-alt-label{display:inline-block;min-width:30px;color:#966b00;font-weight:900;text-transform:uppercase}
@media(max-width:900px){body.ac-prova-lateral #questoes-wrap .ac-alternativas{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.ac-prova-lateral #questoes-wrap .ac-alternativas{grid-template-columns:1fr}}

/* Botões prev/next da sidebar */
body.ac-prova-lateral .fuvest-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
body.ac-prova-lateral .fuvest-actions button{min-height:40px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-weight:800;cursor:pointer;transition:.18s ease}
body.ac-prova-lateral .fuvest-actions button:disabled{opacity:.35;cursor:not-allowed}
body.ac-prova-lateral .fuvest-actions button:not(:disabled):hover{border-color:var(--gold)}

/* Links de contato */
body.ac-prova-lateral .fuvest-contact{display:grid;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14)}
body.ac-prova-lateral .fuvest-contact a{display:flex;min-height:38px;align-items:center;justify-content:center;padding:8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:9px;color:#fff;font-size:11px;font-weight:800;text-align:center;text-decoration:none;transition:.18s ease}
body.ac-prova-lateral .fuvest-contact a:first-child{background:#187a56;border-color:#269b71}
body.ac-prova-lateral .fuvest-contact a:last-child{background:rgba(255,255,255,.08)}
body.ac-prova-lateral .fuvest-contact a:hover,
body.ac-prova-lateral .fuvest-contact a:focus-visible{border-color:var(--gold);outline:none}
body.ac-prova-lateral .fuvest-hint{margin:14px 0 0!important;color:rgba(255,255,255,.52)!important;font-size:11px!important;line-height:1.5!important;text-align:center}

/* Uma questão visível por vez */
body.ac-prova-lateral #questoes-wrap .ac-card{display:none!important}
body.ac-prova-lateral #questoes-wrap .ac-card.q-active{display:block!important}
/* Ocultar q-controls inline (substituídos pelo rodapé desktop ou nav sidebar) */
body.ac-prova-lateral.has-desktop-question-footer #questoes-wrap .ac-card>.q-controls{display:none!important}

/* === DESKTOP (≥901px) =============================================== */
@media(min-width:901px){
  html:has(body.ac-prova-lateral),body.ac-prova-lateral{height:100%;overflow:hidden}
  body.ac-prova-lateral{display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);padding-top:0!important;background:#edf1f6}
  body.ac-prova-lateral>.site-header{display:block!important;grid-column:1/-1;grid-row:1;position:relative;z-index:20}
  /* Sidebar esquerda */
  body.ac-prova-lateral>.ac-header{grid-column:1;grid-row:2;height:100%;min-height:0;margin:0;padding:24px 22px;overflow-y:auto;scrollbar-width:none;background:linear-gradient(165deg,#071323 0%,#0c2340 72%,#102e52 100%);border:0}
  body.ac-prova-lateral>.ac-header::-webkit-scrollbar{display:none}
  body.ac-prova-lateral>.ac-header .container{width:100%;max-width:none;padding:0}
  /* Botão voltar destacado */
  body.ac-prova-lateral>.ac-header .ac-voltar-top{display:flex;width:100%;min-height:52px;margin-bottom:32px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.88);border-radius:14px;background:#fff;color:#071323!important;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 10px 28px rgba(0,0,0,.12);transition:.18s ease}
  body.ac-prova-lateral>.ac-header .ac-voltar-top:hover{box-shadow:0 14px 36px rgba(0,0,0,.18);transform:translateY(-1px)}
  /* Ocultar elementos decorativos da sidebar */
  body.ac-prova-lateral>.ac-header .kicker,
  body.ac-prova-lateral>.ac-header .ac-header-logo,
  body.ac-prova-lateral>.ac-header .ac-header-sub,
  body.ac-prova-lateral>.ac-header .container>p:not(.fuvest-hint){display:none!important}
  body.ac-prova-lateral>.ac-header h1{max-width:260px;margin:0 0 4px;color:#fff;font-size:26px;line-height:1.12}
  /* Área de conteúdo direita */
  body.ac-prova-lateral>#questoes-wrap{grid-column:2;grid-row:2;height:100%;min-height:0;padding:22px!important;overflow:hidden;background:#edf1f6}
  /* Estrutura FUVEST: #questoes-wrap > .container > cards */
  body.ac-prova-lateral>#questoes-wrap>.container{width:100%;max-width:1120px;height:100%;padding:0}
  body.ac-prova-lateral.has-desktop-question-footer>#questoes-wrap>.container{display:grid;grid-template-rows:minmax(0,1fr) auto}
  /* Estrutura direta: #questoes-wrap.ac-wrap-direct > cards (sem .container interno) */
  body.ac-prova-lateral.has-desktop-question-footer>#questoes-wrap.ac-wrap-direct{display:grid;grid-template-rows:minmax(0,1fr) auto}
  /* Card scrollável */
  body.ac-prova-lateral>#questoes-wrap .ac-card.q-active{height:100%;min-height:0;margin:0;border-radius:16px 16px 0 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:24px;box-shadow:0 18px 55px rgba(7,19,35,.1)}
  body.ac-prova-lateral>#questoes-wrap .ac-card.q-active::-webkit-scrollbar{width:8px}
  body.ac-prova-lateral>#questoes-wrap .ac-card.q-active::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:#c7d0dc;background-clip:padding-box}
  /* Rodapé desktop com prev/next */
  body.ac-prova-lateral.has-desktop-question-footer>#questoes-wrap .desktop-question-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:12px 32px;border-top:1px solid var(--border);border-radius:0 0 16px 16px;background:rgba(255,255,255,.96);box-shadow:0 18px 55px rgba(7,19,35,.1);backdrop-filter:blur(12px);z-index:3}
  body.ac-prova-lateral.has-desktop-question-footer>#questoes-wrap .desktop-question-footer .q-arrow{min-width:220px}
  body.ac-prova-lateral.has-desktop-question-footer>#questoes-wrap .desktop-question-footer .q-arrow:disabled{opacity:.45;cursor:not-allowed}
}

/* === MOBILE (≤900px) ================================================ */
@media(max-width:900px){
  .desktop-question-footer{display:none!important}
  body.ac-prova-lateral>.ac-header{margin:0;padding:14px 0 12px;background:linear-gradient(135deg,#071323,#102e52);border:0}
  body.ac-prova-lateral>.ac-header .container{padding-inline:16px}
  body.ac-prova-lateral>.ac-header .ac-voltar-top{display:inline-flex;min-height:34px;margin:0 0 12px;padding:7px 11px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#fff!important;font-size:12px;font-weight:800;text-decoration:none}
  body.ac-prova-lateral>.ac-header .kicker,
  body.ac-prova-lateral>.ac-header .ac-header-logo,
  body.ac-prova-lateral>.ac-header .ac-header-sub,
  body.ac-prova-lateral>.ac-header .container>p:not(.fuvest-hint){display:none!important}
  body.ac-prova-lateral>.ac-header h1{margin:0;color:#fff;font-size:22px;line-height:1.15}
  body.ac-prova-lateral .fuvest-sidebar-extra{margin-top:12px;padding-top:12px}
  body.ac-prova-lateral .fuvest-data-toggle{min-height:36px;margin-bottom:9px;font-size:11px}
  body.ac-prova-lateral .fuvest-dados-prova{max-height:180px;margin-bottom:10px;padding:11px}
  /* Nav horizontal em mobile */
  body.ac-prova-lateral .fuvest-qnav{display:flex;gap:7px;margin-inline:-16px;padding:0 16px 4px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
  body.ac-prova-lateral .fuvest-qnav::-webkit-scrollbar{display:none}
  body.ac-prova-lateral .fuvest-qnav button,
  body.ac-prova-lateral .fuvest-qnav a{flex:0 0 52px;min-height:38px;scroll-snap-align:start}
  body.ac-prova-lateral .fuvest-actions,
  body.ac-prova-lateral .fuvest-hint{display:none}
  body.ac-prova-lateral .fuvest-contact{display:flex;gap:7px;margin-top:10px;padding-top:10px}
  body.ac-prova-lateral .fuvest-contact a{flex:1;min-height:34px;padding:6px;font-size:10px}
  body.ac-prova-lateral>#questoes-wrap{padding:10px 0 72px!important;background:#edf1f6}
  body.ac-prova-lateral>#questoes-wrap>.container{width:100%;padding-inline:10px}
  body.ac-prova-lateral>#questoes-wrap .ac-card{margin:0;border-radius:14px;box-shadow:0 10px 28px rgba(7,19,35,.08)}
  body.ac-prova-lateral>#questoes-wrap .ac-enunciado,
  body.ac-prova-lateral>#questoes-wrap .ac-alternativas,
  body.ac-prova-lateral>#questoes-wrap .ac-alt-img-grid,
  body.ac-prova-lateral>#questoes-wrap .ac-botoes-resposta,
  body.ac-prova-lateral>#questoes-wrap .ac-gabarito-reveal,
  body.ac-prova-lateral>#questoes-wrap .ac-resolucao-reveal{margin-left:16px;margin-right:16px}
}

@media(max-width:560px){
  body.ac-prova-lateral>.ac-header h1{font-size:20px}
  body.ac-prova-lateral>#questoes-wrap>.container{padding-inline:7px}
  body.ac-prova-lateral>#questoes-wrap .ac-card{border-radius:12px}
}

/* Alternativas com imagem — grade 3 colunas */
body.ac-prova-lateral #questoes-wrap .ac-alt-img-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
body.ac-prova-lateral #questoes-wrap .ac-alt-img-item{min-width:0}
body.ac-prova-lateral #questoes-wrap .ac-alt-img-item img{display:block;width:100%!important;height:auto!important;max-height:260px!important;object-fit:contain!important}
@media(max-width:900px){body.ac-prova-lateral #questoes-wrap .ac-alt-img-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body.ac-prova-lateral #questoes-wrap .ac-alt-img-grid{grid-template-columns:1fr!important}}
