/* ==============================================
   WARM AUTHORITY DESIGN SYSTEM
   Leadership Pipeline - Currey Creek Church
   ============================================== */

/* ------------------------------------------
   DESIGN TOKENS
   ------------------------------------------ */
:root {
  /* Primary Palette */
  --wa-forest: #1a2e1f;
  --wa-forest-light: #243828;
  --wa-forest-dark: #121f15;

  /* Secondary Palette */
  --wa-cream: #f8f5f0;
  --wa-cream-dark: #ede8e0;

  /* Accent */
  --wa-gold: #b8860b;
  --wa-gold-light: #d4a432;
  --wa-gold-glow: rgba(184, 134, 11, 0.35);

  /* Neutrals */
  --wa-charcoal: #2d2d2d;
  --wa-gray: #6b6b6b;
  --wa-gray-light: #9a9a9a;
  --wa-white: #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 46, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 46, 31, 0.08);
  --shadow-lg: 0 15px 40px rgba(26, 46, 31, 0.1);
  --shadow-gold: 0 0 30px var(--wa-gold-glow);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.3s ease;
}

/* ------------------------------------------
   GOOGLE FONTS
   Include this in templates that use the design system
   ------------------------------------------ */
/*
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap" rel="stylesheet">
*/

/* ------------------------------------------
   BASE STYLES
   ------------------------------------------ */
.wa-page {
  background: var(--wa-cream);
  color: var(--wa-charcoal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------
   TYPOGRAPHY
   ------------------------------------------ */
.wa-heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.wa-heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wa-heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.wa-heading-sm {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.wa-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wa-charcoal);
}

.wa-body-sm {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.wa-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wa-gold);
}

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

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

.wa-text-forest {
  color: var(--wa-forest);
}

.wa-text-cream {
  color: var(--wa-cream);
}

/* ------------------------------------------
   SECTIONS
   ------------------------------------------ */

/* Dark section (forest green) */
.wa-section-dark {
  background: var(--wa-forest);
  color: var(--wa-cream);
  position: relative;
  overflow: hidden;
}

/* Add grain texture to dark sections */
.wa-section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.wa-section-dark .wa-body,
.wa-section-dark .wa-body-sm {
  color: rgba(248, 245, 240, 0.8);
}

.wa-section-dark .wa-text-muted {
  color: rgba(248, 245, 240, 0.6);
}

/* Light section (cream) */
.wa-section-light {
  background: var(--wa-cream);
  color: var(--wa-charcoal);
}

/* White section */
.wa-section-white {
  background: var(--wa-white);
  color: var(--wa-charcoal);
}

/* Section with gold glow (for CTAs) */
.wa-section-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--wa-gold-glow) 0%, transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

/* Standard section padding */
.wa-section-padding {
  padding: var(--space-4xl) 0;
}

.wa-section-padding-sm {
  padding: var(--space-3xl) 0;
}

/* ------------------------------------------
   BUTTONS
   ------------------------------------------ */

/* Primary button (gold) */
.wa-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.wa-btn-gold {
  background: var(--wa-gold);
  color: var(--wa-forest-dark);
}

.wa-btn-gold:hover {
  background: var(--wa-gold-light);
  color: var(--wa-forest-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.wa-btn-gold svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.wa-btn-gold:hover svg {
  transform: translateX(3px);
}

/* Ghost button (outline) */
.wa-btn-ghost {
  background: transparent;
  border: 2px solid rgba(248, 245, 240, 0.25);
  color: var(--wa-cream);
}

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

/* Ghost button for light backgrounds */
.wa-btn-ghost-dark {
  background: transparent;
  border: 2px solid var(--wa-forest);
  color: var(--wa-forest);
}

.wa-btn-ghost-dark:hover {
  border-color: var(--wa-gold);
  color: var(--wa-gold);
}

/* Large button */
.wa-btn-lg {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ------------------------------------------
   CARDS
   ------------------------------------------ */
.wa-card {
  background: var(--wa-white);
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-slow);
}

.wa-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Card with gold accent on hover */
.wa-card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: all var(--transition-slow);
}

.wa-card-accent {
  position: relative;
}

.wa-card-accent:hover::after {
  background: var(--wa-gold);
  box-shadow: 0 0 15px var(--wa-gold-glow);
}

/* ------------------------------------------
   ICONS
   ------------------------------------------ */
.wa-icon-box {
  width: 48px;
  height: 48px;
  background: var(--wa-forest);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-gold-light);
  transition: all var(--transition-slow);
}

