/* /lobbying/ front door + the extra disclosure cards on a filing page.
   Kept in its own file rather than appended to lobbying.css so the hub
   work and the sibling rollup pages can land independently.
   Tokens only (scripts/check_css_vars.py); no colour that is not
   carrying information. */

/* ---------- Orientation block: what this data is ---------- */

.lob-intro {
  max-width: 72ch;
  margin: 0 0 var(--sp-5);
}
.lob-intro p { margin-bottom: var(--sp-3); }
.lob-intro p:last-child { margin-bottom: 0; }

/* ---------- Headline totals ---------- */

.lob-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.lob-stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lob-stat-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-800);
  margin-top: var(--sp-1);
}
.lob-stat-note {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: 2px;
}

/* ---------- Routes into the rest of the section ---------- */

.lob-routes {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.lob-route {
  display: block;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  background: var(--paper);
  color: inherit;
  height: 100%;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.lob-route:hover,
.lob-route:focus-visible {
  border-color: var(--civic-blue);
  background: var(--ink-50);
  text-decoration: none;
}
.lob-route-name {
  font-weight: 700;
  color: var(--ink-900);
}
.lob-route-name .fa {
  color: var(--ink-500);
  margin-right: var(--sp-2);
}
.lob-route-desc {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  margin-top: var(--sp-1);
  line-height: 1.45;
}
.lob-route-count {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.lob-section-head {
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-3);
}
.lob-explorer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin: var(--sp-6) 0 var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-200);
}
.lob-explorer-head h2 { margin: 0; font-size: var(--fs-lg); }

/* ---------- Filing detail: the recovered disclosure cards ---------- */

/* Key/value strip in the filing summary card. */
.lob-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-3) var(--sp-4);
  margin: 0;
}
.lob-fact-label {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  font-weight: 600;
}
.lob-fact-value {
  font-size: var(--fs-md);
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.lob-fact-note {
  font-size: var(--fs-xs);
  color: var(--ink-600);
  margin-top: 2px;
}

/* Government entities / affiliated orgs: plain wrapping tag list. */
.lob-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.lob-tag {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  padding: 3px 10px;
  background: var(--ink-50);
  color: var(--ink-800);
  font-size: var(--fs-sm);
}

/* People (lobbyists) and entity rows share one stacked-row layout. */
.lob-rows { list-style: none; margin: 0; padding: 0; }
.lob-row {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--ink-100);
}
.lob-row:first-child { border-top: 0; padding-top: 0; }
.lob-row:last-child { padding-bottom: 0; }
.lob-row-name { font-weight: 600; color: var(--ink-900); }
.lob-row-sub {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-top: 2px;
  line-height: 1.45;
}

/* The three flags that mean something on a filing. Colour here encodes
   state: amber = a disclosure that changes how the page reads (amended,
   terminated, a covered official), red = a criminal conviction. */
.lob-flag {
  display: inline-block;
  border-radius: var(--r-full);
  padding: 2px 9px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--civic-amber);
  color: var(--ink-900);
  background: var(--civic-amber-soft);
}
.lob-flag-serious {
  border-color: var(--civic-flag-red);
  background: var(--civic-orange-soft);
}
.lob-card-serious { border-left: 4px solid var(--civic-flag-red); }
