        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --bg-primary: #ffffff;
            --bg-warm: #c4b8b0;
            --bg-warm-light: #d9cfc8;
            --bg-warm-dark: #928989;
            --bg-light: #f5f3f0;
            --bg-sidebar: #faf8f6;
            --bg-dark: #1a1a1a;
            --text-dark: #1a1a1a;
            --text-dark-secondary: rgba(26, 26, 26, 0.55);
            --text-dark-tertiary: rgba(26, 26, 26, 0.4);
            --text-light: #ffffff;
            --border-soft: rgba(26, 26, 26, 0.08);
            --border-mid: rgba(26, 26, 26, 0.14);
        }

        html { scroll-behavior: smooth; }
        /* Prevent the page itself from ever scrolling horizontally - any wide content
           (e.g. the ISTP table) must scroll within its own container, not push the page. */
        html, body { overflow-x: hidden; }

        body {
            font-family: 'Helvetica Now Text', 'Inter', Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-dark);
            font-size: 15px;
            font-weight: 400;
            line-height: 1.55;
            letter-spacing: -0.01em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.045em; margin-bottom: 1rem; }
        h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; margin-top: 2.5rem; margin-bottom: 0.85rem; }
        h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin-top: 1.75rem; margin-bottom: 0.65rem; color: var(--text-dark); }
        h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }

        p { margin-bottom: 0.9rem; color: var(--text-dark); }
        p.lede { font-size: 1.0625rem; color: var(--text-dark-secondary); line-height: 1.6; letter-spacing: -0.02em; margin-bottom: 1.75rem; }

        a { color: #4a5d6e; text-decoration: none; }
        a:hover { color: var(--text-dark); text-decoration: underline; text-decoration-color: rgba(26,26,26,0.25); text-underline-offset: 3px; }

        ul, ol { margin: 0.5rem 0 1.25rem 1.4rem; }
        li { margin-bottom: 0.35rem; }
        li::marker { color: var(--text-dark-tertiary); }

        code, .mono { font-family: 'SF Mono', 'Menlo', 'Monaco', monospace; font-size: 0.85em; background: var(--bg-light); padding: 1px 6px; border-radius: 4px; }

        /* ========= TOP NAV ========= */
        .topbar {
            position: sticky; top: 0; z-index: 100;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-soft);
            padding: 0.85rem 2.5rem;
        }
        .topbar-inner { display: flex; align-items: center; justify-content: flex-start; max-width: 100%; gap: 1.5rem; }
        .topbar-inner .topbar-search { margin-left: auto; }
        .brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.025em; cursor: pointer; }
        .brand-mark {
            display: inline-flex; align-items: center; justify-content: center;
        }
        .brand-name { display: flex; flex-direction: column; line-height: 1.05; }
        .brand-name-main { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.025em; }
        .brand-name-sub { font-size: 0.7rem; font-weight: 400; color: var(--text-dark-secondary); letter-spacing: 0; margin-top: 1px; }

        .topbar-search {
            flex: 1; max-width: 480px;
            position: relative;
        }
        .topbar-search input {
            width: 100%; height: 36px;
            border: 1px solid var(--border-mid);
            border-radius: 8px;
            padding: 0 36px 0 36px;
            font-family: inherit; font-size: 13.5px; color: var(--text-dark);
            background: #fff;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            letter-spacing: -0.01em;
        }
        .topbar-search input::placeholder { color: var(--text-dark-tertiary); }
        .topbar-search input:focus { outline: none; border-color: var(--bg-warm-dark); box-shadow: 0 0 0 3px rgba(146,137,137,0.12); }
        .topbar-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-dark-tertiary); pointer-events: none; }
        .topbar-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dark-tertiary); cursor: pointer; font-size: 14px; display: none; padding: 2px 6px; }
        .topbar-search input:not(:placeholder-shown) + .topbar-search-clear { display: block; }

        .topbar-meta { font-size: 0.75rem; color: var(--text-dark-tertiary); letter-spacing: 0.04em; text-transform: uppercase; }

        /* Top-bar nav links - matches vars.live style */
        .topbar-nav { display: flex; align-items: center; gap: 1.5rem; }
        .topbar-nav-link {
            font-size: 14px;
            color: var(--text-dark-secondary);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: -0.01em;
            transition: color 0.15s ease;
            cursor: pointer;
        }
        .topbar-nav-link:hover { color: var(--text-dark); }
        @media (max-width: 768px) {
            .topbar-nav { display: none; }
        }

        /* On About / Methodology the sidebar is hidden so the content uses the full width.
           The breadcrumb stays visible (every page needs path context). */
        body.view-fullwidth aside.sidebar,
        body.view-fullwidth .sidebar-resize { display: none !important; }
        body.view-fullwidth .layout { grid-template-columns: 1fr !important; }
        body.view-fullwidth .content { padding: 2rem 2rem 6rem; }

        /* About page styling (vars.live-inspired) - full content width, body padding handles edges */
        .about-hero { width: 100%; text-align: left; padding: 1rem 0 3rem; }
        .about-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 1.5rem; }
        .about-hero .lede { font-size: 1.125rem; color: var(--text-dark-secondary); line-height: 1.65; margin-bottom: 2rem; }
        .about-section { width: 100%; margin: 0 0 3rem; }
        .about-section h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 0.85rem; }
        .about-section p { color: var(--text-dark); line-height: 1.7; margin-bottom: 0.9rem; }
        .about-divider { width: 100%; margin: 3rem 0; border: none; border-top: 1px solid var(--border-soft); }

        /* Statista-style stat aside on About / Methodology pages */
        .about-stats {
            float: right;
            width: 360px;
            margin: 0.5rem 0 1.5rem 2.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }
        .stat-card {
            padding: 1.5rem 1.75rem;
            border-radius: 10px;
            background: var(--bg-warm-light);
            border: 1px solid var(--border-soft);
        }
        .stat-card-primary { background: #2c5cdc; color: #fff; border: 0; }
        .stat-card-dark { background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%); color: #fff; border: 0; }
        .stat-card .stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-secondary); margin-bottom: 0.45rem; }
        .stat-card-primary .stat-label, .stat-card-dark .stat-label { color: rgba(255,255,255,0.78); }
        .stat-card .stat-value { font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-dark); }
        .stat-card-primary .stat-value, .stat-card-dark .stat-value { color: #fff; }
        @media (max-width: 900px) {
            .about-stats { float: none; width: auto; margin: 0 0 2rem; }
            .stat-card { padding: 1rem 1.2rem; }
            .stat-card .stat-value { font-size: 1.6rem; }
        }
        /* vars.live-style multi-column footer for the About page - spans full content width */
        .vars-footer { width: 100%; margin: 4rem 0 0; padding: 4rem 0 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
        .gulfinfra-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
        .gulfinfra-footer-brand-name { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; margin: 0 0 0.85rem; color: var(--text-dark); }
        .gulfinfra-footer-tagline { font-size: 14px; color: var(--text-dark-secondary); line-height: 1.55; margin: 0; max-width: 320px; }
        .gulfinfra-footer-col-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-secondary); margin-bottom: 1rem; }
        .gulfinfra-footer-col a, .gulfinfra-footer-col span { display: block; font-size: 14px; color: var(--text-dark); text-decoration: none; padding: 0.25rem 0; cursor: pointer; }
        .gulfinfra-footer-col a:hover { text-decoration: underline; }
        .gulfinfra-footer-bottom { width: 100%; margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-secondary); }
        .gulfinfra-footer-publisher { width: 100%; margin: 0.5rem 0 0; display: flex; align-items: center; gap: 0.6rem; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); }
        .gulfinfra-footer-publisher-label { font-weight: 500; }
        .gulfinfra-footer-publisher-mark { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--text-dark-secondary); font-weight: 600; letter-spacing: 0.04em; }
        .gulfinfra-footer-publisher-mark img { height: 16px; width: auto; }

        /* Overview page: side-by-side entry-point cards (Infrastructure database + Methodology) */
        .overview-embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 2rem 0; }
        .overview-embed-card { display: block; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; color: var(--text-dark); text-decoration: none; transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
        .overview-embed-card:hover { border-color: #6b6360; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
        .overview-embed-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-bottom: 0.5rem; }
        .overview-embed-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.55rem; }
        .overview-embed-blurb { font-size: 14px; color: var(--text-dark-secondary); line-height: 1.55; margin: 0 0 1rem; }
        .overview-embed-cta { font-size: 13px; font-weight: 500; color: var(--text-dark); }
        @media (max-width: 768px) {
            .gulfinfra-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
        }

        /* ========= LAYOUT ========= */
        .layout {
            display: grid;
            grid-template-columns: var(--sidebar-w, 240px) 6px 1fr;
            min-height: calc(100vh - 58px);
        }
        @media (max-width: 900px) {
            .layout { grid-template-columns: 1fr; }
        }

        /* ========= SIDEBAR ========= */
        .sidebar {
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-soft);
            padding: 1.5rem 0.5rem 3rem 0;
            position: sticky; top: 58px;
            height: calc(100vh - 58px);
            overflow-y: auto;
            font-size: 13.5px;
        }
        /* Drag handle to resize the sidebar (desktop only). */
        .sidebar-resize {
            position: sticky;
            top: 58px;
            height: calc(100vh - 58px);
            cursor: col-resize;
            background: transparent;
            border-left: 1px solid var(--border-soft);
            transition: background 0.15s ease;
            z-index: 5;
            user-select: none;
        }
        .sidebar-resize:hover,
        .sidebar-resize.dragging {
            background: var(--bg-warm-dark);
            border-color: var(--bg-warm-dark);
        }
        @media (max-width: 900px) {
            .sidebar-resize { display: none; }
        }
        .sidebar::-webkit-scrollbar { width: 8px; }
        .sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
        .sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

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

        .tree-node { position: relative; }
        .tree-row {
            display: flex; align-items: center; gap: 6px;
            padding: 5px 10px 5px 6px;
            cursor: pointer;
            border-radius: 6px;
            margin: 1px 6px 1px 4px;
            color: var(--text-dark);
            transition: background 0.12s ease;
            font-size: 13px;
        }
        .tree-row:hover { background: rgba(26,26,26,0.04); }
        .tree-row.active { background: rgba(146,137,137,0.18); color: var(--text-dark); font-weight: 500; }
        .tree-row.active .tree-label { color: var(--text-dark); }
        .tree-label { flex: 1; min-width: 0; }

        /* Toggle arrow is hidden - the whole row is the click target. Parent rows
           open/close their children on click + also navigate to their landing page. */
        .tree-toggle { display: none; }

        .tree-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 18px; height: 18px;
            color: var(--text-dark-secondary);
            flex-shrink: 0;
        }
        .tree-row.active .tree-icon { color: var(--text-dark); }
        /* Indented sectors (level 1) use a small dot, not the full icon */
        .tree-level-1 .tree-icon { width: 10px; font-size: 11px; color: var(--text-dark-tertiary); }
        .topic-meta { display: none; }
        .banner-disclaimer { display: none; }
        .topbar-meta { display: none; }

        .tree-label {
            font-size: 13.5px;
            line-height: 1.35;
            letter-spacing: -0.01em;
            color: var(--text-dark);
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Indent levels */
        .tree-level-0 > .tree-row { padding-left: 8px; font-weight: 500; }
        .tree-level-1 > .tree-row { padding-left: 22px; }
        .tree-level-2 > .tree-row { padding-left: 38px; }
        .tree-level-3 > .tree-row { padding-left: 54px; }

        .tree-node > ul { display: none; }
        .tree-node.open > ul { display: block; }

        .tree-section-label {
            font-size: 10.5px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            padding: 14px 16px 6px 16px;
            font-weight: 500;
        }
        .tree-section-label:first-child { padding-top: 4px; }

        .tree-hit { background: rgba(244, 222, 156, 0.35) !important; }

        /* Sidebar group label - faint uppercase header that separates Sector benchmarks / Directories / Reference */
        .tree-group-label {
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.13em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            padding: 1.1rem 0.85rem 0.35rem;
            border-top: 1px solid var(--border-soft);
            margin: 0.45rem 0.45rem 0;
            list-style: none;
            user-select: none;
            pointer-events: none;
        }
        .tree-group-label:first-of-type { margin-top: 0.65rem; }

        /* ========= 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;
        }
        .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; }

        .glossary-section { margin-bottom: 1.8rem; scroll-margin-top: 110px; }
        .glossary-section-header { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.7rem; }
        .glossary-section-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
        .glossary-section-count { font-size: 12px; color: var(--text-dark-secondary); font-variant-numeric: tabular-nums; }
        .glossary-subgroup { margin-top: 1rem; }
        .glossary-subgroup-label {
            display: block; margin: 0 0 0.5rem;
            font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
            text-transform: uppercase; color: var(--text-dark-secondary);
        }

        .glossary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0.75rem;
        }

        .glossary-card {
            display: flex; flex-direction: column;
            background: #fff;
            border: 1px solid var(--border-soft); border-radius: 10px;
            padding: 0.9rem 1rem 0;
            scroll-margin-top: 110px;
            position: relative;
        }
        .glossary-card-head {
            display: flex; align-items: flex-start; gap: 0.5rem;
        }
        .glossary-card-term {
            font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--text-dark);
            margin: 0;
            flex: 1; min-width: 0; word-wrap: break-word;
        }
        .glossary-card-expand {
            flex-shrink: 0;
            width: 26px; height: 26px;
            display: inline-flex; align-items: center; justify-content: center;
            background: transparent; border: 1px solid var(--border-mid); border-radius: 999px;
            cursor: pointer; padding: 0;
            color: var(--text-dark);
            transition: background 120ms, transform 200ms ease;
        }
        .glossary-card-expand:hover { background: var(--bg-sidebar); }
        .glossary-card-expand svg { width: 12px; height: 12px; transition: transform 200ms ease; }
        .glossary-card-expand[aria-expanded="true"] svg { transform: rotate(45deg); }
        .glossary-card-expansion {
            margin: 0.4rem 0 0;
            font-size: 13px; line-height: 1.5; color: var(--text-dark-secondary);
        }
        .glossary-card-detail {
            margin: 0.6rem 0 0;
            font-size: 13px; line-height: 1.55; color: var(--text-dark);
            padding: 0.55rem 0.75rem;
            background: var(--bg-sidebar);
            border-radius: 6px;
        }
        .glossary-card-detail[hidden] { display: none; }
        .glossary-card-foot {
            display: flex; justify-content: space-between; align-items: center;
            gap: 0.4rem;
            margin-top: 0.75rem;
            padding: 0.55rem 0 0.7rem;
            border-top: 1px solid var(--border-soft);
        }
        .glossary-card-pill {
            display: inline-flex; align-items: center;
            padding: 0.16rem 0.55rem;
            font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
            border-radius: 999px;
            max-width: 60%;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .glossary-card-actions { display: inline-flex; align-items: center; gap: 0.3rem; }
        .glossary-card-xlink { font-size: 11.5px; color: var(--text-dark); font-weight: 500; text-decoration: none; }
        .glossary-card-xlink:hover { text-decoration: underline; }
        .glossary-card-copy {
            width: 24px; height: 24px;
            display: inline-flex; align-items: center; justify-content: center;
            background: transparent; border: 0; border-radius: 6px;
            cursor: pointer; color: var(--text-dark-secondary);
            padding: 0;
            transition: background 120ms, color 120ms;
        }
        .glossary-card-copy:hover { background: var(--bg-sidebar); color: var(--text-dark); }
        .glossary-card-copy svg { width: 13px; height: 13px; }
        .glossary-card-copy.is-copied { color: #085041; }

        /* 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. */

        /* 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%; } }

        /* ========= ISTP: "How is the sewage treated?" flow diagram ========= */
        .istp-flow-wrap {
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 1.2rem 1.25rem 1rem;
            margin: 0.9rem 0 1.5rem;
        }
        .istp-flow-svg {
            display: block;
            width: 100%;
            max-width: 720px;
            height: auto;
            margin: 0 auto;
        }
        .iflow-box {
            cursor: pointer;
            transition: filter 150ms ease, opacity 150ms ease;
        }
        .iflow-box rect {
            transition: stroke-width 150ms ease, filter 150ms ease;
        }
        .iflow-box:hover rect,
        .iflow-box:focus rect {
            stroke-width: 2;
            filter: brightness(0.98);
        }
        .iflow-box:focus { outline: none; }
        .iflow-box.is-active rect {
            stroke-width: 2.5;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
        }
        .istp-flow-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.4rem 1.5rem;
            margin: 0.75rem 0 0;
            font-size: 13px;
            color: var(--text-dark-secondary);
        }
        .iflow-lg { display: inline-flex; align-items: center; gap: 0.4rem; }
        .iflow-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid currentColor; }
        .istp-flow-detail {
            margin-top: 1rem;
            padding: 0.95rem 1.1rem;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
        }
        .istp-flow-detail[data-empty="true"] h4,
        .istp-flow-detail[data-empty="true"] p { color: var(--text-dark-tertiary); }
        .istp-flow-detail h4 {
            font-size: 14px;
            font-weight: 600;
            margin: 0 0 0.4rem;
            color: var(--text-dark);
        }
        .istp-flow-detail p {
            font-size: 13px;
            line-height: 1.55;
            color: var(--text-dark-secondary);
            margin: 0;
        }

        /* ========= ISTP research insight cards (2 -> 5) =========
           Each card carries: numbered title + subtitle + download menu,
           then the chart SVG, narrative paragraph and an INTERESTING
           call-out box. Reused for the IWPP / SWRO / etc. tabs later. */
        .istp-insight-card {
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 1rem 1.3rem 1.15rem;
            margin: 0 0 1.25rem;
            /* No max-width - span the full content column */
        }
        .istp-insight-title { font-size: 16px; }
        .istp-insight-sub   { font-size: 13px; }
        .istp-insight-chart { padding: 0.8rem 1rem; margin: 0.55rem 0 0.8rem; }
        .istp-insight-narr  { font-size: 13.5px; margin-bottom: 0.8rem; }
        .istp-insight-callout { padding: 0.65rem 1rem 0.75rem; }
        .istp-insight-callout p { font-size: 13px; }
        .istp-insight-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.6rem;
        }
        .istp-insight-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.35;
        }
        .istp-insight-num {
            display: inline-block;
            margin-right: 0.3rem;
            color: var(--text-dark-tertiary);
            font-weight: 500;
        }
        .istp-insight-sub {
            font-size: 12.5px;
            color: var(--text-dark-tertiary);
            margin-top: 0.25rem;
        }
        .istp-insight-chart {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 0.9rem 1rem;
            margin: 0.5rem 0 0.9rem;
            overflow-x: auto;
        }
        .istp-insight-svg {
            display: block;
            width: 100%;
            max-width: 100%;
            margin: 0;
            height: auto;
        }
        /* Chart 1 (tariff scatter) - cap rendered height at 360px so it
           doesn't dominate the page; the SVG scales proportionally. */
        #istpBenchmarkChart #istpScatterSvg { max-width: 100%; max-height: 360px; margin: 0; }
        /* Tighter legend pills below chart 1 */
        #istpScatterLegend > span { font-size: 12px !important; padding: 3px 8px !important; }
        .istp-insight-svg .istp-bar { transition: opacity 150ms ease; }
        .istp-insight-svg .istp-bar:hover { opacity: 0.78; }
        /* Brief highlight on the table row when a chart click scrolls to it */
        .db-row.is-flash { background: rgba(196, 90, 58, 0.12) !important; transition: background 600ms ease; }
        .db-row.is-flash > td { background: #fef3c7 !important; transition: background 800ms; }
        /* Clickable chart bar / bubble overlays */
        svg .ihit { cursor: pointer; transition: opacity 120ms; }
        svg .ihit:hover { fill: rgba(26,26,26,0.06); }
        svg .iscatter { cursor: pointer; transition: stroke-width 120ms; }
        svg .iscatter:hover { stroke-width: 3; }
        /* Active-filter chip row above the database table */
        .istp-active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
        .istp-active-filter-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.55rem 0.25rem 0.75rem; background: #1a1a1a; color: #fff; border-radius: 999px; font-size: 12px; }
        .istp-active-filter-chip button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 0; line-height: 1; font-size: 14px; }
        /* Shared breakdown popup for the four insight charts */
        .istp-insight-popup {
            position: fixed;
            display: none;
            z-index: 100;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            box-shadow: 0 8px 28px rgba(0,0,0,0.14);
            padding: 0.85rem 1rem 0.9rem;
            min-width: 260px;
            max-width: 360px;
            font-size: 12.5px;
        }
        .istp-insight-popup .ip-title { font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 0.15rem; }
        .istp-insight-popup .ip-sub   { font-size: 11.5px; color: var(--text-dark-tertiary); margin-bottom: 0.55rem; }
        .istp-insight-popup .ip-list  { display: flex; flex-direction: column; gap: 0.05rem; max-height: 320px; overflow-y: auto; }
        .istp-insight-popup .ip-link  {
            display: flex;
            justify-content: space-between;
            gap: 0.7rem;
            padding: 0.35rem 0.3rem;
            border-radius: 4px;
            text-decoration: none;
            color: var(--text-dark);
            font-size: 12.5px;
            border-bottom: 1px dashed var(--border-soft);
        }
        .istp-insight-popup .ip-link:last-child { border-bottom: none; }
        .istp-insight-popup .ip-link:hover { background: var(--bg-sidebar); color: var(--bg-warm-dark); }
        .istp-insight-popup .ip-val   { color: var(--text-dark-secondary); white-space: nowrap; font-feature-settings: "tnum"; }
        .istp-insight-popup .ip-foot  { font-size: 11px; color: var(--text-dark-tertiary); margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px solid var(--border-soft); }
        .istp-insight-popup .ip-link-l { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1; }
        .istp-insight-popup .ip-link-name { font-size: 12.5px; color: var(--text-dark); }
        .istp-insight-popup .ip-yrs    { font-size: 10.5px; color: var(--text-dark-tertiary); font-feature-settings: "tnum"; }
        /* Dates popup (chart 5) */
        .istp-insight-popup .ip-dates { margin: 0.4rem 0 0.45rem; }
        .istp-insight-popup .ip-dates > div {
            display: flex; justify-content: space-between; gap: 0.7rem;
            padding: 0.32rem 0;
            border-bottom: 1px dashed var(--border-soft);
        }
        .istp-insight-popup .ip-dates > div:last-child { border-bottom: none; }
        .istp-insight-popup .ip-date-k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dark-tertiary); }
        .istp-insight-popup .ip-date-v { font-size: 12.5px; color: var(--text-dark); font-feature-settings: "tnum"; }
        .istp-insight-narr {
            margin: 0 0 0.85rem;
            font-size: 13.5px;
            line-height: 1.55;
            color: var(--text-dark);
        }
        .istp-insight-callout {
            background: #f7eeea;
            border-left: 3px solid #c45a3a;
            border-radius: 6px;
            padding: 0.7rem 0.95rem 0.8rem;
        }
        .istp-insight-callout-label {
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: #8a3b22;
            margin-bottom: 0.3rem;
        }
        .istp-insight-callout p {
            margin: 0;
            font-size: 13px;
            line-height: 1.55;
            color: var(--text-dark);
        }

        /* ========= Compact research-tab table (db-card) =========
           Magazine-style data table: dark warm-brown header bar, meta row
           with project count, then six clean columns. The full 28-column
           schema lives in the JSON; the Excel download exports all of it.
           Used on the ISTP Research tab and reusable for other industries. */
        .db-card {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            overflow: hidden;
            margin: 0 0 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        .db-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.85rem 1.1rem;
            background: var(--bg-warm-dark);
            color: #fff;
        }
        .db-card-title { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
        .db-card-brand {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }
        .db-card-name {
            font-size: 13px;
            color: rgba(255,255,255,0.85);
        }
        .db-card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            padding: 0.55rem 1.1rem;
            background: var(--bg-sidebar);
            border-bottom: 1px solid var(--border-soft);
            font-size: 12.5px;
            color: var(--text-dark-secondary);
        }
        .db-card-table-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .db-card-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            min-width: 720px;
        }
        .db-card-table thead th {
            padding: 0.7rem 1rem;
            text-align: left;
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            background: #fff;
            border-bottom: 1px solid var(--border-soft);
            white-space: nowrap;
        }
        .db-card-table thead th.num { text-align: right; }
        .db-card-table tbody td {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid var(--border-soft);
            vertical-align: top;
            color: var(--text-dark);
            line-height: 1.4;
        }
        .db-card-table tbody tr:last-child td { border-bottom: none; }
        .db-card-table tbody tr:hover { background: var(--bg-sidebar); }
        .db-card-table tbody td.num { text-align: right; white-space: nowrap; }

        .db-project-head {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.15rem;
        }
        .db-project-name { font-weight: 600; font-size: 13.5px; color: var(--text-dark); }
        .db-project-loc  { font-size: 11.5px; color: var(--text-dark-tertiary); padding-left: 1.05rem; }
        .db-status-dot {
            display: inline-block;
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .db-status-dot.is-green { background: #6a8156; }
        .db-status-dot.is-amber { background: #b08b3c; }
        .db-status-dot.is-blue  { background: #6479a0; }
        .db-status-dot.is-grey  { background: #b5afa6; }

        .db-num-val { font-weight: 600; color: var(--text-dark); font-feature-settings: "tnum"; }
        .db-num-unit { font-size: 11px; color: var(--text-dark-tertiary); margin-left: 0.2rem; }
        .db-empty { color: var(--text-dark-tertiary); }

        .db-winner-lead { font-weight: 500; color: var(--text-dark); }
        .db-winner-tally {
            display: inline-block;
            margin-left: 0.4rem;
            padding: 0 0.4rem;
            border-radius: 999px;
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            font-size: 11px;
            color: var(--text-dark-secondary);
            font-weight: 500;
        }

        .db-col-fc { white-space: nowrap; color: var(--text-dark-secondary); font-size: 12.5px; }

        /* Row click affordance + expand chevron */
        .db-row { cursor: pointer; }
        .db-col-chevron { padding-right: 0 !important; padding-left: 0.75rem !important; vertical-align: middle !important; }
        .db-chevron {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px; height: 22px;
            background: none;
            border: none;
            color: var(--text-dark-tertiary);
            cursor: pointer;
            padding: 0;
            transition: transform 180ms ease, color 180ms ease;
        }
        .db-chevron:hover { color: var(--text-dark); }
        .db-row.is-expanded .db-chevron { transform: rotate(90deg); color: var(--text-dark); }
        .db-row.is-expanded { background: var(--bg-sidebar); }
        .db-row.is-expanded td { border-bottom-color: transparent; }

        /* Expanded detail row */
        .db-row-detail td { padding: 0 !important; background: #fcfbf7; border-bottom: 1px solid var(--border-soft); }
        .db-detail-panel { padding: 1.1rem 1.4rem 1.3rem; }
        .db-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.9rem;
            padding-bottom: 0.55rem;
            border-bottom: 1px dashed var(--border-soft);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
        }
        .db-detail-dl {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.8rem;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 5px;
            font-family: inherit;
            font-size: 11.5px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            text-transform: none;
            letter-spacing: 0;
        }
        .db-detail-dl:hover { background: var(--bg-sidebar); }

        .db-detail-group { margin-bottom: 1.1rem; }
        .db-detail-group:last-child { margin-bottom: 0; }
        .db-detail-group-heading {
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            margin-bottom: 0.45rem;
        }
        .db-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 0.55rem 1.5rem;
            margin: 0;
        }
        .db-detail-cell { margin: 0; }
        .db-detail-cell.is-full { grid-column: 1 / -1; }
        .db-detail-cell dt {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            margin-bottom: 0.12rem;
        }
        .db-detail-cell dd {
            margin: 0;
            font-size: 13px;
            color: var(--text-dark);
            line-height: 1.45;
        }
        .db-detail-prose {
            font-size: 13px;
            color: var(--text-dark);
            line-height: 1.55;
            white-space: pre-wrap;
        }
        .db-detail-source {
            display: block;
            font-size: 12px;
            color: var(--text-dark);
            text-decoration: none;
            padding: 0.2rem 0;
            border-bottom: 1px dashed var(--border-soft);
        }
        .db-detail-source:hover { color: var(--bg-warm-dark); }
        .db-detail-source:last-child { border-bottom: none; }
        .db-detail-sources { background: #fff; border: 1px solid var(--border-soft); border-radius: 6px; padding: 0.45rem 0.75rem; }
        .db-detail-verified { font-size: 11px; color: var(--text-dark-tertiary); margin-top: 0.45rem; font-style: italic; }

        @media (max-width: 760px) {
            .db-card-name { display: none; }
            .db-card-table { font-size: 12.5px; }
        }

        /* ========= ISTP: 'What different technologies are used' simple table ===
           Three columns: technology name + abbreviation, plain-language
           description, and a how-often-used pill. */
        .istp-tech-simple-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0 1.5rem;
            font-size: 13.5px;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            overflow: hidden;
        }
        .istp-tech-simple-table thead th {
            background: var(--bg-sidebar);
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            padding: 0.7rem 1rem;
            border-bottom: 1px solid var(--border-soft);
        }
        .istp-tech-simple-table tbody td {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid var(--border-soft);
            vertical-align: top;
            line-height: 1.55;
            color: var(--text-dark);
        }
        .istp-tech-simple-table tbody tr:last-child td { border-bottom: none; }
        .istp-tech-simple-table td:first-child { min-width: 180px; white-space: nowrap; }
        .istp-tech-simple-table td:nth-child(3) { white-space: nowrap; }
        .istp-tech-abbr {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.05em;
            margin-top: 0.15rem;
        }
        .istp-tech-freq {
            display: inline-block;
            padding: 0.22rem 0.65rem;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
        }
        .istp-tech-freq.freq-most      { background: #d0e4d6; color: #2f5a3d; }
        .istp-tech-freq.freq-often     { background: #d6e1f0; color: #2c4a72; }
        .istp-tech-freq.freq-sometimes { background: #efe1c8; color: #6e571f; }
        .istp-tech-freq.freq-rare      { background: #ebe1e1; color: #6b4848; }
        @media (max-width: 760px) {
            .istp-tech-simple-table td:first-child { white-space: normal; min-width: 0; }
            .istp-tech-simple-table td:nth-child(3) { white-space: normal; }
        }

        /* ========= ISTP: visual treatment-technologies block ========= */
        .istp-tech-chart-wrap {
            background: var(--bg-sidebar);
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 1.1rem 1.25rem 0.85rem;
            margin: 0.9rem 0 1.25rem;
        }
        .istp-tech-chart-title {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            margin-bottom: 0.35rem;
        }
        .istp-tech-chart {
            display: block;
            width: 100%;
            height: auto;
            max-width: 760px;
            margin: 0 auto;
        }
        .istp-tech-chart-source {
            font-size: 11.5px;
            color: var(--text-dark-tertiary);
            margin: 0.5rem 0 0;
            line-height: 1.5;
        }
        .istp-tech-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 0.85rem;
            margin: 0 0 0.85rem;
        }
        .istp-tech-card {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 0.85rem 1rem 0.9rem;
        }
        .istp-tech-card-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
        .istp-tech-tag {
            display: inline-block;
            padding: 0.18rem 0.55rem;
            border-radius: 5px;
            background: var(--tag, #a8b8b4);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.03em;
        }
        .istp-tech-full {
            font-size: 11.5px;
            color: var(--text-dark-tertiary);
            font-style: italic;
        }
        .istp-tech-desc {
            font-size: 12.5px;
            color: var(--text-dark);
            line-height: 1.5;
            margin: 0 0 0.6rem;
        }
        .istp-tech-meta {
            display: grid;
            grid-template-columns: max-content 1fr;
            column-gap: 0.9rem;
            row-gap: 0.18rem;
            margin: 0;
            font-size: 12px;
        }
        .istp-tech-meta dt { color: var(--text-dark-tertiary); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; padding-top: 1px; }
        .istp-tech-meta dd { margin: 0; color: var(--text-dark); }

        /* ========= SOCIAL INFRA: asset-taxonomy grid (Overview tab) ========= */
        .social-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; margin: 1rem 0 1.5rem; }
        .social-asset-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.85rem 0.95rem 0.9rem; }
        .social-asset-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-bottom: 0.3rem; }
        .social-asset-name { font-size: 13.5px; font-weight: 600; color: var(--text-dark); line-height: 1.35; margin-bottom: 0.3rem; }
        .social-asset-note { font-size: 12px; line-height: 1.45; color: var(--text-dark-secondary); }

        /* ========= INDUSTRY FLOATING CIRCLES (PPP landing) =========
           Seven sector circles in a wrapping flex row; each gently floats with
           a staggered animation delay so they bob out of sync. Click drills
           into the sector page. Reduced-motion media query disables the float. */
        /* Default (mobile / tablet): centered flex layout */
        .industry-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 1.4rem; margin: 2rem 0 2.5rem; padding: 0.5rem 0; }
        .industry-tile {
            width: 150px; height: 150px;
            border-radius: 50%;
            background: #fff;
            border: 1px solid var(--border-soft);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            text-align: center;
            padding: 1rem;
            color: var(--text-dark);
            text-decoration: none;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(0,0,0,0.05);
            transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
            animation: industry-float 5.5s ease-in-out infinite;
            will-change: transform;
        }
        .industry-tile:hover {
            transform: scale(1.07);
            box-shadow: 0 10px 28px rgba(0,0,0,0.12);
            border-color: #6b6360;
            animation-play-state: paused;
        }
        .industry-tile-name { font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text-dark); margin-bottom: 0.5rem; }
        .industry-tile-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dark-tertiary); }
        /* Desktop: scatter the balls across the full content area in
           absolute positions so they fill the page rather than line up
           in a neat row. Each tile gets a distinct top/left so the
           layout reads as random. */
        @media (min-width: 900px) {
            .industry-tiles {
                position: relative;
                width: 100%;
                height: 500px;
                margin: 1.5rem 0 2rem;
                padding: 0;
                display: block;
            }
            .industry-tile {
                position: absolute;
                width: 176px; height: 176px;
            }
            .industry-tile:nth-child(1) { top: 8px;   left: 2%;  }
            .industry-tile:nth-child(2) { top: 140px; left: 22%; }
            .industry-tile:nth-child(3) { top: 24px;  left: 42%; }
            .industry-tile:nth-child(4) { top: 160px; left: 62%; }
            .industry-tile:nth-child(5) { top: 40px;  left: 78%; }
            .industry-tile:nth-child(6) { top: 304px; left: 8%;  }
            .industry-tile:nth-child(7) { top: 320px; left: 36%; }
            .industry-tile:nth-child(8) { top: 304px; left: 64%; }
            .industry-tile-name { font-size: 15px; }
            .industry-tile-tag { font-size: 11px; }
        }
        /* Random-walk float: each circle gets a different keyframe path so they
           drift in 2D (not just up/down) and feel less synchronised. */
        @keyframes float-a { 0%,100% { transform: translate(0,0); }   25% { transform: translate(7px,-9px); }   50% { transform: translate(-4px,-12px); } 75% { transform: translate(-8px,4px); } }
        @keyframes float-b { 0%,100% { transform: translate(0,0); }   25% { transform: translate(-6px,7px); }   50% { transform: translate(9px,11px); }   75% { transform: translate(4px,-7px); } }
        @keyframes float-c { 0%,100% { transform: translate(0,0); }   25% { transform: translate(10px,5px); }   50% { transform: translate(-7px,-8px); }  75% { transform: translate(8px,-11px); } }
        @keyframes float-d { 0%,100% { transform: translate(0,0); }   25% { transform: translate(-9px,-5px); }  50% { transform: translate(5px,10px); }   75% { transform: translate(-11px,8px); } }
        @keyframes float-e { 0%,100% { transform: translate(0,0); }   33% { transform: translate(6px,-11px); }  66% { transform: translate(-9px,6px); } }
        @keyframes float-f { 0%,100% { transform: translate(0,0); }   33% { transform: translate(-8px,8px); }   66% { transform: translate(10px,-7px); } }
        /* Stagger animation + colour per circle */
        .industry-tile:nth-child(1) { animation-name: float-a; animation-duration: 6.5s; animation-delay: 0s;    background: #fdf6ee; }
        .industry-tile:nth-child(2) { animation-name: float-b; animation-duration: 7.5s; animation-delay: 0.3s; background: #f0eee9; }
        .industry-tile:nth-child(3) { animation-name: float-c; animation-duration: 8s;   animation-delay: 0.7s; background: #e9f0f1; }
        .industry-tile:nth-child(4) { animation-name: float-d; animation-duration: 7s;   animation-delay: 1.1s; background: #fff5e6; }
        .industry-tile:nth-child(5) { animation-name: float-e; animation-duration: 6s;   animation-delay: 1.4s; background: #f4ede4; }
        .industry-tile:nth-child(6) { animation-name: float-f; animation-duration: 8.5s; animation-delay: 1.8s; background: #ecf0f0; }
        .industry-tile:nth-child(7) { animation-name: float-a; animation-duration: 7.2s; animation-delay: 2.2s; background: #f5efe6; }
        .industry-tile:nth-child(8) { animation-name: float-c; animation-duration: 6.8s; animation-delay: 2.6s; background: #efeae3; }
        @media (prefers-reduced-motion: reduce) {
            .industry-tile { animation: none; }
        }

        /* ========= PPP STRUCTURE DIAGRAM (Database overview) ========= */
        .ppp-diagram-wrap { width: 100%; max-width: 1040px; margin: 1.25rem 0 1.5rem; padding: 0.85rem 1rem 1rem; background: var(--bg-sidebar); border: 1px solid var(--border-soft); border-radius: 10px; }
        .ppp-diagram { width: 100%; height: auto; display: block; }
        .parties-dl-trigger:hover { background: var(--bg-warm-dark) !important; border-color: var(--bg-warm-dark) !important; color: #fff !important; }
        .parties-dl-trigger[aria-expanded="true"] .parties-dl-chev { transform: rotate(180deg); }
        .parties-dl-trigger:disabled { opacity: 0.55; cursor: wait; }
        .parties-dl-item:hover { background: var(--bg-sidebar) !important; }
        .parties-dl-item:disabled { opacity: 0.55; cursor: wait; }
        .parties-dl-item + .parties-dl-item { margin-top: 1px; }

        /* ========= RTL (Arabic) =========
           Minimal flip - the main grid still uses sidebar-on-left, content-on-right,
           but text inside elements becomes right-aligned and inline spacing mirrors.
           We keep the visual layout consistent so users can compare the EN + AR
           versions of the same page side-by-side without remapping their mental model. */
        html[dir='rtl'] body { font-family: 'IBM Plex Sans Arabic', 'Plex Sans', 'Helvetica Neue', Arial, sans-serif; }
        html[dir='rtl'] .topbar-nav { gap: 1.25rem; }
        html[dir='rtl'] .tree-row { text-align: right; }
        html[dir='rtl'] .tree-row .tree-icon { margin-left: 0.5rem; margin-right: 0; }
        html[dir='rtl'] .tree-group-label { text-align: right; }
        html[dir='rtl'] .lang-toggle:focus-visible { outline: 2px solid #1a1a1a; }
        html[dir='rtl'] .player-card-stats { justify-content: flex-end; }
        html[dir='rtl'] .news-card-meta { justify-content: flex-end; }
        html[dir='rtl'] .breadcrumb { direction: rtl; }
        /* Latin-script proper nouns (entity names, sources) should stay LTR even on
           an RTL page so dates / acronyms / company names render readably. */
        html[dir='rtl'] .news-card-title,
        html[dir='rtl'] .player-card-name,
        html[dir='rtl'] .tender-card-title { unicode-bidi: plaintext; }

        /* ========= CONTENT ========= */
        .content {
            padding: 2.5rem 2.5rem 5rem 2.5rem;   /* right padding matches the topbar's 2.5rem - table right edge lines up with the search-bar right edge */
            width: 100%;
            min-width: 0;                        /* lets the wide table scroll internally instead of stretching the grid item */
            box-sizing: border-box;
        }
        .content > * { max-width: 100%; }
        /* All pages span the full content width; horizontal padding on .content keeps text off the edges. */
        .topic { max-width: 100%; }

        /* Breadcrumb hidden so each topic reads like a standalone SEO page.
           The path still drives the document <title> + canonical URL for crawlers. */
        /* Path breadcrumb above every main-content page. Reads like
           "Database › Industries › Sewage Treatment Plants". Each segment is clickable. */
        /* Breadcrumb is hidden site-wide. The H1 of each page already names
           the page; the sidebar shows the path. Keeping the breadcrumb just
           duplicated information across every page. */
        .breadcrumb { display: none !important; }
        .breadcrumb-sep { color: var(--text-dark-tertiary); user-select: none; }
        .breadcrumb-item {
            color: var(--text-dark-tertiary);
            cursor: pointer;
            text-decoration: none;
            transition: color 120ms;
        }
        .breadcrumb-item:hover { color: var(--text-dark); }
        .breadcrumb-item.current { color: var(--text-dark); font-weight: 500; cursor: default; }
        .breadcrumb-item.current:hover { color: var(--text-dark); }

        .topic { display: none; animation: fadeIn 0.35s ease-out; }
        .topic.visible { display: block; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .topic-meta {
            display: inline-flex; align-items: center; gap: 0.5rem;
            font-size: 11.5px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-dark-tertiary);
            margin-bottom: 1rem;
        }
        .topic-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bg-warm-dark); }

        /* Definition / key-fact block */
        .keyfacts {
            background: var(--bg-light);
            border-radius: 10px;
            padding: 1.1rem 1.25rem;
            margin: 1.25rem 0 1.75rem;
            border: 1px solid var(--border-soft);
        }
        .keyfacts dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.5rem; margin: 0; }
        .keyfacts dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-tertiary); font-weight: 500; padding-top: 2px; }
        .keyfacts dd { font-size: 14px; color: var(--text-dark); margin: 0; }

        /* Table */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.25rem 0 1.75rem;
            font-size: 13.5px;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            overflow: hidden;
        }
        .data-table th {
            background: var(--bg-sidebar);
            text-align: left;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-dark-secondary);
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-soft);
        }
        .data-table td {
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-soft);
            vertical-align: top;
            color: var(--text-dark);
        }
        .data-table tr:last-child td { border-bottom: none; }
        .data-table tr:hover td { background: rgba(146,137,137,0.04); }

        /* Glossary - click-to-expand term description rows. Term rows carry
           data-desc; on click, the glossary JS toggles is-open which displays
           the description panel below. The description sits in a follow-up
           <tr.gloss-desc> that the JS lazily inserts, so the markup in
           shell.html stays compact. */
        article[data-topic="glossary"] tr[data-desc] {
            cursor: pointer;
            user-select: none;
            transition: background 120ms ease;
        }
        article[data-topic="glossary"] tr[data-desc] td:first-child {
            position: relative;
            padding-left: 28px;
        }
        article[data-topic="glossary"] tr[data-desc] td:first-child::before {
            content: "+";
            position: absolute;
            left: 10px;
            top: 10px;
            color: var(--text-dark-tertiary);
            font-weight: 400;
            font-size: 13px;
            transition: transform 120ms ease, color 120ms ease;
        }
        article[data-topic="glossary"] tr[data-desc].is-open td:first-child::before {
            content: "-";
            color: var(--text-dark);
        }
        article[data-topic="glossary"] tr.gloss-desc {
            background: var(--bg-sidebar);
        }
        article[data-topic="glossary"] tr.gloss-desc td {
            padding: 12px 20px 16px 28px;
            border-bottom: 1px solid var(--border-soft);
            color: var(--text-dark-secondary);
            font-size: 13.25px;
            line-height: 1.55;
        }
        article[data-topic="glossary"] tr.gloss-desc:not(.is-open) { display: none; }

        /* News detail - "per-claim source attribution pending" banner.
           Soft amber, calm typography. Shown above the facts card on every
           legacy item until its field_sources map is populated by the audit
           pass. Items that have already been round-tripped against their
           source pages don't get this. */
        .news-audit-banner {
            margin: 0.4rem 0 0.85rem;
            padding: 0.7rem 0.95rem 0.75rem;
            background: rgba(187, 145, 70, 0.06);
            border: 1px solid rgba(187, 145, 70, 0.28);
            border-left-width: 3px;
            border-radius: 6px;
            font-size: 12.5px;
            line-height: 1.5;
            color: var(--text-dark-secondary);
        }
        .news-audit-banner strong {
            color: var(--text-dark);
            font-weight: 600;
            margin-right: 0.25rem;
        }

        /* Tags / badges */
        .tag {
            display: inline-block;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            background: var(--bg-light);
            color: var(--text-dark-secondary);
            letter-spacing: 0;
            margin-right: 0.35rem;
            font-weight: 500;
            border: 1px solid var(--border-soft);
        }
        .tag-green { background: #e6ede2; color: #4f6240; border-color: #d4ddca; }
        .tag-amber { background: #f1e7d3; color: #7a6432; border-color: #e3d4b0; }
        .tag-red    { background: #efdcd9; color: #884740; border-color: #e0c1bc; }
        .tag-blue   { background: #dee3ec; color: #4a5a72; border-color: #c8d1de; }
        .tag-grey   { background: #e6e3df; color: #555049; border-color: #d4d0cc; }

        .verify {
            display: inline-block;
            font-size: 10.5px;
            font-weight: 500;
            padding: 1px 7px;
            border-radius: 4px;
            background: #fbf0d8;
            color: #8c6a1f;
            letter-spacing: 0.02em;
            border: 1px solid #f0dca8;
            margin-left: 6px;
            vertical-align: middle;
            cursor: help;
        }

        /* Topic card grid (used on overview) */
        .topic-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 0.85rem;
            margin: 1.5rem 0 2rem;
        }
        .topic-card {
            display: block;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 1.1rem 1.2rem 1rem;
            cursor: pointer;
            transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
            text-decoration: none;
            color: var(--text-dark);
        }
        .topic-card:hover {
            border-color: var(--border-mid);
            transform: translateY(-2px);
            box-shadow: 0 6px 22px rgba(0,0,0,0.045);
            text-decoration: none;
        }
        .topic-card-num {
            font-size: 11px;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            margin-bottom: 0.45rem;
        }
        .topic-card-title {
            font-size: 1.05rem;
            font-weight: 500;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 0.4rem;
        }
        .topic-card-desc {
            font-size: 13px;
            color: var(--text-dark-secondary);
            line-height: 1.45;
        }
        .topic-card-count {
            font-size: 11px;
            color: var(--text-dark-tertiary);
            margin-top: 0.65rem;
            letter-spacing: 0.04em;
        }

        /* Children list (sub-page index inside a category) */
        .children-list {
            list-style: none;
            margin: 1rem 0 1.5rem;
            padding: 0;
            border-top: 1px solid var(--border-soft);
        }
        .children-list li {
            border-bottom: 1px solid var(--border-soft);
            margin: 0;
        }
        .children-list a {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0.75rem 0;
            color: var(--text-dark);
            text-decoration: none;
            gap: 1rem;
        }
        .children-list a:hover { text-decoration: none; color: var(--text-dark); }
        .children-list-title { font-weight: 500; font-size: 14px; }
        .children-list-desc { font-size: 13px; color: var(--text-dark-secondary); flex: 1; }
        .children-list-arrow { color: var(--text-dark-tertiary); font-size: 14px; }
        .children-list a:hover .children-list-arrow { color: var(--text-dark); transform: translateX(2px); transition: transform 0.15s ease, color 0.15s ease; }

        .empty-stub {
            border: 1px dashed var(--border-mid);
            border-radius: 8px;
            padding: 1rem 1.25rem;
            font-size: 13px;
            color: var(--text-dark-secondary);
            background: rgba(250,248,246,0.5);
            margin: 1rem 0 1.5rem;
        }
        .empty-stub strong { color: var(--text-dark); font-weight: 500; }

        /* ========= FILTER BAR (PitchBook-style screener) ========= */
        .filter-bar {
            margin: 1.25rem 0 1rem;
            padding: 1rem 1.1rem;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            background: var(--bg-sidebar);
        }
        .filter-row {
            display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
            margin-bottom: 0.55rem;
        }
        .filter-row:last-child { margin-bottom: 0; }
        .filter-row-label {
            font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
            color: var(--text-dark-tertiary);
            min-width: 64px; flex-shrink: 0;
            font-weight: 500;
        }
        .filter-chip {
            font-family: inherit; font-size: 13px;
            background: #fff; border: 1px solid var(--border-mid);
            color: var(--text-dark);
            padding: 4px 11px; border-radius: 999px;
            cursor: pointer;
            display: inline-flex; align-items: center; gap: 5px;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
            letter-spacing: -0.005em;
            line-height: 1.4;
        }
        .filter-chip:hover { background: #fff; border-color: rgba(26,26,26,0.3); }
        .filter-chip.active {
            background: var(--text-dark); color: #fff;
            border-color: var(--text-dark);
        }
        .filter-chip-count {
            font-size: 11px;
            background: rgba(0,0,0,0.05);
            color: var(--text-dark-secondary);
            padding: 1px 6px; border-radius: 999px;
            font-weight: 500;
            line-height: 1.4;
        }
        .filter-chip.active .filter-chip-count {
            background: rgba(255,255,255,0.16);
            color: rgba(255,255,255,0.85);
        }

        .filter-results-meta {
            display: flex; justify-content: space-between; align-items: center;
            font-size: 12px; color: var(--text-dark-tertiary);
            letter-spacing: 0.04em; text-transform: uppercase;
            margin: 1.25rem 0 0.75rem;
            font-weight: 500;
        }
        .filter-results-reset {
            text-transform: none; letter-spacing: 0; font-size: 12.5px;
            color: var(--text-dark-secondary); cursor: pointer;
            padding: 4px 0; border: none; background: none; font-family: inherit;
        }
        .filter-results-reset:hover { color: var(--text-dark); text-decoration: underline; }

        .player-grid {
            display: grid; gap: 0.7rem;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            margin-bottom: 2rem;
        }

        /* ========= NEWS LIST ========= */
        .news-sort {
            display: flex; gap: 0.5rem; align-items: center;
            margin: 1rem 0 1rem;
            font-size: 12px; color: var(--text-dark-tertiary);
            letter-spacing: 0.06em; text-transform: uppercase;
        }
        .news-sort-label { font-weight: 500; }
        .news-sort-btn {
            background: none; border: 1px solid var(--border-mid);
            padding: 3px 10px; border-radius: 999px;
            color: var(--text-dark-secondary); font-size: 12px;
            font-family: inherit; cursor: pointer;
            letter-spacing: -0.005em; text-transform: none;
        }
        .news-sort-btn:hover { color: var(--text-dark); }
        .news-sort-btn.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
        .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); }

        /* ========= SERVICES LIST ========= */
        .services-list {
            display: grid; gap: 0.5rem;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            margin: 0.85rem 0 1.5rem;
        }
        .service-row {
            background: #fff; border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 0.7rem 0.95rem 0.7rem 0.8rem;
            display: flex; align-items: center; gap: 0.8rem;
            text-decoration: none; color: var(--text-dark);
            transition: border-color 0.15s ease, transform 0.15s ease;
        }
        .service-row:hover { border-color: var(--border-mid); transform: translateY(-1px); text-decoration: none; color: var(--text-dark); }
        .service-icon {
            flex-shrink: 0;
            width: 30px; height: 30px;
            border-radius: 6px;
            background: var(--bg-light);
            display: flex; align-items: center; justify-content: center;
            font-size: 14px;
        }
        .service-body { flex: 1; min-width: 0; }
        .service-name { font-size: 13.5px; font-weight: 500; letter-spacing: -0.012em; }
        .service-cat { font-size: 11px; color: var(--text-dark-tertiary); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px; }
        .service-arrow { color: var(--text-dark-tertiary); font-size: 14px; }
        .service-row:hover .service-arrow { color: var(--text-dark); }

        .section-source-link {
            display: inline-block;
            font-size: 12.5px;
            color: var(--text-dark-secondary);
            text-decoration: none;
            margin: -0.5rem 0 1.5rem;
            letter-spacing: -0.005em;
        }
        .section-source-link:hover { color: var(--text-dark); text-decoration: underline; }

        /* ========= LANGUAGE / OFFICIAL BADGES ========= */
        .lang-tag {
            display: inline-block;
            font-size: 9.5px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 3px;
            background: rgba(0,0,0,0.06);
            color: var(--text-dark-secondary);
            letter-spacing: 0.06em;
            margin-left: 6px;
            vertical-align: middle;
            text-transform: uppercase;
        }
        .lang-tag.official { background: #d8e7df; color: #2d5a3f; }

        /* ========= KPI STRIP ========= */
        .kpi-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 0.6rem;
            margin: 1rem 0 1.75rem;
        }
        .kpi-card {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            padding: 0.95rem 1.05rem 0.85rem;
            transition: border-color 0.15s ease;
        }
        .kpi-card:hover { border-color: var(--border-mid); }
        .kpi-value {
            font-size: 1.55rem;
            font-weight: 500;
            letter-spacing: -0.04em;
            color: var(--text-dark);
            line-height: 1.05;
            margin-bottom: 0.35rem;
        }
        .kpi-value-unit {
            font-size: 0.55em;
            color: var(--text-dark-secondary);
            margin-left: 3px;
            font-weight: 400;
            letter-spacing: -0.015em;
            text-transform: uppercase;
        }
        .kpi-label {
            font-size: 12.5px;
            color: var(--text-dark-secondary);
            line-height: 1.4;
            letter-spacing: -0.005em;
            margin-bottom: 0.45rem;
        }
        .kpi-source {
            font-size: 10.5px;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-weight: 500;
        }
        .kpi-source a { color: inherit; text-decoration: none; }
        .kpi-source a:hover { color: var(--text-dark); }

        .data-subhead {
            font-size: 11px;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            font-weight: 500;
            margin: 1.5rem 0 0.5rem;
        }

        /* ========= ORG CHART / SHAREHOLDING DIAGRAM ========= */
        .org-chart {
            background: linear-gradient(180deg, #faf8f6 0%, #ece8e1 100%);
            border-radius: 14px;
            padding: 1.5rem 1.25rem 1.75rem;
            margin: 1rem 0 1.75rem;
            overflow-x: auto;
        }
        .org-tier { display: flex; justify-content: center; align-items: stretch; gap: 0.75rem; flex-wrap: wrap; }
        .org-node {
            background: #fff;
            border: 1px solid var(--border-mid);
            border-radius: 10px;
            padding: 0.7rem 1rem 0.65rem;
            min-width: 170px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
            display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
        }
        .org-node-anchor {
            background: linear-gradient(135deg, #1a1a1a 0%, #3E4C59 100%);
            color: #fff;
            border-color: #1a1a1a;
        }
        .org-node-tadweer { background: linear-gradient(135deg, #3E4C59 0%, #1a1a1a 100%); color: #fff; }
        .org-node-tadweer .org-node-label, .org-node-tadweer .org-node-sub { color: #fff; }
        .org-node-tadweer .org-node-sub { color: rgba(255,255,255,0.65); }
        .org-node-soft {
            background: #fff;
            border-color: rgba(26,26,26,0.14);
            color: var(--text-dark);
        }
        .org-node-soft .org-node-label { color: var(--text-dark); }
        .org-node-soft .org-node-sub { color: var(--text-dark-tertiary); }
        .org-node-label {
            font-size: 13.5px; font-weight: 500;
            letter-spacing: -0.012em; line-height: 1.22;
        }
        .org-node-anchor .org-node-label { color: #fff; }
        .org-node-sub {
            font-size: 10.5px; color: var(--text-dark-tertiary);
            letter-spacing: 0.08em; text-transform: uppercase;
            margin-top: 4px;
        }
        .org-node-anchor .org-node-sub { color: rgba(255,255,255,0.65); }
        .org-node-mark {
            width: 28px; height: 28px;
            border-radius: 6px;
            margin-bottom: 6px;
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 600;
            background: #fff; color: #1a1a1a;
            letter-spacing: -0.01em;
            overflow: hidden;
        }
        .org-node-mark img {
            max-width: 80%; max-height: 80%;
            object-fit: contain;
            display: block;
        }
        .org-node-logo {
            height: 26px;
            max-width: 140px;
            object-fit: contain;
            margin-bottom: 6px;
            display: block;
        }
        .org-node-anchor .org-node-mark { background: rgba(255,255,255,0.15); color: #fff; }

        .org-connector {
            width: 1px; min-height: 26px;
            background: rgba(26,26,26,0.25);
            margin: 0 auto;
        }
        .org-rail-wrap {
            position: relative;
            padding-top: 24px;
            display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
        }
        .org-rail-wrap::before {
            content: '';
            position: absolute;
            top: 0;
            left: calc(50% - 0.5px);
            width: 1px; height: 12px;
            background: rgba(26,26,26,0.25);
        }
        .org-rail-wrap > * {
            position: relative;
        }
        .org-rail-wrap > *::before {
            content: '';
            position: absolute;
            top: -12px; left: 50%;
            width: 1px; height: 12px;
            background: rgba(26,26,26,0.25);
        }
        .org-rail-wrap.has-rail::after {
            content: '';
            position: absolute;
            top: 12px;
            left: 10%; right: 10%;
            height: 1px;
            background: rgba(26,26,26,0.25);
        }

        .org-leader-card {
            display: inline-flex; align-items: center; gap: 9px;
            padding: 0.5rem 0.85rem 0.5rem 0.5rem;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 999px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        }
        .org-leader-photo {
            width: 34px; height: 34px;
            border-radius: 50%;
            object-fit: cover; object-position: top center;
            background: linear-gradient(135deg, #3E4C59, #1a1a1a);
            flex-shrink: 0;
        }
        .org-leader-photo-initials {
            display: inline-flex; align-items: center; justify-content: center;
            color: #fff; font-weight: 500; font-size: 12px;
            letter-spacing: 0.02em;
            background: linear-gradient(135deg, #3E4C59, #1a1a1a);
        }
        .org-leader-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.18; }
        .org-leader-name { font-size: 12.5px; font-weight: 500; letter-spacing: -0.012em; }
        .org-leader-role { font-size: 10.5px; color: var(--text-dark-tertiary); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

        .org-legend {
            font-size: 11.5px; color: var(--text-dark-tertiary);
            text-align: center;
            margin-top: 1rem;
            letter-spacing: -0.005em;
        }

        /* ========= DATASET / SEARCHABLE INDEX ========= */
        .dataset-controls {
            display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
            margin: 1.5rem 0 1rem;
            padding: 0;
            background: transparent;
            border: none;
        }
        .dataset-search {
            flex: 1; min-width: 180px;
            height: 34px;
            border: 1px solid var(--border-mid);
            border-radius: 7px;
            padding: 0 11px;
            font-family: inherit; font-size: 13px;
            background: #fff;
            letter-spacing: -0.005em;
        }
        .dataset-search:focus { outline: none; border-color: var(--text-dark); box-shadow: 0 0 0 3px rgba(26,26,26,0.06); }
        .dataset-category-select {
            height: 34px;
            border: 1px solid var(--border-mid);
            border-radius: 7px;
            padding: 0 28px 0 11px;
            font-family: inherit; font-size: 13px;
            background: #fff;
            cursor: pointer;
            letter-spacing: -0.005em;
            -webkit-appearance: none; appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
            background-repeat: no-repeat; background-position: right 10px center;
        }
        .dataset-download {
            display: inline-flex; align-items: center; gap: 6px;
            height: 34px; padding: 0 14px;
            background: #1a1a1a;
            color: #fff;
            border: none; border-radius: 7px;
            font-family: inherit; font-size: 13px; font-weight: 500;
            cursor: pointer;
            letter-spacing: -0.005em;
            transition: background 0.15s ease;
        }
        .dataset-download:hover { background: #000; }
        .dataset-meta {
            font-size: 12.5px; color: var(--text-dark-tertiary);
            letter-spacing: -0.005em;
            margin-left: auto;
        }
        .dataset-meta strong { color: var(--text-dark); font-weight: 500; }
        .dataset-cat-tag {
            display: inline-block;
            font-size: 10.5px; font-weight: 500;
            background: var(--bg-light);
            color: var(--text-dark-secondary);
            padding: 2px 7px;
            border-radius: 4px;
            border: 1px solid var(--border-soft);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }
        .dataset-table { font-size: 13px; }
        .dataset-table td:nth-child(3) { font-weight: 500; }
        .dataset-empty {
            padding: 1.5rem; text-align: center;
            font-size: 13px; color: var(--text-dark-tertiary);
        }

        /* ========= PRO FILTER BAR (Bloomberg-style dropdowns) ========= */
        .filter-bar-pro {
            display: flex; flex-wrap: wrap; align-items: center;
            gap: 6px;
            margin: 1.25rem 0 1rem;
        }
        .filter-control { position: relative; }
        .filter-dropdown-btn {
            display: inline-flex; align-items: center; gap: 5px;
            background: #fff;
            border: 1px solid var(--border-mid);
            border-radius: 7px;
            padding: 5px 8px 5px 11px;
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            color: var(--text-dark);
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
            line-height: 1.4;
            letter-spacing: -0.01em;
            white-space: nowrap;
        }
        .filter-dropdown-btn:hover { border-color: rgba(26,26,26,0.32); }
        .filter-control.open .filter-dropdown-btn { border-color: var(--text-dark); box-shadow: 0 0 0 3px rgba(26,26,26,0.06); }
        .filter-dropdown-btn.has-value {
            background: #1a1a1a;
            color: #fff;
            border-color: #1a1a1a;
        }
        .filter-dropdown-btn.has-value:hover { background: #000; border-color: #000; }
        .filter-dropdown-btn .filter-key { color: var(--text-dark-tertiary); font-weight: 500; }
        .filter-dropdown-btn.has-value .filter-key { color: rgba(255,255,255,0.55); font-weight: 400; }
        .filter-dropdown-btn .filter-sep { color: var(--text-dark-tertiary); margin: 0 -1px; }
        .filter-dropdown-btn.has-value .filter-sep { color: rgba(255,255,255,0.55); }
        .filter-dropdown-btn .filter-val { font-weight: 500; }
        .filter-dropdown-btn .filter-arrow {
            width: 9px; height: 9px;
            flex-shrink: 0;
            opacity: 0.55;
            margin-left: 2px;
            transition: transform 0.15s ease;
        }
        .filter-control.open .filter-dropdown-btn .filter-arrow { transform: rotate(180deg); }
        .filter-dropdown-btn.has-value .filter-arrow { opacity: 0.8; }
        .filter-dropdown-btn:not(.has-value) .filter-sep,
        .filter-dropdown-btn:not(.has-value) .filter-val,
        .filter-dropdown-btn:not(.has-value) .filter-clear-x { display: none; }
        .filter-clear-x {
            display: inline-flex; align-items: center; justify-content: center;
            width: 16px; height: 16px;
            border-radius: 50%;
            margin-left: 3px;
            color: rgba(255,255,255,0.7);
            font-size: 13px; line-height: 1;
            cursor: pointer;
            transition: background 0.12s ease, color 0.12s ease;
        }
        .filter-clear-x:hover { background: rgba(255,255,255,0.2); color: #fff; }

        .filter-dropdown-menu {
            position: absolute; top: calc(100% + 5px); left: 0;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 14px 36px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.07);
            min-width: 220px;
            padding: 5px;
            opacity: 0; transform: translateY(-4px) scale(0.98);
            pointer-events: none;
            z-index: 80;
            transition: opacity 0.16s ease, transform 0.16s ease;
            max-height: 320px;
            overflow-y: auto;
        }
        .filter-control.open .filter-dropdown-menu {
            opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
        }
        .filter-dropdown-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 7px 10px;
            border-radius: 5px;
            font-size: 13px;
            color: var(--text-dark);
            cursor: pointer;
            letter-spacing: -0.005em;
            user-select: none;
        }
        .filter-dropdown-item:hover { background: var(--bg-light); }
        .filter-dropdown-item.active { font-weight: 500; }
        .filter-dropdown-item.active::after {
            content: '✓';
            color: var(--text-dark);
            font-size: 12px;
            margin-left: 8px;
        }

        .filter-reset-all {
            background: none; border: none;
            color: var(--text-dark-secondary);
            cursor: pointer;
            font-family: inherit; font-size: 12.5px;
            padding: 4px 8px;
            letter-spacing: -0.005em;
            margin-left: 4px;
        }
        .filter-reset-all:hover { color: var(--text-dark); text-decoration: underline; }

        .footer-note {
            margin-top: 4rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border-soft);
            font-size: 12px;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.02em;
        }

        /* Disclaimer banner */
        .banner-disclaimer {
            background: #fbf6ec;
            border: 1px solid #e9d8af;
            border-radius: 8px;
            padding: 0.65rem 0.95rem;
            font-size: 12.5px;
            color: #6f5728;
            margin-bottom: 1.5rem;
            display: flex; align-items: flex-start; gap: 0.6rem;
        }
        .banner-disclaimer-icon { flex-shrink: 0; margin-top: 1px; }

        /* Mobile sidebar toggle */
        .sidebar-toggle {
            display: none;
            background: none; border: 1px solid var(--border-mid); border-radius: 6px;
            padding: 6px 10px; font-size: 13px; cursor: pointer;
            color: var(--text-dark); font-family: inherit; letter-spacing: -0.01em;
        }
        .sidebar-toggle:hover { background: var(--bg-light); }

        @media (max-width: 900px) {
            .layout { grid-template-columns: 1fr; }
            .sidebar {
                position: fixed; top: 58px; left: 0; right: 0;
                height: calc(100vh - 58px);
                z-index: 90;
                transform: translateX(-100%);
                transition: transform 0.25s ease;
                background: #fff;
            }
            .sidebar.open { transform: translateX(0); }
            .sidebar-toggle { display: inline-flex; }
            .topbar-search { display: none; }
            .topbar-meta { display: none; }
            .content { padding: 1.75rem 1.25rem 4rem; }
            .keyfacts dl { grid-template-columns: 1fr; gap: 0.15rem; }
            .keyfacts dt { padding-top: 8px; }
            .keyfacts dt:first-child { padding-top: 0; }
        }

        /* ========= MOBILE / PHONE OPTIMIZATIONS ========= */
        @media (max-width: 768px) {
            /* Topbar: tighter padding, brand stays clear */
            .topbar { padding: 0.6rem 0.9rem; }
            .topbar-inner { gap: 0.75rem; }
            .brand { font-size: 0.9rem !important; }
            .brand-mark svg { width: 26px; height: 26px; }
            /* Sidebar toggle is the only nav on mobile; make it touch-friendly */
            .sidebar-toggle { min-height: 38px; min-width: 56px; padding: 8px 12px; }
            /* About / methodology / overview content padding */
            body.view-fullwidth .content { padding: 1.75rem 1.1rem 3rem; }
            .about-hero { padding: 0.25rem 0 1.5rem; }
            .about-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); margin-bottom: 1rem; }
            .about-hero .lede { font-size: 1rem; line-height: 1.55; }
            .about-section { margin-bottom: 2rem; }
            .about-section h2 { font-size: 1.2rem; }
            .about-section p { font-size: 14.5px; line-height: 1.6; }
            /* Footer: stack columns nicely */
            .vars-footer { padding: 2.5rem 0 1.25rem; margin-top: 2.5rem; }
            .gulfinfra-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
            .gulfinfra-footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
            /* ISTP cycle diagram wrapper: tighter padding on mobile */
            .istp-cycle-wrapper { padding: 0.7rem 0.6rem 0.6rem !important; }
            .istp-cycle-toolbar { flex-wrap: wrap; justify-content: flex-start !important; }
            .istp-dl-btn { font-size: 10.5px !important; padding: 0.32rem 0.55rem !important; }
            .istp-cycle-detail dl { grid-template-columns: 1fr !important; row-gap: 0.15rem !important; }
            .istp-cycle-detail dt { padding-top: 0.45rem; }
            .istp-cycle-detail dt:first-child { padding-top: 0; }
            /* Wide data tables: horizontal scroll instead of overflow */
            table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
            /* Photo grids stay 1-up if they were forcing 2-up */
            .istp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .istp-tab { white-space: nowrap; padding: 0.6rem 0.85rem !important; font-size: 13px !important; }
            /* Profile / industry headers wrap cleanly */
            .profile-header { padding: 0.9rem 1rem 1rem; }
            .profile-header-top { flex-direction: column; align-items: flex-start !important; gap: 0.6rem; }
            /* Topic content general padding tightening (non-fullwidth) */
            .content { padding: 1.25rem 1rem 3rem; }
            /* H1 size limit on industry pages */
            .content h1 { font-size: clamp(1.65rem, 6vw, 2.1rem); }
            .content h2 { font-size: 1.15rem; }
            /* Lede paragraphs */
            p.lede { font-size: 14.5px !important; line-height: 1.55 !important; }
            /* Make sure long monospaced URLs / source links don't blow out the layout */
            a { word-break: break-word; }
        }

        /* Annotated ISTP photo: shrink labels on tablets/phones so they don't overlap */
        @media (max-width: 900px) {
            .istp-anno-label { padding: 5px 8px !important; }
            .istp-anno-label strong { font-size: 11.5px !important; }
            .istp-anno-label span { font-size: 10px !important; }
        }
        @media (max-width: 600px) {
            .istp-anno-label span { display: none !important; }
            .istp-anno-label { max-width: 38% !important; }
        }

        /* Very small phones (older Android, narrow Huawei) */
        @media (max-width: 480px) {
            .topbar { padding: 0.55rem 0.7rem; }
            .gulfinfra-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
            .gulfinfra-footer-tagline { max-width: 100%; }
            body.view-fullwidth .content { padding: 1.25rem 0.85rem 2.5rem; }
            .about-hero h1 { font-size: clamp(1.6rem, 9vw, 2.1rem); }
            .istp-dl-btn span, .istp-dl-btn { gap: 0.2rem !important; }
            /* Always allow tables to scroll horizontally */
            .ppp-table-wrapper, .ppp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        }

        /* ========= PROFILE HEADER (Bloomberg / PitchBook style) ========= */
        .profile-header {
            border: 1px solid var(--border-mid);
            border-radius: 10px;
            padding: 1.25rem 1.5rem 1.4rem;
            margin: 0.25rem 0 1.25rem;
            background: linear-gradient(180deg, #fbfaf8 0%, #ffffff 100%);
        }
        .profile-header-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-soft);
        }
        .profile-header-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
        .profile-header-name {
            font-size: 1.625rem; font-weight: 500; letter-spacing: -0.025em;
            color: var(--text-dark); line-height: 1.15;
        }
        .profile-header-sub {
            font-size: 13px; color: var(--text-dark-secondary);
            letter-spacing: -0.005em;
        }
        .profile-header-sub a { color: var(--text-dark-secondary); }
        .profile-header-sub a:hover { color: var(--text-dark); }
        .profile-header-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

        .profile-transparency {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 10px; border: 1px solid var(--border-mid);
            border-radius: 6px; background: #fff;
            font-size: 11.5px; color: var(--text-dark-secondary);
            letter-spacing: 0.04em; text-transform: uppercase;
        }
        .profile-transparency-dots { display: inline-flex; gap: 3px; }
        .profile-transparency-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: var(--border-mid);
        }
        .profile-transparency-dot.filled { background: #4f6240; }
        .profile-transparency-score {
            font-weight: 500; color: var(--text-dark); letter-spacing: 0;
            text-transform: none; font-size: 12px;
        }

        .profile-snapshot {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            margin-top: 1rem;
            background: var(--border-soft);
            border: 1px solid var(--border-soft);
            border-radius: 6px;
            overflow: hidden;
        }
        .profile-snap-tile {
            background: #fff;
            padding: 0.75rem 0.95rem;
            min-width: 0;
        }
        .profile-snap-label {
            font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-dark-tertiary); font-weight: 500; margin-bottom: 4px;
        }
        .profile-snap-value {
            font-size: 14px; color: var(--text-dark); line-height: 1.3;
            font-weight: 450; letter-spacing: -0.01em;
            word-wrap: break-word; overflow-wrap: break-word;
        }
        .profile-snap-value-sub {
            font-size: 11.5px; color: var(--text-dark-tertiary); margin-top: 2px;
        }

        /* ========= PROFILE STICKY ANCHOR NAV ========= */
        .profile-nav {
            position: sticky;
            top: 53px; /* topbar height */
            z-index: 5;
            display: flex;
            gap: 2px;
            overflow-x: auto;
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border-bottom: 1px solid var(--border-soft);
            margin: 0 -1rem 1.5rem;
            padding: 0 1rem;
            scrollbar-width: none;
        }
        .profile-nav::-webkit-scrollbar { display: none; }
        .profile-nav a {
            display: inline-flex; align-items: center;
            padding: 0.7rem 0.9rem;
            font-size: 12.5px;
            color: var(--text-dark-secondary);
            letter-spacing: -0.005em;
            text-decoration: none;
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            transition: color 0.15s ease, border-color 0.15s ease;
        }
        .profile-nav a:hover { color: var(--text-dark); }
        .profile-nav a.active {
            color: var(--text-dark);
            border-bottom-color: var(--text-dark);
            font-weight: 500;
        }

        /* ========= FACILITY MAP ========= */
        .facility-map-wrap {
            margin: 1rem 0 1.5rem;
            border: 1px solid var(--border-mid);
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-sidebar);
        }
        .facility-map {
            width: 100%;
            height: 540px;
        }
        .facility-map-legend {
            display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
            padding: 0.65rem 1rem;
            border-top: 1px solid var(--border-soft);
            font-size: 11.5px; color: var(--text-dark-secondary);
            background: #fff;
        }
        .facility-map-legend-dot {
            display: inline-block; width: 9px; height: 9px;
            border-radius: 50%; margin-right: 6px;
            vertical-align: middle;
            border: 1.5px solid #fff;
            box-shadow: 0 0 0 1px rgba(26,26,26,0.3);
        }
        .leaflet-popup-content {
            font-family: inherit !important;
            font-size: 13px !important;
            margin: 10px 14px !important;
            line-height: 1.4 !important;
        }
        .leaflet-popup-content strong { font-weight: 500; }
        .leaflet-popup-content .map-pop-type {
            font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-dark-tertiary); display: block; margin-bottom: 4px;
        }
        .leaflet-popup-content .map-pop-row {
            font-size: 12px; color: var(--text-dark-secondary); margin: 2px 0;
        }
        .leaflet-popup-content .map-pop-src {
            font-size: 11.5px; margin-top: 6px;
            padding-top: 6px; border-top: 1px solid var(--border-soft);
        }
        .map-pop-src a { color: var(--text-dark); }
        @media (max-width: 700px) {
            .facility-map { height: 400px; }
        }

        /* ========= WIDE TABLE BREAKOUT ========= */
        .facility-table-wide {
            margin: 0 0 1.5rem;
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
        }
        .facility-table-wide table {
            width: 100%;
            min-width: 1100px;
            border-collapse: separate;
            border-spacing: 0;
        }
        .facility-table-wide thead th {
            background: #fff;
            color: var(--text-dark-secondary);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            text-align: left;
            padding: 14px 14px 12px;
            border-bottom: 1px solid var(--border-mid);
            position: sticky;
            top: 0;
            z-index: 1;
        }
        .facility-table-wide tbody td {
            white-space: nowrap;
            font-size: 13px;
            padding: 14px;
            vertical-align: top;
            border-bottom: 1px solid var(--border-soft);
        }
        .facility-table-wide tbody tr:last-child td { border-bottom: none; }
        .facility-table-wide tbody tr:hover td { background: rgba(0,0,0,0.015); }
        .facility-table-wide td.cell-wrap { white-space: normal; min-width: 180px; }
        .facility-table-wide td.cell-num { text-align: right; font-variant-numeric: tabular-nums; }
        .facility-table-wide td.cell-empty { color: var(--text-dark-tertiary); text-align: center; }
        @media (max-width: 900px) {
            .facility-table-wide {
                margin-left: 0;
                width: 100%;
            }
            .facility-table-wide table { min-width: 900px; }
        }

        /* ========= SUBSIDIARY CARDS ========= */
        .subsidiary-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            margin: 0.75rem 0 1.5rem;
        }
        .subsidiary-card {
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 1rem 1.1rem 1.1rem;
            background: #fff;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            transition: border-color 0.15s ease;
        }
        .subsidiary-card:hover { border-color: var(--border-mid); }
        .subsidiary-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            min-height: 32px;
        }
        .subsidiary-card-logo {
            max-height: 28px;
            max-width: 130px;
            object-fit: contain;
            filter: grayscale(0.15);
        }
        .subsidiary-card-name {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-dark);
            letter-spacing: -0.01em;
        }
        .subsidiary-card-tag {
            font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-dark-tertiary); font-weight: 500;
        }
        .subsidiary-card-desc {
            font-size: 13px;
            color: var(--text-dark-secondary);
            line-height: 1.5;
            margin: 0;
        }
        .subsidiary-card-meta {
            display: flex;
            gap: 1rem;
            font-size: 11.5px;
            color: var(--text-dark-tertiary);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding-top: 0.4rem;
            border-top: 1px solid var(--border-soft);
            margin-top: auto;
        }
        .subsidiary-card-meta strong {
            color: var(--text-dark);
            font-weight: 500;
            letter-spacing: 0;
            text-transform: none;
            font-size: 12.5px;
            display: block;
            margin-top: 2px;
        }
        @media (max-width: 720px) {
            .subsidiary-grid { grid-template-columns: 1fr; }
        }

        /* ========= CONTACT CARD ========= */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            background: var(--border-soft);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            overflow: hidden;
            margin: 0.6rem 0 1.5rem;
        }
        .contact-col { background: #fff; display: flex; flex-direction: column; }
        .contact-block {
            padding: 0.9rem 1.1rem;
            border-bottom: 1px solid var(--border-soft);
        }
        .contact-block:last-child { border-bottom: none; }
        .contact-block-label {
            font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
            color: var(--text-dark-tertiary); font-weight: 500;
            margin-bottom: 0.55rem;
        }
        .contact-block-primary {
            font-size: 14px; color: var(--text-dark);
            font-weight: 450; letter-spacing: -0.005em;
            margin-bottom: 0.4rem;
        }
        .contact-row {
            display: flex; align-items: center; gap: 8px;
            font-size: 13px; color: var(--text-dark);
            padding: 3px 0;
            line-height: 1.4;
        }
        .contact-row svg {
            flex-shrink: 0;
            color: var(--text-dark-tertiary);
            width: 13px; height: 13px;
        }
        .contact-row a { color: var(--text-dark); text-decoration: none; }
        .contact-row a:hover { text-decoration: underline; text-decoration-color: rgba(26,26,26,0.4); text-underline-offset: 2px; }
        .contact-row-handle { color: var(--text-dark-tertiary); margin-left: 4px; font-size: 12.5px; }
        .contact-row-muted { color: var(--text-dark-secondary); }
        .contact-row-link-out {
            font-size: 12px; color: var(--text-dark-tertiary);
            padding-top: 4px;
        }
        .contact-row-link-out a { color: var(--text-dark-tertiary); }
        .contact-row-link-out a:hover { color: var(--text-dark); }

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

        /* ========= PROFILE TAB PANES ========= */
        .profile-section {
            padding-top: 0.75rem;
        }
        .profile-section[id^="sec-"] { display: none; }
        .profile-section[id^="sec-"].tab-active {
            display: block;
            animation: tabFadeIn 0.22s ease-out;
        }
        @keyframes tabFadeIn {
            from { opacity: 0; transform: translateY(4px); }
            to   { opacity: 1; transform: none; }
        }
        .profile-section-label {
            font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
            color: var(--text-dark-tertiary); font-weight: 500;
            margin-bottom: 0.25rem;
        }
        .profile-section > h2:first-of-type,
        .profile-section > .profile-section-label + h2 {
            margin-top: 0.25rem;
        }

        @media (max-width: 900px) {
            .profile-snapshot { grid-template-columns: repeat(2, 1fr); }
            .profile-header { padding: 1rem 1.1rem 1.15rem; }
            .profile-header-name { font-size: 1.375rem; }
            .profile-nav { top: 49px; }
        }

        /* Unified industry-page tab styling (matches ISTP look across all 6 new industries) */
        .istp-tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid var(--border-soft, var(--rule));
            margin: 1.5rem 0;
        }
        .istp-tab {
            background: none;
            border: none;
            padding: 0.75rem 1.25rem;
            font-family: inherit;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark-secondary);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
        }
        .istp-tab.active,
        .istp-tab:hover {
            color: var(--text-dark);
        }
        .istp-tab.active {
            border-bottom-color: var(--text-dark);
        }

/* ===== ISTP cycle diagram - Download menu (was inline near the diagram) ===== */
.istp-dl-trigger:hover { background: var(--bg-warm-dark) !important; border-color: var(--bg-warm-dark) !important; color: #fff !important; }
.istp-dl-trigger[aria-expanded="true"] .istp-dl-chev { transform: rotate(180deg); }
.istp-dl-trigger:disabled { opacity: 0.55; cursor: wait; }
.istp-dl-item:hover { background: var(--bg-sidebar) !important; }
.istp-dl-item:disabled { opacity: 0.55; cursor: wait; }
.istp-dl-item + .istp-dl-item { margin-top: 1px; }

/* ===== ISTP site plan - Download menu (was inline near the diagram) ===== */
.istp-plan-dl-trigger:hover { background: var(--bg-warm-dark) !important; border-color: var(--bg-warm-dark) !important; color: #fff !important; }
.istp-plan-dl-trigger[aria-expanded="true"] .istp-plan-dl-chev { transform: rotate(180deg); }
.istp-plan-dl-trigger:disabled { opacity: 0.55; cursor: wait; }
.istp-plan-dl-item:hover { background: var(--bg-sidebar) !important; }
.istp-plan-dl-item + .istp-plan-dl-item { margin-top: 1px; }

/* ===== ISTP plan detail panel + numbered legend (was inline) ===== */
.istp-pdh { margin: 0 0 0.45rem; font-size: 15px; font-weight: 600; color: var(--text-dark); }
.istp-pdp { margin: 0 0 0.7rem; font-size: 13.5px; line-height: 1.55; color: var(--text-dark); }
.istp-pdl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; column-gap: 1.25rem; row-gap: 0.3rem; margin: 0; font-size: 12.5px; }
.istp-pdl dt { color: var(--text-dark-secondary); margin: 0; }
.istp-pdl dd { margin: 0; color: var(--text-dark); }
@media (max-width: 600px) { .istp-pdl { grid-template-columns: 1fr; row-gap: 0.15rem; } .istp-pdl dt { padding-top: 0.4rem; } .istp-pdl dt:first-child { padding-top: 0; } }
.istp-plan-legend-item { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 13px; padding: 0.45rem 0.6rem; border-radius: 6px; cursor: pointer; transition: background 120ms; }
.istp-plan-legend-item:hover { background: rgba(146, 137, 137, 0.12); }
.istp-plan-legend-item.is-selected { background: #fff8d6; }
.istp-plan-legend-item .lb { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid #1a1a1a; font-weight: 700; font-size: 11px; color: #1a1a1a; }
.istp-plan-legend-item.is-selected .lb { background: #f6c542; }

/* ===== ISTP real-world example carousel (was inline) ===== */
.istp-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 0; border-radius: 12px; }
.istp-carousel-track::-webkit-scrollbar { display: none; }
.istp-carousel-slide { scroll-snap-align: start; margin: 0; background: var(--bg-sidebar); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); }
.istp-carousel-image { position: relative; height: clamp(280px, 52vh, 560px); background-size: cover; background-position: center; background-color: #cdc4be; }
.istp-carousel-download { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 0.45rem 0.8rem; background: rgba(255,255,255,0.94); border: 1px solid rgba(0,0,0,0.1); border-radius: 6px; cursor: pointer; color: #1a1a1a; font-family: inherit; font-size: 12px; font-weight: 500; transition: background 150ms, color 150ms; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.istp-carousel-download:hover { background: var(--bg-warm-dark); color: #fff; border-color: var(--bg-warm-dark); }
.istp-carousel-caption { padding: 1.1rem 1.4rem 1.4rem; }
.istp-carousel-caption h4 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--text-dark); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.istp-carousel-country { font-size: 0.85rem; font-weight: 400; color: var(--text-dark-secondary); letter-spacing: 0.02em; }
.istp-carousel-stats { margin: 0 0 0.45rem; font-size: 12.5px; color: var(--text-dark-secondary); line-height: 1.5; }
.istp-carousel-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1.1rem;
    row-gap: 0.22rem;
    margin: 0.2rem 0 0.75rem;
    font-size: 12.5px;
}
.istp-carousel-facts dt {
    color: var(--text-dark-tertiary);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 1px;
    white-space: nowrap;
}
.istp-carousel-facts dd {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.45;
}
.istp-carousel-detail { margin: 0; font-size: 13.5px; color: var(--text-dark); line-height: 1.55; }
.istp-carousel-prev, .istp-carousel-next { position: absolute; top: clamp(140px, 26vh, 280px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid rgba(0,0,0,0.1); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.15); z-index: 5; color: #1a1a1a; padding: 0; transition: background 150ms, color 150ms; }
.istp-carousel-prev { left: 14px; }
.istp-carousel-next { right: 14px; }
.istp-carousel-prev:hover, .istp-carousel-next:hover { background: var(--bg-warm-dark); color: #fff; border-color: var(--bg-warm-dark); }
.istp-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.istp-carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,0.18); border: 0; cursor: pointer; padding: 0; transition: background 150ms, transform 150ms; }
.istp-carousel-dots button:hover { background: rgba(0,0,0,0.35); }
.istp-carousel-dots button[aria-current="true"] { background: var(--text-dark); transform: scale(1.25); }
@media (max-width: 768px) {
    .istp-carousel-prev, .istp-carousel-next { width: 38px; height: 38px; }
    .istp-carousel-caption h4 { font-size: 1.05rem; }
    .istp-carousel-detail { font-size: 13px; }
}

/* ===== Article body: risk-allocation tables (inline in article body, rendered by the article detail body renderer) ===== */
.risk-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--border-soft); border-radius: 8px; overflow: hidden; }
.risk-table caption { caption-side: top; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--text-dark); margin: 0 0 0.55rem; }
.risk-table thead th { text-align: left; padding: 0.65rem 0.85rem; font-weight: 600; color: var(--text-dark); border-bottom: 1.5px solid var(--text-dark); white-space: nowrap; background: var(--bg-sidebar); }
.risk-table tbody td { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--text-dark); }
.risk-table tbody tr:last-child td { border-bottom: 0; }
.risk-table tbody td:nth-child(2) { color: var(--text-dark-secondary); white-space: nowrap; }
.risk-table tbody td:first-child { font-weight: 500; white-space: nowrap; }