.wa-icon-box svg {
  width: 24px;
  height: 24px;
}

.wa-card:hover .wa-icon-box,
.wa-icon-box:hover {
  background: var(--wa-gold);
  color: var(--wa-forest-dark);
  box-shadow: 0 0 20px var(--wa-gold-glow);
}

/* Light icon box for dark sections */
.wa-icon-box-light {
  background: var(--wa-white);
  border: 1px solid var(--wa-cream-dark);
  color: var(--wa-forest);
}

.wa-icon-box-light:hover {
  background: var(--wa-forest);
  color: var(--wa-gold-light);
  border-color: var(--wa-forest);
}

/* ------------------------------------------
   LINKS
   ------------------------------------------ */
.wa-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wa-forest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.wa-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wa-gold);
  transition: width var(--transition-slow);
}

.wa-link:hover {
  color: var(--wa-gold);
}

.wa-link:hover::after {
  width: calc(100% - 24px);
}

.wa-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-slow);
}

.wa-link:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------
   BADGES / TAGS
   ------------------------------------------ */
.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wa-gold-light);
}

.wa-badge::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--wa-gold);
  border-radius: 1px;
}

.wa-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--wa-forest);
  background: var(--wa-cream);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------
   NAVBAR (Dark)
   ------------------------------------------ */
.wa-navbar {
  background: var(--wa-forest) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}

.wa-navbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wa-cream) !important;
}

.wa-navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(248, 245, 240, 0.7) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
}

.wa-navbar .nav-link:hover {
  color: var(--wa-gold-light) !important;
}

.wa-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

.wa-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.wa-navbar .nav-cta {
  background: var(--wa-gold) !important;
  color: var(--wa-forest-dark) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.5rem;
  transition: all var(--transition-base);
}

.wa-navbar .nav-cta:hover {
  background: var(--wa-gold-light) !important;
  color: var(--wa-forest-dark) !important;
  box-shadow: 0 0 20px var(--wa-gold-glow);
}

/* ------------------------------------------
   FORMS
   ------------------------------------------ */
.wa-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-md);
  background: var(--wa-white);
  color: var(--wa-charcoal);
  transition: all var(--transition-fast);
  width: 100%;
}

.wa-input:focus {
  outline: none;
  border-color: var(--wa-forest);
  box-shadow: 0 0 0 3px rgba(26, 46, 31, 0.1);
}

.wa-input::placeholder {
  color: var(--wa-gray-light);
}

.wa-label-form {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wa-forest);
  margin-bottom: 0.5rem;
  display: block;
}

/* ------------------------------------------
   ANIMATIONS
   ------------------------------------------ */
@keyframes wa-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-animate-in {
  animation: wa-fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.wa-delay-1 { animation-delay: 0.1s; }
.wa-delay-2 { animation-delay: 0.2s; }
.wa-delay-3 { animation-delay: 0.35s; }
.wa-delay-4 { animation-delay: 0.5s; }
.wa-delay-5 { animation-delay: 0.65s; }

/* ------------------------------------------
   UTILITIES
   ------------------------------------------ */
.wa-z-1 { position: relative; z-index: 1; }
.wa-text-center { text-align: center; }
.wa-max-w-sm { max-width: 480px; }
.wa-max-w-md { max-width: 640px; }
.wa-max-w-lg { max-width: 800px; }

/* ------------------------------------------
   OFFLINE INDICATOR
   ------------------------------------------ */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--wa-charcoal);
  color: var(--wa-cream);
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: wa-slideDown 0.3s ease;
}

.offline-banner[hidden] {
  display: none;
}

@keyframes wa-slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Push navbar down when offline */
body.is-offline .wa-navbar {
  top: 44px;
}

/* Offline page styling */
.offline-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.offline-icon {
  width: 80px;
  height: 80px;
  background: var(--wa-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--wa-gold-light);
}

.offline-icon svg {
  width: 40px;
  height: 40px;
}

.offline-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--wa-forest);
  margin-bottom: var(--space-md);
}

.offline-message {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--wa-gray);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.offline-tips {
  background: var(--wa-cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.offline-tips h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wa-forest);
  margin-bottom: var(--space-sm);
}

.offline-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--wa-charcoal);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ------------------------------------------
   HERO SECTION (consolidated from templates)
   ------------------------------------------ */
.wa-hero {
  padding: 2.5rem 0 3rem;
  background: var(--wa-forest);
  position: relative;
  overflow: hidden;
}

.wa-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.wa-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--wa-gold-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.wa-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--wa-cream);
  margin-bottom: 0.5rem;
}

