/* Brand override layer: remaps styles.css's base tokens to the CESC
   identity. Values live in design-tokens.css (primitive -> semantic);
   this file only aliases the legacy --navy/--gold/etc. names so
   styles.css keeps working unchanged. */
:root {
  --navy: var(--color-primary);
  --navy2: var(--color-primary-dark);
  --gold: var(--color-accent);
  --cream: var(--color-surface);
  --paper: var(--color-background);
  --ink: var(--color-foreground);
  --muted: var(--color-muted-foreground);
  --line: var(--color-border);
  --shadow: var(--shadow-elevated);
}

body, button, input, select, textarea,
.hero h1, .section h2, .finder h2, .lead h2, .live-section h2,
.hero-proof strong, .course-card h3, .trust-band span, .feature-list b,
.feature-list h3, .stat-circle strong, .why-card blockquote, .live-date strong,
.live-card h3, .quote, .story-grid blockquote > p, .story-highlight strong,
.modal-card h2, .cart-head h2, .checkout-course h3, .admin header h1,
.admin-stat strong, .admin-panel h3, .blog-body h3,
.article-reader .article-content h3 {
  font-family: 'Manrope', sans-serif;
}

.hero h1, .section h2, .finder h2, .lead h2, .live-section h2,
.course-card h3, .feature-list h3, .live-card h3, .blog-body h3,
.modal-card h2, .admin header h1 {
  font-weight: 700;
  letter-spacing: -.035em;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; object-fit: contain; }
.brand-header img { width: 220px; height: 62px; object-position: left center; }
.brand-footer img { width: 250px; height: 92px; object-position: left center; }
.brand.compact { flex-direction: column; align-items: flex-start; gap: 10px; }
.brand.compact img { width: 185px; height: 82px; object-position: left center; }
.admin-brand-label { font-size: 8px; font-weight: 800; letter-spacing: .22em; color: var(--admin-nav-brand-label-fg); }

.announcement, .hero, .why-card, .live-section, .lead, #institucional, .admin > aside { background-color: var(--navy); }
.hero-overlay { background: linear-gradient(90deg, rgba(37,43,117,.98) 0%, rgba(49,55,143,.91) 32%, rgba(49,55,143,.24) 68%, rgba(49,55,143,.05) 100%); }
.announcement a, .eyebrow, .hero h1 em, .why h2 em, .live-section h2 em { color: var(--color-accent-hover-alt); }
.eyebrow.dark, .course-price span, .trust-band span, .feature-list b, .live-date strong { color: var(--color-accent-foreground-muted); }
.btn.primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
.btn.primary:hover { background: var(--button-primary-hover-bg); }
.tag.live { background: var(--tag-live-bg); color: var(--tag-live-fg); }
.story-highlight { background: var(--story-highlight-bg); color: var(--story-highlight-fg); }
.admin nav button.active { background: rgba(255,255,255,.1); border-left-color: var(--admin-nav-active-border); }
.bar-chart i { background: var(--bar-chart-fill); }

@media (max-width: 900px) {
  .brand-header img { width: 190px; height: 56px; }
  .brand.compact img { width: 56px; height: 54px; object-fit: cover; object-position: left; }
  .admin-brand-label { display: none; }
}

@media (max-width: 600px) {
  .brand-header img { width: 158px; height: 48px; }
  .brand-footer img { width: 220px; height: 80px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(37,43,117,.98), rgba(49,55,143,.68)); }
}
