body.article-page {
    font-family: 'Source Sans Pro', sans-serif;
}

.article-shell {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.article-hero {
    max-width: 72rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    text-align: center;
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-lead {
    margin: 1rem auto 0;
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
}

.article-section {
    max-width: 76rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.article-section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-section-head-copy {
    min-width: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-grid--archive {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.article-carousel {
    display: grid;
    gap: 1.25rem;
}

.article-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.article-carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    background: #ffffff;
    color: #6d28d9;
    font-size: 1.125rem;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.article-carousel-button:hover {
    transform: translateY(-2px);
    color: #5b21b6;
    border-color: #c4b5fd;
    box-shadow: 0 16px 30px rgba(109, 40, 217, 0.14);
}

.article-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.article-carousel-track::-webkit-scrollbar {
    display: none;
}

.article-carousel-slide {
    flex: 0 0 min(100%, 22rem);
    scroll-snap-align: start;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.1);
}

.article-card--carousel,
.article-card--archive {
    height: 100%;
}

.article-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ede9fe, #faf5ff);
    overflow: hidden;
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.article-card-meta,
.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.article-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 0.85rem;
    font-weight: 700;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-excerpt {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.article-card-link,
.article-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
    font-weight: 700;
    text-decoration: none;
}

.article-card-link:hover,
.article-primary-link:hover {
    color: #5b21b6;
}

.article-empty {
    padding: 2rem;
    border: 1px dashed #c4b5fd;
    border-radius: 1.5rem;
    text-align: center;
    background: #faf5ff;
    color: #5b21b6;
}

.article-pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.article-pagination a,
.article-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.article-pagination a {
    background: #111827;
    color: #fff;
}

.article-pagination span {
    background: #e5e7eb;
    color: #6b7280;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.article-detail {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.article-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 8;
    background: linear-gradient(135deg, #ede9fe, #fdf2f8);
}

.article-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-body {
    padding: 2rem;
}

.article-content {
    color: #1f2937;
    line-height: 1.85;
    font-size: 1.05rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.article-content h2 {
    font-size: 1.85rem;
}

.article-content h3 {
    font-size: 1.35rem;
}

.article-content h4 {
    font-size: 1.1rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 1rem 0;
}

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

.article-content blockquote {
    padding: 1rem 1.25rem;
    border-left: 4px solid #8b5cf6;
    background: #faf5ff;
    border-radius: 0 1rem 1rem 0;
}

.article-content a {
    color: #7c3aed;
    text-decoration: underline;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.article-content .article-media-block {
    margin: 1.75rem 0;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    background: #f8fafc;
}

.article-content .article-media-track {
    display: grid;
    gap: 1rem;
}

.article-content .article-media-block--gallery .article-media-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-content .article-media-block--stack .article-media-track {
    grid-template-columns: 1fr;
}

.article-content .article-media-block--slider .article-media-track {
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
}

.article-content .article-media-block--slider .article-media-track::-webkit-scrollbar {
    display: none;
}

.article-content .article-media-item {
    overflow: hidden;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.article-content .article-media-block .article-media-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
}

.article-content .article-media-block--slider .article-media-item {
    scroll-snap-align: start;
}

.article-content .article-media-caption {
    margin: 0;
    padding: 0.95rem 1rem 1rem;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.7;
}

.article-media-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.article-media-slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    background: #fff;
    color: #6d28d9;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.article-media-slider-button:hover {
    transform: translateY(-1px);
    color: #5b21b6;
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.12);
}

.article-sidebar {
    display: grid;
    gap: 1rem;
}

.article-sidebar-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.article-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.article-related-list {
    display: grid;
    gap: 1rem;
}

.article-related-item {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.article-related-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-related-item a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.article-related-item a:hover {
    color: #7c3aed;
}

@media (min-width: 992px) {
    .article-section-head {
        flex-direction: row;
        align-items: flex-end;
    }

    .article-primary-link {
        margin-left: auto;
        align-self: flex-end;
        text-align: right;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .article-sidebar {
        position: sticky;
        top: 7rem;
    }

    .article-grid--archive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-carousel-slide {
        flex-basis: 24rem;
    }
}

@media (min-width: 640px) and (max-width: 991px) {
    .article-grid--archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .article-content .article-media-block--gallery .article-media-track {
        grid-template-columns: 1fr;
    }
}
