/* =============================================================================
   AEOBRAND — Sector report styles
   Public lead magnet. Design system mirrors brand reports for consistency,
   but lighter: no watermark, no freshness badge, no Share/PDF buttons,
   full indexable HTML.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:root {
    --cream: #FAF8F5;
    --cream-dark: #F0EDE6;
    --ink: #0A0A0A;
    --ink-soft: #1A1A1A;
    --accent: #2B4BDB;
    --accent-light: #6B8AFF;
    --accent-wash: rgba(43, 75, 219, 0.06);
    --accent-wash-dark: rgba(107, 138, 255, 0.12);
    --gray-600: #666666;
    --gray-400: #999999;
    --gray-300: #BDBBB5;
    --gray-200: #E0DED8;
    --border: rgba(10, 10, 10, 0.12);
    --border-light: rgba(250, 248, 245, 0.18);

    --ff-serif: 'Cormorant Garamond', Georgia, serif;
    --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    --container-max: 1200px;
    --container-pad: 48px;

    --section-pad-y: 80px;
    --block-gap: 32px;

    /* Heights used to align sticky surfaces and section scroll anchors.
       Kept in sync by media queries below. */
    --header-height: 60px;
    --nav-height: 44px;
    --sticky-total: calc(var(--header-height) + var(--nav-height));
}

