/* The status board (/board/): large type for a wall display. Sizes follow the
   viewport width so the board reads the same on a laptop and a TV. Colors come
   from tokens.css only. Without JS, the screens stack down the page; once
   board.js runs (.is-cycling), they share one grid cell and cross-fade, so
   switching screens never moves anything else. */

html { background: var(--surface); }
.board {
  box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 40px);
  padding: clamp(16px, 3vw, 64px) clamp(16px, 4vw, 96px);
  font-size: clamp(16px, 1.35vw, 30px); line-height: 1.4;
  overflow: hidden;
}
/* The burn-in shift (board.js): the contents move within the board's padding,
   so the page never gains a scrollbar from it. */
.board > * { transform: translate(var(--board-x, 0), var(--board-y, 0)); transition: transform 2s ease; }

.board-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.board-top .kicker { font-size: clamp(12px, 0.85vw, 18px); }
.board-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 40px); color: var(--ink); text-decoration: none; }
/* Links to /keep-up/, which explains the board; reads as plain text on a
   wall display, underlined on hover. */
.board-site { margin-left: auto; }
.board-site, .board-site:visited { color: var(--ink-muted); text-decoration: none; }
.board-site:hover { text-decoration-line: underline; }

.board-screens { flex: 1; display: flex; flex-direction: column; gap: 64px; }
.board.is-cycling .board-screens { display: grid; gap: 0; }
.board.is-cycling .board-screen { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.board.is-cycling .board-screen.is-current { opacity: 1; visibility: visible; transition: opacity 1.2s ease 0.6s, visibility 0s; }

.board-screen { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 40px); min-width: 0; }
.board-h { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 72px); line-height: 1.1; }
.board-sub { margin: 0; font-size: 1em; font-weight: 600; }
.board-cols { display: grid; gap: clamp(24px, 4vw, 96px); }
@media (min-width: 900px) { .board-cols { grid-template-columns: 1fr 1fr; } }

.board-vote, .board-vote-head, .board-vote-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Latest votes side by side: each vote's heading and result share two grid
   rows across the columns (subgrid), so both results start at the same height
   even when one title runs longer. */