.wa-hero-subtitle {
  font-family: var(--font-body);
  color: rgba(248, 245, 240, 0.7);
  font-size: 1rem;
}

/* ------------------------------------------
   BREADCRUMB (consolidated from templates)
   ------------------------------------------ */
.wa-breadcrumb {
  margin-bottom: 1rem;
}

.wa-breadcrumb a {
  color: rgba(248, 245, 240, 0.6);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.wa-breadcrumb a:hover {
  color: var(--wa-gold-light);
}

.wa-breadcrumb span.separator {
  color: rgba(248, 245, 240, 0.4);
  margin: 0 0.5rem;
}

.wa-breadcrumb .current {
  color: rgba(248, 245, 240, 0.8);
  font-size: 0.875rem;
}

/* ------------------------------------------
   CONTENT CARD (consolidated from templates)
   ------------------------------------------ */
.wa-content-card {
  background: white;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  margin-bottom: 1.5rem;
}

.wa-content-card-header {
  background: var(--wa-forest);
  padding: 1rem 1.5rem;
}

.wa-content-card-header h3 {
  font-family: var(--font-display);
  color: var(--wa-cream);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.wa-content-card-body {
  padding: 1.5rem;
}

/* ------------------------------------------
   SIDEBAR CARD (consolidated from templates)
   ------------------------------------------ */
.wa-sidebar-card {
  background: white;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: 20px;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.wa-sidebar-card-header {
  background: var(--wa-forest);
  padding: 1rem 1.5rem;
}

.wa-sidebar-card-header h3 {
  font-family: var(--font-display);
  color: var(--wa-cream);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.wa-sidebar-card-body {
  padding: 1.25rem;
}

/* ------------------------------------------
   STATUS BADGES (consolidated from templates)
   ------------------------------------------ */
.wa-status-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.wa-status-draft { background: rgba(248, 245, 240, 0.2); color: var(--wa-cream); }
.wa-status-submitted { background: #0ea5e9; color: white; }
.wa-status-under_review { background: var(--wa-gold); color: var(--wa-forest-dark); }
.wa-status-approved { background: #16a34a; color: white; }
.wa-status-declined { background: #dc2626; color: white; }

/* ------------------------------------------
   ALERTS (consolidated from templates)
   ------------------------------------------ */
.wa-alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.wa-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.wa-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.wa-alert-success svg { color: #16a34a; }

.wa-alert-success h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #16a34a;
  margin: 0 0 0.25rem 0;
}

.wa-alert-success p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #166534;
  margin: 0;
}

.wa-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.wa-alert-danger svg { color: #dc2626; }

.wa-alert-danger h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 0.25rem 0;
}

.wa-alert-danger p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #991b1b;
  margin: 0;
}

.wa-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.wa-alert-warning svg { color: #d97706; }

.wa-alert-warning h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #d97706;
  margin: 0 0 0.25rem 0;
}

.wa-alert-warning p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #92400e;
  margin: 0;
}

.wa-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.wa-alert-info svg { color: #2563eb; }

.wa-alert-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #2563eb;
  margin: 0 0 0.25rem 0;
}

.wa-alert-info p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #1e40af;
  margin: 0;
}

/* ------------------------------------------
   TABLE (consolidated from admin_dashboard)
   ------------------------------------------ */
.wa-table {
  width: 100%;
  border-collapse: collapse;
}

.wa-table thead {
  background: var(--wa-cream);
}

.wa-table th {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wa-forest);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--wa-cream-dark);
}

.wa-table th.text-center {
  text-align: center;
}

.wa-table th.text-right {
  text-align: right;
}

.wa-table td {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--wa-charcoal);
  padding: 1rem;
  border-bottom: 1px solid var(--wa-cream-dark);
  vertical-align: middle;
}

.wa-table td.text-center {
  text-align: center;
}

.wa-table td.text-right {
  text-align: right;
}

.wa-table tbody tr:hover {
  background: rgba(184, 134, 11, 0.03);
}

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

.wa-table a {
  color: var(--wa-forest);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.wa-table a:hover {
  color: var(--wa-gold);
}

/* ------------------------------------------
   RATING / TIER BADGES (consolidated)
   ------------------------------------------ */
.wa-rating-badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.wa-rating-high { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.wa-rating-medium { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.wa-rating-low { background: rgba(184, 134, 11, 0.1); color: var(--wa-gold); }
.wa-rating-none { background: var(--wa-cream); color: var(--wa-gray); }

.wa-tier-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.wa-tier-foundation { background: var(--wa-gold); color: var(--wa-forest-dark); }
.wa-tier-leader { background: #16a34a; color: white; }
.wa-tier-advanced { background: #7c3aed; color: white; }

/* ------------------------------------------
   SIDEBAR ITEMS (consolidated)
   ------------------------------------------ */
.wa-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wa-cream-dark);
}

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

.wa-sidebar-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wa-forest);
}

.wa-sidebar-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--wa-charcoal);
}

