/* ============================================================
   ARRN — Arkansas Recovery Response Network
   Custom Stylesheet (supplements TailwindCSS CDN)
   ============================================================ */

/* --- Google Fonts fallback --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Official ARRN brand colors (from approved logo) */
  --brand-navy: #1B3668;
  --brand-red: #9B2335;
  --brand-red-light: rgba(155,35,53,0.12);
  --brand-red-border: rgba(155,35,53,0.28);

  --navy-950: #040e1c;
  --navy-900: #06111f;
  --navy-800: #0c1f3a;
  --navy-700: #102944;
  --navy-600: #16325a;
  --navy-500: #1a3f72;
  --blue-600: #1565c0;
  --blue-500: #1976d2;
  --teal-700: #00636e;
  --teal-600: #00838f;
  --teal-500: #00acc1;
  --teal-400: #26c6da;
  --teal-300: #80deea;
  --gold-700: #8c6a00;
  --gold-600: #b47d00;
  --gold-500: #d4a017;
  --gold-400: #e8c040;
  --surface: #f0f4f9;
  --surface-2: #e8eef6;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --text-900: #0f172a;
  --text-700: #1e293b;
  --text-500: #475569;
  --text-400: #64748b;
  --text-300: #94a3b8;
  --success: #166534;
  --success-light: #dcfce7;
  --warning: #92400e;
  --warning-light: #fef3c7;
  --danger: #991b1b;
  --danger-light: #fee2e2;
  --info-light: #dbeafe;
  --info: #1e40af;
  --sidebar-width: 248px;
  --header-height: 64px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-700);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.25;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-300); }

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */

/* Navbar */
#landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
#landing-nav.scrolled {
  background: rgba(12, 31, 58, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}
#landing-nav .nav-link {
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
#landing-nav .nav-link:hover {
  color: #ffffff;
  border-bottom-color: var(--brand-red);
}

/* Hero */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(4,14,28,0.92) 0%, rgba(22,50,90,0.85) 60%, rgba(0,99,110,0.7) 100%),
    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='%23ffffff' fill-opacity='0.03'%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");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,172,193,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 18px 24px;
}

.stat-badge .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-badge .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Animated counter */
.counter { display: inline-block; }

/* Section labels */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(0,131,143,0.08);
  border: 1px solid rgba(0,131,143,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* Feature cards */
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--teal-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(12,31,58,0.10);
  border-color: var(--teal-400);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(12,31,58,0.20);
}
.feature-icon svg { width: 26px; height: 26px; color: white; }

/* Step cards */
.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,131,143,0.25);
}

/* Partner logos */
.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-500);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.partner-chip:hover {
  border-color: var(--teal-500);
  color: var(--navy-800);
  box-shadow: 0 2px 10px rgba(0,131,143,0.10);
}
.partner-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, #0d5f6b 100%);
}

/* Scroll animation base */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Impact stats bar */
.impact-bar {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600));
}

.impact-stat { border-right: 1px solid rgba(255,255,255,0.08); }
.impact-stat:last-child { border-right: none; }

/* ============================================================
   DASHBOARD / APP STYLES
   ============================================================ */

/* App Layout */
#app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--navy-900);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

#sidebar .sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.sidebar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  padding: 16px 20px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  border-left: 3px solid transparent;
  position: relative;
  user-select: none;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.90);
}
.sidebar-item.active {
  background: rgba(0,172,193,0.12);
  color: var(--teal-300);
  border-left-color: var(--teal-500);
}
.sidebar-item.active svg { color: var(--teal-400); }
.sidebar-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--teal-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

.sidebar-badge.danger { background: #dc2626; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* Main Content */
#main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header */
#app-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-breadcrumb {
  font-size: 13px;
  color: var(--text-400);
}
.header-breadcrumb span {
  color: var(--text-700);
  font-weight: 600;
}

/* Content area */
#view-container {
  flex: 1;
  padding: 28px 28px 48px;
  max-width: 1400px;
}

