:root {
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e5e5e7;
    --link: #0071e3;
    --accent: #0a8a3c;
    --warn: #b25000;
    --bg: #fff;
    --card: #f5f5f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    padding: 32px 20px 64px;
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
}

nav {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
nav a { margin-right: 14px; }

h1 { font-size: 32px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
h2 { font-size: 21px; font-weight: 600; margin-top: 36px; margin-bottom: 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 6px; }

p, li { margin-bottom: 14px; }
ul, ol { padding-left: 24px; margin-bottom: 14px; }

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

/* The short, quotable answer that opens every question page. */
.answer {
    background: var(--card);
    border-left: 3px solid var(--accent);
    padding: 16px 18px;
    margin-bottom: 28px;
    border-radius: 0 8px 8px 0;
}
.answer p:last-child { margin-bottom: 0; }

.note {
    background: #fff8f0;
    border-left: 3px solid var(--warn);
    padding: 14px 18px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.lede { font-size: 19px; color: var(--muted); margin-bottom: 28px; }

.card-links { list-style: none; padding: 0; }
.card-links li { margin-bottom: 12px; }
.card-links a { font-weight: 600; }
.card-links span { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }

table { border-collapse: collapse; width: 100%; margin-bottom: 18px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

.sources { font-size: 14px; color: var(--muted); }
.sources li { margin-bottom: 8px; }

footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
        --link: #2997ff; --accent: #30d158; --warn: #ff9f0a;
        --bg: #000; --card: #1c1c1e;
    }
    .note { background: #1f1a12; }
}
