/* Explicit site palettes; the theme bootstrap runs before styles are painted. */
:root{color-scheme:light}
.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:22px;line-height:1;order:3}
.theme-toggle:hover{background:var(--soft)}
.language-form{margin:0;flex-shrink:0}.language-picker{max-width:135px;min-height:42px;padding:7px 25px 7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:12px;cursor:pointer}
.nav-inner{gap:22px}.nav-inner>.brand{order:1}.nav-links{order:2}.menu-toggle{order:4;color:var(--ink)}
[data-theme=dark]{color-scheme:dark;--ink:#e6f0e7;--green:#81d0a3;--lime:#d9ed8e;--muted:#b0c4b8;--paper:#101d19;--line:#334b40;--soft:#20392d}
[data-theme=dark] .site-header{background:#101d19f5}
[data-theme=dark] .sandbox-strip{background:#253820;color:#d5e5b7}
[data-theme=dark] .hero,[data-theme=dark] .page-intro,[data-theme=dark] footer{background:#14241d}
[data-theme=dark] .hero h1 em{color:#98d599}
[data-theme=dark] .nav-links>a,[data-theme=dark] .brand-name small,[data-theme=dark] .hero-note,[data-theme=dark] .category-strip span,[data-theme=dark] .category-strip a,[data-theme=dark] .eyebrow,[data-theme=dark] .hero-feature-bottom span,[data-theme=dark] .card-meta,[data-theme=dark] .creator-line,[data-theme=dark] .card-bottom,[data-theme=dark] .card-funding span,[data-theme=dark] .footer-grid>div>a:not(.brand),[data-theme=dark] .footer-bottom,[data-theme=dark] .field label,[data-theme=dark] .field small,[data-theme=dark] .result-line,[data-theme=dark] .breadcrumb,[data-theme=dark] .project-lead figcaption,[data-theme=dark] .funding-panel>span,[data-theme=dark] .funding-stats small,[data-theme=dark] .project-tabs button,[data-theme=dark] .reward>span,[data-theme=dark] .reward small,[data-theme=dark] .workspace-row small,[data-theme=dark] .dashboard-stats span,[data-theme=dark] td small,[data-theme=dark] .pledge-summary>span,[data-theme=dark] .provider-option small,[data-theme=dark] .waiting-counter,[data-theme=dark] .payment-detail,[data-theme=dark] .checkbox,[data-theme=dark] .endpoint span,[data-theme=dark] .endpoint code,[data-theme=dark] .update time{color:#b0c4b8}
[data-theme=dark] .nav-links>a:hover,[data-theme=dark] .nav-links>a.active,[data-theme=dark] .category-strip a:hover,[data-theme=dark] .text-link:hover,[data-theme=dark] .project-tabs button.active{color:#a4e6b9}
[data-theme=dark] .brand-name>span,[data-theme=dark] .card-funding strong,[data-theme=dark] .funding-panel .raised,[data-theme=dark] .reward>strong,[data-theme=dark] .dashboard-stats strong,[data-theme=dark] .result-amount{color:#94d6a8}
[data-theme=dark] .footer-grid .brand{color:var(--ink)}
[data-theme=dark] .project-card,[data-theme=dark] .filters,[data-theme=dark] .reward,[data-theme=dark] .faqs details,[data-theme=dark] .auth-layout,[data-theme=dark] .form-card,[data-theme=dark] .dashboard-stats>div,[data-theme=dark] .workspace-row,[data-theme=dark] .table-scroll,[data-theme=dark] .pledge-summary,[data-theme=dark] .payment-result,[data-theme=dark] .moderation-row,[data-theme=dark] .skip{background:#192c23}
[data-theme=dark] .project-image,[data-theme=dark] .project-lead figure>img,[data-theme=dark] .hero-feature{background:#22372b}
[data-theme=dark] .hero-feature-bottom{background:#14271eee;border-color:#587361}
[data-theme=dark] .button,[data-theme=dark] .nav-links>.button{background:#277a53;color:#fff;border-color:#45976b}
[data-theme=dark] .button:hover{background:#328b60}
[data-theme=dark] .button-outline{background:transparent;color:#b3e5b8;border-color:#6d9277}
[data-theme=dark] .button-outline:hover,[data-theme=dark] .button-light:hover{background:#304c37}
[data-theme=dark] .button-light{background:#263e2c;color:#cbebbe;border-color:#496546}
[data-theme=dark] .dark-section{background:#0b1712;color:var(--ink)}
[data-theme=dark] .creator-callout,[data-theme=dark] .auth-story,[data-theme=dark] .editor-help,[data-theme=dark] .update-editor{background:#20342a;border-color:var(--line)}
[data-theme=dark] .prose p{color:var(--muted)}
[data-theme=dark] .field input,[data-theme=dark] .field select,[data-theme=dark] .field textarea{background:#102019;color:var(--ink);border-color:#48614f}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#9db1a3;opacity:1}
[data-theme=dark] .notice,[data-theme=dark] .provider-option,[data-theme=dark] .payment-status,[data-theme=dark] th{background:#22392b;color:#c5d9bc;border-color:#4b6848}
[data-theme=dark] .provider-option.disabled{opacity:.8}
[data-theme=dark] .result-icon,[data-theme=dark] .badge,[data-theme=dark] .badge.green,[data-theme=dark] .form-message.success,[data-theme=dark] .is-paid .payment-status{background:#29402a;color:#d4ebbc;border-color:#567744}
[data-theme=dark] .badge.demo{background:#3d3220;color:#f2d293;border-color:#786039}
[data-theme=dark] .form-message,[data-theme=dark] .is-failed .payment-status,[data-theme=dark] .reward-row-head button{background:#442a23;color:#ffcab6;border-color:#855744}
[data-theme=dark] progress,[data-theme=dark] progress::-webkit-progress-bar{background:#354b3a}
[data-theme=dark] progress::-webkit-progress-value{background:#8fca9a}
[data-theme=dark] progress::-moz-progress-bar{background:#8fca9a}
[data-theme=dark] .footer-bottom{border-color:var(--line)}
@media(max-width:1100px){.nav-inner{height:76px;gap:14px}.nav-links{display:none;position:absolute;top:75px;left:0;right:0;padding:20px 24px;background:var(--paper);border-bottom:1px solid var(--line);margin:0;flex-direction:column;align-items:stretch;gap:0}.nav-links.open{display:flex}.nav-links>a{font-size:14px;padding:10px 0}.nav-links>.language{border:0}.nav-links>.button{margin-top:10px}.theme-toggle{margin-left:auto;order:2}.menu-toggle{display:block;order:3}.nav-links{order:4}}
@media(max-width:460px){.nav-inner{height:72px;gap:10px}.nav-links{top:71px}.theme-toggle{width:40px;height:40px}.menu-toggle{padding:6px 10px}}
@media(max-width:1100px){.language-form{padding:8px 0}.language-picker{max-width:100%;width:100%;font-size:14px}}

/* Readable secondary text in the light palette; dark overrides stay explicit. */
:root:not([data-theme=dark]) .brand-name small,:root:not([data-theme=dark]) .eyebrow,:root:not([data-theme=dark]) .hero-note,:root:not([data-theme=dark]) .category-strip span,:root:not([data-theme=dark]) .category-strip a,:root:not([data-theme=dark]) .card-meta,:root:not([data-theme=dark]) .creator-line,:root:not([data-theme=dark]) .card-bottom,:root:not([data-theme=dark]) .card-funding span,:root:not([data-theme=dark]) .footer-bottom,:root:not([data-theme=dark]) .field small,:root:not([data-theme=dark]) .dashboard-stats span,:root:not([data-theme=dark]) .workspace-row small,:root:not([data-theme=dark]) td small,:root:not([data-theme=dark]) .waiting-counter,:root:not([data-theme=dark]) .payment-detail{color:#4e624b}
:root:not([data-theme=dark]) .hero-copy>p{color:#3f5542}
:root:not([data-theme=dark]) .dark-section .eyebrow{color:#bbd194}
.footer-trust{padding-top:25px;border-top:1px solid var(--line);margin-top:28px}
.footer-trust nav{display:flex;flex-wrap:wrap;gap:12px 25px;font-size:13px;line-height:1.7}
.footer-trust p{font-size:13px;line-height:1.8;margin-top:18px;color:var(--muted)}
.footer-trust a:hover{text-decoration:underline}.document-updated{font-size:13px!important;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;margin-top:30px}
.article-prose ul{line-height:2;overflow-wrap:anywhere}
.article-prose>.button{margin:12px 15px 12px 0}
:root:not([data-theme=dark]){--muted:#4e624b}
:root:not([data-theme=dark]) .footer-grid>div>a:not(.brand){color:#4e624b}
:root:not([data-theme=dark]) .badge.demo{color:#795628}

.consent-banner{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);width:min(820px,calc(100% - 32px));padding:22px 26px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 60px #0005;z-index:140}
.consent-banner[hidden]{display:none}.consent-banner h2{font-size:22px;line-height:1.3;margin:0 0 10px}.consent-banner p{font-size:14px;line-height:1.7;margin-bottom:16px}.consent-banner .buttons{gap:12px}.consent-banner .button{min-width:180px;min-height:44px}
.cookie-settings{padding:8px 12px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:13px}
@media(max-width:500px){.consent-banner{padding:18px;bottom:12px;max-height:70vh;overflow:auto}.consent-banner .buttons{display:grid;grid-template-columns:1fr}.consent-banner .button{width:100%}.consent-banner h2{font-size:20px}}
