/* ========================================================================== 
   Aferoteka — Aktualizacje
   /aktualizacje

   Layout-specific layer only. Typography, hero, pagination, update disclosure,
   sidebar and entity rows reuse the existing Directory Listing / Case Detail
   systems. No user-facing text below 14px.
   ========================================================================== */

.updates-page {
    --case-detail-scroll-offset: 112px;
}

.updates-main {
    padding-top: 44px;
}

.updates-feed {
    min-width: 0;
}

.updates-day {
    scroll-margin-top: var(--case-detail-scroll-offset);
}

.updates-day + .updates-day {
    margin-top: 48px;
}

.updates-day-head {
    margin-bottom: 16px;
}

.updates-day-head h2,
.updates-day-head p {
    margin: 0;
}

.updates-day-head p {
    margin-top: 6px;
}

.updates-day-cards {
    display: grid;
    gap: 14px;
}

.updates-card {
    min-width: 0;
}

.updates-card--compact {
    padding-block: 22px;
}

.updates-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.updates-card-topline--date-only {
    justify-content: flex-end;
}

.updates-type {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.updates-type .case-detail-update-live-dot {
    margin-top: 0;
}

.updates-type-label {
    color: var(--color-accent, var(--accent));
}

.updates-card .updates-card-title {
    max-width: 820px;
    margin: 10px 0 0;
}

.updates-card-title a:hover {
    color: var(--color-accent, var(--accent));
}

.updates-card-meta {
    margin: 9px 0 0;
}

.updates-card-description {
    max-width: 810px;
    margin: 16px 0 0;
}


.updates-page .directory-listing-hero-copy p {
    max-width: none;
}

.updates-card-head-row .updates-card-title,
.updates-card-title--head-row {
    max-width: 790px;
    margin: 0;
}

.updates-card .case-detail-update-date {
    margin: 0;
}

.updates-card--with-entities {
    display: flex;
    flex-direction: column;
}

.updates-card--with-entities .weekly-report-card-entities {
    margin-top: 18px;
    padding-top: 0;
}

.case-detail-section .case-detail-support-callout {
    margin-top: var(--case-detail-card-gap);
    margin-bottom: 0;
}

.case-detail-support-callout--light {
    background: #fff;
}

.case-detail-support-callout--light .case-detail-support-copy h2,
.case-detail-support-callout--light .case-detail-support-copy p {
    color: var(--color-text-primary);
}

.case-detail-support-callout--light .case-detail-support-copy p {
    color: var(--color-text-secondary);
}

.case-detail-support-button--accent {
    background: var(--color-accent, var(--accent));
    color: #fff !important;
}

.case-detail-support-button--accent:hover {
    background: var(--color-accent-hover, #a61d29);
    color: #fff !important;
}

.updates-card--compact .updates-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.updates-case-context {
    margin: 16px 0 0;
}

.updates-case-context > span {
    margin-right: 4px;
}

.updates-package-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}


.updates-sidebar-heading {
    display: block;
    margin: 0 0 8px;
    color: var(--color-text-primary);
}

.updates-day-link {
    justify-content: space-between;
    gap: 14px;
}

.updates-day-link > span:first-child {
    min-width: 0;
}

.updates-sidebar-count {
    flex: 0 0 auto;
}

.updates-sidebar .case-detail-sidebar-nav:last-child {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .updates-main {
        padding-top: 34px;
    }

    .updates-day + .updates-day {
        margin-top: 38px;
    }

    .updates-day-head {
        margin-bottom: 13px;
    }

    .updates-day-cards {
        gap: 12px;
    }

    .updates-card,
    .updates-card--compact {
        padding: 22px 20px;
    }

    .updates-card-topline {
        gap: 12px;
    }

    .updates-card-description {
        margin-top: 14px;
    }

    .updates-card-head-row .updates-card-title,
    .updates-card-title--head-row {
        max-width: none;
    }

    .updates-card--with-entities .weekly-report-card-entities {
        margin-top: 16px;
    }


    .updates-page .case-detail-update-disclosure summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .updates-page .case-detail-update-compact-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Wsparcie po drugim najnowszym dniu ------------------------------------ */
.updates-support-card {
    background: #de330d;
}

.updates-support-copy h2,
.updates-support-copy p {
    color: #fff;
}

.updates-support-copy h2 {
    margin: 0;
}

.updates-support-copy p {
    max-width: 810px;
    margin: 16px 0 0;
}

.updates-support-button {
    margin-top: 20px;
}

@media (max-width: 640px) {
    .updates-support-card {
        padding: 22px 20px;
    }

    .updates-support-copy p {
        margin-top: 14px;
    }

    .updates-support-button {
        margin-top: 18px;
    }
}
