:root {
  --md-primary-fg-color: #0891b2;
  --md-primary-fg-color--light: #06b6d4;
  --md-primary-fg-color--dark: #0e7490;
  --md-accent-fg-color: #0d9488;
}

/* Hero & Feature Card Styling */
.wiki-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0e7490 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wiki-hero h1 {
  color: white !important;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.wiki-hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 750px;
  line-height: 1.6;
}

/* Tool Banner Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ecosystem-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
}

[data-md-color-scheme="slate"] .ecosystem-card {
  background: #1e293b;
  border-color: #334155;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
  border-color: #06b6d4;
}

.ecosystem-card h3 {
  margin-top: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-md-color-scheme="slate"] .ecosystem-card h3 {
  color: #f1f5f9;
}

.ecosystem-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

[data-md-color-scheme="slate"] .ecosystem-card p {
  color: #94a3b8;
}

.ecosystem-card .card-cta {
  font-weight: 700;
  color: #0891b2;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tech Spec Table Styling */
.tech-spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

[data-md-color-scheme="slate"] .tech-spec-box {
  background: #0f172a;
  border-color: #334155;
}

/* Admonitions & Tags */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