body {
    font-family: var(--ff-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.mono {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-600);
}

em {
    font-family: var(--ff-serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.section-dark em { color: var(--accent-light); }

strong { font-weight: 600; }

/* ---------- Header ---------- */
/* The header and the section nav are wrapped in a single sticky shell so they
   stack together and never overlap while scrolling. */
.sticky-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--border);
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 16px;
    min-height: var(--header-height);
}

.header-left { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.header-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.brand {
    font-family: var(--ff-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.header-meta {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-600);
}

.pill-btn {
    display: inline-block;
    padding: 9px 18px;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    transition: background-color 160ms ease, color 160ms ease;
    white-space: nowrap;
}
.pill-btn:hover, .pill-btn:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.pill-btn--dark { background: var(--ink); color: var(--cream); }
.pill-btn--dark:hover { background: var(--ink-soft); }

/* ---------- Cover ---------- */
.sector-cover {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--border);
}

.cover-label { display: block; margin-bottom: 24px; }

.cover-title {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: clamp(56px, 8.4vw, 112px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 980px;
    color: var(--ink);
}

.cover-lede {
    font-family: var(--ff-serif);
    font-weight: 400;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.4;
    color: var(--ink);
    max-width: 760px;
    margin: 0 0 36px;
}

.cover-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cover-meta > div { display: flex; flex-direction: column; gap: 6px; }
.cover-meta dt {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.cover-meta dd { font-family: var(--ff-sans); font-size: 14px; color: var(--ink); }

/* ---------- Sections ---------- */
.section {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
    /* Offset so the combined sticky header + section nav never covers a
       section heading when the user clicks a nav link. */
    scroll-margin-top: calc(var(--sticky-total) + 16px);
}
.sector-cover { scroll-margin-top: calc(var(--sticky-total) + 16px); }
.section-cream { background: var(--cream); }
.section-cream-dark { background: var(--cream-dark); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .mono { color: var(--gray-400); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
}
.section-dark .section-header { border-bottom-color: var(--border-light); }

.section-title {
    font-family: var(--ff-serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2;
    margin: 0 0 28px;
    max-width: 920px;
    color: var(--ink);
}

.section-title--light { color: var(--cream); }

.para {
    font-family: var(--ff-sans);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 820px;
    margin: 24px 0 0;
    color: var(--ink);
}
.section-dark .para { color: var(--cream); }

.para--tight { margin-top: 16px; font-size: 14px; }

/* ---------- Framing grid (section 01) ---------- */
.framing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.framing-card {
    padding: 22px 22px 24px;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.framing-card .mono { color: var(--gray-400); }
.framing-card p {
    font-family: var(--ff-sans);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.framing-card--internal { background: var(--cream); border-color: var(--border); }
.framing-card--internal .mono { color: var(--accent); }
.framing-kpi {
    font-family: var(--ff-serif) !important;
    font-size: 48px !important;
    line-height: 1 !important;
    font-weight: 500;
    color: var(--ink) !important;
    margin: 4px 0 !important;
    letter-spacing: -0.02em;
}
.framing-kpi em { font-style: italic; color: var(--accent); font-size: 1em; }
.framing-body {
    font-size: 13px !important;
    color: var(--gray-600) !important;
    line-height: 1.55 !important;
}

/* ---------- Section 04 — consumer queries ---------- */
.queries-intro {
    font-family: var(--ff-sans);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 820px;
    margin: 0 0 36px;
    color: var(--ink);
}

.queries-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 16px 0 32px;
}

.query-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px;
    background: var(--cream);
    border: 1px solid var(--border);
}

.section-cream-dark .query-col { background: var(--cream); }
.section-cream .query-col { background: var(--cream-dark); }

.query-col-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.query-col-head .mono { color: var(--accent); font-size: 10px; letter-spacing: 1.6px; }

.query-col-share {
    color: var(--gray-400) !important;
    font-size: 9.5px !important;
    letter-spacing: 1.5px !important;
}

.query-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.query-card {
    background: var(--cream-dark);
    padding: 12px 14px;
    border-left: 2px solid var(--border);
    margin: 0;
    font-family: var(--ff-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.35;
}

.section-cream-dark .query-card { background: var(--cream); }
.section-cream .query-card { background: var(--cream-dark); }

.query-card::before {
    content: "〞";
    color: var(--accent);
    margin-right: 6px;
    font-size: 18px;
    font-style: normal;
    line-height: 1;
    vertical-align: -2px;
}

.insight-block {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.insight-block > div {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--ink);
    line-height: 1.55;
    text-transform: none;
}

.insight-block > div::before {
    content: "→ ";
    color: var(--accent);
    font-weight: 600;
}

.queries-conclusion {
    font-family: var(--ff-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--accent);
    text-align: center;
    margin: 32px auto 0;
    max-width: 720px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    line-height: 1.45;
}

.queries-conclusion em { color: var(--accent); font-style: italic; font-weight: 500; }

@media (max-width: 1200px) {
    .queries-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* ---------- KPI rows ---------- */
.kpi-row {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 28px 0 32px;
}
.kpi-row-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-row-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-row-5 { grid-template-columns: repeat(5, 1fr); }

.kpi-cell {
    padding: 22px 20px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kpi-cell:last-child { border-right: none; }

.kpi-cell .mono { color: var(--gray-400); }

.kpi-stat {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1;
    margin: 4px 0;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.kpi-stat em { color: var(--accent); font-size: 1em; font-weight: 500; }

.kpi-note {
    font-family: var(--ff-sans);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray-600);
    margin: 0;
}

/* ---------- Charts ---------- */
.chart-wrap {
    margin: 28px 0 0;
}
.chart-wrap--bordered {
    padding: 24px;
    background: var(--cream-dark);
    border: 1px solid var(--border);
}
.section-cream .chart-wrap--bordered { background: var(--cream-dark); }
.section-cream-dark .chart-wrap--bordered { background: var(--cream); }

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-axis-label {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 1.4px;
    fill: var(--gray-400);
    text-transform: uppercase;
}
.chart-tick {
    font-family: var(--ff-mono);
    font-size: 9.5px;
    fill: var(--gray-600);
}
.chart-bar-track { fill: var(--gray-200); }
.chart-row-label {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 1.6px;
    fill: var(--gray-600);
    text-transform: uppercase;
}
.chart-bar-engine {
    font-family: var(--ff-mono);
    font-size: 9.5px;
    letter-spacing: 1.4px;
    fill: var(--gray-600);
}
.chart-bar-val {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    fill: var(--ink);
}
.chart-bar-claude { fill: var(--ink-soft); }
.chart-bar-gemini { fill: var(--accent); }
.chart-bar-openai { fill: var(--gray-400); }

/* Long tail chart */
.lt-bar { fill: var(--gray-400); }
.lt-bar-top10 { fill: var(--ink-soft); }
.lt-bar-top3 { fill: var(--accent); }
.lt-curve {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1;
    stroke-opacity: 0.35;
    stroke-dasharray: 3 2;
}
.lt-cutoff {
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    stroke-opacity: 0.7;
}
.lt-cutoff-label {
    font-family: var(--ff-mono);
    font-size: 9.5px;
    letter-spacing: 1.4px;
    fill: var(--accent);
}

/* Scatter chart */
.sc-diag {
    stroke: var(--gray-400);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    stroke-opacity: 0.55;
}
.sc-dot {
    fill: var(--accent);
    fill-opacity: 0.6;
    stroke: var(--accent);
    stroke-width: 1;
}

/* ---------- Engine behaviors (section 02) ---------- */
.behavior-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.behavior-card {
    padding: 22px;
    background: var(--cream);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section-cream-dark .behavior-card { background: var(--cream); }
.section-cream .behavior-card { background: var(--cream-dark); }

.behavior-card .mono { color: var(--accent); }

.behavior-key {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.25;
    margin: 6px 0 0;
    color: var(--ink);
}
.behavior-key em { font-size: 32px; font-weight: 500; }

.behavior-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.behavior-kv dt {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.behavior-kv dd { font-family: var(--ff-sans); font-size: 13px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Disparity (section 05) ---------- */
.disparity-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 16px;
}

.disparity-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-line {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-line:first-child { border-top: none; padding-top: 0; }
.stat-line .mono { color: var(--gray-400); }

.stat-value {
    font-family: var(--ff-serif);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    margin: 2px 0;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stat-value em { color: var(--accent); font-size: 1em; }

.stat-note {
    font-family: var(--ff-sans);
    font-size: 13px;
    line-height: 1.55;
    color: var(--gray-600);
    margin: 0;
}

/* ---------- Insight box ---------- */
.insight-box {
    margin-top: 24px;
    padding: 22px 24px;
    background: var(--cream);
    border-left: 3px solid var(--accent);
    max-width: 820px;
}
.section-cream-dark .insight-box { background: var(--cream); }
.section-cream .insight-box { background: var(--cream-dark); }
.insight-box .mono { color: var(--accent); }
.insight-body {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.4;
    margin: 8px 0 0;
    color: var(--ink);
}

/* ---------- Implications (section 07 — dark) ---------- */
.implications {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.implications li {
    padding: 22px 24px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.015);
}

.implications .mono { color: var(--accent-light); }

.imp-title {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    color: var(--cream);
    margin: 2px 0;
}

.imp-title em { color: var(--accent-light); font-weight: 500; }

.implications li p {
    font-family: var(--ff-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--cream);
    margin: 0;
}

.implications li p strong { color: var(--accent-light); font-weight: 600; }

/* ---------- About (section 08) ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-cta {
    padding: 28px 24px;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-cta-lede {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
}

.about-cta .pill-btn--dark { align-self: flex-start; padding: 12px 22px; }

.about-cta-note {
    font-family: var(--ff-sans);
    font-size: 12.5px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* ---------- Methodology ---------- */
.method-dl { max-width: 860px; }

.method-dl > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.method-dl dt {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gray-600);
}
.method-dl dd {
    font-family: var(--ff-sans);
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    background: var(--cream);
}
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.footer-left { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.footer-note {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.55;
    font-family: var(--ff-sans);
    font-size: 12px;
}
.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10.5px;
}
.footer-links a {
    color: var(--gray-600);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 160ms ease, border-color 160ms ease;
}
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .disparity-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    :root {
        --container-pad: 24px;
        --section-pad-y: 56px;
    }
    .header-meta { display: none; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cover-meta { grid-template-columns: 1fr 1fr; }
    .framing-grid { grid-template-columns: 1fr; }
    .behavior-grid { grid-template-columns: 1fr; }
    .kpi-row-3, .kpi-row-4, .kpi-row-5 { grid-template-columns: 1fr; border-bottom: none; }
    .stat-xxl-grid { grid-template-columns: 1fr 1fr !important; }
    .kpi-cell { border-right: none; border-bottom: 1px solid var(--border); }
    .kpi-cell:last-child { border-bottom: none; }
    .method-dl > div { grid-template-columns: 1fr; gap: 2px; }
    .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
    body { font-size: 14px; }
    .cover-title { font-size: 44px; }
    .imp-title { font-size: 22px; }
    .kpi-stat, .stat-value { font-size: 36px; }
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================================================
 * V4 enrichment — engine palmares, age segmentation, price layer
 * ========================================================================= */

/* ---------- Engine palmares (3-col grid, top-5 per engine) ---------- */
.palmares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0;
}
.palmares-column {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.palmares-engine-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.palmares-rank {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.palmares-rank:last-child { border-bottom: none; }
.palmares-rank-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--accent);
    min-width: 32px;
}
.palmares-rank-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--ink);
    flex: 1;
    padding: 0 12px;
}
.palmares-rank-sov {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray-500);
}
.palmares-keyfact {
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.palmares-keyfact em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* ---------- Age evolution chart ---------- */
.age-chart-container {
    margin: 48px 0;
    padding: 32px;
    background: var(--cream-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.age-chart-svg { width: 100%; height: auto; }
.age-chart-line        { fill: none; stroke: var(--gray-400); stroke-width: 1.5; }
.age-chart-line-leader { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.age-chart-dot         { fill: var(--cream); stroke: var(--gray-400); stroke-width: 1.5; }
.age-chart-dot-leader  { fill: var(--accent); stroke: var(--accent); }
.age-chart-axis        { stroke: var(--border); stroke-width: 1; }
.age-chart-tick-label  {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    fill: var(--gray-500);
    letter-spacing: 1px;
}
.age-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-600);
}
.age-chart-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--gray-400);
    margin-right: 8px;
    vertical-align: middle;
}
.age-chart-legend-swatch.is-leader { background: var(--accent); height: 3px; }
.age-highlights-block {
    margin-top: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink);
}
.age-highlights-block p { margin: 4px 0; }
.age-highlights-block em { color: var(--accent); font-style: italic; }

/* ---------- Price layer (2-col: bar chart + insight list) ---------- */
.price-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    margin: 48px 0;
    align-items: start;
}
.price-bar-container { margin: 24px 0; }
.price-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
.price-bar-engine {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
}
.price-bar-track {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.price-bar-fill {
    height: 100%;
    background: var(--gray-400);
    transition: width 0.3s ease;
}
.price-bar-fill.is-leader { background: var(--accent); }
.price-bar-value {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--accent);
    text-align: right;
}
.price-bar-value.is-muted {
    color: var(--gray-500);
    font-style: normal;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}
.price-insights {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.price-insights li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--ink);
}
.price-insights li:last-child { border-bottom: none; }
.price-insights li strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    display: block;
    margin-bottom: 4px;
}
.price-insights li em {
    font-style: italic;
    color: var(--accent);
}

/* ---------- Insufficient data notice (shared) ---------- */
.insufficient-data {
    padding: 24px;
    border: 1px dashed var(--border);
    color: var(--gray-500);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 1080px) {
    .palmares-grid { grid-template-columns: 1fr; gap: 40px; }
    .price-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================================
 * V5 publishable baromètre — production metrics XXL, query-type list,
 * jaccard pairs, unknown leaderboard, misc notes.
 * ========================================================================= */

/* ---------- §01 Production metrics XXL ---------- */
.stat-xxl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
    margin: 48px 0 40px;
}
.stat-xxl {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.stat-xxl-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1;
    color: var(--ink);
    margin: 0 0 4px;
}
.stat-xxl-num em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.stat-xxl-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-600);
    margin: 12px 0 6px;
}
.stat-xxl-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}
.stat-xxl-note .mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink);
}

