/* ====================================================================
   SaltyTrack – "Ringside Terminal" Alternate Design
   Dark premium fighting analytics aesthetic with atmospheric depth
   ==================================================================== */

/* --- Design Tokens --- */
:root {
  --brand-coral: #d4635b;
  --brand-rose: #b86a8a;
  --brand-mauve: #9b6da6;
  --brand-purple: #7b77b8;
  --brand-blue: #6583cf;
  --gradient-brand: linear-gradient(90deg, #d4635b, #9b6da6, #6583cf);
  --gradient-brand-wide: linear-gradient(90deg, #d4635b, #b86a8a, #9b6da6, #7b77b8, #6583cf);

  --bg-base: #08080f;
  --bg-surface: rgba(255, 255, 255, 0.025);
  --bg-surface-hover: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text-primary: #e2e2ee;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --text-dim: #3a3a50;

  --color-red: #f07068;
  --color-blue: #6898e8;
  --color-green: #50d890;
  --color-yellow: #e8b830;

  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Shorthand aliases used by article styles */
  --accent: var(--brand-purple);
  --surface: var(--bg-surface);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --border: var(--border-subtle);
}

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

::selection {
  background: rgba(155, 109, 166, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(155, 109, 166, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(155, 109, 166, 0.4); }

/* --- Base --- */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(155, 109, 166, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(101, 131, 207, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 15% 70%, rgba(212, 99, 91, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: #88b0f0; }

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.030;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 24px;
  background: rgba(8, 8, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.3;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: 24px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ef4444, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-diamond { flex-shrink: 0; }

.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-brand:focus-visible { outline: 2px solid var(--brand-mauve); outline-offset: 2px; }

.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-body);
}

.nav-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--brand-mauve);
  background: rgba(155, 109, 166, 0.1);
}

.nav-link:focus-visible { outline: 2px solid var(--brand-mauve); outline-offset: 2px; }

.nav-spacer { flex: 1; }

.nav-cta {
  padding: 6px 18px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  background: var(--gradient-brand);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: all 0.2s;
  border: none;
}

.nav-cta:hover {
  opacity: 0.9;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(155, 109, 166, 0.3);
}

.nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 24px 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(155, 109, 166, 0.12) 0%, rgba(101, 131, 207, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brand-mauve);
  border: 1px solid rgba(155, 109, 166, 0.3);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #d4635b, #b86a8a, #9b6da6, #7b77b8, #6583cf, #7b77b8, #9b6da6, #b86a8a, #d4635b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out 0.2s both, gradientShift 8s linear 0.8s infinite;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  position: relative;
  z-index: 1;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  position: relative;
  z-index: 1;
}

/* --- Buttons --- */
button, .btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(155, 109, 166, 0.25);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-strong);
  text-decoration: none;
}

.hero .cta-row .btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: var(--r-md);
}

button:disabled, .btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: transparent;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: 2px;
}

/* --- Summary Cards --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 22px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.25s;
  animation: fadeInUp 0.4s ease-out both;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.5;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.card-value.small { font-size: 1rem; }

.card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.card-sub.tier-breakdown {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
}

/* --- How It Works --- */
.how-it-works {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 24px 36px;
}

.how-it-works-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 24px 0;
  font-weight: 500;
}

.how-steps {
  display: flex;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(155, 109, 166, 0.25);
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Trust Strip --- */
.trust-strip {
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 24px;
  margin-bottom: 40px;
}

.trust-strip-inner {
  display: flex;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.trust-card {
  flex: 1;
  max-width: 260px;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 18px 16px;
  text-align: center;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.4;
  transition: opacity 0.25s;
}

.trust-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.trust-card.trust-card-static { cursor: default; }
.trust-card.trust-card-static:hover {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
  transform: none;
}
.trust-card.trust-card-static:hover::before { opacity: 0.4; }

.trust-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(155, 109, 166, 0.3);
}

.trust-value-badge {
  font-size: 1.05rem;
  color: var(--color-green);
  text-shadow: 0 0 12px rgba(80, 216, 144, 0.3);
}

.trust-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

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

/* --- Sections --- */
.section { margin-bottom: 48px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-primary {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.section-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.3;
}

/* --- Controls & Forms --- */
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

select, input[type="text"], input[type="number"], input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: all 0.2s;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--brand-mauve);
  box-shadow: 0 0 0 3px rgba(155, 109, 166, 0.12), 0 0 20px rgba(155, 109, 166, 0.08);
}

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

