/* ============================================================
   un — post-K-12 brand overrides
   Loaded after nu.css; only overrides brand-specific styles.
   ============================================================ */

/* Dark theme for un brand (unhomeschool.com) */
[data-theme="dark"] {
  /* Core palette */
  --color-text:            #e8e4e0;
  --color-text-secondary:  #a8a29e;
  --color-text-muted:      #78716c;
  --color-bg:              #1c1917;
  --color-bg-page:         #0c0a09;
  --color-bg-subtle:       #292524;
  --color-border:          #44403c;
  --color-border-input:    #57534e;

  /* Accent */
  --color-rose:            #e0457b;
  --color-rose-hover:      #c73868;
  --color-rose-light:      rgba(224, 69, 123, 0.15);
  --color-rose-ring:       rgba(224, 69, 123, 0.3);
  --color-dusty-blue:      #93c5fd;
  --color-dusty-blue-hover:#60a5fa;

  /* Status colors — dark-safe */
  --color-success-bg:      #14532d;
  --color-success-border:  #166534;
  --color-success-text:    #86efac;
  --color-error-bg:        #450a0a;
  --color-error-border:    #7f1d1d;
  --color-error-text:      #fca5a5;
  --color-warning-bg:      #451a03;
  --color-warning-border:  #78350f;
  --color-warning-text:    #fcd34d;
  --color-info-bg:         #0c2d48;
  --color-info-border:     #1e3a5f;
  --color-info-text:       #93c5fd;

  /* Calendar and lesson colors */
  --color-lesson-bg:       #312e81;
  --color-lesson-text:     #c4b5fd;
  --color-completed-bg:    #14532d;
  --color-completed-text:  #86efac;
  --color-skipped-bg:      #450a0a;
  --color-skipped-text:    #fca5a5;
  --color-today-bg:        #1e3a5f;
  --color-weekend-bg:      #292524;

  color-scheme: dark;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--color-bg-subtle);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .kanban-card {
  background: var(--color-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] table th {
  background: var(--color-bg-subtle);
}

[data-theme="dark"] .main-nav {
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .site-footer {
  border-top-color: var(--color-border);
}

/* Subject badges — dark-safe: muted bg, bright text */
[data-theme="dark"] .nu-subject-language_arts { background: #2d1a33; color: #ce93d8; }
[data-theme="dark"] .nu-subject-literature { background: #2d1a33; color: #ce93d8; }
[data-theme="dark"] .nu-subject-writing { background: #1a1533; color: #b39ddb; }
[data-theme="dark"] .nu-subject-science { background: #0d2818; color: #81c784; }
[data-theme="dark"] .nu-subject-biology { background: #0d2818; color: #66bb6a; }
[data-theme="dark"] .nu-subject-chemistry { background: #0a2628; color: #4dd0e1; }
[data-theme="dark"] .nu-subject-physics { background: #121833; color: #7986cb; }
[data-theme="dark"] .nu-subject-environmental_science { background: #142210; color: #aed581; }
[data-theme="dark"] .nu-subject-math { background: #2e1a05; color: #ffb74d; }
[data-theme="dark"] .nu-subject-algebra { background: #2e1a05; color: #ff8a65; }
[data-theme="dark"] .nu-subject-geometry { background: #2e2005; color: #ffd54f; }
[data-theme="dark"] .nu-subject-statistics { background: #2e1a05; color: #ffb74d; }
[data-theme="dark"] .nu-subject-computer_science { background: #0c2340; color: #64b5f6; }
[data-theme="dark"] .nu-subject-art { background: #2e0a0a; color: #ef9a9a; }
[data-theme="dark"] .nu-subject-music { background: #2e0a1a; color: #f48fb1; }
[data-theme="dark"] .nu-subject-history { background: #1e1510; color: #a1887f; }
[data-theme="dark"] .nu-subject-geography { background: #0a201e; color: #80cbc4; }
[data-theme="dark"] .nu-subject-government { background: #1a1e22; color: #90a4ae; }
[data-theme="dark"] .nu-subject-economics { background: #2e2805; color: #fff176; }
[data-theme="dark"] .nu-subject-philosophy { background: #1e0a2e; color: #ce93d8; }
[data-theme="dark"] .nu-subject-psychology { background: #2e0a1a; color: #f48fb1; }
[data-theme="dark"] .nu-subject-health { background: #0d2818; color: #81c784; }
[data-theme="dark"] .nu-subject-general { background: var(--color-bg-subtle); color: var(--color-text-muted); }
[data-theme="dark"] .nu-subject-trades { background: #121833; color: #7986cb; }
[data-theme="dark"] .nu-subject-cnc_machining { background: #1a1e22; color: #90a4ae; }
[data-theme="dark"] .nu-subject-electrical { background: #2e2805; color: #ffd54f; }
[data-theme="dark"] .nu-subject-welding { background: #2e1005; color: #ff8a65; }
[data-theme="dark"] .nu-subject-aerospace { background: #0c2340; color: #64b5f6; }
[data-theme="dark"] .nu-subject-automotive { background: #1e1510; color: #a1887f; }
[data-theme="dark"] .nu-subject-culinary { background: #2e2005; color: #ffb74d; }
[data-theme="dark"] .nu-subject-nursing { background: #2e0a0a; color: #ef9a9a; }
[data-theme="dark"] .nu-subject-business { background: #121833; color: #7986cb; }
[data-theme="dark"] .nu-subject-agriculture { background: #0d2818; color: #66bb6a; }
[data-theme="dark"] .nu-subject-hvac { background: #0a2628; color: #4dd0e1; }
[data-theme="dark"] .nu-subject-plumbing { background: #0c2340; color: #64b5f6; }
[data-theme="dark"] .nu-subject-construction { background: #1e1510; color: #a1887f; }
[data-theme="dark"] .nu-subject-logistics { background: #1e0a2e; color: #ce93d8; }
[data-theme="dark"] .nu-subject-aviation { background: #121833; color: #7986cb; }
[data-theme="dark"] .nu-subject-robotics { background: #121833; color: #7986cb; }
[data-theme="dark"] .nu-subject-environmental { background: #0d2818; color: #81c784; }
[data-theme="dark"] .nu-subject-law { background: #1a1e22; color: #90a4ae; }
[data-theme="dark"] .nu-subject-finance { background: #2e2805; color: #ffd54f; }
[data-theme="dark"] .nu-subject-communications { background: #2e0a1a; color: #f48fb1; }
[data-theme="dark"] .nu-subject-engineering { background: #0c2340; color: #64b5f6; }

/* Kanban tags — dark-safe */
[data-theme="dark"] .kanban-tag--special { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .kanban-tag--bonus { background: #0c2340; color: #93c5fd; }

/* Brand accent — darker, more professional tone */
.nu-chat-header h2 {
  color: var(--color-text);
}

.nu-catalog-header h1 {
  color: var(--color-text);
}