.production-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.production-kv {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.production-kv dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0;
}
.production-kv dd {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}
.production-kv dd em {
    font-style: italic;
    color: var(--accent);
    font-size: 22px;
}
.production-kv-n {
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-left: 6px;
}
.production-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--ink);
    margin: 24px 0 0;
    line-height: 1.4;
}
.production-tagline em {
    color: var(--accent);
    font-style: italic;
}

/* ---------- Query type distribution (§05) ---------- */
.query-type-dist {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.query-type-dist-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.query-type-dist-rows {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 24px;
}
.query-type-dist-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}
.query-type-dist-name {
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--gray-500);
}
.query-type-dist-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--ink);
}
.query-type-dist-count em {
    font-style: italic;
    color: var(--accent);
    font-size: 22px;
}

/* ---------- Jaccard pairs (§06) ---------- */
.jaccard-pairs {
    margin: 32px 0 16px;
    padding: 24px;
    background: var(--cream);
    border: 1px solid var(--border);
}
.jaccard-pairs-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.jaccard-pair-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 32px;
}
.jaccard-pair-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jaccard-pair-name {
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--gray-500);
}
.jaccard-pair-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    line-height: 1;
    color: var(--ink);
}
.jaccard-pair-score em {
    font-style: italic;
    color: var(--accent);
}

