/* Every page except the home dashboard: standings, boards, MK cards, methodology, open data.
   The look is base.css (tokens, header bar, card, table, notice); this file only lays cards out and adds what
   the content pages alone need: the card grid, the MK card's stat cards, the dot strips, the evidence lists.
   Text on these pages never goes below 12 to 13 px, however small the dashboard's wall-sized root gets.
   Same breakpoints as the dashboard: 1099 px and below 2 columns, 699 px and below 1 column. */

.page { flex: 1; display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap); min-width: 0; width: 100%; max-width: 80rem; margin-inline: auto; }
body.doc .page { max-width: 60rem; }
.page a { text-underline-offset: .18em; }
.page .w > h1 { font-size: max(22px, 1.45rem); line-height: 1.25; text-wrap: balance; }
.page .w > h2, .page .w > h3 { font-size: max(15px, .95rem); font-weight: 700; color: var(--head); line-height: 1.35; text-wrap: balance; }
.page .note { font-size: max(14px, .85rem); text-wrap: pretty; }
.page table { font-size: max(13px, .82rem); }
.page caption, .page th { font-size: max(12px, .75rem); }
.page .note p, .page .note ul { max-width: 75ch; }

/* The card grid: 3 across on wide screens (the standings, the MK card's numbers), 2 on tablets, 1 on phones */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards .wide { grid-column: 1 / -1; }
.list + .note { border-top: 1px solid var(--line); padding-top: var(--pad-y); }
.card-bar + .note, .card-meta + .note { padding-top: var(--pad-y); }
.note:not([hidden]) + .list { border-top: 1px solid var(--line); }
.standings-group { display: flex; flex-direction: column; gap: var(--gap); scroll-margin-top: 4.5rem; }
.standings-group + .standings-group { margin-top: .5rem; }
.group-head { margin: 0; padding: .2rem .1rem 0; font-size: max(16px, 1.05rem); font-weight: 700; color: var(--head); }
.card-meta { margin: 0; padding: .3rem var(--pad-x); font-size: max(12px, .76rem); color: var(--mute); border-bottom: 1px solid var(--line); }

/* Lead card: the page title as a header row, the explanation under it */
.kicker { color: var(--mute); font-size: max(12px, .78rem); margin-bottom: .3rem; }
.intro { color: var(--ink); }
.page .w:has(.info) { overflow: visible; }
.card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .35rem var(--pad-x); border-bottom: 1px solid var(--line); }
.card-bar:last-child { border-bottom: 0; }
.w:not(.lead) > .card-bar:last-child:not(:first-child) { border-top: 1px solid var(--line); }
.card-bar > .note, .card-bar > p { padding: 0; margin: 0; }
.info { position: relative; display: inline-flex; align-items: center; border-top: 0; padding: 0; vertical-align: middle; }
.w > .info { align-self: flex-start; margin: .35rem var(--pad-x); }
.w > .info + .list, .w > .info + .note { border-top: 1px solid var(--line); }
.list:has(+ .info) { border-bottom: 1px solid var(--line); }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 24px; min-height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; font-family: var(--font); font-size: 13px; font-weight: 700; font-style: italic; line-height: 1; color: var(--mute); background: var(--card); cursor: pointer; transition: color 130ms ease, border-color 130ms ease, background-color 130ms ease, transform 130ms cubic-bezier(.16, 1, .3, 1); }
.info:hover > .info-btn, .info:focus-within > .info-btn { color: var(--head); border-color: var(--head); background: var(--bg); transform: scale(1.06); }
.info-bubble { display: none; position: absolute; z-index: 10; top: calc(100% + .35rem); inset-inline-start: 0; width: max-content; min-width: 15rem; max-width: 22rem; margin-top: 0; padding: .7rem .85rem; background: var(--card); color: var(--ink); border: 1px solid var(--head); border-radius: var(--radius-s); box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 14%, transparent); font-size: max(13px, .85rem); font-weight: 400; line-height: 1.5; text-align: start; white-space: normal; }
.info-bubble::before { content: ""; position: absolute; inset-inline: 0; top: -.45rem; height: .45rem; }
.info:hover > .info-bubble, .info:focus-within > .info-bubble { display: block; animation: bubble-in 130ms cubic-bezier(.16, 1, .3, 1); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(3px) scale(.98); } to { opacity: 1; transform: none; } }
.card-bar > .info:last-child:not(:first-child) > .info-bubble { inset-inline-start: auto; inset-inline-end: 0; }
.w:not(.lead) > .card-bar:last-child > .info > .info-bubble { top: auto; bottom: calc(100% + .35rem); }
.w:not(.lead) > .card-bar:last-child > .info > .info-bubble::before { top: auto; bottom: -.45rem; }
.info-bubble h3 { margin: 0 0 .3rem; font-size: max(14px, .88rem); font-weight: 700; color: var(--head); }
.info-bubble p { margin: 0; }
.info-bubble p + p { margin-top: .45rem; }
.profile-stats > .info { grid-column: 1 / -1; justify-self: start; margin: 0 var(--pad-x); }
.mk-title { display: block; color: var(--ink); font-weight: 500; }
:is(.mk-table, .sort-table) th button { font: inherit; font-weight: 500; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; min-width: 24px; min-height: 28px; display: inline-flex; align-items: center; gap: .25rem; transition: color 120ms ease; }
:is(.mk-table, .sort-table) th button:hover { color: var(--head); }
:is(.mk-table, .sort-table) th:is([aria-sort="ascending"], [aria-sort="descending"]) { color: var(--head); }
:is(.mk-table, .sort-table) th:is([aria-sort="ascending"], [aria-sort="descending"]) button { font-weight: 700; }
:is(.mk-table, .sort-table) th:is([aria-sort="ascending"], [aria-sort="descending"]) button::after,
#mk-direction::before { content: ""; display: block; flex: none; width: .65em; height: .45em;
  background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
:is(.mk-table, .sort-table) th[aria-sort="descending"] button::after,
#mk-direction[data-direction="descending"]::before { rotate: 180deg; }
#mk-direction { display: inline-grid; place-items: center; }

/* What the bills change (lawbook/bills.html, the block on MK pages) */
.be-mix { display: block; width: 100%; min-width: 6rem; height: .6rem; margin: .35rem 0; border-radius: 2px; background: var(--bg); }
.be-mix .be-c0 { fill: color-mix(in srgb, var(--head) 22%, var(--card)); }
.be-mix .be-c1 { fill: color-mix(in srgb, var(--head) 40%, var(--card)); }
.be-mix .be-c2 { fill: color-mix(in srgb, var(--head) 60%, var(--card)); }
.be-mix .be-c3 { fill: color-mix(in srgb, var(--head) 80%, var(--card)); }
.be-mix .be-c4 { fill: var(--head); }
.be-mix .be-un { fill: none; }
.be-mks { min-width: 62rem; }
.be-mks td:first-child { min-width: 9rem; }
.be-mks td:nth-child(7) { min-width: 7rem; }
.be-mks small, .be-of { display: block; color: var(--mute); font-size: max(12px, .75rem); font-weight: 400; }
.be-un-t { color: var(--mute); }
.be-show { color: var(--ink); }
.be-show del { color: var(--mute); text-decoration-thickness: 1px; }
.be-show ins { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.be-run { display: block; }
.be-first { font-weight: 600; color: var(--head); }
.be-rules { margin: .5rem 0 0; padding-inline-start: 1.1rem; }
.be-rules li + li { margin-top: .35rem; }
.be-filter { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem var(--pad-x); border-bottom: 1px solid var(--line); }
.be-filter button { font: inherit; font-size: max(13px, .82rem); min-height: 32px; padding: .2rem .7rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.be-filter button[aria-pressed="true"] { color: var(--card); background: var(--head); border-color: var(--head); }
.be-caveat { color: var(--mute); }
#bill-effort .be-mix { max-width: 28rem; }
.be-legend { margin: 0; color: var(--mute); font-size: max(12px, .75rem); }

/* Standings: grouped sections side by side */
@media (min-width: 1100px) { .ranking-preview > h2, .ranking-preview > h3 { min-height: 3.1rem; } }
.standings td:last-child { font-weight: 500; }
.xpage .standings td:last-child { font-weight: 400; }
.more { font-size: max(13px, .82rem); }
.board-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .4rem var(--pad-x); }
.board-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.knesset-choice { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: nowrap; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--bg); }
.knesset-choice li { display: flex; }
.knesset-choice li + li { border-inline-start: 1px solid var(--line); }
.knesset-choice a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .25rem .75rem; text-decoration: none; color: var(--mute); font-weight: 500; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; }
.knesset-choice a:hover { color: var(--head); background: var(--card); }
.knesset-choice a[aria-current="page"] { background: var(--head); color: var(--card); font-weight: 700; text-decoration: none; }
.body > .knesset-choice { margin-inline: 0; }  /* on a card, inside the card's own padding */
.board-asof { color: var(--mute); font-size: max(12px, .78rem); }
.rank-tie { display: block; font-size: max(12px, .75rem); font-weight: 400; white-space: normal; }
.standings td > a:only-child, .metric-board td > a:only-child { text-decoration: underline; }
.ranking-preview .more a { display: inline-flex; align-items: center; min-height: 28px; }
.metric-board { min-width: 58rem; }
.metric-board th:nth-child(2), .metric-board td:nth-child(2) { min-width: 11rem; }
.metric-board .fac { min-width: 12rem; max-width: 24rem; }
.metric-board .frac { min-width: 10rem; }
.metric-board .plot { min-width: 10rem; }
.list:has(> .metric-board) { max-height: 70dvh; scrollbar-width: auto; scroll-padding-inline: 3rem; }
.metric-board thead { position: sticky; top: 0; z-index: 1; background: var(--card); }
.ranking-method details { border-top: 0; }

