/* Simplified startup funnel (MAR-658, MAR-659): seven log-scale bars,
   Startups → Gigacorns, with a detailed tooltip per bar. Rendered by
   js/funnel-bars.js into [data-funnel-bars]. Used on /global-startup-journey/
   and /startup-journey-europe/. */
.gf-chart { position: relative; min-height: 400px; margin-top: 1.2rem; }
.gf-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 14px; align-items: end; }
.gf-col { position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; outline: none; transition: opacity .15s ease; }
.gf-cols.is-hovering .gf-col:not(.is-on) { opacity: .45; }
.gf-col:focus-visible .gf-name { text-decoration: underline; }
.gf-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.01em; color: var(--white); white-space: nowrap; }
.gf-bar { height: var(--h); margin-top: 10px; background: var(--gf-c); }
.gf-col.is-zero .gf-bar { background: var(--border-mid); }
.gf-name { margin-top: 10px; font-weight: 700; font-size: 0.95rem; line-height: 1.25; color: var(--white); }
.gf-sub { display: block; font-weight: 400; font-size: 0.8rem; line-height: 1.3; color: var(--text-light); }
.gf-groups { display: grid; grid-template-columns: 3fr 4fr; column-gap: 14px; margin-top: 12px; }
.gf-groups span { padding-top: 6px; border-top: 2px solid var(--border-mid); font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-lighter); }
.gf-col:nth-child(1) { --gf-c: #D3DCF7; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(2) { --gf-c: #B3C2F2; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(3) { --gf-c: #92A8EC; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(4) { --gf-c: #728FE7; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(5) { --gf-c: #5677E4; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(6) { --gf-c: #3E64E0; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-col:nth-child(7) { --gf-c: #2C4CB8; } /* theme-guardrail-allow: chart data-encoding, house blue ramp */
.gf-tip {
    position: absolute; z-index: 5; width: 320px; padding: 14px 16px 12px;
    background: var(--surface-card); border: 1px solid var(--border-mid); border-radius: 10px;
    box-shadow: var(--shadow-md); font-size: 0.82rem; line-height: 1.4; color: var(--text-light);
    pointer-events: none; opacity: 0; transition: opacity .12s ease;
}
.gf-tip.is-on { opacity: 1; }
.gf-tip h4 { margin: 0; font-size: 0.95rem; color: var(--white); }
.gf-tip .gf-tip-n { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--white); }
.gf-tip .gf-tip-def { margin-top: 2px; }
.gf-tip h5 { margin: 10px 0 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--eyebrow); }
.gf-tip dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 0; }
.gf-tip dt { margin: 0; }
.gf-tip dd { margin: 0; text-align: right; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.gf-tip p { margin: 0; }
.gf-tip .gf-tip-note { margin-top: 4px; font-size: .74rem; }
@media (max-width: 760px) {
    .gf-chart { min-height: 0; }
    .gf-cols { grid-template-columns: 1fr; row-gap: 10px; }
    .gf-col { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); grid-template-areas: "num name" "num bar"; column-gap: 12px; align-items: center; }
    .gf-num { grid-area: num; font-size: 1.15rem; text-align: right; }
    .gf-name { grid-area: name; margin: 0; font-size: 0.9rem; }
    .gf-name .gf-sub { display: inline; margin-left: 6px; }
    .gf-bar { grid-area: bar; height: 18px; width: var(--w); margin: 3px 0 0; }
    .gf-col.is-zero .gf-bar { width: 3px; }
    .gf-groups { display: none; }
    .gf-tip { left: 0 !important; right: 0; width: auto; }
}
