/* Design variables: every colour, radius and font on the site comes from here. */
:root {
  --bg: #eef0f6; --card: #ffffff; --ink: #171a2e; --ink-2: #5a5f7a; --line: #dfe2ee; --soft: #e4e7fb; --link: #3346d3;
  --block: #1d2256; --on-block: #ffffff; --on-block-2: #b9bde6; --hot: #ff5c48; --on-hot: #2a0b06;
  --cmt: #00796b; --cmt-soft: #dcf1ee; --plen: #a04a00; --plen-soft: #fbe9d7;
  --for: #1f9d68; --against: #e04b3a; --absent: #dfe2ee;
  --p0: #3d5afe; --p1: #00897b; --p2: #c2410c; --p3: #8e24aa; --p4: #ad1457; --p5: #546e7a;
  --r-s: 14px; --r-m: 20px; --r-l: 24px; --r-xl: 28px;
  --shadow: 0 6px 22px rgba(29, 34, 86, .10);
  --font: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --bg: #0d0f1c; --card: #171a2e; --ink: #eef0fb; --ink-2: #a3a8c6; --line: #2a2e4a; --soft: #23274a; --link: #9aa7ff;
  --block: #262c6e; --cmt: #6fd0c3; --cmt-soft: #12322e; --plen: #f0a868; --plen-soft: #3a2713;
  --for: #4cc38f; --against: #f07a6c; --absent: #2a2e4a; --shadow: none;
  --p0: #7d92ff; --p1: #4db6ac; --p2: #ff8a50; --p3: #ce7be0; --p4: #f06292; --p5: #90a4ae; } }
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #0d0f1c; --card: #171a2e; --ink: #eef0fb; --ink-2: #a3a8c6; --line: #2a2e4a; --soft: #23274a; --link: #9aa7ff;
  --block: #262c6e; --cmt: #6fd0c3; --cmt-soft: #12322e; --plen: #f0a868; --plen-soft: #3a2713;
  --for: #4cc38f; --against: #f07a6c; --absent: #2a2e4a; --shadow: none;
  --p0: #7d92ff; --p1: #4db6ac; --p2: #ff8a50; --p3: #ce7be0; --p4: #f06292; --p5: #90a4ae; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; }
svg { width: 20px; height: 20px; display: block; flex: none; }
a, .link { color: var(--link); cursor: pointer; text-decoration: none; }
a:hover, .link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 14px 16px 70px; display: grid; gap: 14px; }
#page { display: grid; gap: 14px; min-width: 0; }

