/**
 * SIGMIX News Hub & Article Styles v2.0
 * /css/news.css
 * Mobile-first financial news display
 * Matches learn.css design system
 */

/* ============================================
   1. CSS VARIABLES (inherited from global)
   ============================================ */
:root {
    --primary: #070078;
    --primary-light: #1a1a8c;
    --accent: #10B981;
    --accent-dark: #0ea271;
    --dark: #1a1a2e;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --off-white: #F9FAFB;
    --white: #FFFFFF;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --green: #10B981;
    --green-light: #D1FAE5;
    --amber: #F59E0B;
    --amber-light: #FEF3C7;
    --blue: #3B82F6;
    --blue-light: #DBEAFE;
    --news-max-width: 1200px;
    --article-max-width: 780px;
}

/* ============================================
   2. UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.header-spacer {
    height: 70px;
}

/* ============================================
   3. NEWS HUB — HERO
   ============================================ */
.news-hub__hero {
    padding: 2rem 0 1.5rem;
    background: linear-gradient(135deg, var(--off-white) 0%, #EEF2FF 100%);
    border-bottom: 1px solid var(--gray-200);
}

.news-hub__hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.news-hub__subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
    max-width: 600px;
}

/* RTL hero */
.news-hub--rtl .news-hub__hero h1,
.news-hub--rtl .news-hub__subtitle {
    text-align: right;
}

/* ============================================
   4. NEWS HUB — FILTER PILLS
   ============================================ */
.news-hub__filters {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.news-hub__type-pills {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-hub__type-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(7, 0, 120, 0.04);
}

.pill--active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.pill--active:hover {
    color: var(--white);
    background: var(--primary-light);
}

/* RTL pills */
.news-hub--rtl .news-hub__type-pills {
    flex-direction: row-reverse;
}

/* ============================================
   5. NEWS HUB — ARTICLES GRID
   ============================================ */
.news-hub__articles {
    padding: 2rem 0;
    background: var(--off-white);
    min-height: 400px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.news-grid__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
    font-size: 0.95rem;
}

/* News card (populated by JS) */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(7, 0, 120, 0.1);
}

.news-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--gray-200);
}

.news-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.news-card__headline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__summary {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: auto;
}

.news-card__meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card__ticker {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: var(--blue-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
}

/* ============================================
   6. NEWS HUB — PAGINATION
   ============================================ */
.news-hub__pagination {
    text-align: center;
    padding-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-light);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   7. ARTICLE PAGE — BREADCRUMBS
   ============================================ */
.news-article__breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.news-article__breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.news-article__breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.news-article__breadcrumbs li::before {
    display: none;
}

.news-article__breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--gray-light);
    margin: 0 0.5rem;
}

.news-article__breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.news-article__breadcrumbs a:hover {
    color: var(--primary);
}

.news-article__breadcrumbs li:last-child span {
    color: var(--dark);
    font-weight: 600;
}

.news-article__breadcrumbs meta {
    display: none;
}

