/* ============================================================
   DATUM INTELLIGENCE — SITE DESIGN SYSTEM
   Brand CSS for all pages
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Primary Purple */
    --purple-dark: #32054e;
    --purple: #51087e;
    --purple-medium: #700bae;
    --purple-bright: #8f0ede;
    --purple-bg: #f5f0fa;
    --purple-border: #d8b4e2;

    /* Neutrals */
    --text-primary: #1a1a2e;
    --text-secondary: #5c4a6a;
    --text-muted: #8b7a9e;
    --bg-primary: #ffffff;
    --bg-secondary: #faf8fc;
    --bg-tertiary: #f5f0fa;
    --border: #e6e0ed;
    --border-light: #f0ebf5;

    /* Accents */
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --info: #6366f1;

    /* Layout */
    --max-w: 1200px;
    --max-w-narrow: 800px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;

    /* Fonts */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Questrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(81,8,126,0.04);
    --shadow: 0 2px 8px rgba(81,8,126,0.06);
    --shadow-lg: 0 8px 32px rgba(81,8,126,0.10);
}

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple-medium); }
a.header-cta, a.header-cta:hover { color: #fff !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 32px; }

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.header-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-sans); font-size: 22px; font-weight: 700;
    color: var(--purple-dark); letter-spacing: -0.5px;
}
.header-logo svg { height: 32px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a:not(.header-cta) {
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s;
}
.header-nav a:hover { color: var(--purple); }
.header-nav a.active { color: var(--purple); border-bottom-color: var(--purple); }

.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: var(--purple); color: #fff !important;
    font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); letter-spacing: 0.3px;
    transition: background .2s; border: none; cursor: pointer;
}
.header-cta:hover { background: var(--purple-medium); color: #fff !important; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-medium) 100%);
    color: #fff; padding: 80px 0 88px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(143,14,222,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.hero h1 {
    font-family: var(--font-serif); font-size: 52px; font-weight: 400;
    line-height: 1.15; margin-bottom: 20px; max-width: 720px;
}
.hero p {
    font-size: 18px; color: rgba(255,255,255,0.7); max-width: 560px;
    line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: #fff; color: var(--purple);
    font-size: 15px; font-weight: 600; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--purple-dark); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: transparent; color: #fff;
    font-size: 15px; font-weight: 600; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: all .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-purple {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--purple); color: #fff;
    font-size: 15px; font-weight: 600; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: all .2s;
}
.btn-purple:hover { background: var(--purple-medium); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: transparent; color: var(--purple);
    font-size: 15px; font-weight: 600; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--purple); background: var(--purple-bg); }

/* Hero stats strip */
.hero-stats {
    display: flex; gap: 0; margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 32px;
}
.hero-stat {
    flex: 1; text-align: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value {
    font-family: var(--font-serif); font-size: 36px; color: var(--gold);
    margin-bottom: 4px;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; }
.section--gray { background: var(--bg-secondary); }
.section--purple-bg { background: var(--purple-bg); }
.section--dark {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: #fff;
}

.section-eyebrow {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--purple); font-weight: 600; margin-bottom: 12px;
}
.section--dark .section-eyebrow { color: var(--gold); }

.section-title {
    font-family: var(--font-serif); font-size: 36px; color: var(--text-primary);
    line-height: 1.2; margin-bottom: 16px;
}
.section--dark .section-title { color: #fff; }

.section-subtitle {
    font-size: 17px; color: var(--text-secondary); max-width: 600px;
    line-height: 1.7; margin-bottom: 48px;
}
.section--dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* Center variant */
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- CARDS ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; transition: all .2s;
}
.card:hover { border-color: var(--purple-border); box-shadow: var(--shadow); }
.card--accent { background: #f4f4f5; border: none; }

.card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--purple-bg); color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 24px;
}
.card h3 {
    font-size: 18px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 10px;
}
.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--purple);
    margin-top: 16px;
}
.card-link:hover { gap: 10px; }

