.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:nowrap;border:1px solid #c9dce2;border-radius:30px;background:#edf5f5;color:#194b57;font:600 14px Vazirmatn,sans-serif;padding:9px 16px;cursor:pointer;flex-shrink:0;transition:background-color .2s,color .2s}.theme-toggle:hover{background:#d9ebeb}.theme-toggle:focus-visible{outline:3px solid #1595a3;outline-offset:4px}
html[data-theme=dark]{--ink:#e1ecf3;--paper:#0d1925;--line:#304352;--muted:#b2c5d2;--teal:#55c6cb}
html[data-theme=dark] body{background:#0d1925;background-image:radial-gradient(ellipse at 100% 0,#17394577,transparent 48%);color:#e1ecf3}html[data-theme=dark] body::before{opacity:.08}
html[data-theme=dark] .header{background:#132636f5;border-color:#2c4251;box-shadow:0 12px 42px #0002}html[data-theme=dark] .brand b{color:#ecf7fb}html[data-theme=dark] .brand small{color:#b2c7d3}html[data-theme=dark] .header nav a{color:#d2e5ec}html[data-theme=dark] .header nav a:hover,html[data-theme=dark] .header nav a[aria-current=location]{background:#234654;color:#8ae1df}html[data-theme=dark] .header nav{border-color:#344957}
html[data-theme=dark] .theme-toggle{background:#29414d;border-color:#4b6572;color:#e5f3f4}html[data-theme=dark] .theme-toggle:hover{background:#345764}html[data-theme=dark] .editor-link{background:#243b4b;color:#d4e8f0}
html[data-theme=dark] :is(.issue-line,.editorial-notice,.reading-meta,.section-index,.breadcrumbs,.article-byline,.reading-cover figcaption){color:#a2bccb;border-color:#334957}
html[data-theme=dark] body :is(.muted,.reading-copy p,.article-heading>p,.hero p,.desk-form label>small,.import-draft small){color:#afc6d4}
html[data-theme=dark] body :is(.eyebrow,.reading-copy .eyebrow){color:#6cd3d4}html[data-theme=dark] :is(h1,h2,h3){color:#e7f3f7}
html[data-theme=dark] :is(.reading-card,.topic-tile,.article-page,.desk-form,.desk-list,.auth-card,.user-access-row,.product-card,.order-card,.import-card,.modal){background:#152938;border-color:#304b5b;color:#e1ecf3;box-shadow:0 8px 32px #0001}
html[data-theme=dark] .reading-tools{background:#142735;border-color:#304856}html[data-theme=dark] .reading-copy h3{color:#e5f2f6}html[data-theme=dark] .reading-meta{border-color:#334957}html[data-theme=dark] .reading-card:hover{box-shadow:0 18px 40px #0003}html[data-theme=dark] .topic-tabs button{color:#bbd0dd}html[data-theme=dark] .topic-tabs button.selected{background:#87d7cd;color:#102e35}html[data-theme=dark] .mag-search{background:#0f202d;border-color:#3b5565}html[data-theme=dark] .mag-search input{color:#e6f1f6}html[data-theme=dark] .mag-search span{color:#8eb0bf}
html[data-theme=dark] .topic-tile:hover{background:#23414a}html[data-theme=dark] .topic-tile p,html[data-theme=dark] .topic-tile>span{color:#afc5d2}html[data-theme=dark] .topic-tile>b{color:#76d9d5}
html[data-theme=dark] .storage-story{background:#20434a;border-color:#37606a;color:#d4ecec}html[data-theme=dark] .signal-story{background:#263650;border-color:#425777;color:#dce6fb}html[data-theme=dark] .side-story .story-kicker{color:#b3ceda}html[data-theme=dark] .story-footer{color:#c9e1e9}
html[data-theme=dark] .modern-about{border-color:#2d4253}html[data-theme=dark] .modern-about h2{color:#e6f4f8}html[data-theme=dark] .modern-about p{color:#b4cbd8}html[data-theme=dark] .modern-connect{background:#163d3c;border-color:#315c59}html[data-theme=dark] .modern-connect p{color:#b9d8d2}html[data-theme=dark] .connect-links a{background:#214b49;border-color:#42706a;color:#e5f7f1}html[data-theme=dark] .connect-links a:hover{background:#2b5f5a}html[data-theme=dark] .shop-bridge{background:#1a3243;border-color:#304e60}html[data-theme=dark] .shop-bridge p{color:#b7ceda}
html[data-theme=dark] .article-heading>p{color:#b9cedb}html[data-theme=dark] .article-body p{color:#c4d7e2}html[data-theme=dark] .article-body h2{color:#e6f4f6}html[data-theme=dark] :is(.article-sidebar,.article-sources,.reading-toc,.related-reading>a){border-color:#375363}html[data-theme=dark] :is(.article-sidebar a,.article-sidebar b,.article-body a,.article-sources a,.breadcrumbs a,.back-to-top){color:#7ed9d8}html[data-theme=dark] .editorial-disclosure{background:#233f4a;color:#c8dde6}html[data-theme=dark] .related-reading{border-color:#375363}
html[data-theme=dark] :is(input,textarea,select){background:#0e202d!important;color:#e0eff5!important;border-color:#456170!important;accent-color:#4cc6c9}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8ca9b9}html[data-theme=dark] :is(form label,.desk-form label,.auth-card label,.desk-filter){color:#c3d9e4}html[data-theme=dark] input:disabled{color:#8da8b8!important;background:#21333f!important}
html[data-theme=dark] .desk-form fieldset,html[data-theme=dark] .auth-card fieldset{background:#132a38;border-color:#3a5666}html[data-theme=dark] :is(.import-draft,.how-section,.notice,.empty,.receipt){background:#203b46;color:#c8e1e7;border-color:#42616c}html[data-theme=dark] :is(.desk-state,.desk-state span,.import-card p,.admin-intro,.order-items,.order-note,.order-customer,.auth-card p,.auth-session){color:#b9d2df}html[data-theme=dark] .draft-row{color:#d9edf3;border-color:#385261}html[data-theme=dark] .draft-row:hover,html[data-theme=dark] .draft-row.active{background:#254654}html[data-theme=dark] .draft-row small,html[data-theme=dark] #draft-count{color:#b8ced9}
html[data-theme=dark] .button.subtle,html[data-theme=dark] #cancel-schedule{background:#284352;color:#d7eaf2;border-color:#496674}html[data-theme=dark] #ready-review{background:#2a4b3c;border-color:#547b62;color:#d1edcf}html[data-theme=dark] :is(.button.primary,.publish,#schedule){background:#087e87;color:#fff;border-color:#25a7ae}html[data-theme=dark] .desk-actions{background:#152938}html[data-theme=dark] :is(.error,.auth-card .error,.desk-form .error){color:#ffacac}html[data-theme=dark] :is(.desk-message,.receipt){color:#a5e2bd}
html[data-theme=dark] :is(.product-name,.price,.product-page h1,.modal h2){color:#e2eff5}html[data-theme=dark] :is(.part-number,.product-category,.detail-spec,.result-heading,.stock-tag,.how-section p,.catalog-tools,.available-filter){color:#b8cfdc}html[data-theme=dark] .catalog-tools{background:#152c3b;border-color:#365365}html[data-theme=dark] .modal-close{background:#2b4958;color:#d3e8f1}html[data-theme=dark] .quantity button{background:#2b4656;border-color:#526c7c;color:#eef6f8}html[data-theme=dark] .cart-line{border-color:#375465}
@media(max-width:520px){.theme-toggle{font-size:12px;min-height:40px;padding:8px 12px}.header .theme-toggle{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
@media print{html[data-theme=dark] body,html[data-theme=dark] .article-page{background:white;color:black}html[data-theme=dark] .article-body p,html[data-theme=dark] .article-body h2{color:black}.theme-toggle{display:none}}
/* 0.7.7: pair mobile menu text and surfaces with the chosen theme. */
html[data-theme=light]{--menu-bg:#eef5ee;--menu-ink:#174f56;--menu-active-bg:#174f56;--menu-active-ink:#ffffff;--menu-border:#a5c3b8}
html[data-theme=dark]{--menu-bg:#203b4b;--menu-ink:#e1ecf3;--menu-active-bg:#8ae1df;--menu-active-ink:#102e35;--menu-border:#4b6572}
html[data-theme] .header>.nav-toggle{background:var(--menu-bg);color:var(--menu-ink);border-color:var(--menu-border)}
html[data-theme] .header nav a:focus-visible{outline:3px solid var(--menu-ink);outline-offset:2px}
html[data-theme] .topic-tabs button{background:transparent;color:var(--menu-ink)}
html[data-theme] .topic-tabs button.selected{background:var(--menu-active-bg);color:var(--menu-active-ink)}
/* An explicit choice must override the OS preference in node-editor.css. */
html[data-theme=light] .editor-shell :is(input,textarea,select){background:#ffffff;color:#173b44;color-scheme:light}
html[data-theme] .editor-shell select option{background:var(--paper);color:var(--ink)}
@media(max-width:760px){
 html[data-theme] .header.nav-ready>nav{border-color:var(--menu-border)}
 html[data-theme] .header.nav-ready>nav a{background:var(--menu-bg);color:var(--menu-ink)}
 html[data-theme] .header.nav-ready>nav a:is(:hover,:focus-visible,[aria-current=page],[aria-current=location]){background:var(--menu-active-bg);color:var(--menu-active-ink)}
 html[data-theme] .article-page .article-sidebar{background:var(--menu-bg);color:var(--menu-ink);border-color:var(--menu-border)}
 html[data-theme] .article-page .article-sidebar :is(a,b,.toc-title){color:var(--menu-ink)}
}
