/* ============================================================
   KnowFlex component layer — built on tokens.css.
   New/rebuilt templates use ONLY these classes (kf- prefix keeps
   them clear of the legacy stylesheets during the transition).
   ============================================================ */

/* ---------- page scaffolding ---------- */
.kf-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-16);
  width: 100%;
}
.kf-page--narrow { max-width: 760px; }
.kf-section { margin-bottom: var(--space-12); }

/* ---------- prose (markdown-rendered legal docs, etc.) ---------- */
.kf-prose { color: var(--text-2); line-height: 1.7; font-size: var(--text-base); }
.kf-prose h1 {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700;
  color: var(--text); margin: 0 0 var(--space-2); letter-spacing: -0.01em;
}
.kf-prose h2 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  color: var(--accent); margin: var(--space-10) 0 var(--space-4);
}
.kf-prose h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--text); margin: var(--space-6) 0 var(--space-3);
}
.kf-prose > p:first-child em { color: var(--text-3); font-style: normal; font-size: var(--text-sm); }
.kf-prose p { margin: 0 0 var(--space-4); }
.kf-prose ul { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.kf-prose li { margin-bottom: var(--space-2); }
.kf-prose strong { color: var(--text); font-weight: 600; }
.kf-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.kf-prose a:hover { color: var(--accent-hover); }

.kf-section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.01em;
}
.kf-section-title .kf-count { color: var(--text-3); font-weight: 500; }
.kf-subtitle { color: var(--text-2); font-size: var(--text-base); margin: -var(--space-4) 0 var(--space-6); }

/* ---------- buttons ---------- */
.kf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font: 600 var(--text-sm)/1.2 var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease),
              border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  white-space: nowrap;
}
.kf-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kf-btn:active { transform: translateY(1px); }

.kf-btn--primary { background: var(--accent); color: var(--on-accent); }
.kf-btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow); color: var(--on-accent); }

.kf-btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.kf-btn--secondary:hover { border-color: var(--accent-line); color: var(--accent); }

.kf-btn--outline { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.kf-btn--outline:hover { background: var(--accent-dim); border-color: var(--accent); }

.kf-btn--ghost { background: transparent; color: var(--text-2); }
.kf-btn--ghost:hover { color: var(--text); background: var(--surface-2); }

.kf-btn--danger { background: transparent; color: var(--danger); border-color: rgba(248,113,113,.35); }
.kf-btn--danger:hover { background: var(--danger-dim); border-color: var(--danger); }

.kf-btn--sm { padding: 0.4rem 1rem; font-size: var(--text-xs); }
.kf-btn--lg { padding: 0.9rem 2.2rem; font-size: var(--text-base); }
.kf-btn--block { width: 100%; }
.kf-btn[disabled], .kf-btn--disabled { opacity: 0.45; pointer-events: none; }

/* ---------- chips / pills (topic + selection chips from the wireframes) --- */
.kf-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font: 500 var(--text-sm)/1.2 var(--font-sans);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  user-select: none;
}
.kf-chip:hover { border-color: var(--accent-line); color: var(--text); }
.kf-chip.is-selected, .kf-chip[aria-pressed="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.kf-chip--static { cursor: default; }
.kf-chip .kf-chip-x { margin-left: var(--space-1); opacity: 0.7; }
.kf-chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- cards ---------- */
.kf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.kf-card--hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.kf-card--hover:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kf-card--flat { background: var(--bg-elev); }
.kf-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--text); margin: 0 0 var(--space-2); }
.kf-card__meta { color: var(--text-3); font-size: var(--text-sm); }

/* panel = the big outlined boxes in the wireframes (upcoming sessions, etc.) */
.kf-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 120px;
}
.kf-panel--scroll { max-height: 420px; overflow-y: auto; }

/* ---------- forms ---------- */
.kf-field { margin-bottom: var(--space-5); }
.kf-label { display: block; font: 600 var(--text-sm)/1.4 var(--font-sans); color: var(--text); margin-bottom: var(--space-2); }
.kf-label .kf-req { color: var(--accent); }
.kf-help { color: var(--text-3); font-size: var(--text-xs); margin-top: var(--space-1); }

.kf-input, .kf-textarea, .kf-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font: 400 var(--text-base)/1.4 var(--font-sans);
  padding: 0.7rem 1rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.kf-input::placeholder, .kf-textarea::placeholder { color: var(--text-3); }
.kf-input:focus, .kf-textarea:focus, .kf-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.kf-textarea { min-height: 120px; resize: vertical; }
.kf-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }

