/* Formal light and dark themes. Frozen is an optional ambient layer above either base. */
html[data-theme="light"] .new-dick {
    background:#f2f0eb;
    color:#17191d;
}
html[data-theme="light"] .nd-header.is-scrolled,
html[data-theme="light"] .nd-mobile-nav,
html[data-theme="light"] .nd-search-panel,
html[data-theme="light"] .nd-appearance {
    background:rgba(248,247,243,.97);
    border-color:rgba(24,30,39,.15);
    box-shadow:0 22px 65px rgba(31,38,48,.12);
}
html[data-theme="light"] .nd-card,
html[data-theme="light"] .nd-toc-shell.is-open .nd-toc-panel,
html[data-theme="light"] .nd-toc-trigger,
html[data-theme="light"] .nd-article-body details,
html[data-theme="light"] .nd-article-body :where(.tip-box,.status-box,.warning-box) {
    background-color:rgba(255,255,255,.72);
}
html[data-theme="light"] .nd-search-form input { caret-color:#244d79; }
html[data-theme="light"] .nd-search-highlight { background:#ead67f; color:#17191d; }
html[data-theme="light"] .nd-article-body pre { background:#0d1118; color:#e7edf5; }
html[data-theme="light"] .nd-article-body :not(pre)>code { background:rgba(36,77,121,.10); color:#183b61; }

html[data-theme="dark"] .new-dick {
    background:#080b10;
    color:#edf1f5;
}
html[data-theme="dark"] .nd-header.is-scrolled,
html[data-theme="dark"] .nd-mobile-nav,
html[data-theme="dark"] .nd-search-panel,
html[data-theme="dark"] .nd-appearance {
    background:rgba(12,16,23,.96);
    border-color:rgba(214,225,238,.16);
    box-shadow:0 26px 75px rgba(0,0,0,.55);
}
html[data-theme="dark"] .nd-card,
html[data-theme="dark"] .nd-toc-shell.is-open .nd-toc-panel,
html[data-theme="dark"] .nd-toc-trigger,
html[data-theme="dark"] .nd-article-body details,
html[data-theme="dark"] .nd-article-body :where(.tip-box,.status-box,.warning-box) {
    background-color:rgba(18,23,31,.82);
    border-color:rgba(214,225,238,.15);
}
html[data-theme="dark"] .nd-card:hover,
html[data-theme="dark"] .nd-search-result:hover,
html[data-theme="dark"] .nd-list-item:hover { background-color:rgba(137,179,218,.10); }
html[data-theme="dark"] .nd-search-form input { caret-color:#a8c6e2; }
html[data-theme="dark"] .nd-search-submit { background:#edf1f5; color:#080b10; }
html[data-theme="dark"] .nd-search-highlight { background:#9a8031; color:#fff8dc; }
html[data-theme="dark"] .nd-article-body pre { background:#05070a; color:#edf1f5; border-color:rgba(214,225,238,.17); }
html[data-theme="dark"] .nd-article-body :not(pre)>code { background:rgba(155,186,216,.13); color:#c5dbef; }
html[data-theme="dark"] .nd-article-body blockquote { background:linear-gradient(90deg,rgba(131,174,215,.13),transparent); }
html[data-theme="dark"] .nd-image-dialog { background:#080b10; }
html[data-theme="dark"] .nd-restricted-art { background:#11161e; }
html[data-theme="dark"] .nd-frozen-warning { background:#d7aa32; color:#171204; }

html[data-frozen="true"] .nd-header.is-scrolled,
html[data-frozen="true"] .nd-mobile-nav,
html[data-frozen="true"] .nd-search-panel,
html[data-frozen="true"] .nd-appearance,
html[data-frozen="true"] .nd-card,
html[data-frozen="true"] .nd-toc-panel,
html[data-frozen="true"] .nd-toc-trigger {
    background:color-mix(in srgb,var(--nd-surface-solid) 68%,transparent);
    backdrop-filter:blur(28px) saturate(150%);
    -webkit-backdrop-filter:blur(28px) saturate(150%);
}

/* New DICK keeps a solid editorial canvas unless Frozen is explicitly active. */
html:not([data-frozen="true"]) .new-dick { background-image:none; }
html[data-frozen="true"] .new-dick :is(.nd-card,.nd-read-next>a) { background-image:none!important; }
