@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Typography & Color Tokens */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #090d16;
  --accent: #dc2626;
  --accent-2: #b91c1c;
  --amber: #f59e0b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--surface);
  color: #0f172a;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* Keyframe Pulse for Emergency CTAs */
@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.btn-pulse {
  animation: btnPulse 2s infinite;
}

/* Glassmorphism Card Overlay */
.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* High Contrast Table Styling */
.era-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.era-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.era-table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: #475569;
  vertical-align: top;
}

.era-table td:first-child {
  font-weight: 700;
  color: var(--navy);
}

.era-table tr:hover td {
  background: var(--surface-2);
}

/* High Specificity Prose Overrides */
.prose {
  max-width: none;
  color: #334155;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.prose p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.prose strong {
  color: #0f172a;
  font-weight: 700;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 600;
}

.prose a:hover {
  color: #dc2626;
}

/* High Specificity Overrides for Content Blocks & Prose */

/* 1. Headings, Text & Strong Tags inside Dark Containers in .prose */
.prose .bg-slate-900 h1,
.prose .bg-slate-900 h2,
.prose .bg-slate-900 h3,
.prose .bg-slate-900 h4,
.prose .bg-slate-950 h1,
.prose .bg-slate-950 h2,
.prose .bg-slate-950 h3,
.prose .bg-slate-950 h4,
.prose .bg-slate-800 h1,
.prose .bg-slate-800 h2,
.prose .bg-slate-800 h3,
.prose .bg-slate-800 h4,
.prose [class*="bg-slate-9"] h1,
.prose [class*="bg-slate-9"] h2,
.prose [class*="bg-slate-9"] h3,
.prose [class*="bg-slate-9"] h4,
.prose [class*="bg-slate-8"] h1,
.prose [class*="bg-slate-8"] h2,
.prose [class*="bg-slate-8"] h3,
.prose [class*="bg-slate-8"] h4,
.prose .glass-panel h1,
.prose .glass-panel h2,
.prose .glass-panel h3,
.prose .glass-panel h4,
.prose h1.text-white,
.prose h2.text-white,
.prose h3.text-white,
.prose h4.text-white {
  color: #ffffff !important;
}

.prose .bg-slate-900 p,
.prose .bg-slate-950 p,
.prose .bg-slate-800 p,
.prose [class*="bg-slate-9"] p,
.prose [class*="bg-slate-8"] p,
.prose .glass-panel p,
.prose p.text-slate-300 {
  color: #cbd5e1 !important;
}

.prose .bg-slate-900 strong,
.prose .bg-slate-950 strong,
.prose .bg-slate-800 strong,
.prose [class*="bg-slate-9"] strong,
.prose [class*="bg-slate-8"] strong,
.prose .glass-panel strong,
.prose strong.text-white {
  color: #ffffff !important;
}

/* 2. Red & Dark Solid CTA Buttons inside .prose (White text) */
.prose a.bg-red-600,
.prose a.bg-red-700,
.prose a.bg-red-800,
.prose a.bg-slate-900,
.prose a.bg-slate-950,
.prose a.btn-pulse,
.prose .btn-pulse a,
a.bg-red-600,
a.bg-red-700,
a.btn-pulse {
  color: #ffffff !important;
  text-decoration: none !important;
}

.prose a.bg-red-600 *,
.prose a.bg-red-700 *,
.prose a.bg-slate-900 *,
.prose a.bg-slate-950 *,
.prose a.btn-pulse *,
a.bg-red-600 *,
a.bg-red-700 *,
a.btn-pulse * {
  color: #ffffff !important;
  text-decoration: none !important;
}

.prose a.bg-red-600:hover,
.prose a.bg-red-700:hover,
.prose a.bg-slate-900:hover,
.prose a.bg-slate-800:hover,
.prose a.btn-pulse:hover,
a.bg-red-600:hover,
a.bg-red-700:hover,
a.btn-pulse:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 3. Light Sibling Links & Pill Buttons inside .prose (Dark Slate text) */
.prose a.bg-slate-50,
.prose a.bg-slate-100,
.prose a.bg-white,
.prose a.bg-slate-50.border,
.prose a.bg-white.border,
a.bg-slate-50,
a.bg-white {
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.prose a.bg-slate-50:hover,
.prose a.bg-slate-100:hover,
.prose a.bg-white:hover,
.prose a.bg-slate-50.border:hover,
.prose a.bg-white.border:hover,
a.bg-slate-50:hover,
a.bg-white:hover {
  color: #dc2626 !important;
  border-color: #dc2626 !important;
  text-decoration: none !important;
}