/* ---------- Unknown leaderboard (§10) ---------- */
.unknown-leaderboard {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.unknown-leaderboard-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.unknown-leaderboard-rows {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.unknown-leaderboard-row {
    display: grid;
    grid-template-columns: 40px 1fr 160px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.unknown-leaderboard-row:last-child { border-bottom: none; }
.unknown-leaderboard-rank {
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 1px;
}
.unknown-leaderboard-alias {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--ink);
}
.unknown-leaderboard-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--gray-500);
    text-align: right;
    letter-spacing: 1px;
}
.unknown-leaderboard-count em {
    font-style: normal;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0;
}

/* ---------- Price note subtext (§07) ---------- */
.price-note {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.45;
    margin-top: 4px;
}

/* ---------- Responsive for the new blocks ---------- */
@media (max-width: 1080px) {
    .stat-xxl-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
    .production-secondary { grid-template-columns: repeat(2, 1fr); }
    .query-type-dist-rows { grid-template-columns: repeat(2, 1fr); }
    .jaccard-pair-rows { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .stat-xxl-grid { grid-template-columns: 1fr; }
    .stat-xxl-num { font-size: 64px; }
    .production-secondary { grid-template-columns: 1fr; gap: 18px; }
    .query-type-dist-rows { grid-template-columns: 1fr; }
    .unknown-leaderboard-row { grid-template-columns: 24px 1fr; }
    .unknown-leaderboard-count { grid-column: 1 / -1; text-align: left; }
}

/* =========================================================================
 * V5 level-2 enrichment — sticky nav, query-type table, publisher block,
 * sentiment table, subsection titles.
 * ========================================================================= */

/* ---------- Section nav ---------- */
/* Section nav: on narrow viewports it is a sticky horizontal bar that
   sits directly under the sticky header. On ≥1280 px it becomes a fixed
   left rail (see the dedicated media query below). */
.sector-nav-sticky {
    position: sticky;
    top: var(--header-height);
    z-index: 49;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sector-nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 10px var(--container-pad);
    min-height: var(--nav-height);
    -webkit-overflow-scrolling: touch;
    /* Hide the scrollbar visually on all browsers — the fade mask below is
       the only cue. Scrolling itself still works via touch / trackpad. */
    scrollbar-width: none;
    /* Fade edges so users see that content scrolls horizontally on mobile. */
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.sector-nav-inner::-webkit-scrollbar { display: none; }
.sector-nav-inner a {
    white-space: nowrap;
    padding: 6px 10px;
    color: var(--gray-600);
    border-bottom: 1px solid transparent;
    transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.sector-nav-inner .nav-num {
    color: var(--gray-400);
    margin-right: 4px;
    font-variant-numeric: tabular-nums;
}
.sector-nav-inner a.is-active .nav-num { color: var(--accent); }
.sector-nav-inner a:hover { color: var(--accent); }
.sector-nav-inner a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
}

/* ---------- Subsection headings (used inside §09 authority) ---------- */
.subsection-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.25;
    color: var(--ink);
    margin: 48px 0 24px;
}
.subsection-title em {
    font-style: italic;
    color: var(--accent);
}

/* ---------- §06 query-type concentration table ---------- */
.qtype-table-wrap {
    margin: 32px 0 20px;
    overflow-x: auto;
}
.qtype-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Cormorant Garamond', serif;
}
.qtype-table th {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--border);
}
.qtype-table th.num { text-align: right; }
.qtype-table td {
    font-size: 17px;
    color: var(--ink);
    padding: 14px 12px 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.qtype-table td.num { text-align: right; }
.qtype-table td em {
    font-style: italic;
    color: var(--accent);
    font-size: 20px;
}
.qtype-row-pseudo td { color: var(--gray-600); }
.qtype-row-pseudo td:first-child::before { content: ""; }
.qtype-pseudo-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--gray-600);
    background: var(--cream);
    border: 1px solid var(--border-light);
    vertical-align: 2px;
}
.qtype-n-warn {
    color: var(--accent);
    margin-left: 4px;
    font-size: 14px;
}
.qtype-table-note {
    margin-top: 12px;
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 1px;
}
.qtype-table td .muted { color: var(--gray-500); }

