*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --grad: linear-gradient(135deg,#7c3aed,#3b82f6);
  --purple: #7c3aed;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}
body { font-family:'Inter',sans-serif; background:#f8fafc; color:var(--text); line-height:1.75; }
nav { position:sticky; top:0; z-index:99; background:rgba(255,255,255,0.9); backdrop-filter:blur(20px); border-bottom:1px solid var(--border); }
.nav-inner { max-width:1280px; margin:0 auto; padding:0 24px; height:64px; display:flex; align-items:center; justify-content:space-between; }
.logo { text-decoration:none; }
.nav-links { display:flex; gap:4px; list-style:none; }
.nav-links a { color:#64748b; text-decoration:none; font-size:13.5px; font-weight:500; padding:6px 12px; border-radius:6px; transition:all .2s; }
.nav-links a:hover, .nav-links a.active { color:#0f172a; background:#f1f5f9; }
@media(max-width:768px) { .nav-links { display:none; } }

a { color:var(--purple); text-decoration:none; }
a:hover { text-decoration:underline; }

/* ── Article ── */
.article { max-width:740px; margin:0 auto; padding:48px 16px 72px; }
.crumbs { font-size:12.5px; color:var(--text-muted); margin-bottom:18px; }
.kicker { display:inline-block; font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--purple); background:#f5f3ff; border:1px solid #e9d5ff; padding:4px 12px; border-radius:100px; margin-bottom:14px; }
.article h1 { font-family:'Space Grotesk',sans-serif; font-size:clamp(28px,5vw,40px); line-height:1.15; font-weight:700; letter-spacing:-0.5px; margin-bottom:14px; }
.dek { font-size:17px; color:#475569; margin-bottom:22px; }
.byline { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; font-size:13px; color:var(--text-muted); padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:32px; }
.byline strong { color:var(--text); font-weight:600; }
.article h2 { font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; margin:40px 0 12px; letter-spacing:-0.3px; }
.article h3 { font-family:'Space Grotesk',sans-serif; font-size:18px; font-weight:700; margin:28px 0 8px; }
.article p { margin-bottom:16px; color:#334155; font-size:16px; }
.article ul, .article ol { margin:6px 0 18px; padding-left:22px; }
.article li { margin-bottom:8px; color:#334155; font-size:16px; }
.article code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:14px; background:#f1f5f9; padding:2px 6px; border-radius:4px; }
.article pre { background:#0f172a; color:#e2e8f0; padding:16px 18px; border-radius:10px; overflow-x:auto; margin:6px 0 20px; font-size:14px; line-height:1.6; }
.article pre code { background:none; padding:0; color:inherit; }

.tldr { background:#f5f3ff; border:1px solid #e9d5ff; border-radius:12px; padding:18px 22px; margin:0 0 28px; }
.tldr h2 { font-size:15px; margin:0 0 8px; text-transform:uppercase; letter-spacing:1px; color:var(--purple); }
.tldr ul { margin-bottom:0; }
.tldr li { font-size:15px; }

.table-wrap { overflow-x:auto; margin:8px 0 22px; border:1px solid var(--border); border-radius:10px; background:white; }
table { border-collapse:collapse; width:100%; font-size:14px; min-width:520px; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
th { background:#f8fafc; font-weight:600; color:var(--text); }
tr:last-child td { border-bottom:none; }
.table-note { font-size:12.5px; color:var(--text-muted); margin:-14px 0 22px; }

.callout { background:white; border:1px solid var(--border); border-left:4px solid var(--purple); border-radius:8px; padding:14px 18px; margin:0 0 20px; font-size:15px; color:#334155; }

/* Editor notes — must be resolved and removed before publishing */
.ed-note { background:#fffbeb; border:1px dashed #f59e0b; border-radius:8px; padding:12px 16px; margin:0 0 20px; font-size:14px; color:#78350f; }
.ed-note::before { content:'EDITOR NOTE — resolve before publishing'; display:block; font-size:10.5px; font-weight:800; letter-spacing:1.2px; color:#b45309; margin-bottom:4px; }
.draft-banner { background:#f59e0b; color:#1c1917; text-align:center; font-size:13px; font-weight:700; padding:8px 16px; }

.author-box { display:flex; gap:16px; align-items:flex-start; background:white; border:1px solid var(--border); border-radius:12px; padding:18px 20px; margin-top:44px; }
.author-box img { width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.author-box p { font-size:14px; margin:0; }
.related { margin-top:32px; }
.related h2 { font-size:18px; margin-bottom:10px; }

/* ── Articles index ── */
.index-hero { background:var(--grad); color:white; padding:56px 16px 44px; text-align:center; }
.index-hero h1 { font-family:'Space Grotesk',sans-serif; font-size:clamp(28px,5vw,40px); font-weight:800; margin-bottom:10px; }
.index-hero p { font-size:15px; color:rgba(255,255,255,0.88); max-width:580px; margin:0 auto; }
.index-list { max-width:820px; margin:0 auto; padding:40px 16px 72px; display:grid; gap:16px; }
.index-card { display:block; background:white; border:1px solid var(--border); border-radius:12px; padding:20px 22px; color:inherit; transition:border-color .2s, transform .2s; }
.index-card:hover { border-color:#c4b5fd; transform:translateY(-1px); text-decoration:none; }
.index-card .kicker { margin-bottom:8px; }
.index-card h2 { font-family:'Space Grotesk',sans-serif; font-size:20px; line-height:1.3; margin-bottom:6px; color:var(--text); }
.index-card p { font-size:14.5px; color:#475569; margin-bottom:8px; }
.index-card .meta { font-size:12.5px; color:var(--text-muted); }

footer { background:#0f172a; color:rgba(255,255,255,0.6); padding:32px 16px; text-align:center; font-size:13px; }
footer a { color:rgba(255,255,255,0.6); text-decoration:none; margin:0 8px; }
footer a:hover { color:white; }

/* Side-by-side test results */
.compare { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:8px 0 18px; }
.compare figure { margin:0; }
.compare img { width:100%; height:auto; display:block; border-radius:8px; border:1px solid var(--border); }
.compare figcaption { font-size:13px; color:var(--text-muted); margin-top:6px; text-align:center; }
@media(max-width:480px) { .compare { grid-template-columns:1fr; } }