.kf-checkbox { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-2); font-size: var(--text-sm); cursor: pointer; }
.kf-checkbox input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

.kf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.kf-form-grid .kf-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .kf-form-grid { grid-template-columns: 1fr; } }

/* ---------- badges & status ---------- */
.kf-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font: 600 var(--text-xs)/1.4 var(--font-sans);
}
.kf-badge--pending   { background: var(--warning-dim); color: var(--warning); }
.kf-badge--accepted, .kf-badge--approved, .kf-badge--active { background: var(--success-dim); color: var(--success); }
.kf-badge--rejected, .kf-badge--cancelled { background: var(--danger-dim); color: var(--danger); }
.kf-badge--completed { background: var(--info-dim); color: var(--info); }
.kf-badge--neutral   { background: var(--surface-3); color: var(--text-2); }
.kf-badge--accent    { background: var(--accent-dim); color: var(--accent); }

/* ---------- avatar ---------- */
.kf-avatar { border-radius: var(--radius-full); object-fit: cover; background: var(--surface-3); border: 1px solid var(--border-strong); }
.kf-avatar--sm { width: 36px; height: 36px; }
.kf-avatar--md { width: 56px; height: 56px; }
.kf-avatar--lg { width: 96px; height: 96px; }
.kf-avatar--square { border-radius: var(--radius-md); }

/* ---------- modal ---------- */
.kf-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.kf-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: var(--space-8);
  position: relative;
}
.kf-modal__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  background: none; border: none; color: var(--text-3);
  font-size: var(--text-xl); cursor: pointer; line-height: 1;
}
.kf-modal__close:hover { color: var(--text); }
.kf-modal__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin: 0 0 var(--space-4); color: var(--text); }

/* ---------- tables ---------- */
.kf-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.kf-table th {
  text-align: left; color: var(--text-3); font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-strong);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-xs);
}
.kf-table td { padding: var(--space-4); border-bottom: 1px solid var(--border); color: var(--text-2); }
.kf-table tr:hover td { background: var(--surface-2); }

/* ---------- toggle switch ---------- */
.kf-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.kf-toggle input { opacity: 0; width: 0; height: 0; }
.kf-toggle__track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.kf-toggle__track::before {
  content: ""; position: absolute; height: 16px; width: 16px; left: 2px; top: 2px;
  background: var(--text-2); border-radius: 50%;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.kf-toggle input:checked + .kf-toggle__track { background: var(--success-dim); border-color: var(--success); }
.kf-toggle input:checked + .kf-toggle__track::before { transform: translateX(18px); background: var(--success); }
.kf-toggle input:focus-visible + .kf-toggle__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- weekly availability calendar (speaker console) ------ */
.kf-cal { border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1, 0 2px 8px rgba(0,0,0,.15)); }
.kf-cal__grid { display: grid; grid-template-columns: 64px repeat(6, 1fr); }
.kf-cal__head, .kf-cal__hour {
  padding: var(--space-2); text-align: center;
  font: 600 var(--text-xs)/1.3 var(--font-sans); color: var(--text-2);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.kf-cal__hour { border-right: 1px solid var(--border); color: var(--text-3); }
.kf-cal__head.is-today { color: var(--accent); background: var(--accent-dim); }
.kf-cal__cell {
  min-height: 38px;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  position: relative;
}
.kf-cal__cell.is-today-col { background: color-mix(in srgb, var(--accent) 4%, var(--bg-elev)); }
.kf-cal__cell:hover { background: var(--surface-2); }
.kf-cal__cell.is-blocked {
  background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 5px, var(--surface-2) 5px, var(--surface-2) 10px);
  cursor: pointer;
}
.kf-cal__cell.is-blocked:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.kf-cal__cell.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
.kf-cal__cell.is-requested {
  background: var(--info-dim);
  border-left: 3px solid var(--info);
  animation: kfCalPulse 2s ease-in-out infinite;
}
.kf-cal__cell.is-requested:hover { background: var(--info-dim); box-shadow: inset 0 0 0 1px var(--info); }
.kf-cal__cell.is-booked {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  border-left: 3px solid var(--accent);
}
.kf-cal__cell.is-booked:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.kf-cal__cell.is-past { opacity: 0.35; cursor: not-allowed; }
@keyframes kfCalPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 var(--info-dim); }
  50% { box-shadow: inset 0 0 0 2px var(--info); }
}
.kf-cal__slot-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  font: 600 var(--text-xs)/1 var(--font-sans); color: var(--accent);
  padding: 0 0.3rem; overflow: hidden;
}
.kf-cal__cell.is-requested .kf-cal__slot-label { color: var(--info); }
.kf-cal__slot-label .kf-cal__avatar {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  font: 700 9px/1 var(--font-sans);
}
.kf-cal__slot-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kf-cal-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.kf-cal-legend__item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-2); }
.kf-cal-legend__swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.kf-cal-legend__swatch--booked { background: var(--accent-dim); border-left: 3px solid var(--accent); }
.kf-cal-legend__swatch--requested { background: var(--info-dim); border-left: 3px solid var(--info); }
.kf-cal-legend__swatch--blocked { background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 3px, var(--surface-2) 3px, var(--surface-2) 6px); border: 1px solid var(--border); }
.kf-cal-legend__swatch--available { background: var(--bg-elev); border: 1px solid var(--border); }

