/*
 * DP ARTICLE UPDATE
 * Pasek informujący o aktualizowaniu artykułu.
 */

.dp-article-update {
    --dp-update-navy: #01182a;
    --dp-update-red: #c0130e;
    --dp-update-muted: #566777;
    --dp-update-bg: #fff7f7;
    --dp-update-line: rgba(192, 19, 14, .18);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin: 24px 0 30px;
    padding: 20px 24px;
    border: 1px solid var(--dp-update-line);
    border-left: 5px solid var(--dp-update-red);
    border-radius: 8px;
    color: var(--dp-update-navy);
    background: var(--dp-update-bg);
    box-sizing: border-box;
}

.dp-article-update,
.dp-article-update *,
.dp-article-update *::before,
.dp-article-update *::after {
    box-sizing: border-box;
}

.dp-article-update__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.dp-article-update__dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--dp-update-red);
    box-shadow: 0 0 0 0 rgba(192, 19, 14, .45);
    animation: dp-article-update-pulse 1.8s ease-out infinite;
}

.dp-article-update__copy {
    min-width: 0;
}

.dp-article-update__title {
    display: block;
    margin: 0;
    color: var(--dp-update-red);
    font-family: 'Saira Condensed', Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.dp-article-update__text {
    margin: 7px 0 0;
    color: var(--dp-update-muted);
    font-size: 15px;
    line-height: 1.4;
}

.dp-article-update__time {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.dp-article-update__time span {
    display: block;
    color: #6d7b86;
    font-family: 'Saira Condensed', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .15px;
    text-transform: uppercase;
}

.dp-article-update__time strong {
    display: block;
    margin-top: 5px;
    color: var(--dp-update-red);
    font-family: 'Saira Condensed', Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

@keyframes dp-article-update-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 19, 14, .45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(192, 19, 14, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(192, 19, 14, 0);
    }
}

@media (max-width: 640px) {
    .dp-article-update {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin: 20px 0 26px;
        padding: 18px;
        border-radius: 0;
    }

    .dp-article-update__time {
        width: 100%;
        margin-left: 0;
        padding-top: 14px;
        border-top: 1px solid var(--dp-update-line);
        text-align: left;
    }

    .dp-article-update__title {
        font-size: 20px;
    }

    .dp-article-update__time strong {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dp-article-update__dot {
        animation: none;
    }
}
