/* The committee pages (DESIGN 13.27): the committee strip, the member list,
   the kinds of assets as counts and the trade counts. Tokens only. */

.cmt-stamp, .cmt-fair { margin-top: var(--s2); }
.cmt-h1 { max-width: 46rem; }
.cmt-sentence { margin-top: var(--s2); max-width: 46rem; color: var(--ink-2); }
.cmt-links { margin-top: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); }
.cmt-banner {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--axis);
  border-radius: var(--r-card, 8px);
  background: var(--surface);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

/* ------------------------------------------------------------ the committee strip */

.cmt-strip { padding: var(--s4); }
.cmt-strip .caption { margin-bottom: var(--s2); }
.cmt-rows { list-style: none; padding: 0; margin: 0; }
.cmt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head value" "bar bar";
  column-gap: var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--hairline);
}
.cmt-row__head { grid-area: head; min-width: 0; }
.cmt-row__name { font-family: var(--sans); font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; }
.cmt-row__name a { text-decoration: none; }
.cmt-row__name a:hover { text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px; }
.cmt-row__meta { font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.cmt-row__out { color: var(--ink-2); font-weight: 600; }
.cmt-row__value { grid-area: value; text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmt-row__label {
  display: block;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-3);
}
.cmt-row__bar { grid-area: bar; margin-top: var(--s2); }
.cmt-plot { position: relative; display: block; height: 20px; }
.cmt-plot > span { position: absolute; display: block; }
.cmt-plot__band {
  top: 5px;
  height: 10px;
  min-width: 2px;
  border-radius: var(--r-band, 4px);
  background: color-mix(in srgb, var(--range) 70%, transparent);
}
.cmt-plot__tick { top: 1px; height: 18px; width: 2px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 0 1px var(--surface); }
.cmt-plot__chamber { top: 0; height: 20px; width: 1px; margin-left: -0.5px; background: var(--ink-3); }
.cmt-key--band { background: color-mix(in srgb, var(--range) 70%, transparent); }
.cmt-strip__axis { margin-bottom: var(--s1); }
@media (min-width: 900px) {
  .cmt-row {
    grid-template-columns: 320px minmax(0, 1fr) 96px;
    grid-template-areas: "head bar value";
    align-items: center;
  }
  .cmt-row__bar { margin-top: 0; }
  .cmt-strip__axis { margin-left: calc(320px + var(--s4)); margin-right: calc(96px + var(--s4)); }
}
@media (forced-colors: active) {
  .cmt-plot__band, .cmt-key--band { forced-color-adjust: none; background: repeating-linear-gradient(45deg, CanvasText 0 1px, Canvas 1px 4px); }
  .cmt-plot__tick, .cmt-plot__chamber { forced-color-adjust: none; background: CanvasText; }
}

.cmt-table { margin-top: var(--s4); font-size: var(--t-small); line-height: var(--lh-small); }
.cmt-table > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.cmt-table .table-wrap { margin-top: var(--s2); }

/* ------------------------------------------------------------ one committee */

.cmt-leadlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.cmt-lead__title { font-weight: 650; }
.cmt-title {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--ink-3);
  border-radius: var(--r-chip, 4px);
  font-family: var(--sans);
  font-size: var(--t-micro);
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-2);
  vertical-align: 2px;
  white-space: nowrap;
}
.cmt-counts { margin-top: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); max-width: 46rem; }

.cmt-kinds, .cmt-trades { padding: var(--s4); }
.cmt-kindlist { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.cmt-kind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label n" "bar bar" "chamber chamber";
  column-gap: var(--s3);
  padding: var(--s2) 0;
  border-top: 1px solid var(--hairline);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.cmt-kind__label { grid-area: label; min-width: 0; }
.cmt-kind__n { grid-area: n; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.cmt-kind__bar { grid-area: bar; position: relative; display: block; height: 8px; margin-top: 4px; border-radius: 2px; background: var(--hairline); }
.cmt-kind__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ink-2); }
.cmt-kind__chamber { grid-area: chamber; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); margin-top: 2px; }
@media (min-width: 768px) {
  .cmt-kind {
    grid-template-columns: minmax(0, 22rem) 9rem minmax(0, 1fr) 7rem;
    grid-template-areas: "label n bar chamber";
    align-items: center;
  }
  .cmt-kind__bar { margin-top: 0; }
  .cmt-kind__chamber { margin-top: 0; text-align: right; }
}
.cmt-kinds > .note, .cmt-trades > .note { margin-top: var(--s2); }

.cmt-subs { list-style: none; padding: 0; margin: 0; columns: 1; font-size: var(--t-small); line-height: var(--lh-small); }
.cmt-subs > li { padding: var(--s1) 0; break-inside: avoid; }
.cmt-subs__n { color: var(--ink-3); }
@media (min-width: 768px) { .cmt-subs { columns: 2; column-gap: var(--s6); } }

.cmt-srclist { list-style: none; padding: 0; margin: var(--s2) 0; display: grid; gap: var(--s2); }
.cmt-srclist .receipt { margin: 0; }