/* Full boards and lists */
.board-table td.big-n { font-size: max(14px, 1rem); font-weight: 700; color: var(--head); }
.board-table .frac { color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-table .fac, .fac { color: var(--mute); }
.board-table .plot { width: 136px; }
/* Pair scoreboard. Two rows, both portraits. Each row's figure is that member's
   interjections in the other's speeches. The large figure is both directions together.
   On the card, two scoreboards sit side by side, each half the card. */
.pair-scores { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.pair-score { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .85rem; padding: .55rem var(--pad-x); border-bottom: 1px solid var(--line); min-width: 0; }
.pair-score:hover { background: color-mix(in srgb, var(--track) 65%, transparent); }
.pair-meta { display: flex; align-items: center; justify-content: center; gap: .35rem; align-self: center; min-width: 4.2rem; }
.pair-meta > .rk { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair-players { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-width: 0; }
.pair-row .member-link { min-width: 0; }
.pair-pts { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; font-size: max(16px, 1rem); min-width: 2ch; text-align: end; }
.pair-sum { font-size: max(22px, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--head); text-underline-offset: .14em; text-align: center; }
.pair-board .pair-pts { color: var(--mute); font-weight: 500; font-size: max(14px, .9rem); }
@media (min-width: 900px) {
  .pair-scores { grid-template-columns: 1fr 1fr; }
  .pair-score:nth-child(odd):not(:last-child) { border-inline-end: 1px solid var(--line); }
}
.pair-board .frac { white-space: normal; min-width: 14rem; }
.pair-board .pair-sit { margin-top: .35rem; border-top: 0; }
.pair-board .pair-sit summary { cursor: pointer; color: var(--mute); }
.pair-sittings { margin: .35rem 0 0; padding: 0; list-style: none; max-height: 14rem; overflow-y: auto; font-variant-numeric: tabular-nums; }
.pair-sittings li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; max-width: 22rem; }
.title { min-width: 12rem; }
.hash { font-size: max(12px, .78rem); color: var(--mute); word-break: break-all; text-align: left; }
.data-table th.hash, .data-table td[dir="ltr"], .data-table th[dir="ltr"] { font-size: max(12px, .75rem); word-break: normal; text-align: left; }  /* LTR header and cells: the label sits over its values */

/* MK directory: shared controls, portrait grid and full-width stat lines. */
.mk-search { padding: .85rem var(--pad-x); border-block: 1px solid var(--line); }
.mk-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.mk-control { flex: 1 1 11rem; min-width: 0; }
.mk-control:first-child { flex-basis: 15rem; }
.mk-search label { display: block; margin-bottom: .3rem; font-size: max(14px, .88rem); font-weight: 500; }
.mk-search input, .mk-search select, .mk-search button { font: inherit; font-size: max(14px, .88rem); min-height: 44px; padding: .45rem .7rem;
  border: 1px solid var(--mute); border-radius: var(--radius-s); background: var(--card); color: var(--ink); }
.mk-search input, .mk-search select { min-width: 0; width: 100%; }
.mk-search input { caret-color: var(--blue); }
.mk-search button { cursor: pointer; min-width: 44px; }
.mk-search button:disabled { color: var(--mute); border-color: var(--line); cursor: default; }
.mk-search button:not(:disabled):hover { border-color: var(--blue); color: var(--blue); }
.mk-toolbar-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-block-start: .75rem; }
.mk-toolbar-meta p { margin: 0; font-size: 14px; color: var(--mute); }
.mk-view { display: inline-flex; padding: 2px; gap: 2px; background: var(--track); border-radius: var(--radius); }
.mk-view button { border-color: transparent; background: transparent; }
.mk-view button[aria-pressed="true"] { background: var(--head); color: var(--card); font-weight: 700; }
.mk-view button[aria-pressed="true"]:hover { color: var(--card); }
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .7rem;
  list-style: none; margin: 0; padding: .85rem var(--pad-x); background: var(--bg); }
.mk-tiles li { min-width: 0; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
.mk-tile-member { flex: 1; display: flex; align-items: center; gap: .7rem; padding: .65rem;
  border-radius: var(--radius); color: var(--head); text-decoration: none; }
.mk-tile-member:hover { background: var(--track); }
.mk-tile-member:hover strong { text-decoration: underline; }
.mk-tile-member > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.mk-tile-member strong { display: block; font-size: max(16px, 1.05rem); }
.mk-tile-member small { display: block; margin-block-start: .2rem; color: var(--mute); font-size: max(13px, .85rem); }
.mk-tile-member .mk-avatar, .mk-tile-member .mk-photo { width: 76px; height: 92px; flex-basis: 76px; }
.mk-tile-member .photo-placeholder { font-size: 1.2rem; }
.mk-tile-stat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .55rem;
  min-height: 3.2rem; padding: .45rem .65rem; border-top: 1px solid var(--line); }
.mk-tile-stat > span { color: var(--mute); font-size: max(13px, .85rem); }
.mk-tile-stat > strong { color: var(--head); font-size: max(16px, 1.15rem); font-variant-numeric: tabular-nums; }
.mk-tile-stat a { display: inline-block; padding-block: .2rem; }
.mk-table { font-variant-numeric: tabular-nums; }
.mk-table th, .mk-table td { min-width: 6rem; }
.mk-table th button { overflow-wrap: normal; white-space: normal; }
.mk-table :is(th, td):is(:nth-child(4), :nth-child(6)) { --mk-accent: var(--blue); }
.mk-table :is(th, td):is(:nth-child(5), :nth-child(7), :nth-child(8)) { --mk-accent: var(--ok); }
.mk-table :is(th, td):nth-child(9) { --mk-accent: var(--blue); }
.mk-table :is(th, td):nth-child(n+10):nth-child(-n+14) { --mk-accent: var(--live); }
.mk-table :is(th, td):nth-child(15) { --mk-accent: var(--ab); }
.mk-table th.n { background: color-mix(in srgb, var(--mk-accent) 8%, var(--card)); }
.mk-table th.n[aria-sort]:not([aria-sort="none"]) { background: color-mix(in srgb, var(--mk-accent) 18%, var(--card)); }
.mk-table tbody tr:nth-child(even) td { background-color: color-mix(in srgb, var(--track) 34%, var(--card)); }
.mk-table tbody tr:hover td, .mk-table tbody tr:focus-within td { background-color: var(--track); }
.mk-table-faction { display: block; color: var(--mute); font-size: max(12px, .82rem); margin-block-start: .15rem; }
.mk-table-faction .mark, .mk-table-faction .mark-wrap { width: 16px; height: 16px; }
/* Nov 29 (owner): the numbers are black, not link blue; they stay links to the official record (underline on hover). */
#mk-table td.n a, .mk-tile-stat a { text-decoration: none; color: var(--ink); }
#mk-table td.n a:hover, .mk-tile-stat a:hover { color: var(--ink); text-decoration: underline; background: var(--track); border-radius: var(--radius-s); }
#mk-table td.mk-leader > a { display: inline-block; padding: .12rem .4rem; border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--mk-accent) 16%, var(--card)); color: var(--ink); font-weight: 700; }
#mk-table td.mk-leader > a:hover { background: color-mix(in srgb, var(--mk-accent) 25%, var(--card)); }
.mk-provenance { border-block-start: 1px solid var(--line); }
.mk-provenance .note { margin: 0; }
#mk-leaders-note span { display: inline-block; width: .8em; height: .8em; margin-inline-end: .4em;
  border-radius: var(--radius-s); background: color-mix(in srgb, var(--blue) 20%, var(--card)); }