/* ---------- §09 publisher block ---------- */
.publisher-top15 {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.publisher-top15-label,
.publisher-breakdown-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.publisher-top15-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.publisher-row {
    display: grid;
    grid-template-columns: 32px minmax(140px, 1.3fr) 3fr 64px 100px;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.publisher-rank {
    color: var(--gray-500);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-align: right;
}
.publisher-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.publisher-bar-track {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.publisher-bar-fill {
    height: 100%;
    background: var(--accent);
}
.publisher-pct {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--accent);
    text-align: right;
}
.publisher-type {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    text-align: right;
}

.publisher-breakdowns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}
.publisher-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.publisher-stacked-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.publisher-stacked-row {
    display: grid;
    grid-template-columns: 120px 1fr 56px;
    align-items: center;
    gap: 12px;
}
.publisher-stacked-name {
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--gray-600);
}
.publisher-stacked-bar-track {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.publisher-stacked-bar-fill {
    height: 100%;
    background: var(--gray-400);
}
.publisher-stacked-bar-fill.is-leader { background: var(--accent); }
.publisher-stacked-pct {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--ink);
    text-align: right;
}
.publisher-stacked-pct em { color: var(--accent); font-style: italic; }
.publisher-source {
    display: block;
    margin-top: 20px;
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 1px;
    line-height: 1.5;
}

