/* ==========================================================
   ONISNE_L | Estilos dos módulos novos: acessibilidade, química,
   comunidade (denúncia, solicitações, clubes) e extras do atlas.
   ========================================================== */
.pular { position: absolute; left: -999px; top: 0; z-index: 9999; padding: .6rem 1rem; background: var(--principal); color: #fff; }
.pular:focus { left: 0; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.so-leitor-tabela table { border-collapse: collapse; }
.so-leitor-tabela th, .so-leitor-tabela td { border: 1px solid #999; padding: .3rem .5rem; text-align: left; }
#conteudo-principal:focus { outline: none; }
.erro { color: #b3261e; font-weight: 700; }
.qm-botoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-pequeno { padding: .35rem .8rem; font-size: .85rem; }

/* ---- Acessibilidade ---- */
.a11y-painel { width: min(350px, 92vw); max-height: 80vh; overflow: auto; right: 0; }
.a11y-painel h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.a11y-grupo { border: 0; padding: 0; margin: 0 0 .9rem; }
.a11y-grupo legend, .a11y-grupo > strong { display: block; margin-bottom: .35rem; font-weight: 700; color: var(--principal); }
.a11y-tam { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.a11y-tam output { min-width: 3.2rem; text-align: center; font-weight: 700; }
.a11y-opcao { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; cursor: pointer; }
.a11y-opcao input { width: 1.2rem; height: 1.2rem; }
html.a11y-sem-anim *, html.a11y-sem-anim *::before, html.a11y-sem-anim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-espaco body { line-height: 1.9; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-espaco p, html.a11y-espaco li { line-height: 1.9; }
html.a11y-fonte body, html.a11y-fonte button, html.a11y-fonte input, html.a11y-fonte select, html.a11y-fonte textarea { font-family: Verdana, Tahoma, "Atkinson Hyperlegible", sans-serif !important; letter-spacing: .04em; }
html.a11y-botoes .btn, html.a11y-botoes button, html.a11y-botoes input, html.a11y-botoes select { min-height: 48px; font-size: 1.05rem; }
html.a11y-foco .contador, html.a11y-foco .atlas-live-label, html.a11y-foco .toast { display: none !important; }
html.a11y-leitura .area-principal { max-width: 70ch; margin-inline: auto; }
html.a11y-leitura canvas { display: none; }
html.a11y-leitura .so-leitor-tabela { position: static !important; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; margin: .5rem 0; }
html.a11y-leitura .stat, html.a11y-leitura .cartao { box-shadow: none; }
html.a11y-contraste { --principal: #ffe600; --botao: #ffe600; --cartao: #161616; --fundo: #000; --texto: #fff; --texto-suave: #f2f2f2; --borda: #fff; --destaque: #ffe600; --apoio: #00e5ff; }
html.a11y-contraste body, html.a11y-contraste .conteudo, html.a11y-contraste .barra, html.a11y-contraste .cartao, html.a11y-contraste .stat, html.a11y-contraste .post, html.a11y-contraste .painel-notif, html.a11y-contraste .modal, html.a11y-contraste .atlas-side-card, html.a11y-contraste .atlas-map-card, html.a11y-contraste .atlas-box, html.a11y-contraste .qm-eq { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contraste .btn, html.a11y-contraste .chip.ativo, html.a11y-contraste .aba.ativa { background: #ffe600 !important; color: #000 !important; border-color: #ffe600 !important; }
html.a11y-contraste .btn-claro, html.a11y-contraste .chip, html.a11y-contraste .aba { background: #000 !important; color: #ffe600 !important; border: 2px solid #ffe600 !important; }
html.a11y-contraste a { color: #00e5ff; }
html.a11y-contraste .atlas-view, html.a11y-contraste .atlas-view * { color: #fff; }
html.a11y-contraste input, html.a11y-contraste select, html.a11y-contraste textarea { background: #000; color: #fff; border: 2px solid #fff; }
html.a11y-contraste .pt-el, html.a11y-contraste .pt-el * { color: #000 !important; }

/* ---- Comunidade ---- */
.btn-denuncia { background: none; border: 0; padding: 0 .4rem; margin-left: .5rem; color: var(--texto-suave); font-size: .78rem; text-decoration: underline; cursor: pointer; }
.msg .btn-denuncia { display: block; margin: .2rem 0 0; }
.den-item { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.den-acoes { display: grid; gap: .5rem; align-content: start; }
.sol-topo { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.etapas { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .7rem 0; padding: 0; }
.etapas li { border-top: 5px solid var(--borda); padding: .4rem .3rem 0; font-size: .78rem; }
.etapas li small { display: block; color: var(--texto-suave); }
.etapas li.feita { border-color: var(--botao); }
.etapas li.atual { border-color: var(--destaque); font-weight: 700; }
.grade-clubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.clube .acoes { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
@media (max-width: 700px) { .etapas { grid-template-columns: 1fr 1fr; } }

/* ---- Química ---- */
.qm-barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qm-barra .abas { display: flex; gap: .4rem; flex-wrap: wrap; }
.qm-barra .aba { padding: .55rem 1rem; border: 2px solid var(--botao); border-radius: 999px; background: #fff; color: var(--principal); font-weight: 700; cursor: pointer; }
.qm-barra .aba.ativa { background: var(--botao); color: #fff; }
.qm-controles { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.qm-controles label { display: grid; gap: .25rem; font-weight: 700; font-size: .85rem; }
.qm-chk { display: flex !important; align-items: center; gap: .4rem; }
.pt-rolagem { overflow-x: auto; padding-bottom: .6rem; }
.pt-grade { display: grid; grid-template-columns: repeat(18, minmax(54px, 1fr)); grid-template-rows: repeat(7, 62px) 14px 62px 62px; gap: 3px; min-width: 1040px; }
.pt-el { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1px; border: 2px solid transparent; border-radius: 6px; cursor: pointer; color: #282333; font-family: inherit; line-height: 1.05; overflow: hidden; }
.pt-el small { font-size: .62rem; align-self: flex-start; padding-left: 3px; }
.pt-el strong { font-size: 1.1rem; }
.pt-el span { font-size: .5rem; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.pt-el.sel { border-color: #282333; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--principal); }
.pt-el.apagado { opacity: .18; }
.pt-amostra { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 3px; vertical-align: middle; }
.pt-det { display: grid; grid-template-columns: 210px 1fr; gap: 1.4rem; align-items: start; }
.pt-bohr svg { width: 100%; height: auto; }
.pt-dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem 1rem; margin: .8rem 0; }
.pt-dados dt { font-size: .75rem; color: var(--texto-suave); }
.pt-dados dd { margin: 0; font-weight: 700; }
#mol-3d { width: 100%; height: auto; background: #f6f2fc; border-radius: 12px; touch-action: none; cursor: grab; }
.mol-2d svg { width: 100%; max-height: 380px; }
.aviso-val { color: #9a3b00; padding-left: 1.2rem; }
.qm-eq { font-size: 1.5rem; font-weight: 700; color: var(--principal); }
.qm-ops { display: grid; gap: .5rem; max-width: 520px; }
.qm-lista li { margin-bottom: .6rem; }
.qm-lista span { margin-right: 1rem; }
:fullscreen#view-quimica, :fullscreen#view-mapa-mundi { overflow: auto; background: var(--fundo); padding: 1rem; }
@media (max-width: 760px) { .pt-det { grid-template-columns: 1fr; } }

/* ---- Atlas: ferramentas extras ---- */
.atlas-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.atlas-box { display: grid; gap: .35rem; padding: .7rem .9rem; border: 1px solid #e5def0; border-radius: 14px; background: #faf8fd; }
.atlas-box > label, .atlas-box > .atlas-control-label { font-size: .78rem; font-weight: 800; color: #4B347F; }
.atlas-linha { display: flex; gap: .4rem; flex-wrap: wrap; }
.atlas-linha input, .atlas-linha select { flex: 1; min-width: 110px; padding: .45rem .6rem; border: 1px solid #cfc5e3; border-radius: 8px; font: inherit; }
.atlas-quiz-msg { grid-column: 1 / -1; margin: 0; padding: .6rem .9rem; border-radius: 12px; background: #fff7dc; font-weight: 700; color: #4B347F; }
.atlas-pais-nome { margin: 0 0 .4rem; color: #4B347F; }
.atlas-dados { display: grid; gap: .4rem; margin: 0; }
.atlas-dados dt { font-size: .7rem; color: #686174; }
.atlas-dados dd { margin: 0; font-weight: 700; }