.mk-table th:first-child, .mk-table td:first-child { min-width: 10rem; }
.mk-table th:nth-child(3), .mk-table td:nth-child(3) { min-width: 10rem; }
.mk-table th:first-child, .mk-table td:first-child { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--card); border-inline-end: 1px solid var(--line); }
.mk-table thead th:first-child { z-index: 3; }
.list:has(> .mk-table), .list:has(> .presence-overview) { max-height: 75dvh; scrollbar-width: auto; }
.mk-table thead, .presence-overview thead { position: sticky; top: 0; z-index: 1; background: var(--card); }
#mk-empty button { font: inherit; font-size: max(13px, .85rem); min-height: 32px; margin-inline-start: .5rem; padding: .2rem .65rem; border: 1px solid var(--mute); border-radius: var(--radius-s); background: var(--card); color: var(--ink); cursor: pointer; }
#mk-empty button:hover { border-color: var(--blue); color: var(--blue); }

/* Dot strips: 0 at the right, the same direction the line is read */
.page tbody tr:hover td { background: color-mix(in srgb, var(--track) 65%, transparent); }
.strip { display: block; overflow: visible; }
.strip .axis { stroke: var(--line); stroke-width: 1; }
.strip .med { stroke: var(--mute); stroke-width: 1; }
.strip .peer { fill: var(--mute); }
.strip .lo { fill: var(--no); }
.strip .hi { fill: var(--ok); }
.strip .me { fill: var(--head); stroke: var(--card); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: transform 160ms cubic-bezier(.16, 1, .3, 1), stroke-width 160ms ease; }
.stat:hover .strip .me, .stat:focus-within .strip .me, tbody tr:hover .strip .me { transform: scale(1.28); stroke-width: 2; }
.peers { margin-top: .5rem; width: 240px; max-width: 100%; }
.peers .strip { width: 100%; height: auto; }
.scale { display: flex; justify-content: space-between; font-size: max(11px, .72rem); color: var(--mute); }

/* The MK card: an identity card, then one card per number */
.idrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; color: var(--mute); font-size: max(12px, .78rem); }
.meta { margin-top: .4rem; color: var(--ink); }
.offices { list-style: none; padding: 0; margin-top: .4rem; font-size: max(13px, .82rem); color: var(--mute); }
.stat .body { gap: 0; }
.stat .big a { text-decoration-thickness: 3px; text-underline-offset: .12em; }
.stat .sub { margin-top: .45rem; font-size: max(13px, .82rem); color: var(--mute); }
.stat .sub .rank, .stat .rank { color: var(--ink); }
.stat .rank { margin-top: .45rem; font-size: max(13px, .82rem); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.stat .rank .rk-chg { margin-inline-start: 0; }

/* Rank-change triangles: single (1-9 places) or vertically stacked double (10+ places), pure CSS border geometry */
.rk-chg { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; vertical-align: middle; margin-inline-start: .32rem; line-height: 1; }
.rk-chg > i { display: block; width: 0; height: 0; border-inline: 4px solid transparent; }
.rk-chg.up { color: var(--ok); }
.rk-chg.dn { color: var(--no); }
.rk-chg.up > i { border-bottom: 6px solid currentColor; }
.rk-chg.dn > i { border-top: 6px solid currentColor; }
.rk-chg.big { gap: 1.5px; }
.rk-chg.up.big > i { border-bottom-width: 5px; }
.rk-chg.dn.big > i { border-top-width: 5px; }
@keyframes rk-up { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes rk-dn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.rk-chg.up.moved { animation: rk-up 240ms cubic-bezier(.16, 1, .3, 1); }
.rk-chg.dn.moved { animation: rk-dn 240ms cubic-bezier(.16, 1, .3, 1); }
.rank-key .rk-chg { margin-inline-start: 0; }
.stat .src { margin-top: auto; padding-top: .7rem; font-size: max(11px, .72rem); color: var(--mute); }
.profile-asof { margin-top: .45rem; font-size: max(12px, .78rem); color: var(--mute); }
.comparison-key { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.2rem; padding-inline: var(--pad-x); font-size: max(13px, .82rem); color: var(--mute); }
.comparison-key > span { display: inline-flex; align-items: center; gap: .4rem; }
.comparison-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mute); }
.comparison-dot.hi { width: .55rem; height: .55rem; background: var(--ok); }
.comparison-dot.lo { width: .55rem; height: .55rem; background: var(--no); }
.comparison-dot.me { width: .65rem; height: .65rem; background: var(--head); }
.comparison-median { height: 1rem; border-inline-start: 1px solid var(--mute); }
.stat-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: max(13px, .82rem); }
.stat-actions a { text-decoration: underline; }
.career { color: var(--mute); }
.prov { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-size: max(12px, .78rem); color: var(--mute); }

/* Evidence under the card: closed lists, each a table that scrolls inside its own box */
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: var(--row-y) var(--pad-x); font-size: max(14px, .88rem); font-weight: 500; transition: background-color 120ms ease, color 120ms ease; }
summary:hover { background: var(--bg); }
details[open] > summary { color: var(--head); background: color-mix(in srgb, var(--track) 55%, transparent); }
details > .list { border-top: 1px solid var(--line); }

/* Method text */
.formula { font-size: max(15px, 1.05rem); font-weight: 500; color: var(--ink); }
.note .formula { color: var(--ink); }

/* Methodology and open-data pages (body.doc) are documents to read: the section titles lead, the text keeps a measure,
   the formula is a block, and the way on to the other pages is at the end. */
.doc .w > h2 { font-size: max(15px, .95rem); font-weight: 700; color: var(--head); }
.doc .note { color: var(--ink); }
.doc .note p, .doc .note ul { max-width: 62ch; }
.doc .note a { color: var(--blue); }
.doc .note h3 { margin: 0 0 .3rem; font-size: max(14px, .88rem); font-weight: 700; color: var(--head); }
.doc .kicker a { padding-block: .8rem; }
.doc .formula { padding: .6rem var(--pad-x); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); }
.doc .formula:has(.fop) { display: grid; gap: .3rem; }
.doc .fop { color: var(--mute); font-weight: 400; }
.doc .note li:has(> .list) { list-style: none; margin-inline-start: -1.2rem; }
.doc .method-index { list-style: none; padding: 0; }
.doc .method-index li { display: flex; flex-direction: column; align-items: flex-start; padding-block: .2rem; }
.doc .method-index .ask { color: var(--mute); }
.doc-nav a[aria-current="page"] { font-weight: 700; color: var(--head); text-decoration-thickness: 2px; }
.doc :target { outline: 2px solid var(--blue); outline-offset: 2px; }
.doc .cards.c2 { align-items: start; }