/* --- KPI Cards --- */
.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: var(--border-dark);
}
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-card.kpi-navy::after  { background: linear-gradient(90deg, var(--navy-700), var(--navy-500)); }
.kpi-card.kpi-teal::after  { background: linear-gradient(90deg, var(--teal-600), var(--teal-400)); }
.kpi-card.kpi-gold::after  { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.kpi-card.kpi-green::after { background: linear-gradient(90deg, #166534, #16a34a); }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-400);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-900);
  line-height: 1;
  margin-bottom: 8px;
}
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}
.kpi-trend.up   { background: #dcfce7; color: #166534; }
.kpi-trend.down { background: #fee2e2; color: #991b1b; }
.kpi-trend.neutral { background: #f0f4f8; color: #475569; }

.kpi-icon-bg {
  position: absolute;
  right: 20px; top: 20px;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon-bg.navy  { background: rgba(12,31,58,0.07); }
.kpi-icon-bg.teal  { background: rgba(0,131,143,0.07); }
.kpi-icon-bg.gold  { background: rgba(180,125,0,0.07); }
.kpi-icon-bg.green { background: rgba(22,101,52,0.07); }
.kpi-icon-bg svg { width: 22px; height: 22px; }

/* --- Dashboard Charts --- */
.chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
}
.chart-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}
.chart-card .chart-subtitle {
  font-size: 12px;
  color: var(--text-400);
  margin-bottom: 20px;
}
.chart-wrap {
  position: relative;
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-400);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody td {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-700);
  vertical-align: middle;
}

/* --- Badges / Status Pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge.critical   { background: #fee2e2; color: #991b1b; } .badge.critical::before { background: #ef4444; }
.badge.high       { background: #ffedd5; color: #9a3412; } .badge.high::before { background: #f97316; }
.badge.medium     { background: #fef9c3; color: #854d0e; } .badge.medium::before { background: #eab308; }
.badge.low        { background: #dcfce7; color: #166534; } .badge.low::before { background: #22c55e; }
.badge.pending    { background: #f1f5f9; color: #475569; } .badge.pending::before { background: #94a3b8; }
.badge.assigned   { background: #dbeafe; color: #1e40af; } .badge.assigned::before { background: #3b82f6; }
.badge.outreach_attempted { background: #fef3c7; color: #92400e; } .badge.outreach_attempted::before { background: #f59e0b; }
.badge.connected  { background: #dcfce7; color: #166534; } .badge.connected::before { background: #22c55e; }
.badge.complete   { background: #e0e7ff; color: #3730a3; } .badge.complete::before { background: #6366f1; }
.badge.requested  { background: #f1f5f9; color: #475569; } .badge.requested::before { background: #94a3b8; }
.badge.confirmed  { background: #dbeafe; color: #1e40af; } .badge.confirmed::before { background: #3b82f6; }
.badge.in_progress { background: #fef3c7; color: #92400e; } .badge.in_progress::before { background: #f59e0b; }
.badge.available  { background: #dcfce7; color: #166534; } .badge.available::before { background: #22c55e; }
.badge.limited    { background: #fef3c7; color: #92400e; } .badge.limited::before { background: #f59e0b; }
.badge.full       { background: #fee2e2; color: #991b1b; } .badge.full::before { background: #ef4444; }
.badge.active     { background: #dcfce7; color: #166534; } .badge.active::before { background: #22c55e; }
.badge.unavailable { background: #f1f5f9; color: #475569; } .badge.unavailable::before { background: #94a3b8; }
.badge.treatment  { background: #dbeafe; color: #1e40af; }  .badge.treatment::before { background: #3b82f6; }
.badge.shelter    { background: #fce7f3; color: #9d174d; }  .badge.shelter::before { background: #ec4899; }
.badge.counseling { background: #ede9fe; color: #5b21b6; }  .badge.counseling::before { background: #8b5cf6; }
.badge.crisis     { background: #fee2e2; color: #991b1b; }  .badge.crisis::before { background: #ef4444; }
.badge.housing    { background: #fef3c7; color: #92400e; }  .badge.housing::before { background: #f59e0b; }
.badge.food       { background: #dcfce7; color: #166534; }  .badge.food::before { background: #22c55e; }
.badge.church     { background: #f0f9ff; color: #0c4a6e; }  .badge.church::before { background: #38bdf8; }
.badge.type-tag   { background: var(--surface); color: var(--text-500); border: 1px solid var(--border); } .badge.type-tag::before { display: none; }

/* Type badge no-dot variant */
.badge.no-dot::before { display: none; }

/* --- Alert Cards --- */
.alert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  margin-bottom: 8px;
  transition: box-shadow 0.2s;
}
.alert-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.alert-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert-dot.critical { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.alert-dot.warning  { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.alert-dot.info     { background: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: white;
  box-shadow: 0 2px 8px rgba(12,31,58,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  box-shadow: 0 4px 14px rgba(12,31,58,0.30);
  transform: translateY(-1px);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: white;
  box-shadow: 0 2px 8px rgba(0,131,143,0.25);
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  transform: translateY(-1px);
}
.btn-outline {
  background: white;
  color: var(--text-700);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--border-dark);
}
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: #fecaca; }
.btn-sm { font-size: 12px; padding: 6px 12px; gap: 5px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { font-size: 15px; padding: 12px 24px; border-radius: 11px; }

/* --- Coach Cards --- */
.coach-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.coach-card:hover {
  box-shadow: 0 6px 24px rgba(12,31,58,0.09);
  border-color: var(--border-dark);
  transform: translateY(-2px);
}

.coach-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(12,31,58,0.18);
}

.progress-bar-wrap {
  background: var(--surface);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width 1s ease;
}

.cert-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-500);
  border: 1px solid var(--border);
  margin: 2px;
}

/* --- Transport Cards --- */
.transport-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 10px;
}
.transport-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--border-dark);
}
.transport-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.transport-icon svg { width: 20px; height: 20px; color: white; }

