/* =========================================================
   Physics SciEd Gold + Navy Academic Palette
   Based on the uploaded palette:
   gold, orange-gold, deep navy, and pale cream.
   ========================================================= */

:root {
  --ps-primary: #F7C928 !important;
  --ps-primary-2: #F2A60C !important;
  --ps-primary-dark: #F2A60C !important;
  --ps-primary-deep: #1D2738 !important;
  --ps-accent: #F2A60C !important;
  --ps-soft: #FFF9C4 !important;
  --ps-bg: #FFFDF0 !important;
  --ps-border: #E9E2C8 !important;
  --ps-text: #1D2738 !important;
  --ps-muted: #6B7280 !important;
  --ps-heading-color: #1D2738 !important;
  --ps-card: #FFFFFF !important;
}

html,
body {
  background: #FFFDF0 !important;
  color: #1D2738 !important;
}

/* Main institutional header: clean white with navy text */
.navbar,
.course-topbar {
  background: #FFFFFF !important;
  color: #1D2738 !important;
  border-bottom: 1px solid #E9E2C8 !important;
  box-shadow-none: none;
}

.navbar-brand,
.navbar-brand span,
.nav-link,
.navbar-text,
.course-topbar .navbar-brand,
.course-topbar .navbar-text {
  color: #1D2738 !important;
}

.nav-link:hover,
.nav-link.active {
  color: #1D2738 !important;
  background: #FFF9C4 !important;
}

/* Delta emblem should sit cleanly on white header */
.brand-logo,
.brand-logo-img,
.brand-mark-img {
  background: transparent !important;
  box-shadow-none: none;
}

/* Primary action buttons: gold with navy text */
.btn-primary,
.btn-ps-primary,
.open-course-btn,
.back-dashboard-btn,
.login-link,
.book-action.btn-primary {
  background-color: #F7C928 !important;
  border-color: #F7C928 !important;
  color: #1D2738 !important;
  box-shadow-none: none;
}

.btn-primary:hover,
.btn-ps-primary:hover,
.open-course-btn:hover,
.back-dashboard-btn:hover,
.login-link:hover,
.book-action.btn-primary:hover {
  background-color: #F2A60C !important;
  border-color: #F2A60C !important;
  color: #1D2738 !important;
}

.btn-outline-primary {
  color: #1D2738 !important;
  border-color: #F7C928 !important;
}

.btn-outline-primary:hover {
  background-color: #F7C928 !important;
  border-color: #F7C928 !important;
  color: #1D2738 !important;
}

/* Secondary/warm CTA */
.btn-yellow,
.btn-warning {
  background: #F2A60C !important;
  border-color: #F2A60C !important;
  color: #1D2738 !important;
  font-weight: 700 !important;
}

.btn-yellow:hover,
.btn-warning:hover {
  background: #F7C928 !important;
  border-color: #F7C928 !important;
  color: #1D2738 !important;
}

/* Text and academic titles */
.text-primary,
.feature-icon,
.profile-meta-item i,
.course-label,
.section-eyebrow,
.metric-value,
.stat-value,
.book-title,
.reader-title,
.course-title-bar h1,
.library-hero h1,
.profile-name {
  color: #1D2738 !important;
}

/* Cards and surfaces */
.profile-card,
.library-card,
.library-shell,
.book-card,
.side-panel,
.content-section-card,
.learning-card,
.tab-pane > .card,
.minimal-panel,
.search-panel,
.stat-card,
.course-card-minimal,
.login-card {
  background: #FFFFFF !important;
  border-color: #E9E2C8 !important;
  box-shadow-none: none;
}

/* Major panels: white/cream instead of strong color */
.library-hero,
.course-hero-card,
.cta-band,
.student-id-gate-header {
  background: #FFFFFF !important;
  color: #1D2738 !important;
  border: 1px solid #E9E2C8 !important;
  box-shadow-none: none;
}

.library-hero p,
.course-hero .lead,
.cta-band p {
  color: #6B7280 !important;
}

/* Tabs and selected items */
.nav-tabs .nav-link.active,
.category-badge.active,
.active-topic {
  background-color: #1D2738 !important;
  border-color: #1D2738 !important;
  color: #FFFFFF !important;
}

.nav-tabs .nav-link:hover,
.library-link:hover,
.materials-tab a:hover {
  background-color: #FFF9C4 !important;
  color: #1D2738 !important;
}

/* Chips and learner highlights */
.category-chip,
.course-date-chip,
.hero-badge,
.domain-pill,
.reading-tip,
.profile-complete-badge {
  background-color: #FFF9C4 !important;
  border-color: #E9E2C8 !important;
  color: #1D2738 !important;
}

.profile-incomplete-badge,
.protected-note {
  background: #FFF9C4 !important;
  border-color: #F7C928 !important;
  color: #1D2738 !important;
}

/* Progress and visual accents */
.progress-bar,
.progress-fill {
  background: linear-gradient(90deg, #F7C928, #F2A60C) !important;
}

.course-card-minimal::before {
  background: linear-gradient(90deg, #F7C928, #F2A60C) !important;
}

/* Form focus */
.form-control:focus,
.form-select:focus {
  border-color: #F7C928 !important;
  box-shadow-none: none;
}

/* Links */
a {
  color: #1D2738;
}

a:hover {
  color: #F2A60C;
}

/* Header buttons */
.navbar .btn-outline-light,
.course-topbar .btn-outline-light {
  color: #1D2738 !important;
  border-color: #E9E2C8 !important;
  background: #FFFFFF !important;
}

.navbar .btn-outline-light:hover,
.course-topbar .btn-outline-light:hover {
  color: #1D2738 !important;
  border-color: #F7C928 !important;
  background: #FFF9C4 !important;
}

.navbar .btn-light,
.course-topbar .btn-light {
  color: #1D2738 !important;
  background: #FFF9C4 !important;
  border-color: #E9E2C8 !important;
}

/* Reader */
.canvas-wrap {
  background: #F2F0E7 !important;
  border-color: #E9E2C8 !important;
}

/* Soft backgrounds */
.readonly-profile-note,
.locked-field,
.search-panel,
.empty-library {
  background: #FFFDF0 !important;
  border-color: #E9E2C8 !important;
}

.alert-info {
  background: #FFF9C4 !important;
  border-color: #E9E2C8 !important;
  color: #1D2738 !important;
}

/* Keep dark navbar leftovers from older pages neutralized */
.bg-primary,
.bg-dark {
  background-color: #1D2738 !important;
}


/* MY DASHBOARD SHADOWLESS OVERRIDE */
body:has(.profile-card) .profile-card,
body:has(.profile-card) .library-card,
body:has(.profile-card) .course-card-minimal,
body:has(.profile-card) .minimal-panel,
body:has(.profile-card) .profile-avatar,
body:has(.profile-card) .profile-avatar-initials {
  box-shadow-none: none;
}
