/* ============================================================
   Alumni Relationship Engine — Vanilla CSS
   Brand: WesternU COMP
   Zero dependencies. CSS custom properties. Hand-written.
   ============================================================ */

:root {
  /* Brand Colors */
  --burgundy: #8b2230;
  --burgundy-dark: #58001b;
  --burgundy-mid: #6e1a26;
  --burgundy-soft: rgba(139, 34, 48, 0.07);
  --burgundy-glow: rgba(139, 34, 48, 0.12);

  --gold: #d4a24a;
  --gold-bright: #e8b84d;
  --gold-light: #f5e6c8;
  --gold-glow: rgba(224, 171, 76, 0.12);

  --green: #276749;
  --green-bg: #edf7f1;
  --green-soft: rgba(39, 103, 73, 0.08);

  --cream: #faf9f7;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-700: #1d4ed8;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --purple-50: #faf5ff;
  --purple-200: #e9d5ff;
  --purple-500: #a855f7;
  --purple-700: #7e22ce;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --rose-50: #fff1f2;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-700: #be123c;
  --teal-50: #f0fdfa;
  --teal-200: #99f6e4;
  --teal-700: #0f766e;
  --orange-50: #fff7ed;
  --orange-200: #fed7aa;
  --orange-700: #c2410c;

  /* Layout */
  --sidebar-width: 240px;
  --content-max: 896px;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-body);
}

/* ═══ RESET ═══ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ PAGE TEXTURE ═══ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ═══ ICONS ═══ */

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 12px; height: 12px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 24px; height: 24px; }

/* ═══ LAYOUT ═══ */

.sidebar {
  display: none;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  flex-direction: column;
  z-index: 40;
}
.main-content {
  min-height: 100vh;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
}
.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 16px 32px;
}

@media (min-width: 768px) {
  .sidebar { display: flex; }
  .main-content {
    margin-left: var(--sidebar-width);
    padding-bottom: 0;
  }
  .content-wrap { padding: 32px; }
  .mobile-nav { display: none !important; }
}

/* ═══ SIDEBAR ═══ */

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.logo-img {
  height: 28px;
  margin-bottom: 10px;
  opacity: 0.75;
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.badge-prototype {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
}

/* Sidebar Search */
.sidebar-search { padding: 16px 12px 8px; }
.search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: background 0.15s, border-color 0.15s;
}
.search-trigger:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(139, 34, 48, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.search-input-wrap .icon { color: rgba(139, 34, 48, 0.5); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--gray-900);
  background: transparent;
}
.search-close {
  padding: 2px;
  color: var(--gray-400);
}
.search-close:hover { color: var(--gray-600); }

.search-results {
  position: absolute;
  left: 12px; right: 12px;
  margin-top: 4px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  z-index: 50;
}
.search-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--cream); }
.search-result-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--burgundy-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.search-result-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.search-result-detail { font-size: 11px; color: var(--gray-400); }
.search-more {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--burgundy);
  text-align: center;
  border-top: 1px solid var(--gray-100);
  transition: background 0.1s;
}
.search-more:hover { background: var(--burgundy-soft); }
.search-empty {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: all 0.15s;
}
.nav-item:hover {
  color: var(--gray-800);
  background: var(--gray-50);
}
.nav-item.active {
  color: var(--burgundy);
  background: var(--burgundy-soft);
  font-weight: 600;
}
.nav-item.active .icon { color: var(--burgundy); }
.nav-label { flex: 1; text-align: left; }
.nav-badge {
  font-size: 10px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-200);
  color: var(--gray-600);
}
.nav-item.active .nav-badge {
  background: var(--burgundy);
  color: #fff;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--gray-100);
}
.disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ═══ MOBILE NAV ═══ */