@media (max-width: 1099px) {
  .cards, .cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .w:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .mk-search label, .mk-search input, .mk-search select, .mk-search button, #mk-empty button { font-size: 16px; }  /* 16 px keeps the phone from zooming into the field */
  #mk-empty button { min-height: 44px; padding: .45rem .8rem; }
  .cards, .cards.c2 { grid-template-columns: minmax(0, 1fr); }
  .board-table:not(.metric-board):not(.mk-table) .plot, .board-table:not(.metric-board):not(.mk-table) .fac, .board-table:not(.metric-board):not(.mk-table) .frac { display: none; }
  .mk-control { flex-basis: 42%; }
  .mk-control:first-child { flex-basis: 100%; }
  .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .mk-tile-member { flex-direction: column; align-items: start; gap: .45rem; }
  .mk-tile-member .mk-avatar, .mk-tile-member .mk-photo { flex-basis: auto; }
  .mk-tile-stat { align-items: start; flex-direction: column; }
  .pair-board .pair-sit summary { padding-block: .6rem; }
  .pair-sum { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pair-sittings li { padding-block: .55rem; }
  .mk-table th, .mk-table td { min-width: 5rem; overflow-wrap: normal; }
  .metric-board th:nth-child(2), .metric-board td:nth-child(2) { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--card); border-inline-end: 1px solid var(--line); }
  .metric-board thead th:nth-child(2) { z-index: 3; }
  .mk-table th button, .ranking-preview .more a { min-width: 44px; min-height: 44px; }
  .title { min-width: 9rem; }
  .page .w > h1 { font-size: 23px; line-height: 1.25; }
  .page .w > h2, .page .w > h3 { font-size: 18px; font-weight: 700; color: var(--head); }
  .group-head { font-size: 19px; }
  .page .note { font-size: 16px; line-height: 1.6; }
  .page table, .board-table td.big-n { font-size: 16px; line-height: 1.5; }
  .page caption, .page th, .idrow, .offices, .stat .sub, .stat .rank,
  .stat .src, .prov, .scale, .more, .hash, .kicker, .card-meta, .member-fac { font-size: 14px; }
  .knesset-choice a { min-height: 44px; padding-inline: .85rem; }
  .lead-row > .standings-nav { margin-inline-start: 0; }
  .formula { font-size: 16px; }
  .doc .method-index a { display: inline-flex; align-items: center; min-height: 44px; }
  .profile-asof, .board-asof, .comparison-key, .stat-foot, .rank-tie { font-size: 14px; }
  .stat-foot a, .comparison-key a { display: inline-flex; align-items: center; min-height: 44px; }
  summary { min-height: 44px; padding-block: 10px; font-size: 16px; line-height: 1.5; }
  .card-bar { min-height: 44px; }
  .info-btn { position: relative; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; font-size: 14px; }
  .info-btn::after { content: ""; position: absolute; inset: -8px; }
  .info-bubble { min-width: 14rem; max-width: 18.5rem; font-size: 14px; }
  .lead-row, .card-bar, .page .w:has(> .info) { position: relative; }
  .lead-row > .info, .card-bar > .info, .page .w > .info { position: static; }
  .lead-row > .info > .info-bubble, .card-bar > .info > .info-bubble, .page .w > .info > .info-bubble { inset-inline: var(--pad-x); width: auto; min-width: 0; max-width: none; }
  .page td a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .page td > a:only-child:not(.member-link) { text-decoration: underline; }
  .standings td.n > a:only-child, .standings th > a:only-child { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .standings td.n > a:only-child { justify-content: flex-start; }
  .board-links a { min-width: 44px; justify-content: center; }
  .page .note a { padding-block: .85rem; }
  .page > .note a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .evidence-table, .data-table { min-width: 48rem; }
  .evidence-table th, .evidence-table td, .data-table th, .data-table td { min-width: 7rem; overflow-wrap: normal; }
  .evidence-table .title { min-width: 18rem; overflow-wrap: anywhere; }
  .data-table.files td:first-child { min-width: 14rem; }
  .data-table .hash { min-width: 22ch; overflow-wrap: anywhere; }
  .list:has(> .evidence-table), .list:has(> .data-table) { max-height: 70dvh; scrollbar-width: auto; }
  .evidence-table thead, .data-table thead { position: sticky; top: 0; z-index: 1; background: var(--card); }
}

@media (min-width: 700px) {
  .doc td > a:only-child,
  .standings td > a:only-child,
  .standings th > a:only-child { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }
  .standings td.n > a:only-child { justify-content: flex-start; }
  .page .note a { padding-block: .3rem; }
}

@media print {
  .list:has(> .metric-board) { max-height: none; overflow: visible; }
  .metric-board { min-width: 0; }
  .metric-board th:nth-child(2), .metric-board td:nth-child(2),
  .metric-board .fac, .metric-board .frac, .metric-board .plot { min-width: 0; }
}

.member-link { display: inline-flex; align-items: center; gap: .6rem; text-align: start; }
.member-link > span:last-child { overflow-wrap: normal; word-break: normal; min-width: 0; line-height: 1.3; }
.member-fac { display: block; color: var(--mute); font-size: max(12px, .74rem); font-weight: 400; line-height: 1.3; }
.mark-empty { width: 24px; height: 24px; }
.mk-photo { display: inline-block; flex: 0 0 40px; width: 40px; height: 48px; object-fit: cover; object-position: center 20%; border-radius: var(--radius-s); background: var(--track); }
.photo-placeholder { display: inline-grid; place-items: center; color: var(--mute); font-size: .85rem; }
.mk-avatar { display: inline-grid; flex: 0 0 40px; width: 40px; height: 48px; }
.mk-avatar > * { grid-area: 1 / 1; }
.mk-avatar > [hidden] { display: none; }
.portrait-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0; padding: .8rem; list-style: none; }
.portrait-roster .member-link { min-height: 48px; }
.history-summary { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 1rem; margin: 0 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.history-summary dt { font-size: max(13px, .9rem); color: var(--mute); }
.w .history-summary { margin: 0; padding: var(--pad-y) var(--pad-x); border: 0; border-radius: 0; background: transparent; }
.history-summary + .card-bar { border-top: 1px solid var(--line); }
.history-summary dd { margin: .35rem 0 0; font-size: 1.6rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.history-month-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0; }
.history-month-links a { min-height: 44px; display: inline-flex; align-items: center; }
.history-month { margin: 1rem 0; scroll-margin-top: 5rem; }
.history-month .list { max-height: none; overflow: visible; }
.presence-calendar { width: 100%; table-layout: fixed; border-collapse: collapse; }
.presence-calendar th { text-align: center; padding: .5rem .15rem; }
.presence-calendar td { padding: 0; vertical-align: top; border: 1px solid var(--line); }
.presence-calendar td a { min-height: 5.5rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .5rem .15rem; text-decoration: none; color: var(--ink); }
.presence-calendar td a:hover { background: var(--track); }
.presence-calendar td a:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.calendar-date { font-weight: 700; }
.calendar-hours { font-size: .85rem; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: center; }
.calendar-outside { background: var(--track); }
.calendar-empty { min-height: 5.5rem; display: flex; justify-content: center; padding: .5rem .15rem; color: var(--mute); font-size: 14px; font-weight: 500; }
.presence-day { margin: .5rem 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); scroll-margin-top: 5rem; }
.presence-day summary { cursor: pointer; padding: .9rem 1rem; min-height: 44px; font-weight: 500; }
.presence-day .body { padding: .5rem 1rem 1rem; }
.presence-day:has(:target) { outline: 2px solid var(--blue); }
.presence-day .body:target { scroll-margin-top: 5rem; }
.history-timeline { width: 100%; height: 28px; direction: ltr; }
.history-axis { display: flex; justify-content: space-between; direction: ltr; font-size: max(12px, .75rem); color: var(--mute); font-variant-numeric: tabular-nums; margin-bottom: .35rem; }
.history-gap { fill: var(--track); stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 3; }
.history-observed { fill: var(--card); stroke: var(--mute); stroke-width: 1; }
.history-present { fill: var(--blue); }
.history-key { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; }
.history-key span::before { content: ""; display: inline-block; width: .8rem; height: .6rem; margin-inline-end: .3rem; border: 1px solid var(--mute); }
.key-present::before { background: var(--blue); border-color: var(--blue); }
.key-observed::before { background: var(--card); }
.key-gap::before { background: var(--track); border-style: dashed; }
.presence-periods { text-align: start; font-variant-numeric: tabular-nums; }
.source-record { margin: 1rem 0; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 5rem; }
.source-record h2 { overflow-wrap: anywhere; }
.source-fields { display: grid; grid-template-columns: minmax(7rem,auto) minmax(0,1fr); gap: .5rem 1rem; }
.source-fields dt { color: var(--mute); }
.source-fields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .history-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  .history-summary dt { overflow-wrap: normal; }
  .member-link { min-width: 9rem; }
  .presence-calendar td a { min-height: 5rem; }
  .calendar-hours { font-size: 14px; }
  .source-fields { grid-template-columns: 1fr; }
  .source-fields dd { margin-bottom: .5rem; }
}

