/* MyLastAI — custom styles */

/* ── Homepage guide cards grid ── */
.home-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.home-guide-card {
  background: #0f1320;
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  text-decoration: none; display: block; color: inherit;
}
a.home-guide-card:hover {
  border-color: rgba(139,92,246,0.45);
  background: #17132b; transform: translateY(-3px);
}

/* ── Homepage grids ── */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.home-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; max-width: 800px; margin: 0 auto;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .home-guides-grid,.articles-grid { grid-template-columns: 1fr }
  .home-steps-grid { grid-template-columns: 1fr }
}

/* ── Prose links ── */
.prose a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px }
.prose a:hover { color: #c4b5fd }

/* ── Dark scrollbar ── */
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:#0a0f1e}
::-webkit-scrollbar-thumb{background:#374151;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#4b5563}

/* ── Blowfish dark overrides ── */
:root {
  --color-neutral-50:#f8fafc; --color-neutral-900:#0a0f1e;
  --color-primary-400:#a78bfa; --color-primary-500:#8b5cf6;
  --color-primary-600:#7c3aed; --color-primary-700:#6d28d9;
}
#appearance-switcher{display:none!important}
body{background-color:#0a0f1e}

/* ── Article body styling ── */
.article-body-content {
  color: #cbd5e1; line-height: 1.8; font-size: 1.05rem;
}
.article-body-content h2 {
  font-size: 1.5rem; font-weight: 700; color: #e8edf5;
  margin: 2.5rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139,92,246,0.15);
}
.article-body-content h3 {
  font-size: 1.2rem; font-weight: 700; color: #e8edf5;
  margin: 1.75rem 0 0.75rem;
}
.article-body-content p { margin-bottom: 1.25rem }
.article-body-content ul,.article-body-content ol { margin: 0 0 1.5rem 1.5rem }
.article-body-content li { margin-bottom: 0.5rem }
.article-body-content strong { color: #e8edf5; font-weight: 600 }
.article-body-content a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px }
.article-body-content a:hover { color: #c4b5fd }
.article-body-content hr { border: none; border-top: 1px solid rgba(139,92,246,0.12); margin: 2rem 0 }
.article-body-content img {
  width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.article-body-content blockquote {
  border-left: 3px solid #8b5cf6; padding: 0.75rem 1.25rem;
  margin: 1.5rem 0; background: rgba(139,92,246,0.05);
  border-radius: 0 6px 6px 0; color: #94a3b8;
}

/* ── Article tables ── */
.article-body-content table {
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 8px;
  overflow: hidden;
}
.article-body-content th {
  background: #241a3f;
  color: #e8edf5;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(139,92,246,0.3);
}
.article-body-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(139,92,246,0.08);
  color: #cbd5e1;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-body-content tr:nth-child(even) {
  background: rgba(139,92,246,0.03);
}

/* Stats/section listing — 3-per-row card grid */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.stats-link-card {
  background: #0f1320;
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none; display: block; color: inherit;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.stats-link-card:hover {
  border-color: rgba(139,92,246,0.45);
  background: #17132b; transform: translateY(-2px);
}
.stats-card-icon { font-size: 2rem; margin-bottom: 0.75rem }
.stats-card-title { font-size: 1.05rem; font-weight: 700; color: #e8edf5; margin-bottom: 0.4rem; line-height: 1.3 }
.stats-card-desc { font-size: 0.88rem; color: #8b9ab8; line-height: 1.5 }

/* Stat cards for stats pages */
.stats-content .stat-card {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(139,92,246,0.08);
}

.stats-content .stat-card:last-child {
  border-bottom: none;
}

.stats-content .stat-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #a78bfa;
  min-width: 120px;
  max-width: 160px;
  flex-shrink: 0;
  line-height: 1.5;
}

.stats-content .stat-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.stats-content .stat-source {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.15rem;
}

.stats-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8edf5;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139,92,246,0.15);
}

.stats-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
  margin: 2rem 0 0.75rem;
}

/* stat-row format for non-stats-content stat-card usage (e.g. section pages) */
.stat-card {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(139,92,246,0.08);
}
.stat-card:last-child { border-bottom: none }
.stat-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #a78bfa;
  min-width: 120px;
  max-width: 160px;
  flex-shrink: 0;
  line-height: 1.5;
}
.stat-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* TOC */
#TableOfContents a:hover{color:#8b5cf6}
#TableOfContents ul{list-style:none;padding-left:1rem}
#TableOfContents li{margin-bottom:0.25rem}
