:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #475569;
  --muted: #94A3B8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --paper: #F8FAFC;
  --paper-2: #F1F5F9;
  --card: #FFFFFF;
  --accent: #2563EB;
  --accent-soft: #DBEAFE;
  --accent-ink: #1D4ED8;
  --accent-2: #EFF6FF;
  --leaf: #059669;
  --leaf-soft: #D1FAE5;
  --slate: #7C3AED;
  --slate-soft: #EDE9FE;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.35; }
h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
p  { margin: 0; }

.container { width: min(1180px, 100% - 2.4rem); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ───── Header / Footer ──────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}
.site-header-inner { width: min(1180px, 100% - 2.4rem); margin: 0 auto; display: flex; align-items: center; gap: 1.6rem; padding: 0.9rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #1D4ED8 100%);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

.primary-nav { display: flex; gap: 0.25rem; margin-right: auto; margin-left: 1rem; }
.primary-nav a {
  font-size: 0.9rem; color: var(--ink-3); text-decoration: none;
  padding: 0.45rem 0.75rem; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 500;
}
.primary-nav a:hover { background: var(--paper-2); color: var(--ink); }
.primary-nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.primary-nav .pill { background: var(--accent); color: white; border-radius: 999px; font-size: 0.68rem; padding: 0.05rem 0.45rem; min-width: 1.3rem; text-align: center; font-weight: 600; }

.nav-actions { display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); padding: 0.45rem 0.55rem; border-radius: 8px; color: var(--ink); }

/* ───── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: white; }
.btn-solid:hover { background: var(--ink-2); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--line-strong); }
.btn-accent { background: var(--accent); color: white; box-shadow: 0 1px 3px rgba(37,99,235,0.3); }
.btn-accent:hover { background: var(--accent-ink); box-shadow: 0 4px 12px rgba(37,99,235,0.35); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--paper-2); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.5; pointer-events: none; }

/* ───── Account dropdown ──────────────────────────────────────────────────── */

.account { position: relative; }
.account > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card);
}
.account > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.account-name { font-size: 0.88rem; color: var(--ink-2); font-weight: 500; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-strong); display: flex; flex-direction: column;
  min-width: 200px; padding: 0.35rem; z-index: 60;
}
.account-menu a, .account-menu button { background: transparent; border: 0; text-align: left; padding: 0.55rem 0.7rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 0.9rem; }
.account-menu a:hover, .account-menu button:hover { background: var(--paper-2); color: var(--ink); }

