/* Shared styles for the three story charts at /resources/top-metros-vc-ev-growth/,
   generated by scripts/build-china-hubs-vc-2026.mjs. Tokens and the canvas
   come from multiples-chart-base.css; light only. */
body { padding: 0; display: block; min-height: 0; }
.card { position: relative; max-width: none; }
h2.chart-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; padding-right: 64px; }
.subtitle { margin-bottom: 22px; }
h3 { font-size: 16px; font-weight: 800; color: var(--mv-text); margin-bottom: 10px; }
h3 span { font-size: 13px; font-weight: 600; color: var(--mv-text-muted); margin-left: 4px; }
.k-prev { color: var(--mv-text-muted); font-weight: 700; }
.k-now { color: var(--mv-blue); font-weight: 700; }
.footer svg.dr-logo { width: 110px; height: 26px; }

.dl-png-btn {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 7px; cursor: pointer;
  font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--mv-toggle-bg); color: var(--mv-text-muted); border: 1px solid var(--mv-border);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.card:hover .dl-png-btn, .dl-png-btn:focus-visible { opacity: 1; pointer-events: auto; }
.dl-png-btn[disabled] { opacity: 1; cursor: progress; }
.dl-png-btn svg { width: 12px; height: 12px; }

/* Chart 1 — Jan–Sep VC per year, one panel per city, shared scale */
.h-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.h-plot { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 230px; padding-top: 22px; border-bottom: 1px solid var(--mv-text-muted); }
.h-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.h-bar { display: block; width: 100%; background: var(--mv-dark-grey); opacity: .32; border-radius: 3px 3px 0 0; }
.h-col.is-now .h-bar { background: var(--mv-blue); opacity: 1; }
.h-val { font-size: 11.5px; font-weight: 700; color: var(--mv-text-muted); margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h-col.is-now .h-val { text-align: center; line-height: 1.15; }
.h-col.is-now .h-val b { display: block; font-size: 14px; font-weight: 800; color: var(--mv-blue); }
.h-col.is-now .h-val small { display: block; font-size: 10.5px; font-weight: 600; color: var(--mv-text-muted); }
.h-proj { display: block; width: 100%; box-sizing: border-box; border: 1.5px solid var(--mv-blue); border-bottom: 0; border-radius: 3px 3px 0 0;
  /* Stripes as an SVG image, not a gradient: html2canvas paints images but
     not repeating gradients, and the PNG export must keep the projection. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%232C58D6' stroke-width='1.6'/%3E%3C/svg%3E") repeat; opacity: .6; } /* theme-guardrail-allow: --mv-blue inside a data URI, which cannot read a var */
.h-col.is-now .h-bar { border-radius: 0; }
.h-note { position: absolute; top: -34px; right: 0; font-size: 10.5px; font-weight: 600; color: var(--mv-text-muted); white-space: nowrap; }
.h-axis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 5px; }
.h-axis span { text-align: center; font-size: 11.5px; color: var(--mv-text-muted); font-variant-numeric: tabular-nums; }
.h-axis span:last-child { font-weight: 700; color: var(--mv-text); }

/* Chart 2 — the companies that raised the most */
.c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.c-rows { list-style: none; margin: 0; padding: 0; }
.c-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 62px; grid-template-rows: auto 8px; column-gap: 9px; row-gap: 5px; align-items: center; padding: 9px 0; border-top: 1px solid var(--mv-border); }
.c-logo { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--mv-card); border: 1px solid var(--mv-border); font-size: 13px; font-weight: 800; color: var(--mv-text-muted); }
.c-logo img { width: 100%; height: 100%; object-fit: contain; }
.c-who { min-width: 0; line-height: 1.2; }
.c-who b { display: block; font-size: 14px; color: var(--mv-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-who small { display: block; font-size: 11.5px; color: var(--mv-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-track { grid-column: 2 / 3; grid-row: 2; position: relative; height: 8px; background: var(--mv-grid); border-radius: 4px; }
.c-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mv-blue); border-radius: 4px; }
.c-val { grid-column: 3; grid-row: 1 / 3; text-align: right; line-height: 1.15; }
.c-val b { display: block; font-size: 16px; font-weight: 800; color: var(--mv-text); font-variant-numeric: tabular-nums; }
.c-val small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mv-blue); }

/* Chart 3 — rounds by stage: 2025 (grey) over 2026 (blue), one scale */
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.s-group.is-ref h3 { color: var(--mv-text-muted); }
.s-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; column-gap: 12px; padding: 7px 0; border-top: 1px solid var(--mv-border); }
.s-label { line-height: 1.15; }
.s-label b { display: block; font-size: 13.5px; color: var(--mv-text); }
.s-label small { font-size: 11px; color: var(--mv-text-muted); }
.s-bars { display: grid; row-gap: 3px; padding-right: 34px; }
.s-bar { position: relative; display: flex; align-items: center; height: 13px; }
.s-bar i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--mv-dark-grey); opacity: .32; }
.s-bar.is-now { height: 15px; }
.s-bar.is-now i { background: var(--mv-blue); opacity: 1; }
.s-bar b { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--mv-text-muted); font-variant-numeric: tabular-nums; }
.s-bar.is-now b { font-size: 13.5px; font-weight: 800; color: var(--mv-blue); }

@media (max-width: 760px) {
  h2.chart-title { font-size: 20px; padding-right: 0; }
  .h-grid, .c-grid, .s-grid { grid-template-columns: 1fr; gap: 22px; }
  .h-plot { height: 170px; }
  .s-row { grid-template-columns: 92px 1fr; }
}
