/* עיצוב הדף. מבוסס על העיצוב מ-Figma Make (Data Under Pressure). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Heebo', system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 600; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:root {
  --ink: #121d2b;
  --muted: #637083;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --line: #d8d7d1;
  --blue: #1769e0;
  --blue-soft: #dceaff;
  --violet: #7555c7;
  --violet-soft: #ece6fb;
  --green: #1b8a68;
  --green-soft: #dff3ea;
  --orange: #e76f3f;
  --orange-soft: #fff0e8;
}

.app {
  min-height: 100vh;
  overflow: hidden;
}
.skip {
  position: fixed;
  top: 8px;
  inset-inline-start: -300px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 9px 14px;
}
.skip:focus {
  inset-inline-start: 8px;
}
.topbar, main, footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #bfc2c2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  transform: rotate(-2deg);
}
.brand-mark i {
  display: block;
  width: 7px;
  background: var(--ink);
  border-radius: 1px 1px 0 0;
}
.brand-mark i:nth-child(1) {
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 19px;
}
.brand-mark i:nth-child(3) {
  height: 27px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeb3b7;
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: .2s ease;
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}
.share-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.si {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: white;
  cursor: pointer;
  transition: transform .2s ease;
}
.si:hover {
  transform: translateY(-1px);
}
.si svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.si-link { background: #3a3a3a; }
.si-link svg { transform: rotate(-45deg); }
.si-mail, .si-x { background: #000; }
.si-x svg { width: 14px; height: 14px; }
.si-fb { background: #3b5998; }
.si-wa { background: #25d366; }
.si-wa svg { width: 18px; height: 18px; }
.si.done::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  z-index: 5;
}
.button.dark {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.button.dark:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 7vw, 104px);
  padding: 88px 0 54px;
  align-items: end;
}
.live-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  border: 1px solid #afcfff;
  border-radius: 999px;
  padding: 5px 11px;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 700;
}
.live-pill span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #d6e8ff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 2px #d6e8ff;
  }
}
h1 {
  max-width: 750px;
  margin: 20px 0 12px;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}
.lead {
  max-width: 650px;
  margin: 0;
  color: #445266;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.credit {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.credit a, footer a {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 3px;
}
.status-card {
  position: relative;
  background: var(--ink);
  color: white;
  padding: 30px;
  border-radius: 3px;
  box-shadow: 15px 15px 0 #dce7f4;
}
.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 54px;
  height: 5px;
  background: var(--blue);
}
.eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #8bb9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-card > strong {
  display: block;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
}
.status-card > p {
  margin: 7px 0 0;
  color: #bdc9d8;
}
.status-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 15px;
  padding-top: 20px;
  border-top: 1px solid #344355;
}
.status-meta span {
  color: #aab8c8;
  font-size: 12px;
}
.status-meta b {
  display: block;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 25px;
  line-height: 1.2;
}
.status-card .timestamp {
  font-size: 11px;
  line-height: 1.5;
}
.legend {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 22px;
  height: 8px;
  display: block;
}
.legend-solid {
  background: var(--ink);
}
.legend-estimate {
  border: 1px dashed var(--muted);
  background: white;
}
.dashboard-section {
  margin-top: 98px;
}
.section-heading {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.section-heading > span {
  font-family: 'DM Sans';
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.025em;
}
.section-heading i {
  height: 1px;
  background: #bfc3c4;
}
.bloc-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
}
.seat-scale-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 38px;
}
.scale-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: 'DM Sans';
  font-size: 11px;
}
.majority-label {
  position: absolute;
  inset-inline-start: 50.8%;
  transform: translateX(-50%);
  color: var(--ink);
  font-family: 'Heebo';
  font-weight: 700;
}
[dir='rtl'] .majority-label {
  transform: translateX(50%);
}
.parliament-scale {
  position: relative;
  display: flex;
  height: 92px;
  background: #eee;
  overflow: hidden;
}
.scale-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}
.scale-segment b {
  color: white;
  font-family: 'DM Sans';
  font-size: 24px;
}
.right {
  --tone: var(--blue);
  --soft: var(--blue-soft);
}
.change {
  --tone: var(--violet);
  --soft: var(--violet-soft);
}
.arab {
  --tone: var(--green);
  --soft: var(--green-soft);
}
.scale-segment.right {
  background: var(--blue);
}
.scale-segment.change {
  background: var(--violet);
}
.scale-segment.arab {
  background: var(--green);
}
.majority-line {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50.8%;
  width: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 2px #fff8;
}
.bloc-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 13px;
}
.bloc-key span, .split-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: none;
  border-radius: 2px;
  background: var(--tone);
}
.dot.right {
  background: var(--blue);
}
.dot.change {
  background: var(--violet);
}
.dot.arab {
  background: var(--green);
}
.bloc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bloc-card {
  min-height: 156px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.bloc-card:first-child {
  grid-column: 1 / -1;
}
.bloc-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.bloc-card strong {
  display: block;
  margin: 10px 0 0;
  font-family: 'DM Sans';
  font-size: 38px;
  line-height: 1;
}
.bloc-card p {
  min-height: 19px;
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.progress {
  display: flex;
  width: 100%;
  height: 5px;
  background: var(--soft);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--tone);
}
.progress em {
  flex: 1;
  border: 1px dashed var(--tone);
  opacity: .55;
}
.bloc-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.party-table {
  border-top: 2px solid var(--ink);
}
.party-head, .party-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(160px, 1.1fr) 80px 115px minmax(250px, 1.35fr);
  gap: 18px;
  align-items: center;
}
.party-head {
  padding: 11px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}
.party-row {
  min-height: 88px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8b3;
}
.party-row:hover {
  background: white;
}
.party-row.borderline {
  margin-top: 8px;
  background: var(--orange-soft);
  border: 1px solid #f2b59b;
}
.party-name {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
.party-name b {
  line-height: 1.25;
}
.party-name small {
  grid-column: 2;
  color: #a64522;
  font-size: 10px;
  line-height: 1.35;
}
.bar-track {
  display: flex;
  min-width: 24px;
  max-width: 100%;
  height: 13px;
  background: var(--soft);
}
.bar-track i {
  display: block;
  height: 100%;
  background: var(--tone);
}
.bar-track em {
  flex: 1;
  border: 1px dashed var(--tone);
  opacity: .55;
}
.seat-count b, .counted-cell b {
  display: block;
  font-family: 'DM Sans';
  font-size: 24px;
  line-height: 1;
}
.seat-count span, .counted-cell span {
  color: var(--muted);
  font-size: 10px;
}
.counted-cell b {
  font-size: 16px;
}
.party-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.party-note b {
  color: var(--ink);
}
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: #e9eef3;
  color: #4a596c;
  font-size: 12px;
}
.info-strip > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: none;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-family: serif;
  font-weight: 700;
}
.info-strip p {
  margin: 0;
}
.cta {
  margin: 100px 0 10px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  color: white;
  background: var(--blue);
  box-shadow: 16px 16px 0 #cbdcf4;
}
.cta > div {
  max-width: 750px;
}
.cta .eyebrow {
  color: #c6dcff;
}
.cta h2 {
  margin: 0 0 10px;
  max-width: 700px;
  font-size: clamp(28px, 4vw, 47px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.cta p {
  margin: 0;
  color: #d9e7ff;
}
.cta > a {
  flex: none;
  min-width: 145px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 14px 18px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}
.cta > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #0d4caa;
}
.section-intro {
  max-width: 850px;
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.data-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
}
.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 11px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-align: start;
  font-size: 11px;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e3e2dd;
  text-align: start;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table .group-row {
  background: var(--soft);
}
.group-row td:first-child {
  white-space: nowrap;
}
.group-row .dot {
  margin-inline-end: 8px;
}
.data-table td.indent {
  padding-inline-start: 48px;
}
.data-table .progress {
  min-width: 80px;
}
.total-row {
  background: #e8ebee;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  min-height: 145px;
  padding: 22px;
  background: var(--surface);
  border-top: 3px solid var(--ink);
}
.stat > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  margin-top: 15px;
  font-family: 'DM Sans';
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}
.stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.subheading {
  margin: 44px 0 14px;
  font-size: 17px;
}
.split-bar {
  height: 24px;
  display: flex;
  overflow: hidden;
}
.split-bar i.right {
  background: var(--blue);
}
.split-bar i.change {
  background: var(--violet);
}
.split-bar i.arab {
  background: var(--green);
}
.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding: 14px 0;
}
.split-legend span {
  font-size: 12px;
}
.split-legend small {
  color: var(--muted);
}
.reading {
  padding-bottom: 100px;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reading-grid article {
  min-height: 190px;
  padding: 25px;
  background: var(--surface);
}
.reading-grid span {
  color: var(--blue);
  font-family: 'DM Sans';
  font-size: 12px;
  font-weight: 700;
}
.reading-grid p {
  margin: 35px 0 0;
  color: #4c5868;
  font-size: 14px;
}
footer {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 55px;
  padding: 55px 0 70px;
  border-top: 2px solid var(--ink);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.footer-brand b {
  font-family: 'DM Sans';
  font-size: 11px;
  line-height: 1.05;
}
.footer-copy {
  color: var(--muted);
  font-size: 12px;
}
.footer-copy p {
  margin: 0 0 10px;
}
.footer-copy details {
  margin: 16px 0;
}
.footer-copy summary {
  width: fit-content;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.footer-copy details p {
  margin-top: 12px;
}
.disclaimer {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 900px) {
  .hero, .bloc-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 60px;
  }
  .status-card {
    max-width: 620px;
  }
  .party-head {
    display: none;
  }
  .party-row {
    grid-template-columns: minmax(130px, 1fr) 70px 90px;
    gap: 10px;
  }
  .party-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .party-note {
    grid-column: 1 / -1;
  }
  .reading-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .topbar, main, footer {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
    padding: 13px 0;
  }
  .actions {
    width: 100%;
    justify-content: space-between;
  }
  .brand > span:last-child {
    max-width: 100px;
    line-height: 1.2;
  }
  .share-icons {
    gap: 6px;
  }
  .si {
    width: 28px;
    height: 28px;
  }
  .button {
    min-height: 34px;
    padding: 5px 11px;
  }
  .hero {
    gap: 30px;
    padding: 50px 0 36px;
  }
  h1 {
    font-size: 43px;
  }
  .status-card {
    padding: 24px;
    box-shadow: 8px 8px 0 #dce7f4;
  }
  .legend {
    flex-direction: column;
    gap: 7px;
  }
  .dashboard-section {
    margin-top: 72px;
  }
  .section-heading {
    grid-template-columns: auto 1fr;
  }
  .section-heading i {
    display: none;
  }
  .seat-scale-card {
    padding: 20px;
  }
  .parliament-scale {
    height: 70px;
  }
  .scale-segment b {
    font-size: 18px;
  }
  .bloc-cards {
    grid-template-columns: 1fr;
  }
  .bloc-card:first-child {
    grid-column: auto;
  }
  .party-row {
    padding: 15px 10px;
    grid-template-columns: 1fr 54px 66px;
  }
  .seat-count b {
    font-size: 21px;
  }
  .counted-cell span {
    display: none;
  }
  .cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 75px;
    box-shadow: 8px 8px 0 #cbdcf4;
  }
  .cta > a {
    width: 100%;
  }
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .stat {
    min-height: auto;
  }
  .split-legend {
    flex-direction: column;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* תוספות לדף החי: הודעת שגיאה, הדגשות בעמודת ההערות, עברית */