/* ───── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(248, 250, 252, 0.75);
  margin-top: 5rem;
}
.site-footer .brand-name strong { color: white; }
.site-footer .brand-name em { color: rgba(248, 250, 252, 0.45); }
.site-footer-inner { width: min(1180px, 100% - 2.4rem); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding: 3rem 0 2rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 300px; font-size: 0.88rem; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-columns h4 { color: rgba(248, 250, 252, 0.45); margin-bottom: 0.65rem; }
.footer-columns a { display: block; padding: 0.25rem 0; color: rgba(248, 250, 252, 0.8); text-decoration: none; font-size: 0.9rem; }
.footer-columns a:hover { color: white; }
.site-footer-base { width: min(1180px, 100% - 2.4rem); margin: 0 auto; padding: 1.4rem 0 2.4rem; border-top: 1px solid rgba(248, 250, 252, 0.1); display: flex; justify-content: space-between; gap: 1.5rem; font-size: 0.82rem; flex-wrap: wrap; }

/* ───── Eyebrow + chips ──────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; font-weight: 700;
}
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-3); font-size: 0.75rem; border: 1px solid var(--line); font-weight: 500; }
.chip.chip-leaf { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }
.chip.chip-slate { background: var(--slate-soft); color: var(--slate); border-color: transparent; }
.chip.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* ───── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFC 55%, #F1F5F9 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy p.lede { font-size: 1.1rem; color: var(--ink-3); margin-top: 1.2rem; max-width: 520px; line-height: 1.7; }
.hero-search {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.5rem;
  background: var(--card); padding: 0.45rem 0.45rem 0.45rem 1rem;
  border-radius: 10px; border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-md); max-width: 500px;
}
.hero-search svg { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hero-search input { flex: 1; border: 0; background: transparent; padding: 0.5rem 0.5rem; font-size: 0.97rem; color: var(--ink); outline: none; }
.hero-search button { white-space: nowrap; flex-shrink: 0; }
.hero-proof { margin-top: 2.25rem; display: flex; gap: 2.5rem; }
.hero-proof div { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-proof strong { font-family: 'Manrope', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--ink); }
.hero-proof small { color: var(--muted); font-size: 0.83rem; }

.hero-card {
  background: var(--card); border-radius: 16px; padding: 1.6rem;
  box-shadow: var(--shadow-strong), 0 0 0 1px var(--line);
  position: relative;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.hero-card-head small { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.68rem; font-weight: 600; }
.hero-card-head strong { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hero-college { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.hero-college .monogram { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: white; font-family: 'Manrope', sans-serif; font-size: 1.2rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hero-college div { display: flex; flex-direction: column; }
.hero-college strong { font-size: 1rem; font-weight: 700; }
.hero-college small { color: var(--muted); font-size: 0.82rem; }
.hero-bars { display: flex; flex-direction: column; gap: 0.65rem; }
.hero-bar { display: grid; grid-template-columns: 105px 1fr auto; gap: 0.7rem; align-items: center; font-size: 0.83rem; color: var(--ink-3); }
.hero-bar i { display: block; height: 5px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.hero-bar i b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #60A5FA); border-radius: 999px; }
.hero-bar strong { color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; }
.hero-note { margin-top: 1.1rem; padding: 0.8rem 0.95rem; background: var(--accent-2); border-radius: 8px; font-size: 0.83rem; color: var(--accent-ink); border-left: 3px solid var(--accent); }

/* ───── Search section ──────────────────────────────────────────────────── */