/* ------------------------------------------
   PAGINATION (WA-styled)
   ------------------------------------------ */
.wa-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.wa-pagination a,
.wa-pagination button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-md);
  background: var(--wa-white);
  color: var(--wa-charcoal);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.wa-pagination a:hover,
.wa-pagination button:hover {
  border-color: var(--wa-forest);
  color: var(--wa-forest);
}

.wa-pagination .active {
  background: var(--wa-gold);
  border-color: var(--wa-gold);
  color: white;
}

/* ------------------------------------------
   SELECT / FORM CONTROLS (WA-styled)
   ------------------------------------------ */
.wa-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-md);
  background: var(--wa-white);
  color: var(--wa-charcoal);
  width: 100%;
  transition: all var(--transition-fast);
  appearance: auto;
}

.wa-select:focus {
  outline: none;
  border-color: var(--wa-forest);
  box-shadow: 0 0 0 3px rgba(26, 46, 31, 0.1);
}

.wa-textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wa-cream-dark);
  border-radius: var(--radius-md);
  background: var(--wa-white);
  color: var(--wa-charcoal);
  width: 100%;
  resize: vertical;
  transition: all var(--transition-fast);
}

.wa-textarea:focus {
  outline: none;
  border-color: var(--wa-forest);
  box-shadow: 0 0 0 3px rgba(26, 46, 31, 0.1);
}

/* ------------------------------------------
   BUTTON VARIANTS (additional)
   ------------------------------------------ */
.wa-btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.wa-btn-forest {
  background: var(--wa-forest);
  color: var(--wa-cream);
}

.wa-btn-forest:hover {
  background: var(--wa-gold);
  color: var(--wa-forest-dark);
}

.wa-btn-danger-outline {
  background: transparent;
  border: 2px solid #dc2626;
  color: #dc2626;
}

.wa-btn-danger-outline:hover {
  background: #dc2626;
  color: white;
}

/* ------------------------------------------
   PROGRESS BAR (consolidated from templates)
   ------------------------------------------ */
.wa-progress-bar {
    height: 8px;
    background: rgba(248, 245, 240, 0.15);
    border-radius: 9999px;
    overflow: hidden;
}
.wa-progress-bar--sm { height: 4px; }
.wa-progress-bar--lg { height: 12px; }
.wa-progress-bar--light { background: var(--wa-cream-dark); }
.wa-progress-fill {
    height: 100%;
    background: var(--wa-gold);
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

/* ------------------------------------------
   MODULE CARD (consolidated from templates)
   ------------------------------------------ */
.wa-module-card {
    background: white;
    border: 1px solid var(--wa-cream-dark);
    border-radius: var(--radius-xl, 1rem);
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.wa-module-card:hover {
    border-color: var(--wa-gold);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
}

/* ------------------------------------------
   NARRATIVE LAYER (Onboarding Story)
   ------------------------------------------ */

/* Arc phase label — gold uppercase above step title */
.wa-narrative-arc-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wa-gold);
    margin-bottom: 0.5rem;
}

/* Narrative voice — italic pull-quote with gold left border */
.wa-narrative-voice {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--wa-charcoal);
    font-style: italic;
    border-left: 3px solid var(--wa-gold);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}
.wa-narrative-voice p {
    margin: 0;
}

/* Vignette — light callout card with gold accent */
.wa-narrative-vignette {
    background: var(--wa-cream);
    color: var(--wa-charcoal);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    border-left: 3px solid var(--wa-gold);
    position: relative;
}
.wa-narrative-vignette p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--wa-charcoal);
    margin: 0;
    position: relative;
}

/* Vignette collapse toggle */
.wa-narrative-vignette-toggle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--wa-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.25rem;
    transition: color 0.15s ease;
}
.wa-narrative-vignette-toggle:hover {
    color: var(--wa-charcoal);
}

/* Divider between narrative and configuration */
.wa-narrative-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
}
.wa-narrative-divider::before,
.wa-narrative-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wa-cream-dark);
}
.wa-narrative-divider span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wa-gray);
    white-space: nowrap;
}
