/* Light theme, switched on by theme-init.js (?theme=light). Every rule is
   scoped to html[data-theme=light], so the dark site is untouched without it.
   Brand orange stays; it is darkened where it carries text on white. */
html[data-theme=light]{color-scheme:light;--bg:#fbf8f4;--panel:#ffffff;--panel2:#f7f1eb;--text:#1f1713;--ink:#1f1713;--muted:#6b5c53;--line:#e7dcd2;--lime:#c8641f;--accent:#e58a3d;--purple:#c2653d}
html[data-theme=light] body,html[data-theme=light] .page-body{background:var(--bg);color:var(--text)}

/* navigation */
html[data-theme=light] .nav{background:rgba(251,248,244,.92)}
html[data-theme=light] .brand{color:#1f1713}
html[data-theme=light] .brand b,html[data-theme=light] .overline{color:#c8641f}
html[data-theme=light] .nav a,html[data-theme=light] .nav button{color:#4b3d35}
html[data-theme=light] .nav button{border-color:#d9cbbf}
html[data-theme=light] .nav .mobile-menu-toggle{background:#fff}
html[data-theme=light] .nav nav.open{background:#fff;box-shadow:0 18px 50px rgba(60,35,20,.15)}
html[data-theme=light] .nav nav.open a:hover,html[data-theme=light] .nav nav.open button:hover{background:#f6ece3}

/* hero: the voxel banner stays, washed to white so dark text reads over it */
html[data-theme=light] .hero{background:#fbf8f4}
html[data-theme=light] .hero-shade{background:linear-gradient(90deg,rgba(251,248,244,.9),rgba(251,248,244,.62) 50%,rgba(251,248,244,.9)),linear-gradient(0deg,#fbf8f4,rgba(251,248,244,0) 45%)}
html[data-theme=light] .hero h1{color:#1f1713;text-shadow:0 2px 24px rgba(255,255,255,.8)}
html[data-theme=light] .hero h1 em{color:#d9722a}
html[data-theme=light] .subhead{color:#3f322b;text-shadow:0 1px 12px rgba(255,255,255,.9)}
html[data-theme=light] .minecraft-adventurer{filter:drop-shadow(0 24px 40px rgba(80,45,20,.25))}
html[data-theme=light] .hero-prompt{box-shadow:0 0 0 1px #e2d4c8,0 22px 60px rgba(90,55,30,.16)}
html[data-theme=light] .hero-prompt:focus-within{box-shadow:0 0 0 2px #e58a3d,0 22px 60px rgba(90,55,30,.16)}
html[data-theme=light] .suggestions,html[data-theme=light] .allowance{color:#5c4c43}
html[data-theme=light] .suggestions button{background:rgba(255,255,255,.9);border-color:#e3d3c6;color:#3f322b}
html[data-theme=light] .license-choice button,html[data-theme=light] .state-chip{background:#fff;border-color:#e0c9b6;color:#5a463a}
html[data-theme=light] .license-choice button.active{background:#e58a3d;border-color:#e58a3d;color:#1b0e08}
html[data-theme=light] .license-choice span{color:#5c4c43}
html[data-theme=light] .state-chip.private{color:#1d7a52;border-color:#9fd8bd}
html[data-theme=light] .state-chip.locked{color:#95600f;border-color:#e8c78f}
html[data-theme=light] .state-chip.public{color:#23629c;border-color:#a9cbeb}

/* buttons and links */
html[data-theme=light] .primary,html[data-theme=light] .hero-prompt button{color:#1b0e08}
html[data-theme=light] .secondary{border-color:#d9cbbf;color:#1f1713}
html[data-theme=light] .text-button,html[data-theme=light] .card-actions button{color:#b95a17}
html[data-theme=light] .gallery-card a,html[data-theme=light] .install a,html[data-theme=light] .account-build a,html[data-theme=light] .admin-build-link,html[data-theme=light] .account-dialog .check-row a{color:#b95a17}
html[data-theme=light] .edition-links a{color:#1b0e08!important}
html[data-theme=light] .edition-links .edition-alt a,html[data-theme=light] .actions .edition-alt a{color:#b95a17!important;border-color:#e3c6ae!important}
html[data-theme=light] .edition-alt{color:#7a6252}
html[data-theme=light] .actions button,html[data-theme=light] .actions a,html[data-theme=light] .page-button{background:#fff;border-color:#e0c9b6;color:#3f2a1c}
html[data-theme=light] .actions .primary,html[data-theme=light] .page-button.primary,html[data-theme=light] .asset-layout .actions>a{background:#e58a3d;border-color:#e58a3d;color:#1b0e08}
html[data-theme=light] .actions .danger{border-color:#e3a39b;color:#a3342a}
html[data-theme=light] .badge{background:#e58a3d;color:#1b0e08}

/* sections and cards */
html[data-theme=light] .result-head>span{background:#fff3e8;color:#b95a17;border-color:#f0cfb0}
html[data-theme=light] .progress{background:#fff}
html[data-theme=light] .progress-track{background:#f0e4d9}
html[data-theme=light] .progress-detail{color:#7a6a60}
html[data-theme=light] .preview-grid figcaption{background:#fff;color:#1f1713}
html[data-theme=light] .price-grid b{color:#1f1713}
html[data-theme=light] .plan-name{color:#7a6a60}
html[data-theme=light] .price-grid article.best{background:linear-gradient(150deg,rgba(229,138,61,.12),#fff 45%)}
html[data-theme=light] .gallery-card,html[data-theme=light] .price-grid article,html[data-theme=light] .format-grid article{box-shadow:0 10px 30px rgba(90,55,30,.06)}
html[data-theme=light] .command{background:#fff}
html[data-theme=light] .command code{color:#3f322b}
html[data-theme=light] .command button{background:#f3e7dc;color:#1f1713}
html[data-theme=light] footer{color:#7a6a60}
html[data-theme=light] footer a{color:#7a4a28}
html[data-theme=light] .error{background:#fdecea;color:#9c2b20;border-color:#f3c0b9}
html[data-theme=light] .notice{background:#fff5e6;border-color:#f0cf9f;color:#7a4e0e}
html[data-theme=light] .release-notice{background:#fff5ec;color:#6b5c53}
html[data-theme=light] .feedback-panel{background:#fff}
html[data-theme=light] .feedback-panel p:not(.overline){color:#6b5c53}
html[data-theme=light] .feedback-panel small{color:#b95a17}
html[data-theme=light] .purchase-success{background:#dff5ea;color:#12573a}
html[data-theme=light] .purchase-success.warning{background:#fff1dc;color:#6d4210}

/* 3D previews: a pale stage instead of the dark one */
html[data-theme=light] .voxel-viewer,html[data-theme=light] .asset-viewer{background-color:#f3ebe3}
html[data-theme=light] .voxel-viewer:before{background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.9),transparent 65%)}
html[data-theme=light] .voxel-viewer>span{background:rgba(255,255,255,.85);color:#5c4c43}
html[data-theme=light] .viewer-error:before{background:rgba(255,255,255,.4)}
html[data-theme=light] .preview-quality{background:rgba(255,255,255,.92);border-color:#e0c9b6;color:#6b3d1c}

/* forms and dialogs */
html[data-theme=light] dialog,html[data-theme=light] .page-auth-dialog{color:#1f1713;box-shadow:0 30px 90px rgba(60,35,20,.25)}
html[data-theme=light] dialog::backdrop,html[data-theme=light] .page-auth-dialog::backdrop{background:rgba(60,40,28,.35)}
html[data-theme=light] .dialog-close,html[data-theme=light] .purchase-close,html[data-theme=light] .admin-close{color:#3f322b}
html[data-theme=light] .auth-tabs button{color:#6b5c53}
html[data-theme=light] .auth-tabs button.active{background:#e58a3d;color:#1b0e08}
html[data-theme=light] .account-dialog input,html[data-theme=light] .auth-tabs input{background:#fff!important;color:#1f1713!important;border-color:#dccabc!important}
html[data-theme=light] .account-dialog label,html[data-theme=light] .email-delivery label,html[data-theme=light] .admin-settings label{color:#5c4c43}
html[data-theme=light] .email-delivery input,html[data-theme=light] .admin-settings input,html[data-theme=light] .feedback-panel input,html[data-theme=light] .feedback-panel textarea,html[data-theme=light] .stack input,html[data-theme=light] .stack textarea,html[data-theme=light] .admin-row input{background:#fff;color:#1f1713;border-color:#dccabc}
html[data-theme=light] .email-delivery small,html[data-theme=light] .purchase-dialog small,html[data-theme=light] .admin-row small{color:#7a6a60}
html[data-theme=light] .purchase-dialog p:not(.overline){color:#5c4c43}
html[data-theme=light] .purchase-dialog .embargo-copy{background:#fff5ec}
html[data-theme=light] .purchase-consent small{color:#a3342a}

/* account, admin and build pages */
html[data-theme=light] .account-build,html[data-theme=light] .admin-row,html[data-theme=light] .metric,html[data-theme=light] .block-count,html[data-theme=light] .asset-facts dl>div,html[data-theme=light] .stripe-status,html[data-theme=light] .stripe-mode-picker label{background:#fff;border-color:var(--line)}
html[data-theme=light] .account-build p,html[data-theme=light] .admin-row p{color:#7a6a60}
html[data-theme=light] .admin-row button{color:#1b0e08}
html[data-theme=light] .admin-row button.danger{background:#f6d5cf;color:#8a2a20}
html[data-theme=light] .stripe-status small+small{color:#a3342a}
html[data-theme=light] .block-count code{color:#3f322b}
html[data-theme=light] .block-rank{color:#9a887c}
html[data-theme=light] .block-count img{background:#f3ebe3;border-color:#e0d1c4}
html[data-theme=light] .admin-reference img{background:#f3ebe3}
html[data-theme=light] .paid-option{background:linear-gradient(145deg,rgba(229,138,61,.1),transparent)}

/* guide, FAQ and export picker */
html[data-theme=light] .guide-art{background:#f3ebe3}
html[data-theme=light] .guide-tabs button{background:#fff;color:#5c4c43}
html[data-theme=light] .guide-tabs button.active{background:#e58a3d;border-color:#e58a3d;color:#1b0e08}
html[data-theme=light] .guide-note{background:#fff5ec}
html[data-theme=light] .guide-fade{background:linear-gradient(rgba(251,248,244,0),#fbf8f4)}
html[data-theme=light] .faq-list code,html[data-theme=light] .guide-grid code,html[data-theme=light] .guide-grid kbd,html[data-theme=light] .download-picker small code{background:#f6ece3;border-color:#ead9ca;color:#9a4a12}
html[data-theme=light] .download-row select{background-color:#fff;color:#1f1713;border-color:#dccabc}
html[data-theme=light] .test-mode-banner{background:#f6b25e}
html[data-theme=light] .edition-switch{background:rgba(255,255,255,.88);box-shadow:0 6px 20px rgba(90,55,30,.12)}
html[data-theme=light] .edition-switch button{color:#5c4c43}
html[data-theme=light] .edition-switch button.active{background:#e58a3d;color:#1b0e08}
html[data-theme=light] .block-edition select{background-color:#fff;color:#1f1713;border-color:#dccabc}
html[data-theme=light] .referral-banner{background:#fff5ec;color:#3f322b}
html[data-theme=light] .invite-link input{background:#fff;color:#1f1713;border-color:#dccabc}
