/* Typography for /pl/news/ articles — calmer, news-portal reading layout.
 *
 * Scoped to <article class="news-article"> so older articles and the rest of
 * the site keep styles.css as is. Cached like styles.css: bump ?v= in the
 * pages that link it after every change.
 */

.news-article {
    --na-text: #1a1a1a;
    --na-muted: #6b7280;
    --na-rule: #e5e7eb;
    --na-accent: #00bf63;
    --na-alarm: #c62828;
    max-width: 46rem;
    color: var(--na-text);
    font-size: 1.125rem;
    line-height: 1.85;
}

.news-article h1 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Section headings: black and roomy instead of small green ones. */
.news-article h2,
.news-article h2.text-primary {
    color: var(--na-text) !important;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.75rem !important;
    margin-bottom: 1rem !important;
}

.news-article .lead {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 2rem;
}

.news-article p,
.news-article ul {
    margin-bottom: 1.5rem;
}

.news-article li {
    margin-bottom: 0.6rem;
}

.news-article li:last-child {
    margin-bottom: 0;
}

/* Links read as links in running text without the bright green. */
.news-article p a,
.news-article li a,
.news-article .read-also a {
    color: var(--na-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--na-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.news-article p a:hover,
.news-article li a:hover,
.news-article .read-also a:hover {
    color: #000;
    text-decoration-color: #000;
}

.news-article .alert {
    background: #f6f7f8;
    border-left: 4px solid var(--na-accent) !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
    color: var(--na-text);
    padding: 1.25rem 1.5rem;
    margin: 2.25rem 0 !important;
}

.news-article .read-also {
    margin: 2rem 0;
    font-size: 1.15rem;
    line-height: 1.6;
}

.news-article .read-also strong {
    display: block;
    margin-bottom: 0.4rem;
}

/* Footnotes (status line, sources) stay small but are no longer cramped. */
.news-article p.text-muted {
    line-height: 1.7;
}

/* ---- Event list (replaces wide tables) -------------------------------- */

.event-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1rem;
    border-top: 1px solid var(--na-rule);
}

.event-list li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 0;
    margin: 0;
    border-bottom: 1px solid var(--na-rule);
}

.event-list .event-toll {
    text-align: center;
    line-height: 1.1;
}

.event-list .event-toll strong {
    display: block;
    font-size: 1.9rem;
    color: var(--na-alarm);
}

.event-list .event-toll small {
    color: var(--na-muted);
    font-size: 0.8rem;
}

.event-list .event-meta {
    display: block;
    color: var(--na-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-list .event-title {
    display: block;
    font-weight: 600;
    line-height: 1.45;
}

/* ---- Related stories grid -------------------------------------------- */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.75rem 0;
}

.related-card {
    color: var(--na-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
}

.related-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 0.9rem;
    margin-bottom: 0.75rem;
}

.related-card:hover span {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .news-article {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .news-article .lead {
        font-size: 1.15rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .event-list li {
        grid-template-columns: 4.5rem 1fr;
    }
}