.section { padding: 4.5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head p { color: var(--ink-3); max-width: 500px; }

.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; }
.filters {
  position: sticky; top: 82px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; align-self: start; box-shadow: var(--shadow);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.filters-head strong { font-family: 'Manrope', sans-serif; font-size: 0.98rem; font-weight: 700; }
.filters-head button { background: transparent; border: 0; padding: 0; color: var(--accent); font-size: 0.84rem; font-weight: 600; }
.field-block { display: flex; flex-direction: column; gap: 0.8rem; }
.field-block label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.field-block input, .field-block select, .field-block textarea {
  font: inherit; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 0.52rem 0.7rem; font-size: 0.92rem;
  color: var(--ink); text-transform: none; letter-spacing: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-block input:focus, .field-block select:focus, .field-block textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.results-toolbar strong { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 800; }
.results-toolbar small { color: var(--muted); display: block; margin-top: 0.1rem; font-size: 0.85rem; }
.results-toolbar .toolbar-meta { display: flex; flex-direction: column; }
.results-toolbar select { border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 0.38rem 0.8rem; font-size: 0.85rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }
.active-filters button { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--accent-soft); border: 1px solid rgba(37,99,235,0.2); padding: 0.28rem 0.65rem; border-radius: 6px; font-size: 0.78rem; color: var(--accent-ink); font-weight: 500; }
.active-filters button span { color: var(--accent); }

/* ───── College cards ───────────────────────────────────────────────────── */

.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.college-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.college-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.college-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.college-card .monogram {
  width: 42px; height: 42px; background: linear-gradient(135deg, var(--accent-soft), #BFDBFE);
  border: 1.5px solid rgba(37,99,235,0.15); color: var(--accent-ink); border-radius: 10px;
  font-family: 'Manrope', sans-serif; font-size: 1.2rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.save-btn {
  background: transparent; border: 1.5px solid var(--line); width: 34px; height: 34px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.15s;
}
.save-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.save-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.save-btn.is-saved { background: var(--accent); color: white; border-color: var(--accent); }
.save-btn.is-saved svg { fill: white; }
.college-card h3 { font-size: 1.05rem; }
.college-card h3 a { text-decoration: none; }
.college-card h3 a:hover { color: var(--accent); }
.college-card .meta { font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; }
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.metric-row > div { display: flex; flex-direction: column; gap: 0.1rem; }
.metric-row > div span { color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.67rem; font-weight: 600; }
.metric-row > div strong { font-size: 0.95rem; color: var(--ink); font-weight: 700; }
.college-card .footer-row { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; border-top: 1px solid var(--line); margin-top: auto; }
.college-card .footer-row a { color: var(--accent); font-size: 0.83rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.college-card .footer-row a:hover { color: var(--accent-ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem 0 0; }
.pagination button { background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.88rem; color: var(--ink-2); font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.pagination button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pagination button[disabled] { opacity: 0.35; pointer-events: none; }
.pagination span { color: var(--muted); font-size: 0.88rem; }

/* ───── Skeletons / empty / error ───────────────────────────────────────── */

.skeleton-card { pointer-events: none; }
.skeleton-card * { background: linear-gradient(90deg, var(--paper-2) 0%, var(--line) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; color: transparent; border-radius: 6px; }
.skeleton-card .monogram { background: var(--line); }
.skeleton-card h3 { height: 16px; width: 80%; }
.skeleton-card .meta { height: 12px; width: 50%; }
.skeleton-card .metric-row span, .skeleton-card .metric-row strong { height: 12px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.empty { background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.empty .empty-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--accent); }
.empty h3 { font-size: 1.1rem; }
.empty p { color: var(--ink-3); max-width: 400px; }
.empty.is-error .empty-icon { background: var(--danger-soft); color: var(--danger); }

.loading-panel { display: flex; align-items: center; justify-content: center; min-height: 180px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 0.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── AI Matching section ─────────────────────────────────────────────── */

.ai-section { background: linear-gradient(180deg, var(--paper) 0%, #EFF6FF 50%, var(--paper) 100%); }

.hero-ai-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.ai-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
  margin-bottom: 3rem;
}
.ai-feature {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s;
}
.ai-feature:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.ai-feature-icon { font-size: 1.6rem; line-height: 1; }
.ai-feature h3 { font-size: 1.05rem; }
.ai-feature p { color: var(--ink-3); font-size: 0.9rem; line-height: 1.6; }

.ai-report-preview {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 2rem; box-shadow: var(--shadow-strong);
}
.ai-report-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.ai-report-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.ai-report-college { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; position: relative; }
.ai-score-badge {
  margin-left: auto; width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.ai-dimension-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ai-dimension { display: grid; grid-template-columns: 145px 1fr 30px; align-items: center; gap: 0.75rem; font-size: 0.83rem; }
.ai-dimension span { color: var(--ink-3); }
.ai-dim-bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.ai-dim-bar div { height: 100%; background: linear-gradient(90deg, var(--accent), #60A5FA); border-radius: 999px; }
.ai-dimension strong { color: var(--accent-ink); font-weight: 700; text-align: right; }
.ai-report-right { display: flex; flex-direction: column; justify-content: flex-start; }
.ai-insight { color: var(--ink-3); font-size: 0.9rem; line-height: 1.65; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ───── Steps / CTA ─────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.steps article {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.65rem;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s;
}
.steps article:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.steps article b {
  font-family: 'Manrope', sans-serif; font-size: 1.8rem; color: var(--accent);
  font-weight: 800; letter-spacing: -0.03em;
}
.steps article h3 { font-size: 1.1rem; }
.steps article p { color: var(--ink-3); font-size: 0.92rem; }

.cta {
  background: linear-gradient(135deg, #1E40AF 0%, var(--accent) 60%, #3B82F6 100%);
  color: white; padding: 3.5rem; border-radius: 16px;
  display: grid; grid-template-columns: 1.6fr auto; gap: 2rem; align-items: center;
  box-shadow: 0 20px 50px -12px rgba(37,99,235,0.5);
  position: relative; overflow: hidden;
}
.cta::after { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.cta h2 { color: white; }
.cta p { color: rgba(255,255,255,0.82); max-width: 480px; margin-top: 0.6rem; }
.cta .btn-quiet { background: white; color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.cta .btn-quiet:hover { background: rgba(255,255,255,0.92); }

/* ───── College profile ─────────────────────────────────────────────────── */

.page-hero { background: white; padding: 2.5rem 0 0; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 0.83rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.college-header { display: flex; gap: 1.6rem; align-items: flex-start; justify-content: space-between; padding: 1.6rem 0 2rem; flex-wrap: wrap; }
.college-header-left { display: flex; gap: 1.4rem; align-items: center; }
.college-header .monogram { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: white; font-family: 'Manrope', sans-serif; font-size: 1.8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.college-header h1 { font-size: 2.2rem; }
.college-header p.meta { color: var(--ink-3); margin-top: 0.35rem; }
.college-header-actions { display: inline-flex; gap: 0.6rem; align-items: center; }

.tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; margin-top: 0.5rem; border-bottom: 2px solid var(--line); }
.tabs button { background: transparent; border: 0; padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; font-weight: 500; transition: color 0.15s; }
.tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button:hover { color: var(--ink); }

.profile-main { padding: 2.5rem 0 4rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.75rem; }

.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.1rem; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.2rem; }
.panel-head p { color: var(--ink-3); font-size: 0.88rem; margin-top: 0.2rem; }
.panel-head .stamp { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding: 0.25rem 0.6rem; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
.kpi { background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; transition: border-color 0.15s; }
.kpi:hover { border-color: var(--accent-soft); }
.kpi span { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.kpi strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--ink); margin-top: 0.2rem; }

.detail-grid { display: grid; gap: 0; }
.detail-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--ink-3); font-size: 0.9rem; }
.detail-row strong { color: var(--ink); font-weight: 600; text-align: right; }

.major-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.65rem; }
.major-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem; }
.major-item strong { display: block; font-size: 0.92rem; }
.major-item span { color: var(--muted); font-size: 0.78rem; }

.note-box { background: var(--accent-2); border-left: 3px solid var(--accent); padding: 0.85rem 1rem; border-radius: 8px; color: var(--accent-ink); font-size: 0.9rem; }
.planned-banner { background: var(--slate-soft); border-left-color: var(--slate); color: var(--slate); }

.side-stack { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 92px; align-self: start; }
.side-stack .panel { padding: 1.1rem 1.2rem; }
.side-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.4rem 0; }
.side-row span { color: var(--ink-3); font-size: 0.88rem; }
.side-row strong { color: var(--ink); font-weight: 600; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.side-link:last-child { border-bottom: 0; }
.side-link:hover { color: var(--accent); }

/* ───── Auth ────────────────────────────────────────────────────────────── */

body.auth-body { background: var(--paper); }
.auth-shell { min-height: calc(100vh - 62px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: linear-gradient(160deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
  color: white; padding: 4rem 3.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.auth-aside::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 180px; height: 180px; background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
.auth-aside h1 { color: white; }
.auth-aside h1 em { font-style: normal; color: #93C5FD; }
.auth-aside .eyebrow { color: rgba(255,255,255,0.65); }
.auth-aside p { color: rgba(255,255,255,0.8); margin-top: 1rem; max-width: 380px; font-size: 0.97rem; }
.auth-benefits { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-benefits div { display: flex; gap: 0.85rem; align-items: flex-start; }
.auth-benefits span { width: 32px; height: 32px; flex-shrink: 0; background: rgba(255,255,255,0.12); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #93C5FD; }
.auth-benefits strong { display: block; color: white; font-size: 0.95rem; }
.auth-benefits small { display: block; color: rgba(255,255,255,0.65); font-size: 0.83rem; margin-top: 0.15rem; }
.auth-foot { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem; background: var(--paper); }
.auth-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-tabs { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 0.2rem; margin: 1rem 0 1.4rem; }
.auth-tabs button { background: transparent; border: 0; padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.88rem; color: var(--ink-3); font-weight: 500; }
.auth-tabs button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-grid label.wide { grid-column: span 2; }
.form-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.73rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 0.93rem;
  color: var(--ink); text-transform: none; letter-spacing: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.85rem; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1rem; border-left: 3px solid var(--danger); }

/* ───── Dashboard / App pages ───────────────────────────────────────────── */

.app-page { padding: 3rem 0 4rem; }
.app-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.app-heading h1 { font-size: 2.2rem; }
.app-heading p { color: var(--ink-3); margin-top: 0.4rem; max-width: 520px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.dash-main { display: flex; flex-direction: column; gap: 1.1rem; }
.dash-side { display: flex; flex-direction: column; gap: 1.1rem; }

.progress-card { display: flex; gap: 1.4rem; align-items: center; }
.progress-ring { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 8; }
.progress-ring .track { stroke: var(--line); }
.progress-ring .fill { stroke: url(#blueGrad); stroke-linecap: round; transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.progress-ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.progress-copy h3 { font-size: 1.2rem; }
.progress-copy p { color: var(--ink-3); margin-top: 0.3rem; }
.progress-copy a { color: var(--accent); font-size: 0.88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.quick-action {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.quick-action:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.quick-action span { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.quick-action strong { font-size: 0.93rem; font-weight: 600; }
.quick-action small { color: var(--muted); font-size: 0.8rem; }

.shortlist-grid { display: grid; gap: 0.6rem; }
.shortlist-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; transition: border-color 0.15s; }
.shortlist-item:hover { border-color: var(--accent-soft); }
.shortlist-item .monogram { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), #BFDBFE); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.92rem; }
.shortlist-item a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.shortlist-item small { color: var(--muted); font-size: 0.8rem; display: block; }
.shortlist-item button { background: transparent; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0.2rem 0.45rem; border-radius: 6px; }
.shortlist-item button:hover { background: var(--danger-soft); color: var(--danger); }

.roadmap { display: flex; flex-direction: column; gap: 0.6rem; }
.roadmap-step { display: grid; grid-template-columns: 34px 1fr; gap: 0.75rem; align-items: flex-start; padding: 0.35rem 0; }
.roadmap-step .roadmap-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; border: 1.5px solid var(--line); }
.roadmap-step.is-current .roadmap-dot { background: var(--accent); color: white; border-color: transparent; box-shadow: 0 0 0 3px var(--accent-soft); }
.roadmap-step.is-done .roadmap-dot { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }
.roadmap-step strong { font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.roadmap-step small { color: var(--muted); font-size: 0.8rem; display: block; margin-top: 0.1rem; }
.roadmap-step .coming { background: var(--slate-soft); color: var(--slate); padding: 0.05rem 0.4rem; border-radius: 6px; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }

/* ───── Profile editor ─────────────────────────────────────────────────── */

.profile-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.75rem; align-items: flex-start; }
.profile-nav { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.1rem; position: sticky; top: 82px; }
.profile-nav button { background: transparent; border: 0; text-align: left; padding: 0.7rem 0.8rem; border-radius: 8px; color: var(--ink-3); font-size: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 500; transition: background 0.12s, color 0.12s; }
.profile-nav button:hover { background: var(--paper-2); color: var(--ink); }
.profile-nav button.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.profile-nav button .step-num { color: var(--muted); font-size: 0.78rem; }
.profile-nav button.is-complete .step-num { color: var(--leaf); }

.profile-pane { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.profile-pane-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.profile-pane-head h2 { font-size: 1.5rem; }
.profile-pane-head p { color: var(--ink-3); margin-top: 0.3rem; }

.repeat-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1rem; }
.repeat-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 1.1rem 1.1rem 0.9rem; position: relative; }
.repeat-card .remove { position: absolute; top: 0.65rem; right: 0.65rem; background: transparent; border: 0; color: var(--muted); font-size: 0.78rem; padding: 0.2rem 0.5rem; border-radius: 6px; }
.repeat-card .remove:hover { background: var(--danger-soft); color: var(--danger); }

.form-actions { display: flex; justify-content: flex-end; gap: 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }

/* ───── Toast ──────────────────────────────────────────────────────────── */

.toast-stack { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 100; }
.toast { background: var(--ink); color: white; padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 0.88rem; box-shadow: var(--shadow-strong); animation: rise 0.2s ease-out; font-weight: 500; }
.toast-error { background: var(--danger); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ───── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .profile-shell { grid-template-columns: 1fr; }
  .profile-nav { position: static; flex-direction: row; overflow-x: auto; gap: 0.3rem; padding: 0.4rem; }
  .profile-nav button { white-space: nowrap; }
  .dash-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .ai-features { grid-template-columns: 1fr 1fr; }
  .ai-report-body { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 2.5rem 1.8rem; }
  .auth-form-wrap { padding: 2rem 1.5rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .site-header.nav-open .primary-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 0.75rem 1.2rem; gap: 0.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav-actions .btn-ghost { display: none; }
  .hero-search { flex-direction: column; padding: 0.6rem; border-radius: 12px; }
  .hero-search input { width: 100%; }
  .hero-search button { width: 100%; }
  .hero-proof { gap: 1.5rem; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: span 1; }
  .ai-features { grid-template-columns: 1fr; }
  .ai-dimension { grid-template-columns: 110px 1fr 28px; }
  .college-header { flex-direction: column; align-items: flex-start; }
  .footer-columns { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.4rem; }
}

/* ───── Majors & Courses Custom Styling ───── */
.major-item.clickable {
  cursor: pointer;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.major-item.clickable:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.major-item.clickable strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.major-item.clickable span {
  color: var(--ink-3);
  font-size: 0.8rem;
}

/* Major Detail Header Banner */
.major-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.major-banner h2 {
  color: white;
  margin-top: 0.5rem;
  font-size: 1.6rem;
}
.major-banner p {
  color: var(--line-strong);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.major-banner .badge-stem {
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-top: 0.75rem;
}

/* Course Explorer section */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  align-items: center;
}
.course-filters input {
  flex: 1 1 200px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
}
.course-filters input:focus {
  border-color: var(--accent);
}
.course-filters select {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  background: white;
  cursor: pointer;
}
.course-filters select:focus {
  border-color: var(--accent);
}

/* Course List & Cards */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.course-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.course-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-2);
}
.course-card-header .course-credits {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.course-card .course-desc {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.badge-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
  text-transform: capitalize;
}
.badge-pill.introductory { background: #E0F2FE; color: #0369A1; }
.badge-pill.intermediate { background: #F0FDFA; color: #0F766E; }
.badge-pill.advanced { background: #FAF5FF; color: #6B21A8; }
.badge-pill.upper_division { background: #FFF7ED; color: #C2410C; }
.badge-pill.graduate { background: #FFF1F2; color: #BE123C; }

/* Prerequisite Warning style */
.course-prereqs {
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: #FFFBEB;
  border-left: 2px solid #F59E0B;
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: #78350F;
}
.course-prereqs strong {
  font-weight: 600;
}

/* Sidebar lists */
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sidebar-item-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: all 0.15s;
  width: 100%;
}
.sidebar-item-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.badge-stem-banner {
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

