/* /prosus/state-of-ai-europe/ — the Prosus × Dealroom page for the State of AI
   in Europe 2026 report (scripts/build-prosus-state-of-ai-europe.mjs).
   Sits on top of company-profile.css + entity-profile.css (nav, TOC, section
   dividers, buttons) and adds the page's own islands: the co-branded report
   masthead, the featured quote, the five chart islands (a Europe / US
   butterfly, the talent-flow line, the employer treemap with its pills and
   tooltip, the stacked funding bars, the three stage panels), the authors row
   and the two partner blocks. Colours are theme tokens; the only literals are
   the partner's brand blue and the round-size ramp, marked inline. */

/* The treemap's four group colours, one token each; the pills, the boxes and
   the tooltip read the same four. */
.pae-main {
    --pae-c-old-economy: var(--series-c5);
    --pae-c-mag7: var(--orange-accent);
    --pae-c-academia: var(--blue);
    --pae-c-digital-tech-native: var(--series-c3);
}

/* ── Report masthead ──────────────────────────────────────────────────── */
.pae-hero.hero.is-entity { padding-bottom: 3rem; }
.pae-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3.5rem; align-items: center; }
.pae-hero-main { min-width: 0; }

/* The co-brand lockup: the Prosus wordmark × the Dealroom WORDMARK (no mark),
   Prosus first as on the report cover, an × between them in the faint ink.
   The two are sized to about the same WIDTH, not height: the Dealroom
   wordmark is a longer word, so at equal heights it reads much bigger.
   The pair aligns on the BASELINE (Yoram, 2026-09-13: the bottom of the s
   of prosus on the bottom of the d of dealroom): the Dealroom file ends at
   its baseline, the Prosus file at the p's descender, so the row uses
   align-items: baseline and the Prosus mark drops by that descender, 30%
   of its height. */
.pae-lockup { display: flex; align-items: baseline; gap: 16px; margin-bottom: 1.6rem; }
.pae-lockup img { display: block; width: auto; }
.pae-lockup-prosus { height: 26px; position: relative; top: 8px; }
.pae-lockup-dealroom { height: 17px; }
.pae-lockup.is-large .pae-lockup-prosus { height: 37px; top: 11px; }
.pae-lockup.is-large .pae-lockup-dealroom { height: 25px; }
.pae-lockup-x { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; color: var(--text-faint); }

.pae-kicker { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--eyebrow); }
.pae-hero h1 { margin: 0; font-family: var(--font-display); font-size: 3.25rem; font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; color: var(--white); }
.pae-h1-sub { display: block; margin-top: 0.35rem; font-weight: 400; font-size: 0.62em; letter-spacing: -0.01em; color: var(--text-cool); }
.pae-standfirst { max-width: 620px; margin: 1.35rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--text-light); }
.pae-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.pae-hero-meta { margin: 1.4rem 0 0; font-size: 0.8125rem; color: var(--text-faint); }
.pae-hero-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* The report cover, a card that opens the PDF. */
.pae-cover { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pae-cover img { display: block; width: 100%; height: auto; }
.pae-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.pae-cover-tag { position: absolute; left: 12px; bottom: 12px; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--surface-card); color: var(--white); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ── Featured quote ───────────────────────────────────────────────────── */
.pae-quote { padding: 2.75rem 2rem; background: var(--navy-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.pae-quote-inner { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 2.25rem; align-items: center; }
.pae-quote-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); border: 3px solid var(--surface-card); }
.pae-quote blockquote { margin: 0; padding-left: 1.5rem; border-left: 4px solid var(--pae-prosus); }
.pae-quote blockquote p { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.4; font-weight: 500; color: var(--white); }
.pae-quote blockquote p.is-second { font-size: 1.0625rem; font-weight: 400; color: var(--text-light); }
.pae-quote blockquote p.pae-quote-by { margin: 0.6rem 0 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 400; color: var(--text-light); }
.pae-quote blockquote p.pae-quote-by strong { color: var(--white); font-weight: 700; }

/* ── Chart islands ────────────────────────────────────────────────────── */
.pae-island { position: relative; background: var(--surface-card); border: 1px solid var(--border-light); border-radius: 14px; padding: 22px 24px 16px; box-shadow: var(--shadow-sm); }
.pae-island-title { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--white); }
.pae-island-sub { margin: 3px 0 16px; font-size: 0.8125rem; color: var(--text-light); }
.pae-note { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--text-faint); }
.pae-island-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.pae-island-src { font-size: 0.75rem; color: var(--text-faint); }
.pae-island-logos { display: flex; align-items: baseline; gap: 18px; }
.pae-island-logos img { display: block; height: 18px; width: auto; position: relative; top: 5.5px; }
.pae-island-logos img.is-dr { height: 14px; top: 0; }
.pae-island-logos img + img { padding-left: 18px; border-left: 1px solid var(--border-light); }
.pae-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pae-scroll > svg { display: block; width: 100%; height: auto; }