/* top: floating navigation, then the trail and the Knesset switch */
.pillnav { justify-self: center; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); position: sticky; top: 10px; z-index: 6; max-width: 100%; }
.pillnav button { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s; }
.pillnav button:hover, .pillnav button[aria-current] { background: var(--soft); color: var(--ink); }
.pillnav .brand { color: var(--ink); font-weight: 800; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 0 6px; }
.crumbs { font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.term { font-size: 13px; color: var(--ink-2); }
.switch { display: inline-flex; border-radius: 999px; padding: 3px; background: var(--card); gap: 2px; }
.switch button { padding: 3px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.switch button[aria-pressed="true"] { background: var(--block); color: var(--on-block); font-weight: 700; }
.back { color: var(--link); font-size: 14px; font-weight: 700; }

/* the navy block that opens every page */
.hero { background: var(--block); color: var(--on-block); border-radius: var(--r-xl); padding: 28px 26px 22px; display: grid; gap: 14px; overflow: hidden; }
.hero a, .hero .link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: clamp(27px, 5vw, 42px); line-height: 1.16; font-weight: 800; margin: 0; text-wrap: balance; }
.where { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.where > span { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.hero .lede { margin: 0; font-size: 18px; color: var(--on-block-2); max-width: 62ch; }
.hero .law { color: var(--on-block-2); font-size: 15.5px; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.counts div { background: rgba(255, 255, 255, .10); border-radius: var(--r-m); padding: 12px 8px; display: grid; justify-items: center; text-align: center; }
.counts b { font-size: 30px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.counts span { font-size: 13.5px; color: var(--on-block-2); }
.counts .off { opacity: .45; }
/* the law's path: finished stages, where this sitting is, what is still ahead */
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step { padding: 6px 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .10); color: var(--on-block-2); font-size: 13.5px; font-weight: 500; }
.step small { display: block; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.step.done { background: rgba(255, 255, 255, .22); color: var(--on-block); }
.step.later { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.step.skipped { opacity: .45; }
.step.here { background: var(--hot); color: var(--on-hot); font-weight: 700; }
/* episode strip: one dot per event of the law, in order */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 6px; margin: 0 -8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.dot { flex: none; width: 76px; display: grid; justify-items: center; gap: 5px; font-size: 12px; color: var(--on-block-2); font-variant-numeric: tabular-nums; text-align: center; }
.dot i { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; color: var(--on-block); transition: background .15s; }
button.dot:hover i { background: rgba(255, 255, 255, .18); }
.dot.vote i { border-radius: 12px; background: rgba(255, 255, 255, .16); border-color: transparent; }
.dot.quiet i { border-style: dashed; opacity: .5; }
.dot.now { color: var(--on-block); font-weight: 700; }
.dot.now i { background: var(--hot); border-color: var(--hot); color: var(--on-hot); box-shadow: 0 0 0 5px rgba(255, 92, 72, .28); }

/* tiles */
.bento { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.tile { background: var(--card); border-radius: var(--r-l); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile.hot { background: var(--hot); color: var(--on-hot); align-self: start; }
.tile.hot h2 { color: inherit; opacity: .75; }
.tile.hot p { font-size: 21px; line-height: 1.4; font-weight: 700; }
.tile p { margin: 0; font-size: 17px; }
h2 { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 0; }
h2.sec { padding: 12px 6px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.muted { color: var(--ink-2); } .small { font-size: 13.5px; }
.empty { color: var(--ink-2); font-style: italic; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); }
.tag { font-size: 12.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.tag.cmt { background: var(--cmt-soft); color: var(--cmt); } .tag.plen { background: var(--plen-soft); color: var(--plen); }
.date { font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-s); background: var(--bg); font-size: 15.5px; }
.row > :empty { display: none; }
.items { margin: 0; padding-inline-start: 18px; }
.pill { justify-self: start; font-size: 12.5px; font-weight: 500; border-radius: 999px; padding: 1px 10px; background: var(--card); color: var(--ink-2); }
.pill.wait { background: var(--plen-soft); color: var(--plen); } .pill.soon { background: var(--soft); color: var(--link); }
.pill.off { text-decoration: line-through; } .pill.done { background: var(--soft); color: var(--link); font-weight: 700; }
.tile.nostory { opacity: .6; }
details > summary { cursor: pointer; color: var(--link); font-size: 14.5px; font-weight: 700; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 8px; }
.voters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 6px; font-size: 14px; }
.voters div { background: var(--card); border-radius: var(--r-s); padding: 8px 12px; }
.voters ul { margin: 0; padding-inline-start: 18px; }

/* home: doors, laws with a vote bar, committee moments */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.door { background: var(--card); border-radius: var(--r-l); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-content: start; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
button.door:hover { border-color: var(--p0); transform: translateY(-2px); }
.door.off { opacity: .5; }
.door .ic { grid-row: span 3; width: 48px; height: 48px; border-radius: 16px; background: var(--soft); color: var(--link); display: grid; place-items: center; }
.door b { font-size: 21px; font-weight: 800; line-height: 1.2; }
.door .n { font-size: 13.5px; font-weight: 700; color: var(--link); }
.door span { color: var(--ink-2); font-size: 14.5px; }
.lhead { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.lname { font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--absent); }
.bar i { display: block; height: 100%; }
.bar .f { background: var(--for); } .bar .a { background: var(--against); }
.vl { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.vl b { font-variant-numeric: tabular-nums; }
.vl .f b { color: var(--for); } .vl .a b { color: var(--against); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.grid.s { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ep { background: var(--card); border-radius: var(--r-l); padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.ep:hover { border-color: var(--p0); transform: translateY(-2px); }
.ep .q { font-size: 17px; font-weight: 500; line-height: 1.4; }

/* people and things to pick */
.face { width: 48px; height: 48px; border-radius: 16px; background: var(--pc, var(--p5)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.person { background: var(--card); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; align-content: start; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.person:hover { border-color: var(--pc, var(--p5)); transform: translateY(-2px); }
.ptop { display: flex; gap: 12px; align-items: center; }
.ptop b { display: block; font-size: 17px; line-height: 1.2; }
.party { font-size: 13.5px; font-weight: 500; color: var(--pc, var(--ink-2)); }
.person .hl { font-size: 16.5px; line-height: 1.45; font-weight: 500; }
/* who spoke: members, officials (state bodies), guests; an empty group stays, greyed */
.speakers { display: grid; gap: 10px; }
.speakers h3.sec { margin: 0; padding: 12px 6px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 21px; font-weight: 800; border-top: 3px solid var(--line); }
.speakers h3.sec span:last-child { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.speakers.mk h3.sec { border-top-color: var(--p0); }
.speakers.official h3.sec { border-top-color: var(--block); }
.speakers.guest h3.sec { border-top-color: var(--cmt); }
.speakers .about { margin: 0 6px; color: var(--ink-2); font-size: 15px; }
.speakers.off { opacity: .55; }
.official .face { background: var(--block); } .guest .face { background: var(--cmt); }
.official .face svg, .guest .face svg { color: #fff; width: 22px; height: 22px; }
.official .party, .guest .party { color: var(--ink-2); }
.more { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.more svg { width: 15px; height: 15px; }
.pick { background: var(--bg); border-radius: var(--r-m); padding: 12px 14px; display: flex; gap: 12px; align-items: center; min-width: 0; border: 2px solid transparent; transition: border-color .15s; }
button.pick:hover { border-color: var(--pc, var(--p0)); }
.pick > span:last-child { display: grid; min-width: 0; }
.pick b { line-height: 1.3; } .pick span span { font-size: 13px; color: var(--ink-2); }
.pick .face { width: 40px; height: 40px; border-radius: 13px; font-size: 14.5px; }
.pick.off { opacity: .55; }
.tile.on-bg .pick { background: var(--card); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.filters label { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 3px 6px 3px 12px; }
.filters select { font: inherit; font-weight: 500; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 3px 6px; }
.filters select:disabled { opacity: .5; }
.about { display: grid; gap: 12px; }
.aline { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; align-items: baseline; }
.aline b { font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 2px; }
.stat b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--ink-2); }

/* comments */
.comments { display: grid; gap: 8px; }
.comment { background: var(--bg); border-radius: var(--r-m); border-start-start-radius: 4px; padding: 10px 14px; display: grid; gap: 2px; }
.who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ctext { white-space: pre-wrap; overflow-wrap: anywhere; }
.cform { display: grid; gap: 8px; }
.cform label { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.cform input, .cform textarea { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: var(--r-s); padding: 9px 12px; transition: border-color .15s; }
.cform input:focus, .cform textarea:focus { outline: 0; border-color: var(--p0); }
.cbar { display: flex; gap: 10px; align-items: center; }
.send { font-weight: 700; color: var(--on-block); background: var(--block); border-radius: 999px; padding: 9px 24px; min-height: 42px; }

/* the sheet: one speaker's full position and the transcript lines behind it */
dialog { border: 0; padding: 0; background: var(--card); color: var(--ink); border-radius: var(--r-xl); width: min(680px, calc(100vw - 24px)); max-height: min(86vh, 900px); }
dialog::backdrop { background: rgba(13, 15, 28, .55); backdrop-filter: blur(3px); }
.sheet { padding: 24px; display: grid; gap: 16px; }
.sheet header { display: flex; gap: 14px; align-items: center; }
.sheet header div { flex: 1; }
.sheet header b { font-size: 18px; }
.sheet h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.sheet p { margin: 0; font-size: 17px; }
.close { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.quote { background: var(--bg); border-radius: 18px; border-start-start-radius: 4px; padding: 12px 16px; font-size: 15.5px; margin-top: 8px; }
.quote.ctx { border-start-start-radius: 18px; border-start-end-radius: 4px; margin-inline-start: 28px; color: var(--ink-2); }

@media (max-width: 700px) {
  .bento, .doors { grid-template-columns: 1fr; } .counts { grid-template-columns: repeat(2, 1fr); }
  .hero { border-radius: var(--r-l); padding: 22px 18px 16px; } .tile { padding: 18px; }
  .pillnav button:not(.brand) span { display: none; } .pillnav button { padding: 8px 11px; }
  .row { grid-template-columns: 1fr; gap: 2px; } .aline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .person:hover, .ep:hover, button.door:hover { transform: none; } }
.partner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 36px 0 20px; padding-top: 18px;
  border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.partner img { height: 40px; width: auto; }

/* a long list scrolls inside its own box, not with the page */
.scrollbox { max-height: 70vh; overflow-y: auto; padding-inline-end: 6px; border-radius: var(--r-s); }
.scrollbox:focus-visible { outline: 2px solid var(--p0); outline-offset: 2px; }
.billfilters, .calfilters { margin-bottom: 10px; }
.calfilters { margin-top: 10px; }
.billfilters label { background: var(--card); padding: 6px 8px 6px 14px; }
.filters input { font: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 3px 6px; min-width: 0; }
.filters input[type="search"] { width: 15em; max-width: 60vw; }
.tile.off { opacity: .55; }
.switch button:disabled { opacity: .4; cursor: not-allowed; }
