/* ========================================
   Sermon Analysis Project - Main Stylesheet
   ======================================== */

:root {
  /* Base colors */
  --bg: #0a0f1a;
  --bg-elevated: #0f172a;
  --surface: #1a2332;
  --surface-hover: #1e293b;
  --surface-alt: #141c2b;
  --border: #2a3548;
  --border-light: #334155;

  /* Text */
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent */
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.15);

  /* Severity */
  --severity-critical: #ef4444;
  --severity-critical-bg: rgba(239, 68, 68, 0.12);
  --severity-critical-border: rgba(239, 68, 68, 0.3);
  --severity-high: #f97316;
  --severity-high-bg: rgba(249, 115, 22, 0.12);
  --severity-high-border: rgba(249, 115, 22, 0.3);
  --severity-medium: #eab308;
  --severity-medium-bg: rgba(234, 179, 8, 0.12);
  --severity-medium-border: rgba(234, 179, 8, 0.3);
  --severity-low: #3b82f6;
  --severity-low-bg: rgba(59, 130, 246, 0.12);
  --severity-low-border: rgba(59, 130, 246, 0.3);

  /* YouTube */
  --yt-red: #ff0000;
  --yt-red-hover: #cc0000;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Evidence module compatibility */
  --text-primary: #f1f5f9;
  --card-bg: #1a2332;
  --bg-muted: #141c2b;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
}

/* ========== Reset & Base ========== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ========== Container ========== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ========== Header ========== */

.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
}

.site-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Navigation */

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-btn.active {
  color: var(--accent-hover);
  background: var(--accent-dim);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ========== Hero ========== */

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: normal;
  color: var(--severity-critical);
}

.hero-subline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== Stats Bar ========== */

.stats-bar {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
}

.stat-item {
  flex: 1;
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: background 0.2s;
}

.stat-item:hover {
  background: var(--surface-hover);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ========== Section Headers ========== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Category Cards Grid ========== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0.7;
  transition: opacity 0.25s;
}

