/**
 * RPNL CSS MODULE: ARTICLE COMPONENTS
 *
 * Spis treści, podsumowanie, udostępnianie, podobne i najnowsze artykuły.
 *
 * Źródło: main.css z motywu RPNL v1.5.5.
 * Moduł nie jest jeszcze ładowany przez functions.php.
 */

/* =========================================================
   ARTYKUŁ — „W SKRÓCIE”
   ========================================================= */

.rpnl-article-summary {
    width: 100%;
    max-width: 1150px;
    margin: 28px 0 34px;
    padding: 24px 26px;
    background: #f5f8fc;
    border: 1px solid #dce4ec;
    border-left: 4px solid #e30613;
    border-radius: 12px;
}

.rpnl-article-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.rpnl-article-summary__title {
    margin: 0;
    color: #0b2d4d;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.rpnl-article-summary__time {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #617386;
    background: #ffffff;
    border: 1px solid #dce4ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.rpnl-article-summary__list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpnl-article-summary__item {
    position: relative;
    margin: 0;
    padding-left: 25px;
    color: #25384b;
    font-size: 16px;
    line-height: 1.55;
}

.rpnl-article-summary__item::before {
    position: absolute;
    top: 0.65em;
    left: 2px;
    width: 8px;
    height: 8px;
    background: #1677ff;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

/* Przycisk jest pokazywany przez JS wyłącznie na mobile */

.rpnl-article-summary__button {
    display: none;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 18px;
    color: #ffffff;
    background: #e30613;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.rpnl-article-summary__button:hover,
.rpnl-article-summary__button:focus-visible {
    color: #ffffff;
    background: #bd0510;
}

.rpnl-article-summary__button:hover {
    transform: translateY(-1px);
}

.rpnl-article-summary__button:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.2);
    outline-offset: 3px;
}

.rpnl-article-summary__button-arrow {
    font-size: 18px;
    line-height: 1;
}

/*
 * Atrybut hidden ma zawsze pierwszeństwo.
 * Pełny artykuł jest ukrywany dopiero przez działający JS.
 */

.rpnl-article__full[hidden] {
    display: none;
}


/* =========================================================
   ARTYKUŁ — „W SKRÓCIE” MOBILE
   ========================================================= */

@media (max-width: 820px) {
    .rpnl-article-summary {
        margin: 22px 0 28px;
        padding: 20px 18px;
        border-radius: 10px;
    }

    .rpnl-article-summary__header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .rpnl-article-summary__title {
        font-size: 20px;
    }

    .rpnl-article-summary__time {
        padding: 5px 9px;
        font-size: 11px;
    }

    .rpnl-article-summary__list {
        gap: 10px;
    }

    .rpnl-article-summary__item {
        padding-left: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

    /*
     * JS usuwa atrybut hidden z przycisku dopiero,
     * gdy pełna treść została prawidłowo znaleziona.
     */
    .rpnl-article-summary__button:not([hidden]) {
        display: flex;
    }
}



/* =========================================================
   SUBTELNA REKLAMA NAD ARTYKUŁEM
   ========================================================= */

.rpnl-article-ad--top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    margin: 0 0 28px;
    border-bottom: 1px solid #dce4ec;
}

.rpnl-article-ad__label {
    color: #8a9aaa;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* =========================================================
   SUBTELNA REKLAMA NA KOŃCU ARTYKUŁU
   ========================================================= */

.rpnl-article-ad--bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 96px;
    margin-top: 40px;
    border-top: 1px solid #dce4ec;
    border-bottom: 1px solid #dce4ec;
}
/* =========================================================
   UDOSTĘPNIANIE ARTYKUŁU
   ========================================================= */

.rpnl-share {
    margin-top: 32px;
    padding: 26px 28px;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #f7f9fc;
}

.rpnl-share__title {
    margin: 0 0 18px;
    color: #0b2d4d;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.rpnl-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rpnl-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.rpnl-share__button:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.rpnl-share__button--facebook {
    background: #1877f2;
}

.rpnl-share__button--facebook:hover {
    background: #0f63d6;
}

.rpnl-share__button--whatsapp {
    background: #128c4b;
}

.rpnl-share__button--whatsapp:hover {
    background: #0d733d;
}

.rpnl-share__button--copy {
    background: #0b2d4d;
}

.rpnl-share__button--copy:hover {
    background: #061f36;
}

.rpnl-share__status {
    min-height: 20px;
    margin: 10px 0 0;
    color: #617386;
    font-size: 13px;
    line-height: 1.4;
}
/* =========================================================
   PRZECZYTAJ TAKŻE
   ========================================================= */

.rpnl-related {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #dce4ec;
}

.rpnl-related__header {
    margin-bottom: 22px;
}

.rpnl-related__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #e30613;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rpnl-related__title {
    margin: 0;
    color: #0b2d4d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.rpnl-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rpnl-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rpnl-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 45, 77, 0.09);
}

.rpnl-related-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eaf0f6;
}

.rpnl-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.rpnl-related-card:hover .rpnl-related-card__image {
    transform: scale(1.025);
}

.rpnl-related-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #617386;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.rpnl-related-card__content {
    padding: 18px;
}

.rpnl-related-card__category {
    display: inline-block;
    margin-bottom: 8px;
    color: #e30613;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.rpnl-related-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.rpnl-related-card__title a {
    color: #0b2d4d;
    text-decoration: none;
}

.rpnl-related-card__title a:hover {
    color: #1677ff;
}

.rpnl-related-card__date {
    color: #718196;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .rpnl-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rpnl-related {
        margin-top: 36px;
        padding-top: 28px;
    }

    .rpnl-related__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rpnl-related__title {
        font-size: 25px;
    }
}
/* =========================================================
   NAJNOWSZE WIADOMOŚCI POD ARTYKUŁEM
   ========================================================= */

.rpnl-latest {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #dce4ec;
}

.rpnl-latest__header {
    margin-bottom: 22px;
}

.rpnl-latest__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #e30613;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rpnl-latest__title {
    margin: 0;
    color: #0b2d4d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.rpnl-latest__list {
    overflow: hidden;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #ffffff;
}

.rpnl-latest-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 12px 16px 12px 12px;
    border-bottom: 1px solid #e5ebf1;
}

.rpnl-latest-item:last-child {
    border-bottom: 0;
}

.rpnl-latest-item__image-link {
    display: block;
    width: 88px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: #eaf0f6;
}

.rpnl-latest-item__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.25s ease;
}

.rpnl-latest-item:hover .rpnl-latest-item__image {
    transform: scale(1.04);
}

.rpnl-latest-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #617386;
    font-size: 12px;
    font-weight: 800;
}

.rpnl-latest-item__content {
    min-width: 0;
}

.rpnl-latest-item__category {
    display: block;
    margin-bottom: 5px;
    color: #e30613;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.rpnl-latest-item__title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rpnl-latest-item__title a {
    color: #0b2d4d;
    text-decoration: none;
}

.rpnl-latest-item__title a:hover {
    color: #1677ff;
}

.rpnl-latest-item__date {
    color: #718196;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .rpnl-latest-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .rpnl-latest-item__image-link {
        width: 76px;
        height: 58px;
    }

    .rpnl-latest-item__date {
        display: none;
    }

    .rpnl-latest-item__title {
        font-size: 15px;
    }

    .rpnl-latest__title {
        font-size: 25px;
    }
}
