:root {
    --article-blue: #155fa9;
    --article-blue-dark: #0d477f;
    --article-ink: #182436;
    --article-text: #3e4c5f;
    --article-muted: #6b7788;
    --article-line: #dfe7ef;
    --article-soft: #f3f7fb;
    --article-white: #ffffff;
}

.article-page-shell {
    background: var(--article-white);
    color: var(--article-text);
    min-height: 60vh;
}

.article-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.article-hero {
    background: #eef6fd;
    border-bottom: 1px solid #d9e8f5;
    padding: 24px 0 44px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 34px;
    color: var(--article-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--article-blue);
    text-decoration: none;
    white-space: nowrap;
}

.article-breadcrumb a:hover {
    color: var(--article-blue-dark);
}

.article-breadcrumb > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-breadcrumb .fa-chevron-right {
    flex: 0 0 auto;
    color: #9aa8b8;
    font-size: 0.65rem;
}

.article-heading {
    max-width: 860px;
}

.article-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--article-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-heading h1 {
    margin: 0;
    color: var(--article-ink);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: 0;
}

.article-lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: #536277;
    font-size: 1.06rem;
    line-height: 1.75;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    color: var(--article-muted);
    font-size: 0.83rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--article-blue);
}

.article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 790px);
    justify-content: space-between;
    gap: 64px;
    padding-top: 48px;
    padding-bottom: 64px;
}

.article-sidebar {
    min-width: 0;
}

.article-outline {
    position: sticky;
    top: 102px;
    border-left: 2px solid var(--article-line);
    padding: 2px 0 2px 18px;
}

.article-outline-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--article-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.article-outline-title i {
    color: var(--article-blue);
}

.article-outline ol,
.article-outline-mobile ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-outline li + li {
    margin-top: 5px;
}

.article-outline a {
    display: block;
    padding: 6px 0;
    color: #687589;
    font-size: 0.82rem;
    line-height: 1.45;
    text-decoration: none;
}

.article-outline a:hover {
    color: var(--article-blue);
}

.article-outline .is-subheading a {
    padding-left: 12px;
    font-size: 0.78rem;
}

.article-main {
    min-width: 0;
}

.article-outline-mobile {
    display: none;
}

.article-cover {
    margin: 0 0 36px;
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: var(--article-soft);
}

.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
}

.article-content {
    color: var(--article-text);
    font-size: 1rem;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.article-content > :first-child {
    margin-top: 0 !important;
}

.article-content > :last-child {
    margin-bottom: 0 !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 110px;
    color: var(--article-ink);
    font-weight: 700;
    letter-spacing: 0;
}

.article-content h2 {
    position: relative;
    margin: 42px 0 16px;
    padding-left: 17px;
    font-size: 1.42rem;
    line-height: 1.35;
}

.article-content h2::before {
    content: '';
    position: absolute;
    top: 0.18em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--article-blue);
}

.article-content h3 {
    margin: 30px 0 12px;
    font-size: 1.16rem;
    line-height: 1.4;
}

.article-content h4 {
    margin: 26px 0 10px;
    font-size: 1.02rem;
}

.article-content p {
    margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px;
    padding-left: 1.35rem;
}

.article-content li {
    padding-left: 5px;
    margin-bottom: 10px;
}

.article-content li::marker {
    color: var(--article-blue);
    font-weight: 700;
}

.article-content strong {
    color: #223249;
    font-weight: 700;
}

.article-content a {
    color: var(--article-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--article-blue-dark);
}

.article-content blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--article-blue);
    background: var(--article-soft);
    color: #40516a;
}

.article-content blockquote > :last-child {
    margin-bottom: 0;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 6px;
}

.article-content table {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    border: 1px solid var(--article-line);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: var(--article-soft);
    color: var(--article-ink);
    font-weight: 700;
}

.article-support {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    padding: 22px 0;
    border-top: 1px solid var(--article-line);
    border-bottom: 1px solid var(--article-line);
}

.article-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #e7f2fc;
    color: var(--article-blue);
}

.article-support strong {
    display: block;
    color: var(--article-ink);
    font-size: 0.94rem;
}

.article-support p {
    margin: 3px 0 0;
    color: var(--article-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.article-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--article-blue);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.article-support-link:hover {
    color: var(--article-blue-dark);
}

@media (max-width: 991.98px) {
    .article-layout {
        display: block;
        max-width: 820px;
        padding-top: 34px;
    }

    .article-sidebar {
        display: none;
    }

    .article-outline-mobile {
        display: block;
        margin: 0 0 30px;
        border: 1px solid var(--article-line);
        border-radius: 6px;
        background: var(--article-soft);
    }

    .article-outline-mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 16px;
        color: var(--article-ink);
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .article-outline-mobile summary::-webkit-details-marker {
        display: none;
    }

    .article-outline-mobile summary span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .article-outline-mobile summary i:first-child {
        color: var(--article-blue);
    }

    .article-outline-chevron {
        color: var(--article-muted);
        transition: transform 0.2s ease;
    }

    .article-outline-mobile[open] .article-outline-chevron {
        transform: rotate(180deg);
    }

    .article-outline-mobile ol {
        padding: 0 16px 14px;
    }

    .article-outline-mobile li {
        border-top: 1px solid var(--article-line);
    }

    .article-outline-mobile a {
        display: block;
        padding: 10px 0;
        color: #5d6b7e;
        font-size: 0.82rem;
        line-height: 1.4;
        text-decoration: none;
    }

    .article-outline-mobile .is-subheading a {
        padding-left: 14px;
    }
}

@media (max-width: 767.98px) {
    .article-container {
        width: min(100% - 28px, 760px);
    }

    .article-hero {
        padding: 18px 0 30px;
    }

    .article-breadcrumb {
        margin-bottom: 24px;
        font-size: 0.78rem;
    }

    .article-heading h1 {
        font-size: 1.85rem;
        line-height: 1.22;
    }

    .article-kicker {
        font-size: 0.72rem;
    }

    .article-lead {
        margin-top: 14px;
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .article-meta {
        gap: 13px;
        margin-top: 17px;
        font-size: 0.77rem;
    }

    .article-layout {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .article-outline-mobile {
        margin-bottom: 24px;
    }

    .article-cover {
        margin-bottom: 26px;
    }

    .article-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .article-content h2 {
        margin-top: 34px;
        padding-left: 14px;
        font-size: 1.22rem;
    }

    .article-content h3 {
        margin-top: 26px;
        font-size: 1.08rem;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.2rem;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-support {
        grid-template-columns: 38px minmax(0, 1fr);
        margin-top: 38px;
        padding: 18px 0;
    }

    .article-support-icon {
        width: 38px;
        height: 38px;
    }

    .article-support-link {
        grid-column: 2;
        margin-top: 1px;
    }
}

@media (max-width: 359.98px) {
    .article-heading h1 {
        font-size: 1.62rem;
    }

    .article-meta {
        display: grid;
        gap: 8px;
    }
}

@media print {
    .article-breadcrumb,
    .article-sidebar,
    .article-outline-mobile,
    .article-support {
        display: none !important;
    }

    .article-hero {
        background: #fff;
        border: 0;
        padding: 0 0 24px;
    }

    .article-layout {
        display: block;
        width: 100%;
        padding: 0;
    }
}
