/* Duas apresentações da mesma marca: recorte e cores em SVG, sem alterar os traços. */
html{color-scheme:light}.brand-logo-dark{display:none!important}html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] .brand-logo-light{display:none!important}html[data-theme=dark] .brand-logo-dark{display:block!important}
.site-header .brand img,.site-footer .brand img,.theme-forensic .brand img{background:transparent;border-radius:0;filter:none;aspect-ratio:1070/375;object-fit:contain}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 10px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font-family:var(--font);font-size:9px;font-weight:600;line-height:1;white-space:nowrap;flex:none}.theme-toggle:hover{border-color:var(--copper,#a55f34)}.theme-icon{width:17px;height:17px;flex:none}.theme-icon-sun{display:none}html[data-theme=dark] .theme-icon-sun{display:block}html[data-theme=dark] .theme-icon-moon{display:none}.theme-toggle:focus-visible{outline:3px solid #b8784e;outline-offset:4px}
/* Marca central, navegação dos dois lados. */
.header-inner{display:grid;grid-template-columns:1fr auto 1fr;position:relative;min-height:112px;gap:30px}.header-inner>.brand{grid-column:2;grid-row:1;justify-self:center;padding-block:12px}.header-inner>.brand img{width:252px}.header-inner>.navigation{display:contents}.nav-start,.nav-end{display:flex;align-items:center;gap:27px;grid-row:1;font-size:11px;font-weight:600}.nav-start{grid-column:1}.nav-end{grid-column:3;justify-content:end;padding-right:91px;gap:20px}.nav-start a:hover,.nav-end>a:not(.btn):hover{color:var(--copper)}.nav-contact{margin-left:0;padding:13px 17px;min-height:46px;gap:18px;white-space:nowrap}.header-inner>.theme-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%)}.footer-brand .brand img{width:225px}.navigation .nav-start>a,.navigation .nav-end>a:not(.btn){padding:14px 0}
/* Tema escuro da apresentação institucional. */
html[data-theme=dark] body:not([class]){--paper:#101c25;--ink:#edf1f2;--muted:#b1bdc5;--line:#30414c;--blue:#88bbdb;--copper:#d6a07a;--copper-hover:#ecc09e;--navy:#0a1720;background:var(--paper);color:var(--ink)}
html[data-theme=dark] body:not([class]) .site-header{background:rgba(16,28,37,.97)}
html[data-theme=dark] body:not([class]) .btn-copper{color:#17222b;background:#d6a07a}html[data-theme=dark] body:not([class]) .btn-copper:hover{background:#ecc09e}html[data-theme=dark] body:not([class]) .btn-outline:hover{background:#1d3546}
html[data-theme=dark] .hero-plaque{background:#173e59}html[data-theme=dark] .credential strong{color:#88bbdb}html[data-theme=dark] .access-card{background:#182934;border-color:#30434f}html[data-theme=dark] .access-card:hover{background:#203744;border-color:#7596aa}html[data-theme=dark] .contact{background:#183e59}html[data-theme=dark] .btn-white{background:#e7eef2;color:#102c40}html[data-theme=dark] .service summary:hover h3{color:#e2b18f}
/* As telas de atendimento compartilham a preferência e mantêm seus cálculos. */
html[data-theme] body:is(.theme-quant,.theme-forensic,.theme-fap){--ink:#2d3030;--muted:#626969;--micro:#626969;--paper:#fafbf9;--surface:#f1f5f6;--surface-soft:#e8eef1;--line:#d4dfe4;--line-soft:#dce4e7;--line-strong:#a8beca;--accent:#174b70;--accent-hover:#103b59;--accent-soft:#e7eff4;--accent-line:#b6cbd8;--focus:#174b70;--focus-ring:#174b7020;--placeholder:#61717a;--input-bg:#fff;--header-bg:#fafbf9;--nav-bg:#eaf0f3;--nav-active-bg:#174b70;--nav-active-text:#fff;--button-bg:#a55f34;--button-hover-bg:#874925;--button-text:#fff;--calculator-banner:#173e59;--banner-text:#fff;--banner-muted:#c4d9e5;--banner-line:#ffffff26;--banner-dot:#cda17f;--result-bg:#eaf2f6;--result-line:#b4cad6;--card-bg:#fafbf9;--card-hover-line:#8da9bb;--footer-bg:#e6edf1;--selection-bg:#b7d3e4;--selection-text:#102c40;color-scheme:light}
html[data-theme=dark] body:is(.theme-quant,.theme-forensic,.theme-fap){--ink:#edf1f2;--muted:#b1bdc5;--micro:#b1bdc5;--paper:#142530;--surface:#101c25;--surface-soft:#203744;--line:#354a57;--line-soft:#2b3e4a;--line-strong:#637f90;--accent:#95c5e2;--accent-hover:#c0e1f5;--accent-soft:#1c3d52;--accent-line:#466a80;--focus:#a9d0e8;--focus-ring:#95c5e230;--placeholder:#a7bbc7;--input-bg:#142530;--header-bg:#101c25;--nav-bg:#142530;--nav-active-bg:#2c607f;--nav-active-text:#fff;--button-bg:#d6a07a;--button-hover-bg:#ecc09e;--button-text:#17222b;--result-bg:#1b3445;--result-line:#496b80;--card-bg:#142530;--card-hover-line:#7596aa;--footer-bg:#0c1720;--selection-bg:#30546c;--selection-text:#fff;--danger:#ffafa6;--danger-soft:#3c2324;--danger-line:#8a5452;--success:#98dbb3;--success-soft:#1d372e;--success-line:#456c58;--info:#a4d0ed;--info-soft:#1b3548;--info-line:#456a82;color-scheme:dark}
.header-row .brand img{width:246px}.header-row{gap:22px}.header-row>.theme-toggle{order:3}.header-row .main-nav{margin-left:auto}
@media(max-width:1180px) and (min-width:961px){.header-inner{gap:20px}.header-inner>.brand img{width:228px}.nav-start{gap:22px}.nav-end{padding-right:80px}.nav-end>a:not(.btn){display:none}.nav-contact{font-size:10px;padding:13px 15px}.header-inner .theme-toggle{padding:8px}.header-row .brand img{width:205px}.header-row{gap:12px}}
@media(max-width:960px){.header-inner{display:grid;grid-template-columns:44px 1fr 44px;gap:15px;min-height:98px}.header-inner>.brand{grid-column:2;grid-row:1;padding:11px 0}.header-inner>.brand img{width:218px}.header-inner>.menu-toggle{grid-column:1;grid-row:1}.header-inner>.theme-toggle{position:static;transform:none;grid-column:3;grid-row:1;padding:11px;width:44px;height:44px}.header-inner>.theme-toggle>span{display:none}.header-inner>.navigation{display:none}.header-inner>.navigation.is-open{display:flex}.nav-start,.nav-end{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:0;width:100%;font-size:12px}.nav-end>a:not(.btn){display:block}.nav-contact{margin-top:8px;min-height:48px}.navigation .nav-start>a,.navigation .nav-end>a:not(.btn){padding:12px 0}.header-row .brand img{width:210px}.header-row>.theme-toggle{order:2;margin-left:auto}.header-row>.nav-toggle{order:3}.header-row .main-nav{margin-left:0}}
@media(max-width:700px){html{scroll-padding-top:105px}.header-inner{min-height:98px;gap:8px}.header-inner>.brand img{width:203px}.header-inner>.brand{padding-block:13px}.footer-brand .brand img{width:210px}.header-row .brand img{width:185px}.header-row{gap:8px}.header-row .theme-toggle span{display:none}.header-row .theme-toggle{width:42px;padding:10px;min-height:42px}.header-row .nav-toggle{width:42px;height:42px}.header-row .brand{padding:7px 0}}
@media(max-width:370px){.header-inner>.brand img{width:184px}.header-row .brand img{width:165px}}
/* Retira superfícies fixas dos temas antigos para manter contraste nos dois modos. */
html[data-theme] :is(.quant-hero,.forensic-hero,.fap-hero,.forensic-workspace,.quant-faq,.forensic-faq,.fap-faq,.fap-analytics){background:var(--surface)}
html[data-theme] .quant-copy .awareness,html[data-theme] .fap-disclaimer,html[data-theme] .theme-forensic .result-panel .metric{background:var(--paper)}
html[data-theme] .status-chip{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
html[data-theme] :is(.theme-quant .calculator-card,.theme-forensic .calculator-card,.theme-fap .dashboard-frame){border-color:var(--line-strong)}
html[data-theme] :is(.quant-hero,.forensic-hero,.fap-hero)::before{opacity:.35}
@media print{html[data-theme] body:is(.theme-quant,.theme-forensic,.theme-fap){--ink:#111;--muted:#333;--micro:#444;--paper:#fff;--surface:#fff;--surface-soft:#eee;--input-bg:#fff;--card-bg:#fff;--accent:#222;--line:#ccc;--line-soft:#ddd;--line-strong:#aaa;color-scheme:light}.theme-toggle{display:none!important}.brand-logo-light{display:block!important}html[data-theme=dark] .brand-logo-light{display:block!important}html[data-theme=dark] .brand-logo-dark{display:none!important}}

/* Cabeçalho acompanha o documento e deixa a leitura livre ao rolar. */
html[data-theme]{scroll-padding-top:24px}
.site-header{position:relative;top:auto}
