/* Shared chrome and palette for the "which investors have backed startups in
   the most US states" figures (/resources/us-investors-most-states/).
   Generated pages: scripts/build-us-state-investor-coverage.mjs. Layered on
   multiples-chart-base.css, which carries the --mv-* tokens and the contract
   canvas.

   One palette, light. No [data-theme="dark"] block and no theme branch: charts
   and embeds are light-only as of 2026-09-22 (CLAUDE.md "Theme Guardrails").

   The investor-type colours are the spine of the set: the same teal means
   "accelerator" on every figure, so a reader learns the key once. Values are
   the light --series-* tokens from css/dealroom-theme-3da7d8e.css, which the
   middleware never injects into /charts/. */
:root {
  --t-vc:     #3E64E0;   /* --series-usa */
  --t-acc:    #1FA89A;   /* --series-c1 */
  --t-angel:  #7C5CDA;   /* --series-c3 */
  --t-bank:   #5B6B7F;   /* --series-c5 */
  --t-crowd:  #D98324;   /* --series-c2 */
  --t-corp:   #C8569E;   /* --series-c6 */
  --rule:     rgba(15,23,42,0.08);
  --grid:     rgba(16,24,40,0.10);
  --axis:     rgba(16,24,40,0.55);
  --land:     #E6EBF2;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--mv-bg); color: var(--mv-text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Card geometry comes from multiples-chart-base.css and is not overridden, so
   the text starts where every other resources figure starts it. */
.card { position: relative; }

/* Title inside the card: the card is the unit people screenshot. An h2, so
   soft rule S4 (h1/#title) still passes. SKILL-Resources.md § "A story whose
   charts are a set". */
h2.dl-title { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 4px; letter-spacing: -0.01em; padding-right: 64px; }
.sub { font-size: 14px; color: var(--mv-text-muted); margin: 0 0 14px; }

/* PNG download, inside the card, on hover. data-export-hide keeps it out of
   its own capture. */
.dl-png-btn {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  appearance: none; border: 1px solid var(--rule); background: var(--mv-card);
  color: var(--mv-text-muted); font: inherit; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 7px; cursor: pointer;
  opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.card:hover .dl-png-btn, .dl-png-btn:focus-visible { opacity: 1; }
.dl-png-btn:hover { color: var(--mv-text); }
@media (hover: none) { .dl-png-btn { opacity: 1; } }

.key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: 13px; color: var(--mv-text-muted); }
.key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 5px; }

/* Investor wordmarks: navy monochrome, sized per mark by the generator
   (area-normalised), replacing the name. Firms without one get their name. */
img.wm { display: block; max-width: 100%; object-fit: contain; object-position: left center; }
.wmtext { font-size: 15px; font-weight: 700; color: var(--mv-text); white-space: nowrap; }

/* Ranked rows (figures 1 and 5). */
.rows { display: flex; flex-direction: column; gap: 6px; }
/* One grid for all rows, so the name column is exactly as wide as the widest
   wordmark and every bar starts at the same x without a dead gap. */
.rows { display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; row-gap: 8px; align-items: center; }
.row  { display: contents; }
.row .name { display: flex; align-items: center; min-height: 28px; }
.row .track { --aside-w: 104px; display: flex; align-items: center; gap: 8px; height: 22px; }
.row .bar { flex: none; height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 7px; min-width: 30px; }
.row .bar b { font-size: 12px; font-weight: 800; color: #FFFFFF; }
.row .aside { font-size: 12px; color: var(--mv-text-muted); white-space: nowrap; }

/* Picker (figure 2). */
.picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.picker button { appearance: none; display: inline-flex; align-items: center; cursor: pointer; height: 34px;
                 border: 1px solid var(--rule); background: var(--mv-card); color: var(--mv-text);
                 font: inherit; padding: 0 12px; border-radius: 999px; opacity: 0.6; }
.picker button .wmtext { font-size: 13px; }
.picker button.on { opacity: 1; }
.picker button.on { border-color: var(--t-vc); color: var(--mv-text); box-shadow: 0 0 0 1px var(--t-vc); }

.tip { position: absolute; pointer-events: none; z-index: 4; background: #101010; color: #FFFFFF;
       font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 6px; white-space: nowrap; display: none; }

svg text { font-family: 'Source Sans 3', system-ui, sans-serif; }

.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
        margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.src { font-size: 12px; color: var(--mv-text-muted); }
.dr-logo svg { width: 110px; height: 26px; display: block; }

@media (max-width: 640px) {
  .card { padding: 16px 14px 12px; border-radius: 10px; }
  h2.dl-title { font-size: 18px; }
  .sub { font-size: 13px; }
  .rows { column-gap: 10px; }
  .row .name img.wm { max-width: 110px; }
  .wmtext { font-size: 12px; }
  .row .aside { display: none; }
  .row .track { --aside-w: 0px; }
}
