/* Daniel Thamm — temas claro/escuro */
:root{color-scheme:light;--theme-bg:#F2F0ED;--theme-text:#333133;--theme-muted:#5C5856;--theme-border:#D6D3D0;--theme-blue:#004DA1;--theme-blue-deep:#002B57;--theme-accent:#C9A961}
html[data-theme="dark"]{color-scheme:dark;--theme-bg:#111820;--theme-text:#F2F0ED;--theme-muted:#C6C2BD;--theme-border:#3A4652;--theme-blue:#69A9ED;--theme-blue-deep:#A9D0F8;--theme-accent:#D8BD78}
@media(prefers-color-scheme:dark){html:not([data-theme]){color-scheme:dark;--theme-bg:#111820;--theme-text:#F2F0ED;--theme-muted:#C6C2BD;--theme-border:#3A4652;--theme-blue:#69A9ED;--theme-blue-deep:#A9D0F8;--theme-accent:#D8BD78}}
body,.pg{background:var(--theme-bg)!important;color:var(--theme-text)!important}
.hd,.mnav{background:var(--theme-bg)!important;border-color:var(--theme-border)!important}
.nav a,.mnav li a,.menu-btn,.hd-cta{color:var(--theme-text)!important}
.hd-cta{border-color:var(--theme-text)!important}.hd-cta:hover{background:var(--theme-text)!important;color:var(--theme-bg)!important}
a{color:var(--theme-blue)}a:hover{color:var(--theme-text)}
.muted,.mnav-meta{color:var(--theme-muted)!important}
.label,.eyebrow{color:var(--theme-blue)!important}
html[data-theme="dark"] .brand-box img{filter:none}
@media(prefers-color-scheme:dark){html:not([data-theme]) .brand-box img{filter:brightness(0) invert(1)}}
.theme-select{min-height:36px;max-width:116px;padding:0 24px 0 8px;border:1px solid var(--theme-border);background:var(--theme-bg);color:var(--theme-text);font:600 12px/1 "Lato",sans-serif;cursor:pointer}
.theme-select:focus-visible{outline:2px solid var(--theme-blue);outline-offset:2px}
@media(max-width:1120px){.theme-select{display:none}}
.theme-mobile{margin:18px 0 4px;display:flex;align-items:center;gap:12px}.theme-mobile label{font-size:13px;color:var(--theme-muted)}.theme-mobile .theme-select{display:block;max-width:150px}
html[data-theme="dark"] body,html[data-theme="dark"] .pg{background:#111820!important;color:#F2F0ED!important}
html[data-theme="dark"] section,html[data-theme="dark"] article,html[data-theme="dark"] footer{border-color:#3A4652!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] p,html[data-theme="dark"] li,html[data-theme="dark"] dt,html[data-theme="dark"] dd{color:inherit}
@media(prefers-color-scheme:dark){html:not([data-theme]) body,html:not([data-theme]) .pg{background:#111820!important;color:#F2F0ED!important}html:not([data-theme]) section,html:not([data-theme]) article,html:not([data-theme]) footer{border-color:#3A4652!important}html:not([data-theme]) h1,html:not([data-theme]) h2,html:not([data-theme]) h3,html:not([data-theme]) h4,html:not([data-theme]) p,html:not([data-theme]) li,html:not([data-theme]) dt,html:not([data-theme]) dd{color:inherit}}

/* Global dark-mode contrast normalization */
html[data-theme="dark"] body,html[data-theme="dark"] body *{border-color:var(--theme-border)}
html[data-theme="dark"] section,html[data-theme="dark"] article,html[data-theme="dark"] footer,html[data-theme="dark"] header,html[data-theme="dark"] main,html[data-theme="dark"] .ext,html[data-theme="dark"] .card,html[data-theme="dark"] .post,html[data-theme="dark"] .feature,html[data-theme="dark"] .area,html[data-theme="dark"] .box,html[data-theme="dark"] .demo,html[data-theme="dark"] .demo-col,html[data-theme="dark"] .res-box,html[data-theme="dark"] details{background-color:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background-color:#18232e!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] .btn,html[data-theme="dark"] .btn-cheio{background-color:var(--theme-blue)!important;color:#08111a!important}
html[data-theme="dark"] .btn:hover{background-color:var(--theme-blue-deep)!important;color:#08111a!important}
html[data-theme="dark"] .brand-picture{display:block}
@media(prefers-color-scheme:dark){html:not([data-theme]) body,html:not([data-theme]) body *{border-color:var(--theme-border)}html:not([data-theme]) section,html:not([data-theme]) article,html:not([data-theme]) footer,html:not([data-theme]) header,html:not([data-theme]) main,html:not([data-theme]) .ext,html:not([data-theme]) .card,html:not([data-theme]) .post,html:not([data-theme]) .feature,html:not([data-theme]) .area,html:not([data-theme]) .box,html:not([data-theme]) .demo,html:not([data-theme]) .demo-col,html:not([data-theme]) .res-box,html:not([data-theme]) details{background-color:var(--theme-bg)!important;color:var(--theme-text)!important}html:not([data-theme]) input,html:not([data-theme]) select,html:not([data-theme]) textarea{background-color:#18232e!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}}

/* Shared content width and dividendos dark palette */
.wrap{max-width:1320px}
html[data-theme="dark"]{--tinta:#A9D0F8;--papel:#111820;--lacre:#69A9ED;--verde:#69A9ED;--grafite:#C6C2BD;--linha:#3A4652;--branco:#F2F0ED}
@media(prefers-color-scheme:dark){html:not([data-theme]){--tinta:#A9D0F8;--papel:#111820;--lacre:#69A9ED;--verde:#69A9ED;--grafite:#C6C2BD;--linha:#3A4652;--branco:#F2F0ED}}
