:root {
    --article-accent: #ffc107;
    --article-dark: #2a2a2a;
    --article-soft: #f7f7f5;
    --article-border: #e4e4df;
    --article-muted: #6c6c6c;
}

.article-page {
    background: #fbfbfa;
    color: var(--article-dark);
    flex: 1;
}

.article-shell {
    margin: 0 auto;
    max-width: 1040px;
}

.article-back {
    color: #676767;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.article-back:hover {
    color: #806000;
}

.article-header {
    margin: 2rem 0 2.25rem;
    max-width: 940px;
}

.article-meta-top {
    align-items: center;
    color: #858585;
    display: flex;
    font-size: 0.78rem;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.article-type {
    align-items: center;
    background: #fff8de;
    border: 1px solid #ead785;
    border-radius: 999px;
    color: #6e5200;
    display: inline-flex;
    font-weight: 750;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
}

.article-type img {
    height: 17px;
    width: 17px;
}

.article-header h1 {
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin-bottom: 1.25rem;
}

.article-lead {
    color: #5f5f5f;
    font-size: 1.16rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 850px;
}

.article-author {
    color: #858585;
    font-size: 0.84rem;
    margin-bottom: 0;
}

.article-author a {
    color: #745600;
    font-weight: 700;
    text-decoration: none;
}

.article-banner {
    background: var(--article-soft);
    border: 1px solid var(--article-border);
    border-radius: 0.85rem;
    margin: 0 0 2.5rem;
    overflow: hidden;
}

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

.article-content {
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 880px;
}

.article-content p {
    margin-bottom: 1.3rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2.25rem 0 1rem;
}

.article-content a {
    color: #745600;
    text-decoration-color: #d2b344;
    text-underline-offset: 0.18em;
}

.article-content img,
.article-content video,
.article-content iframe {
    border-radius: 0.65rem;
    height: auto;
    max-width: 100%;
}

.article-content blockquote {
    background: var(--article-soft);
    border-left: 4px solid var(--article-accent);
    color: #555;
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
}

.article-content li + li {
    margin-top: 0.45rem;
}

.article-attachments {
    border-top: 1px solid var(--article-border);
    margin: 3rem auto 0;
    max-width: 880px;
    padding-top: 2rem;
}

.article-attachments-heading {
    align-items: flex-end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.article-attachments-heading p {
    color: #806000;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 .4rem;
    text-transform: uppercase;
}

.article-attachments-heading h2 {
    font-size: 1.65rem;
    letter-spacing: -.025em;
    margin: 0;
}

.article-attachments-heading > span {
    color: #888;
    font-size: .76rem;
}

.attachment-list {
    background: #fff;
    border: 1px solid var(--article-border);
    border-radius: .75rem;
    overflow: hidden;
}

.attachment-card {
    align-items: center;
    border-bottom: 1px solid var(--article-border);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem;
}

.attachment-card:last-child { border-bottom: 0; }
.attachment-file-icon { align-items: center; background: var(--article-dark); border-radius: .45rem; color: var(--article-accent); display: flex; font-size: .62rem; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.attachment-info h3 { font-size: .98rem; margin: 0 0 .2rem; }
.attachment-info p { color: var(--article-muted); font-size: .8rem; margin: 0 0 .25rem; }
.attachment-info span { color: #929292; font-size: .7rem; }
.attachment-actions { align-items: center; display: flex; gap: .55rem; }
.attachment-open { border: 1px solid #c9c9c4; border-radius: .4rem; color: var(--article-dark); font-size: .76rem; font-weight: 700; padding: .42rem .65rem; text-decoration: none; }
.attachment-open:hover { border-color: var(--article-accent); color: var(--article-dark); }
.attachment-download { align-items: center; background: var(--article-accent); border-radius: 50%; color: #211700; display: inline-flex; font-weight: 800; height: 32px; justify-content: center; text-decoration: none; width: 32px; }

.article-navigation {
    border-top: 1px solid var(--article-border);
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
}

.article-navigation > div {
    min-width: 0;
}

.article-navigation span {
    color: #929292;
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.article-navigation a {
    color: var(--article-dark);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-next {
    text-align: right;
}

@media (max-width: 575.98px) {
    .article-header {
        margin-top: 1.5rem;
    }

    .article-meta-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .article-lead {
        font-size: 1.02rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .attachment-card {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .attachment-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .article-next {
        text-align: left;
    }
}