@media (min-width: 900px) {
  .board-votes { grid-template-rows: auto auto; row-gap: 12px; }
  .board-votes .board-vote { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}
.board-vote .kicker { font-size: 0.7em; }
/* A vote's CRS policy area (board_area.html): an outlined label above its kicker. */
.board-vote .board-area { align-self: flex-start; padding: 0.2em 0.6em; border: 1px solid var(--line); color: var(--ink-soft); }
.board-vote .question { font-size: 0.85em; color: var(--ink-soft); }
.board-title {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.9em; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.board .fig { font-size: 2.8em; line-height: 1; }
.board .boxscore.many .fig { font-size: 2em; }
.board .fig-label { font-size: 0.7em; }
.board .bar { height: 0.8em; }

.board-floor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* The Today screen's session line: always shown; its In session (or
   Scheduled session) flag only once live-floor.js marks the time as come. */
.board-session { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.board-session .live-flag { display: none; }
.board-session.is-live .live-flag { display: inline-flex; }
/* "No recorded votes since ..." under a chamber's latest vote. */
.board-quiet { margin: 0; font-size: 0.8em; color: var(--ink-soft); }
.board .vote-item .t {
  font-size: 1.15em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.board .vote-item .kicker, .board .vote-item .small { font-size: 0.7em; }
/* The hearings screen: a day's heading, then its hearings, titles cut at two lines.
   The Today screen's Senate measures passed without a roll call are cut the same way. */
.board-day { margin: 0; font-size: 0.7em; }
.board :is(.hearing-item, .senate-action) { gap: 4px; padding: 8px 0; }
/* A joint hearing's committees can run long: two lines at most. */
.board .hearing-item .small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.board :is(.hearing-item, .senate-action) .t {
  font-size: 1.15em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.board :is(.hearing-item, .senate-action) .kicker { font-size: 0.7em; }
/* Unlined at wall distance, like the vote titles' headline links. */
.board .hearing-item a { color: inherit; text-decoration-line: none; }
.board .hearing-item a:hover { text-decoration-line: underline; }
.board .small { font-size: 0.7em; }

.board-week { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.board-fig { margin: 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.board .spark-bars { height: clamp(80px, 18vh, 320px); gap: 3px; }

/* Breakdown screens: the vote and its party grid beside the map. The grid's
   squares grow with the type (party_grid.html's scale); the map fills its column. */
.board-breakdown .board-title { -webkit-line-clamp: 3; }
.board-breakdown .grid-chart { flex-direction: row; flex-wrap: wrap; gap: 0.6em 1.5em; }
.board-breakdown .grid-label { font-size: 0.7em; }
.board-map { min-width: 0; }
.board-map .vmap { margin: 0; }
.board-map .vmap svg { max-width: none; max-height: 52vh; }
.board-map .vmap-key { font-size: 0.7em; }

/* Nay stripes on the board are wider apart than on the site (the hatch sizes
   in board/index.html), so they stay stripes on a TV after a live stream's
   video compression instead of blurring into grey. The legend marks keep the
   site's: wider stripes don't fit in them. In dark mode the stripes are
   thinner, since light lines on a dark ground look heavier than they are. */
.board .grid-chart pattern rect { width: 2.5px; }
.board .vmap pattern .stripe { width: 3px; }
.board .bar .hatch { background: repeating-linear-gradient(135deg, var(--ink) 0 3px, var(--surface) 3px 9px); }
@media (prefers-color-scheme: dark) {
  .board .grid-chart pattern rect { width: 2px; }
  .board .vmap pattern .stripe { width: 2.4px; }
  .board .bar .hatch { background: repeating-linear-gradient(135deg, var(--ink) 0 2.4px, var(--surface) 2.4px 9px); }
}

/* A bill's path under the map (bill_path.html, board=true): the vote page's
   row of steps (site.css), sized in em to grow with the board's type. The map
   gives up some height to make room. */
.board-side { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 40px); min-width: 0; }
.board-path { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board-path .step-text { font-size: 0.8em; line-height: 1.25; }
.board-path .step-text .kicker, .board-path .step-text .small { font-size: 0.85em; }
/* A row from 900px, where the board turns two-column (site.css's own row
   starts at 960px). These match site.css's selectors in specificity, so they
   win only by loading after it (default.html). */
@media (min-width: 900px) {
  .board-path .bill-path { flex-direction: row; }
  .board-path .bill-path .step { flex: 1 1 0; flex-direction: column; gap: 0.4em; padding-bottom: 0; padding-right: 0.5em; }
  .board-path .pip { width: 0.8em; height: 0.8em; margin-top: 0; }
  .board-path .step:not(:last-child)::before { left: calc(0.8em + 6px); right: 2px; top: calc(0.4em - 0.75px); bottom: auto; width: auto; height: 1.5px; }
  .board-path .step.done:not(:last-child)::before { left: calc(0.8em + 6px); top: calc(0.4em - 1.25px); width: auto; height: 2.5px; }
}
.board-side:has(.board-path) .vmap svg { max-height: 44vh; }

/* Header: when the page was built, and one dot per screen (board.js), the current one filled. */
.board-dots { display: inline-flex; gap: 8px; align-self: center; }
.board-dots span { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-muted); box-sizing: border-box; }
.board-dots span.on { background: var(--ink-muted); }

.board-list { columns: 1; }
@media (min-width: 900px) { .board-list { columns: 2; column-gap: clamp(24px, 4vw, 96px); } .board-list > li { break-inside: avoid; } }

@media (prefers-reduced-motion: reduce) {
  .board > *, .board.is-cycling .board-screen, .board.is-cycling .board-screen.is-current { transition: none; }
}