/* --- Resource Cards --- */
.resource-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border-color: var(--border-dark);
  transform: translateY(-2px);
}

/* --- Map --- */
#map-container {
  height: calc(100vh - var(--header-height) - 130px);
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.leaflet-container {
  background: #f0f4f9 !important;
  font-family: 'Inter', sans-serif !important;
}

.map-popup h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 6px;
}
.map-popup p {
  font-size: 12px;
  color: var(--text-500);
  margin: 3px 0;
  line-height: 1.4;
}
.map-popup .mp-stat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 6px;
  margin-right: 4px;
}

/* Map legend */
.map-legend {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-500);
  font-weight: 500;
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-700);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(0,172,193,0.10);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}
textarea.form-control { min-height: 90px; resize: vertical; }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,14,28,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  border-radius: 18px 18px 0 0;
}
.modal-body { padding: 22px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface);
  border-radius: 0 0 18px 18px;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-400);
  background: var(--surface);
  border: none;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text-700); }

/* --- View Page Headers --- */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-900);
  margin: 0 0 4px;
}
.view-subtitle {
  font-size: 13px;
  color: var(--text-400);
  margin: 0;
}

/* Search & filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}
.search-input-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-300);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--teal-500); }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--teal-500);
}
.timeline-item.alert::before  { background: #ef4444; box-shadow: 0 0 0 2px #ef4444; }
.timeline-item.success::before { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }
.timeline-item.assignment::before { background: var(--navy-600); box-shadow: 0 0 0 2px var(--navy-600); }

.timeline-time { font-size: 11px; color: var(--text-300); margin-bottom: 2px; }
.timeline-event { font-size: 13px; color: var(--text-700); font-weight: 500; }

/* --- Notifications bell --- */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-500);
}
.notif-btn:hover { background: white; }
.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid white;
}

/* --- Section divider --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* --- Analytics specific --- */
.analytics-kpi {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.analytics-kpi .big-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-900);
  line-height: 1;
}

/* --- Mobile Hamburger --- */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
#menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-700);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-width: 64px; }

  .sidebar-item span,
  .sidebar-group-label,
  .sidebar-badge,
  .sidebar-footer .flex-1 { display: none; }

  .sidebar-item { justify-content: center; padding: 12px; }
  .sidebar-footer { justify-content: center; }
  #sidebar .sidebar-logo { display: flex; justify-content: center; }
  #sidebar .sidebar-logo .logo-text { display: none; }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 56px;
  }

  #sidebar {
    transform: translateX(-100%);
    width: 248px !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  #sidebar.open { transform: translateX(0); }

  .sidebar-item span,
  .sidebar-group-label,
  .sidebar-badge,
  .sidebar-footer .flex-1 { display: block !important; }
  .sidebar-item { justify-content: flex-start !important; padding: 10px 20px !important; }
  .sidebar-footer { justify-content: flex-start !important; }
  #sidebar .sidebar-logo { display: block !important; }
  #sidebar .sidebar-logo .logo-text { display: block !important; }

  #main-wrapper { margin-left: 0; }
  #menu-toggle { display: flex; }
  #view-container { padding: 16px 16px 40px; }

  .view-header { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-input-wrap { max-width: 100%; }
}

