/* ────────────────────────────────────────────────────────────────
   Guides + About long-form article styling
   ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0c0e14; --bg-card: #13161e; --bg-elevated: #181c26; --border: #1e2330;
    --text: #e2e6f0; --text-secondary: #b4bcd0; --text-muted: #7a84a0;
    --gold: #d4a24e; --gold-soft: rgba(212,162,78,0.18);
    --green: #10b981; --red: #ef4444; --blue: #3b82f6; --purple: #a855f7;
    --radius: 10px;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.75;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.75; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(12,14,20,0.92);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 18px; }
.topbar a.brand { color: var(--text); display: flex; align-items: center; gap: 10px; }
.topbar img { height: 28px; width: auto; }
.topbar .wordmark { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; }
.topbar .wordmark span { color: var(--gold); }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; }
.topbar nav a:hover { color: var(--gold); opacity: 1; }

/* Article container */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.crumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--gold); opacity: 1; }
.article h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em;
    line-height: 1.2; margin-bottom: 12px; color: var(--text); }
.article .lede { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 28px; }
.byline { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 32px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.byline strong { color: var(--text-secondary); }

.article h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.015em;
    margin: 44px 0 14px; color: var(--text); }
.article h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--gold); }
.article p { font-size: 0.96rem; color: var(--text-secondary); margin-bottom: 18px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 20px; }
.article li { font-size: 0.96rem; color: var(--text-secondary); margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 700; }
.article em { color: var(--text); font-style: italic; }
.article blockquote { border-left: 3px solid var(--gold); padding: 4px 18px;
    margin: 22px 0; color: var(--text); background: var(--gold-soft); border-radius: 0 6px 6px 0; }
.article blockquote p { margin-bottom: 0; color: var(--text); font-style: italic; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* Callout box */
.callout { background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: var(--radius);
    padding: 16px 18px; margin: 24px 0; font-size: 0.92rem; color: var(--text-secondary); }
.callout-title { font-weight: 700; color: var(--gold); font-size: 0.78rem;
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { margin-bottom: 0; font-size: 0.92rem; }

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 10px 14px; text-align: left;
    border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table th { background: var(--bg-elevated); color: var(--gold);
    font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp-table td { color: var(--text-secondary); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .num { font-variant-numeric: tabular-nums; text-align: right; }

/* Related-articles strip */
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-title { font-size: 0.82rem; font-weight: 700; color: var(--gold);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; transition: border-color 0.15s; display: block; }
.related-card:hover { border-color: var(--gold); opacity: 1; }
.related-card-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.related-card-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0; }

.back-link { display: inline-block; margin-top: 36px; font-size: 0.85rem;
    font-weight: 600; color: var(--gold); border: 1px solid rgba(212,162,78,0.3);
    padding: 8px 18px; border-radius: var(--radius); transition: all 0.15s; }
.back-link:hover { background: var(--gold); color: #0c0e14; opacity: 1; }

/* Hub page (guides/index.html) */
.hub-intro { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.guide-card { background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; transition: all 0.18s;
    display: flex; flex-direction: column; height: 100%; }
.guide-card:hover { border-color: var(--gold); transform: translateY(-2px); opacity: 1; }
.guide-tag { font-size: 0.65rem; font-weight: 700; color: var(--gold);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.guide-card-title { font-size: 1.1rem; font-weight: 800; color: var(--text);
    margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em; }
.guide-card-desc { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 14px;
    line-height: 1.5; flex: 1; }
.guide-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* FAQ block */
.faq details { background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; cursor: pointer; }
.faq summary { font-weight: 700; color: var(--text); list-style: none; outline: none; font-size: 0.95rem; }
.faq summary::after { content: '+'; float: right; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] { padding-bottom: 16px; }
.faq details p { margin-top: 10px; margin-bottom: 0; font-size: 0.9rem; }

@media (max-width: 600px) {
    .article { padding: 32px 16px 48px; }
    .article h1 { font-size: 1.7rem; }
    .article h2 { font-size: 1.2rem; margin-top: 32px; }
    .article h3 { font-size: 1rem; }
    .article .lede { font-size: 1rem; }
    .article p, .article li { font-size: max(0.92rem, 14px); }
    .related-grid { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: 1fr; }
    .topbar nav { gap: 12px; }
    .topbar nav a { font-size: 0.78rem; }
    .cmp-table { font-size: 0.82rem; }
    .cmp-table th, .cmp-table td { padding: 8px 10px; }
}