/* The larger licensed photo at the top of an MK's profile. */
.body.profile-head { flex-direction: row; align-items: flex-start; gap: 1.2rem; }
.profile-text { flex: 1 1 18rem; min-width: 0; }
.profile-x { flex: 1 1 22rem; min-width: 0; max-width: 34rem; margin-inline-start: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.profile-x h2 { margin: 0; padding: .4rem var(--pad-x); font-size: max(12px, .78rem); font-weight: 500; color: var(--mute); border-bottom: 1px solid var(--line); }
.profile-x .xp { border-bottom: 0; }
.profile-x .xt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.profile-text .idrow { justify-content: flex-start; gap: 0 1.5rem; }
.profile-photo { flex: none; margin: 0; width: 10rem; }
.profile-pair { align-items: stretch; }
.profile-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); background: var(--track); }
.profile-photo figcaption { margin-top: .3rem; font-size: max(12px, .72rem); line-height: 1.35; color: var(--mute); overflow-wrap: anywhere; }
/* Posts per seat: the ratio columns carry the weight; the table stays narrow enough to read across. */
#x-seats .standings { max-width: 52rem; }
#x-seats .standings td, #x-seats .standings th { white-space: nowrap; vertical-align: middle; }
#x-seats [data-x-seat$="ratio"] { font-weight: 600; }
@media (max-width: 699px) {
  #x-seats .standings th, #x-seats .standings td.xfac { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
  #x-seats .standings .rk { display: none; }
  #x-seats .standings th { font-size: .78rem; line-height: 1.2; }
  #x-seats .standings th, #x-seats .standings td { padding-inline: .3rem; }
}
/* The X page: the posts beside the per-MK counts; one column on tablets and phones. */
.xpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; }
.xpage .xall { max-height: none; overflow: visible; }
.xpage .standings td, .xpage .standings th { white-space: nowrap; vertical-align: middle; }
.xpage .standings td:nth-child(2), .xpage .standings .xfac { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.lead > .history-summary { margin: 0; padding-block: .2rem .6rem; }
@media (max-width: 1099px) {
  .xpage { grid-template-columns: minmax(0, 1fr); }
  .xpage > #x-counts > .list { max-height: 24rem; }
  .profile-pair { grid-template-columns: minmax(0, 1fr); }
  .body.profile-head { flex-wrap: wrap; }
}
@media (max-width: 699px) {
  .body.profile-head { flex-direction: column; gap: .7rem; }
  .profile-x { flex: none; width: 100%; max-width: none; margin: 0; }
  .profile-text { flex: none; }
  .xpage .xfac { display: none; }
  .xpage .standings td, .xpage .standings th { padding-inline: .45rem; }
  .xpage .standings td:last-child, .xpage .standings th:last-child { white-space: normal; min-width: 4.2rem; }
  .profile-photo { width: min(10rem, 55%); }
}
@media (prefers-reduced-motion: reduce) {
  .info:hover > .info-bubble, .info:focus-within > .info-bubble { animation: none; }
  .rk-chg.up.moved, .rk-chg.dn.moved { animation: none; }
  .info-btn, .mk-table th button, .strip .me, summary, #x-week .xwk-filter button, #x-week .xwk-by button, .knesset-choice a { transition: none; }
  .info:hover > .info-btn, .info:focus-within > .info-btn, .stat:hover .strip .me, .stat:focus-within .strip .me, tbody tr:hover .strip .me { transform: none; }
}

/* The speech card: one number, a figures row, then one line per topic: name, dot strip, per 1,000 words, rank */
.speeches .unit { font-size: max(14px, .9rem); color: var(--mute); font-weight: 400; }
.figs { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin-top: .5rem; }
.figs > div { display: flex; flex-direction: column; }
.figs b { font-size: 1.15rem; font-weight: 600; }
.figs span { font-size: max(12px, .75rem); color: var(--mute); }
.topics { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .15rem; }
.topic { display: grid; grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr) 2.6rem 3.6rem; align-items: center; gap: .6rem; font-size: max(13px, .82rem); }
.topic .peers { margin: 0; width: auto; max-width: none; }
.topic .tv { font-weight: 600; text-align: start; }
.topic .tr { color: var(--mute); text-align: start; }

/* One header row for the standings and board pages; one footer row for every stat card */
.lead-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.2rem; padding: .45rem var(--pad-x); }
.lead-row > .knesset-choice, .lead-row > .board-links { padding: 0; }
.lead-row > .standings-nav { margin-inline-start: auto; }
.standings-nav .mk-jump { font-weight: 500; color: var(--head); }
.lead-row > .info { margin: 0; }
.stat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin-top: auto; padding-top: .7rem; font-size: max(12px, .78rem); }
.stat-foot a { text-decoration: underline; }
.stat-foot .src { margin: 0 auto 0 0; padding: 0; margin-inline-start: auto; color: var(--mute); font-size: max(11px, .72rem); }
.speech-topics th[scope="row"] { text-align: start; font-weight: 600; white-space: nowrap; }
.speech-topics td { vertical-align: top; }
.speech-topics td .num { display: block; color: var(--mute); font-size: max(12px, .78rem); }


/* Weekly wording boards (tone-weekly.json). Whole numbers and a five-step level; no pies, no gradients, no party colours.
   The ranking stays a readable column. On a wide screen it sits on the right and the archive fills the left of the
   card; below that width the archive sits under the ranking. Three closed weeks in a row when they fit, the latest
   on the right. A ranking row is name over party, the five-step bar in the middle (it takes
   whatever width is left, so no gap opens), then the week number and the average. */