@media (max-width: 480px) {
  .kpi-value { font-size: 1.6rem; }
  .chart-wrap canvas { max-height: 200px; }
}

/* --- Page overlay for mobile menu --- */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 49;
}
#sidebar-overlay.show { display: block; }

/* --- Utility --- */
.text-navy { color: var(--navy-800); }
.text-teal  { color: var(--teal-600); }
.text-gold  { color: var(--gold-600); }
.bg-navy    { background: var(--navy-900); }
.gradient-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.shadow-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Dropdown select styling for filter bars */
select.form-control.form-select {
  background-color: white;
  cursor: pointer;
}

/* Naloxone progress bar */
.narc-bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.narc-fill { height: 100%; border-radius: 4px; }
.narc-fill.good { background: linear-gradient(90deg, #22c55e, #16a34a); }
.narc-fill.low  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.narc-fill.empty { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Landing page CTA form */
.form-input-landing {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy-900);
  background: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input-landing:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(0,172,193,0.18);
}
.form-input-landing::placeholder { color: rgba(100,116,139,0.7); }

/* ============================================================
   DESKTOP SCALE PATCHES — min-width only, mobile untouched.
   Hero layout is now controlled by Tailwind responsive classes
   in the HTML (lg:px-16 xl:px-24 2xl:px-36 etc).
   This block handles dashboard + below-hero section scaling.
   ============================================================ */

/* ── 1024px: dashboard content fills its flex container ── */
@media (min-width: 1024px) {
  #view-container {
    width: 100%;
  }
}

/* ── 1280px: standard laptop / desktop ── */
@media (min-width: 1280px) {
  #view-container {
    padding: 32px 36px 56px;
  }
  #app-header {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ── 1536px: large desktop / 1440p / ultrawide ── */
@media (min-width: 1536px) {
  /* Below-hero content sections: wider than Tailwind's max-w-7xl (1280px) */
  section > .max-w-7xl,
  footer > .max-w-7xl {
    max-width: 1480px;
  }

  /* Stat badges scale up */
  .stat-badge {
    padding: 26px 36px;
  }
  .stat-badge .stat-num {
    font-size: 2.6rem;
  }
  .stat-badge .stat-label {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  /* Hero ambient glow: larger presence on big screens */
  .hero-glow {
    width: 900px;
    height: 900px;
    top: -120px;
    right: -120px;
  }

  /* Dashboard: remove width ceiling, generous padding */
  #view-container {
    max-width: none;
    padding: 36px 52px 64px;
  }
  #app-header {
    padding-left: 40px;
    padding-right: 40px;
  }
  .kpi-value {
    font-size: 2.2rem;
  }
  .chart-card .chart-wrap {
    min-height: 260px;
  }
}

/* ============================================================
   INFRASTRUCTURE & LIVE NETWORK LANDING SECTIONS
   ============================================================ */

/* --- Infrastructure section --- */
.infra-section { position: relative; overflow: hidden; }

.infra-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1160px;
  margin: 0 auto;
}

.infra-nodes-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.infra-nodes-col:first-child { align-items: flex-end; }
.infra-nodes-col:last-child  { align-items: flex-start; }

.infra-node-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.infra-node-chip:hover {
  border-color: rgba(38,198,218,0.45);
  background: rgba(38,198,218,0.08);
}

.infra-node-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.infra-node-dot.out { background: var(--teal-400); }

.infra-conn-svg { flex-shrink: 0; overflow: visible; }

