/* Quarterly report page — /quarterly-reports/<slug>/.
   Generated pages share this sheet; do not inline it per page.
   Built by scripts/build-quarterly-reports.mjs. */
/* ---- Quarterly report page (DRAFT) -------------------------------------
   Differentiates from /cities/<slug>/ by being about a PERIOD: what moved
   this quarter, and where the location sits among peers in that quarter.
   The profile page carries the stocks (EV, funnel) and the decade of flow.

   The three round-size bands draw in one hue each (--qr-stage-*), shared by
   the stage charts, the round-size split and the peer stack. The original
   sequential ramp (--qr-band-*) is kept for the self-row tint only.
------------------------------------------------------------------------- */
:root {
    --qr-band-1: #93B4FF; /* theme-guardrail-allow: validated sequential chart ramp, no series token exists */
    --qr-band-2: #3E64E0; /* theme-guardrail-allow: validated sequential chart ramp */
    --qr-band-3: #1E3A8A; /* theme-guardrail-allow: validated sequential chart ramp */
    --qr-gap: 2px;

    /* The three round-size bands as the stage charts draw them, one hue each —
       the same trio the app's quarterly report uses (startup green, breakout
       blue, scaleup purple). Reused from the validated comparison palette below
       so the page carries one colour per band everywhere: stage chart, the
       round-size split and the peer stack. JS reads these by name. */
    --qr-stage-1: #0F9D58; /* theme-guardrail-allow: validated categorical chart palette (= --qr-series-3) */
    --qr-stage-2: #1A73E8; /* theme-guardrail-allow: validated categorical chart palette (= --qr-series-1) */
    --qr-stage-3: #9334E6; /* theme-guardrail-allow: validated categorical chart palette (= --qr-series-4) */

    /* Comparison-tool series. Deliberately not the house --series-c* set:
       validate_palette.js fails it on this surface — one slot falls under the
       chroma floor and two land below the 3:1 contrast ratio. These five pass
       all five computable checks. Kept in the token layer so a central palette
       change has one place to land and the chart cannot drift from the sheet. */
    --qr-series-1: #1A73E8; /* theme-guardrail-allow: validated categorical chart palette */
    --qr-series-2: #E8710A; /* theme-guardrail-allow: validated categorical chart palette */
    --qr-series-3: #0F9D58; /* theme-guardrail-allow: validated categorical chart palette */
    --qr-series-4: #9334E6; /* theme-guardrail-allow: validated categorical chart palette */
    --qr-series-5: #C5221F; /* theme-guardrail-allow: validated categorical chart palette */

    /* Ecosystem value by ownership, for locations worth $100B+. The hues of
       the /adams-street/ ownership chart (private blue, acquired violet,
       public orange), taken from the validated tokens above and spaced in
       lightness so the stack reads without colour. JS reads these by name. */
    --qr-own-private: #1E3A8A; /* theme-guardrail-allow: validated chart ramp (= --qr-band-3) */
    --qr-own-acquired: #9334E6; /* theme-guardrail-allow: validated categorical chart palette (= --qr-series-4) */
    --qr-own-public: #E8710A; /* theme-guardrail-allow: validated categorical chart palette (= --qr-series-2) */
}
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--white); }
/* The site nav is fixed and 64px tall; without this the crumbs sat under it
   and the eyebrow row looked glued to the nav. */
.qr-wrap { max-width: 1100px; margin: 0 auto; padding: 64px 1.5rem 5rem; }

.qr-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0 1.25rem; }
.qr-crumbs { margin: 0; font-size: .85rem; color: var(--text-faint); }
.qr-crumbs a { color: var(--text-faint); text-decoration: none; }
.qr-crumbs a:hover { text-decoration: underline; }

.qr-head { display: none; }
.qr-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
/* Sponsor lockup. The logo sits on the page surface with no tile — the
   --white token is semantic ink here and would frame it darkly. */