/* time-slot pick buttons (student booking flow) */
.kf-slot {
  display: inline-block; padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-line);
  background: transparent; color: var(--accent);
  font: 600 var(--text-xs)/1.4 var(--font-sans);
  cursor: pointer; transition: all var(--speed) var(--ease);
}
.kf-slot:hover { background: var(--accent-dim); }
.kf-slot.is-selected { background: var(--accent); color: var(--on-accent); }
.kf-slot.is-soldout { border-color: var(--border-strong); color: var(--text-3); cursor: not-allowed; text-decoration: line-through; }

/* ---------- misc ---------- */
.kf-empty {
  color: var(--text-2); text-align: left;
  padding: var(--space-4);
  line-height: 1.6;
}
.kf-divider { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
.kf-stars { color: var(--accent); letter-spacing: 2px; }
.kf-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }
.kf-link:hover { color: var(--accent-hover); }
.kf-link--danger { color: var(--danger); }
.kf-link--danger:hover { color: #fca5a5; }
.kf-muted { color: var(--text-3); }
.kf-flex { display: flex; align-items: center; gap: var(--space-3); }
.kf-flex--between { justify-content: space-between; }
.kf-flex--wrap { flex-wrap: wrap; }
.kf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.kf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .kf-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kf-grid-2, .kf-grid-3 { grid-template-columns: 1fr; } }