/* --- Autocomplete --- */
.autocomplete-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.autocomplete-wrap .search-input {
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--bg-base);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.1s;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-active {
  background: var(--bg-surface-hover);
}

.autocomplete-item.autocomplete-empty {
  color: var(--text-muted);
  cursor: default;
  font-style: italic;
}

/* --- Tables --- */
.table-container {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.table-scroll { max-height: 600px; overflow-y: auto; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th:hover { color: var(--text-primary); }
.data-table th.active { color: var(--brand-mauve); }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.data-table .fighter-link { color: var(--color-blue); cursor: pointer; }
.data-table .fighter-link:hover { text-decoration: underline; }

/* --- Color Utilities --- */
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-blue { color: var(--color-blue); }
.text-yellow { color: #f0c040; }
.text-gold { color: #e8b830; }
a.text-red:hover { color: #f89890; }
a.text-blue:hover { color: #88b0f0; }
.text-muted { color: var(--text-secondary); }
.font-bold { font-weight: 600; }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-correct {
  background: rgba(80, 216, 144, 0.12);
  color: var(--color-green);
  border: 1px solid rgba(80, 216, 144, 0.2);
}

.badge-incorrect {
  background: rgba(240, 112, 104, 0.12);
  color: var(--color-red);
  border: 1px solid rgba(240, 112, 104, 0.2);
}

.badge-unknown {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.badge-lock {
  background: rgba(232, 184, 48, 0.12);
  color: var(--color-yellow);
  border: 1px solid rgba(232, 184, 48, 0.25);
}

.badge-high {
  background: rgba(80, 216, 144, 0.1);
  color: var(--color-green);
}

.badge-medium {
  background: rgba(104, 152, 232, 0.1);
  color: var(--color-blue);
}

.badge-low {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.badge-warning {
  background: rgba(232, 184, 48, 0.12);
  color: var(--color-yellow);
  border: 1px solid rgba(232, 184, 48, 0.25);
}

/* --- Match Rows --- */
.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.match-row:last-child { border-bottom: none; }
.match-row:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.match-row:hover { background: rgba(155, 109, 166, 0.04); }

.match-row-badge {
  flex-shrink: 0;
  width: 80px;
  padding-right: 16px;
  text-align: left;
}

.match-fighters {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.match-fighters .red { color: var(--color-red); font-weight: 600; }
.match-fighters .blue { color: var(--color-blue); font-weight: 600; }

.match-fighters .vs {
  color: var(--text-muted);
  margin: 0 8px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.match-meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fighter-link { color: var(--color-blue); }
.fighter-link.text-red { color: var(--color-red); }
.fighter-link.text-blue { color: var(--color-blue); }

.fighter-link:focus-visible,
.data-table .fighter-link:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: 2px;
}

a.match-row-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.match-row-link:hover {
  background: rgba(155, 109, 166, 0.04);
  text-decoration: none;
}

a.match-row-link:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: -2px;
}

/* --- Current Match (Live) --- */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: live-pulse 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 4px;
  box-shadow: 0 0 6px rgba(80, 216, 144, 0.4);
}

.current-match-card {
  padding: 8px 0;
}

.current-match-fighters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.current-match-fighter {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.current-match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.current-match-tier {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-purple);
}

.current-match-h2h {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.current-match-prediction {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.current-match-prob {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.current-match-prob-bar {
  flex: 1;
  display: flex;
  height: 22px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.prob-bar-red {
  background: linear-gradient(90deg, #c83838, var(--color-red));
  min-width: 2%;
  transition: width 0.6s ease;
}

.prob-bar-blue {
  background: linear-gradient(90deg, var(--color-blue), #4870c0);
  min-width: 2%;
  transition: width 0.6s ease;
}

.current-match-ai {
  margin-top: 16px;
  padding: 14px 16px;
  border-top: 2px solid var(--brand-purple);
  background: rgba(123, 119, 184, 0.05);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ai-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-purple);
  margin-bottom: 4px;
}

.current-match-waiting {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Quick Insights --- */
.insight-container {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.insight-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.2;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.insight-btn { font-size: 0.82rem; white-space: nowrap; }

.insight-btn.active {
  background: rgba(155, 109, 166, 0.12);
  color: var(--brand-mauve);
  border-color: rgba(155, 109, 166, 0.3);
}

.insight-btn:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: 2px;
}

.insight-card {
  min-height: 180px;
  padding: 20px;
  text-align: center;
}

.insight-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.insight-summary {
  color: #c8c8d8;
  margin-bottom: 14px;
  line-height: 1.5;
}

.insight-details {
  margin: 0;
  padding-left: 0;
  color: #a8a8c0;
  line-height: 1.6;
  list-style: none;
  display: inline-block;
  text-align: left;
}

.insight-detail-label { color: #e0e0f0; }

/* --- Page Header --- */
.page-header {
  text-align: center;
  padding: 56px 24px 36px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gradient-brand-wide);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 14s linear infinite;
  margin-bottom: 8px;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Skeleton Loaders --- */
.skeleton {
  background: linear-gradient(90deg, rgba(155, 109, 166, 0.04) 25%, rgba(155, 109, 166, 0.10) 50%, rgba(155, 109, 166, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: rgba(255, 255, 255, 0.05);
  }
}

.skeleton-card {
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 22px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.2;
}

.skeleton-card .skeleton-label { height: 12px; width: 60%; margin-bottom: 14px; }
.skeleton-card .skeleton-value { height: 28px; width: 40%; }

.skeleton-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.skeleton-match-row .skeleton-badge { flex-shrink: 0; width: 80px; height: 22px; }

.skeleton-match-row .skeleton-fighters {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.skeleton-match-row .skeleton-fighter { height: 18px; width: 80px; }
.skeleton-match-row .skeleton-meta { flex-shrink: 0; width: 120px; height: 36px; }

.skeleton-table-row td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.skeleton-table-row .skeleton { height: 18px; }

.skeleton-insight { min-height: 180px; padding: 20px; }
.skeleton-insight .skeleton-title { height: 22px; width: 50%; margin-bottom: 14px; }
.skeleton-insight .skeleton-summary { height: 16px; width: 100%; margin-bottom: 10px; }
.skeleton-insight .skeleton-summary:nth-child(3) { width: 85%; }
.skeleton-insight .skeleton-summary:nth-child(4) { width: 70%; }

.skeleton-btn {
  display: inline-block;
  width: 120px;
  height: 36px;
  border-radius: var(--r-sm);
}

/* --- Empty States --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.4; line-height: 1; }

.empty-state-message {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-subtext {
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.empty-state .btn { margin-top: 8px; }

/* --- Loading / Error States --- */
.state-msg { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.state-msg.error { color: var(--color-red); }

/* --- Ad Slots --- */
.ad-slot {
  border: 1px dashed var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot:empty { display: none; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.15;
}

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--text-primary); }
.footer a:focus-visible, .kofi-btn:focus-visible { outline: 2px solid var(--brand-mauve); outline-offset: 2px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  background: var(--brand-mauve);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  margin-bottom: 28px;
}

.kofi-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(155, 109, 166, 0.3);
}

/* --- Vs Panel (Matchup) --- */
.vs-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 60px;
}

.fighter-card {
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.fighter-card.red-side { border-color: rgba(240, 112, 104, 0.25); }
.fighter-card.blue-side { border-color: rgba(104, 152, 232, 0.25); }
.fighter-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 12px; }

.fighter-card .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
}

.stat-item .stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

/* --- Suggestion Box --- */
.suggestion-box {
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  margin-top: 24px;
}

.suggestion-box.lock {
  border-color: rgba(232, 184, 48, 0.3);
  background: rgba(232, 184, 48, 0.03);
}

.suggestion-box.high { border-color: rgba(80, 216, 144, 0.2); }

.suggestion-pick {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.suggestion-confidence { font-size: 0.88rem; margin-bottom: 16px; }

.factors-list { list-style: none; text-align: left; max-width: 500px; margin: 0 auto; }

.factors-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.factors-list li:last-child { border-bottom: none; }

.counter-signal {
  text-align: left;
  max-width: 500px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(232, 184, 48, 0.4);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  background: rgba(232, 184, 48, 0.03);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.counter-signal strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-flags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.transparency-footer {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.transparency-footer p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.transparency-footer p:last-child { margin-bottom: 0; }
.transparency-footer .text-muted { font-size: 0.72rem; color: var(--text-muted); }

/* --- Accuracy Bars --- */
.accuracy-bar-container { margin-bottom: 20px; }
.accuracy-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.88rem; }

.accuracy-bar-track {
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
}

.accuracy-bar-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  min-width: 40px;
}

.accuracy-bar-fill.lock { background: linear-gradient(90deg, #d4a020, #e8b830); }
.accuracy-bar-fill.high { background: linear-gradient(90deg, #30b870, #50d890); }
.accuracy-bar-fill.medium { background: linear-gradient(90deg, #5080d0, #6898e8); }
.accuracy-bar-fill.low { background: linear-gradient(90deg, #505068, #707088); }

.accuracy-note { text-align: center; color: var(--text-secondary); font-size: 0.85rem; font-style: italic; margin: 12px 0 24px; }
.accuracy-tier-desc { color: var(--text-secondary); font-size: 0.75rem; font-weight: 400; }

.accuracy-low-sample-badge {
  display: inline-block;
  background: rgba(232, 184, 48, 0.1);
  color: var(--color-yellow);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.accuracy-callout-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.accuracy-callout-miss {
  border-color: rgba(240, 112, 104, 0.2);
  background: rgba(240, 112, 104, 0.03);
}

/* --- Probability Bar (Matchup) --- */
.matchup-prob-bar { margin: 16px 0 8px; }

.matchup-prob-segments {
  display: flex;
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.matchup-prob-red { background: linear-gradient(90deg, #c83838, var(--color-red)); transition: width 0.6s ease; min-width: 2%; }
.matchup-prob-red.dominant { box-shadow: 0 0 10px rgba(240, 112, 104, 0.3); }
.matchup-prob-blue { background: linear-gradient(90deg, var(--color-blue), #4870c0); transition: width 0.6s ease; min-width: 2%; }
.matchup-prob-blue.dominant { box-shadow: 0 0 10px rgba(104, 152, 232, 0.3); }

.matchup-prob-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}

.matchup-sample-line { text-align: center; color: var(--text-secondary); font-size: 0.8rem; font-style: italic; margin-top: 8px; }

.suggestion-lock-callout {
  color: var(--color-yellow);
  font-size: 0.82rem;
  margin-bottom: 8px;
  border-left: 3px solid rgba(232, 184, 48, 0.35);
  padding-left: 10px;
  display: inline-block;
}

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px; }
.pagination .page-info { color: var(--text-secondary); font-size: 0.85rem; }

/* --- Two-column --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* --- Explorer --- */
.explorer-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-medium); margin-bottom: 24px; }

.explorer-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.explorer-tab:hover { color: var(--text-primary); }
.explorer-tab.active { color: var(--brand-mauve); border-bottom-color: var(--brand-mauve); }

.period-selector { display: flex; gap: 6px; }

.period-btn.active {
  background: rgba(155, 109, 166, 0.12);
  color: var(--brand-mauve);
  border-color: rgba(155, 109, 166, 0.3);
}

/* --- Column Toggles --- */
.column-toggles { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 0 2px; }

.column-toggles label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

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

.column-toggles input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.column-toggles input[type="checkbox"]:checked {
  background: var(--brand-mauve);
  border-color: var(--brand-mauve);
}

.column-toggles input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.column-toggles input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: 2px;
}

/* --- Collapsible Headers --- */
.section-header.collapsible-header { cursor: pointer; user-select: none; }

/* --- Alt Design Label --- */
.alt-label {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(8, 8, 15, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* --- Bulletins --- */
.bulletin-item {
  padding: 10px 14px;
  border-left: 3px solid var(--brand-purple);
  background: rgba(123, 119, 184, 0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bulletin-item.severity-alert {
  border-left-color: var(--color-red);
  background: rgba(200, 56, 56, 0.04);
}

.bulletin-item.severity-notable {
  border-left-color: var(--color-green);
  background: rgba(80, 216, 144, 0.04);
}

.bulletin-content { flex: 1; }

.bulletin-title {
  font-weight: 500;
  color: #ddd;
  margin-bottom: 2px;
}

.bulletin-summary {
  font-size: 0.8rem;
}

.bulletin-dismiss {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  opacity: 0.5;
}

.bulletin-dismiss:hover {
  opacity: 1;
}

.bulletin-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(123, 119, 184, 0.15);
  color: var(--brand-purple);
  font-weight: 600;
  white-space: nowrap;
}

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 14px 24px; }

  .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 2px; padding: 10px 14px; }
  .nav-brand { margin-right: 12px; flex-shrink: 0; }
  .nav-link { padding: 6px 10px; font-size: 0.8rem; flex-shrink: 0; }
  .nav-cta { display: none; }
  .nav-spacer { display: none; }

  .hero { padding: 50px 16px 32px; }
  .hero h1 { font-size: 2.8rem; }
  .hero .tagline { font-size: 0.95rem; }
  .hero-glow { width: 400px; height: 300px; }
  .hero-badge { font-size: 0.65rem; padding: 3px 12px; }

  .page-header { padding: 32px 16px 20px; }
  .page-header h1 { font-size: 2rem; }

  .summary-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
  .card { padding: 16px; }
  .card-label { font-size: 0.65rem; margin-bottom: 8px; }
  .card-value { font-size: 1.3rem; }
  .card-sub.tier-breakdown { font-size: 0.82rem; line-height: 1.5; }

  .section { margin-bottom: 28px; }
  .section h2 { font-size: 1.15rem; }
  .section-primary { padding: 16px; border-radius: var(--r-md); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-header.collapsible-header { flex-direction: row; align-items: center; }

  .controls { flex-direction: column; }
  .controls .btn { width: 100%; justify-content: center; }
  .search-input { min-width: 0; width: 100%; }

  .match-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .match-row-badge { width: auto; padding-right: 0; }
  .match-fighters { width: 100%; justify-content: flex-start; font-size: 0.9rem; }
  .match-meta { text-align: left; font-size: 0.75rem; }

  .table-scroll { overflow-x: auto; }
  .data-table th, .data-table td { padding: 8px; font-size: 0.78rem; white-space: nowrap; }

  .vs-panel { grid-template-columns: 1fr; gap: 12px; }
  .vs-divider { padding-top: 0; font-size: 1.2rem; }
  .fighter-card { padding: 16px; }
  .fighter-card h3 { font-size: 1.1rem; }
  .stat-item .stat-value { font-size: 1.05rem; }

  .suggestion-box { padding: 16px; margin-top: 16px; }
  .suggestion-pick { font-size: 1.3rem; }
  .factors-list li { font-size: 0.82rem; }

  .insight-actions { gap: 6px; padding: 10px; }
  .insight-btn { font-size: 0.75rem; padding: 6px 10px; }
  .insight-card { min-height: 120px; padding: 14px; }
  .insight-summary { font-size: 0.88rem; }

  .accuracy-bar-label { font-size: 0.82rem; }
  .accuracy-bar-track { height: 24px; }
  .two-col { grid-template-columns: 1fr; }

  .footer { padding: 28px 14px; }
  .footer-links { gap: 10px; font-size: 0.8rem; }
  .pagination { gap: 8px; padding: 12px; }

  .trust-strip { padding: 16px 14px; }
  .trust-strip-inner { flex-direction: column; gap: 10px; align-items: stretch; }
  .trust-card { max-width: none; padding: 14px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .trust-value { font-size: 1.2rem; margin-bottom: 0; min-width: 60px; }
  .trust-label { margin-bottom: 0; }

  .how-it-works { padding: 24px 14px; }
  .how-steps { flex-direction: column; gap: 16px; }

  .explorer-tab { padding: 8px 14px; font-size: 0.82rem; }
  .column-toggles { gap: 12px; }
  .column-toggles label { font-size: 0.78rem; }

  .current-match-fighters { flex-direction: column; gap: 12px; }
  .current-match-fighter { max-width: none; }
  .current-match-prob { max-width: none; }

}

/* ---------------------------------------------------------------------------
   Article & Insights Styles
   --------------------------------------------------------------------------- */

/* Index page – article card list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.article-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.article-card-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary, #aaa);
  line-height: 1.5;
  margin: 0;
}

/* Article prose */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 48px;
  line-height: 1.75;
  color: var(--text);
}
.article-meta {
  margin-bottom: 24px;
}
.article-back {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
.article-back:hover { text-decoration: underline; }
.article-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--brand-purple);
}
.article-date {
  font-size: 0.82rem;
  color: var(--muted);
}
.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--brand-purple);
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}
.article p {
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.article li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.article a {
  color: var(--accent);
  text-decoration: none;
}
.article a:hover { text-decoration: underline; }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.88rem;
}
.article th, .article td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article td {
  color: var(--text);
}
.article thead tr { border-bottom: 2px solid var(--border); }
.article tbody tr:hover { background: rgba(255,255,255,0.02); }

.article blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 16px;
  padding: 8px 16px;
  color: var(--muted);
  font-style: italic;
}

.article-cta {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-cta p { margin-bottom: 8px; }
.article-cta p:last-child { margin-bottom: 0; }

.article-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 24px;
}

.article-references {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-references h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.article-references ol {
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}
.article-references a {
  color: var(--accent);
}

/* Article mobile overrides — must come after base article styles */
@media (max-width: 768px) {
  .article { padding: 0 4px; }
  .article h2 { font-size: 1.15rem; }
  .article table { font-size: 0.82rem; }
  .article-card { padding: 18px; }
  .article-card-title { font-size: 1.05rem; }
}
