/* ==========================================================================
   legacy-light.css — admin section light-theme restoration.
   Version: 2026-09-26d (admin-only; forum/cms reverted via their own files)

   The forum and content pages are reverted by restoring their original
   forum.css / cms.css files, so they need nothing here.

   The admin section's styles live in the global music.css, which the dark
   reskin recolored via CSS variables. This file restores the original
   light values inside .admin-shell (variables inherit to all children),
   plus explicit hardcoded rules as a safety net.

   Requires: <link rel="stylesheet" href="legacy-light.css" /> in
   Components/App.razor (after music.css), and the admin layouts render
   their root div as <div class="admin-shell ... legacy-light"
   data-bs-theme="light"> (already done in the 4 admin layouts).
   ========================================================================== */

.admin-shell {
    color-scheme: light;

    /* Original :root palette (pre-reskin music.css) — scoped to admin */
    --bs-font-sans-serif: "Source Sans 3", system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: #f6f3ec;
    --bs-body-color: #1a1a1a;
    --bs-primary: #b91c1c;
    --bs-primary-rgb: 185, 28, 28;
    --bs-secondary: #5c5c5c;
    --bs-secondary-rgb: 92, 92, 92;
    --bs-dark: #111111;
    --bs-dark-rgb: 17, 17, 17;
    --bs-border-color: #ddd6c8;
    --bs-border-radius: 0.25rem;
    --bs-link-color: #b91c1c;
    --bs-link-hover-color: #991b1b;
    --magazine-ink: #111111;
    --magazine-cream: #f6f3ec;
    --magazine-paper: #fffdf8;
    --magazine-rule: #ddd6c8;
    --magazine-accent: #b91c1c;
    --magazine-gold: #a67c00;

    font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
    background-color: #f6f3ec;
    color: #1a1a1a;
}

.admin-shell .font-display {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Explicit hardcoded restoration — wins even if variable inheritance
   is disrupted, so the sidebar can never go white-on-white. */
.admin-shell .admin-sidebar { background: #111111; }
.admin-shell .admin-main,
.admin-shell .admin-content { background: #f6f3ec; color: #1a1a1a; }
.admin-shell .admin-topbar { background: #fffdf8; border-color: #ddd6c8; }
.admin-shell .admin-topbar .eyebrow { color: #b91c1c; }
.admin-shell .admin-stat-card { background: #fffdf8; border-color: #ddd6c8; }
.admin-shell .admin-stat-card .admin-stat-value { color: #1a1a1a; }
.admin-shell .admin-nav-link { color: rgba(255, 255, 255, 0.78); }
.admin-shell .admin-nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.admin-shell .admin-nav-link.active { color: #ffffff; background: rgba(185, 28, 28, 0.25); }
.admin-shell .admin-nav-label { color: rgba(255, 255, 255, 0.45); }
.admin-shell .admin-table { color: #1a1a1a; }
.admin-shell .admin-table thead th { background: rgba(17, 17, 17, 0.04); color: #1a1a1a; }
