/* Shared Joker system; component files provide page-specific compositions. */
html:has(>body.joker-dark){color-scheme:dark;background:#101412}
body.joker-dark{
 --jk-bg:#101412;--jk-surface:#191f1c;--jk-raised:#222a25;--jk-border:#35433a;
 --jk-text:#f5f8f6;--jk-muted:#bac6be;--jk-yellow:#feed00;--jk-red:#ed1c24;
 --jk-green:#00a550;--jk-link:#4edc83;
 --site-paper:var(--jk-bg);--site-ink:var(--jk-text);--site-muted:var(--jk-muted);
 --site-rule:var(--jk-border);--site-green-ink:var(--jk-link);
 --site-green:var(--jk-green);--site-yellow:var(--jk-yellow);--site-red:var(--jk-red);
 background:var(--jk-bg);color:var(--jk-text);color-scheme:dark;
}
body.joker-dark .public-page-frame{
 --page-base:var(--jk-bg);--page-panel:var(--jk-surface);--page-subtle:var(--jk-raised);
 --page-ink:var(--jk-text);--page-copy:var(--jk-muted);--page-muted:var(--jk-muted);
 --page-line:var(--jk-border);--bg-base:var(--jk-bg);--bg-primary:var(--jk-bg);
 --bg-secondary:var(--jk-raised);--bg-card:var(--jk-surface);--bg-card-hover:#26342b;
 --text-primary:var(--jk-text);--text-secondary:var(--jk-muted);--text-muted:var(--jk-muted);
 --border-color:var(--jk-border);--border-color-hover:#668471;
 --joker-gruen:var(--jk-link);--joker-gruen-dark:#00a550;
 --joker-gelb:var(--jk-yellow);--joker-rot:var(--jk-red);
 background:var(--jk-bg);color:var(--jk-text);
}
body.joker-dark .public-page-frame>div:not(.revamp-home){background:var(--jk-bg)}
body.joker-dark .public-page-frame :is(h1,h2,h3,h4){color:var(--page-ink)}
body.joker-dark .public-page-frame :is([style^="color:#6b7280"],[style*=";color:#6b7280"]){color:var(--jk-muted)!important}
body.joker-dark .public-page-frame :is([style^="color:#ef4444"],[style*=";color:#ef4444"],[style^="color:var(--joker-rot)"],[style*=";color:var(--joker-rot)"]){color:#ff8990!important}
body.joker-dark .text-link{color:var(--jk-link);text-decoration-thickness:1px}
body.joker-dark .text-link:hover{color:var(--jk-yellow)}
body.joker-dark :is(a,button,summary,input,select,textarea):focus-visible{
 outline:3px solid var(--jk-yellow);outline-offset:4px;
}
body.joker-dark :is(button,input,select,textarea){font-family:inherit}
body.joker-dark :is(button,input,select,textarea):disabled{cursor:not-allowed}
body.joker-dark .revamp-button,
body.joker-dark .public-page-frame .btn-primary{
 background:var(--jk-yellow);color:var(--jk-bg);border-color:var(--jk-yellow);
 border-radius:12px;box-shadow:none;text-decoration:none;
}
body.joker-dark .revamp-button:hover,
body.joker-dark .public-page-frame .btn-primary:hover{
 background:var(--jk-yellow);color:var(--jk-bg);box-shadow:inset 0 -3px 0 var(--jk-red);
}
body.joker-dark .public-page-frame .btn-outline{
 background:#fff;color:var(--jk-bg);border:1px solid #fff;border-radius:12px;
}
body.joker-dark .public-page-frame .btn-outline:hover{background:var(--jk-yellow);border-color:var(--jk-yellow)}
body.joker-dark .public-page-frame a[href^="https://wa.me"][style*="25D366"]{
 background:#fff!important;color:#0b2115!important;border:1px solid #fff!important;
 border-radius:12px!important;box-shadow:none!important;
}
body.joker-dark .public-page-frame a[href^="https://wa.me"][style*="25D366"] :is(svg,span){color:inherit!important}
body.joker-dark .public-page-frame a[href^="https://wa.me"][style*="25D366"]:hover{
 background:var(--jk-yellow)!important;border-color:var(--jk-yellow)!important;
 box-shadow:inset 0 -3px 0 var(--jk-red)!important;
}
body.joker-dark .public-page-frame a[href^="https://wa.me"]:has(>svg.lucide-message-circle)::before{
 content:"";width:22px;height:22px;flex:0 0 22px;
 background:url("assets/images/whatsapp.svg") center/contain no-repeat;
}
body.joker-dark .public-page-frame a[href^="https://wa.me"]>svg.lucide-message-circle{display:none}
body.joker-dark .public-page-frame[data-kind="article"] a>svg.lucide-arrow-left{display:none}
body.joker-dark.hybrid-site .public-page-frame :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select){
 background:var(--jk-surface)!important;color:var(--jk-text)!important;
 border-color:#668471!important;caret-color:var(--jk-yellow);color-scheme:dark;
}
body.joker-dark.hybrid-site .public-page-frame :is(input,textarea)::placeholder{color:#9dae9f;opacity:1}
body.joker-dark.hybrid-site .public-page-frame :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select):focus-visible{
 border-color:var(--jk-yellow)!important;outline:2px solid var(--jk-yellow)!important;outline-offset:3px;
}
body.joker-dark :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:var(--jk-yellow)}
body.joker-dark .hy-skip{background:var(--jk-yellow);color:var(--jk-bg)}

