/* @docs articles.css - cards, lists and detail layouts for content surfaces: player cards/detail, advisor-cat tiles, tender cards, article-detail body + hero, news/article card grid, /articles index, /glossary index, article-bottom (takeaways/terms/actions/related), news editorial page (tape, lead, river, sources), tenders editorial page (roles, funnel, filters, dense rows, expand panel, timeline, facts), news-list/news-item rows + source-link, portfolio brand strip, office locations, leadership/department cards, awards, social/contact chips. */

        /* ========= PLAYER CARDS + DETAIL PAGE ========= */
        .player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; margin: 0.85rem 0 0; }
        .player-card {
            display: flex; flex-direction: column; gap: 0.65rem;
            padding: 0.95rem 1rem;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            color: var(--text-dark);
            text-decoration: none;
            transition: border-color 150ms, box-shadow 150ms, transform 150ms;
            cursor: pointer;
        }
        .player-card:hover { border-color: #6b6360; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
        .player-card-head { display: flex; align-items: center; gap: 0.65rem; }
        .player-card-avatar, .player-card-logo {
            width: 38px; height: 38px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-weight: 600; font-size: 15px; color: #fff;
            flex-shrink: 0;
            object-fit: contain;
        }
        /* Logos sit on a white circle with a small inset so wide / wordmark
           logos breathe inside the circle instead of hugging the edge. */
        .player-card-logo {
            background: #fff;
            border: 1px solid var(--border-soft);
            padding: 4px;
            object-position: center;
        }
        .player-card-titles { min-width: 0; flex: 1; }
        .player-card-name { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--text-dark); }
        .player-card-country { font-size: 11.5px; color: var(--text-dark-tertiary); margin-top: 1px; }
        .player-card-type { font-size: 12px; color: var(--text-dark-secondary); line-height: 1.4; min-height: 2.4em; }
        .player-card-stats { display: flex; gap: 0.5rem; margin-top: auto; }
        .player-card-stat { font-size: 11.5px; color: var(--text-dark-secondary); background: var(--bg-sidebar); padding: 0.2rem 0.55rem; border-radius: 999px; }
        .player-card-stat strong { color: var(--text-dark); font-weight: 600; margin-right: 2px; }
        .player-card-stat.win strong { color: #15803d; }

        /* Player detail page */
        .player-detail-head { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.5rem; }
        .player-detail-avatar {
            position: relative;
            width: 72px; height: 72px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-weight: 700; font-size: 28px;
            flex-shrink: 0;
            background: var(--bg-warm-dark);
            overflow: hidden;
        }
        .player-detail-titles { flex: 1; min-width: 0; }
        .player-detail-titles h1 { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.025em; }
        .player-detail-links { display: flex; gap: 0.5rem; align-items: center; }
        .player-detail-link {
            font-size: 12.5px; padding: 0.4rem 0.85rem;
            border: 1px solid var(--border-soft); border-radius: 6px;
            color: var(--text-dark); text-decoration: none; white-space: nowrap;
            transition: background 150ms;
        }
        .player-detail-link:hover { background: var(--bg-warm-light); }
        .player-detail-statgrid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 0.6rem; margin: 0 0 2rem;
        }
        .player-stat { padding: 0.85rem 1rem; background: var(--bg-sidebar); border: 1px solid var(--border-soft); border-radius: 8px; cursor: pointer; font-family: inherit; text-align: left; transition: border-color 120ms, background 120ms, transform 120ms; }
        button.player-stat { display: block; width: 100%; }
        .player-stat:hover { border-color: #6b6360; background: var(--bg-warm-light); transform: translateY(-1px); }
        .player-stat:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
        .player-stat-num { font-size: 1.55rem; font-weight: 600; color: var(--text-dark); letter-spacing: -0.02em; line-height: 1.1; }
        .player-stat-label { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-top: 0.3rem; }
        .player-detail-section { margin: 0 0 2.2rem; }
        .player-detail-section > h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.7rem; }
        .player-pill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
        .player-pill-list li, .player-pill-list a {
            display: inline-flex; align-items: center; gap: 0.45rem;
            padding: 0.4rem 0.75rem;
            background: #fff; border: 1px solid var(--border-soft); border-radius: 999px;
            font-size: 12.5px; color: var(--text-dark);
            text-decoration: none;
            transition: border-color 150ms, background 150ms;
        }
        .player-pill-list a:hover { border-color: #6b6360; background: var(--bg-warm-light); }
        .player-pill-list .pill-count { color: var(--text-dark-secondary); font-size: 11.5px; }
        .player-pill-list .pill-roles { color: var(--text-dark-tertiary); font-size: 10.5px; font-style: italic; }

        /* Clickable deal rows with inline expansion */
        .deal-table .deal-summary-row { cursor: pointer; transition: background 120ms; }
        .deal-table .deal-summary-row:hover { background: rgba(146,137,137,0.08); }
        .deal-table .deal-summary-row.expanded { background: rgba(146,137,137,0.12); }
        .deal-toggle { display: inline-block; font-size: 11px; color: var(--text-dark-tertiary); transition: transform 150ms; }
        .deal-summary-row.expanded .deal-toggle { transform: rotate(90deg); }
        .deal-detail-tr td.deal-detail-cell { background: var(--bg-sidebar); padding: 1rem 1.25rem; border-top: 0; }
        .deal-detail-list { display: grid; grid-template-columns: minmax(160px, max-content) 1fr; column-gap: 1.25rem; row-gap: 0.3rem; margin: 0 0 1rem; font-size: 12.5px; }
        .deal-detail-list .deal-detail-row { display: contents; }
        .deal-detail-list dt { color: var(--text-dark-secondary); margin: 0; }
        .deal-detail-list dd { margin: 0; color: var(--text-dark); }
        .deal-detail-section { margin-top: 0.75rem; }
        .deal-detail-section h5 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dark-tertiary); margin: 0 0 0.35rem; }
        .deal-detail-section ul { margin: 0; padding-left: 1.2rem; font-size: 12.5px; }
        .deal-detail-section li { margin-bottom: 0.2rem; line-height: 1.5; }

        @media (max-width: 640px) {
            .player-grid { grid-template-columns: 1fr; }
            .player-detail-head { flex-direction: column; }
            .player-detail-titles h1 { font-size: 1.55rem; }
        }

        /* ========= ADVISOR CATEGORY TILES ========= */
        .advisor-cat-tile { display: flex; gap: 0.85rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; text-decoration: none; color: var(--text-dark); transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
        .advisor-cat-tile:hover { border-color: #6b6360; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
        .advisor-cat-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-warm-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
        .advisor-cat-title { font-weight: 600; font-size: 14.5px; color: var(--text-dark); }
        .advisor-cat-blurb { font-size: 12.5px; color: var(--text-dark-secondary); margin-top: 0.2rem; line-height: 1.4; }

        /* ========= TENDER CARDS ========= */
        .tender-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; transition: border-color 150ms, box-shadow 150ms; }
        .tender-card:hover { border-color: #6b6360; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
        .tender-card-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
        .tender-stage-chip { display: inline-flex; align-items: center; padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
        .tender-card-title { font-size: 15px; font-weight: 600; color: var(--text-dark); margin: 0; line-height: 1.3; }
        .tender-card-meta { font-size: 12.5px; color: var(--text-dark-secondary); }
        .tender-card-next { font-size: 12px; color: var(--text-dark); padding: 0.4rem 0.6rem; background: var(--bg-sidebar); border-radius: 6px; }
        .tender-card-notes { font-size: 12.5px; color: var(--text-dark-secondary); margin: 0; line-height: 1.5; }
        .tender-card-link { font-size: 12.5px; color: var(--text-dark); font-weight: 500; }

        /* ========= ARTICLE / NEWS DETAIL PAGES (inside .topic shell) =========
           Both detail templates now use the standard .topic container - sidebar
           visible on the left, content in the main column - same as tender-detail.
           These rules only style the inner typography and the hero image. */
        .article-detail-body { font-size: 15.5px; line-height: 1.75; }
        .article-detail-body p { margin: 0 0 1.1rem; }
        .article-detail-body h2 { font-size: 1.25rem; font-weight: 600; margin: 1.8rem 0 0.7rem; letter-spacing: -0.01em; }
        /* Hero image: full main-column width, but capped at its native pixel
           width so we never CSS-upscale into blur. */
        #articleDetailHero img, #newsDetailHero img {
            display: block;
            width: 100%;
            max-width: var(--hero-native-w, 100%);
            height: auto;
            max-height: 420px;
            object-fit: cover;
            border-radius: 8px;
            image-rendering: -webkit-optimize-contrast;
        }

        /* ========= NEWS + ARTICLE CARDS ========= */
        .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
        .news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text-dark); transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
        .news-card:hover { border-color: #6b6360; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
        .news-card-image { background: var(--bg-sidebar); border-bottom: 1px solid var(--border-soft); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .news-card-image img { max-width: 60%; max-height: 60%; object-fit: contain; }
        .news-card-image-photo img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
        .article-card .news-card-image { aspect-ratio: 3 / 1; }
        .article-card .news-card-image img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
        .news-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1.05rem 1.05rem; flex: 1; }
        .news-card-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
        .news-source-chip { display: inline-flex; align-items: center; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
        .news-card-date { font-size: 11.5px; color: var(--text-dark-tertiary); }
        .news-card-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--text-dark); }
        .news-card-summary { font-size: 12.5px; color: var(--text-dark-secondary); margin: 0; line-height: 1.55; }
        .news-card-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
        .news-tag { font-size: 10.5px; padding: 0.15rem 0.45rem; background: var(--bg-sidebar); border: 1px solid var(--border-soft); border-radius: 999px; color: var(--text-dark-secondary); }
        .news-card-link { font-size: 12px; color: var(--text-dark); font-weight: 500; }
        .news-card-link-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; border-top: 1px solid var(--border-soft); }
        .news-expand-btn { font-size: 12px; color: var(--text-dark); font-weight: 500; background: transparent; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
        .news-expand-btn:hover { text-decoration: underline; }
        .news-card-fullbody { font-size: 12.5px; line-height: 1.6; color: var(--text-dark); padding: 0.6rem 0 0.4rem; border-top: 1px solid var(--border-soft); white-space: pre-line; }
        .news-paywall { font-size: 10px; padding: 0.1rem 0.4rem; background: #fff3cd; color: #664d03; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
        .news-paywall-note { font-size: 12px; color: var(--text-dark-tertiary); margin: 0.5rem 0 0; padding: 0.5rem; background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; }

        /* =========================== Articles index ===========================
           Replaces the old .news-grid/.news-card treatment on /articles. All
           selectors are namespaced .articles-* so news-card styling elsewhere
           in the site is untouched. Logical properties + flex/gap so RTL
           (Arabic) mirrors automatically. */
        .articles-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.5rem; }
        .articles-header h1 { margin: 0; }
        .articles-count { font-size: 12.5px; color: var(--text-dark-secondary); white-space: nowrap; margin-inline-start: auto; }
        .articles-tagline { flex: 1 1 100%; margin: 0.2rem 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-dark-secondary); }

        .articles-controls { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0 0.7rem; }
        .articles-search { flex: 1 1 280px; min-width: 220px; height: 36px; padding: 0 12px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 8px; background: #fff; color: var(--text-dark); }
        .articles-sort { height: 36px; padding-inline: 12px 32px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 8px; background: #fff; color: var(--text-dark); cursor: pointer; }

        .articles-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
        .articles-chip {
            display: inline-flex; align-items: center; gap: 0.4rem;
            height: 30px; padding-inline: 0.8rem;
            font: inherit; font-size: 12.5px; font-weight: 500;
            background: #fff; color: var(--text-dark);
            border: 1px solid var(--border-mid); border-radius: 999px;
            cursor: pointer;
            transition: background 120ms, border-color 120ms, color 120ms;
        }
        .articles-chip:hover { background: var(--bg-sidebar); }
        .articles-chip[aria-pressed="true"] { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
        .articles-chip-count { font-size: 11px; opacity: 0.6; font-variant-numeric: tabular-nums; }
        .articles-chip[aria-pressed="true"] .articles-chip-count { opacity: 0.85; }

        .articles-hero { margin-bottom: 1.1rem; }
        .articles-hero:empty { display: none; }
        .articles-hero-card {
            display: grid; grid-template-columns: minmax(260px, 1.3fr) 1fr; gap: 1.4rem;
            padding: 1.4rem 1.5rem;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft); border-radius: 12px;
            text-decoration: none; color: inherit;
            transition: border-color 150ms;
        }
        .articles-hero-card:hover { border-color: #6b6360; }
        .articles-hero-cover {
            aspect-ratio: 16 / 9;
            background: #fff;
            border: 1px solid var(--border-soft); border-radius: 10px;
            overflow: hidden;
        }
        .articles-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .articles-hero-body { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
        .articles-hero-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
        .articles-hero-title { font-size: 1.45rem; line-height: 1.25; font-weight: 500; margin: 0; color: var(--text-dark); }
        .articles-hero-summary { font-size: 14.5px; line-height: 1.55; color: var(--text-dark-secondary); margin: 0; }
        .articles-hero-meta { font-size: 12.5px; color: var(--text-dark-secondary); margin-top: auto; }
        @media (max-width: 760px) { .articles-hero-card { grid-template-columns: 1fr; } }

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
        }
        .articles-grid:empty { display: none; }

        .articles-card {
            display: flex; flex-direction: column;
            background: #fff;
            border: 1px solid var(--border-soft); border-radius: 10px;
            overflow: hidden;
            text-decoration: none; color: inherit;
            transition: border-color 150ms;
            position: relative;
        }
        .articles-card:hover { border-color: #6b6360; }
        .articles-card-cover {
            aspect-ratio: 3 / 1;
            border-bottom: 1px solid var(--border-soft);
            overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            background: var(--bg-sidebar);
        }
        .articles-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .articles-card-cover-fallback {
            font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
        }
        /* Icon-based decorative cover - used when an article has no cardImage.
           Lucide-style outline glyph centred on a topic-tinted panel, with a
           tiny uppercase topic label sitting underneath for context. */
        .articles-card-cover-icon {
            position: relative;
            flex-direction: column; gap: 8px;
        }
        .articles-card-cover-icon-wrap {
            width: 44px; height: 44px;
            display: inline-flex; align-items: center; justify-content: center;
            opacity: 0.92;
        }
        .articles-card-cover-icon-wrap svg { width: 100%; height: 100%; }
        .articles-card-cover-icon-topic {
            font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
            text-transform: uppercase;
            opacity: 0.85;
        }
        .articles-card-body {
            display: flex; flex-direction: column; gap: 0.5rem;
            padding: 0.85rem 1rem 0;
            flex: 1;
        }
        .articles-card-pill {
            display: inline-flex; align-self: flex-start;
            padding: 0.18rem 0.6rem;
            font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
            border-radius: 999px;
        }
        .articles-card-title {
            font-size: 15.5px; line-height: 1.3; font-weight: 500; margin: 0; color: var(--text-dark);
        }
        .articles-card-summary {
            font-size: 11.5px; line-height: 1.5; color: var(--text-dark-tertiary); margin: 0;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
        }
        .articles-card-badge {
            position: absolute; inset-block-start: 0.55rem; inset-inline-end: 0.55rem;
            display: inline-flex; align-items: center; gap: 0.3rem;
            padding: 0.2rem 0.55rem 0.2rem 0.45rem;
            font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em;
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid var(--border-mid);
            border-radius: 999px;
            color: var(--text-dark);
            z-index: 1;
        }
        .articles-card-badge svg { width: 11px; height: 11px; }

        .articles-card-foot {
            display: flex; justify-content: space-between; align-items: center;
            gap: 0.6rem;
            padding: 0.7rem 1rem 0.85rem;
            margin-top: 0.6rem;
            border-top: 1px solid var(--border-soft);
            font-size: 11.5px; color: var(--text-dark-secondary);
        }
        .articles-card-meta { white-space: nowrap; }
        .articles-card-xlink {
            color: var(--text-dark); font-weight: 500; text-decoration: none; white-space: nowrap;
        }
        .articles-card-xlink:hover { text-decoration: underline; }

        .articles-empty {
            padding: 2.5rem 1rem; text-align: center;
            color: var(--text-dark-secondary); font-size: 13.5px;
            background: var(--bg-sidebar);
            border: 1px dashed var(--border-mid); border-radius: 10px;
        }
        /* =========================== /Articles index =========================== */

        /* =========================== Glossary index ===========================
           Card layout for /glossary. The source-of-truth tables live in a hidden
           .glossary-source div in shell.html; glossary.js parses them once into
           a term array and renders cards here. Namespaced .glossary-* so it
           doesn't bleed into other table chrome. */
        .glossary-source { display: none !important; }

        .glossary-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
        .glossary-header h1 { margin: 0; }
        .glossary-tagline { flex: 1 1 100%; margin: 0.2rem 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-dark-secondary); }

        .glossary-controls {
            position: sticky; top: 0; z-index: 5;
            display: flex; flex-wrap: wrap; gap: 0.55rem;
            margin: 1rem 0 0.7rem;
            padding: 0.4rem 0;
            background: var(--bg, #fff);
            backdrop-filter: blur(2px);
        }
        .glossary-search {
            flex: 1 1 280px; min-width: 220px; height: 36px;
            padding: 0 12px; font: inherit; font-size: 13px;
            border: 1px solid var(--border-mid); border-radius: 8px;
            background: #fff; color: var(--text-dark);
        }
        .glossary-view { display: inline-flex; border: 1px solid var(--border-mid); border-radius: 8px; overflow: hidden; }
        .glossary-view-btn {
            height: 36px; padding-inline: 0.9rem;
            font: inherit; font-size: 12.5px; font-weight: 500;
            background: #fff; color: var(--text-dark); border: 0; cursor: pointer;
            transition: background 120ms;
        }
        .glossary-view-btn + .glossary-view-btn { border-inline-start: 1px solid var(--border-mid); }
        .glossary-view-btn:hover { background: var(--bg-sidebar); }
        .glossary-view-btn[aria-pressed="true"] { background: #1a1a1a; color: #fff; }

        .glossary-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
        .glossary-chip {
            display: inline-flex; align-items: center; gap: 0.4rem;
            height: 30px; padding-inline: 0.8rem;
            font: inherit; font-size: 12.5px; font-weight: 500;
            background: #fff; color: var(--text-dark);
            border: 1px solid var(--border-mid); border-radius: 999px;
            cursor: pointer;
            transition: background 120ms, color 120ms, border-color 120ms;
        }
        .glossary-chip:hover { background: var(--bg-sidebar); }
        .glossary-chip[aria-pressed="true"] { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
        .glossary-chip-count { font-size: 11px; opacity: 0.6; font-variant-numeric: tabular-nums; }
        .glossary-chip[aria-pressed="true"] .glossary-chip-count { opacity: 0.85; }

        .glossary-az-index {
            display: flex; flex-wrap: wrap; gap: 0.25rem;
            padding: 0.5rem 0.6rem; margin-bottom: 1rem;
            background: var(--bg-sidebar); border: 1px solid var(--border-soft); border-radius: 8px;
            position: sticky; top: 60px; z-index: 4;
        }
        .glossary-az-letter {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 26px; height: 26px; padding-inline: 0.45rem;
            font: inherit; font-size: 12px; font-weight: 600;
            background: transparent; color: var(--text-dark);
            border: 0; border-radius: 6px;
            cursor: pointer;
            text-decoration: none;
        }
        .glossary-az-letter:hover { background: #fff; }
        .glossary-az-letter[aria-disabled="true"] { color: var(--text-dark-tertiary); pointer-events: none; cursor: default; }

        /* ----- Section + sub-group headers (PitchBook / Bloomberg style) ----- */
        .glossary-section { margin-bottom: 2.2rem; scroll-margin-top: 110px; }
        .glossary-section-header {
            display: flex; align-items: baseline; gap: 0.7rem;
            margin: 0 0 0.5rem;
            padding-bottom: 0.45rem;
            border-bottom: 2px solid var(--cat-accent, var(--text-dark));
        }
        .glossary-section-header h2 {
            margin: 0;
            font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--cat-accent, var(--text-dark));
        }
        .glossary-section-count {
            font-size: 11.5px; font-weight: 500;
            color: var(--text-dark-secondary); font-variant-numeric: tabular-nums;
        }
        .glossary-subgroup-label {
            display: block; margin: 1.1rem 0 0.3rem;
            font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--text-dark-secondary);
        }

        /* ----- Reference list ----- */
        .glossary-list {
            margin: 0;
            display: grid;
            grid-template-columns: 1fr;
            row-gap: 0;
        }
        .glossary-row {
            display: grid;
            grid-template-columns: 200px 1fr;
            column-gap: 1.4rem;
            padding: 0.95rem 0;
            border-bottom: 1px solid var(--border-soft);
            scroll-margin-top: 110px;
            transition: background 160ms ease;
        }
        .glossary-row:last-child { border-bottom: 0; }
        .glossary-row:hover { background: rgba(0,0,0,0.018); }
        .glossary-row.is-deeplinked { background: #FAEEDA; }

        .glossary-row-term {
            margin: 0;
            font-family: var(--font-display, inherit);
            font-size: 16px; font-weight: 600; line-height: 1.3;
            letter-spacing: -0.005em;
            color: var(--text-dark);
            word-wrap: break-word;
        }
        .glossary-row-body {
            margin: 0;
            min-width: 0;
            position: relative;
            padding-right: 30px;
        }
        .glossary-row-expansion {
            font-size: 13.5px; font-weight: 500; line-height: 1.45;
            color: var(--text-dark);
            margin-bottom: 0.35rem;
        }
        .glossary-row-detail {
            margin: 0;
            font-size: 13px; line-height: 1.62;
            color: var(--text-dark-secondary);
        }
        .glossary-row-copy {
            position: absolute;
            top: 0; right: 0;
            width: 22px; height: 22px;
            display: inline-flex; align-items: center; justify-content: center;
            background: transparent; border: 0; border-radius: 4px;
            cursor: pointer; color: var(--text-dark-tertiary);
            padding: 0;
            opacity: 0;
            transition: background 120ms, color 120ms, opacity 160ms;
        }
        .glossary-row:hover .glossary-row-copy,
        .glossary-row:focus-within .glossary-row-copy { opacity: 1; }
        .glossary-row-copy:hover { background: var(--bg-sidebar); color: var(--text-dark); }
        .glossary-row-copy svg { width: 13px; height: 13px; }
        .glossary-row-copy.is-copied { color: #085041; opacity: 1; }

        @media (max-width: 720px) {
            .glossary-row { grid-template-columns: 1fr; row-gap: 0.35rem; }
            .glossary-row-term { font-size: 15px; }
        }

        /* Search highlight */
        .glossary-mark {
            background: #FAEEDA;
            color: inherit;
            border-radius: 2px;
            padding: 0 1px;
        }

        .glossary-empty {
            padding: 2.5rem 1rem; text-align: center;
            color: var(--text-dark-secondary); font-size: 13.5px;
            background: var(--bg-sidebar);
            border: 1px dashed var(--border-mid); border-radius: 10px;
        }
        /* =========================== /Glossary index =========================== */

        /* =========================== Article bottom ===========================
           Foot of every article detail page (/articles/<slug>):
             1. End-of-content marker (dot between two hairlines)
             2. Key takeaways panel (data-driven from a.takeaways)
             3. Terms in this article - pills cross-linking to /glossary
             4. Action row: Download menu + Copy link + Share + caption
             5. Related reading - cards with icon-on-colour covers
           All namespaced .article-* so the .articles-card chrome used on the
           index can be reused here for the related-reading block. */

        /* 0. Inline article figures (SVG diagrams + raster images).
              Capped width keeps every figure inside the reading column so
              they don't blow past the body text. Max-height keeps a single
              figure from eating a full screen on tall desktops. */
        .article-chart-figure { max-width: 720px; margin: 1.6rem auto !important; padding: 1rem !important; }
        .article-chart-figure > svg {
            width: 100%; height: auto;
            max-height: 460px;
            display: block; margin: 0 auto;
        }
        .article-image-figure { max-width: 720px; margin: 1.6rem auto !important; }
        .article-image-figure img {
            max-width: 100%;
            max-height: 420px;
            width: auto; height: auto;
            display: block; margin: 0 auto;
            object-fit: contain;
        }

        /* 1. End-of-content marker */
        .article-end-mark {
            display: flex; align-items: center; justify-content: center;
            margin: 2.5rem 0 1.8rem;
            position: relative;
        }
        .article-end-mark::before, .article-end-mark::after {
            content: ''; flex: 1; height: 1px;
            background: var(--border-soft);
        }
        .article-end-mark span {
            width: 9px; height: 9px;
            background: #1a1a1a;
            margin-inline: 14px;
        }

        /* 2. Key takeaways */
        .article-takeaways {
            margin: 0 0 2rem;
            padding: 1.3rem 1.5rem;
            background: var(--bg-sidebar);
            border-radius: 14px;
        }
        .article-takeaways-head {
            display: flex; align-items: center; gap: 0.55rem;
            margin-bottom: 0.85rem;
            color: var(--text-dark);
            font-size: 14.5px; font-weight: 600;
        }
        .article-takeaways-head svg { width: 16px; height: 16px; flex-shrink: 0; }
        .article-takeaways ul {
            margin: 0; padding: 0; list-style: none;
            display: flex; flex-direction: column; gap: 0.85rem;
        }
        .article-takeaways li {
            position: relative;
            padding-inline-start: 1.25rem;
            font-size: 15px; line-height: 1.55;
            color: var(--text-dark);
        }
        .article-takeaways li::before {
            content: '';
            position: absolute;
            inset-inline-start: 0;
            top: 0.55em;
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--text-dark-secondary);
        }

        /* 3. Terms in this article */
        .article-terms { margin: 0 0 1.8rem; }
        .article-terms-title {
            margin: 0 0 0.7rem;
            font-size: 0.95rem; font-weight: 600;
            color: var(--text-dark);
            letter-spacing: -0.01em;
        }
        .article-terms-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .article-term-pill {
            display: inline-flex; align-items: center; gap: 0.4rem;
            padding: 0.4rem 0.85rem;
            font-size: 13px; font-weight: 500;
            color: #0C447C;
            background: #fff;
            border: 1px solid #C8DAEC;
            border-radius: 999px;
            text-decoration: none;
            transition: background 120ms, border-color 120ms;
        }
        .article-term-pill:hover {
            background: #E6F1FB;
            border-color: #0C447C;
        }
        .article-term-pill svg {
            width: 11px; height: 11px;
            opacity: 0.7;
        }

        /* 4. Action row */
        .article-actions {
            display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
            margin: 0 0 1.8rem;
            padding: 1.1rem 0 1.2rem;
            border-block: 1px solid var(--border-soft);
        }
        .article-actions-buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
        /* Match the Download menu trigger (chart-download.js writes inline
           styles on .ch-dl-trigger) to the Copy / Share buttons. Inline
           styles win without !important; box-sizing: border-box pins the
           total height so the trigger lines up exactly with the
           border-box .article-action-btn siblings (without border-box the
           1px border adds 2px outside the 38px content height). */
        .article-actions .ch-dl-toolbar { margin: 0 !important; }
        .article-actions .ch-dl-trigger {
            box-sizing: border-box !important;
            height: 38px !important;
            padding: 0 0.95rem !important;
            border: 1px solid var(--border-mid) !important;
            border-radius: 8px !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            line-height: 1 !important;
            gap: 0.45rem !important;
        }
        .article-actions .ch-dl-trigger:hover { background: var(--bg-sidebar) !important; }
        .article-action-btn {
            display: inline-flex; align-items: center; gap: 0.45rem;
            height: 38px; padding: 0 0.95rem;
            font: inherit; font-size: 13px; font-weight: 500;
            background: #fff; color: var(--text-dark);
            border: 1px solid var(--border-mid); border-radius: 8px;
            cursor: pointer;
            transition: background 120ms, border-color 120ms;
        }
        .article-action-btn:hover { background: var(--bg-sidebar); }
        .article-action-btn svg { width: 14px; height: 14px; }
        .article-action-btn.is-done { background: #E1F5EE; border-color: #085041; color: #085041; }
        .article-actions-caption {
            margin-inline-start: auto;
            font-size: 12.5px; color: var(--text-dark-secondary);
            white-space: nowrap;
        }

        /* 5. Related reading */
        .article-bottom-related { margin: 0; }
        .article-bottom-related-title {
            margin: 0 0 1rem;
            font-size: 1.1rem; font-weight: 600;
            color: var(--text-dark);
            letter-spacing: -0.01em;
        }
        /* Override the aspect-ratio on the related card covers so the icons
           sit in a larger, more decorative panel. */
        .article-related-icon-cover {
            aspect-ratio: 16 / 9 !important;
            display: flex; align-items: center; justify-content: center;
            border-bottom: 0 !important;
        }
        .article-related-icon-cover svg { width: 42px; height: 42px; opacity: 0.85; }
        /* =========================== /Article bottom =========================== */

        @media (max-width: 640px) {
            .news-grid { grid-template-columns: 1fr; }
        }

        /* ========= NEWS PAGE (editorial layout: tape + lead + river) =========
           Reuses existing tokens (--bg-sidebar, --border-soft, --text-dark-*,
           .tag-green/.tag-blue/.tag-grey/.tag-amber). The numbers carry the
           page: mono font + tabular-nums + muted status, no flashy colour. */
        .news-mono { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; }

        /* --- DEAL TAPE --- */
        .news-tape {
            display: flex; align-items: stretch;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            margin: 0.6rem 0 1.4rem;
            overflow: hidden;
        }
        .news-tape-label {
            flex: 0 0 auto;
            padding: 0 0.95rem;
            display: flex; align-items: center;
            font-size: 10.5px; font-weight: 600;
            letter-spacing: 0.14em; text-transform: uppercase;
            color: var(--text-dark-tertiary);
            border-right: 1px solid var(--border-soft);
            background: #fff;
            white-space: nowrap;
        }
        .news-tape-mask {
            flex: 1 1 auto;
            overflow: hidden;
            position: relative;
            min-width: 0;
            /* fade edges so items don't pop in/out abruptly */
            -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
                    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
        }
        .news-tape-track {
            display: flex; align-items: center;
            width: max-content;
            will-change: transform;
            animation: news-tape-scroll 60s linear infinite;
        }
        .news-tape:hover .news-tape-track { animation-play-state: paused; }
        @keyframes news-tape-scroll {
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }
        @media (prefers-reduced-motion: reduce) {
            .news-tape-track { animation: none !important; }
        }
        .news-tape-item {
            display: inline-flex; align-items: center; gap: 0.55rem;
            padding: 0 1.1rem;
            height: 44px;
            border-right: 1px solid var(--border-soft);
            color: var(--text-dark);
            text-decoration: none;
            font-size: 12.5px;
            white-space: nowrap;
        }
        .news-tape-item:hover { background: rgba(146,137,137,0.06); color: var(--text-dark); text-decoration: none; }
        .news-tape-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--text-dark-tertiary);
            flex: 0 0 6px;
        }
        .news-tape-dot.is-green { background: #6a8156; }
        .news-tape-dot.is-blue  { background: #6479a0; }
        .news-tape-dot.is-amber { background: #b08b3c; }
        .news-tape-dot.is-grey  { background: #807a73; }
        .news-tape-name   { font-weight: 500; color: var(--text-dark); }
        .news-tape-metric { color: var(--text-dark-secondary); font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 12px; }
        .news-tape-stage  { color: var(--text-dark-tertiary); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
        .news-tape-empty  { padding: 0 1.1rem; height: 44px; display: inline-flex; align-items: center; color: var(--text-dark-tertiary); font-size: 12px; }

        /* --- TOOLBAR (sector tabs · search/source · meta) ---
           Stacked vertically as three flex rows. Avoids the grid auto-sizing
           quirk where a wide controls row could squeeze .news-tabs to a
           column-narrow track that wrapped every tab's text onto its own line. */
        .news-toolbar {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            margin: 0 0 1rem;
            padding-bottom: 0.65rem;
            border-bottom: 1px solid var(--border-soft);
        }
        .news-tabs { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; width: 100%; }
        .news-tab {
            font: inherit;
            border: 0; background: transparent; padding: 0.35rem 0;
            color: var(--text-dark-secondary);
            font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: color 0.12s ease, border-color 0.12s ease;
            white-space: nowrap;  /* keep each tab on one line even when the row wraps */
        }
        .news-tab:hover { color: var(--text-dark); }
        .news-tab.is-active { color: var(--text-dark); border-bottom-color: var(--text-dark); }
        .news-tab-count { color: var(--text-dark-tertiary); font-size: 11.5px; margin-left: 0.25rem; font-variant-numeric: tabular-nums; }
        .news-toolbar-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; width: 100%; }
        .news-search { height: 32px; padding: 0 11px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 6px; background: #fff; color: var(--text-dark); flex: 1 1 240px; min-width: 0; max-width: 360px; }
        .news-search::placeholder { color: var(--text-dark-tertiary); }
        .news-search:focus { outline: none; border-color: var(--bg-warm-dark); box-shadow: 0 0 0 3px rgba(146,137,137,0.12); }
        .news-source-select { height: 32px; padding: 0 26px 0 10px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 6px; background: #fff; color: var(--text-dark); cursor: pointer; }
        .news-toolbar-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; font-size: 11.5px; color: var(--text-dark-tertiary); margin-left: auto; }

        /* --- LEAD STORY CAROUSEL ---
           Slides stack in a single CSS grid cell so the container auto-sizes
           to the tallest one. Only the .is-active slide is visible
           (opacity:1) and interactive (pointer-events:auto). Inactive slides
           stay in the DOM with their links intact - search crawlers see
           every lead headline / summary / href without running JS. */
        .news-lead-carousel {
            position: relative;
            margin: 0.4rem 0 1.8rem;
        }
        .news-lead-carousel:focus-visible { outline: 2px solid var(--text-dark); outline-offset: 4px; border-radius: 14px; }
        .news-lead-track {
            display: grid;
            grid-template-columns: 1fr;
        }
        .news-lead-track > .news-lead-slide {
            grid-area: 1 / 1 / 2 / 2;
            margin: 0;            /* let the carousel wrapper own the gap */
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 400ms ease, visibility 0s linear 400ms;
        }
        .news-lead-track > .news-lead-slide.is-active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition: opacity 400ms ease, visibility 0s linear 0s;
        }
        /* Pagination dots under the hero */
        .news-lead-dots {
            display: flex;
            justify-content: center;
            gap: 0.45rem;
            margin: 0.6rem 0 0;
        }
        .news-lead-dot {
            appearance: none;
            border: 1px solid var(--border-mid);
            background: transparent;
            width: 8px; height: 8px;
            border-radius: 50%;
            padding: 0;
            cursor: pointer;
            transition: background 150ms, border-color 150ms, transform 150ms;
        }
        .news-lead-dot:hover { border-color: var(--text-dark); }
        .news-lead-dot.is-active {
            background: var(--text-dark);
            border-color: var(--text-dark);
            transform: scale(1.15);
        }
        .news-lead-dot:focus-visible { outline: 2px solid var(--text-dark); outline-offset: 2px; }
        /* Respect prefers-reduced-motion: disable transitions and the JS-side
           auto-rotation (handled in initLeadCarousel). */
        @media (prefers-reduced-motion: reduce) {
            .news-lead-track > .news-lead-slide,
            .news-lead-dot { transition: none; }
        }

        /* --- LEAD STORY --- */
        .news-lead {
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 1.6rem;
            background: #fff;
            border: 1px solid var(--border-mid);
            border-radius: 12px;
            padding: 1.4rem 1.5rem;
            margin: 0.4rem 0 1.8rem;
            text-decoration: none; color: var(--text-dark);
            box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 8px 22px rgba(0,0,0,0.04);
            transition: border-color 150ms, box-shadow 150ms, transform 150ms;
            cursor: pointer;
        }
        .news-lead:hover { border-color: #6b6360; box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 14px 30px rgba(0,0,0,0.06); transform: translateY(-1px); }
        .news-lead:focus-visible { outline: 2px solid var(--text-dark); outline-offset: 2px; }
        .news-lead-source { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--border-soft); font-size: 12.5px; }
        .news-lead-source-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-right: 0.15rem; }
        .news-lead-source a { color: var(--text-dark); border-bottom: 1px solid var(--border-soft); transition: border-color 0.12s; padding-bottom: 1px; }
        .news-lead-source a:hover { border-bottom-color: var(--text-dark); color: var(--text-dark); text-decoration: none; }
        .news-lead-source-more { color: var(--text-dark-tertiary); font-size: 11.5px; margin-left: 0.2rem; }
        .news-river-source { color: var(--text-dark-secondary); }
        .news-lead:hover { border-color: #6b6360; color: var(--text-dark); text-decoration: none; }
        .news-lead-thumb {
            width: 100%; aspect-ratio: 16 / 11;
            border-radius: 6px; overflow: hidden;
            background: var(--bg-sidebar);
        }
        .news-lead-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .news-lead-body { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
        .news-lead-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.65rem; align-items: center; font-size: 11.5px; color: var(--text-dark-tertiary); }
        .news-lead-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark-tertiary); }
        .news-lead-title { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.18; color: var(--text-dark); margin: 0.15rem 0 0.1rem; }
        .news-lead-dek { font-size: 13.5px; color: var(--text-dark-secondary); line-height: 1.55; margin: 0; }
        .news-lead-stats {
            display: flex; flex-wrap: wrap; gap: 1rem 2.2rem;
            margin-top: 0.55rem; padding-top: 0.8rem;
            border-top: 1px solid var(--border-soft);
        }
        .news-lead-stat { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
        .news-lead-stat-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark-tertiary); }
        .news-lead-stat-value { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; color: var(--text-dark); }
        .news-lead-stat-value .news-lead-stat-unit { color: var(--text-dark-secondary); font-size: 13px; margin-left: 0.18rem; }
        @media (max-width: 760px) {
            .news-lead { grid-template-columns: 1fr; padding: 1rem; }
            .news-lead-thumb { aspect-ratio: 16 / 9; max-width: 360px; }
            .news-lead-title { font-size: 1.25rem; }
        }

        /* --- DEAL RIVER (dense rows) --- */
        .news-river { display: flex; flex-direction: column; }
        .news-river-row {
            display: grid;
            grid-template-columns: 60px 1fr 220px;
            gap: 0.9rem;
            align-items: center;
            min-height: 68px;
            padding: 0.6rem 0.4rem;
            border-bottom: 1px solid var(--border-soft);
            text-decoration: none; color: var(--text-dark);
            transition: background 120ms;
            cursor: pointer;
        }
        .news-river-row:focus-visible { outline: 2px solid var(--text-dark); outline-offset: -2px; }
        .news-river-row:hover { background: rgba(146,137,137,0.05); color: var(--text-dark); text-decoration: none; }
        .news-river-row:last-child { border-bottom: 0; }
        .news-river-thumb {
            width: 60px; height: 48px;
            border-radius: 5px; overflow: hidden;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            flex: 0 0 60px;
        }
        .news-river-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .news-river-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-dark-tertiary); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
        .news-river-body { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
        .news-river-meta { font-size: 11px; color: var(--text-dark-tertiary); letter-spacing: 0.01em; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; }
        .news-river-meta-sep { color: var(--border-mid); }
        .news-river-title { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .news-river-row:hover .news-river-title { text-decoration: underline; text-decoration-color: rgba(26,26,26,0.25); text-underline-offset: 3px; }
        .news-river-right {
            display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem;
            text-align: right; min-width: 0;
        }
        .news-river-metric { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-dark); white-space: nowrap; }
        .news-river-metric-unit { color: var(--text-dark-secondary); margin-left: 0.18rem; font-size: 12px; }
        .news-river-metric-empty { color: var(--text-dark-tertiary); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-family: inherit; }
        .news-river-stage { font-size: 10.5px; padding: 1px 7px; border-radius: 4px; font-weight: 500; letter-spacing: 0.02em; border: 1px solid transparent; white-space: nowrap; }
        .news-river-stage.is-empty { background: transparent; color: var(--text-dark-tertiary); border-color: transparent; }
        @media (max-width: 720px) {
            .news-river-row { grid-template-columns: 48px 1fr; grid-template-areas: "thumb body" "right right"; padding: 0.65rem 0.2rem; min-height: 0; }
            .news-river-thumb { width: 48px; height: 40px; flex: 0 0 48px; grid-area: thumb; }
            .news-river-body { grid-area: body; }
            .news-river-right { grid-area: right; flex-direction: row; align-items: center; justify-content: flex-end; gap: 0.6rem; margin-top: 0.2rem; }
            .news-river-title { white-space: normal; }
        }

        /* Status tag mapping reuses the existing .tag-* desaturated palette;
           news-river-stage adds spacing only - colour comes from the tag class. */

        /* --- SOURCE TIER BADGE --- One-letter pill rendered alongside every
           source chip. Tier A = origin (exchange, procurer); B = sponsor/
           lender/advisor; C = official wire; D = regulator/multilateral;
           E = aggregator. Subtle by design - same monospace family as the
           data tables so it reads as metadata, not decoration. */
        .src-tier { display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 14px; padding: 0 3px; margin-left: 0.25rem; font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-size: 9px; font-weight: 600; letter-spacing: 0; border-radius: 3px; border: 1px solid transparent; vertical-align: middle; }
        .src-tier-A { background: #e6ede2; color: #4f6240; border-color: #d4ddca; }   /* origin */
        .src-tier-B { background: #dee3ec; color: #4a5a72; border-color: #c8d1de; }   /* supporting primary */
        .src-tier-C { background: #eceae6; color: #555049; border-color: #d4d0cc; }   /* official wire */
        .src-tier-D { background: #eee5d6; color: #6d5a2c; border-color: #ddd0b1; }   /* regulator / multilateral */
        .src-tier-E { background: transparent; color: var(--text-dark-tertiary); border-color: var(--border-soft); }   /* aggregator / cross-check */

        /* --- MULTI-SOURCE CHIPS --- Each news item can carry a sources[]
           array; the renderer shows them inline. Primary first, paywalled
           gets the existing .news-paywall badge appended. Chips opt out of
           SPA routing so a click opens the source article. */
        .news-sources { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
        .news-source-link { display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; }
        .news-source-link:hover { text-decoration: none; }
        .news-source-link:hover .news-source-chip { filter: brightness(0.96); }
        .news-sources-inline { gap: 0.3rem; }
        .news-sources-inline .news-source-chip { font-size: 10px; padding: 0.13rem 0.45rem; }
        .news-sources-inline .news-paywall { font-size: 9px; padding: 0.08rem 0.32rem; }

        /* --- DETAIL PAGE FULL SOURCES LIST --- */
        .news-detail-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; margin-top: 0.65rem; padding-top: 0.7rem; border-top: 1px dashed var(--border-soft); font-size: 12.5px; color: var(--text-dark-secondary); }
        .news-detail-sources-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-right: 0.2rem; }
        .news-detail-source-link { color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--border-soft); padding-bottom: 1px; transition: border-color 0.12s; }
        .news-detail-source-link:hover { border-bottom-color: var(--text-dark); color: var(--text-dark); }

        /* --- EMPTY STATE --- */
        .news-empty { padding: 2rem 1rem; text-align: center; color: var(--text-dark-secondary); font-size: 13px; border: 1px dashed var(--border-soft); border-radius: 8px; }

        /* ========= TENDERS PAGE (editorial: role · funnel · dense rows) =========
           Reuses existing tokens only. Stage colour comes from .tag-blue /
           .tag-green / .tag-grey / .tag-amber - no new palette introduced. */

        /* --- ROLE SELECTOR --- */
        .t-roles { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0 1rem; padding: 0.3rem; background: var(--bg-sidebar); border: 1px solid var(--border-soft); border-radius: 999px; width: fit-content; max-width: 100%; }
        .t-role { font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em; padding: 0.42rem 0.95rem; border-radius: 999px; border: 0; background: transparent; color: var(--text-dark-secondary); cursor: pointer; transition: background 0.12s, color 0.12s; white-space: nowrap; }
        .t-role:hover { color: var(--text-dark); }
        .t-role.is-active { background: #fff; color: var(--text-dark); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
        @media (max-width: 640px) {
            .t-roles { width: 100%; justify-content: center; border-radius: 8px; }
            .t-role { flex: 1 0 auto; text-align: center; }
        }

        /* --- FUNNEL --- 9 stage cells wrap on narrow widths. Cell colour
           reflects band (browse) or role-entry (open/closing/closed). */
        .t-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 0.3rem; margin: 0 0 0.5rem; padding: 0; }
        .t-funnel-cell { display: flex; flex-direction: column; gap: 0.18rem; align-items: flex-start; padding: 0.55rem 0.7rem 0.6rem; background: #fff; border: 1px solid var(--border-soft); border-left: 3px solid var(--border-mid); border-radius: 4px; text-align: left; font: inherit; cursor: pointer; transition: border-color 0.12s, background 0.12s, opacity 0.12s; }
        .t-funnel-cell:hover { background: rgba(146,137,137,0.04); }
        .t-funnel-cell.is-active { background: rgba(146,137,137,0.08); border-color: var(--text-dark); border-left-color: var(--text-dark); }
        .t-funnel-cell.is-band-open    { border-left-color: #6479a0; }
        .t-funnel-cell.is-band-decided { border-left-color: var(--border-mid); }
        .t-funnel-cell.is-band-delivery{ border-left-color: var(--border-mid); opacity: 0.55; }
        .t-funnel-cell.is-role-open    { border-left-color: #6479a0; }
        .t-funnel-cell.is-role-closing { border-left-color: #b08b3c; }
        .t-funnel-cell.is-role-closed  { border-left-color: var(--border-mid); opacity: 0.5; }
        .t-funnel-stage { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dark-secondary); }
        .t-funnel-count { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 500; color: var(--text-dark); }
        .t-legend { font-size: 11.5px; color: var(--text-dark-tertiary); margin: 0.4rem 0 1.1rem; letter-spacing: 0.005em; }
        .t-legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.3rem; vertical-align: -1px; }
        .t-legend .swatch-open    { background: #6479a0; }
        .t-legend .swatch-closing { background: #b08b3c; }
        .t-legend .swatch-decided { background: var(--border-mid); }
        .t-legend .swatch-faded   { background: var(--border-mid); opacity: 0.55; }

        /* --- FILTERS --- */
        .t-filters { display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; align-items: center; padding: 0 0 0.6rem; margin: 0 0 0.6rem; border-bottom: 1px solid var(--border-soft); }
        .t-search { height: 32px; padding: 0 11px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 6px; background: #fff; color: var(--text-dark); width: 240px; max-width: 100%; }
        .t-search:focus { outline: none; border-color: var(--bg-warm-dark); box-shadow: 0 0 0 3px rgba(146,137,137,0.12); }
        .t-chip-group { display: flex; flex-wrap: wrap; gap: 0.2rem 0.25rem; }
        .t-chip { font: inherit; font-size: 11.5px; font-weight: 500; padding: 0.22rem 0.65rem; border: 1px solid var(--border-soft); border-radius: 999px; background: #fff; color: var(--text-dark-secondary); cursor: pointer; transition: background 0.1s, color 0.1s, border-color 0.1s; }
        .t-chip:hover { color: var(--text-dark); border-color: var(--border-mid); }
        .t-chip.is-active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
        .t-procurer-select { height: 32px; padding: 0 26px 0 10px; font: inherit; font-size: 13px; border: 1px solid var(--border-mid); border-radius: 6px; background: #fff; color: var(--text-dark); cursor: pointer; }
        .t-count { margin-left: auto; font-size: 11.5px; color: var(--text-dark-tertiary); font-variant-numeric: tabular-nums; }

        /* --- BAND HEADINGS --- */
        .t-band { margin: 1.4rem 0 0.6rem; }
        .t-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dark-secondary); margin: 0 0 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border-soft); }
        .t-band-sub { font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-dark-tertiary); }
        .t-band-head-toggle { cursor: pointer; user-select: none; }
        .t-band-head-toggle .t-band-toggle-mark { margin-left: auto; font-size: 12px; color: var(--text-dark-tertiary); transition: transform 0.12s; }
        .t-band-head-toggle[aria-expanded="true"] .t-band-toggle-mark { transform: rotate(90deg); }
        .t-list-collapsed { display: none; }

        /* --- DENSE ROWS --- */
        .t-list { display: flex; flex-direction: column; }
        .t-row { display: grid; grid-template-columns: 110px 1fr 220px; gap: 0.85rem; align-items: center; min-height: 54px; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background 0.1s; font-size: 13px; color: var(--text-dark); }
        .t-row:hover { background: rgba(146,137,137,0.04); }
        .t-row.is-expanded { background: rgba(146,137,137,0.06); }
        .t-row-stage { display: flex; align-items: center; }
        .t-stage-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
        .t-stage-tag.stage-announced,
        .t-stage-tag.stage-eoi          { background: #eceae6; color: #555049; border-color: #d4d0cc; }
        .t-stage-tag.stage-rfq,
        .t-stage-tag.stage-rfp,
        .t-stage-tag.stage-bid          { background: #dee3ec; color: #4a5a72; border-color: #c8d1de; }
        .t-stage-tag.stage-preferred,
        .t-stage-tag.stage-fc           { background: #e6ede2; color: #4f6240; border-color: #d4ddca; }
        .t-stage-tag.stage-construction,
        .t-stage-tag.stage-operational  { background: #e6e3df; color: #6d655d; border-color: #d4d0cc; }
        .t-row-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
        .t-row-title { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .t-row-meta { font-size: 11.5px; color: var(--text-dark-tertiary); display: flex; flex-wrap: wrap; gap: 0.25rem 0.45rem; align-items: center; }
        .t-row-meta-sep { color: var(--border-mid); }
        .t-row-history { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6432; padding: 0.08rem 0.4rem; border-radius: 3px; border: 1px solid #e3d4b0; background: #f1e7d3; }
        .t-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: right; min-width: 0; }
        .t-row-next { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-dark); white-space: nowrap; }
        .t-row-next-empty { color: var(--text-dark-tertiary); font-family: inherit; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }
        .t-entry-badge { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 4px; white-space: nowrap; }
        .t-entry-badge.entry-open    { background: #dee3ec; color: #4a5a72; border: 1px solid #c8d1de; }
        .t-entry-badge.entry-closing { background: #f1e7d3; color: #7a6432; border: 1px solid #e3d4b0; }
        .t-entry-badge.entry-closed  { background: transparent; color: var(--text-dark-tertiary); border: 1px solid var(--border-soft); }
        .t-entry-badge.entry-market  { background: #dee3ec; color: #4a5a72; border: 1px solid #c8d1de; }
        .t-entry-badge.entry-decided { background: #e6ede2; color: #4f6240; border: 1px solid #d4ddca; }
        .t-entry-badge.entry-delivery{ background: var(--bg-sidebar); color: var(--text-dark-tertiary); border: 1px solid var(--border-soft); }

        /* --- EXPAND PANEL --- */
        .t-row-panel { grid-column: 1 / -1; padding: 0.65rem 0.5rem 0.9rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
        .t-row-panel h4 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); margin: 0 0 0.35rem; }
        .t-row-panel p { font-size: 13px; color: var(--text-dark); margin: 0 0 0.5rem; line-height: 1.55; }
        .t-row-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
        .t-row-panel li a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 13px; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--border-soft); padding-bottom: 1px; transition: border-color 0.1s; }
        .t-row-panel li a:hover { border-bottom-color: var(--text-dark); }
        .t-row-panel-hint { font-size: 11.5px; color: var(--text-dark-tertiary); font-style: italic; }
        @media (max-width: 760px) {
            .t-row { grid-template-columns: 88px 1fr; grid-template-areas: "stage body" "right right"; }
            .t-row-stage { grid-area: stage; }
            .t-row-body  { grid-area: body; }
            .t-row-right { grid-area: right; flex-direction: row; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 0.25rem; }
            .t-row-title { white-space: normal; }
            .t-row-panel { grid-template-columns: 1fr; }
        }

        /* --- EMPTY STATE --- */
        .t-empty { padding: 1.4rem 1rem; text-align: center; color: var(--text-dark-secondary); font-size: 13px; border: 1px dashed var(--border-soft); border-radius: 6px; }

        /* --- DETAIL PAGE TIMELINE (vertical) --- */
        .t-timeline { position: relative; display: flex; flex-direction: column; gap: 1rem; margin: 0.8rem 0 0; padding-left: 0; }
        .t-tl-row { display: grid; grid-template-columns: 70px 18px 1fr; gap: 0.9rem; align-items: start; }
        /* Date column: year on top in mono, month/quarter on second line. */
        .t-tl-date { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; padding-top: 0.1rem; display: flex; flex-direction: column; line-height: 1.2; }
        .t-tl-year    { font-size: 14px; font-weight: 500; color: var(--text-dark); }
        .t-tl-month   { font-size: 11.5px; color: var(--text-dark-tertiary); margin-top: 0.05rem; }
        .t-tl-quarter { font-size: 11.5px; color: var(--text-dark-tertiary); }
        .t-tl-marker-col { position: relative; display: flex; justify-content: center; min-height: 28px; }
        .t-tl-marker-col::before { content: ''; position: absolute; left: 50%; top: 18px; bottom: -16px; width: 1px; background: var(--border-soft); transform: translateX(-50%); }
        .t-tl-row:last-child .t-tl-marker-col::before { display: none; }
        .t-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dark-tertiary); margin-top: 6px; z-index: 1; }
        .t-tl-dot.is-current   { width: 14px; height: 14px; background: #6479a0; margin-top: 4px; box-shadow: 0 0 0 4px rgba(100, 121, 160, 0.12); }
        .t-tl-dot.is-setback   { background: transparent; border: 1.5px solid #b08b3c; }
        .t-tl-dot.is-forecast  { background: transparent; border: 1.5px dashed var(--border-mid); }
        .t-tl-body { font-size: 13.5px; color: var(--text-dark); padding-top: 0.05rem; }
        .t-tl-label { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
        .t-tl-row.is-current   .t-tl-label { font-weight: 600; color: #4a5a72; }
        .t-tl-row.is-setback   .t-tl-label { color: #7a6432; }
        .t-tl-row.is-forecast  .t-tl-label { color: var(--text-dark-tertiary); }
        .t-tl-meta { font-size: 12px; color: var(--text-dark-secondary); margin-top: 0.2rem; line-height: 1.5; }
        .t-tl-note-text { color: var(--text-dark-secondary); }
        .t-tl-src       { color: var(--text-dark-tertiary); }
        .t-tl-src a     { color: var(--text-dark-secondary); border-bottom: 1px solid var(--border-soft); }
        .t-tl-src a:hover { border-bottom-color: var(--text-dark); color: var(--text-dark); }
        .t-tl-sep { color: var(--border-mid); margin: 0 0.1rem; }
        /* Bidder-count badge next to the event label */
        .t-tl-count { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 10px; background: var(--bg-warm); color: var(--text-dark-secondary); font-size: 11px; font-weight: 500; font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; }

        /* Detail header chip (re-uses .tender-stage-chip via new modifier) */
        .t-detail-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 0 0 0.6rem; }
        .t-detail-now { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; background: #dee3ec; color: #4a5a72; border: 1px solid #c8d1de; }

        /* --- STRUCTURED PROJECT FACTS --- Scraped from procurer portfolio
           pages (Sharakat, EWEC, etc.). Sits above the legacy "About" text on
           the tender detail page. Two-column auto-fitting grid; mono values
           reuse the existing tabular-nums treatment. */
        .t-facts {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.55rem 1.4rem;
            margin: 0.4rem 0 0.6rem;
            padding: 0.9rem 1rem;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
        }
        .t-fact { display: flex; flex-direction: column; gap: 0.12rem; margin: 0; }
        .t-fact dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); margin: 0; }
        .t-fact dd { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--text-dark); margin: 0; line-height: 1.35; }

        /* News structured facts - same shape as .t-facts but allowed to grow
           wider since some news rows (Prequalified, Lenders) hold long lists. */
        .news-facts {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.55rem 1.4rem;
            margin: 0.3rem 0 1.2rem;
            padding: 1rem 1.1rem 0.9rem;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
        }
        @media (min-width: 760px) {
            .news-facts { grid-template-columns: minmax(160px, 200px) 1fr; gap: 0.6rem 1.5rem; align-items: baseline; }
            .news-fact { display: contents; }
            .news-fact dt { padding-top: 0.1rem; }
        }
        .news-fact { display: flex; flex-direction: column; gap: 0.12rem; margin: 0; }
        .news-fact dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); margin: 0; }
        .news-fact dd { font-size: 13.5px; color: var(--text-dark); margin: 0; line-height: 1.5; }
        /* Vertical-stack value rendering for lists like Lenders, Prequalified
           bidders, Advisors. Each entry on its own row; optional sub (amount /
           share / note) rendered to the right of the name in muted text. */
        .news-fact-vstack { display: flex; flex-direction: column; gap: 0.18rem; }
        .news-fact-vrow   { font-size: 13.5px; color: var(--text-dark); line-height: 1.35; }
        .news-fact-sub   { font-size: 11.5px; color: var(--text-dark-tertiary); margin-left: 0.25rem; }
        .news-fact-count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.3rem; border-radius: 8px; background: var(--border-soft); color: var(--text-dark-secondary); font-size: 10px; font-weight: 600; text-align: center; vertical-align: middle; }

        /* News structured facts CARD: outer wrapper + multiple sub-grouped
           definition lists (Parties / Commercial / Timeline / Technical),
           each with its own small heading. Replaces the single flat .news-facts
           block when an item has enough fields to warrant grouping. */
        .news-facts-card {
            margin: 0.3rem 0 1.2rem;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            overflow: hidden;
        }
        .news-facts-group { padding: 0.95rem 1.1rem 0.9rem; }
        .news-facts-group + .news-facts-group { border-top: 1px solid var(--border-soft); }
        .news-facts-heading {
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            margin: 0 0 0.55rem;
        }
        /* When inside the grouped card, the inner .news-facts gets no padding
           or background of its own - the wrapper provides those. */
        .news-facts-card .news-facts {
            margin: 0;
            padding: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            gap: 0.45rem 1.4rem;
        }
        @media (min-width: 760px) {
            .news-facts-card .news-facts { gap: 0.5rem 1.5rem; }
        }

        /* ========= News detail: compact tender-lifecycle timeline =========
           Rendered INSIDE the Timeline group of the facts card as inline SVG
           (see renderTimelineSvg in ppp-database.js). The SVG has a fixed
           viewBox so it scales down on narrow widths without breaking the
           label collision layout. display:block + line-height:0 on the SVG
           kills the inline-baseline descender gap so the Timeline section
           sits at the same vertical density as Parties / Commercial /
           Technical - the facts-group padding is the only breathing room. */
        .news-timeline-svg {
            display: block;
            width: 100%;
            max-width: 70%;        /* leaves the right ~30% of the card empty - the timeline is a glance, not a feature wall */
            height: auto;
            margin: 0;
            line-height: 0;
        }
        @media (max-width: 760px) { .news-timeline-svg { max-width: 100%; } }

        .news-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
        .news-item {
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 0.85rem 1.05rem 0.8rem;
            background: #fff;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .news-item:hover {
            border-color: var(--border-mid);
            box-shadow: 0 4px 14px rgba(0,0,0,0.035);
        }
        .news-meta {
            font-size: 11.5px; color: var(--text-dark-tertiary);
            letter-spacing: 0.06em; text-transform: uppercase;
            margin-bottom: 0.3rem;
            font-weight: 500;
        }
        .news-meta-source { color: var(--text-dark-secondary); }
        .news-title {
            font-size: 14.5px; font-weight: 500; color: var(--text-dark);
            line-height: 1.32; margin-bottom: 0.35rem; letter-spacing: -0.012em;
        }
        .news-summary {
            font-size: 13px; color: var(--text-dark-secondary);
            line-height: 1.5; margin-bottom: 0.5rem;
        }
        .news-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 12.5px; }
        .news-actions a {
            color: var(--text-dark-secondary);
            cursor: pointer; text-decoration: none;
            display: inline-flex; align-items: center; gap: 3px;
        }
        .news-actions a:hover { color: var(--text-dark); }
        .news-actions a + a { border-left: 1px solid var(--border-soft); padding-left: 1rem; margin-left: 0; }

        /* Source link in a table cell */
        a.source-link {
            color: var(--text-dark-secondary);
            text-decoration: none;
            display: inline-flex; align-items: center; gap: 3px;
            font-size: 12.5px;
        }
        a.source-link:hover { color: var(--text-dark); text-decoration: underline; }

        /* ========= PORTFOLIO BRAND STRIP ========= */
        .portfolio-strip {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 0.55rem;
            margin: 1rem 0 1.75rem;
        }
        .portfolio-card {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            min-height: 70px;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 0.65rem 0.85rem;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--text-dark);
            letter-spacing: -0.018em;
            text-align: center;
            transition: border-color 0.15s ease, background 0.15s ease;
            line-height: 1.2;
        }
        .portfolio-card:hover { border-color: var(--border-mid); background: var(--bg-sidebar); }
        .portfolio-card-name { display: block; }
        .portfolio-card-logo {
            height: 24px;
            max-width: 100px;
            object-fit: contain;
            margin-bottom: 6px;
            display: block;
        }
        .portfolio-card-sub {
            display: block; margin-top: 4px;
            font-size: 10.5px; color: var(--text-dark-tertiary);
            font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
        }

        /* ========= OFFICE LOCATIONS ========= */
        .office-grid {
            display: grid; gap: 0.65rem;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            margin: 1rem 0 1.75rem;
        }
        .office-card {
            background: #fff; border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 0.9rem 1.05rem 0.95rem;
        }
        .office-region {
            font-size: 11px; color: var(--text-dark-tertiary);
            letter-spacing: 0.12em; text-transform: uppercase;
            font-weight: 500; margin-bottom: 0.35rem;
        }
        .office-name {
            font-size: 14.5px; font-weight: 500;
            margin-bottom: 0.3rem; letter-spacing: -0.015em;
        }
        .office-address {
            font-size: 13px; color: var(--text-dark-secondary);
            line-height: 1.5; margin-bottom: 0.45rem;
        }
        .office-actions {
            display: flex; gap: 0.85rem; font-size: 12.5px;
        }
        .office-actions a {
            color: var(--text-dark-secondary); text-decoration: none;
            display: inline-flex; align-items: center; gap: 3px;
        }
        .office-actions a:hover { color: var(--text-dark); }

        /* ========= LEADERSHIP CARDS ========= */
        .leader-grid {
            display: grid; gap: 0.7rem;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            margin: 1rem 0 1.75rem;
        }
        .leader-card {
            background: linear-gradient(180deg, #d9d4cc 0%, #1a1a1a 100%);
            border-radius: 14px;
            padding: 0;
            position: relative;
            overflow: hidden;
            aspect-ratio: 3 / 4;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            display: block;
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }
        .leader-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 36px rgba(0,0,0,0.16);
            text-decoration: none;
        }
        .leader-linkedin {
            position: absolute;
            top: 10px; right: 10px;
            width: 26px; height: 26px;
            border-radius: 50%;
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            display: flex; align-items: center; justify-content: center;
            color: #fff;
            z-index: 3;
            opacity: 0.85;
            transition: opacity 0.15s ease, background 0.15s ease;
        }
        .leader-card:hover .leader-linkedin { opacity: 1; background: #0a66c2; }
        .leader-photo {
            position: absolute; inset: 0;
            width: 100%; height: 100%;
            object-fit: cover; object-position: top center;
            display: block;
        }
        .leader-card-overlay {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 2.25rem 0.95rem 0.85rem;
            background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.88) 100%);
            color: #fff;
            z-index: 2;
        }
        .leader-name {
            font-size: 13.5px; font-weight: 600;
            color: #6dbf9f;
            margin-bottom: 0.2rem;
            letter-spacing: -0.012em; line-height: 1.22;
        }
        .leader-role {
            font-size: 12.5px;
            color: rgba(255,255,255,0.95);
            line-height: 1.32;
            letter-spacing: -0.005em;
        }
        .leader-avatar {
            position: absolute; top: 14px; left: 14px; z-index: 3;
            width: 42px; height: 42px; border-radius: 50%;
            background: linear-gradient(135deg, #3E4C59, #1a1a1a);
            color: #fff; font-weight: 500; font-size: 13px;
            display: flex; align-items: center; justify-content: center;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            border: 2px solid rgba(255,255,255,0.4);
        }
        .leader-card:has(.leader-photo) .leader-avatar { display: none; }
        .leader-body { display: contents; }

        /* ========= LEADER MODAL ========= */

        /* ========= DEPARTMENT CARDS (mid-tier team) ========= */
        .dept-grid {
            display: grid; gap: 0.55rem;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            margin: 0.75rem 0 1.5rem;
        }
        .dept-card {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 0.75rem 0.95rem;
            display: flex; align-items: center; gap: 0.7rem;
            transition: border-color 0.15s ease, transform 0.15s ease;
            text-decoration: none;
            color: var(--text-dark);
        }
        .dept-card:hover {
            border-color: var(--border-mid);
            transform: translateY(-1px);
            text-decoration: none;
            color: var(--text-dark);
        }
        .dept-avatar {
            width: 38px; height: 38px; border-radius: 9px;
            background: linear-gradient(135deg, #3E4C59, #1a1a1a);
            color: #fff;
            font-weight: 500; font-size: 12.5px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            overflow: hidden;
        }
        .dept-avatar img {
            width: 100%; height: 100%;
            object-fit: cover; object-position: top center;
            display: block;
        }
        .dept-info { flex: 1; min-width: 0; overflow: hidden; }
        .dept-name {
            font-size: 13.5px; font-weight: 500;
            color: var(--text-dark);
            line-height: 1.25;
            letter-spacing: -0.012em;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .dept-role {
            font-size: 11.5px;
            color: var(--text-dark-secondary);
            line-height: 1.35;
            margin-top: 2px;
            overflow: hidden; text-overflow: ellipsis;
        }
        .dept-linkedin-tag {
            margin-left: auto;
            color: var(--text-dark-tertiary);
            display: inline-flex; align-items: center;
            font-size: 11px;
            flex-shrink: 0;
        }
        .dept-card:hover .dept-linkedin-tag { color: #0a66c2; }

        /* ========= AWARDS ========= */
        .award-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0 1.5rem; }
        .award-item {
            display: flex; align-items: center; gap: 0.85rem;
            padding: 0.7rem 1rem;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
        }
        .award-medal {
            flex-shrink: 0;
            width: 32px; height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4af37, #9e7a26);
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 14px;
        }
        .award-body { flex: 1; }
        .award-title { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 0.15rem; line-height: 1.3; }
        .award-meta { font-size: 12px; color: var(--text-dark-tertiary); }
        .award-link { font-size: 12.5px; color: var(--text-dark-secondary); white-space: nowrap; }
        .award-link:hover { color: var(--text-dark); }

        /* ========= SOCIAL / CONTACT CHIPS ========= */
        .social-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1.5rem; }
        .social-chip {
            display: inline-flex; align-items: center; gap: 7px;
            background: #fff; border: 1px solid var(--border-mid);
            border-radius: 999px;
            padding: 5px 13px 5px 10px;
            font-size: 12.5px; color: var(--text-dark);
            text-decoration: none;
            transition: background 0.15s ease, border-color 0.15s ease;
            line-height: 1.4;
        }
        .social-chip:hover { background: var(--bg-sidebar); border-color: rgba(26,26,26,0.32); text-decoration: none; color: var(--text-dark); }
        .social-chip svg { flex-shrink: 0; }
        .social-chip-handle { color: var(--text-dark-tertiary); }
        .social-chip-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
        .social-chip-whatsapp:hover { background: #128c47; border-color: #128c47; color: #fff; }
        .social-chip-whatsapp .social-chip-handle { color: rgba(255,255,255,0.85); }