/* Europe's AI leaders: a plain grid of wordmark tiles from the logo database
   (/logo-db/), each mark filling its tile's width; the name and one line sit
   in the tooltip. A company without a wordmark shows its name set in type. */
.pae-leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pae-leader { display: flex; align-items: center; justify-content: center; height: 84px; padding: 16px 22px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--logo-tile-bg); min-width: 0; }
.pae-leader img { display: block; width: 100%; height: 100%; max-height: 44px; object-fit: contain; }
.pae-leader.is-text span { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.pae-leaders-more { margin: 14px 0 0; font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 900px) { .pae-leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pae-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pae-leader { height: 68px; padding: 12px 16px; } .pae-leader img { max-height: 36px; } }

/* The Europe / United States butterfly. Europe grows left from the centre
   label, the US right; the two series tokens carry the colours. */
.pae-bf { display: grid; gap: 10px; }
.pae-bf-head, .pae-bf-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: center; gap: 12px; }
.pae-bf-head { margin-bottom: 4px; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; }
.pae-bf-head .pae-bf-eu { text-align: right; color: var(--series-eu); }
.pae-bf-head .pae-bf-us { color: var(--series-usa); }
.pae-bf-head .pae-bf-mid { text-align: center; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; color: var(--text-faint); }
.pae-bf-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* The bar keeps room for its value label at any width (the longest, "~325K",
   is about 50px on a phone): a bar can never push its number out of the box. */
.pae-bf-side i { display: block; height: 30px; border-radius: 4px; flex: none; max-width: calc(100% - 58px); }
.pae-bf-eu.pae-bf-side { justify-content: flex-end; }
.pae-bf-eu.pae-bf-side i { background: var(--series-eu); border-radius: 4px 0 0 4px; }
.pae-bf-us.pae-bf-side i { background: var(--series-usa); border-radius: 0 4px 4px 0; }
.pae-bf-val { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pae-bf-eu .pae-bf-val { color: var(--series-eu); }
.pae-bf-us .pae-bf-val { color: var(--series-usa); }
.pae-bf-label { text-align: center; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--white); }
.pae-bf-label small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 400; color: var(--text-faint); }
.pae-bf-row.is-sub .pae-bf-side i { height: 18px; }
.pae-bf-row.is-sub .pae-bf-val { font-size: 1rem; font-weight: 700; }
.pae-bf-row.is-sub .pae-bf-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-light); }
.pae-bf-row.is-first-sub { margin-top: 6px; }

/* The talent-flow line (SVG): one hero line in the site blue, straight
   segments, a faint fill, a point per year with its own tooltip. */
