/**
 * Insights Hub page styles
 * ------------------------
 * Externalized from insights/index.html on 2026-06-20 (was 837 lines of
 * inline <style>). Cached now across navigations rather than re-parsed
 * with every visit, and main.css stays focused on global chrome.
 *
 * Scope: only loaded by /insights/ (the index/hub page) — individual
 * article pages have their own styling.
 */

        /* ============================================
           DESIGN SYSTEM (shared with main site)
           ============================================ */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --deep-navy: #0B1F3A;
            --dark-navy: #142F4F;
            --muted-gold: #C6A75E;
            --off-white: #F7F9FC;
            --charcoal: #1A1A1A;
            --light-border: rgba(11, 31, 58, 0.08);
            --gold-border: rgba(198, 167, 94, 0.3);
            --text-secondary: #4A5568;
            --text-tertiary: #6B7280;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--charcoal);
            background: var(--off-white);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', Georgia, serif;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.01em;
        }

        h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
        h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
        h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
        h4 { font-size: 1.125rem; }

        p {
            font-size: 1rem;
            line-height: 1.8;
            color: var(--text-secondary);
            max-width: 640px;
        }

        .label {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted-gold);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }

        /* ---- Nav ---- */
        .nav_LEGACY_DISABLED {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--deep-navy);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            transition: background 0.3s ease;
        }

        .nav_LEGACY__inner {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 64px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            gap: 32px;
        }

        .nav_LEGACY__logo {
            display: none;
        }

        .nav_LEGACY__logo img {
            height: 36px;
            width: auto;
        }

        .nav_LEGACY__logo-text {
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
            font-weight: 600;
            color: #FFFFFF;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .nav_LEGACY__links {
            display: flex;
            align-items: center;
            gap: 32px;
            list-style: none;
        }

        .nav_LEGACY__links a {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.65);
            text-decoration: none;
            letter-spacing: 0.04em;
            transition: color 0.2s ease;
        }

        .nav_LEGACY__links a:hover,
        .nav_LEGACY__links a.active {
            color: #FFFFFF;
        }

        .nav_LEGACY__actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nav_LEGACY__contact {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--muted-gold) !important;
            text-decoration: none;
            letter-spacing: 0.04em;
            border: 1px solid rgba(198, 167, 94, 0.4);
            padding: 7px 18px;
            transition: all 0.2s ease;
        }

        .nav_LEGACY__contact:hover {
            background: rgba(198, 167, 94, 0.08);
        }

        .nav_LEGACY__hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .nav_LEGACY__hamburger span {
            width: 22px;
            height: 1.5px;
            background: #FFFFFF;
            transition: all 0.3s ease;
        }

        /* ---- Page Hero ---- */
        .page-hero {
            background: var(--deep-navy);
            padding: 140px 0 80px;
            position: relative;
            overflow: hidden;
        }

        .page-hero .container {
            position: relative;
            z-index: 1;
        }

        .page-hero .label {
            margin-bottom: 20px;
        }

        .page-hero h1 {
            color: #FFFFFF;
            max-width: 600px;
        }

        .page-hero p {
            color: rgba(255, 255, 255, 0.5);
            margin-top: 20px;
            max-width: 520px;
        }

        .page-hero__img {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 45%;
            object-fit: cover;
            opacity: 0.15;
            mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
            -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
        }

        /* ---- Articles Grid ---- */
        .insights-section {
            padding: 80px 0;
            background: #FFFFFF;
            min-height: 400px;
        }

        .insights-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }

        .article-card {
            background: var(--off-white);
            border: 1px solid var(--light-border);
            padding: 32px;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            transition: all 0.25s ease;
        }

        .article-card:hover {
            border-color: var(--gold-border);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
        }

        .article-card__meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .article-card__date {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        .article-card__type {
            font-family: 'Inter', sans-serif;
            font-size: 0.625rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--muted-gold);
            background: rgba(198, 167, 94, 0.08);
            padding: 3px 10px;
            border: 1px solid rgba(198, 167, 94, 0.15);
        }

        .article-card__title {
            font-family: 'Playfair Display', Georgia, serif;
            font-size: 1.25rem;
            font-weight: 600;
            line-height: 1.3;
            color: var(--charcoal);
            margin-bottom: 12px;
            letter-spacing: -0.01em;
        }

        .article-card__desc {
            font-size: 0.875rem;
            line-height: 1.7;
            color: var(--text-secondary);
            flex: 1;
            max-width: none;
        }

        .article-card__tag {
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--light-border);
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            font-weight: 500;
            color: var(--text-tertiary);
            letter-spacing: 0.04em;
        }

        /* ---- Filter Tabs ---- */
        .insights-filters {
            display: flex;
            gap: 4px;
            justify-content: center;
            margin-bottom: 56px;
            border-bottom: 1px solid var(--light-border);
            padding-bottom: 0;
        }

        .insights-filter {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 16px 28px;
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            color: var(--text-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: -1px;
        }

        .insights-filter:hover { color: var(--deep-navy); }

        .insights-filter--active {
            color: var(--deep-navy);
            border-bottom-color: var(--muted-gold);
        }

        /* ---- Section Titles ---- */
        .insights-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--deep-navy);
            margin-bottom: 8px;
        }

        .insights-section-subtitle {
            font-size: 0.875rem;
            color: var(--text-tertiary);
            margin-bottom: 32px;
        }

        .insights-section-block {
            margin-bottom: 80px;
        }

        .insights-section-block:last-child { margin-bottom: 0; }

        /* ---- Publications ---- */
        .publications-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .publication-card {
            background: #FFFFFF;
            border: 1px solid var(--light-border);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .publication-card:hover {
            border-color: var(--muted-gold);
            box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
            transform: translateY(-2px);
        }

        .publication-card__cover {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 3;
            background: linear-gradient(135deg, var(--deep-navy) 0%, #142F4F 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .publication-card__cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .publication-card__cover-icon {
            color: rgba(198, 167, 94, 0.4);
            width: 48px;
            height: 48px;
        }

        .publication-card__cover-icon svg {
            width: 100%;
            height: 100%;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.2;
        }

        .publication-card__body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .publication-card__tag {
            display: inline-block;
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted-gold);
            background: rgba(198, 167, 94, 0.08);
            border: 1px solid rgba(198, 167, 94, 0.2);
            padding: 4px 10px;
            margin-bottom: 14px;
            align-self: flex-start;
        }

        .publication-card__title {
            font-family: 'Playfair Display', serif;
            font-size: 1.0625rem;
            font-weight: 600;
            color: var(--deep-navy);
            line-height: 1.4;
            margin-bottom: 10px;
        }

        .publication-card__date {
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-tertiary);
            margin-bottom: 12px;
        }

        .publication-card__desc {
            font-size: 0.8125rem;
            line-height: 1.6;
            color: var(--text-secondary);
            margin-bottom: 20px;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .publication-card__actions {
            display: flex;
            gap: 8px;
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid var(--light-border);
        }

        .publication-card__btn {
            flex: 1;
            padding: 10px 14px;
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-align: center;
            text-decoration: none;
            border: 1px solid var(--light-border);
            background: #FFFFFF;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .publication-card__btn:hover {
            border-color: var(--muted-gold);
            color: var(--deep-navy);
        }

        .publication-card__btn--primary {
            background: var(--deep-navy);
            color: #FFFFFF;
            border-color: var(--deep-navy);
        }

        .publication-card__btn--primary:hover {
            background: #0D2847;
            color: #FFFFFF;
        }

        .publication-card__btn svg {
            width: 12px;
            height: 12px;
        }

        @media (max-width: 1024px) {
            .publications-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 640px) {
            .publications-grid { grid-template-columns: 1fr; gap: 20px; }
            .insights-filters { gap: 0; }
            .insights-filter { padding: 12px 16px; font-size: 0.75rem; }
            .insights-section-title { font-size: 1.25rem; }
        }

        /* ---- Loading State ---- */
        .loading {
            text-align: center;
            padding: 80px 0;
        }

        .loading__spinner {
            display: inline-block;
            width: 32px;
            height: 32px;
            border: 2px solid var(--light-border);
            border-top-color: var(--muted-gold);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading__text {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            color: var(--text-tertiary);
            margin-top: 16px;
        }

        /* ---- Error State ---- */
        .error-state {
            text-align: center;
            padding: 80px 0;
        }

        .error-state__message {
            font-family: 'Inter', sans-serif;
            font-size: 0.9375rem;
            color: var(--text-secondary);
            margin-bottom: 24px;
            max-width: none;
        }

        .error-state__retry {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--muted-gold);
            background: none;
            border: 1px solid rgba(198, 167, 94, 0.4);
            padding: 10px 24px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .error-state__retry:hover {
            background: rgba(198, 167, 94, 0.08);
        }

        /* ---- Empty State ---- */
        .empty-state {
            text-align: center;
            padding: 80px 0;
        }

        .empty-state__message {
            font-family: 'Inter', sans-serif;
            font-size: 0.9375rem;
            color: var(--text-tertiary);
            max-width: none;
        }

        /* ---- Pagination ---- */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            margin-top: 64px;
            padding-top: 32px;
            border-top: 1px solid var(--light-border);
        }

        .pagination__btn {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--muted-gold);
            background: none;
            border: 1px solid rgba(198, 167, 94, 0.4);
            padding: 10px 24px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .pagination__btn:hover:not(:disabled) {
            background: rgba(198, 167, 94, 0.08);
        }

        .pagination__btn:disabled {
            color: var(--text-tertiary);
            border-color: var(--light-border);
            cursor: not-allowed;
            opacity: 0.5;
        }

        .pagination__info {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            color: var(--text-tertiary);
            letter-spacing: 0.02em;
        }

        /* ---- Footer ---- */
        .footer {
            background: #071526;
            padding: 48px 0 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }

        .footer__top {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 32px;
            margin-bottom: 32px;
        }

        .footer__brand-line {
            width: 32px;
            height: 1px;
            background: rgba(198, 167, 94, 0.3);
            margin-bottom: 24px;
        }

        .footer__brand-sub {
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            font-weight: 400;
            letter-spacing: 0.06em;
            color: rgba(255, 255, 255, 0.45);
            margin-bottom: 6px;
        }

        .footer__brand-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.375rem;
            font-weight: 600;
            color: #C8A96A;
            letter-spacing: 0.04em;
        }

        .footer__brand p {
            font-size: 0.8125rem;
            color: rgba(255, 255, 255, 0.35);
            max-width: 280px;
            margin-top: 16px;
            line-height: 1.7;
        }

        .footer__col h4 {
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 20px;
        }

        .footer__col ul {
            list-style: none;
        }

        .footer__col li {
            margin-bottom: 10px;
        }

        .footer__col a {
            font-size: 0.8125rem;
            color: rgba(255, 255, 255, 0.35);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer__col a:hover {
            color: rgba(255, 255, 255, 0.7);
        }

        .footer__bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }

        .footer__bottom p {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.25);
        }

        .footer__social {
            display: flex;
            gap: 20px;
        }

        .footer__social a {
            color: rgba(255, 255, 255, 0.3);
            text-decoration: none;
            font-size: 0.75rem;
            transition: color 0.2s ease;
        }

        .footer__social a:hover {
            color: rgba(255, 255, 255, 0.6);
        }

        /* ---- Responsive: 1024px ---- */
        @media (max-width: 1024px) {
            .insights-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }

            .footer__top {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }
        }

        /* ---- Responsive: 768px ---- */
        @media (max-width: 768px) {
            .container {
                padding: 0 24px;
            }

            .page-hero {
                padding: 110px 0 56px;
            }

            .page-hero__img {
                width: 100%;
                opacity: 0.08;
                mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
                -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
            }

            .insights-section {
                padding: 48px 0;
            }

            .insights-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .article-card {
                padding: 24px;
            }

            .nav_LEGACY__inner {
                justify-content: space-between;
            }

            .nav_LEGACY__links {
                display: none;
                position: fixed;
                top: 64px;
                left: 0;
                right: 0;
                background: var(--deep-navy);
                flex-direction: column;
                padding: 24px;
                gap: 0;
                border-top: 1px solid rgba(255, 255, 255, 0.06);
            }

            .nav_LEGACY__links.open {
                display: flex;
            }

            .nav_LEGACY__links li {
                width: 100%;
            }

            .nav_LEGACY__links a {
                display: block;
                padding: 12px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.04);
                font-size: 0.9375rem;
            }

            .nav_LEGACY__actions {
                gap: 8px;
            }

            .nav_LEGACY__contact {
                display: none;
            }

            .nav_LEGACY__hamburger {
                display: flex;
            }

            .footer__top {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .footer__bottom {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }

            .pagination {
                gap: 16px;
                margin-top: 40px;
            }

            .pagination__btn {
                padding: 8px 16px;
                font-size: 0.75rem;
            }
        }

