/* BillMentions (bill-mentions.js): "Bill mentions and votes". The box itself is
   the player's .wv-list (heading .t, then rows); here: the line under the
   heading, the cards that scroll, and the speaker's votes on each. */
/* The slot under the text already spaces the box from what is above it. */
.wv-cards .wv-bills {
  margin-top: 0;
}
/* The line under the heading is the player lists' standard .s line. */
.wv-bills .wv-list-h .s {
  margin-bottom: 0;
}
.wv-bill-rows {
  position: relative;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 14px;
  background: var(--wsj-cream);
}
/* The group labels stay at the top while the cards under them scroll. */
.wv-bill-rows .dq-g {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -14px;
  padding: 12px 14px 8px;
  border-bottom: 0;
  background: var(--wsj-cream);
}
.wv-bill-rows .dq-g .gl {
  font-size: var(--label-size, 12px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wsj-gold);
}

.wv-bill-rows .bill-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
/* With cardLinks, the whole card opens the bill: its title link stretches
   over it. The vote button and any other link inside stay on top and work on
   their own. */
.card-links .bill-card {
  position: relative;
}
.card-links .bill-card a.bill-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.card-links .bill-card .vh-summary,
.card-links .bill-card .vote-history,
.card-links .bill-card .card-facts a,
.card-links .bill-card .card-rel a,
.card-links .bill-card .itip-t {
  position: relative;
  z-index: 1;
}
.card-links .bill-card:has(a.bill-title):hover {
  border-color: var(--wsj-gold);
}
.wv-bill-rows .bill-card + .bill-card {
  margin-top: 10px;
}
/* The debate's own bill. */
.wv-bill-rows .bill-card.is-topic {
  padding-left: 12px;
  border-left: 3px solid var(--wsj-gold);
}
/* A bill with a page reads as a link before it is pointed at. */
.wv-bill-rows .bill-title {
  display: block;
  font-size: var(--fact-size, 14px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: break-word;
}
.wv-bill-rows a.bill-title {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wv-bill-rows a.bill-title:hover {
  color: var(--wsj-nav);
}
.wv-bill-rows .bill-number {
  font-weight: 700;
  /* "S.Res. 605" is full of break opportunities; it stays in one piece. */
  white-space: nowrap;
}
/* Which Congress, for a bill from another one than the page's. */
.wv-bill-rows .card-cong {
  margin-top: -2px;
  font: 600 var(--label-size, 12px)/1.3 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
/* How the bill relates to the page's own bill (the bill page). */
.wv-bill-rows .card-rel {
  font: 600 var(--fact-size, 14px)/1.45 var(--font-sans);
  color: var(--text);
}
/* What the speaker called it, directly under the official title. */
.wv-bill-rows .card-said {
  font: 400 var(--fact-size, 14px)/1.5 var(--font-sans);
  color: var(--fact-color, #6b5b4f);
}
.wv-bill-rows .card-said q {
  font-style: italic;
  quotes: "\201C" "\201D";
}
/* Pointing at a bill named in the text lights its card and mutes the rest. */
.wv-bill-rows .bill-card.is-linked {
  border-color: var(--wsj-gold);
  background: #fbf3df;
}
.wv-bill-rows.has-dim .bill-card:not(.is-linked) {
  opacity: 0.38;
}

/* What became of the bill. */
.wv-bill-rows .card-facts {
  margin: 0;
}
.wv-bill-rows .card-facts span {
  display: block;
  margin-top: 2px;
  font: 400 var(--fact-size, 14px)/1.45 var(--font-sans);
  color: var(--fact-color, #6b5b4f);
}
/* An amendment's card opens with the bill it amends, which is a link. */
.wv-bill-rows .card-facts a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 42, 33, 0.3);
}
.wv-bill-rows .card-facts a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* The speaker's vote: one pill carrying the whole claim, "Schumer voted Yes".
   It opens their roll calls on the bill. */
.wv-bill-rows .vh-summary {
  appearance: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 2px 0 0;
  border: none;
  background: none;
  font: 400 var(--fact-size, 14px)/1.3 var(--font-sans);
  color: var(--fact-color, #6b5b4f);
  text-align: left;
  cursor: pointer;
}
.wv-bill-rows .vh-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font: 600 var(--fact-size, 14px)/1.45 var(--font-sans);
}
.wv-bill-rows .vh-tag.yes {
  color: #2e6b34;
  background: #e5f1e5;
}
.wv-bill-rows .vh-tag.no {
  color: #9c3d32;
  background: #f7e6e2;
}
.wv-bill-rows .vh-tag.dnv {
  color: var(--fact-color, #6b5b4f);
  background: #f1ebe2;
}
.wv-bill-rows .vh-summary:hover .vh-tag {
  text-decoration: underline;
}
.wv-bill-rows .vh-note {
  padding-top: 2px;
  font-size: var(--fact-size, 14px);
  color: var(--fact-color, #6b5b4f);
}
.wv-bill-rows .vote-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid #eee5d8;
}
.wv-bill-rows .vote-history[hidden] {
  display: none;
}
.wv-bill-rows .vh-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.wv-bill-rows .vh-main {
  min-width: 0;
}
.wv-bill-rows .vh-q {
  font-size: var(--fact-size, 14px);
  font-weight: 600;
  color: var(--text);
}
.wv-bill-rows .vh-sub {
  font-size: var(--fact-size, 14px);
  line-height: 1.45;
  color: var(--fact-color, #6b5b4f);
}
.wv-bill-rows .vh-sub b {
  font-weight: 700;
  color: var(--text);
}
/* Same yes/no/abstain reading as the bill page. */
.wv-bill-rows .vote-badge {
  flex-shrink: 0;
  padding: 3px 7px;
  border: 1px solid rgba(53, 42, 33, 0.2);
  font-size: var(--label-size, 12px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wv-bill-rows .vote-badge.yes {
  color: #2e6b34;
  border-color: rgba(46, 107, 52, 0.35);
}
.wv-bill-rows .vote-badge.no {
  color: #9c3d32;
  border-color: rgba(156, 61, 50, 0.35);
}
.wv-bill-rows .vote-badge.dnv {
  color: var(--fact-color, #6b5b4f);
}