#x-week .xwk-in { width: 100%; max-width: 80rem; margin-inline: auto; }
#x-week .xwk-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; padding: var(--row-y) var(--pad-x) 0; }
#x-week .xwk-top .note { margin: 0; padding: 0; color: var(--mute); }
#x-week .xwk-how { color: var(--blue); font-size: .9rem; }
#x-week .xwk-filter { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem var(--pad-x) .2rem; }
#x-week .xwk-filter button { font: inherit; font-size: .92rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 1rem; padding: .12rem .7rem; cursor: pointer; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
#x-week .xwk-filter button:hover { border-color: var(--head); }
#x-week .xwk-filter button[aria-pressed="true"] { background: var(--head); color: var(--card); border-color: var(--head); }
#x-week .xwk-boards { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: .2rem var(--pad-x) var(--pad-y); }
#x-week .xwk-board { min-width: 0; max-width: 44rem; justify-self: start; padding-block: .3rem .4rem; }
#x-week [data-x-week-archive-box] { max-width: none; width: 100%; justify-self: stretch; container-type: inline-size; }
/* Column 1 is the start side, the right on this rtl page. The archive takes the column that was empty beside the ranking. */
@media (min-width: 900px) {
  #x-week .xwk-boards { grid-template-columns: fit-content(44rem) minmax(15.5rem, 1fr); column-gap: 1.5rem; }
  #x-week .xwk-boards > .xwk-board:not([data-x-week-archive-box]) { grid-column: 1; }
  #x-week [data-x-week-archive-box] { grid-column: 2; }
}
#x-week .xwk-board h3 { font-size: max(15px, 1rem); margin: .2rem 0 .1rem; }
#x-week .xwk-bh { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
#x-week .xwk-sw { display: flex; gap: .4rem; flex-wrap: wrap; }
#x-week .xwk-by { display: inline-flex; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
#x-week .xwk-by button { font: inherit; font-size: .9rem; color: var(--ink); background: transparent; border: 0; padding: .12rem .8rem; cursor: pointer; min-height: 1.9rem; transition: background-color 120ms ease, color 120ms ease; }
#x-week .xwk-by button + button { border-inline-start: 1px solid var(--line); }
#x-week .xwk-by button[aria-pressed="true"] { background: var(--head); color: var(--card); }
#x-week .xwk-more { display: block; font: inherit; font-size: .92rem; color: var(--blue); background: transparent; border: 0; padding: .45rem 0 .1rem; min-height: 2rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
#x-week .xwk-credit { margin: .3rem 0 0; padding: 0; font-size: .82rem; }
#x-week .xwk-credit a { color: var(--mute); }
#x-week .xwk { list-style: none; margin: 0; padding: 0; }
#x-week .xwk li { display: grid; grid-template-columns: 2.5rem minmax(8.8rem, 14rem) minmax(2.6rem, 1fr) 2.6rem; column-gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
#x-week .xwk li:last-child { border-bottom: 0; }
#x-week .xwk li.head { color: var(--mute); font-size: max(12px, .8rem); padding-block: 0 .1rem; }
#x-week .xwk li.head span { text-align: center; white-space: nowrap; justify-self: center; }
#x-week .xwk .cv { grid-area: 1 / 4; }
#x-week .xwk li.empty { display: block; color: var(--mute); }
#x-week .xwk .rk { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; color: var(--mute); font-variant-numeric: tabular-nums; }
#x-week .xwk .rk .rk-chg { margin-inline-start: 0; }
#x-week .xwk-rkey { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .35rem 0 0; padding: 0; font-size: max(12px, .78rem); color: var(--mute); }
#x-week .xwk-rkey > span { display: inline-flex; align-items: center; gap: .3rem; }
#x-week .xwk-rkey .rk-chg { margin-inline-start: 0; }
#x-week .xwk .who { grid-area: 1 / 2; min-width: 0; display: flex; align-items: center; gap: .45rem; line-height: 1.25; }
#x-week .xwk .wt { min-width: 0; overflow-wrap: anywhere; }
#x-week .xwf { position: relative; flex: none; width: 32px; height: 38px; border-radius: var(--radius-s); overflow: hidden; background: var(--track); display: grid; place-items: center; }
#x-week .xwf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
#x-week .xwk .who a { color: var(--ink); font-weight: 500; text-decoration: none; }
#x-week .xwk .who a:hover { text-decoration: underline; }
#x-week .xwk .who .pn { color: var(--ink); font-weight: 500; }
#x-week .xpm { background: transparent; }
#x-week .xpm .mark-wrap, #x-week .xpm .mark { width: 26px; height: 26px; }
#x-week .xwk .who small { display: flex; align-items: center; gap: .25rem; color: var(--mute); font-size: .82rem; }
#x-week .xwk .who small .mark { width: 16px; height: 16px; }
#x-week .xwk b { text-align: center; font-weight: 500; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
#x-week .xwd { grid-area: 1 / 3; display: flex; gap: 2px; }
#x-week .xwd i { flex: 1; height: .5rem; border-radius: 2px; background: var(--track); }
#x-week .xwd.toxic i.l1 { background: var(--tox-1); } #x-week .xwd.toxic i.l2 { background: var(--tox-2); } #x-week .xwd.toxic i.l3 { background: var(--tox-3); }
#x-week .xwd.toxic i.l4 { background: var(--tox-4); } #x-week .xwd.toxic i.l5 { background: var(--tox-5); }
/* Closed weeks. On a phone, one week per line. From a wide archive column, three in a row: the page is rtl, so the first week, the latest, is the rightmost. */
#x-week .xwk.arch { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: .7rem; align-items: end; }
#x-week .xwk.arch li.plaque { display: flex; flex-direction: column; width: auto; min-width: 0; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
#x-week .xwk.arch li.plaque.tied { grid-column: 1 / -1; }
#x-week .xwk.arch .plaque-card { display: flex; flex-direction: row; align-items: center; gap: .75rem; width: auto; min-width: 0; padding: 0; background: transparent; color: var(--ink); border: 0; text-decoration: none; }
#x-week .xwk.arch .plaque-link:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; }
#x-week .xwk.arch .frame { display: flex; gap: .35rem; flex: none; min-width: 0; }
#x-week .xwk.arch .shot { flex: none; min-width: 0; color: inherit; }
#x-week .xwk.arch .xwf.hall { width: 6.4rem; height: 7.6rem; border-radius: var(--radius-s); background: var(--track); color: var(--mute); font-size: 1.4rem; border: 2px solid transparent; }
#x-week .xwk.arch li.plaque.latest .xwf.hall { width: 7.4rem; height: 8.8rem; border-color: var(--head); }
#x-week .xwk.arch .xwf.hall .xi { color: var(--mute); }
#x-week .xwk.arch .plate { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; text-align: start; }
#x-week .xwk.arch .wk { display: block; margin: 0; color: var(--ink); font-weight: 500; font-size: max(13px, .85rem); font-variant-numeric: tabular-nums; }
#x-week .xwk.arch .nm { display: block; margin: .15rem 0 0; color: var(--ink); font-weight: 500; font-size: max(14px, .95rem); line-height: 1.25; overflow-wrap: anywhere; }
#x-week .xwk.arch .nm a { color: var(--ink); text-decoration: none; }
#x-week .xwk.arch .plaque-link:hover .nm, #x-week .xwk.arch .nm a:hover { text-decoration: underline; text-underline-offset: .14em; }
#x-week .xwk.arch .fac { display: block; margin: .05rem 0 0; color: var(--mute); font-weight: 400; font-size: max(13px, .82rem); }
#x-week .xwk.arch .plate b.num { display: block; margin-top: .2rem; color: var(--head); font-size: 1.1rem; font-weight: 500; text-align: start; }
#x-week .xwk.arch .xwd { grid-area: auto; width: 7.5rem; max-width: 100%; margin-top: .35rem; }
#x-week .xwk.arch :is(.shot, .nm a):focus-visible { outline: 2px solid var(--head); outline-offset: 2px; }
/* Three across once the archive column can hold them. The photo sits over the week so a row of three still fits beside the ranking. */
@container (min-width: 34rem) {
  #x-week .xwk.arch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #x-week .xwk.arch li.plaque { border-bottom: 0; padding-top: .15rem; }
  #x-week .xwk.arch .plaque-card { flex-direction: column; align-items: center; gap: .4rem; }
  #x-week .xwk.arch .plate { text-align: center; }
  #x-week .xwk.arch .plate b.num { text-align: center; }
  #x-week .xwk.arch .xwd { width: 100%; margin-inline: auto; }
  #x-week .xwk.arch .xwf.hall { width: 4.8rem; height: 5.7rem; }
  #x-week .xwk.arch li.plaque.latest .xwf.hall { width: 6.4rem; height: 7.6rem; }
}
@media (max-width: 699px) {
  #x-week .xwk-board h3 { font-size: 16px; }
  #x-week .xwk.arch .wk { font-size: 14px; }
  #x-week .xwk.arch .nm { font-size: 16px; }
  #x-week .xwk.arch .fac { font-size: 14px; }
  #x-week .xwk-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); }
  #x-week .xwk-filter::-webkit-scrollbar { display: none; }
  #x-week .xwk-filter button { flex: none; }
}


/* First to come / last to leave: the day ledger keeps each time under its name so three columns fit a phone */
.first-last-ledger td { vertical-align: top; }
.first-last-ledger time { display: block; color: var(--mute); font-variant-numeric: tabular-nums; }
.first-last-ledger td:first-child { white-space: nowrap; }

/* "What's new" (/whatsnew/): a date and one plain line per entry */
.whatsnew { list-style: none; margin: 0; padding: 0; }
.page .note ul.whatsnew { max-width: none; }
.whatsnew li { display: flex; flex-wrap: wrap; gap: .1rem .9rem; align-items: baseline; padding: .55rem 0; border-block-end: 1px solid var(--line, currentColor); }
.whatsnew li:last-child { border-block-end: 0; }
.whatsnew time { flex: none; min-width: 6.2rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.whatsnew span { flex: 1 1 14rem; }
.lawbook-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-block: .5rem 1.5rem;
}
.lawbook-metrics dt { font-size: .9rem; }
.lawbook-metrics dd { margin: .25rem 0 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* The law book's lists (build.py lawbook_votes, lawbook_voted_bills): the home card's ✓/✗ mark, a title and one line of
   numbers and links per row. A long list scrolls inside its card. */
.list:has(> .vlist) { max-height: 75dvh; scrollbar-width: auto; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem var(--pad-x); border-bottom: 1px solid var(--line); transition: background-color 150ms cubic-bezier(.16, 1, .3, 1); }
.vlist li:last-child { border-bottom: 0; }
.vlist li:hover, .vlist li:focus-within { background: color-mix(in srgb, var(--track) 65%, transparent); }
.vlist li > div { flex: 1; min-width: 0; }
.vl-t { color: var(--ink); font-size: max(14px, .9rem); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.vl-t a { text-decoration: none; } .vl-t a:hover { text-decoration: underline; }
.vl-s { margin-top: .2rem; color: var(--mute); font-size: max(13px, .8rem); line-height: 1.6; overflow-wrap: anywhere; }
.vl-s a { white-space: nowrap; }
.vl-v { display: flex; gap: .45rem; align-items: flex-start; }
.vmark { display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; min-width: 20px; min-height: 20px; margin-top: .1rem; border-radius: 50%; font-size: max(11px, .75rem); font-weight: 700; line-height: 1; color: var(--card); }
.vmark.ok { background: var(--ok); } .vmark.no { background: var(--no); }
.vmark.na { background: none; color: var(--mute); }  /* a vote between candidates: no passed or rejected */
.vl-v .vmark { margin-top: .05rem; }
.note.vl-foot { padding-top: var(--pad-y); border-top: 1px solid var(--line); }
@media (max-width: 699px) {
  .vl-t { font-size: 16px; }
  .vl-s { font-size: 14px; line-height: 2; }  /* room between the links of a wrapped line */
}

/* The law book's journey (lawbook/index.html): five Hebrew stations on one track, right to left; a vertical rail on
   phones. Repository names sit in one closed note. Reached steps stay navy. The frontier (li.now) is the action blue:
   its station, its count and its link. Later steps stay hollow and mute. The labels are visible at once. One motion:
   the path draws to the frontier and that ring opens, once. Reduced motion keeps the drawn path, the ring and the
   blue, and drops the movement. */
.lb-files { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: .9rem var(--pad-x); border-bottom: 1px solid var(--line); }
.lb-big { font-size: max(32px, 2.6rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--head); font-variant-numeric: tabular-nums; }
.lb-eq { color: var(--mute); font-size: max(14px, .9rem); }
.lb code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: max(11px, .72rem); unicode-bidi: isolate; background: color-mix(in srgb, var(--head) 7%, transparent); color: var(--head); border-radius: var(--radius-s); padding: .08rem .4rem; white-space: nowrap; }
.lb-sub { margin: 0; padding: .8rem var(--pad-x) 0; color: var(--mute); font-size: max(13px, .8rem); }
.lb-journey { --dot: 3rem; --rail: 4px; list-style: none; margin: 0; padding: 1.5rem var(--pad-x) 1.2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: .3rem; }
.lb-journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding-inline: .5rem; text-align: center; }
/* One row per part, shared by the five stations (subgrid), so a label that wraps to two lines cannot push its station's
   count or note below the others: every count sits on the same line (owner, Nov 30: "make sure the numbers are
   aligned"). Labels sit at the bottom of their row. tests/test_lawbook_journey.py JourneyAlignment guards these rules. */
