/* Insights charts. Yellow = pools, green = domains and density, gray = removed. */
.ins-gap { margin-top: 24px; }
.ins-nomargin { margin: 0; }
.ins-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 24px; }
.ins-two > section { min-width: 0; }

/* Vertical bars (shared by pool combinations, domains, monthly changes) */
.vbar-link, .month-col {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; text-decoration: none; color: var(--white);
}
.vbar { display: block; width: 100%; min-height: 1px; }
.vbar-yellow { background: var(--yellow); }
.vbar-yellow.vbar-soft { opacity: 0.55; }
.vbar-green { background: var(--green); }
.vbar-outline { border: 1px solid var(--gray); background: transparent; }
.vbar-num { font-size: 12px; font-variant-numeric: tabular-nums; padding-bottom: 4px; white-space: nowrap; }
a.vbar-link:hover .vbar, a.month-col:hover .vbar { background: var(--white); opacity: 1; }
a.vbar-link:hover, a.month-col:hover { color: var(--yellow); }

/* UpSet chart */
.upset { border-collapse: collapse; min-width: 560px; width: 100%; table-layout: fixed; }
.upset th { width: 84px; text-align: left; font-weight: normal; font-size: 12px; color: var(--soft); padding: 0 8px 0 0; white-space: nowrap; }
.upset td { padding: 0 10px; text-align: center; }
.upset-bars td { height: 190px; vertical-align: bottom; border-bottom: 1px solid var(--rule); }
.upset-bars td .vbar { max-width: 56px; }
.upset-dots td, .upset-dots th { padding-top: 7px; padding-bottom: 0; }
.upset-bars + .upset-dots td, .upset-bars + .upset-dots th { padding-top: 12px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--rule); vertical-align: middle; }
.dot-on { background: var(--yellow); border-color: var(--yellow); }
.ins-other { margin-top: 10px; font-size: 13px; color: var(--soft); }
.other-list { list-style: none; margin: 10px 0 0; padding: 0; columns: 3 220px; column-gap: 24px; }
.other-list li { padding: 3px 0; break-inside: avoid; }
.other-list a { text-decoration: none; color: var(--soft); }
.other-list a:hover { color: var(--yellow); }
.other-list .num { display: inline-block; min-width: 34px; color: var(--yellow); font-variant-numeric: tabular-nums; }

/* Contracts per domain */
.vbars { display: grid; gap: 8px; height: 220px; align-items: stretch; }
.vbars-13 { grid-template-columns: repeat(13, minmax(34px, 1fr)); min-width: 540px; }
.vbars .vbar-link { height: auto; }
.vbars .vbar-link .vbar { flex: 0 0 auto; }
.vbars .vbar-link { display: grid; grid-template-rows: 1fr auto; }
.vbars .vbar-link > .vbar-num { align-self: end; justify-self: center; grid-row: 1; grid-column: 1; }
.vbars .vbar-link > .vbar { grid-row: 1; grid-column: 1; align-self: end; }
.vbar-label { grid-row: 2; text-align: center; font-size: 11px; color: var(--soft); padding-top: 6px; }

/* Pools per vendor */
.hbars { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 58px 1fr 52px; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.hbar-label { font-size: 12px; color: var(--soft); white-space: nowrap; }
.hbar-track { display: block; height: 22px; }
.hbar { display: block; height: 100%; min-width: 1px; background: var(--yellow); }
.hbar-num { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
a.hbar-row:hover .hbar { background: var(--white); }
a.hbar-row:hover { color: var(--yellow); }

/* State tile map */
.statemap {
  display: grid; grid-template-columns: repeat(11, minmax(44px, 1fr)); grid-auto-rows: 46px; gap: 3px;
  min-width: 520px; max-width: 760px;
}
.state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.state b { font-size: 11px; font-weight: bold; }
a.state:hover { outline: 2px solid var(--white); outline-offset: -2px; }
.state-zero { border: 1px solid var(--chip-dim-border); color: var(--chip-dim-text); }
.map-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 14px; }
.map-other { margin: 0; font-size: 12px; color: var(--gray); }
.map-other a { color: var(--soft); text-decoration: none; }
.map-other a:hover { color: var(--yellow); }

/* Monthly changes */
.months { display: flex; gap: 18px; align-items: flex-start; }
.month { flex: 0 0 96px; text-align: center; }
.month-up { height: 110px; border-bottom: 1px solid var(--gray); padding: 0 24px; }
.month-down { height: 80px; padding: 0 24px; display: flex; flex-direction: column; align-items: center; color: var(--gray); }
.month-down .vbar-num { padding: 4px 0 0; }
.month-up .vbar-num { flex: 0 0 auto; }
.month-label { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.month-changed { font-size: 11px; color: var(--gray); }
.chart-key { margin: 14px 0 0; font-size: 11px; color: var(--gray); }
.key { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 0; vertical-align: -1px; }
.key + .key, .chart-key .key-outline { margin-left: 16px; }
.key-yellow { background: var(--yellow); }
.key-outline { border: 1px solid var(--gray); }

@media (max-width: 860px) {
  .ins-two { grid-template-columns: minmax(0, 1fr); }
}