.infra-hub-wrap {
  position: relative;
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.infra-hub-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(27,54,104,0.30);
  animation: infra-ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.infra-hub-ring.r1 { width: 192px; height: 192px; }
.infra-hub-ring.r2 { width: 240px; height: 240px; animation-delay: 1.5s; border-color: rgba(27,54,104,0.15); }

@keyframes infra-ring-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.infra-hub {
  width: 148px; height: 148px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(27,54,104,0.35);
  box-shadow: 0 0 50px rgba(27,54,104,0.25), inset 0 0 24px rgba(27,54,104,0.04);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  position: relative; z-index: 2;
}

.infra-feat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.infra-feat-card:hover {
  border-color: rgba(38,198,218,0.38);
  background: rgba(38,198,218,0.07);
  transform: translateY(-4px);
}
.infra-feat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,131,143,0.55), rgba(0,172,193,0.35));
  border: 1px solid rgba(38,198,218,0.22);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.infra-feat-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.70);
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .infra-diagram { flex-direction: column; gap: 28px; }
  .infra-conn-svg { display: none; }
  .infra-nodes-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .infra-nodes-col:first-child,
  .infra-nodes-col:last-child { align-items: center; }
}

/* --- Live Network section --- */
.live-net-section { position: relative; overflow: hidden; }

.ar-map-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(38,198,218,0.14);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.ar-map-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 55%, rgba(0,172,193,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.ar-state-path {
  fill: rgba(38,198,218,0.07);
  stroke: rgba(38,198,218,0.38);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.county-dot { cursor: pointer; }
.county-dot.active   { fill: #26c6da; filter: drop-shadow(0 0 5px rgba(38,198,218,0.9)); }
.county-dot.expanding { fill: #e8c040; filter: drop-shadow(0 0 4px rgba(232,192,64,0.8)); }
.county-dot.pilot    { fill: #80deea; filter: drop-shadow(0 0 3px rgba(128,222,234,0.7)); }
.county-dot.coverage { fill: rgba(38,198,218,0.30); }

.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring-anim 2.5s ease-in-out infinite;
}
@keyframes pulse-ring-anim {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.70; }
}

.county-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.county-item:hover {
  border-color: rgba(38,198,218,0.28);
  background: rgba(38,198,218,0.05);
}
.county-item-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.county-item-sub  { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }

.county-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; white-space: nowrap;
}
.county-badge.active    { background: rgba(22,101,52,0.3);  color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.county-badge.expanding { background: rgba(146,64,14,0.3);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.county-badge.pilot     { background: rgba(30,64,175,0.3);  color: #93c5fd; border: 1px solid rgba(147,197,253,0.3); }

.net-metric-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.net-metric-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(38,198,218,0.70), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.net-metric-card:hover {
  border-color: rgba(38,198,218,0.32);
  box-shadow: 0 8px 32px rgba(0,172,193,0.14);
  transform: translateY(-4px);
}
.net-metric-card:hover::before { transform: scaleX(1); }

.net-metric-num {
  font-size: 2.2rem; font-weight: 900;
  background: linear-gradient(135deg, #80deea, #26c6da);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 8px;
}
.net-metric-label {
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

/* ============================================================
   GRANT SECTIONS: Workflow, Rollout, Outcomes, Partners, Why AR
   ============================================================ */

/* --- Workflow timeline --- */
.workflow-timeline {
  display: flex;
  gap: 4px;
  position: relative;
  align-items: flex-start;
}
.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 10%; right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(38,198,218,0.45) 15%, rgba(38,198,218,0.20) 85%, transparent);
  z-index: 0;
}
.workflow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 6px;
}
.workflow-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: white;
  font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(0,172,193,0.38);
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.workflow-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  width: 100%;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.workflow-card:hover {
  border-color: rgba(38,198,218,0.35);
  background: rgba(38,198,218,0.07);
  transform: translateY(-3px);
}
.workflow-card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0,131,143,0.50), rgba(0,172,193,0.30));
  border: 1px solid rgba(38,198,218,0.22);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.workflow-card-title {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.90);
  margin-bottom: 8px; line-height: 1.4;
}
.workflow-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .workflow-timeline { flex-direction: column; gap: 10px; }
  .workflow-timeline::before { display: none; }
  .workflow-step { flex-direction: row; align-items: flex-start; padding: 0; gap: 14px; }
  .workflow-num { flex-shrink: 0; }
  .workflow-card { text-align: left; }
  .workflow-card-icon { margin: 0 0 10px 0; }
}

