.efa { color: var(--text-light); font-size: 1rem; line-height: 1.5; }
.efa > * + * { margin-top: 1.2rem; }
.efa h3, .efa h4 { margin: 0; color: var(--white); font-family: var(--font-display); line-height: 1.2; }
.efa h3 { font-size: 1.4rem; }
.efa p { margin: 0 0 .75rem; }
.efa a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .18em; }
.efa-card { padding: 1.8rem; border: 1px solid var(--border-light); border-radius: 16px; background: var(--surface-card); }
.efa-note { font-size: .875rem; color: var(--text-light); }
.efa .efa-note { margin-top: 1rem; }
.efa { --efa-callout-bg: var(--surface-card); }
.efa-europe { --efa-region: var(--blue); }
.efa-us { --efa-region: var(--series-eu); }
.efa-legend { display: none; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.2rem; font-size: .95rem; color: var(--white); }
.efa-legend > span { display: inline-flex; align-items: center; gap: .55rem; }
.efa-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--efa-region); }
.efa-legend small { color: var(--text-light); font-size: .8125rem; }
/* One grid for both groups, so a row is the same height in every stage and its label lines up on the left.
   Rows: top callout, group title, stage title, Europe, US, bottom callout. */
.efa-funnel-card { position: relative; }
.efa-funnel-groups { display: grid; grid-template-columns: fit-content(8.5rem) minmax(0, 3fr) minmax(0, 4fr); grid-template-rows: repeat(6, auto); gap: .55rem 1.5rem; }
.efa-funnel-group { display: grid; grid-row: 2 / 6; grid-template-rows: subgrid; min-width: 0; }
.efa-funnel-group + .efa-funnel-group { padding-left: 1.5rem; border-left: 1px solid var(--border-mid); }
.efa-funnel-group > h3 { margin-bottom: 1rem; font-size: 1rem; }
.efa-funnel-stages { display: grid; grid-row: 2 / 5; grid-template-rows: subgrid; grid-template-columns: repeat(var(--efa-columns), minmax(0, 1fr)); column-gap: .55rem; padding: 0; margin: 0; list-style: none; }
.efa-stage { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.efa-stage h4 { font-size: 1rem; }
.efa-stage h4 small { display: block; font: 400 .8125rem/1.4 var(--font-sans); margin-top: .3rem; color: var(--text-light); }
.efa-row-label { grid-column: 1; display: flex; flex-direction: column; justify-content: center; font: 700 1.3rem/1.15 var(--font-display); color: var(--efa-region); }
.efa-row-label small { max-width: 7.5rem; margin-top: .3rem; font: 400 .75rem/1.35 var(--font-sans); color: var(--text-light); }
.efa-row-label.efa-europe { grid-row: 4; }
.efa-row-label.efa-us { grid-row: 5; }
.efa-row-label-2 { display: none; }
.efa-stage-cell { position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; min-height: 96px; padding: .6rem .7rem; border-radius: 7px; background: var(--navy-light); font-variant-numeric: tabular-nums; }
.efa-stage-cell > i { position: absolute; inset: 0 auto 0 0; z-index: -1; opacity: .3; background: var(--efa-region); }
.efa-stage-cell b { font: 600 clamp(1.15rem, 2vw, 1.75rem)/1.2 var(--font-display); color: var(--white); }
.efa-stage-cell > small { font-size: .875rem; }
/* Callout bubbles. js/europe-funnel-callouts.js traces the outline, the loop round the number and the line
   between them by hand, and drops this plain border. */
.efa-callout { justify-self: end; width: fit-content; max-width: 100%; padding: .8rem 1.15rem 1rem; border: 1.5px solid var(--efa-region); border-radius: 10px; background: var(--efa-callout-bg); }
.efa-sketched .efa-callout { border-color: transparent; }
.efa-callout-top { grid-row: 1; grid-column: 3; margin-bottom: 1.9rem; }
.efa-callout-bottom { grid-row: 6; grid-column: 2 / -1; margin-top: 2.1rem; }
.efa .efa-callout p { margin: 0 0 .7rem; font: 700 .95rem/1.2 var(--font-display); color: var(--efa-region); }
.efa-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem clamp(1.1rem, 1.9vw, 1.7rem); margin: 0; padding: 0; list-style: none; color: var(--white); font-size: clamp(1.15rem, 1.75vw, 1.45rem); }
.efa-logos svg { display: block; width: auto; }
.efa-sketch { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.efa-sketch path { fill: none; stroke: var(--efa-region); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.efa-sketch .efa-sketch-second { stroke-width: 1; opacity: .5; }
.efa-source { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; font-size: .8125rem; color: var(--text-light); }
.efa-source img { width: 100px; height: auto; flex-shrink: 0; }
.efa-raised { min-width: 0; overflow: hidden; border: 1px solid var(--border-light); border-radius: 14px; background: var(--surface-card); }
.efa-raised-chart { display: block; width: 100%; height: 556px; border: 0; }
.efa .efa-takeaway { color: var(--white); font-weight: 500; margin: 1.2rem 0; }
.efa-table-scroll { overflow-x: auto; }
.efa-table-scroll th, .efa-table-scroll td { white-space: nowrap; }
.efa details { border-top: 1px solid var(--border-light); padding-top: 1rem; font-size: .95rem; }
.efa summary { width: fit-content; cursor: pointer; color: var(--text-light); font-size: .875rem; padding: .25rem 0; }
.efa details[open] summary { margin-bottom: 1rem; }
.efa-data-table { width: 100%; text-align: left; border-collapse: collapse; margin: 1rem 0; font-size: .875rem; }
.efa-data-table caption { text-align: left; margin-bottom: .5rem; }
.efa-data-table td, .efa-data-table th { border-bottom: 1px solid var(--border-light); padding: .5rem; }
.efa-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.efa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
body.drp-pages :is(#europe-us-funnel, #unicorn-share-by-raised) .drp-side { width: 100%; }
body.drp-pages :is(#europe-us-funnel, #unicorn-share-by-raised) .body-inner { display: block; }
body.drp-pages .efa details { display: none; }

body.drp-pages .efa-note { font-size: .8125rem; }
@media (max-width: 900px) {
  /* Groups stack: each gets its own title, stage and region rows, and its own pair of labels. */
  /* Rows: Capital raised (1–4), top callout (5), Company value (6–9), bottom callout (10). */
  .efa-funnel-groups { grid-template-columns: fit-content(7rem) minmax(0, 1fr); grid-template-rows: repeat(10, auto); column-gap: 1rem; }
  .efa-funnel-group { grid-column: 2; grid-row: 1 / 5; }
  .efa-funnel-group + .efa-funnel-group { grid-row: 6 / 10; padding: 0; border-left: 0; }
  .efa-row-label.efa-europe { grid-row: 3; }
  .efa-row-label.efa-us { grid-row: 4; }
  .efa-row-label-2 { display: flex; }
  .efa-row-label-2.efa-europe { grid-row: 8; }
  .efa-row-label-2.efa-us { grid-row: 9; }
  .efa-row-label { font-size: 1.1rem; }
  .efa-callout-top { grid-row: 5; grid-column: 2; margin: 2rem 0 1.9rem; }
  .efa-callout-bottom { grid-row: 10; grid-column: 2; }
  .efa-logos { gap: .7rem 1.4rem; font-size: 1.3rem; }
}
@media (max-width: 600px) {
  /* Phones: one row per stage, Europe and US side by side, named by the legend. */
  .efa-card { padding: 1.1rem; }
  .efa-raised-chart { height: 620px; }
  .efa-legend { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; font-size: .875rem; }
  .efa-legend small { display: block; width: 100%; padding-left: 1.25rem; font-size: .75rem; }
  /* A column: Capital raised, the Europe callout, Company value, the US callout. */
  .efa-funnel-groups { display: flex; flex-direction: column; }
  .efa-row-label { display: none; }
  .efa-funnel-group, .efa-funnel-stages, .efa-stage { display: block; }
  .efa-funnel-group { order: 1; }
  .efa-callout-top { order: 2; justify-self: auto; margin: 1.8rem 0; }
  .efa-funnel-group + .efa-funnel-group { order: 3; }
  .efa-callout-bottom { order: 4; margin-top: 1.6rem; }
  .efa-logos { gap: .7rem 1.3rem; font-size: 1.15rem; }
  .efa-funnel-group > h3 { margin-bottom: .9rem; }
  .efa-funnel-stages { display: grid; grid-template-columns: 1fr; gap: .8rem; }
  .efa-stage { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; gap: .5rem; }
  .efa-stage h4 { font-size: .95rem; }
  .efa-stage h4 small { font-size: .75rem; }
  .efa-stage-cell { min-height: 64px; }
  .efa-stage-cell b { font-size: 1.25rem; }
  .efa-stage-cell > small { font-size: .8125rem; }
  .efa-source { font-size: .75rem; }
  .efa-source img { width: 80px; }
}
@media (max-width: 360px) {
  .efa-stage-cell { padding: .45rem; }
  .efa-stage-cell b { font-size: 1.125rem; }
}