/* Topic-cluster filter row — second filter dimension under the
   News/Publications type filter. Composes with the type filter so
   visitors can narrow to e.g. "Insights → Custody" in one move. */
.insights-filters--cluster {
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-top: 14px;
    border-top: 1px solid var(--light-border, #E8ECF1);
}
.insights-filters__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary, #718096);
    margin-right: 4px;
}
[dir="rtl"] .insights-filters__label {
    margin-right: 0;
    margin-left: 4px;
}
@media (max-width: 768px) {
    .insights-filters--cluster {
        gap: 6px 8px;
    }
    .insights-filters__label {
        flex-basis: 100%;
        margin-bottom: 4px;
    }
}


/* Show-more button under the Communications grid — appears when more
   posts exist than are currently rendered. Removes itself when all
   are displayed. */
.unified-comms__more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}
.unified-comms__more-btn {
    background: transparent;
    border: 1px solid var(--light-border, #E8ECF1);
    color: var(--deep-navy, #0B1F3A);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.18s var(--ease-snap, ease), border-color 0.18s var(--ease-snap, ease);
}
.unified-comms__more-btn:hover {
    background: rgba(11, 31, 58, 0.05);
    border-color: var(--muted-gold, #C6A75E);
}
.unified-comms__more-of {
    color: var(--text-tertiary, #718096);
    font-weight: 400;
    margin-left: 6px;
}
