/* MuNiria — temas claro e escuro.
   O claro é o padrão (as cores de reserva dentro de cada var() já são as dele).
   O escuro vale com <html data-theme="dark">; o botão de sol/lua no topo troca e guarda a escolha. */

:root{color-scheme:light}

html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"],
html[data-theme="dark"] body{
	/* superfícies */
	--nr-surface:#121c2e; --nr-surface-2:#0c1424; --nr-surface-3:#16223a; --nr-chip:#1a2942; --nr-off:#2a3a55;
	--nr-solid:#2f6fdb; --nr-solid-h:#3d7fe8;
	/* linhas */
	--nr-line:#23324b; --nr-line-s:#1b283f; --nr-line-2:#2d3f5d;
	/* textos */
	--nr-tx-1:#e8f0fa; --nr-tx-2:#c6d4e6; --nr-tx-3:#93a8c2; --nr-tx-4:#6f86a4;
	--nr-link:#6aa8ff; --nr-link-2:#8fbcff;
	/* variáveis antigas do niria-claro.css e do boreal.css */
	--nr-navy:#e8f0fa; --nr-ink:#c6d4e6; --nr-muted:#93a8c2; --nr-soft:#6f86a4;
	--nr-blue:#6aa8ff; --nr-blue-d:#8fbcff; --nr-blue-l:#6aa8ff;
	--nr-ice-1:#0c1424; --nr-ice-2:#1a2942; --nr-line:#23324b;
	--text:#c6d4e6; --text-dim:#93a8c2; --text-mute:#6f86a4; --line:#23324b; --line-hi:#2d3f5d;
	--nr-shadow:0 10px 30px rgba(0,0,0,.35);
	/* variáveis do modelo (home) */
	--white:#121c2e; --ice-1:#0c1424; --ice-2:#1a2942; --ice-3:#22355a; --frost:#2f5d9a;
	--navy:#e8f0fa; --navy-bg:#0a1220; --ink:#c6d4e6; --muted:#93a8c2; --soft:#6f86a4;
	--line:#23324b; --line-2:#2d3f5d; --blue-d:#8fbcff;
	--shadow:0 10px 30px rgba(0,0,0,.35); --shadow-lg:0 24px 60px rgba(0,0,0,.45);
}
html[data-theme="dark"] body{background:#0c1424!important;color:#c6d4e6}

/* ═════ botão de tema ═════ */
.nr-tema{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;border:1.5px solid var(--nr-line-2,#c6dcf1);background:var(--nr-surface,#fff);color:var(--nr-tx-1,#0b2447);cursor:pointer;padding:0;transition:border-color .15s}
.nr-tema:hover{border-color:var(--nr-link,#1f6fe0)}
.nr-tema svg{width:18px;height:18px}
.nr-tema .sol{display:none}
html[data-theme="dark"] .nr-tema .lua{display:none}
html[data-theme="dark"] .nr-tema .sol{display:block}
.mast nav.r .nr-tema{margin-left:6px}
.sk-nav-r .nr-tema{margin-right:2px}

/* ═════ HOME (modelo) ═════ */
html[data-theme="dark"] .mast{background:rgba(10,18,32,.86);border-bottom-color:#1b283f}
html[data-theme="dark"] .mast.stuck{box-shadow:0 8px 26px rgba(0,0,0,.4)}
html[data-theme="dark"] .mast nav a:hover,html[data-theme="dark"] .mast nav a.on{background:#1a2942;color:#e8f0fa}
html[data-theme="dark"] .burger{background:#121c2e;border-color:#2d3f5d;color:#e8f0fa}
html[data-theme="dark"] .drawer.open{background:#0c1424;border-top-color:#1b283f}
html[data-theme="dark"] .drawer a{color:#c6d4e6;border-bottom-color:#1b283f}
html[data-theme="dark"] .hero{background:
	radial-gradient(48% 55% at 50% 38%,rgba(60,130,240,.35),transparent 70%),
	radial-gradient(40% 50% at 10% 20%,rgba(40,90,170,.35),transparent 70%),
	radial-gradient(40% 50% at 92% 25%,rgba(70,60,170,.30),transparent 70%),
	linear-gradient(180deg,#081022 0%,#0b1630 55%,#0c1424 100%)}
html[data-theme="dark"] .hero::before{background:repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 60px,rgba(255,255,255,.04) 60px 62px)}
html[data-theme="dark"] .hero h1{color:#8fbcff}
html[data-theme="dark"] .hero p.lead{color:#c6d4e6}
html[data-theme="dark"] .peaks path:nth-child(1){fill:#16264a}
html[data-theme="dark"] .peaks path:nth-child(2){fill:#c6d4e6;opacity:.35}
html[data-theme="dark"] .peaks path:nth-child(3){fill:#101c36}
html[data-theme="dark"] .peaks path:nth-child(4){fill:#0c1424}
html[data-theme="dark"] .chip{background:rgba(18,28,46,.8);border-color:#2d3f5d;color:#e8f0fa}
html[data-theme="dark"] .btn-glass{background:rgba(18,28,46,.6);border-color:#2d3f5d;color:#e8f0fa}
html[data-theme="dark"] .btn-glass:hover{background:#1a2942}
html[data-theme="dark"] .btn-white{color:#e8f0fa;border-color:#2d3f5d}
html[data-theme="dark"] .lead-news .pic::after{background:linear-gradient(135deg,rgba(31,111,224,.35),rgba(56,182,242,.1)),linear-gradient(90deg,transparent 60%,#121c2e)}
html[data-theme="dark"] .step::before{color:#1a2942}
html[data-theme="dark"] .t-ev{background:#2a2350;color:#b7a5ff}
html[data-theme="dark"] .t-up{background:#14305a;color:#8fbcff}
html[data-theme="dark"] .t-new,html[data-theme="dark"] .tl-i.done time{background:#0f3a2a;color:#5fe0a5}
html[data-theme="dark"] .t-av{background:#45202a;color:#ff9aa8}
html[data-theme="dark"] .cls{border-color:#121c2e}
html[data-theme="dark"] .pc.feat{background:linear-gradient(180deg,#121c2e,#16223a)}
html[data-theme="dark"] .login input{background:#0c1424;color:#e8f0fa}
html[data-theme="dark"] .login input:focus{background:#121c2e}
html[data-theme="dark"] .seg button.on{background:#121c2e;color:#e8f0fa}
html[data-theme="dark"] .cta{background:radial-gradient(50% 70% at 50% 30%,rgba(47,111,219,.25),transparent 70%),linear-gradient(180deg,#0c1424,#0a1220)}
html[data-theme="dark"] footer{background:#0a1220;border-top-color:#1b283f}
html[data-theme="dark"] .soc a{background:#1a2942}

/* ═════ TOPO, FAIXA DE TÍTULO E RODAPÉ das páginas internas ═════ */
html[data-theme="dark"] .sk-nav,html[data-theme="dark"] .sk-nav.stuck,html[data-theme="dark"] .sk-nav.solid{background:rgba(10,18,32,.88);border-bottom-color:#1b283f}
html[data-theme="dark"] body.sk-inner .sk-menu a,html[data-theme="dark"] body.sk-inner .sk-login{color:#93a8c2}
html[data-theme="dark"] body.sk-inner .sk-menu a:hover,html[data-theme="dark"] body.sk-inner .sk-menu a.on,html[data-theme="dark"] body.sk-inner .sk-login:hover{color:#e8f0fa;background:#1a2942}
html[data-theme="dark"] .sk-burger{background:#121c2e;border-color:#2d3f5d;color:#e8f0fa}
html[data-theme="dark"] .sk-pagehead{border-bottom-color:#1b283f;background:radial-gradient(48% 70% at 70% 30%,rgba(47,111,219,.28),transparent 70%),linear-gradient(180deg,#0a1530 0%,#0b1630 60%,#0c1424 100%)}
html[data-theme="dark"] .sk-pagehead::before{background:repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 60px,rgba(255,255,255,.035) 60px 62px)}
html[data-theme="dark"] .sk-pagehead h1{color:#e8f0fa}
html[data-theme="dark"] .sk-live{background:#121c2e;border-color:#1f4a3a;color:#c6d4e6}
html[data-theme="dark"] .sk-live b{color:#e8f0fa}
html[data-theme="dark"] .sk-foot{background:#0a1220;border-top-color:#1b283f}
html[data-theme="dark"] body.sk-inner .sk-foot-g a:not(.sk-logo){color:#c6d4e6}
html[data-theme="dark"] .sk-soc a{background:#1a2942;border-color:#1a2942}
@media(max-width:1100px){
	html[data-theme="dark"] .sk-nav.open,html[data-theme="dark"] .sk-nav.open .sk-menu{background:#0c1424;border-bottom-color:#1b283f}
	html[data-theme="dark"] .sk-nav.open .sk-menu a{color:#c6d4e6;border-bottom-color:#1b283f}
}

/* ═════ PÁGINAS INTERNAS: avisos, selos e detalhes com cor fixa ═════ */
html[data-theme="dark"] body.sk-inner .alert-danger{background:#3a1820!important;color:#ff9aa8!important;border-color:#5a2430!important}
html[data-theme="dark"] body.sk-inner .alert-success{background:#0f2f24!important;color:#5fe0a5!important;border-color:#1c4a38!important}
html[data-theme="dark"] body.sk-inner .alert-warning{background:#3a2a10!important;color:#ffc46b!important;border-color:#5a4318!important}
html[data-theme="dark"] body.sk-inner .alert-info{background:#132a4d!important;color:#8fbcff!important;border-color:#1f3d6b!important}
html[data-theme="dark"] .nc-msg.ok,html[data-theme="dark"] .sn-msg.ok{background:#0f2f24;color:#5fe0a5}
html[data-theme="dark"] .nc-msg.err,html[data-theme="dark"] .sn-msg.err{background:#3a1820;color:#ff9aa8}
html[data-theme="dark"] .nc-msg.warn,html[data-theme="dark"] .sn-msg.warn{background:#3a2a10;color:#ffc46b}
html[data-theme="dark"] body.sk-inner .rankings_menu a:hover{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .in-ac.c-gold{background:linear-gradient(135deg,#1d4fa8,#2f6fdb 60%,#2a8fd0)}
html[data-theme="dark"] .in-ac.c-gold small,html[data-theme="dark"] .in-ac.c-gold b{color:#fff}
html[data-theme="dark"] .in-ac.c-gold span{color:#d6e8fb}
html[data-theme="dark"] .in-ac.c-gold .in-ac-bar i{background:#fff}
html[data-theme="dark"] .in-yes,html[data-theme="dark"] .dn-sim{color:#5fe0a5}
html[data-theme="dark"] .in-req{background:#2a2350;color:#b7a5ff}
html[data-theme="dark"] .nr-ucp-topo{background:radial-gradient(60% 120% at 100% 0,rgba(47,111,219,.30),transparent 70%),linear-gradient(135deg,#16223a,#121c2e)}
html[data-theme="dark"] .nr-ucp-st.on{color:#5fe0a5;border-color:#1c4a38}
html[data-theme="dark"] .sn-modal{background:rgba(0,0,0,.6)}
html[data-theme="dark"] .sn-box{box-shadow:0 30px 70px rgba(0,0,0,.6)}
html[data-theme="dark"] .sn-x{background:#121c2e;color:#e8f0fa}
html[data-theme="dark"] .sn-dias button.on,html[data-theme="dark"] .dn-dias button.on,html[data-theme="dark"] .sn-tabs button.on,html[data-theme="dark"] body.sk-inner .rankings_menu a.active{box-shadow:0 1px 3px rgba(0,0,0,.4)}
html[data-theme="dark"] body.sk-inner .bo-event-badge{background:#1a2942!important;color:#8fbcff!important}
html[data-theme="dark"] .gd-ex-nome em{color:#5fe0a5}
html[data-theme="dark"] body.sk-inner .form-control,html[data-theme="dark"] body.sk-inner .bo-panel input[type=text],html[data-theme="dark"] body.sk-inner .bo-panel input[type=password],html[data-theme="dark"] body.sk-inner .bo-panel input[type=email],html[data-theme="dark"] body.sk-inner .bo-panel select,html[data-theme="dark"] body.sk-inner .bo-panel textarea{
	background:#0c1424!important;border-color:#2d3f5d!important;color:#e8f0fa!important}
html[data-theme="dark"] body.sk-inner .form-control:focus,html[data-theme="dark"] body.sk-inner .bo-panel input:focus{background:#121c2e!important}
html[data-theme="dark"] body.sk-inner .table>thead>tr>th{background:#16223a!important}
html[data-theme="dark"] body.sk-inner .table>tbody>tr:hover>td,html[data-theme="dark"] body.sk-inner .table-striped>tbody>tr:nth-of-type(odd){background:#16223a!important}

/* botão de tema dentro do menu do celular (home) */
.drawer .nr-tema-txt{width:auto;height:44px;margin-top:10px;padding:0 14px;font:700 14px 'Manrope',system-ui,sans-serif}
html[data-theme="dark"] .in-nav{background:rgba(18,28,46,.92)!important;border-color:#23324b!important;box-shadow:0 10px 30px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .in-nav a:hover{background:#1a2942!important;color:#e8f0fa!important}
html[data-theme="dark"] .t-promo{background:#3a2a10;color:#ffc46b}
