/* Article reading surface. Also used by the legal and about pages, which
 * are long-form prose with the same needs. */

.article-head { padding: 48px 0 28px; }

.article-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: .35em; }

.article-standfirst {
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0 0 22px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .86rem;
    color: var(--text-faint);
}
.article-author { font-weight: 600; color: var(--text-dim); }

.article-ai-badge {
    padding: .2em .7em;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--warn);
    cursor: help;
}

.article-hero {
    max-width: 1080px;
    margin: 12px auto 40px;
    padding: 0 24px;
}
.article-hero img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* ── Prose ───────────────────────────────────────────────────────── */

.article-body {
    font-size: 1.06rem;
    line-height: 1.75;
    color: #24282f;
}
.article-body > * + * { margin-top: 1.15em; }

.article-body h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    margin-top: 2em;
    margin-bottom: .5em;
    color: var(--text);
}
.article-body h3 {
    font-size: 1.16rem;
    margin-top: 1.7em;
    margin-bottom: .4em;
    color: var(--text);
}

.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--text); }

.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }

.article-body blockquote {
    margin: 1.6em 0;
    padding: .2em 0 .2em 1.3em;
    border-left: 3px solid var(--accent);
    color: var(--text-dim);
    font-style: italic;
}

.article-body img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1.6em 0;
}
.article-body figure { margin: 1.8em 0; }
.article-body figcaption {
    margin-top: .6em;
    font-size: .84rem;
    color: var(--text-faint);
    text-align: center;
}

.article-body code {
    padding: .14em .42em;
    border-radius: 4px;
    background: var(--bg-elev);
    font-size: .9em;
    color: var(--accent-alt);
}
.article-body pre {
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    overflow-x: auto;
}
.article-body pre code { background: none; padding: 0; color: inherit; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
    margin: 1.6em 0;
}
.article-body th, .article-body td {
    padding: .7em .9em;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.article-body th { color: var(--text); font-weight: 700; }

.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* ── Footnotes on the page itself ────────────────────────────────── */

.article-lang-note {
    margin-top: 32px;
    padding: .9em 1.2em;
    border-left: 3px solid var(--warn);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-size: .9rem;
    color: var(--text-dim);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-size: .88rem;
}
.article-share span { color: var(--text-faint); }
.article-share a {
    padding: .4em 1em;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    transition: border-color .2s, color .2s;
}
.article-share a:hover { border-color: var(--accent); color: var(--accent); }

/* Legal pages reuse the prose styles but want tighter headings. */
.legal .article-body h2 { font-size: 1.2rem; margin-top: 2.2em; }