.notice {
  margin: 0 0 12px; padding: 12px 16px; font-size: 14px;
  background: var(--orange-soft); color: #a64522; border: 1px solid #f2b59b;
}
.party-note .kw { color: var(--ink); font-weight: 700; }
.chg {
  display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 700;
  direction: ltr; unicode-bidi: isolate;
}
.chg.up { background: var(--green-soft); color: var(--green); }
.chg.down { background: var(--orange-soft); color: #c2410c; }
.data-table .n, .data-table b { font-weight: 700; }
.cta .arrow { font-size: 18px; }
[dir='rtl'] .cta .arrow { transform: scaleX(-1); }
[dir='rtl'] h1 { letter-spacing: -.02em; }
[dir='rtl'] .section-heading h2, [dir='rtl'] .cta h2 { letter-spacing: -.01em; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.neutral { --tone: #8a8f98; --soft: #eceae4; }
.split-bar i.edge, .dot.edge { background: var(--orange); }
.split-bar i.neutral, .dot.neutral { background: #b9bcc0; }
[dir='rtl'] .eyebrow { letter-spacing: .02em; }

/* פאי חצי עגול של הגושים */
.pie { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
.pie-solid { fill: var(--tone); }
.pie-soft { fill: var(--soft); stroke: var(--tone); stroke-width: 1; stroke-dasharray: 4 3; }
.pie-num { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; fill: #fff; }
.pie-line { stroke: var(--ink); stroke-width: 2; }
.pie-maj { font-size: 12px; font-weight: 700; fill: var(--ink); }
.pie-big { font-family: 'DM Sans', sans-serif; font-size: 34px; font-weight: 700; fill: var(--ink); }
.pie-cap { font-size: 12px; fill: var(--muted); }
.seat-scale-card .bloc-key { justify-content: center; }

/* קישור ללינקדאין: הלוגו במקום המילה */
a.li-icon { display: inline-flex; vertical-align: -3px; margin-inline-start: 4px; color: #0a66c2; }
a.li-icon svg { width: 16px; height: 16px; fill: currentColor; }
a.li-icon:hover { color: #004182; }