.qr-sponsor { display: flex; align-items: center; gap: .6rem; flex: none; }
.qr-sponsor-label { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.qr-sponsor img { max-height: 42px; max-width: 170px; width: auto; display: block; }
/* Header tools: the location switcher and, where there is one, the sponsor. */
.qr-head-tools { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.qr-switch { position: relative; }
.qr-switch-icon { position: absolute; left: .75rem; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.qr-switch-input {
    font: 500 .85rem/1 var(--font-sans); width: 210px; padding: .55rem .9rem .55rem 2.1rem;
    border-radius: 999px; border: 1px solid var(--border-light); background: var(--surface-card); color: var(--white);
    -webkit-appearance: none; appearance: none;
}
.qr-switch-input::placeholder { color: var(--text-faint); }
.qr-switch-input:focus { outline: none; border-color: var(--eyebrow); box-shadow: var(--vc-control-focus-shadow); }
.qr-switch-menu {
    position: absolute; right: 0; top: 100%; z-index: 30; margin: .35rem 0 0; padding: .3rem; list-style: none;
    width: 300px; max-height: 330px; overflow-y: auto; border-radius: 10px;
    border: 1px solid var(--border-mid); background: var(--surface-card); box-shadow: var(--shadow-md);
}
.qr-switch-menu[hidden] { display: none; }
.qr-switch-opt { display: flex; align-items: baseline; gap: .5rem; padding: .5rem .65rem; border-radius: 7px; cursor: pointer; font-size: .9rem; }
.qr-switch-opt.is-hi, .qr-switch-opt:hover { background: var(--chart-band); }
.qr-switch-flag { flex: none; }
.qr-switch-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-switch-meta { margin-left: auto; flex: none; font-size: .74rem; color: var(--text-faint); }
.qr-switch-empty { padding: .6rem .65rem; font-size: .85rem; color: var(--text-faint); }

.qr-eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--eyebrow); }
.qr-h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.qr-standfirst { margin: .9rem 0 0; max-width: 64ch; color: var(--text-light); font-size: 1.02rem; }
.qr-profile-link { margin: .6rem 0 0; font-size: .9rem; }
.qr-profile-link a { color: var(--text-light); text-decoration: none; }
.qr-profile-link a:hover { color: var(--eyebrow); text-decoration: underline; }

/* Hero number — a single headline is a stat tile, not a chart. */
/* Identity card: flag, name, type and quarter. The second column is reserved
   for the location map, which follows. */
.qr-id-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.qr-id-grid.has-map { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.qr-map-card { padding: 0; overflow: hidden; background: var(--chart-band); min-height: 240px; display: flex; }
.qr-map { display: block; width: 100%; height: 100%; min-height: 240px; }
.qr-map-land path { fill: #FFFFFF; stroke: #D5DCE6; stroke-width: .8; } /* theme-guardrail-allow: map paper and coastline, light canvas only */
.qr-map-lit path { fill: #3E64E0; fill-opacity: .82; stroke: #FFFFFF; stroke-width: .8; } /* theme-guardrail-allow: map highlight on the light canvas */
.qr-map-pin circle { fill: #3E64E0; } /* theme-guardrail-allow: pin on the map canvas */
.qr-map-pin .qr-map-pin-halo { fill: var(--surface-card); fill-opacity: .95; stroke: var(--eyebrow); stroke-width: 2; }
@media (max-width: 760px) { .qr-id-grid.has-map { grid-template-columns: 1fr; } .qr-map-card { min-height: 200px; } .qr-map { min-height: 200px; } }
.qr-id { padding: 1.75rem 2rem; }
.qr-id-row { display: flex; align-items: center; gap: 1.25rem; }
.qr-id-flag { font-size: 3.2rem; line-height: 1; flex: none; }
.qr-id-meta { margin: .45rem 0 0; display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--text-light); }
.qr-id-type { padding: .18rem .6rem; border-radius: 999px; background: var(--chart-band); color: var(--eyebrow); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.qr-id-dot { color: var(--border-mid); }
.qr-id-meta .qr-eyebrow { margin: 0; color: var(--text-light); letter-spacing: .04em; font-size: .8rem; }
.qr-id-facts { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border-light); color: var(--text-light); font-size: .95rem; }
.qr-id-facts:empty { display: none; }
.qr-id-links { margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.qr-id-links:empty { display: none; }
.qr-id-links a { color: var(--eyebrow); text-decoration: none; font-weight: 600; }
.qr-id-links a:hover { text-decoration: underline; }
/* The three numbers. */
.qr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.qr-stat { padding: 1.5rem 1.75rem; }
.qr-stat-label { display: block; font: 600 .7rem/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.qr-stat-row { margin: .75rem 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .75rem; }
.qr-stat-sub { display: block; margin-top: .6rem; font-size: .9rem; line-height: 1.4; color: var(--text-light); }
.qr-stat-sub .qr-up, .qr-stat-sub .qr-down, .qr-stat-sub .qr-flat { font-weight: 600; }
.qr-kpi[hidden] { display: none; }
/* The older tile rule sized this at 1.55rem; in a stat card it is the figure. */
.qr-stat .qr-kpi-val { margin: 0; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; white-space: normal; }
.qr-stat .qr-kpi-sub { margin-top: .6rem; font-size: .9rem; }
.qr-hero { display: none; }
.qr-figure { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qr-figure-cap { margin: .6rem 0 0; color: var(--text-light); font-size: 1.02rem; }
.qr-deltas { display: inline-flex; gap: .4rem; }
.qr-delta { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--chart-band); }
.qr-delta.qr-up { background: rgba(15, 157, 88, .12); } /* theme-guardrail-allow: 12% tint of the --qr-series-3 green behind the change chip, light canvas only */
.qr-delta.qr-down { background: rgba(197, 34, 31, .1); } /* theme-guardrail-allow: 10% tint of the --qr-series-5 red behind the change chip, light canvas only */
/* KPI strip under the headline. Tiles stay hidden until their data lands. */
.qr-kpis { display: none; }
.qr-kpi { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--border-light); background: var(--surface-card); }
.qr-kpi[hidden] { display: none; }
.qr-kpi-label { display: block; font: 600 .68rem/1.3 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.qr-kpi-val { display: block; margin-top: .35rem; font: 700 1.55rem/1.1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-kpi-sub { display: block; margin-top: .3rem; font-size: .8rem; line-height: 1.35; color: var(--text-light); }
.qr-kpi-sub .qr-up, .qr-kpi-sub .qr-down, .qr-kpi-sub .qr-flat { font-weight: 600; }

.qr-up { color: var(--status-positive); }
.qr-down { color: var(--status-negative); }
.qr-flat { color: var(--text-light); }

.qr-sec { padding: 2.75rem 0 0; }
.qr-sec h2 { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.qr-sec p.sub { margin: 0 0 1.5rem; max-width: 62ch; color: var(--text-light); font-size: .95rem; }
/* Square corners on every chart surface: Boris's call, 12 Oct 2026. */
.qr-card { border: 1px solid var(--border-light); border-radius: 0; background: var(--surface-card); padding: 1.5rem; }

/* Legend — always present for >=2 series. */
.qr-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0 0 1.25rem; font-size: .85rem; color: var(--text-light); }
.qr-legend span.k { display: inline-flex; align-items: center; gap: .4rem; }
.qr-swatch { width: 11px; height: 11px; }

/* ---- Chart grid --------------------------------------------------------
   The five cards the app's quarterly report opens with: VC funding (quarterly
   or annual), combined enterprise value, and one chart per round-size band.
   Inline SVG drawn by js/quarterly-report-page.js at the card's width, so the
   axis type stays the same size whatever the plot. */
.qd .sub { max-width: 70ch; }
.qd-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.qd-card { grid-column: span 2; display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--shadow-sm); }
.qd-wide { grid-column: span 4; }
.qd-ev { grid-column: span 6; }
.qd-full { width: 100%; }
.qd-ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
/* The leaders column only exists once the list has rows; without it the chart runs full width. */
.qd-ev-grid.has-leaders { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.qd-leaders[hidden] { display: none; }
.qd-leaders-title { margin: .1rem 0 .6rem; font: 700 .95rem/1.3 var(--font-sans); }
.qd-leaders-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.qd-leaders-list li { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem; align-items: center; column-gap: .6rem; }
.qd-leader-main { min-width: 0; }
.qd-leader-name { display: block; font: 600 .875rem/1.3 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-leader-name a { color: inherit; text-decoration: none; }
.qd-leader-name a:hover { color: var(--eyebrow); text-decoration: underline; }
.qd-leader-track { display: block; height: 4px; margin-top: .25rem; background: var(--chart-band); overflow: hidden; }
.qd-leader-track i { display: block; height: 100%; background: var(--eyebrow); }
.qd-leader-val { font: 700 .9rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.qd-leaders-foot { margin: .7rem 0 0; font-size: .78rem; color: var(--text-faint); }
@media (max-width: 900px) { .qd-ev-grid.has-leaders { grid-template-columns: 1fr; } }
.qd-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: -.3rem 0 1rem; }
.qd-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.qd-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.qd-split[hidden], .qd-stack[hidden] { display: none; }
.qd-panel { min-width: 0; }
.qd-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.qd-panel-title { display: inline-flex; align-items: center; gap: .4rem; font: 600 .85rem/1.3 var(--font-sans); }
.qd-panel-title small { font-weight: 400; color: var(--text-faint); }
.qd-panel-swatch { width: 10px; height: 10px; flex: none; }
.qd-plot-sm { min-height: 180px; }
/* First draw: the bars rise from the axis. */
@keyframes qd-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.qd-anim .qd-bar { transform-box: fill-box; transform-origin: bottom; animation: qd-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .qd-anim .qd-bar { animation: none; } }
/* View switch (morphView in js/quarterly-report-page.js): the leaving view is
   lifted out of the flow to fade, both views' bars are hidden, and divs on an
   overlay carry each segment from one view to the other. */
.qd-card { position: relative; }
.qd-ghost { position: absolute; margin: 0; pointer-events: none; }
.qd-ghost .qd-bar, .qd-morphing .qd-bar { visibility: hidden; }
.qd-morphing { align-content: start; }
.qd-morph { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.qd-morph i { position: absolute; transform-origin: 0 0; }
@media (max-width: 760px) { .qd-split { grid-template-columns: 1fr; } }
.qd-sizes-label { font: 600 .72rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-right: .3rem; }
.qd-stack { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.qd-legend { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: .3rem; min-width: 8.5rem; }
.qd-legend li { display: flex; align-items: center; gap: .4rem; font-size: .8rem; white-space: nowrap; }
.qd-legend li.is-off { opacity: .45; }
.qd-legend-dot { width: 9px; height: 9px; flex: none; }
.qd-legend-label { font-weight: 700; }
.qd-legend-val { color: var(--text-light); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .qd-stack { grid-template-columns: 1fr; }
    .qd-legend { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Ecosystem value by ownership: the legend is one row above the bars. */
.qd-ev-chart { min-width: 0; display: flex; flex-direction: column; }
.qd-ev-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0 0 .5rem; min-width: 0; }
.qd-ev-legend[hidden] { display: none; }
/* Room on the right for the PNG button js/agent-charts.js injects. */
.qd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-right: 2.75rem; margin-bottom: 1.1rem; }
.qd-title { margin: 0; font: 700 1.3rem/1.15 var(--font-display); letter-spacing: -.01em; color: var(--white); }
.qd-kicker { margin: .35rem 0 0; font: 600 .7rem/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.qd-toggle { display: inline-flex; flex: none; padding: .2rem; border-radius: 999px; background: var(--chart-band); border: 1px solid var(--border-light); }
.qd-toggle button {
    font: 600 .8rem/1 var(--font-sans); padding: .42rem .85rem; border: 0; border-radius: 999px;
    background: transparent; color: var(--text-light); cursor: pointer;
}
.qd-toggle button.is-on { background: var(--surface-card); color: var(--white); box-shadow: var(--shadow-sm); }
.qd-toggle button:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 1px; }
.qd-stat { flex: none; text-align: right; }
.qd-stat strong { display: block; font: 700 1.2rem/1.1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.qd-stat span { display: block; margin-top: .2rem; font-size: .74rem; color: var(--text-faint); white-space: nowrap; }
.qd-stat .qr-up, .qd-stat .qr-down, .qd-stat .qr-flat { font-weight: 600; }
.qd-stat span span { display: inline; margin: 0; }
.qd-avg { fill: none; stroke: var(--white); stroke-opacity: .5; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: butt; }
.qd-avg-key { display: inline-block; width: 16px; border-top: 2px solid var(--white); opacity: .5; vertical-align: middle; margin-right: .1rem; }
.qd-plot { flex: 1; min-height: 230px; }
.qd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.qd-gridline { stroke: var(--chart-grid); stroke-dasharray: 2 4; }
.qd-tick { font: 11px var(--font-sans); fill: var(--text-faint); }
/* Halo so the label stays legible when the neighbouring bar is taller. */
.qd-val { font: 600 11.5px var(--font-sans); fill: var(--white); stroke: var(--surface-card); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
/* The headline callout over the last bar of the stacked chart. */
.qd-call { pointer-events: none; }
.qd-call text { stroke: var(--surface-card); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.qd-call-q { font: 600 10.5px var(--font-sans); letter-spacing: .06em; fill: var(--eyebrow); }
.qd-call-v { font: 700 24px var(--font-display); letter-spacing: -.01em; fill: var(--white); }
.qd-call-d { font: 600 11.5px var(--font-sans); fill: var(--text-light); }
.qd-call-chg.qr-up { fill: var(--status-positive); }
.qd-call-chg.qr-down { fill: var(--status-negative); }
.qd-call-chg.qr-flat { fill: var(--text-light); }
.qd-call-line { stroke: var(--text-faint); stroke-width: 1; }
.qd-hit { fill: transparent; outline: none; }
.qd-hit:focus-visible { stroke: var(--eyebrow); stroke-width: 1.5; }
.qd-slot.is-dim .qd-bar { opacity: .45; }
.qd-slot.is-dim:hover .qd-bar { opacity: .35; }
.qd-line { fill: none; stroke-width: 2.5; stroke-linejoin: miter; stroke-linecap: butt; }
.qd-source { margin: .9rem 0 0; font-size: .78rem; color: var(--text-faint); }
@media (max-width: 900px) {
    .qd-wide, .qd-ev { grid-column: span 6; }
    .qd-stage { grid-column: span 2; }
    .qd-card { padding: 1rem 1rem .9rem; }
    .qd-title { font-size: 1.15rem; }
}
@media (max-width: 640px) {
    .qd-stage { grid-column: span 6; }
    .qd-plot { min-height: 200px; }
    .qd-head { flex-wrap: wrap; padding-right: 0; }
    .qd-toggle { order: 2; }
}

/* Round size and sector, side by side. */
/* Both cards stretch to the taller one, and each note sits on the bottom
   edge, so the pair reads as one row rather than a tall card and a short one. */
.qr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.qr-two .qr-card { box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.qr-two .qd-head { padding-right: 2.75rem; }
.qr-two .qr-note { margin-top: auto; padding-top: 1rem; }
.qr-toplist { display: grid; gap: .85rem; }
.qr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: baseline; outline: none; cursor: default; }
.qr-top:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 3px; }
.qr-top-name { font-size: .9rem; font-weight: 500; color: var(--white); }
.qr-top-val { font: 700 .9rem/1 var(--font-display); color: var(--eyebrow); white-space: nowrap; }
.qr-top-track { grid-column: 1 / -1; height: 8px; background: var(--chart-band); overflow: hidden; }
.qr-top-track i { display: block; height: 100%; background: var(--eyebrow); transition: opacity .15s; }
.qr-toplist:hover .qr-top:not(:hover) .qr-top-track i { opacity: .45; }
@media (max-width: 720px) { .qr-top-more { display: none; } }

/* Round-size split for the subject location. */
.qr-band-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.qr-band-dot { width: 10px; height: 10px; flex: none; }
.qr-band-label { font-weight: 600; }
.qr-band-sub { font-size: .82rem; color: var(--text-faint); }
.qr-band-share { margin-left: auto; font-size: .82rem; color: var(--text-faint); }
.qr-band-track { height: 10px; background: var(--chart-band); overflow: hidden; }
.qr-band-fill { height: 100%; }
.qr-band-figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; margin-top: .4rem; font-size: .85rem; color: var(--text-faint); }
.qr-band-sep { color: var(--border-mid); }
.qr-band-delta { font-weight: 600; }
.qr-band-then { color: var(--text-faint); }
.qr-band-figs strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }

/* Peer comparison — ranked, stacked, with movement. The differentiated view. */
.qr-rows { display: grid; gap: .55rem; }
.qr-row { display: grid; grid-template-columns: 150px minmax(0,1fr) 92px 58px; align-items: center; gap: .75rem; padding: .3rem .4rem; }
.qr-row.is-self { background: color-mix(in srgb, var(--eyebrow) 9%, transparent); } /* theme-guardrail-allow: tint of a theme token, not a new colour */
.qr-name { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-row.is-self .qr-name { font-weight: 700; }
.qr-bar { display: flex; height: 20px; }
.qr-bar i { display: block; height: 100%; background: color-mix(in srgb, var(--eyebrow) 32%, var(--surface-card)); } /* theme-guardrail-allow: tint of a theme token, not a new colour */
.qr-row.is-self .qr-bar i { background: var(--eyebrow); }
.qr-bar i + i { margin-left: var(--qr-gap); }

.qr-val { font-family: var(--font-display); font-size: .95rem; font-weight: 600; text-align: right; }
.qr-move { font-size: .82rem; font-weight: 600; text-align: right; white-space: nowrap; }

.qr-note { margin: 1.25rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border-light); font-size: .8rem; color: var(--text-faint); }
.qr-loading, .qr-error { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-faint); }

/* Table view — the accessibility fallback the contrast WARN obliges. */
.qr-table-toggle { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--eyebrow); background: none; border: 0; padding: 0; cursor: pointer; }
.qr-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .85rem; }
.qr-table th, .qr-table td { text-align: right; padding: .45rem .6rem; border-bottom: 1px solid var(--border-light); }
.qr-table th:first-child, .qr-table td:first-child { text-align: left; }
.qr-table th { color: var(--text-faint); font-weight: 600; }

.qr-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--chart-tooltip-bg); color: var(--chart-tooltip-ink); padding: .5rem .65rem; font-size: .8rem; line-height: 1.4; opacity: 0; transition: opacity .12s; max-width: 240px; }
.qr-tip.on { opacity: 1; }

@media (max-width: 900px) {
    .qr-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .qr-head-row { flex-wrap: wrap; }
    .qr-head-tools { width: 100%; justify-content: space-between; }
    .qr-switch { flex: 1; }
    .qr-switch-input { width: 100%; }
    .qr-switch-menu { left: 0; right: auto; width: min(300px, 100%); }
    .qr-stats { grid-template-columns: 1fr; }
    .qr-id { padding: 1.25rem; }
    .qr-id-flag { font-size: 2.4rem; }
    .qr-topbar { flex-wrap: wrap; }
    .qr-row { grid-template-columns: 108px minmax(0,1fr) 74px; }
    .qr-move { display: none; }
}

/* ---- Comparison tool (js/quarterly-compare.js) -------------------------
   Pick up to five locations and a metric. Mixing tiers is allowed; the tier
   filter makes it a choice rather than an accident. */
.qc { margin: 1.5rem 0 0; }
.qc-controls { display: grid; gap: .9rem; }
.qc-tiers, .qc-metrics, .qc-sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.qc-sizes { align-items: center; }
.qc-sizes-label { font: 600 .72rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-right: .3rem; }
.qc-tier, .qc-metric, .qc-size, .qd-size {
    font: inherit; font-size: .84rem; font-weight: 600;
    padding: .34rem .75rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border-light); background: var(--surface-card); color: var(--text-light);
}
.qc-tier:hover, .qc-metric:hover, .qc-size:hover, .qd-size:hover { border-color: var(--border-mid); }
.qc-tier.is-on, .qc-metric.is-on, .qc-size.is-on, .qd-size.is-on { background: var(--eyebrow); border-color: var(--eyebrow); color: var(--chart-tooltip-ink); }
.qc-picker { position: relative; }
.qc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .5rem; }
.qc-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .4rem .3rem .6rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
    border: 1px solid var(--border-light); background: var(--surface-card);
}
.qc-chip-dot { width: 9px; height: 9px; background: var(--c); flex: none; }
.qc-chip-x {
    font: inherit; line-height: 1; cursor: pointer; border: 0; background: none;
    color: var(--text-faint); padding: 0 .2rem; font-size: 1.05rem;
}
.qc-chip-x:hover { color: var(--white); }
.qc-input {
    font: inherit; width: 100%; padding: .6rem .8rem; border-radius: 8px;
    border: 1px solid var(--border-mid); background: var(--surface-card); color: var(--white);
}
.qc-input:focus { outline: 2px solid var(--eyebrow); outline-offset: 1px; }
.qc-input:disabled { color: var(--text-faint); }
.qc-menu {
    position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .25rem;
    list-style: none; max-height: 290px; overflow-y: auto; border-radius: 8px;
    border: 1px solid var(--border-mid); background: var(--surface-card);
    box-shadow: var(--shadow-md);
}
.qc-opt { display: flex; align-items: baseline; gap: .55rem; padding: .45rem .6rem; cursor: pointer; }
.qc-opt.is-hi { background: var(--chart-band); }
.qc-opt-name { font-weight: 500; }
.qc-opt-meta { font-size: .78rem; color: var(--text-faint); margin-left: auto; }
.qc-warn { margin: .9rem 0 0; font-size: .86rem; color: var(--text-light); }
.qc-plot { margin-top: 1.1rem; }
.qc-svg { width: 100%; height: auto; overflow: visible; }
.qc-grid { stroke: var(--chart-grid); stroke-width: 1; }
.qc-ytick, .qc-xtick { font-size: 11px; fill: var(--text-faint); }
.qc-line { fill: none; stroke-width: 2; stroke-linejoin: miter; stroke-linecap: butt; }
.qc-dlabel { font-size: 12px; font-weight: 600; }
.qc-empty { padding: 2.5rem 0; text-align: center; color: var(--text-faint); }
.qc-note { margin: 1rem 0 0; font-size: .8rem; color: var(--text-faint); }
.qc-data { margin-top: 1.1rem; border-top: 1px solid var(--border-light); }
.qc-data-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; cursor: pointer; list-style: none; font-size: .85rem; }
.qc-data-summary::-webkit-details-marker { display: none; }
.qc-data-title { color: var(--text-faint); }
.qc-data-cta { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--eyebrow); white-space: nowrap; }
.qc-data-cta::after { content: ''; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .15s; }
.qc-data[open] .qc-data-cta::after { transform: translateY(.1em) rotate(-135deg); }
.qc-data-hide, .qc-data[open] .qc-data-show { display: none; }
.qc-data[open] .qc-data-hide { display: inline; }
.qc-data-summary:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; border-radius: 4px; }
.qc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qc-table { width: 100%; border-collapse: collapse; margin: 0 0 .6rem; font-size: .8rem; }
.qc-table th, .qc-table td { text-align: right; padding: .35rem .45rem; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.qc-table th:first-child, .qc-table td:first-child { text-align: left; }
.qc-table th { color: var(--text-faint); font-weight: 600; }
@media (max-width: 760px) {
    .qc-table { display: block; overflow-x: auto; }
}

/* ---- Hub directory ------------------------------------------------------
   One tier at a time. Six stacked sections made 423 cards read as one wall;
   a tab row lets a reader land on their own tier, and the search is global so
   nobody has to know whether Lyon is filed as a metro or a city. Panels are
   all in the DOM so every report link is still crawled. */
.qh { padding-top: 2.75rem; }
.qh-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 1rem; margin-bottom: 1rem;
}
.qh-tabs {
    display: flex; gap: .25rem; padding: .25rem;
    border-radius: 999px; background: var(--chart-band);
    max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.qh-tabs::-webkit-scrollbar { display: none; }
.qh-tab {
    flex: none; padding: .45rem .85rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 500 .875rem/1 var(--font-sans); color: var(--text-light); background: transparent;
    white-space: nowrap; transition: background .12s ease, color .12s ease;
}
.qh-tab span { margin-left: .3rem; font-size: .75rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.qh-tab:hover { color: var(--white); }
.qh-tab.is-on { background: var(--surface-card); color: var(--white); font-weight: 600; box-shadow: var(--shadow-sm); }
.qh-tab:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }

.qh-search {
    display: flex; align-items: center; gap: .5rem; flex: 1 1 240px; max-width: 320px;
    padding: .5rem .85rem; border-radius: 999px;
    border: 1px solid var(--border-light); background: var(--surface-card); color: var(--text-faint);
}
.qh-search:focus-within { border-color: var(--eyebrow); box-shadow: var(--vc-control-focus-shadow); }
.qh-search-icon { display: inline-flex; }
.qh-search-input {
    flex: 1 1 auto; min-width: 0; border: 0; padding: 0; background: transparent;
    font: 500 .9rem/1.2 var(--font-sans); color: var(--white); outline: none;
}
.qh-search-input::-webkit-search-cancel-button { cursor: pointer; }
.qh-status { min-height: 1.2em; margin: 0 0 .5rem; font-size: .85rem; color: var(--text-light); }

.qh-panel-sub { margin: 0 0 1rem; font-size: .9rem; color: var(--text-light); }
.qh.is-searching .qh-panel-sub { display: none; }
.qh.is-searching .qh-panel { margin-top: .5rem; }
/* While searching, each tier that has a match keeps its name so the reader
   knows which kind of location they found. */
.qh.is-searching .qh-panel::before {
    content: attr(data-qh-panel); display: block; margin: .5rem 0 .6rem;
    font: 600 .75rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint);
}
.qh.is-searching .qh-panel[data-qh-panel="city_region"]::before { content: 'Metros'; }
.qh.is-searching .qh-panel[data-qh-panel="city"]::before { content: 'Cities'; }
.qh.is-searching .qh-panel[data-qh-panel="state"]::before { content: 'States'; }
.qh.is-searching .qh-panel[data-qh-panel="country"]::before { content: 'Countries'; }
.qh.is-searching .qh-panel[data-qh-panel="country_region"]::before { content: 'Regions'; }
.qh.is-searching .qh-panel[data-qh-panel="continent"]::before { content: 'Continents'; }

