/* DebateStatus (debate-status.js): what a debate's bills are and what became
   of them. Moved here unchanged from the Daily Record's debate heads. */

/* ── Debate status: what this debate's bill is, and what became of it ────────
   Sits under the heading's chamber/date line. A debate that names a bill always
   gets the label, the standing flags and an outcome sentence; the action groups
   appear only when they have lines under them, and a debate that names no bill
   renders nothing at all.

   Headers keep the cluster head's own scale — 11px/700/uppercase, matching
   .label. Everything else is one body type, set above. */
.debate-status {
  margin-top: 10px;
}
.debate-status .debate-act-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px 3px;
  border: 1px solid var(--wsj-gold);
  border-radius: 2px;
  background: rgba(196, 163, 90, 0.12);
  color: var(--wsj-nav);
  font: 600 10.5px/1.3 var(--font-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.debate-status .da-bill + .da-bill {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
/* The bill's standing, drawn as the status pills /legislation already uses for
   the same two facts. This ground is light, like the bill listing's, so the
   palette carries over unchanged. */
.debate-status .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(107, 91, 79, 0.08);
  padding: 2px 7px;
  border-radius: 2px;
}
.debate-status .tag.status {
  color: var(--wsj-nav);
  background: rgba(53, 42, 33, 0.1);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}
.debate-status .tag.status.law {
  color: var(--wsj-green);
  background: rgba(46, 125, 50, 0.12);
}
.debate-status .tag.status.passed {
  color: var(--wsj-blue);
  background: rgba(2, 116, 182, 0.12);
}
.debate-status .tag.status.committee {
  color: var(--wsj-brown);
  background: rgba(107, 91, 79, 0.14);
}
/* An amendment can be rejected, tabled, withdrawn or ruled out of order — none
   of which a bill's four status colours have a word for. */
.debate-status .tag.status.failed {
  color: var(--wsj-red);
  background: rgba(183, 28, 28, 0.1);
}
/* A row of flags naming its own subject, so the block does not depend on the
   heading above it having printed the bill number — which it often has not. */
.debate-status .da-lede {
  margin: 0 0 6px;
}
.debate-status .da-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.debate-status .da-outcome {
  margin-top: 4px;
}
.debate-status .da-outcome strong {
  font-weight: 700;
  color: #2b2118;
}
/* One body type for the whole block, the site's paragraph size: the label, the
   outcome sentence and every list item read alike. Only the group headings
   stay distinct, because they are headings. */
.debate-status .da-lede,
.debate-status .da-outcome,
.debate-status .da-group li {
  font: 400 var(--read-size)/1.55 var(--font-sans);
  color: #222;
}
.debate-status .da-group {
  margin-top: 9px;
}
.debate-status .da-hd {
  font: 700 11px/1.2 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.debate-status .da-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.debate-status .da-group li {
  position: relative;
  padding-left: 13px;
  margin-top: 4px;
}
.debate-status .da-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wsj-gold);
}
.debate-status .da-detail[hidden] {
  display: none;
}
.debate-status .da-detail {
  padding-bottom: 2px;
}
/* An underlined link-style button rather than a boxed one. */
.debate-status .da-more {
  appearance: none;
  display: inline-block;
  margin-top: 9px;
  padding: 0 0 1px;
  border: none;
  border-bottom: 1.5px solid var(--wsj-gold);
  background: none;
  color: var(--wsj-nav);
  font: 600 var(--read-size)/1.2 var(--font-sans);
  cursor: pointer;
}
.debate-status .da-detail-toggle {
  margin-top: 10px;
}
.debate-status .da-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* A hearing on the debate's bill links to the hearing page by its title. */
.debate-status .da-hearing a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.debate-status .da-hearing a:hover {
  text-decoration: underline;
}
@media (max-width: 960px) {
  .debate-status .da-lede,
  .debate-status .da-outcome,
  .debate-status .da-group li { font-size: 15px; }
}
