/* ============================================
   INDEPENDENT FED - Custom Design System
   A sophisticated financial aesthetic
   ============================================ */

/* Import distinctive fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Primary palette - Deep navy with gold accents */
  --color-bg-primary: #0a0f1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1a2332;
  --color-bg-card: #1e293b;
  --color-bg-card-hover: #263449;
  
  /* Accent colors */
  --color-accent-gold: #d4a853;
  --color-accent-gold-light: #f0d78c;
  --color-accent-green: #10b981;
  --color-accent-green-light: #34d399;
  --color-accent-red: #ef4444;
  --color-accent-red-light: #f87171;
  
  /* Text colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Borders */
  --color-border: #334155;
  --color-border-light: #475569;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #1a2332 50%, #0f172a 100%);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  --gradient-gold: linear-gradient(135deg, #d4a853 0%, #f0d78c 50%, #d4a853 100%);
  --gradient-section: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 168, 83, 0.15);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 140px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--color-accent-gold);
}

.text-muted {
  color: var(--color-text-secondary);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo-img {
  height: 120px;
  width: auto;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--color-accent-gold);
}

.nav-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-close {
  display: none;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c41e3a;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: #1e3a5f;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-primary);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.5rem;
  }
  
  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 0.5rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated background grid */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent-gold);
  padding: 0;
}

.btn-ghost:hover {
  color: var(--color-accent-gold-light);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent-gold);
  font-size: 1.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Timeline
   ============================================ */
.timeline-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-gold) var(--color-bg-tertiary);
}

.timeline-wrapper::-webkit-scrollbar {
  height: 6px;
}

.timeline-wrapper::-webkit-scrollbar-track {
  background: var(--color-bg-tertiary);
  border-radius: 3px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-accent-gold);
  border-radius: 3px;
}

.timeline-node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  min-width: 140px;
}

.timeline-node:hover {
  border-color: var(--color-accent-gold);
  background: var(--color-bg-card-hover);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-gold);
}

.timeline-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* ============================================
   FAQ / Accordion
   ============================================ */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-card);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion-trigger:hover {
  background: var(--color-bg-card-hover);
}

.accordion-trigger[aria-expanded="true"] {
  background: var(--color-bg-card-hover);
}

.accordion-icon {
  transition: transform var(--transition-fast);
  color: var(--color-accent-gold);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.accordion-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   Loading States
   ============================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 0%,
    var(--color-bg-card) 50%,
    var(--color-bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Charts
   ============================================ */
.chart-container {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-height: 300px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  position: sticky;
  top: 6rem;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.sidebar-link.active {
  background: rgba(212, 168, 83, 0.1);
  color: var(--color-accent-gold);
  border-left-color: var(--color-accent-gold);
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
}

.badge-low {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent-green);
}

.badge-moderate {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.badge-high {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-accent-red);
}

/* ============================================
   Tables
   ============================================ */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-bg-tertiary);
  font-weight: 600;
  color: var(--color-text-primary);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--color-bg-card);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a2332;
}

.footer-logo img {
  height: 120px;
  width: auto;
}

.footer-text {
  color: #64748b;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #c41e3a;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  margin-bottom: 1rem;
}

.page-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 700px;
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-column {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Filter Controls
   ============================================ */
.filter-group {
  margin-bottom: 2rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.filter-label:hover {
  color: var(--color-text-primary);
}

.filter-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent-gold);
}

/* ============================================
   Case Cards
   ============================================ */
.case-card {
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.case-card:hover {
  border-color: var(--color-accent-gold);
  background: var(--color-bg-card-hover);
}

.case-card.selected {
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-gold);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.case-card-country {
  font-weight: 600;
}

.case-card-tactics {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================
   Event Timeline
   ============================================ */
.events-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-border);
}

.event-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.375rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  transform: translateX(-3px);
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent-gold);
  margin-bottom: 0.25rem;
}

.event-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   Indicator Cards
   ============================================ */
.indicator-card {
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.indicator-card:hover {
  background: var(--color-bg-card-hover);
}

.indicator-card.selected {
  border-color: var(--color-accent-gold);
  background: rgba(212, 168, 83, 0.05);
}

.indicator-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.indicator-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   Transmission Channel Cards
   ============================================ */
.channel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.channel-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.channel-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-gold);
  color: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.channel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.channel-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   Legal Page Styles
   ============================================ */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.governance-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.governance-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.governance-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.governance-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.governance-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
}

/* ============================================
   Sources Page Styles
   ============================================ */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.source-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.source-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-accent-gold);
}

.source-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-card li {
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.source-card li:last-child {
  border-bottom: none;
}

/* ============================================
   Scroll Section Highlights
   ============================================ */
.scroll-section {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.scroll-section.active {
  background: rgba(212, 168, 83, 0.05);
  border-left-color: var(--color-accent-gold);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.5s ease forwards;
  opacity: 0;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   Utilities
   ============================================ */
.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;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Ko-fi Button */
.kofi-button:hover,
.kofi-button-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 94, 91, 0.3);
}

.kofi-button-nav {
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-kofi {
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-kofi {
    margin: 1rem 0 0 0;
  }
  .kofi-button-nav {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  .nav,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card,
  .chart-container {
    border: 1px solid #ccc;
    background: white;
  }
}
