/* ---- Guide Specific Styles (Standardized) ---- */
body { background: var(--bg-body, #f0f4fb); }

.guide-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.83rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent, #2563eb); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* Article hero */
.article-hero {
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  color: #fff;
  border-radius: 18px;
  padding: 2.8rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 10%, rgba(255,255,255,0.12) 0%, transparent 55%);
}
.article-meta {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-bottom: 0.9rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-meta .tag {
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  position: relative;
  margin-bottom: 0.8rem;
  color: #fff !important; /* Ensure H1 in hero stays white */
}
.article-hero .lead {
  opacity: 0.88;
  font-size: 1.02rem;
  line-height: 1.7;
  position: relative;
  max-width: 600px;
}

/* Table of Contents */
.toc {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(37,99,210,0.07);
  border-left: 4px solid var(--accent, #2563eb);
}
.toc h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary, #1e40af);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: none;
  padding-left: 0;
}
.toc ol { padding-left: 1.4rem; margin: 0; }
.toc li { margin-bottom: 0.3rem; font-size: 0.9rem; }
.toc a { color: var(--accent, #2563eb); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Article body */
.article-body { 
  background: var(--card-bg, #fff); 
  border-radius: 16px; 
  padding: 2.5rem; 
  box-shadow: 0 4px 20px rgba(37,99,210,0.07); 
}

.article-body h2 {
  color: var(--primary, #1e40af);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2.2rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent, #3b82f6);
  line-height: 1.35;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  color: var(--text-main, #1e293b);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.6rem 0 0.5rem;
}

.article-body p {
  color: var(--text-muted, #475569);
  line-height: 1.85;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin: 0.8rem 0 1.1rem;
}
.article-body li { color: var(--text-muted, #475569); line-height: 1.75; font-size: 0.96rem; margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-main, #1e293b); }

/* Code blocks */
.code-block {
  background: #0f172a;
  color: #a5f3fc;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border-left: 3px solid var(--accent, #3b82f6);
}
.code-block .comment { color: #64748b; }
.code-block .keyword { color: #f0abfc; }
.code-block .string  { color: #86efac; }
.code-block .value   { color: #fbbf24; }

/* Info boxes */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
}
.info-box strong { color: #1e40af; }
.info-box p { margin: 0; color: #1e3a8a !important; font-size: 0.92rem; }

.warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
}
.warning-box p { margin: 0; color: #92400e !important; font-size: 0.92rem; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(37,99,210,0.08);
}
.comparison-table th {
  background: var(--primary, #1e40af);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.8rem 1rem;
}
.comparison-table td {
  padding: 0.7rem 1rem;
  color: var(--text-main, #1e293b);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.comparison-table .yes { color: #15803d; font-weight: 700; }
.comparison-table .no  { color: #dc2626; font-weight: 700; }
.comparison-table .med { color: #d97706; font-weight: 700; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #1e40af, #0891b2);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.cta-box h2 { color: #fff; border: none; padding: 0; margin: 0 0 0.6rem; font-size: 1.3rem; }
.cta-box p  { color: rgba(255,255,255,0.88); margin: 0 0 1.2rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #1e40af;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* Related articles */
.related-box {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,99,210,0.07);
}
.related-box h3 { color: var(--primary, #1e40af); font-size: 1rem; font-weight: 800; margin: 0 0 0.9rem; }
.related-links { display: flex; flex-direction: column; gap: 0.5rem; }
.related-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.related-links a:hover { background: rgba(37,99,210,0.05); }

/* ---- Dark mode ---- */
body.dark-mode .article-body,
body.dark-mode .toc,
body.dark-mode .related-box { background: #1e2a45; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .article-body h2 { color: #93c5fd; }
body.dark-mode .article-body h3 { color: #c5d3e8; }
body.dark-mode .article-body p,
body.dark-mode .article-body li  { color: #94a3b8; }
body.dark-mode .article-body strong { color: #e2e8f0; }
body.dark-mode .toc h2 { color: #60a5fa; }
body.dark-mode .toc a  { color: #60a5fa; }
body.dark-mode .info-box    { background: #162038; border-color: #1e3a5c; }
body.dark-mode .info-box p  { color: #93c5fd !important; }
body.dark-mode .warning-box { background: #1c1200; border-color: #78350f; }
body.dark-mode .warning-box p { color: #fde68a !important; }
body.dark-mode .comparison-table th { background: #1e3a5c; }
body.dark-mode .comparison-table td { color: #c5d3e8; border-color: #1e3a5c; }
body.dark-mode .comparison-table tr:nth-child(even) td { background: #162038; }
body.dark-mode .related-box h3 { color: #60a5fa; }
body.dark-mode .related-links a { color: #60a5fa; }
body.dark-mode .related-links a:hover { background: #1e3a5c; }
body.dark-mode .breadcrumb { color: #64748b; }