.qh-grid {
    display: grid; gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.qh-panel.is-collapsed .qh-grid > .qh-card:nth-child(n+25) { display: none; }
.qh-grid > .qh-card[hidden] { display: none; }

/* The card. One number, how it moved, and a three-bar sketch of the last
   year — the quarter's story, not a directory entry. */
.qh-card {
    display: flex; flex-direction: column; gap: .7rem; position: relative;
    padding: 1rem 1.1rem 1rem;
    background: var(--surface-card); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    color: inherit; text-decoration: none;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.qh-card:hover { border-color: var(--eyebrow); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.qh-card:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }
.qh-card.is-quiet { opacity: .7; }

.qh-card-head { display: flex; align-items: center; gap: .5rem; min-height: 1.6rem; }
.qh-card-flag { font-size: 1.25rem; line-height: 1; flex: none; }
.qh-card-flag:empty { display: none; }
.qh-card-name {
    font: 600 1.05rem/1.25 var(--font-display); color: var(--white);
    margin-right: auto; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.qh-card-rank {
    flex: none; padding: .2rem .5rem; border-radius: 999px;
    font: 600 .7rem/1 var(--font-sans); letter-spacing: .03em; font-variant-numeric: tabular-nums;
    color: var(--text-light); background: var(--chart-band);
}
.qh-card:hover .qh-card-rank { color: var(--eyebrow); background: var(--mint-soft); }

.qh-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.qh-card-num {
    display: block; font: 700 1.75rem/1 var(--font-display); letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; color: var(--white);
}
.qh-card-label { display: block; margin-top: .3rem; font-size: .78rem; color: var(--text-faint); }
.qh-spark { flex: none; display: block; margin-bottom: .15rem; }
.qh-spark rect { fill: var(--chart-band-border); }
.qh-spark rect.now { fill: var(--eyebrow); }

.qh-card-foot { display: flex; flex-wrap: wrap; gap: .3rem .75rem; padding-top: .7rem; border-top: 1px solid var(--border-light); }
.qh-delta { font-size: .78rem; color: var(--text-faint); white-space: nowrap; }
.qh-delta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qh-delta-up b { color: var(--status-positive); }
.qh-delta-down b { color: var(--status-negative); }
.qh-delta-flat b { color: var(--text-light); }
.qh-delta-na { font-style: italic; }

.qh-card-tag {
    position: absolute; top: -.55rem; right: .9rem;
    padding: .2rem .55rem; border-radius: 999px;
    font: 600 .65rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase;
    color: var(--eyebrow); background: var(--surface-card); border: 1px solid var(--eyebrow);
}

.qh-more {
    display: inline-flex; align-items: center; gap: .4rem;
    margin: 1.1rem 0 0; padding: .55rem 1rem;
    font: 500 .875rem/1 var(--font-sans);
    color: var(--eyebrow); background: var(--surface-card);
    border: 1px solid var(--border-light); border-radius: 999px;
    cursor: pointer;
}
.qh-more:hover { border-color: var(--eyebrow); }
.qh-more[hidden] { display: none; }
.qh-more:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }
.qh-note { margin-top: 1.5rem; }

@media (max-width: 640px) {
    .qh-bar { align-items: stretch; }
    .qh-search { max-width: none; }
    .qh-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .qh-card { padding: .85rem .9rem; }
    .qh-card-num { font-size: 1.45rem; }
    .qh-spark { width: 42px; height: 22px; }
}
@media (max-width: 420px) {
    .qh-grid { grid-template-columns: 1fr; }
}

/* Inside-the-country ranking. Static rows, so no loading state and no
   disagreement with the hub cards they are built from. */
.qs-tabs, .qs-metrics { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.qs-metrics { margin-top: -.4rem; }
.qs-tab, .qs-metric {
    padding: .35rem .75rem; border-radius: 999px; cursor: pointer;
    font: 500 .8125rem/1 var(--font-sans);
    color: var(--text-light); background: transparent;
    border: 1px solid var(--border-light);
}
.qs-tab span { opacity: .55; margin-left: .25rem; }
.qs-tab:hover, .qs-metric:hover { border-color: var(--eyebrow); }
.qs-tab.is-on, .qs-metric.is-on { color: var(--eyebrow); border-color: var(--eyebrow); font-weight: 600; }
.qs-tab:focus-visible, .qs-metric:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }

.qs-list { list-style: none; margin: 0; padding: 0; }
.qs-row {
    display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center;
    gap: .75rem; padding: .5rem .6rem;
}
.qs-row + .qs-row { margin-top: 2px; }
.qs-row:nth-child(odd) { background: var(--chart-band, transparent); }
/* The reader's own location is why this section defaults to their tier. */
.qs-row.is-self { background: var(--qr-band-1); font-weight: 600; }
.qs-rank { font: 600 .8125rem/1 var(--font-mono); color: var(--text-light); text-align: right; }
.qs-name { color: inherit; text-decoration: none; font-size: .9375rem; }
.qs-name:hover { text-decoration: underline; }
.qs-val { font: 600 .9375rem/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* Getting back out. The breadcrumb is the only route to the hub and it sits
   above five sections, so by the time a reader reaches the end of a report the
   browser's back button is the only way out. */
.qr-return {
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    align-items: center; justify-content: space-between;
    margin: 2.5rem 0 1rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.qr-return a {
    font: 500 .9375rem/1 var(--font-sans);
    color: var(--eyebrow); text-decoration: none;
}
.qr-return a:hover { text-decoration: underline; }
.qr-return-alt { color: var(--text-light); }

/* Emoji flag. Decorative — the country name is right beside it, and the span
   is aria-hidden so a screen reader does not read "flag of France, France". */
.qs-flag { font-size: 1.05em; line-height: 1; margin-right: .1em; }

/* Share row. Sits with the return nav at the foot, because that is where a
   reader who has actually read the quarter ends up. */
.qr-share { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 2.5rem; }
.qr-share-label { font: 500 .9375rem/1 var(--font-sans); color: var(--text-light); margin-right: .25rem; }
.qr-share-btn {
    padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
    font: 500 .875rem/1 var(--font-sans);
    color: var(--eyebrow); background: transparent; border: 1px solid var(--border-light);
}
.qr-share-btn:hover { border-color: var(--eyebrow); }
.qr-share-btn:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }

/* Country flag at the top of a report. Its own for a country, its parent's for
   anything inside one; a continent or multi-country region gets none. */
.qr-head-flag { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 0; }
.qr-head-flag span[aria-hidden] { font-size: 2rem; line-height: 1; }
.qr-head-flag-name { font: 500 .9375rem/1 var(--font-sans); color: var(--text-light); }

/* The quarter's biggest rounds. Hidden until the fetch lands, because a
   location can have no round with a disclosed amount. */
.qd-rounds { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border-light); }
.qd-rounds[hidden] { display: none; }
.qd-rounds-title { margin: 0 0 .6rem; font: 700 .95rem/1.3 var(--font-sans); }
.qt-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.qt-table th { text-align: left; padding: .35rem .5rem; font: 600 .68rem/1.3 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.qt-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; white-space: nowrap; }
.qt-table tr:last-child td { border-bottom: 0; }
.qt-c-name { font-weight: 600; }
/* Profile links on company and investor names: ink until hovered. */
a.pl { color: inherit; text-decoration: none; }
a.pl:hover, a.pl:focus-visible { color: var(--eyebrow); text-decoration: underline; }
/* Every row is one line: the investors / acquirer cell takes the room that is
   left and ends in an ellipsis rather than wrapping. */
.qt-table .qt-c-inv { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-light); }
.qt-c-round { text-align: right; }
.qt-flag { font-size: 1.05em; }
/* Company logo before the name, on the page's logo tile. */
.qt-co { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.qt-co-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-logo { flex: none; display: block; box-sizing: border-box; width: 20px; height: 20px; padding: 1px; border-radius: 4px; background: var(--logo-tile-bg); border: 1px solid var(--logo-tile-border); object-fit: contain; }
.qt-c-round strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    /* Phones keep the company and the amount, the two things read first. */
    .qt-table th.qt-c-inv, .qt-table td.qt-c-inv, .qt-table .qt-c-sector { display: none; }
    .qt-table { display: block; overflow-x: auto; font-size: .8rem; }
    .qt-table th, .qt-table td { padding-left: .35rem; padding-right: .35rem; }
    /* The name gives way before the amount does. */
    .qt-table td.qt-c-name { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.qt-list { list-style: none; margin: 0; padding: 0; }
.qt-row { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: .75rem;
          padding: .65rem .6rem; }
.qt-row + .qt-row { border-top: 1px solid var(--border-light); }
.qt-rank { font: 600 .8125rem/1 var(--font-mono); color: var(--text-light); text-align: right; }
.qt-name { font: 600 .9375rem/1.3 var(--font-sans); }
.qt-meta { display: block; font: 400 .8125rem/1.4 var(--font-sans); color: var(--text-light); margin-top: .15rem; }
.qt-amt { font: 700 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* Sector tag on a round. The site's simplified taxonomy, so the same 18 names
   a reader meets everywhere else on dealroom.co. */
.qt-tag {
    display: inline-block; margin-right: .45rem; padding: .1rem .45rem;
    border: 1px solid var(--border-light);
    font: 600 .6875rem/1.5 var(--font-sans); text-transform: uppercase;
    letter-spacing: .04em; color: var(--eyebrow); vertical-align: 1px;
}

/* The "five is the maximum" row in the comparison picker: a message, not a
   choice, so it must not look clickable. */
.qc-opt.is-note { cursor: default; opacity: .75; }
.qc-opt.is-note:hover { background: transparent; }

/* --- regional comparison (the app report's card) --- */
.qrc .qd-head { align-items: flex-start; padding-right: 2.75rem; }
.qrc-metric { position: relative; z-index: 3; }
.qrc-metric-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 11rem; padding: .5rem .75rem; font: 600 .82rem/1 var(--font-sans); color: var(--white); background: var(--surface-card); border: 1px solid var(--border-mid); cursor: pointer; }
.qrc-metric-btn:hover, .qrc-menu-open .qrc-metric-btn { border-color: var(--eyebrow); color: var(--eyebrow); }
.qrc-metric-btn svg { transition: transform .2s; }
.qrc-menu-open .qrc-metric-btn svg { transform: rotate(180deg); }
.qrc-metric-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 100%; margin: 0; padding: 4px; list-style: none; background: var(--surface-card); border: 1px solid var(--border-mid); box-shadow: var(--shadow-md); }
.qrc-metric-menu li { padding: .55rem .7rem; font-size: .82rem; color: var(--text-light); cursor: pointer; white-space: nowrap; }
.qrc-metric-menu li:hover { background: var(--chart-band); color: var(--white); }
.qrc-metric-menu li.is-on { background: color-mix(in srgb, var(--eyebrow) 10%, transparent); color: var(--eyebrow); font-weight: 700; } /* theme-guardrail-allow: tint of a theme token, not a new colour */
.qrc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 0 1rem; padding: .75rem; background: var(--chart-band); }
.qrc-regions { display: flex; flex-wrap: wrap; gap: .25rem; }
.qrc-region { padding: .45rem .8rem; font: 700 .68rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); background: transparent; border: 0; cursor: pointer; }
.qrc-region:hover { color: var(--white); }
.qrc-region.is-on { background: var(--surface-card); color: var(--white); box-shadow: var(--shadow-sm); }
.qrc-region.is-static { cursor: default; }
.qrc-yours { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .35rem .75rem; font: 700 .68rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); background: color-mix(in srgb, var(--eyebrow) 10%, transparent); } /* theme-guardrail-allow: tint of a theme token, not a new colour */
.qrc-yours[hidden] { display: none; }
.qrc-yours strong { font: 800 1.25rem/1 var(--font-display); letter-spacing: 0; }
.qrc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.qrc-row { display: grid; grid-template-columns: 2.25rem 1.75rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .7rem .75rem; font-size: .92rem; }
.qrc-row:hover { background: var(--chart-band); }
.qrc-rank { font: 700 .82rem/1 var(--font-sans); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.qrc-flag { font-size: 1.1rem; line-height: 1; }
.qrc-name { color: var(--white); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.qrc-name:hover { color: var(--eyebrow); }
.qrc-val { font: 700 .92rem/1 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; }
.qrc-row.is-self { background: color-mix(in srgb, var(--eyebrow) 9%, transparent); box-shadow: inset 3px 0 0 var(--eyebrow); } /* theme-guardrail-allow: tint of a theme token, not a new colour */
.qrc-row.is-self .qrc-rank, .qrc-row.is-self .qrc-name, .qrc-row.is-self .qrc-val { color: var(--eyebrow); font-weight: 700; }
.qrc-gap { position: relative; display: flex; justify-content: center; padding: .6rem 0; }
.qrc-gap::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; border-top: 1px solid var(--border-mid); }
.qrc-gap span { position: relative; display: inline-flex; gap: 6px; padding: .45rem .9rem; background: var(--surface-card); border: 1px solid var(--border-mid); }
.qrc-gap i { width: 5px; height: 5px; background: var(--text-faint); }
@media (max-width: 600px) { .qrc .qd-head { flex-direction: column; gap: .75rem; } .qrc-metric-btn { min-width: 0; width: 100%; } .qrc-row { grid-template-columns: 2rem 1.5rem minmax(0, 1fr) auto; padding: .6rem .4rem; } }

/* --- homepage: World report with search + map (js/quarterly-home-map.js) --- */
.qr-home-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.qr-home-id { display: flex; flex-direction: column; gap: 1.1rem; }
.qr-home-id .qr-id-facts { margin: 0; }
.qr-home-label { display: block; margin: 0 0 .45rem; font: 700 .7rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.qr-switch-lg .qr-switch-input { width: 100%; height: 3rem; padding-left: 2.4rem; font-size: 1rem; border-radius: 0; }
.qr-switch-lg .qr-switch-icon { width: 16px; height: 16px; left: .9rem; }
.qr-switch-lg .qr-switch-menu { left: 0; right: 0; width: auto; border-radius: 0; z-index: 10; }
.qr-home-quick { margin-top: auto; }
.qh-quick-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.qh-quick { padding: .4rem .7rem; font-size: .84rem; color: var(--white); text-decoration: none; background: var(--chart-band); border: 1px solid transparent; }
.qh-quick:hover { border-color: var(--eyebrow); color: var(--eyebrow); }
.qr-home-map { display: flex; flex-direction: column; padding: 1rem; }
.qhm-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.qhm-title { margin: 0; font: 700 .95rem/1.2 var(--font-sans); color: var(--white); }
.qhm-groups { display: flex; gap: .3rem; }
.qhm-frame { position: relative; flex: 1; min-height: 420px; background: #FAFAF8; /* theme-guardrail-allow: the basemap's own background, so the frame matches before tiles load */ overflow: hidden; }
.qhm-canvas, .qhm-canvas.maplibregl-map { position: absolute; inset: 0; } /* maplibre-gl.css sets the container relative, which collapses it here */
.qhm-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: .85rem; color: var(--text-faint); pointer-events: none; }
.qr-home-map.is-ready .qhm-loading { display: none; }
.qr-home-map.is-failed .qhm-loading::after { content: " (unavailable)"; }
.qhm-tip { position: absolute; left: 0; top: 0; z-index: 4; display: grid; gap: 2px; max-width: 240px; padding: 8px 10px; font: 12px/1.45 var(--font-sans); color: var(--chart-tooltip-ink); background: var(--chart-tooltip-bg); box-shadow: var(--shadow-md); pointer-events: none; }
.qhm-tip[hidden] { display: none; }
.qhm-tip strong { font-size: 13px; }
.qhm-tip em { font-style: normal; opacity: .75; }
.qhm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: .6rem 0 0; font-size: .75rem; color: var(--text-faint); }
.qhm-credits a { color: inherit; }
.qr-home-map .maplibregl-ctrl-group { border-radius: 0; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .qr-home-grid { grid-template-columns: 1fr; } .qhm-frame { min-height: 340px; } }

/* --- most active investors, year to date --- */
.qri-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 2px; }
.qri-row { display: grid; grid-template-columns: 2rem minmax(10rem, 16rem) minmax(0, 1fr) 6rem; align-items: center; gap: .75rem; padding: .55rem .5rem; outline: none; cursor: default; }
.qri-row:hover, .qri-row:focus-visible { background: var(--chart-band); }
.qri-rank { font: 700 .82rem/1 var(--font-sans); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.qri-name { font-size: .92rem; font-weight: 500; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qri-track { height: 10px; background: var(--chart-band); overflow: hidden; }
.qri-track i { display: block; height: 100%; background: var(--eyebrow); }
.qri-val { font: 700 .88rem/1 var(--font-display); color: var(--white); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .qri-row { grid-template-columns: 1.6rem minmax(0, 1fr) 4.8rem; } .qri-track { grid-column: 2 / -1; grid-row: 2; } }

.qt-none { color: var(--text-faint); }

/* --- outlines: a very subtle rounding (review 12 Oct) ---
   Chart marks stay square (bars, stack segments, progress tracks, line caps);
   the boxes around them — cards, frames, inputs, menus, tooltips and small
   framed controls — get a slight radius so the page does not look harsh. */
body { --qr-radius: 6px; --qr-radius-sm: 4px; }
.qr-card, .qr-map-card, .qhm-frame, .qr-switch-lg .qr-switch-input, .qr-switch-lg .qr-switch-menu,
.qr-tip, .qhm-tip, .qrc-metric-menu, .qc-data { border-radius: var(--qr-radius); }
.qr-map-card .qr-map, .qhm-frame .maplibregl-canvas { border-radius: inherit; }
.qh-quick, .qrc-bar, .qrc-region, .qrc-yours, .qrc-metric-btn, .qrc-metric-menu li, .qrc-gap span,
.qrc-row, .qri-row, .qr-home-map .maplibregl-ctrl-group { border-radius: var(--qr-radius-sm); }

/* Map credits button: small and quiet until used. Collapsed only — the opened
   credits keep MapLibre's readable default. Selectors are scoped to the card so
   they outrank maplibre-gl.css, which is injected after this sheet. */
.qr-home-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
    min-height: 16px; padding: 0 16px 0 0; margin: 6px; background-color: transparent;
}
.qr-home-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button {
    width: 16px; height: 16px; opacity: .7; transition: opacity .15s;
    /* MapLibre's icon is a dark image: use its shape as a mask and fill it
       with the theme's faint grey instead. */
    background-image: none; background-color: var(--text-faint);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E") center / 16px 16px no-repeat;
}
.qr-home-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button:hover,
.qr-home-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button:focus-visible { opacity: .8; }

/* Opened credits: the same grey icon, no MapLibre blue focus glow. */
.qr-home-map .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button {
    background-image: none; background-color: var(--text-faint);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E") center / 18px 18px no-repeat; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E") center / 18px 18px no-repeat;
}
.qr-home-map .maplibregl-ctrl-attrib-button:focus { box-shadow: none; }
.qr-home-map .maplibregl-ctrl-attrib-button:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 1px; }

/* One list left (the other had nothing to show): use the full width. */
.qr-two > .qr-card:only-child { grid-column: 1 / -1; }