.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  min-height: 56px;
  color: var(--gray-400);
  transition: color 0.15s;
}
.mobile-nav-item.active { color: var(--burgundy); }
.mobile-nav-item .icon { width: 22px; height: 22px; }
.mobile-nav-item.active .icon { stroke-width: 2.5; }
.mobile-nav-label {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 500;
}
.mobile-nav-item.active .mobile-nav-label { font-weight: 700; }
.mobile-nav-icon-wrap { position: relative; }
.mobile-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--burgundy);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-search-header .icon { color: rgba(139, 34, 48, 0.5); flex-shrink: 0; width: 18px; height: 18px; }
.mobile-search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--gray-900);
  background: transparent;
}
.mobile-search-header button { padding: 8px; margin-right: -8px; }
.mobile-search-header button .icon { width: 20px; height: 20px; color: var(--gray-500); }
.mobile-search-results { flex: 1; overflow-y: auto; }
.mobile-search-results .search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-search-results .search-result-avatar { width: 36px; height: 36px; font-size: 12px; }
.mobile-search-results .search-result-name { font-size: 15px; }
.mobile-search-results .search-result-detail { font-size: 13px; }

/* ═══ CARDS ═══ */

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-hover:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.card-body { padding: 24px; }
.card-body-sm { padding: 20px; }

/* ═══ BUTTONS ═══ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-outline {
  border: 1px solid rgba(139, 34, 48, 0.2);
  color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy-soft); }
.btn-ghost {
  color: var(--gray-400);
}
.btn-ghost:hover { color: var(--gray-600); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ═══ FORMS ═══ */

.input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: rgba(139, 34, 48, 0.3);
  box-shadow: 0 0 0 3px rgba(139, 34, 48, 0.08);
}
.input-lg { padding: 12px 16px; font-size: 14px; }
.select {
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.select:focus {
  border-color: rgba(139, 34, 48, 0.3);
  box-shadow: 0 0 0 2px rgba(139, 34, 48, 0.08);
}
.textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  background: var(--cream);
  outline: none;
  resize: none;
  min-height: 200px;
  line-height: 1.6;
}
.textarea:focus {
  border-color: rgba(139, 34, 48, 0.3);
  box-shadow: 0 0 0 2px rgba(139, 34, 48, 0.08);
}

/* ═══ PILLS / BADGES ═══ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}
.pill-active {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.pill-inactive {
  background: #fff;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.pill-inactive:hover {
  border-color: rgba(139, 34, 48, 0.3);
  color: var(--burgundy);
}

/* Campus Toggle */
.campus-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 9999px;
  padding: 4px;
  gap: 2px;
}
.campus-btn {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  transition: all 0.2s;
}
.campus-btn.active {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.campus-btn:not(.active):hover {
  color: var(--gray-700);
  background: rgba(0,0,0,0.04);
}
.campus-btn-sm { padding: 4px 12px; font-size: 12px; }

/* ═══ ENGAGEMENT BADGES ═══ */

.engagement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.badge-mentor { background: var(--burgundy-soft); color: var(--burgundy); border-color: rgba(139,34,48,0.2); }
.badge-donor { background: var(--green-50); color: var(--green-700); border-color: var(--green-200); }
.badge-preceptor { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.badge-advisory { background: var(--purple-50); color: var(--purple-700); border-color: var(--purple-200); }
.badge-rcme { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }
.badge-social { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-200); }
.badge-soap { background: var(--rose-50); color: var(--rose-700); border-color: var(--rose-200); }
.badge-speaker { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-200); }
.badge-champion { background: var(--gold-light); color: var(--amber-800); border-color: rgba(212,162,74,0.3); }

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gold-light);
  color: var(--amber-800);
  border: 1px solid rgba(212,162,74,0.3);
}
.badge-priority {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid;
}
.priority-high { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.priority-medium { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }
.priority-low { background: var(--gray-50); color: var(--gray-500); border-color: var(--gray-200); }

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

/* ═══ AVATAR ═══ */

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 14px; }
.avatar-lg { width: 64px; height: 64px; font-size: 18px; }