/* FAQ accordion (student profile page in the PDF) */
.kf-faq { border-bottom: 1px solid var(--border); }
.kf-faq summary {
  cursor: pointer; list-style: none;
  padding: var(--space-4) 0;
  color: var(--text); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.kf-faq summary::-webkit-details-marker { display: none; }
.kf-faq summary::after { content: '+'; color: var(--accent); font-size: var(--text-lg); }
.kf-faq[open] summary::after { content: '\2212'; }
.kf-faq p { color: var(--text-2); margin: 0 0 var(--space-4); line-height: 1.6; }

/* ---------- legacy-button consistency overrides ----------
   The legacy layers (dashboard.css + supercharge-theme.css + per-page style
   blocks) fight over these buttons with !important rules. This file loads
   last, so these win everywhere until those pages are fully rebuilt. */
body.supercharge-theme .btn-zoom {
  background: var(--info-dim) !important;
  background-image: none !important;
  color: var(--info) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
}
body.supercharge-theme .btn-zoom:hover {
  background: rgba(96, 165, 250, 0.25) !important;
  color: #93c5fd !important;
}
body.supercharge-theme .btn-go-calendar {
  background: var(--success-dim) !important;
  background-image: none !important;
  color: var(--success) !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}
body.supercharge-theme .btn-go-calendar:hover {
  background: rgba(74, 222, 128, 0.25) !important;
}
body.supercharge-theme .btn-decline,
body.supercharge-theme .btn-cancel {
  background: var(--danger-dim) !important;
  background-image: none !important;
  color: var(--danger) !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
}
body.supercharge-theme .btn-decline:hover,
body.supercharge-theme .btn-cancel:hover {
  background: rgba(248, 113, 113, 0.25) !important;
}
body.supercharge-theme .btn-reschedule {
  background: var(--info-dim) !important;
  color: var(--info) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
}

/* ---------- site polish (global UX refinements) ----------
   Applied on top of every page; part of the design-consistency pass. */

/* Decorative noise reduction: the floating emoji/FA icons competed with
   content and read as artifacts. Orbs stay, but subtler. */
.floating-icons { display: none !important; }
.gradient-orb { opacity: 0.5 !important; filter: blur(80px); }

/* Text selection + scrollbar in brand colors */
::selection { background: rgba(163, 230, 53, 0.28); color: #f5f5f5; }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

html { scroll-behavior: smooth; }

/* Navigation: quieter links with an accent underline that animates in */
body.supercharge-theme .nav-link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
body.supercharge-theme .nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
body.supercharge-theme .nav-link:hover::after { transform: scaleX(1); }

/* Homepage career chips: tighter, calmer, clearly interactive */
body.supercharge-theme .career-grid {
  gap: 0.9rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  /* 12 careers as a fixed 4×3 grid on desktop */
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  body.supercharge-theme .career-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  body.supercharge-theme .career-grid { grid-template-columns: 1fr; }
}
body.supercharge-theme .career-btn {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: all var(--speed) var(--ease);
}
body.supercharge-theme .career-btn span {
  font: 600 0.82rem/1.2 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
body.supercharge-theme .career-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
/* Selected chip must actually show its green fill — without this, the higher
   specificity of the base .career-btn rule above wins over home.html's plain
   .career-btn.active selector, leaving it stuck on the dark unselected
   background (black-on-black with the forced dark text below). */
body.supercharge-theme .career-btn.active {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.9) 0%, rgba(163, 230, 53, 0.7) 100%);
  border-color: var(--accent);
}
/* Hover and selected/active both fill solid-ish green (home.html's own
   :hover/.active rules glow bright green under the cursor) — text must go
   dark in both states, or it's unreadable green-on-green. */
body.supercharge-theme .career-btn:hover span,
body.supercharge-theme .career-btn.active span { color: var(--on-accent) !important; }

/* Homepage section headers: consistent editorial style with accent kicker */
body.supercharge-theme .section-title,
body.supercharge-theme .cta-title {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
  text-transform: none;
}
body.supercharge-theme .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
body.supercharge-theme .section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

/* Homepage mentor section: its title is left-aligned, so anchor the accent
   underline left instead of centered */
body.supercharge-theme .mentor-section .section-title::after {
  left: 2rem;
  transform: none;
}

/* Nav CTA buttons: legacy .btn skins left the text illegible on dark */
body.supercharge-theme .nav .btn-primary {
  background: var(--accent) !important;
  background-image: none !important;
  color: var(--on-accent) !important;
  border: none !important;
}
body.supercharge-theme .nav .btn-primary:hover {
  background: var(--accent-hover) !important;
  box-shadow: var(--glow);
}
body.supercharge-theme .nav .btn-ghost {
  color: var(--text-2) !important;
}
body.supercharge-theme .nav .btn-ghost:hover { color: var(--accent) !important; }

/* Gradient-clip text renders unreliably (transparent fill with no painted
   background on some compositors). Force solid fills for legacy headings. */
body.supercharge-theme .section-title,
body.supercharge-theme .cta-title {
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  color: var(--text) !important;
}
body.supercharge-theme .stat-number {
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  color: var(--accent) !important;
  text-shadow: none !important;
}

/* ---------- homepage elevation (design pass 2) ---------- */

/* Section kicker matching the hero eyebrow */
body.supercharge-theme .section-eyebrow {
  font: 700 0.75rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem 2rem;
}

/* Mentor cards: tighter geometry, calmer chrome, clearer hover */
body.supercharge-theme .speaker-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
body.supercharge-theme .speaker-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
body.supercharge-theme .skill-tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
body.supercharge-theme .skills-title {
  font: 700 0.78rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Stats banner: icon chips instead of raw glyphs */
body.supercharge-theme .stat-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.1rem;
}
body.supercharge-theme .stats-banner {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-xl);
}

/* Closing CTA: plain and centered — no box */
body.supercharge-theme .cta-section {
  border: none;
  border-radius: 0;
  background: none;
  padding: 4rem 2rem 2rem;
  text-align: center;
}
body.supercharge-theme .back-button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-full);
  padding: 0.85rem 2.2rem;
  font: 600 0.95rem/1.2 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}
body.supercharge-theme .back-button:hover {
  background: var(--accent-hover);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* Footer: accent hairline + breathing room */
body.supercharge-theme .site-footer,
body.supercharge-theme footer[role="contentinfo"],
body.supercharge-theme .footer {
  border-top: 1px solid var(--border);
  position: relative;
}
body.supercharge-theme .site-footer::before,
body.supercharge-theme footer[role="contentinfo"]::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---------- nav brand: image logo (replaces bolt-icon + wordmark) ---------- */
.nav-brand-logo {
  gap: 0 !important;
}
.nav-brand-img {
  height: 50px; /* 42px * 1.2 */
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-brand-img { height: 41px; } /* 34px * 1.2 */
}

/* Nav grows to fit the larger logo without crowding links */
.nav .container {
  max-width: 1400px;
}
.nav-container {
  min-height: 76px;
}