/* RTL breadcrumbs */
.news-article--rtl .news-article__breadcrumbs ol {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.news-article--rtl .news-article__breadcrumbs li:not(:last-child)::after {
    content: '\\';
    margin: 0 0.5rem;
}

/* ============================================
   8. ARTICLE PAGE — HEADER
   ============================================ */
.news-article .container {
    max-width: var(--article-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.news-article__header {
    margin-bottom: 2rem;
}

.news-article__type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    color: var(--white);
    background: var(--primary);
}

.news-article__type-badge--daily_close { background: var(--blue); }
.news-article__type-badge--wire { background: var(--red); }
.news-article__type-badge--event_quant { background: #7C3AED; }
.news-article__type-badge--earnings_intel { background: var(--green); }
.news-article__type-badge--regime_shift { background: var(--amber); color: var(--dark); }
.news-article__type-badge--week_ahead { background: #6366F1; }
.news-article__type-badge--us_transmission { background: #0891B2; }
.news-article__type-badge--microstructure_flash { background: #DB2777; }

.news-article__regime-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    background: var(--amber-light);
    color: #92400E;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
}

.news-article--rtl .news-article__regime-badge {
    margin-left: 0;
    margin-right: 0.5rem;
}

.news-article__header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 1rem;
}

.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.news-article__meta time {
    font-weight: 500;
}

.news-article__reading-time,
.news-article__word-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-article__reading-time::before,
.news-article__word-count::before {
    content: '·';
    color: var(--gray-light);
    margin-right: 0;
}

.news-article__ticker-link {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: var(--blue-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.news-article__ticker-link:hover {
    background: rgba(7, 0, 120, 0.15);
}

.news-article__summary {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ============================================
   9. ARTICLE PAGE — HERO IMAGE
   ============================================ */
.news-article__hero-image {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.news-article__hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   10. ARTICLE PAGE — CHARTS
   ============================================ */
.news-article__charts {
    margin-bottom: 2rem;
}

.news-article__chart {
    margin: 0 0 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.news-article__chart img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   11. ARTICLE PAGE — BODY
   ============================================ */
.news-article__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 2rem;
}

.news-article__body p {
    margin: 0 0 1.25rem;
}

.news-article__body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.news-article__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.5rem;
    line-height: 1.3;
}

.news-article__body ul,
.news-article__body ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}

.news-article--rtl .news-article__body ul,
.news-article--rtl .news-article__body ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

.news-article__body li {
    margin-bottom: 0.5rem;
}

.news-article__body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(7, 0, 120, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.news-article__body a:hover {
    text-decoration-color: var(--primary);
}

.news-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.news-article__body th {
    background: var(--off-white);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.news-article--rtl .news-article__body th {
    text-align: right;
}

.news-article__body td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.news-article__body tr:last-child td {
    border-bottom: none;
}

.news-article__body strong {
    font-weight: 700;
    color: var(--dark);
}

/* ============================================
   12. ARTICLE PAGE — SIGMIX QUOTE
   ============================================ */
.news-article__sigmix-quote {
    background: linear-gradient(135deg, rgba(7, 0, 120, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 0 0 2rem;
}

.news-article--rtl .news-article__sigmix-quote {
    border-left: none;
    border-right: 4px solid var(--primary);
    border-radius: 10px 0 0 10px;
}

.news-article__sigmix-quote p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.7;
    margin: 0 0 0.5rem;
    font-style: italic;
}

.news-article__sigmix-quote cite {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: normal;
    font-weight: 600;
}

/* ============================================
   13. ARTICLE PAGE — DISCLAIMER
   ============================================ */
.news-article__disclaimer {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 2rem;
}

.news-article__disclaimer p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   14. ARTICLE PAGE — TAGS & TICKERS
   ============================================ */
.news-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.news-article__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(7, 0, 120, 0.06);
    border: 1px solid rgba(7, 0, 120, 0.12);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-article__tag:hover {
    background: rgba(7, 0, 120, 0.1);
    border-color: var(--primary);
}

.news-article__tickers {
    margin-bottom: 2rem;
}

.news-article__tickers h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-article__tickers a {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    margin: 0 0.4rem 0.4rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--blue-light);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.news-article--rtl .news-article__tickers a {
    margin: 0 0 0.4rem 0.4rem;
}

.news-article__tickers a:hover {
    background: rgba(7, 0, 120, 0.12);
}

/* ============================================
   15. ARTICLE PAGE — INTERNAL LINKS
   ============================================ */
.news-article__internal-links {
    margin-bottom: 1.5rem;
}

.news-article__internal-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1rem;
    background: rgba(7, 0, 120, 0.04);
    border: 1px solid rgba(7, 0, 120, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.news-article__internal-links a:hover {
    background: rgba(7, 0, 120, 0.08);
    border-color: var(--primary);
}

/* ============================================
   16. ARTICLE PAGE — LANGUAGE SWITCH
   ============================================ */
.news-article__lang-switch {
    margin-bottom: 2rem;
    text-align: center;
}

.news-article__lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-article__lang-switch a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   17. ARTICLE PAGE — RELATED ARTICLES
   ============================================ */
.news-article__related {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.news-article__related h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 1rem;
}

.news-article__related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-article__related li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.news-article__related li:last-child {
    border-bottom: none;
}

.news-article__related a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-article__related a:hover {
    color: var(--primary);
}

.news-article__related time {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 0.25rem;
}

/* ============================================
   18. ARTICLE PAGE — NEWSLETTER CTA
   ============================================ */
.news-article__newsletter-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a5c 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 2rem 0 3rem;
}

.news-article__newsletter-cta h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.news-article__newsletter-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.news-article__newsletter-cta .btn--primary {
    background: var(--accent);
    color: var(--white);
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
}

.news-article__newsletter-cta .btn--primary:hover {
    background: var(--accent-dark);
}

/* ============================================
   19. ERROR / EMPTY STATE
   ============================================ */
.news-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.news-grid__empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
}

.news-grid__empty p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ============================================
   20. RESPONSIVE — MOBILE FIRST
   ============================================ */
@media (min-width: 480px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .news-hub__hero h1 {
        font-size: 2rem;
    }

    .news-hub__subtitle {
        font-size: 1.05rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .news-article__header h1 {
        font-size: 2rem;
    }

    .news-article__summary {
        font-size: 1.15rem;
    }

    .news-article__body {
        font-size: 1.1rem;
    }

    .news-article__newsletter-cta {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .news-hub__hero {
        padding: 2.5rem 0 2rem;
    }

    .news-hub__hero h1 {
        font-size: 2.25rem;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-article__header h1 {
        font-size: 2.25rem;
    }

    .news-article__body {
        font-size: 1.125rem;
        line-height: 1.85;
    }
}

/* ============================================
   21. RTL OVERRIDES
   ============================================ */
.news-hub--rtl,
.news-article--rtl {
    direction: rtl;
    text-align: right;
}

.news-article--rtl .news-article__meta {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.news-article--rtl .news-article__reading-time::before,
.news-article--rtl .news-article__word-count::before {
    margin-left: 0;
    margin-right: 0;
}

.news-article--rtl .news-article__tags {
    flex-direction: row-reverse;
}

.news-article--rtl .news-article__newsletter-cta p {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   22. CONTAINER
   ============================================ */
.news-hub .container {
    max-width: var(--news-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   23. PRINT STYLES
   ============================================ */
@media print {
    .news-hub__filters,
    .news-article__lang-switch,
    .news-article__newsletter-cta,
    .news-hub__pagination {
        display: none !important;
    }

    .news-article__body {
        font-size: 12pt;
        line-height: 1.6;
    }

    .news-article .container {
        max-width: 100%;
    }
}

/* ============================================
   24. FOOTER & Z-INDEX
   ============================================ */
.news-hub__articles,
.news-hub__filters {
    position: relative;
    clear: both;
    overflow: visible;
}

.news-grid {
    position: relative;
    z-index: 1;
    overflow: visible;
}

footer {
    position: relative;
    z-index: 20;
    clear: both;
}

/* ============================================
   PATCH: Disclaimer + Tags contrast fix
   ============================================ */

/* Disclaimer box */
.news-article__disclaimer {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
}

.news-article__disclaimer p {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* Tags section */
.news-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #E5E7EB;
}

.news-article__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-article__tag:hover {
    color: #070078;
    background: #EEF2FF;
    border-color: #C7D2FE;
}

/* Tickers row */
.news-article__tickers {
    margin-bottom: 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #E5E7EB;
}

.news-article__tickers h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6B7280;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-article__tickers a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    margin: 0 0.4rem 0.4rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E40AF;
    background: #DBEAFE;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-article__tickers a:hover {
    background: #BFDBFE;
    color: #1E3A8A;
}

/* Sigmix quote */
.news-article__sigmix-quote {
    background: #F8F7FF;
    border-left: 4px solid #070078;
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 0 0 2rem;
}

.news-article--rtl .news-article__sigmix-quote {
    border-left: none;
    border-right: 4px solid #070078;
    border-radius: 10px 0 0 10px;
}

.news-article__sigmix-quote p {
    font-size: 1rem;
    color: #1a1a2e;
    line-height: 1.7;
    margin: 0 0 0.5rem;
    font-style: italic;
}

.news-article__sigmix-quote cite {
    font-size: 0.8rem;
    color: #6B7280;
    font-style: normal;
    font-weight: 600;
}

/* Newsletter CTA — ensure it stands alone */
.news-article__newsletter-cta {
    background: linear-gradient(135deg, #070078 0%, #1a1a5c 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2.5rem 0 3rem;
}

.news-article__newsletter-cta h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.5rem;
}

.news-article__newsletter-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.news-article__newsletter-cta .btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-article__newsletter-cta .btn--primary:hover {
    background: #0ea271;
}

/* ============================================
   PATCH v2: Footer element override + hub fixes
   ============================================ */

/* CRITICAL: Override global footer{} styles on article tags
   The site footer.php uses "footer" element selector which
   bleeds into <footer class="news-article__tags"> */
footer.news-article__tags {
    background: none !important;
    background-color: transparent !important;
    color: inherit !important;
    padding: 1.25rem 0 0 !important;
    margin: 0 0 2rem !important;
    border-top: 1px solid #E5E7EB;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

footer.news-article__tags a.news-article__tag {
    color: #374151 !important;
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 100px !important;
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    margin: 0 !important;
    transition: all 0.2s ease;
}

footer.news-article__tags a.news-article__tag:hover {
    color: #070078 !important;
    background: #EEF2FF !important;
    border-color: #C7D2FE !important;
    padding-left: 0.85rem !important; /* prevent footer hover indent */
}

/* Hub: prevent cards from going under sticky header/filters */
.news-hub__filters {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.news-hub__articles {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    background: #F9FAFB;
    min-height: 60vh;
}

/* Hub: news card image + fallback */
.news-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #070078 0%, #1a1a5c 60%, #10B981 100%);
    overflow: hidden;
    position: relative;
}

.news-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback overlay when no image */
.news-card__image-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #070078 0%, #1a1a5c 60%, #10B981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-card__image-fallback::after {
    content: 'Σ';
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: -0.02em;
}

/* Hub card type label colors */
.news-card__type--daily_close { color: #3B82F6; }
.news-card__type--wire { color: #EF4444; }
.news-card__type--event_quant { color: #7C3AED; }
.news-card__type--earnings_intel { color: #10B981; }
.news-card__type--regime_shift { color: #F59E0B; }
.news-card__type--week_ahead { color: #6366F1; }
.news-card__type--us_transmission { color: #0891B2; }
.news-card__type--microstructure_flash { color: #DB2777; }

/* Pill active state — ensure contrast */
.pill--active {
    color: #FFFFFF !important;
    background: #070078 !important;
    border-color: #070078 !important;
}
