/*-------------------------------------------------------------------------------------------------*/
/* Shared article components */
/*-------------------------------------------------------------------------------------------------*/

.article-date-block {
    margin-bottom: 30px;
}

.article-date-block .datum {
    margin: 0 0 2px 0;
}

.article-date-block .article-subtitle {
    margin: 0;
}

.article-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0 0 22px 0;
}

.article-excerpt {
    margin: 16px 0 20px 0;
    line-height: 1.5;
    opacity: 0.9;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.article-meta-badge,
.article-content-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--article-accent-border);
}

.article-meta-badge {
    font-weight: 800;
    background: var(--article-accent-bg-strong);
    border-color: var(--article-accent-border-strong);
}

.article-section-badge {
    font-weight: 800;
    background: var(--article-accent-bg-strong);
    border: 2px solid var(--article-accent-border-strong);
}

.article-type-badge {
    font-weight: 800;
    color: var(--badge-text-color);
    background: var(--badge-bg-color);
    border: 2px solid var(--badge-border-color);
}

.article-content-tag {
    font-weight: 500;
    background: var(--article-accent-bg);
    border: 1px dashed var(--article-accent-border);
}

.article-back-link-container {
    text-align: center;
    margin-top: 40px;
}

.article-back-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    background: rgba(204, 0, 255, 0.15);
    border: 1px solid rgba(204, 0, 255, 0.45);
}

.article-back-link:hover {
    transform: scale(1.03);
}

.articles-overview-link-container {
    text-align: center;
    margin: 0px 0 30px 0;
    padding-bottom: 50px;
    padding-top: 0px;
}

.articles-overview-link {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    background: var(--button-bg-color);
    border: 1px solid var(--button-border-color);
    color: var(--button-text-color);
}

.articles-overview-link:hover {
    transform: scale(1.03);
}

.article-back-link,
.articles-overview-link {
    background: var(--button-bg-color);
    border: 1px solid var(--button-border-color);
    color: var(--button-text-color);
}

.article-images {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    /*justify-content: flex-start;*/
    justify-content: center;
}

.article-images img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    display: block;
    padding: 6px;
    border: 1px solid var(--card-border-color);
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 25% 20%,
            var(--article-accent-bg),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            var(--card-highlight-color),
            transparent
        ),
        var(--card-bg-color);
    object-fit: contain;
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/*-------------------------------------------------------------------------------------------------*/
/* Article links */
/*-------------------------------------------------------------------------------------------------*/

.article-links {
    clear: both;
    width: min(820px, 100%);
    margin: 28px auto 4px auto;
    padding: 14px 0 0 0;
    border: 0;
    border-top: 1px solid var(--article-accent-border);
    border-radius: 0;
    background: transparent;
}

.article-links-title {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: left;
    color: var(--article-title-color);
}

.article-links-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.news-article .text .article-external-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--article-accent-border);
    border-radius: 10px;
    color: var(--card-text-color);
    background: var(--article-accent-bg);
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    text-align: left;
    overflow-wrap: anywhere;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.news-article .text .article-external-link:hover {
    transform: translateX(3px);
    background: var(--article-accent-bg-strong);
    border-color: var(--article-accent-border-strong);
}

.article-external-link-icon {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.news-article .text .article-inline-link {
    color: var(--article-title-color);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.news-article .text .article-inline-link:hover {
    text-decoration-thickness: 2px;
}

/*-------------------------------------------------------------------------------------------------*/
/* Animated article buttons */
/*-------------------------------------------------------------------------------------------------*/
.articles-overview-link,
.start-page-read-more-link,
.blog-read-more-link {
    position: relative;
    overflow: hidden;
}

.articles-overview-link::before,
.start-page-read-more-link::before,
.blog-read-more-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -70px;
    width: 70px;
    height: 2px;
    border-radius: 999px;
    background:
        var(--site-heading-line-gradient);
    animation:
        button-light-sweep 2.8s linear infinite;
}

@keyframes button-light-sweep {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(360px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .articles-overview-link::before,
    .start-page-read-more-link::before,
    .blog-read-more-link::before {
        animation: none;
    }
}

@media screen and (max-width: 600px) {

    .article-links {
        width: 100%;

        margin-top: 24px;
        padding-top: 12px;
    }

    .article-links-title {
        margin-bottom: 9px;
    }

    .news-article .text .article-external-link {
        padding: 9px 11px;
    }
}