@media (min-width: 700px) {
  .lb-journey { grid-template-rows: repeat(4, auto); }
  .lb-journey li { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; justify-items: center; align-items: start; }
  .lb-journey .lb-dot { grid-row: 1; }
  .lb-journey .lb-k { grid-row: 2; align-self: end; }
  .lb-journey .lb-n { grid-row: 3; }
  .lb-journey .lb-repo { grid-row: 4; }
}
/* The track: one segment from each station's centre to the next; ::after is the navy fill between two reached steps. */
.lb-journey li::before, .lb-journey li::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - var(--rail) / 2); inset-inline-start: 50%; width: 100%; height: var(--rail); border-radius: var(--rail); }
.lb-journey li::before { background: var(--track); }
.lb-journey li::after { background: var(--head); transform-origin: right center; transform: scaleX(0); }
.lb-journey li.on:has(+ li.on)::after { transform: none; }
.lb-journey li:last-child::before, .lb-journey li:last-child::after { display: none; }
.lb-dot { grid-row: 1; position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot); min-width: 36px; min-height: 36px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--mute) 70%, transparent); background: var(--card); }
.lb-dot svg { width: 50%; height: 50%; fill: none; stroke: var(--mute); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb-journey li.on .lb-dot { border: 2px solid var(--head); background: var(--head); }
.lb-journey li.on .lb-dot svg { stroke: var(--card); }
.lb-journey li.now .lb-dot { border-color: var(--blue); background: var(--blue); outline: 2px solid var(--blue); outline-offset: 4px; }
.lb-journey li.now .lb-n { color: var(--blue); }
.lb-k { grid-row: 2; margin-top: .55rem; font-weight: 700; color: var(--ink); font-size: max(13px, .9rem); line-height: 1.3; text-wrap: balance; }
.lb-n { grid-row: 3; position: relative; margin-top: .35rem; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; min-width: 24px; font-size: max(28px, 2.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--head); font-variant-numeric: tabular-nums; text-underline-offset: .12em; }
.lb-for { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lb-journey li:not(.on) .lb-n, .lb-journey li:not(.on) .lb-k { color: var(--mute); }
.lb-repo { grid-row: 4; color: var(--mute); font-size: max(12px, .75rem); }
.lb-foot { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; padding: .7rem var(--pad-x) .9rem; border-top: 1px solid var(--line); color: var(--mute); font-size: max(12px, .78rem); }
.lb-names ul { list-style: none; margin: 0; padding: .15rem var(--pad-x) .65rem; }
.lb-names li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: max(13px, .82rem); }
.lb-names li:last-child { border-bottom: 0; }

.lb-dot { transition: transform 150ms cubic-bezier(.16, 1, .3, 1), background-color 150ms cubic-bezier(.16, 1, .3, 1), border-color 150ms cubic-bezier(.16, 1, .3, 1); }
.lb-journey li:hover .lb-dot, .lb-journey li:focus-within .lb-dot { transform: scale(1.06); }
@keyframes lb-draw-x { from { transform: scaleX(0); } }
@keyframes lb-draw-y { from { transform: scaleY(0); } }
@keyframes lb-ring { from { outline-offset: 0; } }
@keyframes lb-land { from { background-color: color-mix(in srgb, var(--blue) 16%, var(--card)); } }
.lb-journey li.now .lb-dot { animation: lb-ring 420ms cubic-bezier(.16, 1, .3, 1) both; }
.lb-journey li.on:has(+ li.on)::after { animation: lb-draw-x 480ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 40ms); }
.lb-journey li:nth-child(2) { --i: 1; } .lb-journey li:nth-child(3) { --i: 2; }
.lb-journey li:nth-child(4) { --i: 3; } .lb-journey li:nth-child(5) { --i: 4; }
.page .w:target, .vlist li:target { scroll-margin-top: 4.5rem; animation: lb-land 420ms cubic-bezier(.16, 1, .3, 1); }
.vlist li:target { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Phones: one station per row. The three columns (dot, words, number) belong to the list and each station takes them
   (subgrid), so the numbers share one column, set flush to the words like a table's figures: the units of 287 and of
   9 line up, and each number stands on its label's baseline. */
@media (max-width: 699px) {
  .lb-journey { --dot: 2.9rem; grid-template-columns: var(--dot) minmax(0, 1fr) auto; column-gap: .85rem; row-gap: 0; padding-block: .8rem; }
  .lb-journey li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: .1rem; align-items: center; justify-items: start; padding: .7rem 0 .8rem; text-align: start; }
  .lb-journey li::before, .lb-journey li::after { top: calc(.7rem + var(--dot) / 2); inset-inline-start: calc(var(--dot) / 2 - var(--rail) / 2); width: var(--rail); height: 100%; }
  .lb-journey li::after { transform-origin: center top; transform: scaleY(0); }
  .lb-journey li.on:has(+ li.on)::after { animation-name: lb-draw-y; }
  .lb-dot { grid-row: 1 / 3; align-self: start; }
  .lb-k { grid-column: 2; grid-row: 1; align-self: baseline; margin: 0; }
  .lb-repo { grid-column: 2; grid-row: 2; }
  .lb-n { grid-column: 3; grid-row: 1; align-self: baseline; justify-self: end; min-width: 44px; min-height: 44px; margin-top: 0; text-align: start; font-size: max(26px, 2rem); }
}
/* The amended figure is the one blue on this card. The earlier figure stays quiet. Flat tint, no gradient. */
#budget .note dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.1rem; align-items: baseline; max-width: 68ch; margin-top: .75rem; }
#budget .note dt { color: var(--mute); font-weight: 500; }
#budget .note dd { margin: 0; color: var(--ink); }
#budget .note dd:first-of-type { color: var(--mute); }
#budget .note dd:last-of-type { background: color-mix(in srgb, var(--blue) 9%, var(--card)); border-radius: var(--radius-s); padding: .15rem .45rem; }
#budget .note dd:last-of-type strong { color: var(--blue); }
.note .lb-check.ok { color: var(--ok); font-weight: 500; }
.note .lb-check.no { color: var(--no); font-weight: 500; }
@media (max-width: 699px) {
  #budget .note dl { grid-template-columns: minmax(0, 1fr); }
  #budget .note dd { margin-bottom: .35rem; }
}

/* The law book page's layout (site/build.py page_lawbook): the title and the journey, the panel of recent changes, then
   the lists. On a wide screen the panel is a column at the end side (the left), beside everything else, and stays in
   view while the page scrolls; narrower, it follows the journey and shows the five newest. */