.pae-scroll > svg.pae-tf { min-width: 720px; }
.pae-tf-grid { stroke: var(--chart-grid); stroke-width: 1; }
.pae-tf-axis { stroke: var(--chart-axis); stroke-width: 1; }
.pae-tf-y, .pae-tf-x { font-family: var(--font-sans); font-size: 12px; fill: var(--text-light); }
.pae-tf-line { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.pae-tf-area { fill: url(#pae-tf-grad); }
.pae-tf-stop-a { stop-color: var(--blue); stop-opacity: 0.2; }
.pae-tf-stop-b { stop-color: var(--blue); stop-opacity: 0; }
.pae-tf-pt { fill: var(--surface-card); stroke: var(--blue); stroke-width: 2.5; transition: r 0.15s ease; }
.pae-tf-hit:hover .pae-tf-pt { r: 6.5; fill: var(--blue); }
.pae-tf-lab { font-family: var(--font-sans); font-size: 13px; font-weight: 700; fill: var(--white); }

/* The stacked funding bars (SVG). The round-size ramp is the VC dashboard's,
   so the chart reads with the rest of the site. */
.pae-scroll > svg.pae-vcs { min-width: 720px; }
.pae-vcs-grid { stroke: var(--chart-grid); stroke-width: 1; }
.pae-vcs-axis { stroke: var(--chart-axis); stroke-width: 1; }
.pae-vcs-y, .pae-vcs-x { font-family: var(--font-sans); font-size: 12px; fill: var(--text-light); }
.pae-vcs-total { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; fill: var(--white); }
.pae-vcs-total.is-last { font-size: 14px; }
.pae-vcs-lab { font-family: var(--font-sans); font-size: 12.5px; }
.pae-vcs-name { font-weight: 700; fill: var(--white); }
.pae-vcs-val { fill: var(--text-light); }
.pae-vcs-bar { transition: opacity 0.15s ease; }
.pae-vcs:hover .pae-vcs-bar { opacity: 0.55; }
.pae-vcs .pae-vcs-bar:hover { opacity: 1; }
.pae-f0 { fill: #34D399; } /* theme-guardrail-allow: VC dashboard round-size ramp, under $15M */
.pae-f1 { fill: #3B82F6; } /* theme-guardrail-allow: VC dashboard round-size ramp, $15–100M */
.pae-f2 { fill: #7C3AED; } /* theme-guardrail-allow: VC dashboard round-size ramp, $100M and over */

/* The three stage panels: Europe and the United States as two bars, each
   panel on its own scale, the multiple stated under the bars. */
.pae-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pae-st-panel { padding: 16px 16px 12px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--navy-light); }
.pae-st-stage { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.pae-st-stage small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 400; color: var(--text-faint); }
.pae-st-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; height: 190px; align-items: end; }
.pae-st-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.pae-st-val { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pae-st-bar { display: block; width: 100%; max-width: 92px; border-radius: 5px 5px 2px 2px; transition: opacity 0.15s ease; }
.pae-st-panel:hover .pae-st-bar { opacity: 0.9; }
.pae-st-name { margin-top: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-light); }
.pae-st-eu.pae-st-bar { background: var(--series-eu); }
.pae-st-us.pae-st-bar { background: var(--series-usa); }
.pae-st-val.pae-st-eu { color: var(--series-eu); }
.pae-st-val.pae-st-us { color: var(--series-usa); }
.pae-st-ratio { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--border-light); font-size: 0.8125rem; color: var(--text-light); }
.pae-st-ratio strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--white); margin-right: 4px; }

/* The employer treemap (SVG): four groups, each in its own colour, on a pale
   tint of that colour; light (paper-coloured) text on the boxes, ink on the
   group header. Pills above swap the overview for one zoomed group; a
   tooltip follows the pointer. */
.pae-tm-island { overflow: hidden; }
.pae-tm-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pae-tm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pae-pill { display: inline-flex; align-items: center; gap: 7px; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--surface-card); color: var(--text-light); font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.pae-pill:hover { border-color: var(--border-mid); color: var(--white); }
.pae-pill.is-active { background: var(--white); border-color: var(--white); color: var(--surface-card); }
.pae-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pae-pill-n { font-weight: 500; opacity: 0.8; font-variant-numeric: tabular-nums; }
.pae-pill-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.pae-pill.pae-tm-old-economy .pae-pill-dot { background: var(--pae-c-old-economy); }
.pae-pill.pae-tm-mag7 .pae-pill-dot { background: var(--pae-c-mag7); }
.pae-pill.pae-tm-academia .pae-pill-dot { background: var(--pae-c-academia); }
.pae-pill.pae-tm-digital-tech-native .pae-pill-dot { background: var(--pae-c-digital-tech-native); }
.pae-scroll > svg.pae-tm { min-width: 860px; }
.pae-tm-gbg { fill-opacity: 0.13; transition: fill-opacity 0.15s ease; }
.pae-tm:not(.is-zoom) .pae-tm-gbg, .pae-tm:not(.is-zoom) .pae-tm-glabel, .pae-tm:not(.is-zoom) .pae-tm-gzoom { cursor: pointer; }
.pae-tm:not(.is-zoom) .pae-tm-group:hover .pae-tm-gbg { fill-opacity: 0.22; }
.pae-tm-glabel { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--white); }
.pae-tm-gcount { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; fill: var(--text-light); }
.pae-tm-gzoom { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: var(--eyebrow); opacity: 0; transition: opacity 0.15s ease; }
.pae-tm-group:hover .pae-tm-gzoom { opacity: 1; }
.pae-tm-cell { stroke: var(--surface-card); stroke-opacity: 0.6; stroke-width: 1; transition: opacity 0.15s ease, stroke-width 0.15s ease; }
.pae-tm-old-economy .pae-tm-gbg, .pae-tm-old-economy .pae-tm-cell { fill: var(--pae-c-old-economy); }
.pae-tm-mag7 .pae-tm-gbg, .pae-tm-mag7 .pae-tm-cell { fill: var(--pae-c-mag7); }
.pae-tm-academia .pae-tm-gbg, .pae-tm-academia .pae-tm-cell { fill: var(--pae-c-academia); }
.pae-tm-digital-tech-native .pae-tm-gbg, .pae-tm-digital-tech-native .pae-tm-cell { fill: var(--pae-c-digital-tech-native); }
.pae-tm.is-hovering .pae-tm-item .pae-tm-cell { opacity: 0.45; }
.pae-tm.is-hovering .pae-tm-item.is-hot .pae-tm-cell { opacity: 1; stroke-opacity: 1; stroke-width: 2.5; }
.pae-tm-name { font-family: var(--font-sans); font-weight: 600; fill: var(--surface-card); pointer-events: none; }
.pae-tm-val { font-family: var(--font-sans); font-weight: 700; fill: var(--surface-card); fill-opacity: 0.85; pointer-events: none; }
.pae-tip { position: absolute; z-index: 20; max-width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--white); color: var(--surface-card); box-shadow: var(--shadow-md); font-size: 0.8125rem; line-height: 1.4; pointer-events: none; }
.pae-tip strong { display: block; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; }
.pae-tip span { display: block; opacity: 0.85; }
.pae-tip .pae-tip-group { opacity: 0.7; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

/* ── 2.1 What this means ──────────────────────────────────────────────── */
.pae-prose { max-width: 720px; }
.pae-prose p { margin: 0 0 1em; font-size: 1.0625rem; line-height: 1.62; color: var(--white); opacity: 0.86; }
.pae-prose p:last-child { margin-bottom: 0; }

/* ── 2.2 Authors ──────────────────────────────────────────────────────── */
.pae-authors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.pae-author { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pae-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid var(--surface-card); box-shadow: var(--shadow-sm); }
.pae-author-name { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.pae-author-role { margin-top: 3px; font-size: 0.75rem; line-height: 1.35; color: var(--text-faint); }
.pae-author-org { display: inline-block; margin-top: 6px; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--eyebrow); background: var(--blue-light); }

/* ── 2.3 Prosus and Dealroom, two equal columns ───────────────────────── */
.pae-partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pae-partner { padding: 24px 26px; }
.pae-partner-logo { display: block; height: 26px; width: auto; margin: 0 0 14px; }
.pae-partner-logo.is-dr { height: 17px; margin: 6px 0 20px; }
.pae-partner-tagline { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--white); }
.pae-partner p { margin: 0 0 0.75em; font-size: 0.9375rem; line-height: 1.55; color: var(--text-light); }
.pae-partner p:last-child { margin-bottom: 0; }
.pae-partner a { color: var(--eyebrow); text-decoration: none; font-weight: 600; }
.pae-partner a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .pae-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
    .pae-hero h1 { font-size: 2.75rem; }
    .pae-authors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .pae-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .pae-cover { max-width: 420px; }
    .pae-hero h1 { font-size: 2.25rem; }
    .pae-standfirst { font-size: 1.0625rem; }
    .pae-quote { padding: 2rem 1.25rem; }
    .pae-quote-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .pae-quote-photo { width: 96px; height: 96px; }
    .pae-quote blockquote p { font-size: 1.125rem; }
    .pae-island { padding: 16px 14px 12px; }
    .pae-bf-head, .pae-bf-row { grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); gap: 8px; }
    .pae-bf-val { font-size: 1.0625rem; }
    .pae-bf-side { gap: 6px; }
    .pae-bf-label { font-size: 0.8125rem; }
    .pae-st { grid-template-columns: minmax(0, 1fr); }
    .pae-st-bars { height: 150px; }
    .pae-island-foot { flex-wrap: wrap; }
    .pae-partners { grid-template-columns: minmax(0, 1fr); }
    .pae-tip { display: none; }
}
@media (max-width: 560px) {
    .pae-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pae-lockup-prosus { height: 20px; top: 6px; }
    .pae-lockup-dealroom { height: 14px; }
    .pae-lockup.is-large .pae-lockup-prosus { height: 27px; top: 8px; }
    .pae-lockup.is-large .pae-lockup-dealroom { height: 19px; }
}
