.article-page {
    --article-ink: #202820;
    --article-muted: #536155;
    --article-subtle: #6e7a70;
    --article-green: #005425;
    --article-border: #d9e3d8;
    min-height: 70vh;
    background: #f8faf6;
    color: var(--article-ink);
}

.article-progress {
    position: sticky;
    top: 64px;
    z-index: 40;
    height: 3px;
    background: #eef4eb;
}
.article-progress span { display: block; width: 0; height: 100%; background: var(--article-green); }
.article-shell { width: min(100% - 2rem, 1240px); margin: 0 auto; padding: 2.25rem 0 5rem; }
.article-breadcrumbs { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; color: var(--article-subtle); font-size: .84rem; }
.article-breadcrumbs a:hover { color: var(--article-green); }
.article-breadcrumb-current { max-width: min(48ch, 100%); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--article-ink); }
.article-header { max-width: 850px; margin-bottom: 2.5rem; }
.article-topic { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .4rem .8rem; background: #edf5ed; color: var(--article-green); font-size: .7rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.article-topic span { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.article-header h1 { margin: 1.15rem 0 .85rem; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.13; font-weight: 700; letter-spacing: -.04em; }
.article-deck { max-width: 760px; margin: 0 0 1.75rem; color: var(--article-muted); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.7; }
.article-meta { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: .85rem; background: #f2f4f0; }
.article-author-mark { display: grid; flex: none; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: #256d3b; color: white; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; }
.article-meta-copy { display: grid; gap: .1rem; font-size: .82rem; }
.article-meta-copy strong { color: var(--article-ink); font-weight: 650; }
.article-meta-copy span { color: var(--article-subtle); }
.article-actions { display: flex; gap: .35rem; margin-left: auto; }
.article-actions button { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .55rem; background: white; color: var(--article-muted); cursor: pointer; }
.article-actions button:hover { background: #edf5ed; color: var(--article-green); }
.article-actions svg { width: 1.1rem; height: 1.1rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 740px) minmax(230px, 320px); justify-content: space-between; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.article-main { min-width: 0; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .9rem; margin-bottom: 2rem; }
.article-content { min-width: 0; color: var(--article-ink); font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.article-content :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 7rem; font-family: "Plus Jakarta Sans", sans-serif; line-height: 1.3; letter-spacing: -.025em; color: var(--article-ink); }
.article-content h2 { margin: 2.6rem 0 .9rem; font-size: clamp(1.6rem, 3vw, 1.95rem); font-weight: 700; }
.article-content h3 { margin: 2rem 0 .75rem; font-size: 1.4rem; font-weight: 650; }
.article-content h4 { margin: 1.8rem 0 .7rem; font-size: 1.18rem; font-weight: 650; }
.article-content :is(p, ul, ol, pre, blockquote, table) { margin-block: 0 1.25rem; }
.article-content :is(ul, ol) { padding-left: 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li + li { margin-top: .4rem; }
.article-content a { color: var(--article-green); text-decoration: underline; text-underline-offset: .16em; }
.article-content a:hover { color: #1d572f; }
.article-content :not(pre) > code { padding: .16em .38em; border-radius: .3rem; background: #eef4eb; color: #005425; font: .88em/1.5 "JetBrains Mono", ui-monospace, monospace; }
.article-content pre { overflow-x: auto; padding: 1.25rem; border-radius: .75rem; background: #111827; color: #e5edf7; font: .84rem/1.65 "JetBrains Mono", ui-monospace, monospace; }
.article-content pre code { font: inherit; }
.article-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.article-content blockquote { padding: 1rem 1.35rem; border-left: 4px solid #256d3b; border-radius: 0 .65rem .65rem 0; background: #edf5ed; }
.article-content :is(table, .tk-table) { width: 100%; }
.article-content :has(> table) { overflow-x: auto; }
.article-content .tk-align-center { text-align: center; }
.article-content .tk-align-right { text-align: right; }
.article-content .tk-cta { margin: 2rem 0; padding: 1.5rem; border: 1px solid #bbd9c1; border-radius: .85rem; background: #edf5ed; }
.article-content .tk-cta h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.article-content .tk-cta p { margin: 0 0 1rem; }
.article-content .tk-cta-button { display: inline-block; padding: .65rem 1rem; border-radius: .5rem; background: #256d3b; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.article-content .tk-cta-button:hover { color: #fff; background: #1d572f; }
.article-content .tk-divider { margin: 2rem 0; border: 0; border-top: 1px solid var(--article-border); }
.article-content .tk-quote footer { margin-top: .6rem; color: var(--article-muted); font-size: .85rem; }
.article-content .tk-source-tabs { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem .5rem 0; border-bottom: 1px solid #364a3a; background: #1b281f; }
.article-content .tk-source-tab { flex: none; padding: .6rem .85rem; border: 0; border-bottom: 2px solid transparent; border-radius: .4rem .4rem 0 0; background: transparent; color: #b8c7b6; font: 600 .8rem "JetBrains Mono", ui-monospace, monospace; cursor: pointer; }
.article-content .tk-source-tab:hover, .article-content .tk-source-tab:focus-visible { color: #fff; background: #293b2e; }
.article-content .tk-source-tab:focus-visible { outline: 2px solid #a4d5ae; outline-offset: -2px; }
.article-content .tk-source-tab[aria-selected="true"] { border-bottom-color: #8bd49e; color: #fff; }
.article-content .tk-source-file[hidden] { display: none; }
.article-content .tk-source-file + .tk-source-file { border-top: 0; }
.article-content .tk-source-file pre { border-radius: 0; }
.article-content .tk-table { display: block; overflow-x: auto; border-collapse: collapse; }
.article-content .tk-table td { padding: .55rem .8rem; border: 1px solid var(--article-border); }
.article-content .tk-image { margin: 2rem 0; }
.article-content .tk-image.tk-align-center { text-align: center; }
.article-content .tk-image.tk-align-right { text-align: right; }
.article-content .tk-image img { display: inline-block; }
.article-content .tk-image-caption { margin-top: .65rem; color: var(--article-muted); font-size: .85rem; line-height: 1.5; }
.article-endmark { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3.5rem; color: #8a958b; font: 600 .65rem "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; }
.article-endmark span { height: 1px; width: 3rem; background: var(--article-border); }
.article-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.5rem; border-radius: .85rem; background: #edf5ed; }
.article-bottom-actions p { max-width: 36ch; margin: 0; font-size: .94rem; line-height: 1.6; }
.article-bottom-actions a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: .5rem; background: #005425; color: white; font-size: .82rem; font-weight: 650; }
.article-bottom-actions a:hover { background: #1d572f; }
.article-aside { position: sticky; top: 6.5rem; display: grid; gap: 1.2rem; }
.article-aside[hidden] { display: none; }
.article-toc-card, .article-explore-card { border-radius: .85rem; padding: 1.25rem; box-shadow: 0 1px 8px rgb(30 50 30 / 5%); }
.article-toc-card { background: white; }
.article-toc-heading { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .85rem; padding: 0; color: var(--article-subtle); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.article-toc-heading span:first-child { margin-right: auto; }
.article-toc-chevron { display: none; flex: none; width: 1rem; height: 1rem; }
.article-toc-heading span:last-child { padding: .25rem .5rem; border-radius: 999px; background: #edf5ed; color: var(--article-green); font-size: .65rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.article-toc-heading .article-toc-chevron { padding: 0; background: transparent; color: currentColor; }
.article-toc-content[hidden] { display: none; }
.article-toc-card nav { display: grid; gap: .15rem; max-height: min(60vh, 500px); overflow-y: auto; }
.article-toc-card nav a { display: block; padding: .6rem .7rem; border-radius: .5rem; color: var(--article-muted); font-size: .78rem; line-height: 1.5; }
.article-toc-card nav a:hover, .article-toc-card nav a.is-active { background: #edf5ed; color: var(--article-green); }
.article-toc-card nav a.is-active { font-weight: 650; }
.article-toc-card nav a.article-toc-subheading { padding-left: 1.6rem; font-size: .74rem; }
.article-toc-footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--article-border); color: var(--article-subtle); font-size: .75rem; }
.article-toc-footer strong { color: var(--article-green); }
.article-explore-card { background: #f0eefc; }
.article-explore-card > span { color: #5a4fb8; font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.article-explore-card h2 { margin: .55rem 0; font: 700 1.1rem/1.35 "Plus Jakarta Sans", sans-serif; }
.article-explore-card p { margin: 0 0 .85rem; color: var(--article-muted); font-size: .78rem; line-height: 1.6; }
.article-explore-card a { color: #5a4fb8; font-size: .78rem; font-weight: 700; }
.article-explore-card a:hover { text-decoration: underline; }
.article-page :focus-visible { outline: 2px solid #5a4fb8; outline-offset: 3px; }

@media (max-width: 900px) {
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .article-aside { position: static; grid-row: 1; }
    .article-toc-heading { margin-bottom: 0; cursor: pointer; }
    .article-toc-heading .article-toc-chevron { display: block; transition: transform .2s ease; }
    .article-toc-heading[aria-expanded="true"] .article-toc-chevron { transform: rotate(180deg); }
    .article-toc-heading[aria-expanded="true"] { margin-bottom: .85rem; }
    .article-toc-card nav { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-height: none; }
    .article-explore-card { display: none; }
}
@media (min-width: 1280px) {
    .article-progress { top: 72px; }
}
@media (max-width: 600px) {
    .article-progress { top: 64px; }
    .article-shell { padding-top: 1.4rem; }
    .article-breadcrumbs { margin-bottom: 1.35rem; font-size: .75rem; }
    .article-header { margin-bottom: 1.5rem; }
    .article-header h1 { margin-top: .8rem; }
    .article-meta { padding: .75rem; }
    .article-actions { gap: .2rem; }
    .article-content { font-size: 1rem; }
    .article-bottom-actions { align-items: flex-start; }
}
