/* /congress — companies ranked by congressional conviction.
 *
 * A SEPARATE SHEET, ON PURPOSE
 * Every class here is used by exactly one template (congress.html). Kept
 * out of quorum.css so this feature can be reverted, or restyled, without
 * touching the brand layer that every other page inherits from.
 *
 * Loaded AFTER style.css and quorum.css, so it settles ties with them -
 * but note the warning in base.html: loading last only wins TIES.
 * style.css's `table.leaderboard a` (0-1-2) still outranks a bare
 * one-class rule here. Nothing below relies on beating it; the table is
 * `.congress-table`, deliberately not `.leaderboard`.
 */

/* ---------- The head: two lines, on purpose (22/08) ----------
 *
 * This page used the shared .about-hero: an eyebrow, a two-line title and
 * a four-line paragraph. That is the right furniture for /about, where
 * the prose IS the page. Here it pushed the first table row below the
 * fold on a 1080p laptop at 125%, so a visitor who came for a ranking had
 * to scroll to see rank 1. Carl, 22/08: "c'est trop gros, je ne peux pas
 * voir les donnees".
 *
 * The argument was not deleted - it opens .congress-method at the bottom
 * of the page now, at full reading size. What is left here is a title and
 * one line of orientation. Roughly 150px of vertical space returned to
 * the table. */
.congress-head {
  margin: 0 0 1.1rem;
}

.congress-h1 {
  font-family: Archivo, Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: #F2F0EA;
  margin: 0 0 0.35rem;
}

.congress-sub {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #8C8A82;
  margin: 0;
  max-width: 46rem;
}

.congress-stats {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  color: #8C8A82;
  margin: 0 0 1.5rem;
}

.congress-stats strong {
  color: #F2F0EA;
  font-weight: 600;
}

/* ---------- The table ---------- */

.congress-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.congress-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C8A82;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2B2A27;
  white-space: nowrap;
}

.congress-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #1A1A18;
  color: #C9C6BE;
  vertical-align: middle;
}

.congress-table tbody tr:hover td {
  background: #141412;
}

/* Numbers right-aligned and tabular so columns line up when scanning -
 * the whole point of this table is comparing rows at a glance. */
.congress-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.congress-table a {
  color: #D4B95A;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 185, 90, 0.35);
}

.congress-table a:hover {
  border-bottom-color: #D4B95A;
}

/* A ticker Congress bought that Quorum does not analyse yet. Muted rather
 * than hidden: the fact that it is NOT tracked is information, and the
 * badge beside it says so explicitly. */
.ticker-untracked {
  color: #F2F0EA;
}

/* ...and the single cell that same row gets in place of the seven
 * company columns. This is the rule the markup has been waiting for:
 * congress.html has carried `class="q-untracked"` since the company
 * columns landed, and no stylesheet anywhere declared it.
 *
 * `text-align: left` is the whole point and is not cosmetic. The cell
 * spans seven columns whose headers are .cell-num, i.e. right-aligned
 * figures, so without this the sentence sat flush against the right edge
 * of the table and read as a missing NUMBER - the precise misreading the
 * long comment in congress.html says this cell exists to prevent. A
 * statement about coverage has to look like a statement.
 *
 * Deliberately NOT attenuated further. The .q-none span inside already
 * carries the muted treatment, and dimming the cell as well would say
 * "broken row". Per congress.html, this is arguably the more interesting
 * row on the page.
 *
 * white-space is left alone on purpose. The narrow-screen rule at the
 * bottom of this file makes the whole table nowrap and scroll
 * horizontally; forcing this one cell to wrap would let a long sentence
 * squash the row's own columns on a phone. It extends the scroll width
 * instead, which is what every other cell in the table already does. */
.q-untracked {
  text-align: left;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
  border-radius: 3px;
  vertical-align: 1px;
}

.badge-discovery {
  color: #0A0A09;
  background: #7C9C7A;
  font-weight: 600;
}

/* ---------- Conviction bands (what viewers below Plus see) ----------
 *
 * Three bands, coarse on purpose. A ten-band scale would let anyone
 * reconstruct the numeric score from the label, which is the thing the
 * paid tier actually sells. See web_congress.conviction_band().
 *
 * Colour carries meaning here, so each band also differs in weight and
 * text - never colour alone. */

.band {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
}

.band-strong {
  color: #D4B95A;
  border-color: rgba(212, 185, 90, 0.4);
  background: rgba(212, 185, 90, 0.08);
  font-weight: 600;
}

.band-notable {
  color: #7C9C7A;
  border-color: rgba(124, 156, 122, 0.35);
  background: rgba(124, 156, 122, 0.07);
}

.band-light {
  color: #8C8A82;
  border-color: #2B2A27;
}

.band-unrated {
  color: #5A5852;
  border-color: #1A1A18;
}

/* ---------- Upsell and methodology ---------- */

.congress-upsell {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: #8C8A82;
  padding: 0.9rem 1rem;
  border: 1px solid #2B2A27;
  border-radius: 6px;
  background: #141412;
  margin-bottom: 2.5rem;
}

.congress-upsell a {
  color: #D4B95A;
}

/* The methodology block states what the score cannot do. It is set at
 * normal reading size rather than as fine print, because burying the
 * limitations in 11px grey is how a research page becomes a sales page. */
.congress-method {
  border-top: 1px solid #2B2A27;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  max-width: 46rem;
}

/* The page's argument, moved down here on 22/08. It keeps the size it
 * had at the top - larger than the h3 below it - because it was not
 * demoted to fine print, it was moved. Shrinking it here would be a
 * quieter way of deleting it. */
.congress-method-lede {
  font-family: Archivo, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #F2F0EA;
  margin: 0 0 0.9rem;
}

.congress-method h3 {
  font-family: Archivo, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F2F0EA;
  margin: 1.6rem 0 0.9rem;
}

.congress-method p {
  color: #A8A59D;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.congress-method strong {
  color: #F2F0EA;
}

/* ---------- Narrow screens ----------
 *
 * The table has seven columns and will not fit a phone. Rather than hide
 * columns - which would silently remove the disclosure lag, the one
 * column that keeps this page honest - it scrolls horizontally. */
@media (max-width: 900px) {
  .congress-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