/* ---------- KPI CARDS ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center;
}
.kpi-value {
    font-family: var(--font-serif); font-size: 40px; color: var(--purple);
    margin-bottom: 6px;
}
.kpi-label { font-size: 14px; color: var(--text-secondary); }

/* ---------- LOGO BAR ---------- */
.logo-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; padding: 32px 0; flex-wrap: wrap;
}
.logo-bar img, .logo-bar .logo-placeholder {
    height: 28px; opacity: 0.4; filter: grayscale(1);
    transition: all .2s;
}
.logo-bar img:hover, .logo-bar .logo-placeholder:hover {
    opacity: 0.8; filter: grayscale(0);
}
.logo-placeholder {
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- TESTIMONIAL / QUOTE ---------- */
.quote-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-left: 4px solid var(--purple); border-radius: var(--radius);
    padding: 32px 36px; margin: 24px 0;
}
.quote-text {
    font-size: 17px; font-style: italic; color: var(--text-primary);
    line-height: 1.7; margin-bottom: 16px;
}
.quote-source { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ---------- MEDIA MENTION ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; display: flex;
    flex-direction: column;
}
.media-source {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--purple); font-weight: 700; margin-bottom: 12px;
}
.media-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.media-date { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ---------- REPORT CARDS ---------- */
.report-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .2s;
}
.report-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.report-card-cover {
    height: 200px; background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 14px; letter-spacing: 1px;
}
.report-card-body { padding: 24px; }
.report-card-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 12px;
}
.badge-new { background: var(--success-light); color: var(--success); }
.badge-flagship { background: var(--purple-bg); color: var(--purple); }
.badge-free { background: var(--gold-light); color: #b45309; }
.report-card h3 {
    font-size: 18px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 8px;
}
.report-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-primary); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-sans);
    font-size: 15px; color: var(--text-primary);
    background: var(--bg-primary); transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(81,8,126,0.08);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    border-radius: var(--radius-lg); padding: 56px 48px;
    color: #fff; display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
}
.cta-banner h2 {
    font-family: var(--font-serif); font-size: 32px; margin-bottom: 12px;
}
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 500px; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--purple-dark); color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 48px;
}
.footer-brand {
    font-family: var(--font-sans); font-size: 20px; font-weight: 700;
    color: #fff; margin-bottom: 12px;
}
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 14px; color: rgba(255,255,255,0.6);
    margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px; font-size: 13px;
    display: flex; justify-content: space-between;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.4); }
.footer-social a:hover { color: #fff; }

/* ---------- NEWSLETTER INLINE ---------- */
.newsletter-inline {
    display: flex; gap: 12px; max-width: 440px;
}
.newsletter-inline input {
    flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm); background: rgba(255,255,255,0.1);
    color: #fff; font-size: 14px; font-family: var(--font-sans);
}
.newsletter-inline input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-inline button {
    padding: 12px 24px; background: var(--gold); color: var(--purple-dark);
    font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius-sm);
    cursor: pointer; white-space: nowrap; transition: background .2s;
}
.newsletter-inline button:hover { background: #fbbf24; }

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-header {
    background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
    padding: 56px 0;
}
.page-header h1 {
    font-family: var(--font-serif); font-size: 40px; color: var(--text-primary);
    margin-bottom: 12px;
}
.page-header p { font-size: 17px; color: var(--text-secondary); max-width: 600px; }

/* ---------- BLOG / INSIGHTS ---------- */
.post-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .2s;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-img {
    height: 180px; background: var(--purple-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 13px;
}
.post-card-body { padding: 24px; }
.post-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--purple); margin-bottom: 10px;
}
.post-card h3 {
    font-size: 17px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 8px; line-height: 1.4;
}
.post-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.post-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--text-muted); margin-top: 16px;
}

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-photo {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--purple-bg); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 13px;
}
.team-card h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.team-card .team-role { font-size: 14px; color: var(--purple); margin-bottom: 8px; }
.team-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- COVERAGE TABS ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    background: var(--bg-primary); border: 1px solid var(--border);
    cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--purple); color: var(--purple); }
.tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
    content: ''; position: absolute; left: -32px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--purple); border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--purple);
}
.timeline-item h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
    /* --- Mobile Nav --- */
    .header-nav {
        display: none !important;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .header-nav.open { display: flex !important; }
    .header-nav a:not(.header-cta) {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-light);
    }
    .header-nav a:not(.header-cta):last-of-type { border-bottom: none; }
    .header-nav .header-cta {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }
    .nav-toggle { display: block !important; padding: 8px; z-index: 100; }
    .site-header { position: relative; }
    .site-header .container { position: static; }

    /* --- Grids (class-based) --- */
    .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .team-grid { grid-template-columns: 1fr 1fr; }

    /* --- FORCE all inline-styled grids to single column --- */
    .section [style*="grid-template-columns"],
    .container [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* --- FORCE all inline-styled flex rows to stack (except wrapped logo strips) --- */
    .section [style*="display: flex"][style*="gap"]:not([style*="flex-wrap"]),
    .container > [style*="display: flex"][style*="justify-content: space-between"]:not([style*="flex-wrap"]) {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* --- Hero A (split layout) --- */
    .hero-a {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }
    .hero-a-left {
        max-width: 100% !important;
        padding: 48px 24px !important;
    }
    .hero-a-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        padding: 0 24px 32px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hero-a-right .orbit { display: none !important; }
    .hero-a-right .float-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        min-width: 130px;
        flex-shrink: 0;
        background: rgba(255,255,255,0.1) !important;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 12px;
        padding: 14px 16px !important;
        text-align: center;
    }
    .hero-a-right .float-card .fc-label { font-size: 10px; color: rgba(255,255,255,0.6); }
    .hero-a-right .float-card .fc-value { font-size: 22px; color: #fff; }
    .hero-a-right .float-card .fc-change { font-size: 10px; color: #fbbf24; }
    .hero-a h1 { font-size: 32px !important; }
    .hero-a p { font-size: 16px; }
    .hero-a-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .hero-a-actions a {
        text-align: center;
        justify-content: center;
        flex: 1;
        min-width: 140px;
    }
    .hero-a-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 !important;
    }
    .hero-a-stat {
        border-right: none !important;
        padding: 14px 24px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* --- Hero --- */
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 32px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat { border-right: none; text-align: left; padding: 0; }

    /* --- Sections --- */
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .page-header h1 { font-size: 28px; }
    .page-header p { font-size: 15px; }
    .container { padding: 0 20px; }
    .container--narrow { padding: 0 20px; }

    /* --- Data Platform & Festive Barometer banners --- */
    .section .container > [style*="border-radius: 28px"],
    .section .container > [style*="border-radius: 20px"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        padding: 36px 24px !important;
        gap: 28px !important;
    }
    .section .container > [style*="border-radius: 28px"] h2,
    .section .container > [style*="border-radius: 20px"] h3 {
        font-size: 26px !important;
    }

    /* --- AI-Led Banner (inline flex) --- */
    .wwd-section + .section [style*="display: flex"][style*="align-items: center"][style*="gap: 40px"],
    .container [style*="display: flex"][style*="border-radius: 20px"][style*="padding: 32px"] {
        flex-direction: column !important;
        padding: 24px 20px !important;
        gap: 20px !important;
    }

    /* --- How It Works 4-step circles --- */
    .section [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 16px !important;
    }
    .section [style*="grid-template-columns: repeat(4"] > [style*="position: absolute"] {
        display: none !important;
    }

    /* --- Coverage Area cards (3-col grids) --- */
    .section [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* --- Featured Reports (4-col grid) --- */
    .section [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* --- What We Do cards --- */
    .wwd-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- CTA Banner --- */
    .cta-banner {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 24px !important;
    }
    .cta-banner .btn-primary,
    .cta-banner .btn-outline { width: 100%; text-align: center; justify-content: center; }

    /* --- Newsletter --- */
    .newsletter-inline { flex-direction: column; }
    .newsletter-inline input { width: 100%; }
    .newsletter-inline button { width: 100%; padding: 14px; }

    /* --- Buttons touch-friendly --- */
    .btn-primary, .btn-outline, .btn-purple, .btn-ghost {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }

    /* --- Forms touch-friendly --- */
    input, select, textarea {
        font-size: 16px !important;
        min-height: 48px;
    }

    /* --- Report download forms --- */
    .download-form input { width: 100%; }
    .download-form button { width: 100%; min-height: 48px; }

    /* --- Article content --- */
    .article-content { padding: 0 4px; }
    .article-content h1 { font-size: 28px; }
    .article-content h2 { font-size: 22px; }
    .article-content img { border-radius: 8px; }

    /* --- Mention cards --- */
    .mention-grid { grid-template-columns: 1fr; }

    /* --- Tabs --- */
    .tab-group { flex-wrap: wrap; gap: 8px; }
    .tab { font-size: 13px; padding: 8px 16px; }

    /* --- Logo strips (image-based on homepage) --- */
    .section [style*="display: flex"][style*="flex-wrap: wrap"][style*="justify-content: center"] {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px 16px !important;
        justify-items: center;
        align-items: center;
        max-width: 100% !important;
        padding: 0 12px;
    }
    .section [style*="display: flex"][style*="flex-wrap: wrap"][style*="justify-content: center"] img {
        height: 20px !important;
        opacity: 0.5 !important;
    }

    /* --- Cited by text logos (festive barometer etc) --- */
    .section [style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 48px"] {
        gap: 20px 24px !important;
        padding: 0 8px;
    }
    .section [style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 48px"] span {
        font-size: 14px !important;
    }

    /* --- Overflow prevention (exclude header container so nav dropdown isn't clipped) --- */
    .section, body {
        overflow-x: hidden;
    }
    .section .container {
        overflow-x: hidden;
    }
    .site-header .container {
        overflow: visible !important;
    }

    /* --- Data Platform inline banners (insights.html etc) --- */
    .container > [style*="border-radius: 20px"][style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }
    .container > [style*="border-radius: 20px"][style*="display: flex"][style*="justify-content: space-between"] [style*="white-space: nowrap"] {
        white-space: normal !important;
        font-size: 13px !important;
    }
    .container > [style*="border-radius: 20px"][style*="display: flex"][style*="justify-content: space-between"] > [style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* --- Hero floating cards: prevent clipping --- */
    .hero-a-right {
        padding: 0 16px 32px !important;
        gap: 10px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    .hero-a-right .float-card {
        min-width: 110px !important;
        max-width: 140px;
        flex: 1 1 auto !important;
    }

    /* --- Key Findings bar charts (report pages) --- */
    /* Specificity must beat .section [style*=...][style*=...]:not(...) = 0,4,0 */
    .section [style*="background: #f4f4f5"][style*="border-radius: 16px"] {
        padding: 20px 16px !important;
    }
    .section [style*="background: #f4f4f5"][style*="border-radius: 16px"] [style*="display: flex"] {
        flex-direction: row !important;
        gap: 10px !important;
    }

    /* --- Report page 2-col grid sidebar layouts --- */
    .section [style*="grid-template-columns: 1fr 1fr"],
    .section [style*="grid-template-columns: 1.2fr"],
    .section [style*="grid-template-columns: 2fr 1fr"],
    .section [style*="grid-template-columns: 1fr 340px"],
    .section [style*="grid-template-columns: 1fr 320px"],
    .section [style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* --- Charts and inline SVGs --- */
    .section svg,
    .article-content svg {
        max-width: 100%;
        height: auto;
    }
}