/* ===== Chart segment tooltips (used by chart-download.js attachChartTooltips) ===== */
.chart-tooltip {
    position: fixed; pointer-events: none; z-index: 1000;
    background: #1a1a1a; color: #fff; padding: 10px 13px; border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px; line-height: 1.5; max-width: 320px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0; transition: opacity 120ms;
}
.chart-tooltip[data-show="1"] { opacity: 1; }
.chart-tooltip-title { font-weight: 600; margin-bottom: 4px; font-size: 12.5px; color: #f6c542; }
.chart-tooltip-body { color: #f0eee9; }

/* ===== Utility classes — replace high-frequency inline style="..." values =====
   Naming: `.u-<short-tag>`. These exist to fold the most-repeated inline
   style attributes out of index.html. Visual output is identical to the
   original inline declarations. Do not extend without good reason. */
.u-td        { padding: 8px 10px; }
.u-m0        { margin: 0; }
.u-t-sub     { font-size: 11px; color: var(--text-dark-tertiary); margin-top: 2px; }
.u-card-img  { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.u-t-12b     { font-size: 12px; font-weight: 600; }
.u-t-11g     { font-size: 11px; color: #666; margin-top: 3px; }
.u-card-ph   { background: linear-gradient(135deg, #e5e7eb, #f3f4f6); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.u-bb-rule   { border-bottom: 1px solid var(--rule); }
.u-h-sec     { font-size: 18px; margin-top: 22px; }
.u-t-sec-m0  { color: var(--text-dark-secondary); margin: 0; }
.u-clic      { cursor: pointer; }
.u-link-sub  { display: block; color: var(--text-dark-secondary); font-size: 11.5px; line-height: 1.45; }
.u-link-dark { color: var(--text-dark); display: block; }