/* The approved white navigation band remains the bright brand anchor. */
body.joker-dark .revamp-header{
 --site-paper:#fafaf6;--site-ink:#111814;--site-muted:#505c54;
 --site-rule:#d5ddd2;--site-green-ink:#00753b;--page-ink:#111814;--page-copy:#505c54;
 color-scheme:light;color:#111814;background:#fafaf6;
}
body.joker-dark .revamp-header .revamp-button{
 background:#101b14;color:#fff;border-color:#101b14;box-shadow:none;
}
body.joker-dark .revamp-header .revamp-button:hover{background:#203d2b;color:#fff;box-shadow:none}
body.joker-dark .revamp-header :is(a,button,summary):focus-visible{outline-color:#005d2b}
body.joker-dark :is(.hy-language-options,.class-menu>div){color:#111814;color-scheme:light}
body.joker-dark #hy-menu{
 --site-ink:var(--jk-text);--page-ink:var(--jk-text);--page-copy:var(--jk-muted);
 background:var(--jk-surface);color:var(--jk-text);border-color:var(--jk-border);
 box-shadow:0 24px 80px #0009;
}
body.joker-dark #hy-menu::backdrop{background:#000a}
body.joker-dark #hy-menu button{background:var(--jk-raised);color:var(--jk-text);border-color:var(--jk-border)}
body.joker-dark #hy-menu nav a{color:var(--jk-text);border-color:var(--jk-border)}
body.joker-dark #hy-menu nav a:hover{color:var(--jk-yellow)}

/* Shared footer overrides the old hardcoded light-footer audit rules. */
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer){
 --page-ink:var(--jk-text);--page-copy:var(--jk-muted);--site-ink:var(--jk-text);
 background:#0b0e0c!important;color:var(--jk-muted)!important;
 border-top:1px solid var(--jk-border);
}
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer) :is(p,a,span,small){color:var(--jk-muted)!important}
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer) :is(h2,h3,strong){color:var(--jk-text)!important}
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer) a:hover{color:var(--jk-yellow)!important}
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer) img[src$="whatsapp.svg"]{filter:brightness(0) invert(1)}
body.joker-dark .home-last-call .text-link img[src$="whatsapp.svg"]{filter:brightness(0) invert(1)}
body.hybrid-site.joker-dark .public-page-frame[data-kind="landing"] .lp-footer,
body.hybrid-site.joker-dark .public-page-frame[data-kind="landing"] .lp-footer a{color:var(--jk-muted)!important}
body.hybrid-site.joker-dark .public-page-frame[data-kind="landing"] .lp-footer a:hover{color:var(--jk-yellow)!important}
body.hybrid-site.joker-dark :is(.revamp-footer,.lp-footer) button{
 background:var(--jk-surface);color:var(--jk-muted)!important;border-color:var(--jk-border)!important;
}
body.hybrid-site.joker-dark .footer-bottom{border-color:var(--jk-border);color:var(--jk-muted)}
body.joker-dark .hy-overview{background:var(--jk-bg);color:var(--jk-text)}
body.joker-dark .hy-overview h1{color:var(--jk-text)}
body.joker-dark .hy-all-pages a{background:var(--jk-surface);border-color:var(--jk-border);color:var(--jk-text)}
body.joker-dark .hy-all-pages a:hover{background:var(--jk-raised);border-color:var(--jk-link)}
body.joker-dark .hy-all-pages span{color:var(--jk-muted)}

/* The legacy login is a static preview; it shares the approved brand identity. */
body.joker-dark.type-login .site-header{
 background:#fafaf6;color:#111814;border-color:#d5ddd2;--ink:#111814;--paper:#fafaf6;color-scheme:light;
}
body.joker-dark.type-login .site-header a{color:#111814}
body.joker-dark.type-login .site-header .button{background:#101b14;color:#fff}
body.joker-dark.type-login .site-header .logo img{width:76px;height:86px;object-fit:contain}
body.joker-dark.type-login .site-header :is(a,button):focus-visible{outline-color:#005d2b}
body.joker-dark.type-login .login-form .button{display:flex;align-items:center;justify-content:center;text-align:center}
body.joker-dark.type-login .ai-site-disclosure{
 position:fixed;right:16px;bottom:16px;z-index:90;display:inline-flex;align-items:center;justify-content:center;
 min-width:42px;height:28px;padding:0 11px;border:1px solid #173c2a40;border-radius:999px;
 background:#f8fbf2ed;color:#173c2a;font:700 11px/1 Arial,sans-serif;letter-spacing:.08em;
}
@media(max-width:600px){
 body.joker-dark.type-login .ai-site-disclosure{right:12px;bottom:12px;min-width:38px;height:26px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 body.joker-dark :is(a,button,input,summary){transition:none!important}
}
