/* Neutral overrides retain the original dark values in site.css as fallbacks. */
:root { color-scheme: dark; }
:root:not([data-theme="light"]) .taw-feed-meta a,
:root:not([data-theme="light"]) .taw-unit-leadership a,
:root:not([data-theme="light"]) .taw-thread-author a.mud-link {
    color: #f06b7c !important;
}
:root[data-theme="light"] {
    color-scheme: light;
    --taw-bg: #d2d4d1;
    --taw-surface: #e2e3df;
    --taw-surface-strong: #e7e8e4;
    --taw-surface-soft: rgba(37, 35, 41, .035);
    --taw-stroke: rgba(37, 35, 41, .14);
    --taw-stroke-strong: rgba(37, 35, 41, .24);
    --taw-text: #252329;
    --taw-heading: #211e25;
    --taw-muted: #45434b;
    --taw-muted-2: #535159;
    --taw-success: #217447;
    --taw-warning: #946000;
    --taw-error: #b51225;
    --taw-crimson-hover: #b41027;
    --taw-ink-rgb: 37, 35, 41;
    --taw-panel-rgb: 226, 227, 223;
    --taw-inset-rgb: 185, 188, 184;
    --taw-solid-surface: #dcddd9;
    --taw-scrollbar: #9e3546;
    --taw-scrollbar-track: #c6c8c3;
    --taw-status-success: #217447;
    --taw-status-warning: #946000;
    --taw-status-error: #b51225;
    --taw-status-info: #126b91;
    --taw-red-bright: #b51225;
}
.taw-theme-menu { margin-bottom: 4px; }
.taw-theme-menu .mud-button-root {
    min-height: 36px;
    color: var(--taw-muted);
    font-family: var(--taw-mono);
    font-size: .6875rem;
    text-transform: none;
}
.taw-theme-menu .mud-button-root:hover,
.taw-theme-menu .mud-button-root:focus-visible { color: var(--taw-crimson); }

/* Filled actions and artwork retain white foregrounds in either theme. */
.taw-join-next,
.taw-join-discord-button,
.taw-join-discord-button:hover,
.taw-user-avatar,
.taw-hero-carousel,
.taw-report-action.mud-button-root:hover,
.taw-report-action.mud-button-root:focus-visible {
    --taw-heading: #ffffff;
    --taw-ink-rgb: 255, 255, 255;
}
:root[data-theme="light"] .taw-inbox-snackbar {
    background: linear-gradient(135deg, #e2e3df, #e3d5d7) !important;
}
:root[data-theme="light"] .taw-shell {
    background: radial-gradient(circle at 92% 6%, rgba(207, 20, 43, .04), transparent 32rem), var(--taw-bg);
}
:root[data-theme="light"] .taw-background-mark { opacity: .025; }
:root[data-theme="light"] .taw-privacy-footer-link { opacity: 1; }
:root[data-theme="light"] .taw-join-footer,
:root[data-theme="light"] .taw-join-footer a,
:root[data-theme="light"] .taw-join-choice-copy small,
:root[data-theme="light"] .taw-join-home-link { color: var(--taw-muted); }
:root[data-theme="light"] .taw-join-shell {
    background: radial-gradient(circle at 50% 30%, rgba(207, 20, 43, .07), transparent 36rem), var(--taw-bg);
}
:root[data-theme="light"] .taw-appbar.mud-appbar { box-shadow: 0 4px 20px rgba(37, 35, 41, .06); }
:root[data-theme="light"] .mud-paper { box-shadow: 0 8px 28px rgba(37, 35, 41, .07); }
:root[data-theme="light"] .taw-user-avatar {
    background: linear-gradient(145deg, #a91a30, #361721) !important;
}