.lb-layout, .lb-head, .lb-rest { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@media (min-width: 1200px) {
  .page:has(> .lb-layout > .lbf:not([hidden])) { max-width: calc(80rem + 22rem + var(--gap)); }
  .lb-layout:has(> .lbf:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; grid-template-rows: auto 1fr; align-items: start; }
  .lb-layout > .lb-head { grid-column: 1; grid-row: 1; }
  .lb-layout > .lb-rest { grid-column: 1; grid-row: 2; }
  .lb-layout > .lbf { grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(4.5rem + var(--gap)); max-height: calc(100vh - 4.5rem - 2 * var(--gap)); }
  .lbf-list { overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 1199px) {
  .lbf-i:nth-child(n+6) { display: none; }
}

/* The panel (site/build.py lawbook_changes, static/lawbook-feed.js): one line per change, newest first. What happened is
   small and grey, the bill's or law's name is the link, then when. A change younger than a day has a thin blue edge at
   the start side and the word "חדש"; nothing moves. */
.lbf-list { list-style: none; margin: 0; padding: 0; min-height: 0; }
.lbf-i { display: grid; gap: .2rem; padding: .65rem var(--pad-x) .7rem; border-top: 1px solid var(--line); border-inline-start: 3px solid transparent; }
.lbf-i:first-child { border-top: 0; }
.lbf-i:has(.lbf-new) { border-inline-start-color: var(--blue); }
.lbf-h { display: flex; align-items: baseline; gap: .5rem; margin: 0; color: var(--mute); font-size: max(12px, .75rem); font-weight: 700; }
.lbf-k { display: inline-flex; align-items: baseline; gap: .35rem; min-width: 0; }
.lbf-k > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.lbf-d { font-weight: 400; }
.lbf-mark { font-weight: 700; }
.lbf-mark.ok { color: var(--ok); } .lbf-mark.no { color: var(--no); }
.lbf-new { margin-inline-start: auto; flex: none; color: var(--blue); font-size: max(11px, .7rem); font-weight: 700; }
.lbf-t { color: var(--ink); font-weight: 600; font-size: max(14px, .86rem); line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.lbf-t:hover { text-decoration-color: currentColor; }
.lbf-h .lbf-t { font-size: max(13px, .82rem); }
.lbf-s { margin: 0; color: var(--mute); font-size: max(12px, .75rem); font-variant-numeric: tabular-nums; }
.lbf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin: 0; padding: .6rem var(--pad-x) .7rem; border-top: 1px solid var(--line); color: var(--mute); font-size: max(12px, .75rem); }
@media (max-width: 699px) {
  .lbf-t { font-size: 16px; }
  .lbf-h, .lbf-s, .lbf-foot { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-journey li > *, .lb-journey li::after { animation: none !important; }
  .page .w:target, .vlist li:target { animation: none; }
  .lb-journey li:hover .lb-dot, .lb-journey li:focus-within .lb-dot { transform: none; }
  .vlist li, .lb-dot { transition: none; }
}

/* X method page (x/method.html): the toxic scale in words, one band per row */
.x-scale { list-style: none; margin: .5rem 0; padding: 0; max-width: 75ch; }
.x-scale li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .4rem 0; border-block-end: 1px solid var(--line, currentColor); color: var(--ink); }
.x-scale li:last-child { border-block-end: 0; }
.x-scale .num { text-align: right; color: var(--mute); white-space: nowrap; }
.page .x-article .note h3 { margin: 1.4rem 0 .35rem; }
.page .x-article .note > h3:first-child { margin-top: .4rem; }
.page .x-article .note p { max-width: 68ch; line-height: 1.75; margin: 0; }

.bill-stops {list-style:none;padding-inline-start:1rem}
.bill-stops li {border-inline-start:3px solid var(--line);padding:0 1rem 1rem;position:relative}
.bill-stops li::before {content:"";position:absolute;inset-inline-start:-.45rem;top:.55rem;width:.7rem;height:.7rem;border-radius:50%;background:var(--head)}
.bill-stops time {font-variant-numeric:tabular-nums;margin-inline-end:.8rem}
.bill-stops p {max-inline-size:65ch;margin-block:.4rem}

/* Keep the section links reachable before the five-stage diagram, especially on phones. */
.lb-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0 var(--pad-x) .5rem; }
.lb-links a, .bill-entry summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); }
.lb-layout:has(.lbf[hidden]) .lb-links a[href="#changes"] { display: none; }
.lb-layout :is(#journeys, #votes, #changes, .bill-entry) { scroll-margin-block-start: 5.5rem; }
.lb-head .lead h1 { font-size: clamp(28px, 2.5vw, 38px); }
.lb-layout .w > h2 { font-size: max(18px, 1.125rem); }
.lb-layout .note { line-height: 1.65; }
.bill-entry { padding: 1.25rem clamp(1rem, 2.5vw, 2rem); }
.bill-entry + .bill-entry { border-block-start: 1px solid var(--line); }
.bill-entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.bill-entry h3 { margin: 0; font-size: clamp(18px, 1.8vw, 24px); color: var(--head); }
.bill-status { display: inline-flex; align-items: center; gap: .5em; color: var(--mute); font-size: max(14px, .9375rem); font-weight: 600; }
.bill-status::before { content: ""; width: .7em; height: 2px; background: currentColor; }
.bill-status.published { color: color-mix(in srgb, var(--ok) 65%, var(--ink)); }
.bill-status.published::before { width: .55em; height: .55em; border-radius: 50%; }
.lbf .lbf-t { font-weight: 500; line-height: 1.5; text-underline-offset: .2em; }
.lbf-foot { align-items: center; }
.lbf-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.lbf > .skip:focus { position: static; align-self: start; }
.bill-entry p { max-inline-size: 62ch; margin: .5rem 0; font-size: max(16px, 1rem); line-height: 1.65; }
.bill-entry summary { display: flex; align-items: center; gap: .7em; cursor: pointer; font-weight: 600; list-style: none; }
.bill-entry summary::-webkit-details-marker { display: none; }
.bill-entry summary::before { content: ""; width: .48em; height: .48em; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.bill-entry details[open] > summary::before { transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .bill-entry summary::before { transition: transform 160ms ease-out; }
}
.bill-entry summary:hover { text-decoration: underline; }
.bill-entry summary:focus-visible, .lb-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bill-entry .bill-stops { margin-block: .5rem 1rem; }
.bill-stops time { display: block; font-size: max(13px, .875rem); color: var(--mute); }
.bill-stops strong { display: block; line-height: 1.45; }
@media (max-width: 699px) {
  .bill-entry header { display: grid; }
  .lb-links { column-gap: 1rem; }
}

/* /government/: the government-formation tracker. One phone screen shows the stage, the days left and the seat bar. */
.gov-status { padding-block: .6rem .8rem; }
.gov-stage { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--head); line-height: 1.25; }
.gov-stage.empty { color: var(--mute); font-weight: 500; }
.gov-meta { margin: .35rem 0 0; font-size: .8rem; color: var(--mute); }
.gov-count { padding-block: .5rem .8rem; }
.gov-days { margin: 0; display: flex; align-items: baseline; gap: .6rem; color: var(--head); }
.gov-n { font-size: 3.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gov-days span:last-child { font-size: 1.2rem; font-weight: 700; }
.gov-seats { padding-block: .6rem .8rem; }
.gov-bar { display: block; width: 100%; height: 2.6rem; }
.gov-sum { margin: .5rem 0 0; font-size: .95rem; }
.gov-legend { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; }
.gov-legend li { display: inline-flex; align-items: center; gap: .3rem; }
.gov-events { margin: 0; padding: 0; list-style: none; }
.gov-events li { padding: .45rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.gov-events li:last-child { border-bottom: 0; }
.gov-events li:target { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.gov-events time { color: var(--mute); font-variant-numeric: tabular-nums; margin-inline-end: .4rem; }
.gov-ev { font-weight: 500; }
.gov-anchor { color: var(--mute); text-decoration: none; margin-inline-start: .3rem; }
.gov-note { margin: .2rem 0 0; font-size: .85rem; color: var(--mute); }
.gov-share img { display: block; width: 100%; max-width: 36rem; height: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.gov-share p { margin: .5rem 0 0; }
@media (max-width: 40rem) {
  .gov-stage { font-size: 1.25rem; }
  .gov-n { font-size: 2.8rem; }
}