.category-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.card-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.severity-bars {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.severity-bar-segment {
  height: 4px;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.severity-bar-segment:hover {
  opacity: 0.8;
}

.severity-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.severity-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.severity-dot--critical { background: var(--severity-critical); }
.severity-dot--high { background: var(--severity-high); }
.severity-dot--medium { background: var(--severity-medium); }
.severity-dot--low { background: var(--severity-low); }

/* ========== Featured Findings ========== */

.featured-findings {
  margin-bottom: 3rem;
}

/* ========== Finding Card ========== */

.finding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.finding-card:hover {
  border-color: var(--border-light);
}

.finding-card--critical { border-left: 3px solid var(--severity-critical); }
.finding-card--high { border-left: 3px solid var(--severity-high); }
.finding-card--medium { border-left: 3px solid var(--severity-medium); }
.finding-card--low { border-left: 3px solid var(--severity-low); }

.finding-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}

.finding-header:hover {
  background: var(--surface-hover);
}

.finding-main {
  flex: 1;
  min-width: 0;
}

.finding-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.severity-badge--critical {
  background: var(--severity-critical-bg);
  color: var(--severity-critical);
  border: 1px solid var(--severity-critical-border);
}
.severity-badge--high {
  background: var(--severity-high-bg);
  color: var(--severity-high);
  border: 1px solid var(--severity-high-border);
}
.severity-badge--medium {
  background: var(--severity-medium-bg);
  color: var(--severity-medium);
  border: 1px solid var(--severity-medium-border);
}
.severity-badge--low {
  background: var(--severity-low-bg);
  color: var(--severity-low);
  border: 1px solid var(--severity-low-border);
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.finding-speaker {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.finding-speaker strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.finding-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--border-light);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.finding-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 0.25rem;
  line-height: 1;
}

.expand-btn.expanded {
  transform: rotate(180deg);
}

/* Finding expanded detail */

.finding-detail {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.finding-detail.visible {
  display: block;
}

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

.context-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.context-text {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.finding-detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.detail-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.detail-value a {
  color: var(--accent-hover);
}

/* YouTube button */

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--yt-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.yt-btn:hover {
  background: var(--yt-red-hover);
  color: #fff;
  transform: scale(1.02);
}

.yt-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========== Filter Bar ========== */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.filter-input,
.filter-select {
  padding: 0.45rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  transition: border-color 0.2s;
  min-width: 140px;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-search {
  flex: 1;
  min-width: 200px;
}

.filter-search .filter-input {
  width: 100%;
}

.filter-clear {
  padding: 0.45rem 0.85rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}

.filter-clear:hover {
  color: var(--text);
  border-color: var(--border-light);
}

/* ========== Pagination ========== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.page-btn {
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* ========== Speaker View ========== */

.speaker-header {
  padding: 2rem 0 1.5rem;
}

.speaker-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.speaker-stats {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.speaker-breakdown {
  margin: 1.5rem 0 2rem;
}

.bar-chart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 220px;
  flex-shrink: 0;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  min-width: fit-content;
}

.bar-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ========== Category Page ========== */

.category-header {
  padding: 2rem 0 1rem;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.category-editorial {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.category-stats-inline {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.category-stats-inline strong {
  color: var(--text-secondary);
}

/* ========== Methodology & About ========== */

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.prose p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.prose code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  font-family: var(--font-mono);
  color: var(--accent-hover);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.callout p {
  margin-bottom: 0.5rem;
}

.callout--warning {
  border-color: var(--severity-medium-border);
  background: var(--severity-medium-bg);
}

/* ========== Footer ========== */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ========== Loading / Empty ========== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.95rem;
}

/* ========== Results count ========== */

.results-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.results-info strong {
  color: var(--text-secondary);
}

/* ========== Confidence indicator ========== */

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.confidence-bar {
  width: 40px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ========== View Transitions ========== */

.view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.view.active {
  display: block;
}

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

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-btn {
    padding: 0.75rem;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .stats-bar {
    flex-direction: column;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-search {
    min-width: unset;
  }

  .bar-label {
    width: 120px;
    font-size: 0.7rem;
  }

  .finding-header {
    padding: 1rem;
    flex-direction: column;
  }

  .finding-actions {
    flex-direction: row;
    align-self: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .finding-detail-meta {
    gap: 1rem;
  }

  .category-stats-inline {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.25rem;
  }

  .finding-quote {
    font-size: 0.875rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ========================================
   START HERE MODULE (sh- prefix)
   ======================================== */

/* Page container — centered with max-width */
.sh-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.sh-intro {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.sh-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 1rem;
  color: var(--text);
}

/* Progress indicator bar */
.sh-progress {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  background: var(--bg);
}

.sh-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

.sh-progress-dot:hover {
  background: var(--accent);
  transform: scaleY(2);
}

.sh-progress-dot.active {
  background: var(--accent-hover);
}

/* Expand / Collapse controls */
.sh-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sh-controls button {
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sh-controls button:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: var(--text);
}

/* Step accordion cards */
.sh-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sh-step:hover {
  border-color: var(--border-light);
}

.sh-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sh-step-header:hover {
  background: var(--surface-hover);
}

.sh-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.sh-step-title-block {
  flex: 1;
  min-width: 0;
}

.sh-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.sh-step-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.sh-step-toggle {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-top: 2px;
}

.sh-step-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Comparison — stacked layout with visual labels */
.sh-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.sh-told {
  padding: 1.25rem;
  background: var(--severity-high-bg);
  border: 1px solid var(--severity-high-border);
  border-radius: var(--radius);
}

.sh-told h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--severity-high);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sh-told h4::before {
  content: "\2717";
  font-size: 0.85rem;
}

.sh-told p, .sh-told li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.sh-records {
  padding: 1.25rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
}

.sh-records h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sh-records h4::before {
  content: "\2713";
  font-size: 0.85rem;
}

.sh-records p, .sh-records li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.sh-records ul, .sh-told ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.sh-records li, .sh-told li {
  margin-bottom: 0.35rem;
}

/* "Why this matters" block — distinct from comparison */
.sh-why {
  padding: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
}

.sh-why h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
}

.sh-why p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Sources accordion */
.sh-sources {
  margin-top: 1rem;
}

.sh-sources summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0;
}

.sh-sources summary:hover {
  color: var(--text-secondary);
}

.sh-sources ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.sh-sources li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* Legacy expand controls class */
.sh-expand-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sh-expand-btn {
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sh-expand-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: var(--text);
}

/* Quotes */
.sh-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  border-left: 3px solid var(--severity-critical);
  padding: 1rem 1.25rem;
  background: var(--severity-critical-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.sh-quote-source {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: normal;
  font-family: var(--font-sans);
  margin-top: 0.5rem;
}

/* Failed prophecy items */
.sh-fail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--severity-critical);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.sh-fail-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.sh-fail-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Question cards with numbered circles */
.sh-question-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.sh-question-card:hover {
  border-color: var(--border-light);
}

.sh-question-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sh-question-content {
  flex: 1;
  min-width: 0;
}

.sh-question-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.sh-question-why {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* CTA / "Where to Go From Here" section */
.sh-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
}

.sh-cta .sh-section-title {
  text-align: center;
  margin-top: 0;
}

.sh-cta p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.sh-cta-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.sh-cta-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.sh-cta-link:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.sh-cta-link strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.sh-cta-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sh-closing {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid #22c55e;
  text-align: center;
}

/* ---- Responsive: tablet ---- */
@media (max-width: 768px) {
  .sh-page {
    padding: 0 1rem 2rem;
  }
  .sh-intro {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
  .sh-section-title {
    font-size: 1.35rem;
  }
  .sh-step-header {
    padding: 1rem;
    gap: 0.75rem;
  }
  .sh-step-body {
    padding: 0 1rem 1rem;
  }
  .sh-step-number {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .sh-step-title {
    font-size: 1rem;
  }
  .sh-step-subtitle {
    font-size: 0.75rem;
  }
  .sh-told, .sh-records, .sh-why {
    padding: 1rem;
  }
  .sh-quote {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
  .sh-fail-item {
    padding: 0.85rem 1rem;
  }
  .sh-question-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  .sh-question-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .sh-cta {
    padding: 1.5rem 1rem;
  }
  .sh-cta-links {
    grid-template-columns: 1fr;
  }
  .sh-progress {
    padding: 0.5rem 0;
  }
}

/* ========================================
   EVIDENCE MODULE (ev- prefix)
   ======================================== */

.ev-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ev-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ev-topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
}

.ev-topic-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ev-topic-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ev-topic-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.ev-topic-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ev-severity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ev-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.ev-back-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.ev-section {
  margin-bottom: 2rem;
}

.ev-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ev-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.ev-section ul, .ev-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ev-section li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.ev-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  border-left: 3px solid var(--severity-critical);
  padding: 1rem 1.25rem;
  background: var(--severity-critical-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.ev-quote-source {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: normal;
  font-family: var(--font-sans);
  margin-top: 0.5rem;
}

.ev-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ev-comparison-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.ev-comparison-table th:first-child {
  background: var(--severity-high-bg);
  color: var(--severity-high);
  width: 45%;
}

.ev-comparison-table th:last-child {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  width: 55%;
}

.ev-comparison-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.ev-comparison-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

.ev-plagiarism-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.ev-plagiarism-header {
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}

.ev-plagiarism-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}

.ev-plagiarism-source, .ev-plagiarism-branham {
  padding: 1rem 1.25rem;
}

.ev-plagiarism-source {
  background: rgba(34, 197, 94, 0.05);
}

.ev-plagiarism-source h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.ev-plagiarism-branham {
  background: var(--severity-high-bg);
}

.ev-plagiarism-branham h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--severity-high);
  margin-bottom: 0.5rem;
}

.ev-plagiarism-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.ev-plagiarism-source p, .ev-plagiarism-branham p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ev-bite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ev-bite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.ev-bite-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ev-bite-card ul {
  padding-left: 1.25rem;
}

.ev-bite-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.ev-scripture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.ev-scripture-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ev-scripture-branham {
  border-left: 3px solid var(--severity-critical);
  padding: 0.75rem 1rem;
  background: var(--severity-critical-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.75rem;
}

.ev-scripture-bible {
  border-left: 3px solid #22c55e;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.75rem;
}

.ev-scripture-branham p, .ev-scripture-bible p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ev-scripture-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.ev-scripture-branham .ev-scripture-label {
  color: var(--severity-critical);
}

.ev-scripture-bible .ev-scripture-label {
  color: #22c55e;
}

.ev-scripture-analysis {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .ev-overview-grid {
    grid-template-columns: 1fr;
  }
  .ev-bite-grid {
    grid-template-columns: 1fr;
  }
  .ev-plagiarism-body {
    grid-template-columns: 1fr;
  }
  .ev-plagiarism-arrow {
    padding: 0.5rem;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .ev-comparison-table {
    font-size: 0.8rem;
  }
}

/* ========================================
   ESCALATION MODULE (esc- prefix)
   ======================================== */

.esc-story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.esc-story-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.esc-story-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.esc-timeline {
  position: relative;
  padding-left: 2rem;
}

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

.esc-entry {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.esc-entry::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.esc-entry-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.esc-entry-sermon {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.esc-entry-quote {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
}

.esc-new-detail {
  background: var(--severity-high-bg);
  color: var(--severity-high);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85em;
}

.esc-entry.esc-has-new .esc-entry-quote {
  border-left-color: var(--severity-high);
}

.esc-entry.esc-has-new::before {
  background: var(--severity-high);
}

.esc-summary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================
   RESOURCES MODULE (res- prefix)
   ======================================== */

.res-hero {
  text-align: center;
  padding: 2rem 0;
  max-width: 640px;
  margin: 0 auto;
}

.res-hero h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.res-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.res-section {
  margin-bottom: 2.5rem;
}

.res-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.res-barrier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.res-barrier-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.res-barrier-header:hover {
  background: var(--surface-hover);
}

.res-barrier-question {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.res-barrier-toggle {
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.res-barrier-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.res-barrier-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.res-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.res-resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.res-resource-card:hover {
  border-color: var(--border-light);
}

.res-resource-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.res-resource-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.res-resource-card a {
  font-size: 0.8rem;
}

.res-feelings-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.res-feeling {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.res-normalize {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid #22c55e;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .res-resource-grid {
    grid-template-columns: 1fr;
  }
  .res-feelings-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DEBUNKING ENHANCEMENTS
   ======================================== */

.db-fallacy-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-left: 0.5rem;
  cursor: help;
}

.db-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-hover);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.db-source-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.db-source-link-icon {
  font-size: 0.7em;
}
