/* Incremental dark-mode support. Light-mode layout, typography, images and menus stay original. */
html[data-store-theme=dark]{color-scheme:dark;--es-bg:#101010;--es-panel:#1b1b1b;--es-soft:#252525;--es-ink:#f2f2f2;--es-muted:#b5b5b5;--es-line:#393939;--es-link:#5bdda0;--es-tint:#282828}
body.ev-storefront .ev-store-theme-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important;margin:0 0 0 8px;border:1px solid #ffffff45!important;border-radius:9px;background:#ffffff0c!important;color:#fff!important;box-shadow:none;cursor:pointer;vertical-align:middle}
.ev-store-theme-button svg{width:19px;height:19px;display:block}
body.ev-storefront .ev-store-theme-item{padding:0;line-height:34px}
body.ev-storefront .menu-toggle{position:relative}
body.ev-storefront .ev-store-theme-mobile{position:absolute;right:12px;top:6px;margin:0}
.ev-store-theme-menu{position:fixed;inset:auto;margin:0;width:200px;padding:6px;border:1px solid #dedee2;border-radius:13px;background:#fff;color:#202024;box-shadow:0 12px 36px #0003;z-index:100000}
body.ev-storefront .ev-store-theme-menu button{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:11px;border:0;border-radius:8px;background:transparent;color:inherit;font-family:inherit;font-size:14px;line-height:1.5;text-align:left;cursor:pointer}
.ev-store-theme-menu svg{width:20px;height:20px;flex:none}
body.ev-storefront .ev-store-theme-menu button[aria-pressed=true]{background:#eaf8ef;color:#087e45}
body.ev-storefront :is(.ev-store-theme-button,.ev-store-theme-menu button):focus-visible{outline:2px solid #00bf63;outline-offset:3px}
/* Neutral black/graphite surfaces; green remains an accent rather than a page background. */
html[data-store-theme=dark] body.ev-storefront,html[data-store-theme=dark] body.ev-storefront #page{background-color:var(--es-bg)!important;color:var(--es-ink)}
html[data-store-theme=dark] body.ev-storefront :is(.post,.post-content,.post-text,.entry-content,.page-content,.purchase-box,.download-aside,.comments,.comments-wrap,.comment-body,.navigation.post-navigation,.homepage-bottom-widgets .widget,.download-meta,.portfolio-wrapper .entry-header,.cta-section){background-color:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important;box-shadow:0 3px 16px #0002}
html[data-store-theme=dark] body.ev-storefront :is(.post-text p,.entry-excerpt,.field-help,.download-meta,.download-meta a,.search-cat-text,.view-switcher-text,.download-aside p,.eddr-notice){color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-storefront :is(.post-text h1,.post-text h2,.post-text h3,.post-text h4,.post-text strong,.post-text label,.post-text legend,.entry-header .entry-title,.entry-header .entry-title a,.cta-section h2,.cta-section p){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-storefront :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background-color:var(--es-soft)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important;box-shadow:none}
html[data-store-theme=dark] body.ev-storefront :is(input,textarea)::placeholder{color:var(--es-muted);opacity:1}
html[data-store-theme=dark] body.ev-storefront :is(.post-text a:not(.button):not(.edd-submit),.download-meta a,.search-cats a){color:var(--es-link)}
html[data-store-theme=dark] body.ev-storefront :is(td,th,fieldset,legend,hr,.download-meta,.edd_price_options li,.edd_price_options label){border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront :is(th,thead,tr:nth-child(even),pre,code,blockquote){background-color:var(--es-soft)!important;color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-storefront :is(.edd_price_option_name,.edd_price_option_price,.edd_price,.price-amount,.purchase-price){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-storefront :is(.edd_price_option_price,.edd_price,.price-amount){background-color:var(--es-soft)!important}
html[data-store-theme=dark] body.ev-storefront .edd_price_options li{background-color:var(--es-panel)!important}
html[data-store-theme=dark] body.ev-storefront :is(.edd_price_option_meta,.edd_price_option_sub){color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-storefront .edd-pricing-table :is(.edd-price-option>div,ul,li){background-color:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront .edd-pricing-table :is(.price,.edd-pt-description,h2,h3){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-storefront :is(.ev-store-theme-menu,.main-navigation .sub-menu){background:var(--es-panel);color:var(--es-ink);border-color:var(--es-line)}
html[data-store-theme=dark] body.ev-storefront .main-navigation .sub-menu a{color:var(--es-ink)}
html[data-store-theme=dark] body.ev-storefront .ev-store-theme-menu button[aria-pressed=true]{background:var(--es-soft);color:var(--es-link)}
html[data-store-theme=dark] body.ev-customer-ui{--ev-account-ink:var(--es-ink);--ev-account-muted:var(--es-muted);--ev-account-line:var(--es-line)}
html[data-store-theme=dark] body.ev-customer-ui #primary :is(.account-title,.ev-customer-heading){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(#secondary .widget,.ev-account-mobile-nav,.ev-account-nav-sheet,.ev-account-nav-sheet-header,.ev-account-nav-search,.ev-account-table-scroll,.ev-connection-card,.ev-connections-empty,.ev-account-empty,.ev-account-nav-sheet-close,.np-profile-invoice-section,.np-invoice-preferences,.np-invoice-choice,.np-invoice-preview-dialog){background:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-account-mobile-nav b,.ev-account-nav-sheet-header,.ev-account-dialog-navigation a,#secondary a,.ev-connection-heading strong,.ev-connections-empty h2,.ev-connections-empty h3,.ev-connections-empty h4){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-customer-heading-icon,.ev-account-empty svg,.ev-connections-empty>span){background:var(--es-soft)!important;color:var(--es-link)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-account-mobile-nav small,.ev-connection-date,.ev-connection-heading span,.ev-connection-scope-note,.ev-intro,.ev-connections-help,.ev-connections-empty p,.np-invoice-choice-help,.np-invoice-save-status){color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(#secondary .current-menu-item>a,.ev-account-dialog-navigation .current-menu-item>a,.ev-connection-products>span){background:var(--es-soft)!important;color:var(--es-link)!important}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-revoke-confirm,.ev-connection-card,.ev-account-nav-sheet-header){border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-customer-ui .ev-revoke-confirm>summary{background:transparent;color:#ffaaaa}
html[data-store-theme=dark] body.ev-customer-ui .ev-revoke-confirm>div{background:#302325;border-color:#654044}
html[data-store-theme=dark] body.ev-customer-ui .ev-revoke-confirm>div :is(strong,p){color:#f2c7c7}
html[data-store-theme=dark] body.ev-customer-ui #primary :is(.account-details-text,.account-details-account-token){background:var(--es-soft)!important;color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-customer-ui #primary .account-details-text b{color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-customer-ui #primary .ev-account-table-scroll tbody tr:hover{background:var(--es-soft)!important}
html[data-store-theme=dark] body.ev-storefront :is(.cmplz-cookiebanner,.cmplz-cookiebanner .cmplz-message,.cmplz-cookiebanner .cmplz-title,.cmplz-cookiebanner .cmplz-header,.cmplz-cookiebanner .cmplz-body,.cmplz-cookiebanner .cmplz-category){background:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront :is(#edd_checkout_cart,#edd_checkout_form_wrap,.np-checkout-card,.np-cart-item,.np-summary,.np-checkout-section,.edd-alert,.edd_cart_footer_row){background:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important}
@media(prefers-reduced-motion:no-preference){body.ev-storefront .ev-store-theme-button{transition:background-color .18s,color .18s}}
html[data-store-theme=dark] body.ev-storefront #big-searchform{background:var(--es-panel)!important;border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront #big-searchform :is(#big-search,.search-select){background:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront .search-cats nav a{background:var(--es-soft)!important;color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-storefront .search-cats nav a.active{background:#00bf63!important;color:#fff!important}
html[data-store-theme=dark] body.ev-storefront .view-switcher .view-switcher-item{color:var(--es-muted)}
html[data-store-theme=dark] body.ev-storefront .view-switcher .view-switcher-item.selected{background:var(--es-soft);color:var(--es-link);border-color:var(--es-line)}
html[data-store-theme=dark] body.ev-customer-ui .ev-account-token-dialog{background:var(--es-panel);color:var(--es-ink);border-color:var(--es-line)}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-account-token-cancel,#primary button.ev-account-token-renew){background:var(--es-panel);color:var(--es-muted);border-color:var(--es-line)}
html[data-store-theme=dark] body.ev-customer-ui :is(.ev-account-token-status,.ev-account-token-symbol){color:var(--es-muted)}
/* Desktop only: keep the original navigation, prevent the appearance icon wrapping by itself. */
@media(min-width:1100px){body.ev-storefront #masthead .main-navigation{max-width:calc(100% - 230px)}body.ev-storefront #masthead .main-navigation>.menu-header-container>ul.menu{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:0 5px}body.ev-storefront #masthead .main-navigation>.menu-header-container>ul.menu>li{float:none;white-space:nowrap}body.ev-storefront #masthead .main-navigation li.ev-store-theme-item{flex:none}body.ev-storefront #masthead .main-navigation .menu-item>a{padding-inline:9px}}
/* Avoid the old template's long all-property transition leaving light fields on a dark page. */
@media(prefers-reduced-motion:no-preference){body.ev-storefront :is(input,select,textarea,.search-cats a,#big-searchform){transition:background-color .18s ease,color .18s ease,border-color .18s ease!important}}
@media(prefers-reduced-motion:reduce){body.ev-storefront :is(input,select,textarea,.search-cats a,#big-searchform,.ev-store-theme-button){transition:none!important}}
body.ev-storefront #masthead .main-navigation li:focus-within>.sub-menu{visibility:visible;opacity:1;display:block}
/* Targeted fixes for the legacy search, product pricing, examples and review panels. */
html[data-store-theme=dark] body.ev-storefront :is(.search-controls,.search-select-wrap){border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront :is(.edd-pricing-table .edd-pt-description span[style*="green"],.edd-pricing-table font[color=green]){color:#5be59b!important}
html[data-store-theme=dark] body.ev-storefront :is(.purchase-price .edd_price,.edd-pricing-table .price-amount){background:transparent!important;box-shadow:none}
html[data-store-theme=dark] body.ev-storefront .edd_price_option_price{border-color:var(--es-line)!important}
html[data-store-theme=dark] body.ev-storefront #content :is(.enlighter-default,.enlighter,.enlighter-code,.enlighter-raw,.enlighter-toolbar,.EnlighterJSRAW){background:var(--es-soft)!important;color:#ededed!important;border-color:var(--es-line)!important;box-shadow:none!important}
html[data-store-theme=dark] body.ev-storefront .enlighter-default :is(.enlighter-text,.enlighter-linenumber){color:#d2d2d2}
html[data-store-theme=dark] body.ev-storefront .enlighter-default :is(.enlighter-s0,.enlighter-s1,.enlighter-s2){color:#ffb4c4}
html[data-store-theme=dark] body.ev-storefront .enlighter-default :is(.enlighter-k0,.enlighter-k1,.enlighter-k2){color:#9ac7ff}
html[data-store-theme=dark] body.ev-storefront .enlighter-default :is(.enlighter-n0,.enlighter-n1){color:#f4c879}
html[data-store-theme=dark] body.ev-storefront #content :is(.nav-previous,.nav-next,.comments-section,.comments-section .comments,.comments-section .comments-wrap,.comment-respond,#respond,.edd-reviews-form,.edd_review){background:var(--es-panel)!important;color:var(--es-ink)!important;border-color:var(--es-line)!important;box-shadow:0 3px 16px #0002}
html[data-store-theme=dark] body.ev-storefront #content :is(.nav-text h4,.nav-previous a,.nav-next a,.edd-reviews-title,.comment-reply-title,.comments-section h2,.comments-section h3,.comments-section label){color:var(--es-ink)!important}
html[data-store-theme=dark] body.ev-storefront #content :is(.nav-text>span,.edd-review-metadata,.comment-notes){color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-storefront :is(.post-meta,.post-meta li,.download-details,.download-features){border-color:var(--es-line)!important;color:var(--es-muted)!important}
html[data-store-theme=dark] body.ev-storefront :is(.post-meta a,.download-features a){color:var(--es-link)!important}
html[data-store-theme=dark] body.ev-storefront :is(.post-meta i,.share-post a,.share-post i,.share-buttons a){color:var(--es-muted)!important}
@media(max-width:600px){body.ev-storefront .big-search #big-searchform{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;height:auto;min-height:0}body.ev-storefront .big-search #big-searchform>br{display:none}body.ev-storefront .big-search #big-searchform #big-search{position:static;grid-column:1;grid-row:1;width:100%!important;min-width:0;max-width:none;height:52px;padding:12px 14px;font-size:15px}body.ev-storefront .big-search #big-searchform .search-controls{display:contents!important}body.ev-storefront .big-search #big-searchform .search-select-wrap{position:static;grid-column:1/-1;grid-row:2;width:100%!important;max-width:none;min-width:0;height:46px;border-top:1px solid #d8d8d8;border-left:0}body.ev-storefront .big-search #big-searchform .search-select{width:100%!important;max-width:none;min-width:0;height:46px;padding:10px 14px;opacity:1;font-size:14px;border:0}body.ev-storefront .big-search #big-searchform #big-search-submit{position:static;grid-column:2;grid-row:1;width:auto;min-width:84px;height:52px;padding:12px 17px;font-size:15px;border-radius:0 8px 0 0}}
