/* Lobbying filing detail page. Uses theme tokens so it reads correctly in
   both light and dark themes. */

/* Lobbying spending leaderboards (/lobbying/spending/). */
.spending-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 768px) {
  .spending-cols { grid-template-columns: 1fr; }
}
.spending-board {
  margin: 0;
  padding-left: var(--sp-5);
}
.spending-board li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--ink-100);
}
.spending-board li:last-child { border-bottom: 0; }
.spending-name { font-weight: 600; }
/* The state beside a client named for a place (City of Arlington, Texas
   vs Washington), on the spending board and the clients index. */
.ent-place {
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  white-space: nowrap;
}
.spending-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.spending-count { grid-column: 1 / -1; }

.lobby-bill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.lobby-bill-chip {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  background: var(--ink-50);
}
.lobby-bill-chip a { font-weight: 700; }
.lobby-bill-sub { margin-top: 2px; }

.lobby-activity {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--ink-100);
}
.lobby-activity:first-child { border-top: none; padding-top: 0; }
.lobby-activity-issue {
  font-weight: 700;
  color: var(--civic-blue);
  margin-bottom: 2px;
}
.lobby-activity-desc {
  margin: 0;
  line-height: 1.55;
  color: var(--ink-800);
}

/* Revolving door: former members of Congress now lobbying */
.rd-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.rd-card { padding: var(--sp-4); }
.rd-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.rd-position { margin: var(--sp-2) 0 0; }
.rd-firms {
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* A filing's type in words ('Q2 amendment') where the rows used to lead
   with the raw LDA code. Sized to its words, not stretched across the
   row's first column; the code is in the title. */
.lob-type {
  display: inline-block;
  justify-self: start;
  max-width: 100%;
  background: var(--ink-100);
  color: var(--ink-800);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  cursor: help;
}
.lob-type-sub {
  display: block;
  font-weight: 400;
  color: var(--ink-700);
}
/* On the filing page it sits in the card header, where the pill was. */
.lob-type-header { text-align: right; }

/* A ranked row whose total includes a per-filing figure far outside the
   rest of the record (congress/services/lobbying_outliers.py). Amber,
   the colour .lob-flag uses for "this changes how the row reads". */
.lob-unverified {
  display: inline-block;
  border: 1px solid var(--civic-amber);
  background: var(--civic-amber-soft);
  color: var(--ink-900);
  border-radius: var(--r-full);
  padding: 0 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 1px;
}
.spending-who { min-width: 0; overflow-wrap: anywhere; }

/* Onward links on a filing page: each named body to its agency page,
   each issue label to the explorer filtered by it. Ink text with a teal
   underline: teal text on the tag's tint is under 4.5:1 at this size. */
.lob-tag a,
.lobby-activity-issue a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--civic-blue);
  text-underline-offset: 2px;
}
.lob-tag a:hover,
.lobby-activity-issue a:hover {
  color: var(--ink-900);
  text-decoration-thickness: 2px;
}