/* --- Phase cards --- */
.phase-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  border-radius: 16px 16px 0 0;
}
.phase-card.phase-teal::before { background: linear-gradient(90deg, var(--teal-700), var(--teal-400)); }
.phase-card.phase-gold::before { background: linear-gradient(90deg, var(--gold-700), var(--gold-400)); }
.phase-card.phase-blue::before { background: linear-gradient(90deg, #4f46e5, #a5b4fc); }
.phase-card.phase-teal:hover { border-color: rgba(38,198,218,0.30); transform: translateY(-5px); }
.phase-card.phase-gold:hover  { border-color: rgba(232,192,64,0.30); transform: translateY(-5px); }
.phase-card.phase-blue:hover  { border-color: rgba(165,180,252,0.30); transform: translateY(-5px); }

.phase-tag-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; border: 1px solid;
  width: fit-content;
}
.phase-tag-pill.teal { color: var(--teal-400); background: rgba(38,198,218,0.12); border-color: rgba(38,198,218,0.28); }
.phase-tag-pill.gold { color: var(--gold-400); background: rgba(232,192,64,0.12); border-color: rgba(232,192,64,0.28); }
.phase-tag-pill.blue { color: #a5b4fc; background: rgba(165,180,252,0.12); border-color: rgba(165,180,252,0.28); }

.phase-focus-block {
  border-radius: 10px; padding: 14px 16px;
  border: 1px solid; margin-top: auto;
}
.phase-focus-block.teal { background: rgba(38,198,218,0.06); border-color: rgba(38,198,218,0.14); }
.phase-focus-block.gold { background: rgba(232,192,64,0.06);  border-color: rgba(232,192,64,0.14); }
.phase-focus-block.blue { background: rgba(165,180,252,0.06); border-color: rgba(165,180,252,0.14); }

.phase-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.phase-list li {
  font-size: 12px; color: rgba(255,255,255,0.58);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.phase-list li::before {
  content: '›'; position: absolute; left: 0;
  color: rgba(38,198,218,0.70); font-size: 14px; line-height: 1.3;
}

/* --- Outcome cards --- */
.outcome-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.outcome-card:hover {
  border-color: rgba(38,198,218,0.32);
  background: rgba(38,198,218,0.06);
  transform: translateY(-3px);
}
.outcome-check {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,131,143,0.55), rgba(0,172,193,0.35));
  border: 1px solid rgba(38,198,218,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.outcome-card-title {
  font-size: 13.5px; font-weight: 700;
  color: rgba(255,255,255,0.88); margin-bottom: 4px; line-height: 1.4;
}
.outcome-card-desc {
  font-size: 12.5px; color: rgba(255,255,255,0.50); line-height: 1.6;
}

/* --- Dark stakeholder chips --- */
.dark-stakeholder-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.78);
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
  white-space: nowrap;
}
.dark-stakeholder-chip:hover {
  border-color: rgba(38,198,218,0.40);
  background: rgba(38,198,218,0.08);
  box-shadow: 0 4px 18px rgba(0,172,193,0.12);
}
.dark-stakeholder-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  flex-shrink: 0;
}

/* --- Narrative cards (Why Arkansas) --- */
.narrative-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.25s, background 0.25s;
}
.narrative-card:hover {
  border-color: rgba(38,198,218,0.24);
  background: rgba(38,198,218,0.04);
}
.narrative-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,131,143,0.50), rgba(0,172,193,0.30));
  border: 1px solid rgba(38,198,218,0.22);
  color: var(--teal-400);
  font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.narrative-title {
  font-size: 15px; font-weight: 800;
  color: white; margin-bottom: 10px; line-height: 1.3;
}
.narrative-desc {
  font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.7;
}

/* --- Closing callout --- */
.arrn-callout {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,131,143,0.22), rgba(0,172,193,0.12));
  border: 1px solid rgba(38,198,218,0.32);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.arrn-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(38,198,218,0.85), transparent);
}
.arrn-callout-text {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700; color: white;
  line-height: 1.55; max-width: 820px; margin: 0 auto;
}
.arrn-callout-sub {
  font-size: 13px; color: rgba(38,198,218,0.72);
  margin-top: 12px; font-weight: 500;
}
