/* Home dashboard: a full-screen monitoring wall of today's Knesset (index.html, with static/dash.js).
   Fullscreen/TV: 4 x 3 widgets filling the screen. Normal desktop: compact chart row. Below 1100 px: 2 columns.
   699 px and below: 1 column. Long lists scroll inside their widget; phone cards shrink for short/empty content.
   Signs over words: ✓ passed, ✗ rejected, ● live, ○ upcoming, ■ ended, ⊘ cancelled, each with a legend;
   the existing temporary label identifies a provisional roster; seat counts have no asterisks.
   Faction colours come from live.json: a neutral categorical palette, never the parties' own colours.
   No inline styles anywhere (CSP style-src 'self'): colours and widths are set from dash.js.
   The tokens, font, header bar, card, notice and links are in base.css, shared with every page. */

html, body { height: auto; }

/* Top bar: the status, clock and date are in base.css (shared with every page); the home adds its data time and controls. */
.ctl { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; font-size: max(12px, .8rem); }
.ctl button, .ctl select { font: inherit; background: #ffffff1f; color: inherit; border: 1px solid #ffffff40; border-radius: .3rem; padding: .2rem .5rem; cursor: pointer; min-width: 24px; min-height: 24px; transition: background-color 130ms ease, border-color 130ms ease; }
.ctl button:hover, .ctl select:hover, .settings summary:hover { background: #ffffff33; }
.ctl button:active { background: #ffffff4d; }
.ctl select option, .settings-panel select option { background: var(--card); color: var(--ink); }
.ctl input[type=range] { width: 9rem; min-height: 24px; accent-color: var(--warn); }
.settings { position: relative; }
.settings summary { cursor: pointer; padding: .2rem .5rem; border: 1px solid #ffffff40; border-radius: .3rem; min-width: 24px; min-height: 24px; transition: background-color 130ms ease, border-color 130ms ease; }
.settings-panel { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + .5rem);
  width: min(17rem, calc(100vw - 2rem)); padding: 1rem; background: var(--topbg); color: var(--topink);
  border: 1px solid #ffffff40; border-radius: var(--radius-s); box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 18%, transparent); }
.settings[open] > .settings-panel { animation: tip-in 130ms cubic-bezier(.16, 1, .3, 1); }
.settings summary:focus-visible { outline-color: var(--warn); }
.settings-panel label { display: block; margin-bottom: .5rem; }
.settings-panel select { width: 100%; }
.stale { background: var(--warn); color: var(--warnink); padding: .3rem 1rem; font-size: .85rem; font-weight: 500; }
.stale a { font-weight: 700; }
.stale button { font: inherit; font-weight: 700; color: inherit; background: none; border: 1px solid currentColor; padding: .2rem .5rem; cursor: pointer; }

/* Until a day's data has loaded (loading, failed fetch, no recording) the plenum counters and the presence line stay
   blank: zeros there would read as "no votes" and a lone separator as a source. The seat picker has no seats to pick
   yet and keeps its room. dash.js adds .has-data. */
body.dash:not(.has-data) :is(.score, #pBar, #pLast, .presence-time) { visibility: hidden; }
body.dash:not(.has-data) .seat-picker { visibility: hidden; }
body.dash:not(.loading):not(.has-data) :is(.score, #pBar, #pLast, .presence-time, #hemiSvg, .seat-picker, #chartSvg) { display: none; }  /* nothing is coming: no room kept */
/* The first card's loading line: out of flow, so it moves nothing; dash.js drops .loading when data arrives or the first try fails. */
#bld, #today { position: relative; }
/* A live region (aria-live): it stays in the page for a screen reader, drawn only while loading, then it says "loaded" once. */
.load-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; color: var(--mute); font-size: .85rem; }
body.dash.loading:not(.has-data) .load-line { inset-inline: 1rem; bottom: .6rem; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.legend .empty { grid-column: 1 / -1; padding: 0; }
.no-seats #hemiSvg { display: none; }

/* Room kept for what the data fills in, so a slow answer does not push the page down when it arrives: only while the first
   answer is awaited. After a failed load or a missing recording nothing is coming, and the cards take what they hold. */
@media (min-width: 1100px) and (min-height: 561px) { body.dash.loading:not(.has-data):not(.monitor) #hemi { min-height: 17.8rem; } }
@media (max-width: 699px) {
  body.dash.loading:not(.has-data) #today > .body { min-height: 7.8rem; }
  body.dash.loading:not(.has-data) #pStat { min-height: 1.3rem; }
  body.dash.loading:not(.has-data) .legend { min-height: 16rem; }
}

/* From 700 to 939 px the bar wraps to two rows once the date and the data time are filled in: keep that height from the start,
   so the page does not drop by a row when the first answer arrives. */
@media (min-width: 700px) and (max-width: 939px) { body.dash .top { min-height: 5.35rem; } }

/* Wider than a phone: the root clamp can shrink these under their roles. Floors match the phone
   card title (16px), phone legend (14px) and the reading/label roles. Phones keep their own sizes. */
@media (min-width: 700px) {
  body.dash .w > h2 { font-size: max(16px, .85rem); }
  body.dash .w > h2 .k { font-size: max(14px, .75rem); overflow: visible; flex-wrap: wrap; justify-content: flex-end; }
  body.dash .w > h2 { flex-wrap: wrap; row-gap: .2rem; }
  body.dash .status { font-size: max(14px, .85rem); }
  body.dash .sb { font-size: max(12px, .78rem); }
}

/* The newest site update, one muted line between the bar and the widgets, the whole line a link to /whatsnew/ (build.py
   home_whatsnew_line). Quiet on purpose: card-label size and colour, no box, one line cut with an ellipsis. The TV wall and
   fullscreen are monitoring screens and drop it.
   Nov 29: the wide layout fits a 16:9 screen and the line added a scroll bar there, so on that layout the line has a fixed
   height (--site-new-h) and the third widget row (lists, they scroll) gives that height back: the page is as tall as without
   the line. dash.js turns the line through the last 10 entries every 30 s (a short fade and rise; none with reduced motion). */
body > .site-new { margin: 0; padding: var(--gap) var(--gap) 0; padding-inline-start: calc(var(--gap) + var(--rail-w)); font-size: max(13px, .8rem); color: var(--mute); }
.site-new a { display: flex; align-items: baseline; gap: .45rem; max-width: max-content; min-width: 0; text-decoration: none; padding-block: .25rem; }
.site-new a :is(time, .site-new-t) { transition: opacity 320ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1); }
.site-new a.turning :is(time, .site-new-t) { opacity: 0; transform: translateY(-.45em); }  /* the old entry rises out */
.site-new a.entering :is(time, .site-new-t) { opacity: 0; transform: translateY(.45em); transition: none; }  /* the new one rises in */
@media (min-width: 1100px) and (min-height: 561px) {
  body { --site-new-h: 1.75rem; }
  /* Centred between the bar and the widgets: the band takes the grid's top padding too, so the gap is equal above and below. */
  body > .site-new { box-sizing: border-box; display: flex; align-items: center; height: calc(var(--site-new-h) + var(--gap)); padding-block: 0; line-height: 1.25; overflow: hidden; }
  body > .site-new a { padding-block: 0; }
  body:not(.monitor) > .site-new + .grid { padding-top: 0; }
  body:not(.monitor) > .site-new + .grid { grid-template-rows: auto 13rem calc(15rem - var(--site-new-h)) 12rem; }
}
.site-new-k { flex: none; font-weight: 500; }
.site-new time { flex: none; }
.site-new-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
.site-new a:hover { color: var(--ink); } .site-new a:hover .site-new-t { text-decoration-color: currentColor; }
body.monitor .site-new { display: none; }
/* Dec 4: the government widget (build.py home_government_widget), the owner's choice "E": big, colourful and animated while the
   government is being formed, then removed. It sits between the what's-new band and the widgets; while it is there the wide
   home scrolls instead of fitting one screen. Animation stops for a reader who asks for less motion. */
.gvw { margin: var(--gap) var(--gap) 0; margin-inline-start: calc(var(--gap) + var(--rail-w)); background: #fff; border-top: 6px solid #0b2a5b; border-radius: 8px; padding: 1.1rem 1.5rem; color: var(--ink); display: flex; flex-direction: column; gap: .9rem; }
body.monitor .gvw, body.tv .gvw { display: none; }
.gvw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.gvw-k { margin: 0; font-size: .875rem; font-weight: 500; color: var(--mute); }
.gvw-stage { margin: 0; font-size: 1.65rem; font-weight: 700; color: #0b2a5b; line-height: 1.2; animation: gvwRise .5s ease-out both; }
.gvw-more { font-size: .95rem; white-space: nowrap; }
.gvw-path { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.gvw-path::before, .gvw-path::after { content: ""; position: absolute; top: 15px; inset-inline-start: 7%; height: 5px; border-radius: 3px; }
.gvw-path::before { inset-inline-end: 7%; background: #dbe2ec; }
.gvw-path::after { width: 0; background: #1d5fd0; animation: gvwGrow 1s .2s cubic-bezier(.2, .8, .2, 1) forwards; }
.gvw-path.at-1::after { --gvw-w: 14.33%; } .gvw-path.at-2::after { --gvw-w: 28.67%; } .gvw-path.at-3::after { --gvw-w: 43%; }
.gvw-path.at-4::after { --gvw-w: 57.33%; } .gvw-path.at-5::after { --gvw-w: 71.67%; } .gvw-path.at-6::after, .gvw-path.at-7::after { --gvw-w: 86%; }
.gvw-path li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; font-size: .875rem; color: var(--mute); }
.gvw-dot { width: 34px; height: 34px; box-sizing: border-box; border-radius: 50%; border: 3px solid #c5cfdd; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; }
.gvw-path li.done { color: var(--ink); } .gvw-path li.done .gvw-dot { background: #0b2a5b; border-color: #0b2a5b; color: #fff; }
.gvw-path li.now { color: var(--ink); font-weight: 700; }
.gvw-path li.now .gvw-dot { background: #1d5fd0; border-color: #1d5fd0; color: #fff; animation: gvwPulse 1.8s ease-out infinite; }
.gvw-dt { font-size: .75rem; color: var(--mute); font-weight: 400; min-height: 1em; }
.gvw-step { display: none; margin: -.4rem 0 0; font-size: .875rem; color: var(--mute); } .gvw-step b { color: var(--ink); }
.gvw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .gvw-cards.one { grid-template-columns: 1fr; }
.gvw-card { border-radius: 8px; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.gvw-days { background: #fff8f3; border: 1px solid #f6d6bf; border-top: 5px solid #c2410c; }
.gvw-race { background: #f2f9f8; border: 1px solid #c9e6e2; border-top: 5px solid #0f766e; flex-direction: row; align-items: stretch; }
.gvw-race-t { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.gvw-big { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.gvw-big b { font-size: 4rem; line-height: .9; font-weight: 700; color: #0b2a5b; animation: gvwRise .5s ease-out both; }
.gvw-days .gvw-big b { color: #c2410c; } .gvw-big.won b { color: #0f766e; }
.gvw-big > span { font-size: 1.1rem; font-weight: 500; }
.gvw-big em { font-style: normal; font-size: .875rem; color: var(--mute); margin-inline-start: auto; }
.gvw-note { margin: auto 0 0; font-size: .8rem; color: var(--mute); }
.gvw-tiles { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.gvw-tiles i { height: 20px; border-radius: 3px; box-sizing: border-box; border: 2px solid #f6c7a5; background: #fde2cf; }
.gvw-tiles i.past { background: #0b2a5b; border-color: #0b2a5b; }
.gvw-tiles i.today { background: #c2410c; border-color: #c2410c; animation: gvwBeat 1.1s ease-in-out infinite; }
.gvw-tiles i.ext { background: transparent; border: 2px dashed #8a96a8; }
.gvw-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .875rem; }
.gvw-legend li { display: inline-flex; align-items: center; gap: .3rem; } .gvw-legend svg { width: .7rem; height: .7rem; }
.gvw-hemi { width: 270px; height: 151px; flex: none; align-self: flex-end; }
.gvw-on { animation: gvwFade 1.2s .3s ease-out both; }
.gvw-glow { animation: gvwGlow 1.6s ease-in-out infinite; }
@keyframes gvwGrow { to { width: var(--gvw-w, 0); } }
@keyframes gvwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gvwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gvwPulse { 0% { box-shadow: 0 0 0 0 rgba(29, 95, 208, .55); } 70% { box-shadow: 0 0 0 12px rgba(29, 95, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 95, 208, 0); } }
@keyframes gvwBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes gvwGlow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* The wide home fits one screen (100dvh, below); with the widget above the grid it grows and scrolls instead. */
@media (min-width: 1100px) and (min-height: 561px) { body.dash:not(.monitor):has(> .gvw) { height: auto !important; } }
@media (max-width: 700px) {
  .gvw { margin: .5rem; margin-bottom: 0; margin-inline-start: calc(.5rem + var(--rail-w)); padding: .9rem; }
  .gvw-head { flex-direction: column; align-items: flex-start; }
  .gvw-stage { font-size: 1.35rem; }
  .gvw-dot { width: 26px; height: 26px; font-size: .75rem; border-width: 2px; }
  .gvw-path::before, .gvw-path::after { top: 11px; height: 4px; }
  .gvw-path :is(.gvw-nm, .gvw-dt) { display: none; }
  .gvw-step { display: block; }
  .gvw-cards { grid-template-columns: 1fr; }
  .gvw-race { flex-direction: column; }
  .gvw-hemi { width: 100%; height: auto; }
  .gvw-big b { font-size: 3.4rem; }
  .gvw-tiles { gap: 3px; } .gvw-tiles i { height: 17px; }
}

/* Normal browsing gives the chart one compact row; fullscreen/TV keeps the monitoring wall. */
.grid { flex: initial; min-height: 0; display: grid; gap: var(--gap); padding: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 13rem 15rem 12rem;
  grid-template-areas: "hemi hemi plen" "bld agenda feed" "cmt agenda feed" "chart chart chart"; }
.w { min-height: 0; scroll-margin-top: var(--gap); }
.w > h2 { white-space: nowrap; }
#bld, #today { grid-area: bld; } .hemi-row { grid-area: hemi; } #plen { grid-area: plen; } #feed { grid-area: feed; }
#cmt { grid-area: cmt; } #agenda { grid-area: agenda; } #chart { grid-area: chart; }

/* Marks (TV: the bright mark colours take a dark glyph, white on them is 2.4:1) */
body.tv .m.ok, body.tv .m.no { color: var(--card); }
.m { display: inline-grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .75rem; font-weight: 700; color: #fff; line-height: 1; }
.m.ok { background: var(--ok); } .m.no { background: var(--no); }
.m.pend { background: none; border: 2px solid var(--mute); width: .8rem; height: .8rem; }
.m.live { background: var(--live); animation: p 1.4s infinite; width: .8rem; height: .8rem; }
.m.done { background: var(--mute); border-radius: .15rem; width: .7rem; height: .7rem; }
.m.cx { background: none; color: var(--mute); font-size: 1rem; width: auto; }
.m.skip { background: none; color: var(--mute); width: auto; }
.sw { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: .15rem; }
.sw.head { background: var(--head); } .sw.away { background: color-mix(in srgb, var(--head) calc(var(--absent) * 100%), var(--card)); border: 1px solid var(--mute); }
.sw.blue { background: var(--blue); opacity: .5; } .sw.cmt { background: var(--cmt); }
.sw.ok { background: var(--ok); } .sw.no { background: var(--no); }
.cf { color: var(--blue); } .ca { color: var(--no); } .cb { color: var(--ab); }

/* In the building now, or today's counts when presence is off */
.delta { font-size: 1rem; font-weight: 500; } .delta.up { color: var(--ok); } .delta.down { color: var(--no); }
.spark { flex: 1; min-height: 2.5rem; width: 100%; margin-top: .4rem; }
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-top: .4rem; font-size: .95rem; color: var(--mute); }
.tally div { display: flex; align-items: center; gap: .5rem; }
.tally b { font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--head); }
#tvb, #fs { box-sizing: border-box; width: 2rem; height: 2rem; min-width: 2rem; min-height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#fs svg { width: .95rem; height: .95rem; display: block; }
.ctl svg { display: block; }
.nextup { margin-top: auto; border-top: 1px solid var(--line); padding-top: .45rem; font-size: .8rem; color: var(--mute); overflow: hidden; }
.nextup div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }

/* Hemicycle */
#hemi > .body { display: block; }
.seat-map { min-width: 0; }
#hemiSvg { display: block; width: 100%; min-height: 0; max-height: 18rem; overflow: visible; touch-action: none; }
#hemiSvg circle { cursor: pointer; stroke-width: .6; }
#hemiSvg circle:not(.hit) { transform-box: fill-box; transform-origin: center; transition: transform 140ms cubic-bezier(.16, 1, .3, 1), stroke-width 140ms ease, fill 180ms ease, fill-opacity 180ms ease; }
#hemiSvg circle.hit { fill: transparent; stroke: none; }  /* the seat's pointer target, larger than the dot and drawn under it */
#hemiSvg .seat:hover circle:not(.hit), #hemiSvg .seat.active circle:not(.hit) { animation: none; transform: scale(1.24); stroke: var(--head); stroke-width: 1.5; }
#hemiSvg .seat, #hemiSvg .hit { touch-action: none; user-select: none; -webkit-user-select: none; }
.presence-count { display: flex; justify-content: center; align-items: baseline; gap: .5rem; margin-top: .4rem; font-size: .95rem; }
.presence-count b { font-size: 1.6rem; color: var(--head); }
#hemiSvg circle.away { fill-opacity: var(--absent); }
#hemiSvg circle.away:not(.overnight) { stroke: var(--mute); stroke-width: 1; }  /* SC 1.4.11: the empty seat is an outline at 3:1 or more, not only a faint fill */
#hemiSvg circle.overnight { fill-opacity: 0; stroke-width: 1; stroke-dasharray: 1.7 1.1; }  /* flag on since an earlier sitting day */
#hemiSvg circle.unknown { fill: var(--track); stroke: var(--mute); fill-opacity: 1; }  /* no usable observation: neither in nor out */
#hemiSvg circle.just-entered { transform-box: fill-box; transform-origin: center; stroke-width: 1.3; animation: seat-entry 2s ease-in-out infinite; }
@keyframes seat-entry { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .7; } }
#hemiSvg .seat:focus-visible { outline: none; }
#hemiSvg .seat:focus-visible circle { stroke: var(--ink); stroke-width: 2; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .8rem; font-size: max(13px, .85rem); }
.legend div { display: flex; align-items: baseline; gap: .35rem; min-width: 0; }
.legend .sw { align-self: flex-start; margin-top: .28em; }  /* beside the first line of a name that wraps */
.legend .mark { align-self: center; }
.legend .n { min-width: 0; flex: 1; overflow-wrap: normal; word-break: normal; }
.legend b { font-weight: 700; flex: none; }
.presence-key { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin-top: .9rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: max(12px, .78rem); color: var(--mute); }
.presence-key > span { display: flex; align-items: center; gap: .3rem; }
.seat-state { width: .65rem; height: .65rem; border-radius: 50%; background: var(--head); border: 1px solid var(--head); }
.seat-state.away { background: color-mix(in srgb, var(--head) 16%, var(--card)); }
.presence-time { font-size: max(12px, .75rem); color: var(--mute); margin-top: .35rem; }
#presenceTime { margin-bottom: 0; text-align: center; justify-content: center; }
/* Dec 1: the earlier-day flags line sits under the map beside the age line (it was a third line of the count, which on the
   wide layout sits inside the arc and was drawn over the bottom seats). Same type as the age line; the two share one row. */
.presence-notes { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .4rem; }
.presence-earlier { font-size: max(12px, .75rem); color: var(--mute); margin: .35rem 0 0; text-align: center; }
.presence-time:not([hidden]) + .presence-earlier::before { content: "· "; }
.plenum-role { font-size: max(14px, .85rem); margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.plenum-role:empty { display: none; }
.seat-picker { display: none; }
@media (max-width: 1099px), (pointer: coarse) {
  .seat-picker { display: block; font-size: 14px; margin-top: .3rem; }
  .seat-picker select { display: block; width: 100%; min-height: 44px; margin-top: .25rem; font: inherit; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); }
}
.seat-tip { position: fixed; z-index: 10; max-width: min(22rem, calc(100vw - 16px)); padding: .55rem .75rem; background: var(--head); color: var(--card); border-radius: var(--radius-s); font-size: max(14px, .85rem); line-height: 1.4; box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 14%, transparent); }
.seat-tip:not([hidden]) { animation: tip-in 130ms cubic-bezier(.16, 1, .3, 1); }
.seat-tip.glide { transition: left 130ms cubic-bezier(.16, 1, .3, 1), top 130ms cubic-bezier(.16, 1, .3, 1); }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
.seat-tip strong, .seat-tip span { display: block; }
.seat-tip span { font-size: .9em; }
.seat-tip .tip-fac { display: flex; align-items: center; gap: .35rem; }
/* The tip is navy on the light page and white on the TV screen: the mark takes the opposite tone */
.seat-tip .mark-light { display: none; } .seat-tip .mark-dark { display: inline-block; }
body.tv .seat-tip .mark-light { display: inline-block; } body.tv .seat-tip .mark-dark { display: none; }
.seat-tip .sw { border: 1px solid color-mix(in srgb, var(--card) 35%, transparent); }
.seat-tip a { display: flex; align-items: center; min-height: 44px; min-width: 44px; color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.seat-tip a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (min-width: 1100px) and (min-height: 561px) {
  body.monitor { height: 100dvh; }
  .monitor .grid { flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, 1.15fr); grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas: "bld hemi plen feed" "cmt hemi agenda feed" "cmt chart agenda feed"; }
  .monitor #hemi > .body { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
  .monitor .seat-map { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .monitor #hemiSvg { flex: 1; max-height: none; }
}

/* Nov 29 (owner: no scroll bar on the home): on the wide layout with no video playing, the page is one screen tall. The
   first row takes what the fixed rows leave (never under 12rem) and the seat map scales into it, as it does beside the
   video; the "in the building" count sits in the hollow of the arc instead of adding a line under it. A short screen
   still scrolls (the 13.5rem floor keeps the arc's hollow taller than the count). With the video on, see the next block.
   Nov 30: on that short screen the grid grows to its rows (min-height) and the footer stays under it; before, the grid
   kept the screen's height and the footer was drawn over the chart. */
@media (min-width: 1100px) and (min-height: 561px) {
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) { height: 100dvh; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) > :not(.grid) { flex-shrink: 0; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) > .grid { flex: 1 1 0; box-sizing: content-box; min-height: calc(48.5rem + 3 * var(--gap));
    grid-template-rows: minmax(13.5rem, 1fr) 13rem minmax(10rem, calc(15rem - var(--site-new-h, 0rem))) 12rem; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) #hemi { contain: size; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) #hemi > .body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) .seat-map { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) #hemiSvg { flex: 1; min-height: 0; max-height: 18rem; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) .presence-count { position: absolute; inset-inline: 0; bottom: 0;
    flex-direction: column; align-items: center; gap: 0; margin: 0; line-height: 1.1; pointer-events: none; }
  /* Dec 1 (owner: the text under the seat map looked bad): the age line ("נצפה HH:MM", shown when presence is over 2 minutes
     old) is in flow under the map, but the count was pinned to the bottom of the whole block, so it was drawn over the age
     line. The age line keeps its own row under the map, and the count is lifted by exactly that row's height, so it sits on
     the map's bottom edge as it does when the age line is hidden. */
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) .presence-time { margin: .2rem 0 0; text-align: center; line-height: 1.1; }
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) .presence-earlier { margin: .2rem 0 0; line-height: 1.1; }
  /* Dec 1: the age line and the earlier-day line share that one row, so the arc never gives up two rows (on a short screen
     two stacked rows shrank the arc until the count touched its inner seats). */
  body.dash:not(.monitor):not(:has(#plive:not([hidden]):not(.no-play))) .seat-map:has(> .presence-notes > :not([hidden])) .presence-count {
    bottom: calc(1.1 * max(12px, .75rem) + .2rem); }
}
/* Nov 30 (owner: no scroll bar, the video card showing too): the page is one screen tall with the video on as well. The
   first row stays exactly the video card's height (its 16:9 video under the headline, no bands; the rules further down)
   and the rows under it take what is left: the lists row gives height back first, down to 10rem (its lists scroll), and
   on a taller screen all three grow in proportion, so no band is left at the bottom. Only when the lists row is at its
   floor does the video card get narrower: its width is the one whose 16:9 height fits the row that is left (floor
   13.5rem, as without the video), so it stays band-free and the seat map takes the width it gives up. The grid is the
   size container that the row's height is measured from (cqh); the video headline has a fixed height for that sum. A
   contained grid does not grow with its rows, so its floor is set here (13.5rem + the three floors 35rem + 3 gaps, its
   content box): a short screen scrolls as before, and the footer stays under the grid (the bar, the what's-new line and
   the footer keep their height instead of shrinking into the one screen). */
@media (min-width: 1100px) and (min-height: 561px) {
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) { height: 100dvh; }
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) > :not(.grid) { flex-shrink: 0; }
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) > .grid { flex: 1 1 0; container-type: size;
    box-sizing: content-box; min-height: calc(48.5rem + 3 * var(--gap));
    grid-template-rows: max-content minmax(13rem, 13fr) minmax(10rem, 13fr) minmax(12rem, 12fr); }
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) .hemi-row {
    --vid-h2: calc(1rem + 1.25 * max(16px, .85rem) + 1px);
    --vid-row: max(13.5rem, calc(100cqh - 3 * var(--gap) - 35rem)); }
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) #plive > h2 { box-sizing: border-box; flex: none; height: var(--vid-h2); overflow: hidden; }
  body.dash:not(.monitor):has(#plive:not([hidden]):not(.no-play)) .hemi-row > #plive { max-width: calc((var(--vid-row) - var(--vid-h2) - 2px) * 16 / 9); }
}

/* Plenum */
.score { display: flex; gap: 1.4rem; align-items: center; }
.score .s { display: flex; align-items: center; gap: .4rem; font-size: 2.4rem; font-weight: 700; }
.score .m { width: 1.9rem; height: 1.9rem; font-size: 1.1rem; }
.num-step { display: inline-block; animation: num-step 240ms cubic-bezier(.16, 1, .3, 1); }
@keyframes num-step { from { transform: translateY(.28em); opacity: .25; } to { transform: translateY(0); opacity: 1; } }
.live-settle { animation: settle 280ms cubic-bezier(.16, 1, .3, 1); }
@keyframes settle { from { background: color-mix(in srgb, var(--warn) 28%, transparent); } to { background: transparent; } }
/* The building headline is the large digit. The shared step would fade it out and cover the line under it. */
#bN.num-step { animation: bld-step 240ms cubic-bezier(.16, 1, .3, 1); }
@keyframes bld-step { from { transform: translateY(-.1em); opacity: .72; } to { transform: none; opacity: 1; } }
.status { display: flex; align-items: center; gap: .45rem; font-size: .85rem; margin-bottom: .4rem; }
.bar { display: flex; flex: none; height: .45rem; border-radius: .25rem; overflow: hidden; background: var(--track); margin: .5rem 0; }
.bar span { display: block; height: 100%; width: 0; transition: width 220ms cubic-bezier(.16, 1, .3, 1); }
.bar .ok { background: var(--ok); } .bar .no { background: var(--no); } .bar .for { background: var(--blue); } .bar .ab { background: var(--ab); }
.last { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: auto; font-size: .85rem; min-height: 0; overflow: hidden; }
.last:has(> .sb:only-child:empty) { display: none; }  /* no session today: no rule over a blank line */
.last .tt { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.last .vote-heading { display: flex; gap: .5rem; align-items: flex-start; margin-top: .2rem; }
.last .vote-heading > div { min-width: 0; }
.last .recap-line { margin-top: .2rem; font-size: .85rem; }
.cnts { display: flex; gap: .8rem; font-weight: 700; font-size: .9rem; margin-top: .2rem; }
/* The latest published votes (dash.js votesList): rows of the page's lists inside the plenum card. A title takes up to
   two lines (many titles start with the same words and differ only further on), so ten rows are taller than one grid
   row: on the three-column desktop the card spans the first two rows of its column, beside the seat map and the agenda,
   and the feed takes the third. The card takes the height of those rows and adds nothing to it (contain: size); what
   does not fit scrolls inside the list and the link under it stays in view. Narrower layouts and the phone give the list
   a height of its own. */
.last:has(> .pub-list) { display: flex; flex-direction: column; flex: 1 1 auto; }
.last .pub-head { flex: none; margin-top: .15rem; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; }
.last .pub-key { font-weight: 500; white-space: nowrap; }
.last .pub-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin-top: .3rem; border-block: 1px solid var(--line); }
.last .pub-list:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.last .pub-list .row { padding-inline: 0 .3rem; }
@media (min-width: 700px) {
  .last .pub-list .row { align-items: flex-start; }
  .last .pub-list .row .tx div { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.35; }
  .last .pub-list .row :is(.cn, .tm) { line-height: 1.5; }
}
.last .pub-list .row:last-child { border-bottom: 0; }
.last .pub-list .row .cn { white-space: nowrap; }
/* A vote between candidates: a dash in the mark's column, no passed or rejected. (Not .m.skip: base.css hides .skip, the skip link's class.) */
.m.na { background: none; color: var(--mute); font-size: 1rem; }
.last .pub-more { flex: none; margin-top: .4rem; }
/* The words after each number (for, against, abstained): read out everywhere, seen on the phone, where the row has room
   for them under the title and the colour key above the list is dropped. */
.last .pub-list .vw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1100px) and (min-height: 561px) {
  body:not(.monitor) .grid { grid-template-areas: "hemi hemi plen" "bld agenda plen" "cmt agenda feed" "chart chart chart"; }
  body:not(.monitor) #plen { contain: size; }
  /* Dec 4 (owner: with no broadcast the presence card is too big; give its room to the other cards): while the video card
     is hidden the seat map takes one column, not two, and the agenda runs the full height of the three rows beside it. */
  body:not(.monitor):has(#plive[hidden]) .grid { grid-template-areas: "hemi agenda plen" "bld agenda plen" "cmt agenda feed" "chart chart chart"; }
}
.monitor .last .pub-list { overflow: hidden; }

/* List rows */
.row { display: flex; align-items: center; gap: .55rem; padding: var(--row-y) var(--pad-x); border-bottom: 1px solid var(--line); font-size: .82rem; }
.row .tm { color: var(--mute); min-width: 2.6rem; }
.row .tx { flex: 1; min-width: 0; }
.row .tx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx .s2 { color: var(--mute); font-size: .74rem; }
.row a.src { text-decoration: none; } .row a.src:hover { text-decoration: underline; }
.row:has(a.src):hover, .row:has(.play):hover { background: color-mix(in srgb, var(--track) 65%, transparent); }
.row.cancel .tx { text-decoration: line-through; color: var(--mute); }  /* a colour, not opacity: --mute is at least 4.5:1 on the card */
.row.now { background: color-mix(in srgb, var(--live) 9%, transparent); }
.row.fresh { animation: row-in 260ms cubic-bezier(.16, 1, .3, 1), fl 2.5s ease-out; }
.row.chg { animation: row-chg 320ms cubic-bezier(.16, 1, .3, 1); }
@keyframes row-chg { from { background: color-mix(in srgb, var(--live) 22%, transparent); } to { background: transparent; } }
.row.chg.now { animation: row-now 320ms cubic-bezier(.16, 1, .3, 1); }
@keyframes row-now { from { background: color-mix(in srgb, var(--live) 32%, transparent); } to { background: color-mix(in srgb, var(--live) 9%, transparent); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-.45rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes fl { from { background: color-mix(in srgb, var(--warn) 60%, transparent); } to { background: transparent; } }
.row .cn { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.play { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--blue); color: #fff; text-decoration: none; font-size: .55rem; flex: none; transition: transform 130ms cubic-bezier(.16, 1, .3, 1), background-color 130ms ease; }
.play:hover { transform: scale(1.08); }

/* Day chart */
#chartSvg { flex: 1; min-height: 0; width: 100%; }
#chartSvg .ax { font-size: max(12px, .75rem); fill: var(--mute); }
#chartSvg .grid-l { stroke: var(--line); }
#chartSvg .pres { fill: var(--blue); fill-opacity: .22; } #chartSvg .pres-l { fill: none; stroke: var(--blue); stroke-width: 1.5; }
#chartSvg .cmt-a { fill: var(--cmt); fill-opacity: .18; } #chartSvg .cmt-l { fill: none; stroke: var(--cmt); stroke-width: 1.5; }
#chartSvg .v-ok { fill: var(--ok); } #chartSvg .v-no { fill: var(--no); }
#chartSvg rect.tick-fresh { transform-box: fill-box; transform-origin: bottom center; animation: tick-in 240ms cubic-bezier(.16, 1, .3, 1); }
@keyframes tick-in { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
#chartSvg .now-l { stroke: var(--live); stroke-width: 1.5; }
.spark .pres { fill: var(--blue); fill-opacity: .14; } .spark .pres-l { fill: none; stroke: var(--blue); stroke-width: 1.6; }

/* 1099 px and below (or a short screen): 2 columns, the page scrolls, lists keep a fixed height */
@media (max-width: 1099px), (max-height: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto;
    grid-template-areas: "bld plen" "hemi hemi" "agenda cmt" "chart chart" "feed feed"; }
  html, body { height: auto; }
  .w { min-height: 15rem; } #hemi { min-height: 0; } #agenda, #cmt, #feed { height: 24rem; } #chart { height: 14rem; }
  .legend { max-height: none; }
  .ctl input[type=range] { width: 6rem; }
  .last .pub-list { flex: initial; max-height: min(28rem, 70dvh); }
  /* The fixed height and the minimum are for a list with rows and for the wait; an empty list or a failed load takes what its line needs. */
  body.dash:not(.loading) :is(#agenda, #cmt, #feed):not(:has(> .list > :not(.empty))) { height: auto; min-height: 0; }
  body.dash:not(.loading):not(.has-data) #chart { height: auto; min-height: 0; }
}
/* 699 px and below: one column */
@media (max-width: 699px) {
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bld" "plen" "hemi" "agenda" "cmt" "feed" "chart"; }
  body { overflow-x: hidden; }
  .w { min-height: 0; } #hemi { min-height: 0; }
  #hemi > .body { display: block; }
  #hemiSvg { max-height: 16rem; }
  .seat-picker { display: block; font-size: 14px; margin-top: .3rem; }
  .seat-picker select { display: block; width: 100%; min-height: 44px; margin-top: .25rem; font: inherit; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); }
  .seat-info { width: 100%; }
  .presence-time a { display: inline-flex; align-items: center; min-height: 44px; }
  .presence-time { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
  .presence-key { margin-top: .5rem; padding-top: .4rem; }
  .legend { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .legend div { gap: .5rem; }
  /* The controls are a row of their own under the frozen bar and the date (base.css), in the bar's colours, and scroll away with the page */
  .ctl { position: relative; flex: none; width: 100%; justify-content: flex-end; flex-wrap: wrap; padding: 0 .6rem .4rem; background: var(--topbg); color: var(--topink); font-size: 14px; }
  .ctl button, .ctl select { min-width: 44px; min-height: 44px; }
  #tvb, #fs { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  #fs svg { width: 18px; height: 18px; }
  .settings summary { min-height: 44px; padding-block: 10px; }
  /* the settings panel spans .ctl (position: relative above): it opened off screen when the button wrapped to the right edge */
  .settings { position: static; }
  .settings-panel { inset-inline: .6rem; width: auto; }
  #replayCtl { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
  .ctl input[type=range] { min-height: 44px; flex: 1; min-width: 0; }
  .site-new a { align-items: center; min-height: 44px; padding-block: 0; }  /* a full-size tap target; the line stays one line */
  .w > h2 { flex-wrap: wrap; white-space: normal; } .w > h2 .k { flex-wrap: wrap; }
  .status, .last, .nextup, .legend, .cnts, .tally { font-size: 14px; }
  .row { font-size: 16px; line-height: 1.5; align-items: flex-start; }
  .row .tx div { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; word-break: normal; }
  .row .tx .s2, .row .cn { font-size: 14px; }
  .row .tm { min-width: 3.2rem; }
  .nextup div { white-space: normal; }
  .play { min-width: 44px; min-height: 44px; font-size: 14px; }
  .row a.src { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; text-decoration: underline; }
  #agenda, #cmt, #feed { height: auto; }
  #agenda > .list, #cmt > .list, #feed > .list { flex: initial; max-height: min(28rem, 70dvh); }
  /* A published vote: the title on its own line, the numbers with their words and the date under it. */
  .last .pub-list .row { flex-wrap: wrap; row-gap: 0; padding-block: .5rem; }
  .last .pub-list .row .tx { flex: 1 1 calc(100% - 2.2rem); }
  .last .pub-list .row .cn { margin-inline-start: calc(1.25rem + .55rem); font-weight: 500; }
  .last .pub-list .row .tm { min-width: 0; font-size: 14px; }
  .last .pub-list .vw { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .last .pub-key { display: none; }
  .last .pub-more a { display: inline-flex; align-items: center; min-height: 44px; }
  .last .pub-more { margin-top: 0; }
  /* Optional original density; source controls retain their larger hit areas. */
  .compact-rows .row { font-size: .82rem; line-height: normal; align-items: center; }
  .compact-rows .row .tx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .compact-rows .row .tx .s2, .compact-rows .row .cn { font-size: .74rem; }
  .compact-rows .row .tm { min-width: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .m.live, .row.fresh, .row.chg, .row.chg.now, .live-settle, #hemiSvg circle.just-entered, .seat-tip:not([hidden]), .settings[open] > .settings-panel, .num-step, #bN.num-step, #chartSvg rect.tick-fresh, .hemi-row > #plive:not([hidden]) { animation: none; }
  .ctl button, .ctl select, .settings summary, #hemiSvg circle:not(.hit), .seat-tip.glide, .bar span, .play, #pliveStart, .site-new a :is(time, .site-new-t) { transition: none; }
  #hemiSvg .seat:hover circle:not(.hit), #hemiSvg .seat.active circle:not(.hit), .play:hover, #pliveStart:hover, #pliveStart:active { transform: none; }
  .gvw, .gvw *, .gvw-path::after { animation: none !important; }  /* the government widget (above) */
  .gvw-path::after { width: var(--gvw-w, 0); }
}

/* Desktop strip: the 20 newest posts of MKs on X (static/x-feed.js; rows are styled in base.css). Built only with
   build.py --x-feed; shown only on a wide desktop window, never on a phone, in TV mode or before the feed is accepted. */
#xfeed { display: none; }
@media (min-width: 1280px) and (min-height: 561px) {
  body.has-xfeed:not(.monitor) .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(17rem, 21rem);
    grid-template-areas: "hemi hemi plen xfeed" "bld agenda plen xfeed" "cmt agenda feed xfeed" "chart chart chart xfeed"; }
  body.has-xfeed:not(.monitor):has(#plive[hidden]) .grid {  /* no broadcast: as above, with the X column */
    grid-template-areas: "hemi agenda plen xfeed" "bld agenda plen xfeed" "cmt agenda feed xfeed" "chart chart chart xfeed"; }
  body.has-xfeed:not(.monitor) #xfeed:not([hidden]) { display: flex; grid-area: xfeed; contain: size; }
  body.has-xfeed:not(.monitor) #xfeed .xt:not(.expanded) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  body.has-xfeed:not(.monitor) #xfeed .xexp { display: inline-block; }
}
/* TV / fullscreen wall: a fifth column, the 6 newest posts, larger type, nothing to scroll. */
@media (min-width: 1100px) and (min-height: 561px) {
  body.has-xfeed.monitor .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1.35fr);
    grid-template-areas: "bld hemi plen feed xfeed" "cmt hemi agenda feed xfeed" "cmt chart agenda feed xfeed"; }
  body.has-xfeed.monitor #xfeed:not([hidden]) { display: flex; grid-area: xfeed; contain: size; }
  .monitor #xList { overflow: hidden; }
  .monitor #xfeed .xp { gap: .8rem; padding-block: .8rem; }
  .monitor #xfeed .xa { width: 3.2rem; height: 3.2rem; }
  .monitor #xfeed .xn { font-size: 1.15rem; }
  .monitor #xfeed .xt { font-size: 1.3rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .monitor #xfeed .xu, .monitor #xfeed .xf { font-size: .95rem; }
  .monitor #xfeed .xmore, .monitor #xfeed .xv { display: none; }
}
#xList { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* Live plenum channel (static/dash.js, plenumLive): its own card next to the seats card, only while the plenum sits.
   The seats card and the video card share the "hemi" grid area (.hemi-row). Desktop and tablet: side by side, the video
   about 40% of the area; the video fills its card edge to edge under the headline (no padding, no bands), so the card is
   exactly as tall as its 16:9 video, and the seats card and the plenum card beside it take that height. TV/fullscreen:
   the video card above the seats card. Phone: under the seats card.
   With no plenum sitting the video card is hidden and the seats card fills the area, as before. */
.hemi-row { display: flex; gap: var(--gap); min-width: 0; min-height: 0; }
.hemi-row > #hemi { flex: 3 1 0; }
.hemi-row > #plive { flex: 2 1 0; }
.hemi-row > #plive:not([hidden]) { animation: plive-in 320ms cubic-bezier(.16, 1, .3, 1); }
@keyframes plive-in { from { flex-grow: .001; opacity: 0; transform: scale(.97); } to { flex-grow: 2; opacity: 1; transform: scale(1); } }
.plive > .body { flex: 1; min-height: 0; display: flex; padding: 0; }
.plive-link { color: inherit; text-decoration: none; }
.plive-link:hover { text-decoration: underline; }
.plive-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plive-name, .plive-sel { flex: 1 1 0; min-width: 0; font: inherit; font-size: .8rem; color: var(--head); }
.plive-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plive-sel { max-width: 100%; min-height: 0; padding: .1rem .25rem; text-overflow: ellipsis; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); }
.plive-sel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plive-name[hidden], .plive-sel[hidden] { display: none; }
.plive.committee > h2 .k { display: none; }
.plive-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
#pliveVideo { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
#pliveStart { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; max-width: 90%; font: inherit; font-weight: 700;
  padding: .5rem 1rem; min-height: 44px; cursor: pointer; color: var(--card); background: var(--head);
  border: 1px solid color-mix(in srgb, var(--card) 28%, transparent); border-radius: var(--radius-s);
  transition: background-color 130ms ease, border-color 130ms ease, transform 130ms cubic-bezier(.16, 1, .3, 1); }
#pliveStart:hover { background: var(--blue); border-color: color-mix(in srgb, var(--card) 45%, transparent); transform: scale(1.03); }
#pliveStart:active { transform: scale(.98); }
#pliveStart:focus-visible, #pliveVideo:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plive.no-play > .body { display: none; }
.hemi-row > #plive.no-play { align-self: flex-start; }
@media (max-width: 699px) {
  .hemi-row { flex-direction: column; }
  .hemi-row > #hemi, .hemi-row > #plive { flex: 0 0 auto; }
}
@media (min-width: 700px) {
  /* Beside the seats card the row is exactly as tall as the video card (the card takes its height from its 16:9 video),
     so neither the seats card nor the plenum card beside it may stretch the row: both take that height. The seats arc
     scales to fit; the plenum card's long text (the last vote, the last sitting's votes) scrolls inside the card. */
  body:not(.monitor) .hemi-row:has(> #plive:not([hidden]):not(.no-play)) > #hemi { contain: size; }
  body:not(.monitor) .hemi-row:has(> #plive:not([hidden])) > #hemi > .body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
  body:not(.monitor) .hemi-row:has(> #plive:not([hidden])) .seat-map { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body:not(.monitor) .hemi-row:has(> #plive:not([hidden])) #hemiSvg { flex: 1; min-height: 0; max-height: none; }
}
@media (min-width: 1100px) and (min-height: 561px) {
  /* The plenum card shares the row only on the wide layout (below it has its own row there and keeps its height). */
  body:not(.monitor) .grid:has(#plive:not([hidden]):not(.no-play)) > #plen { contain: size; }
  body:not(.monitor) .grid:has(#plive:not([hidden]):not(.no-play)) > #plen .last { overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 700px) {
  .monitor .hemi-row { flex-direction: column; }
  .monitor .hemi-row > #plive { order: -1; flex: 0 0 auto; align-self: center; width: min(100%, 66vh); }
  .monitor .hemi-row > #hemi { flex: 1 1 0; min-height: 0; }
  .monitor #pliveStart { font-size: 1.15rem; }
}