/* Avatar color palettes */
.avatar-0 { background: var(--burgundy-soft); color: var(--burgundy); }
.avatar-1 { background: #fef3c7; color: #92400e; }
.avatar-2 { background: #dbeafe; color: #1e40af; }
.avatar-3 { background: #d1fae5; color: #065f46; }
.avatar-4 { background: #ffe4e6; color: #9f1239; }
.avatar-5 { background: #ede9fe; color: #5b21b6; }
.avatar-6 { background: #ccfbf1; color: #0f766e; }
.avatar-7 { background: #ffedd5; color: #9a3412; }

/* ═══ STATUS DOT ═══ */

.status-dot {
  display: inline-block;
  border-radius: 50%;
}
.status-dot-sm { width: 8px; height: 8px; }
.status-dot-md { width: 10px; height: 10px; }
.dot-active, .dot-replied { background: var(--green-500); }
.dot-opened { background: var(--blue-500); }
.dot-sent { background: var(--gray-400); }
.dot-bounced { background: var(--red-500); }
.dot-inactive { background: var(--gray-300); }

/* ═══ ANIMATIONS ═══ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.4s ease-out forwards;
  opacity: 0;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ═══ OUTREACH PANEL ═══ */

.outreach-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 50;
  transition: opacity 0.2s;
}
.outreach-panel {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

/* ═══ COMPLIANCE ═══ */

.ferpa-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}
.ferpa-notice .icon { flex-shrink: 0; margin-top: 2px; color: var(--gray-400); }

.human-reviews-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 500;
}

/* ═══ UTILITY ═══ */

.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.ml-auto { margin-left: auto; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-burgundy { color: var(--burgundy); }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.border-t { border-top: 1px solid var(--gray-100); }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ TRANSITIONS ═══ */

.content-wrap { transition: opacity 0.2s ease-out; }
.pill { transition: all 0.2s ease; }
.btn { transition: all 0.2s ease; }
.btn:active { transform: scale(0.97); }
.card { transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.nav-item { transition: all 0.2s ease; }
.mobile-nav-item { transition: color 0.2s ease; }
.input, .select, .textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.engagement-badge { transition: transform 0.15s ease; }
.engagement-badge:hover { transform: scale(1.05); }
.avatar { transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* ═══ MOBILE RESPONSIVE ═══ */

@media (max-width: 767px) {
  /* Layout */
  .content-wrap { padding: 16px 12px 96px; }

  /* Typography */
  .text-2xl { font-size: 20px; }
  .text-xl { font-size: 18px; }

  /* Forms — prevent iOS zoom */
  input, select, textarea { font-size: 16px; }

  /* Cards */
  .card-body { padding: 16px; }
  .card-body-sm { padding: 12px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Filters wrap nicely */
  .flex-wrap { gap: 6px; }

  /* Outreach panel full width on mobile */
  .outreach-panel { width: 100vw; }

  /* Stat cards stack */
  .stat-grid { grid-template-columns: 1fr 1fr !important; }

  /* Chart containers */
  canvas { max-height: 250px; }
}

@media (max-width: 480px) {
  .content-wrap { padding: 12px 8px 96px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .campus-toggle { width: 100%; justify-content: center; }
  .campus-btn { flex: 1; text-align: center; }
  .pill { padding: 5px 10px; font-size: 11px; }
}

/* ═══ TABLET ═══ */

@media (min-width: 768px) and (max-width: 1024px) {
  .content-wrap { padding: 24px 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ WIDE SCREENS ═══ */

@media (min-width: 1280px) {
  .content-wrap { max-width: 960px; }
}

/* ═══ REDUCED MOTION ═══ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ PRINT ═══ */

@media print {
  .sidebar, .mobile-nav, .outreach-overlay, .outreach-panel { display: none !important; }
  .main-content { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body::before { display: none; }
}
