/* ── Research article (long-form post) ───────────────── */

.article-main {
    position: relative;
    z-index: 1;
    padding: 30px 0 104px;
}

.article-shell {
    width: min(760px, calc(100vw - 40px));
    margin: 0 auto;
}

.article-breadcrumb {
    margin-bottom: 26px;
    font-size: 0.84rem;
    color: var(--ink-soft);
}

.article-breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 180ms ease;
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
    color: var(--cyan-text);
}

.article-eyebrow {
    margin: 0 0 16px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan-text);
}

.article-title {
    margin: 0 0 20px;
    color: var(--page-ink);
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.article-title em {
    font-style: italic;
    margin-right: 0.1em;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 24px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.article-byline {
    font-weight: 600;
    color: var(--page-ink-soft);
}

.article-byline a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 180ms ease;
}

.article-byline a:hover,
.article-byline a:focus-visible {
    color: var(--cyan-text);
}

.article-readtime {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
}

.article-meta-tags {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

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

.article-body p {
    margin: 0 0 20px;
    color: var(--page-ink-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body h2 {
    margin: 42px 0 16px;
    color: var(--page-ink);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.article-body a {
    color: var(--cyan-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 180ms ease;
}

.article-body a:hover,
.article-body a:focus-visible {
    color: var(--page-ink);
}

.article-body strong {
    color: var(--page-ink);
}

.article-body sup {
    font-size: 0.72em;
    line-height: 0;
}

/* ── Figure with theme swap ──────────────────────────── */

.article-figure {
    margin: 34px 0;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.article-figure .article-fig-dark {
    display: none;
}

html[data-theme="dark"] .article-figure .article-fig-light {
    display: none;
}

html[data-theme="dark"] .article-figure .article-fig-dark {
    display: block;
}

.article-figure figcaption {
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.62;
    color: var(--ink-soft);
}

/* ── CTA ─────────────────────────────────────────────── */

.article-cta {
    margin: 40px 0 8px;
}

/* ── Resources ───────────────────────────────────────── */

.article-resources {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.article-resources h2 {
    margin: 0 0 22px;
    color: var(--page-ink);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-resource {
    margin-bottom: 18px;
}

.article-resource-label {
    margin: 0 0 5px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-text);
}

.article-resource-value {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--page-ink-soft);
    word-break: break-word;
}

.article-resource-value a {
    color: var(--cyan-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.article-resource-value a:hover,
.article-resource-value a:focus-visible {
    color: var(--page-ink);
}

@media (max-width: 540px) {
    .article-meta-tags {
        margin-left: 0;
        width: 100%;
    }
}
