/* ============================================================================
 * HEY LSIP — News listing + detail styling
 * Mirrors events.css conventions so the two surfaces feel like a set.
 * Loaded from Pages/_Host.cshtml; classes are scoped to .news-detail / .news-card
 * so they don't bleed into other pages.
 * ============================================================================ */

/* ── Detail page ──────────────────────────────────────────────────────────── */

.news-hero {
    position: relative;
    width: 100%;
    height: 360px;
    background-color: #14387a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.news-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 56, 122, 0.10) 0%, rgba(20, 56, 122, 0.55) 100%);
    pointer-events: none;
}

.news-detail {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    color: #2a2a2a;
}

.news-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-back:hover { color: #14387a; }

.news-detail h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    color: #14387a;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin: 1rem 0 1.75rem;
    padding: 0.9rem 1.1rem;
    background: #f6f6f1;
    border-radius: 6px;
    border-left: 4px solid #14387a;
    font-size: 0.9rem;
    color: #444;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.news-meta .material-symbols-outlined {
    font-size: 1.1rem;
    color: #14387a;
}

.news-meta-source a {
    color: #14387a;
    text-decoration: none;
    border-bottom: 1px dotted #14387a;
}

.news-meta-source a:hover { color: #d77c1a; border-bottom-color: #d77c1a; }

.news-category-chip {
    display: inline-block;
    padding: 2px 10px;
    background: #e6ecf5;
    color: #14387a;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.news-age-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.7rem 1rem;
    background: #fff3cd;
    border-left: 4px solid #d77c1a;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #5a3a00;
}

.news-age-banner .material-symbols-outlined {
    font-size: 1.1rem;
    color: #d77c1a;
}

.news-lede {
    font-size: 1.15rem;
    line-height: 1.55;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e3e1d8;
}

/* ── Body content: reset colors so chamber/sanitised HTML reads cleanly ── */

.news-body {
    color: #2a2a2a;
    line-height: 1.7;
    font-size: 1.02rem;
}

.news-body p,
.news-body li,
.news-body blockquote {
    color: #2a2a2a;
}

.news-body p {
    margin: 0 0 1.1rem;
}

.news-body a {
    color: #14387a;
    text-decoration: underline;
    text-decoration-color: rgba(20, 56, 122, 0.35);
    text-underline-offset: 2px;
}

.news-body a:hover {
    color: #d77c1a;
    text-decoration-color: #d77c1a;
}

.news-body h2,
.news-body h3,
.news-body h4 {
    color: #14387a;
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.news-body h2 { font-size: 1.5rem; }
.news-body h3 { font-size: 1.25rem; }
.news-body h4 { font-size: 1.1rem; }

.news-body ul,
.news-body ol {
    margin: 0 0 1.1rem 0;
    padding-left: 1.4rem;
}

.news-body li {
    margin: 0.35rem 0;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.25rem 0;
    display: block;
}

.news-body .article-caption,
.news-body .page-image + p {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: -0.5rem 0 1.25rem;
    text-align: center;
}

.news-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #d77c1a;
    background: #f6f6f1;
    font-style: italic;
    color: #1a1a1a;
}

.news-body strong { color: #1a1a1a; }

/* The chamber's source attribution para at the end of every imported article */
.chamber-attribution {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e3e1d8;
    font-size: 0.88rem;
    color: #555;
}

.chamber-attribution a {
    color: #14387a;
    font-weight: 500;
}

/* ── Share + CTA rows on the detail page ──────────────────────────────── */

.news-share-row {
    margin: 2.25rem 0 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e3e1d8;
}

.news-cta-row {
    margin: 2.5rem 0 0;
    padding: 1.5rem;
    background: #f6f6f1;
    border-radius: 8px;
    text-align: center;
}

.news-cta-row a.button {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: #14387a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.15s;
}

.news-cta-row a.button:hover { background: #d77c1a; }

/* ── Listing page card refinements (works with the existing Radzen grid) ── */

.news-listing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e1d8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    height: 100%;
}

.news-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 56, 122, 0.08);
}

.news-listing-card .news-listing-image {
    aspect-ratio: 16 / 9;
    background-color: #f6f6f1;
    background-size: cover;
    background-position: center;
}

.news-listing-card .news-listing-body {
    padding: 1rem 1.1rem 1.25rem;
}

.news-listing-card .news-listing-date {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.news-listing-card .news-listing-title {
    font-size: 1.1rem;
    color: #14387a;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.news-listing-card .news-listing-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── News listing — filter chips + featured card ─────────────────────── */

.news-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--lsip-line, #e3e1d8);
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--lsip-line, #e3e1d8);
    background: white;
    color: var(--lsip-text-muted, #555);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.news-filter-chip:hover {
    border-color: var(--lsip-brand, #14387a);
    color: var(--lsip-brand, #14387a);
}

.news-filter-chip.is-active {
    background: var(--lsip-brand, #14387a);
    border-color: var(--lsip-brand, #14387a);
    color: white;
}

/* Featured top card — full-width, image left, body right */
.news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 0;
    background: white;
    border: 1px solid var(--lsip-line, #e3e1d8);
    border-radius: var(--lsip-radius, 8px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, box-shadow 0.18s;
}

.news-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 56, 122, 0.1);
    color: inherit;
}

.news-featured__img {
    min-height: 320px;
    background-color: var(--lsip-paper, #f6f6f1);
    background-size: cover;
    background-position: center;
}

.news-featured__body {
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
}
.news-featured__body > * { min-width: 0; max-width: 100%; }

.news-featured__title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: var(--lsip-brand, #14387a);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}

.news-featured:hover .news-featured__title {
    color: var(--lsip-accent, #d77c1a);
}

.news-featured__preview {
    color: var(--lsip-text-muted, #555);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.news-featured__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lsip-text-soft, #777);
    margin-top: 0.5rem;
}

.news-featured__meta .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--lsip-brand, #14387a);
}

@media (max-width: 800px) {
    .news-featured {
        grid-template-columns: 1fr;
    }
    .news-featured__img {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }
    .news-featured__body {
        padding: 1.25rem 1.5rem;
    }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .news-hero { height: 220px; }
    .news-detail { padding: 1.5rem 1rem 2rem; }
    .news-meta-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .news-body { font-size: 0.98rem; }
}