/* ---------- §12 sentiment table ---------- */
.sentiment-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}
.sentiment-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Cormorant Garamond', serif;
}
.sentiment-table th {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--border);
}
.sentiment-table th.num { text-align: right; }
.sentiment-table td {
    font-size: 17px;
    color: var(--ink);
    padding: 14px 12px 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.sentiment-table td.num { text-align: right; }
.sentiment-table td em {
    font-style: italic;
    color: var(--accent);
    font-size: 20px;
}
.sentiment-source {
    display: block;
    margin-top: 16px;
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 1px;
}

/* ---------- §10 disparity additional KPIs ---------- */
.disparity-kpi-row { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .publisher-row { grid-template-columns: 28px 1fr 2.2fr 54px; }
    .publisher-type { display: none; }
    .publisher-breakdowns { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .publisher-row {
        grid-template-columns: 1fr 60px;
        grid-template-rows: auto auto;
        row-gap: 4px;
    }
    .publisher-rank { display: none; }
    .publisher-name { grid-column: 1; grid-row: 1; }
    .publisher-pct { grid-column: 2; grid-row: 1; }
    .publisher-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .publisher-stacked-row { grid-template-columns: 90px 1fr 48px; }
}

/* ---------- Named-variant TOP 15 aggregate ---------- */
.named-top15 {
    margin: 56px 0 16px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.named-top15-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.named-top15-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 24px;
}
.named-top15-title em {
    font-style: italic;
    color: var(--accent);
}
.named-top15-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 0;
}
.named-top15-note {
    margin-top: 16px;
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
@media (max-width: 1080px) {
    .named-top15-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .named-top15-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
 * Responsive — shrink the sticky-shell surfaces so the section nav stays
 * visible (and usable) on small screens when the user scrolls.
 * ========================================================================= */
@media (max-width: 640px) {
    :root {
        --header-height: 52px;
        --nav-height: 40px;
    }
    .header-meta { display: none; }
    .sector-nav-inner a { padding: 5px 10px; font-size: 10px; letter-spacing: 1.2px; }
}

/* =========================================================================
 * Desktop wide (≥1280 px) — convert the horizontal nav into a vertical
 * left rail, Notion / Stripe-docs style. Detaches the nav from the sticky
 * shell and anchors it to the viewport as a fixed sidebar. Main content
 * shifts right to make room; the header stays full width at the top.
 * ========================================================================= */
@media (min-width: 1280px) {
    :root {
        --rail-width: 220px;
        /* Rail lives on the left, so only the header counts as top chrome
           for section scroll-margin calculations. */
        --sticky-total: var(--header-height);
    }

    /* Nav becomes a fixed left column anchored below the sticky header. */
    .sector-nav-sticky {
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: var(--rail-width);
        background: var(--cream);
        border-right: 1px solid var(--border);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 28px 0 40px;
        z-index: 50;
        font-size: 11px;
    }
    /* Visual cue so the rail reads as a table of contents. */
    .sector-nav-sticky::before {
        content: "— SOMMAIRE";
        display: block;
        padding: 0 20px 12px;
        font-family: var(--ff-mono);
        font-size: 10px;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        color: var(--gray-400);
    }

    .sector-nav-inner {
        flex-direction: column;
        gap: 0;
        padding: 0 12px;
        min-height: 0;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .sector-nav-inner a {
        display: block;
        padding: 8px 10px 8px 12px;
        font-size: 10.5px;
        letter-spacing: 1.5px;
        border-bottom: 0;
        border-left: 2px solid transparent;
        border-radius: 0 2px 2px 0;
    }
    .sector-nav-inner a:hover {
        background: rgba(43, 75, 219, 0.04);
    }
    .sector-nav-inner a.is-active {
        background: var(--accent-wash);
        border-left-color: var(--accent);
        border-bottom-color: transparent;
    }
    .sector-nav-inner .nav-num {
        display: inline-block;
        min-width: 20px;
    }

    /* Shift main + footer right to clear the rail. Header stays full width. */
    main { margin-left: var(--rail-width); }
    .site-footer { margin-left: var(--rail-width); }

    /* Ensure the sticky header stays on top of the rail. */
    .sticky-shell { z-index: 60; }

    /* Lighten the sticky shell shadow now that the nav is detached. */
    .sticky-shell {
        box-shadow: 0 1px 0 var(--border);
    }
}

/* Desktop very wide (≥1680 px) — widen the rail slightly for breathing room. */
@media (min-width: 1680px) {
    :root { --rail-width: 240px; }
}

/* Print — rail never prints (already hidden via .sector-nav-sticky
 * rule in @media print above, but reset the margin shift too). */
@media print {
    main { margin-left: 0 !important; }
    .site-footer { margin-left: 0 !important; }
}

/* =========================================================================
 * Callout quote — the strongest sentence of a section, pulled out so it
 * anchors scannable reading. Uses the existing serif + accent palette,
 * no new fonts or colors.
 * ========================================================================= */
.callout-quote {
    margin: 40px 0;
    padding: 28px 32px 28px 36px;
    border-left: 3px solid var(--accent);
    background: var(--accent-wash);
    font-family: var(--ff-serif);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.25;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
}
.callout-quote em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.callout-quote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--ff-mono);
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-600);
}
.section-dark .callout-quote {
    background: rgba(107, 138, 255, 0.08);
    border-left-color: var(--accent-light);
    color: var(--cream);
}
.section-dark .callout-quote em { color: var(--accent-light); }
.section-dark .callout-quote cite { color: var(--gray-400); }

/* =========================================================================
 * Actionable takeaway — the "💡 Actionnable :" box at the end of each
 * section. Serif label, sans body, accent-washed background.
 * ========================================================================= */
.actionable {
    margin: 36px 0 0;
    padding: 20px 24px;
    border: 1px solid var(--border);
    background: var(--cream);
    border-radius: 2px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 18px;
    align-items: start;
}
.section-cream-dark .actionable { background: var(--cream); }
.section-dark .actionable {
    background: rgba(250, 248, 245, 0.04);
    border-color: var(--border-light);
    color: var(--cream);
}
.actionable-label {
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}
.section-dark .actionable-label { color: var(--accent-light); }
.actionable-body {
    font-family: var(--ff-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
}
.section-dark .actionable-body { color: var(--cream); }
.actionable-body strong { font-weight: 600; color: var(--ink); }
.section-dark .actionable-body strong { color: var(--cream); }

/* =========================================================================
 * Insight mini-cards — compact paragraph replacement: short title +
 * big number + ≤2 lines of explanation. Used when prose density is too
 * high for the mobile scroll.
 * ========================================================================= */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.insight-card {
    padding: 22px 22px 20px;
    border: 1px solid var(--border);
    background: var(--cream);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section-cream-dark .insight-card { background: var(--cream); }
.section-dark .insight-card {
    background: rgba(250, 248, 245, 0.03);
    border-color: var(--border-light);
}
.insight-card-label {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-600);
}
.section-dark .insight-card-label { color: var(--gray-400); }
.insight-card-num {
    font-family: var(--ff-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(34px, 4vw, 44px);
    color: var(--accent);
    line-height: 1;
    margin: 0;
}
.section-dark .insight-card-num { color: var(--accent-light); }
.insight-card-body {
    font-family: var(--ff-sans);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray-600);
    margin: 0;
}
.section-dark .insight-card-body { color: var(--gray-300); }
.insight-card-body strong { color: var(--ink); font-weight: 600; }
.section-dark .insight-card-body strong { color: var(--cream); }

/* =========================================================================
 * Emoji bullet list — scannable bullets guided by contextual emojis.
 * Emojis are inline in the HTML; this class just tightens the layout.
 * ========================================================================= */
.bullet-emoji {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bullet-emoji li {
    font-family: var(--ff-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    padding-left: 0;
}
.section-dark .bullet-emoji li { color: var(--cream); }
.bullet-emoji li strong { font-weight: 600; }

/* =========================================================================
 * Viz suggestion — inline hint indicating an alternate component that
 * would carry the same signal better. Rendered discreetly so it doesn't
 * compete with the real chart above or below.
 * ========================================================================= */
.viz-suggestion {
    margin: 16px 0 24px;
    padding: 10px 14px;
    border: 1px dashed var(--border);
    background: transparent;
    font-family: var(--ff-mono);
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gray-600);
    border-radius: 2px;
}
.section-dark .viz-suggestion { border-color: var(--border-light); color: var(--gray-400); }
.viz-suggestion strong { color: var(--accent); font-weight: 600; letter-spacing: 1.6px; }
.section-dark .viz-suggestion strong { color: var(--accent-light); }

/* Print: suggestions are dev artefacts, drop them from the PDF. */
@media print {
    .viz-suggestion { display: none !important; }
}

/* =========================================================================
 * Skip link — keyboard users jump past the sticky header.
 * ========================================================================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--cream);
    padding: 10px 16px;
    font-family: var(--ff-sans);
    font-size: 13px;
    z-index: 200;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* =========================================================================
 * PDF button in the header. Reuses the pill-btn but adds an icon slot.
 * ========================================================================= */
.pill-btn {
    cursor: pointer;
    font-family: var(--ff-sans);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.pill-btn--pdf {
    background: var(--cream);
    border: 1px solid var(--ink);
    color: var(--ink);
}
.pill-btn--pdf:hover, .pill-btn--pdf:focus-visible {
    background: var(--ink);
    color: var(--cream);
    outline: none;
}
.pill-btn-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

/* =========================================================================
 * Footer PDF button — inline, matches the existing footer-links look.
 * ========================================================================= */
.footer-link-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    cursor: pointer;
}
.footer-link-btn:hover, .footer-link-btn:focus-visible {
    color: var(--accent);
    outline: none;
}

/* =========================================================================
 * Sticky shell polish — tighten the visual separation between header / nav
 * and improve active-state contrast so the current section is obvious.
 * ========================================================================= */
.sector-nav-inner a {
    border-radius: 2px;
}
.sector-nav-inner a.is-active {
    background: rgba(43, 75, 219, 0.08);
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.sticky-shell {
    box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(10, 10, 10, 0.04);
}

/* Responsive tweak — stack header rows when space is tight so the
 * PDF + diagnostic CTAs stay tappable on narrow viewports. */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; row-gap: 8px; }
    .header-right { width: 100%; justify-content: flex-start; }
}
@media (max-width: 520px) {
    .pill-btn { padding: 8px 14px; font-size: 12px; }
    .pill-btn--ghost { display: none; }
}

/* =========================================================================
 * Print styles — "Télécharger le PDF" triggers window.print() and the
 * browser's Save-as-PDF produces a clean, single-document layout.
 * ========================================================================= */
@page {
    size: A4;
    margin: 14mm 12mm;
}

@media print {
    html, body { background: #ffffff !important; color: #000 !important; }
    body { font-size: 10.5pt; line-height: 1.45; }

    /* Hide all interactive / navigation chrome. */
    .sticky-shell,
    .site-header,
    .sector-nav-sticky,
    .skip-link,
    .site-footer .footer-links,
    .pill-btn,
    .footer-link-btn {
        display: none !important;
    }

    main { display: block; }

    /* Ensure sections paginate nicely. */
    .section,
    .sector-cover {
        padding: 18pt 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .section { border-top: 1pt solid #000; }
    .sector-cover { border-bottom: 1pt solid #000; }

    /* Reduce container padding for print. */
    .container { padding-left: 0; padding-right: 0; max-width: none; }

    /* Headings behave well across page breaks. */
    h1, h2, h3, .section-title, .cover-title, .subsection-title {
        page-break-after: avoid;
        break-after: avoid;
        color: #000 !important;
    }
    .cover-title { font-size: 28pt; line-height: 1.05; margin-bottom: 10pt; }
    .cover-lede { font-size: 12pt; margin-bottom: 14pt; }
    .section-title { font-size: 18pt; line-height: 1.2; margin: 0 0 10pt; }
    .subsection-title { font-size: 14pt; margin: 14pt 0 8pt; }

    /* Preserve the italic serif accent but print it in black for fidelity. */
    em, .section-dark em { color: #000 !important; font-style: italic; }

    /* Tables + lists must not split. */
    table, figure, .kpi-row, .stat-xxl-grid, .palmares-grid,
    .queries-grid, .framing-grid, .publisher-top15, .implications li,
    .disparity-grid, .price-grid, .method-dl > div {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Cream backgrounds flatten to white to save ink; keep data bars. */
    .section-cream, .section-cream-dark, .section-dark {
        background: #ffffff !important;
        color: #000 !important;
    }
    .section-dark .section-title--light,
    .section-dark .para,
    .section-dark .mono { color: #000 !important; }

    /* Keep data bars legible with a dark fill on print. */
    .lt-bar, .publisher-bar-fill, .publisher-stacked-bar-fill, .price-bar-fill {
        fill: #000 !important;
        background: #000 !important;
    }
    .lt-bar-top3 { fill: #000 !important; }
    .lt-bar-top10 { fill: #444 !important; }
    .lt-curve { stroke: #000 !important; }
    .sc-dot { fill: #000 !important; }
    .sc-diag { stroke: #888 !important; }
    .chart-axis, .chart-tick, .chart-axis-label,
    .lt-cutoff, .lt-cutoff-label { stroke: #000; fill: #000; }

    /* Inline URLs in print — no clickable anchor indication needed. */
    a { color: #000 !important; text-decoration: none !important; }

    /* Footer — keep the attribution line, drop the nav list. */
    .site-footer { border-top: 1pt solid #000; padding: 10pt 0; }
    .footer-note { font-size: 9pt; }
}
