/* זמן אמת — visual design from "זמן אמת – עיצוב חדש" (3 mobile screens: ראשי, כתבה, מבזקים):
   blue header with the logo, a row of sections, a red breaking bar, white pages, heavy black headlines. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #eef0f4;       /* grey bars and bands */
  --ink: #111111;
  --muted: #5b6270;
  --faint: #7d8491;
  --line: #e1e4ea;
  --rail: #c5cad3;
  --brand: #1447d6;      /* the header's blue */
  --brand-soft: #e8eefc;
  --night: #0f1f4d;      /* dark panels: a deep shade of the brand blue */
  --live: #d9151f;       /* breaking red, also section labels */
  --live-deep: #a50f17;
  --live-soft: #fdecec;
  --green: #19705a;
  --amber: #a35c14;
  --amber-soft: #f6ead9;
  --on-dark-muted: rgba(255, 255, 255, .78);
  --radius-lg: 10px;
  --radius-md: 6px;
  --gutter: 18px;
  --nav-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", Arial, "Noto Sans Hebrew", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

/* One centered mobile-width column, also on desktop. */
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); position: relative; }
@media (min-width: 560px) { body { background: #dfe3ea; } .shell { box-shadow: 0 0 0 1px var(--line); } }

/* Icons: SVGs used as masks so they take the current text color. */
.icon { display: inline-block; flex: none; width: 22px; height: 22px; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-user { --i: url(icons/user-round.svg); } .i-menu { --i: url(icons/menu.svg); } .i-bookmark { --i: url(icons/bookmark.svg); }
.i-grid { --i: url(icons/layout-grid.svg); } .i-radio { --i: url(icons/radio.svg); } .i-house { --i: url(icons/house.svg); }
.i-share { --i: url(icons/share-2.svg); } .i-back { --i: url(icons/arrow-right.svg); } .i-more { --i: url(icons/chevron-left.svg); }
.i-bell { --i: url(icons/bell.svg); } .i-calendar { --i: url(icons/calendar-days.svg); } .i-search { --i: url(icons/search.svg); }
.i-x { --i: url(icons/x.svg); } .i-saved { --i: url(icons/bookmark-check.svg); } .i-settings { --i: url(icons/settings-2.svg); }
.i-save { --i: url(icons/bookmark-article.svg); } .i-zap { --i: url(icons/zap.svg); }

/* ---------- Header: blue bar, logo in the middle ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  height: 56px; padding: 0 12px;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  background: var(--brand); color: #fff;
}
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; color: inherit;
}
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn.text-size { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.icon-btn.text-size[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, .14); } }
.icon-btn:focus-visible, .tab:focus-visible, .nav-item:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.app-header :focus-visible { outline-color: #fff; }
.brand { justify-self: center; display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.brand-mark { width: 24px; height: 24px; display: block; }
.brand-name { font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.brand.on-light { color: var(--brand); justify-self: start; }
.brand.on-light .brand-name { font-size: 22px; }
/* the breaking-news screen has its own red bar */
.app-header.live { background: var(--live); grid-template-columns: 1fr auto; padding: 0 var(--gutter); }
.app-header.live h1 { font-size: 27px; font-weight: 900; line-height: 1; }
.on-air { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }

/* grey bar under the header: the screen's name, or the date on the breaking screen */
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px var(--gutter); background: var(--soft); color: var(--muted); font-size: 14px; }
.page-bar h1 { font-size: 18px; font-weight: 900; color: var(--ink); }
.page-bar b { color: var(--ink); font-weight: 700; }

/* ---------- Sections row ---------- */
.sections { display: flex; gap: 22px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--line); }
.sections::-webkit-scrollbar { display: none; }
.sections a { flex: none; padding: 13px 0 10px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.sections a[aria-current="page"] { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }

/* ---------- Breaking bar ---------- */
.live-strip { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px var(--gutter); background: var(--live); color: #fff; text-decoration: none; }
.live-label { flex: none; background: var(--live-deep); padding: 4px 9px; font-size: 14px; font-weight: 900; }
.live-strip time { flex: none; font-size: 15px; font-weight: 700; }
.live-strip .update { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-status { margin: 0; padding: 8px var(--gutter); font-size: 13px; color: var(--muted); background: var(--soft); }
.scan-status.stale { color: var(--amber); background: var(--amber-soft); font-weight: 700; }

/* ---------- Screen body ---------- */
.screen { padding: 16px var(--gutter) 24px; display: flex; flex-direction: column; gap: 16px; }
.screen.home { padding-top: 0; gap: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 20px; font-weight: 900; line-height: 1.2; }
.section-head .action { color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.section-head .rule { flex: none; width: 42px; height: 1px; background: var(--rail); }

/* Section label (red, as in the design), source label (the source's own colour), small badges */
.cat { font-size: 14px; font-weight: 700; color: var(--live); }
.src-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.src-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); }
.badge-new { display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; }
.badge-hot { display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 8px; }

/* ---------- Lead story ---------- */
.lead { display: block; margin: 0 calc(-1 * var(--gutter)); text-decoration: none; color: inherit; }
/* where a photo would be: who is covering the story right now */
.coverage { display: flex; align-items: center; gap: 14px; padding: 16px var(--gutter); background: var(--soft); }
.coverage .count { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 84px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.25; }
.coverage .count b { font-size: 40px; font-weight: 900; line-height: 1; color: var(--brand); }
.coverage .names { display: flex; flex-wrap: wrap; gap: 6px; }
.coverage .names i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.coverage .names i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lead-copy { display: flex; flex-direction: column; gap: 8px; padding: 16px var(--gutter) 18px; }
.lead h2 { font-size: 29px; font-weight: 900; line-height: 1.18; letter-spacing: -.01em; }
.lead .summary { font-size: 17px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead .meta { font-size: 14px; color: var(--faint); }
.band { height: 8px; margin: 0 calc(-1 * var(--gutter)); background: var(--soft); }

/* ---------- Story rows ---------- */
.stories { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stories > li + li { border-top: 1px solid var(--line); }
.story { display: flex; align-items: center; gap: 12px; padding: 16px 0; text-decoration: none; color: inherit; }
.story .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.story h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.story .meta { color: var(--faint); font-size: 14px; }
.read-more { flex: none; text-decoration: none; color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; padding: 8px 0; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 520px; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); border-top: 1px solid var(--line);
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-item .icon { width: 24px; height: 24px; }
.nav-item[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav-item[data-nav="live"][aria-current="page"] { color: var(--live); }
/* the event screen: the bar holds the story's actions instead */
body[data-screen="event"] .bottom-nav { display: none; }
.action-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 520px; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
}
.action-bar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink); }
.action-bar button + button { border-inline-start: 1px solid var(--line); }
.action-bar button[aria-pressed="true"] { color: var(--brand); font-weight: 700; }

/* ---------- Event (article) screen ---------- */
.article { gap: 12px; }
.article h1 { font-size: 31px; font-weight: 900; line-height: 1.18; letter-spacing: -.01em; }
.standfirst { font-size: 18px; line-height: 1.5; color: var(--muted); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.meta-row b { color: var(--ink); }
.ai-summary { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 4px; }
.ai-summary .ai-label { align-self: flex-start; padding: 3px 9px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; border-radius: 3px; }
.ai-summary .body { font-size: 19px; line-height: 1.75; }
.ai-summary .ai-note { font-size: 12px; line-height: 1.5; color: var(--faint); }
.big-text .ai-summary .body { font-size: 23px; }
.big-text .article h1 { font-size: 35px; }
.big-text .standfirst { font-size: 21px; }
.big-text .source-item h3 { font-size: 21px; }
.sub-head { margin-top: 10px; padding-top: 14px; border-top: 8px solid var(--soft); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); font-size: 20px; font-weight: 900; scroll-margin-top: 64px; }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.source-list > li { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.source-list > li + li { border-top: 1px solid var(--line); }
.source-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.source-item h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.source-item .meta { font-size: 13px; color: var(--faint); }
.source-item .meta b, .flash-list .meta b { color: var(--brand); }
.open-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { min-width: 92px; padding: 10px 6px 9px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; text-decoration: none; text-align: center; color: var(--muted); font-size: 15px; font-weight: 700; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Breaking news list ---------- */
.screen.flashes { padding-top: 0; gap: 0; }
.flash-list { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0; }
.flash-list li + li { border-top: 1px solid var(--line); }
.flash-list li.first { background: var(--live-soft); }
.flash-list a { display: flex; gap: 14px; padding: 16px var(--gutter); text-decoration: none; color: inherit; }
.flash-list time { flex: none; width: 56px; font-size: 19px; font-weight: 900; color: var(--live); line-height: 1.4; }
.flash-list .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.flash-list h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
.flash-list li.first h3 { font-weight: 700; }
.flash-list .meta { font-size: 13px; color: var(--faint); }

/* ---------- Sections screen (search, sources, topics) ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: var(--soft); border-radius: var(--radius-md); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search .icon { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .icon { width: 12px; height: 12px; }
.chip[aria-pressed="false"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic-tile { min-height: 96px; border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; text-decoration: none; background: var(--brand); }
.topic-tile:nth-child(2) { background: var(--live); }
.topic-tile.wide { grid-column: 1 / -1; min-height: 80px; background: var(--night); }
.topic-tile .name { font-size: 22px; font-weight: 900; }
.topic-tile .count { font-size: 13px; color: rgba(255, 255, 255, .85); }
.list-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); border: 0; background: none; width: 100%; cursor: pointer; }
.list-link .label { display: inline-flex; align-items: center; gap: 10px; }
.list-link .icon { width: 18px; height: 18px; }
.list-link .i-more { color: var(--brand); }

/* ---------- Saved ---------- */
.profile-card { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 16px; display: flex; align-items: center; gap: 12px; }
.profile-card .details { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.profile-card h2 { font-size: 22px; font-weight: 900; }
.profile-card .sub { color: var(--on-dark-muted); font-size: 13px; }
.profile-card .stats { display: flex; gap: 16px; font-size: 13px; font-weight: 700; }
.avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; }
.avatar .icon { width: 26px; height: 26px; }
.unsave { border: 0; background: none; padding: 6px; margin: -6px; cursor: pointer; color: var(--brand); display: inline-flex; }
.unsave .icon { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.empty { background: var(--soft); border-radius: var(--radius-lg); padding: 28px 18px; margin-top: 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.footnote { color: var(--faint); font-size: 12px; text-align: center; padding: 18px 0 0; }
.status-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.status-table th, .status-table td { text-align: start; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table th { background: var(--soft); }
.ok { color: var(--green); font-weight: 700; } .bad { color: var(--live); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="en"] { direction: ltr; unicode-bidi: isolate; }

/* Menu sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 50, .5); }
.sheet { position: fixed; z-index: 41; top: 0; bottom: 0; right: max(0px, calc(50% - 260px)); width: min(300px, 86vw); background: var(--bg); padding: 12px var(--gutter); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 24px rgba(0, 0, 0, .2); overflow-y: auto; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-bottom: 8px; color: var(--ink); }
.sheet .icon-btn:hover { background: var(--soft); }
.sheet a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; font-size: 16px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a .icon { color: var(--brand); }
.sheet .about { color: var(--muted); font-size: 13px; line-height: 1.5; padding-top: 12px; }

/* "Add to home screen" guide: a card that rises from the bottom */
.guide {
  position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100vw); max-height: 92dvh; overflow-y: auto;
  background: var(--bg); border-radius: 18px 18px 0 0; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: 12px; animation: guide-in .28s ease-out;
}
@keyframes guide-in { from { transform: translate(-50%, 40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .guide { animation: none; } }
.guide-head { display: flex; align-items: center; gap: 12px; }
.guide-head .guide-art { width: 64px; flex: none; }
.guide-head > div:nth-child(2) { flex: 1; }
.guide-head h2 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.25; }
.guide-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.guide-head .icon-btn:hover { background: var(--soft); }
.guide .tabs { justify-content: center; gap: 12px; }
.guide .tab { min-width: 110px; }
.guide-body { display: flex; flex-direction: column; gap: 10px; }
.guide-art svg { display: block; width: 100%; height: auto; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-steps li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.guide-steps .guide-art { width: 132px; flex: none; background: var(--soft); border-radius: var(--radius-md); }
.guide-steps h3 { margin: 0; font-size: 16px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.guide-steps .num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--live); color: #fff; font-size: 13px; display: grid; place-items: center; }
.guide-steps p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.guide-note { margin: 0; color: var(--faint); font-size: 12px; text-align: center; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-btn { flex: 1 1 130px; min-height: 48px; border-radius: var(--radius-md); border: 1px solid var(--rail); background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.guide-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.guide-btn.one-tap { flex-basis: 100%; background: var(--live); border-color: var(--live); }
.guide-btn[hidden] { display: none; }

.toast { position: fixed; z-index: 50; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }

@media (max-width: 360px) { :root { --gutter: 14px; } .brand-name { font-size: 24px; } .lead h2 { font-size: 26px; } .article h1 { font-size: 27px; } .guide-steps .guide-art { width: 104px; } }

/* Fixed app scale: no pinch-zoom or double-tap zoom (the page itself also blocks iOS gesture events). */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-x: none; }
a, button, input, .story, .lead, .topic-tile, .chip { touch-action: manipulation; }
/* No hover/touch decoration on headlines: nothing changes until a story is actually tapped. */
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- בחירות 2026 ---------- */
.seats-bar { display: flex; height: 34px; border-radius: var(--radius-md); overflow: hidden; margin-top: 6px; direction: rtl; }
.seats-bar span { min-width: 2px; color: #fff; font-size: 13px; font-weight: 700; line-height: 34px; text-align: center; border-inline-start: 1px solid #fff; }
.seats-bar span:first-child { border: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 10px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend i, .party-head i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; }
.legend b { color: var(--ink); }
.party-list, .channel-bars { margin: 0; padding: 0; list-style: none; }
.party { padding: 14px 0; border-bottom: 1px solid var(--line); }
.party-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.party-head h3 { font-size: 18px; font-weight: 900; }
.party-head .avg { margin-inline-start: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.party-head .avg b { font-size: 22px; font-weight: 900; color: var(--ink); }
.channel-bar { display: grid; grid-template-columns: 74px 1fr 62px; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--muted); }
.channel-bar .track { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.channel-bar .track i { display: block; height: 100%; border-radius: 6px; }
.channel-bar b { color: var(--ink); font-size: 15px; }
.channel-bar .under { font-size: 11px; color: var(--faint); }
.elections .ai-note a { color: inherit; }

/* the forecast: the page's headline panel */
.forecast { padding: 22px var(--gutter) 20px; background: var(--night); color: #fff; }
.forecast-label { display: inline-block; padding: 4px 10px; background: var(--live); font-size: 13px; font-weight: 700; border-radius: 3px; }
.forecast-kicker { margin-top: 16px; font-size: 15px; color: var(--on-dark-muted); }
.forecast-winner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.forecast-winner h2 { font-size: 46px; font-weight: 900; line-height: 1.05; }
.forecast-seats { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 108px; height: 108px; border-radius: 50%; border: 4px solid #fff; }
.forecast-seats b { font-size: 46px; font-weight: 900; line-height: 1; }
.forecast-seats span { font-size: 13px; font-weight: 700; }
.forecast-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.forecast-next li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 6px; padding: 10px; background: rgba(255, 255, 255, .1); border-radius: var(--radius-md); }
.forecast-next .place { grid-column: 1 / -1; font-size: 12px; color: var(--on-dark-muted); }
.forecast-next .place::before { content: "מקום "; }
.forecast-next i { width: 10px; height: 10px; border-radius: 50%; }
.forecast-next .name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forecast-next b { grid-column: 1 / -1; font-size: 28px; font-weight: 900; line-height: 1.1; }
.forecast-text { margin-top: 18px; font-size: 19px; font-weight: 500; line-height: 1.6; }
.forecast .seats-bar { margin-top: 18px; }
.forecast .seats-bar span { border-color: var(--night); }
.forecast .legend { color: var(--on-dark-muted); }
.forecast .legend b { color: #fff; }
.forecast-note { font-size: 12px; line-height: 1.5; color: var(--on-dark-muted); }
.sub-head.first { margin-top: 0; border-top: 0; }

/* the one-time announcement of a new section */
.news-tag { display: inline-block; margin-bottom: 6px; padding: 3px 9px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; border-radius: 3px; }
.guide.news .guide-head h2 { font-size: 26px; }
.guide.news .guide-head p { font-size: 15px; }
.news-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.news-points li { padding-inline-start: 18px; position: relative; }
.news-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.news-points b { color: var(--ink); }
.news-where { padding: 12px; background: var(--soft); border-radius: var(--radius-lg); }
.news-where p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.news-strip { display: flex; gap: 18px; padding: 0 12px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; white-space: nowrap; font-size: 16px; }
.news-strip span { padding: 11px 0 8px; border-bottom: 3px solid transparent; }
.news-strip .on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); background: var(--brand-soft); border-radius: 4px 4px 0 0; }

/* the install guide when the browser offers its own install dialog: one button instead of the steps */
.guide .one-tap-intro { display: none; }
.guide.one-tap-ready .tabs, .guide.one-tap-ready .guide-body, .guide.one-tap-ready .steps-intro, .guide.one-tap-ready .understood { display: none; }
.guide.one-tap-ready .one-tap-intro { display: block; }
.guide.one-tap-ready .one-tap { min-height: 56px; font-size: 18px; }

/* ==========================================================================
   Computers (wide screens). Everything above is the phone layout and stays as it is;
   from 1000px the same pages get a wide shell, the navigation moves into the blue
   header, the home page shows the lead story beside the list, and text grows.
   ========================================================================== */
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }
  .shell { max-width: 1180px; padding-bottom: 56px; }
  body[data-screen="event"] .shell { padding-bottom: 120px; }

  /* header: logo on the right, the four screens in the middle, search on the left */
  .app-header { height: 72px; padding: 0 20px; grid-template-columns: 44px auto 1fr 44px; column-gap: 12px; }
  .app-header > .icon-btn:last-child { grid-column: 4; }
  .brand { justify-self: start; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 32px; }
  .app-header.live { padding: 0 var(--gutter); }
  .bottom-nav, body[data-screen="event"] .bottom-nav {
    display: flex; top: 0; bottom: auto; width: auto; max-width: none; height: 72px; padding: 0; gap: 6px;
    background: none; border: 0;
  }
  .nav-item { flex: none; flex-direction: row; gap: 8px; padding: 9px 16px; border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: 16px; font-weight: 700; }
  .nav-item .icon { width: 20px; height: 20px; }
  .nav-item:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .nav-item[aria-current="page"], .nav-item[data-nav="live"][aria-current="page"] { background: #fff; color: var(--brand); }
  .nav-item[data-nav="live"][aria-current="page"] { color: var(--live); }
  .nav-item:focus-visible { outline-color: #fff; }

  .sections { gap: 34px; }
  .sections a { padding: 16px 0 13px; font-size: 18px; }
  .sections a:hover { color: var(--brand); }
  .page-bar { min-height: 52px; font-size: 16px; }
  .page-bar h1 { font-size: 24px; }
  .live-strip { min-height: 52px; }
  .live-strip time, .live-strip .update { font-size: 17px; }

  /* home: the lead story on the right, the other events beside it */
  .screen { padding: 28px var(--gutter) 32px; }
  .screen.home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 44px; align-items: start; padding-top: 28px; }
  .screen.home > * { grid-column: 1 / -1; }
  .screen.home > .lead { grid-column: 1; margin: 0; position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .screen.home > .stories { grid-column: 2; }
  .screen.home > .band { display: none; }
  .coverage { padding: 22px 24px; }
  .coverage .count b { font-size: 56px; }
  .coverage .count { font-size: 14px; min-width: 110px; }
  .coverage .names i { font-size: 15px; padding: 6px 12px; }
  .lead-copy { padding: 22px 24px 26px; gap: 12px; }
  .lead h2 { font-size: 44px; line-height: 1.14; }
  .lead .summary { font-size: 19px; line-height: 1.6; -webkit-line-clamp: 6; }
  .lead:hover h2, .story:hover h3, .source-item:hover h3, .flash-list a:hover h3 { color: var(--brand); }
  .stories > li:first-child .story { padding-top: 0; }
  .story h3 { font-size: 21px; }
  .read-more { font-size: 14px; }

  /* every other screen: one comfortable reading column */
  .screen:not(.home) { width: 100%; max-width: 860px; margin-inline: auto; }
  .article h1 { font-size: 44px; }
  .standfirst { font-size: 21px; }
  .ai-summary .body { font-size: 21px; }
  .ai-summary .ai-note, .forecast-note { font-size: 13px; }
  .source-item h3 { font-size: 20px; }
  .flash-list h3 { font-size: 20px; }
  .flash-list time { width: 70px; font-size: 21px; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .topic-tile.wide { grid-column: span 2; }
  .action-bar { bottom: 24px; width: 480px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: 0 10px 30px rgba(10, 20, 50, .18); }
  .action-bar button:hover { background: var(--soft); }

  /* elections */
  .forecast { max-width: 860px; margin: 28px auto 0; padding: 34px 36px 30px; border-radius: 16px; }
  .forecast-winner h2 { font-size: 64px; }
  .forecast-seats { width: 132px; height: 132px; }
  .forecast-seats b { font-size: 58px; }
  .forecast-next b { font-size: 36px; }
  .forecast-next .name { font-size: 17px; }
  .forecast-text { font-size: 22px; }
  .seats-bar { height: 44px; }
  .seats-bar span { line-height: 44px; font-size: 15px; }
  .legend { font-size: 15px; }
  .party-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .channel-bar { font-size: 14px; }

  /* popups: a centred window instead of a sheet from the bottom; the menu opens at the shell's edge */
  .guide { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 18px; padding: 24px; animation: none; max-height: 88vh; }
  .sheet { right: max(0px, calc(50% - 590px)); width: 340px; }
}

/* "more events" under an event */
.more-events { padding-top: 0; gap: 0; }
.more-events .sub-head { margin-top: 0; margin-bottom: 4px; }
.more-events .list-link { border-top: 1px solid var(--line); font-weight: 700; }
@media (min-width: 1000px) { .screen.more-events { padding-top: 0; } }

/* the elections page for search engines: the poll table and the questions */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.polls-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.polls-table th, .polls-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.polls-table thead th { background: var(--soft); font-weight: 700; }
.polls-table thead small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; }
.polls-table tbody th { text-align: start; font-weight: 700; }
.polls-table tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; }
.polls-table td.under { color: var(--faint); font-size: 12px; }
.polls-table td.avg { font-weight: 700; background: var(--brand-soft); }
.polls-table td.proj { font-weight: 900; color: var(--brand); }
.faq h3 { font-size: 17px; font-weight: 900; margin: 14px 0 4px; }
.faq p { color: var(--muted); line-height: 1.6; }

/* the red breaking bar names the source of the flash */
.live-strip .live-src { flex: none; padding: 2px 8px; border-radius: 3px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }

/* ==========================================================================
   Phones follow their own system. Everything here is phone-only (under 1000px) and keyed on the
   class app.js puts on <html>: .ios or .android. Same pages, same brand; the controls change.
   ========================================================================== */
@media (max-width: 999px) {
  /* ---------- iPhone: iOS 26 "Liquid Glass" ---------- */
  /* glass: see-through, blurred, with a light rim — bars float above the page instead of sitting on its edge */
  html.ios .app-header { background: rgba(20, 71, 214, .82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
  html.ios .app-header.live { background: rgba(217, 21, 31, .85); }
  html.ios .bottom-nav, html.ios .action-bar {
    left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 492px; height: 62px; padding: 5px;
    border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px;
    background: rgba(250, 250, 252, .66); -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
    box-shadow: 0 10px 34px rgba(15, 31, 77, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  html.ios .nav-item { height: 100%; justify-content: center; gap: 2px; border-radius: 999px; font-size: 11px; transition: background-color .2s, transform .15s; }
  html.ios .nav-item[aria-current="page"] { background: rgba(20, 71, 214, .13); }
  html.ios .nav-item[data-nav="live"][aria-current="page"] { background: rgba(217, 21, 31, .12); }
  html.ios .action-bar { overflow: hidden; }
  html.ios .action-bar button { border-radius: 999px; font-size: 14px; }
  html.ios .action-bar button + button { border: 0; }
  html.ios .shell { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  html.ios .toast { bottom: calc(86px + env(safe-area-inset-bottom)); background: rgba(28, 28, 30, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  /* sheets: big rounded corners, a grabber, frosted */
  html.ios .guide { border-radius: 30px 30px 0 0; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); padding-top: 10px; }
  html.ios .guide::before { content: ""; align-self: center; width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); flex: none; }
  html.ios .sheet { border-radius: 26px 0 0 26px; }
  /* buttons: capsules; pressing one makes it shrink a little, as on the system */
  html.ios .guide-btn { border-radius: 999px; min-height: 50px; }
  html.ios .guide-btn:not(.primary) { background: rgba(118, 118, 128, .12); border-color: transparent; }
  /* tabs: the segmented control */
  html.ios .tabs { gap: 0; padding: 3px; border: 0; border-radius: 999px; background: rgba(118, 118, 128, .12); }
  html.ios .tab { flex: 1; min-width: 0; padding: 8px 6px; border: 0; border-radius: 999px; font-size: 14px; transition: background-color .2s, color .2s; }
  html.ios .tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
  /* the sections row: the selected section is a filled capsule, and the row snaps as it is swiped */
  html.ios .sections { gap: 6px; padding: 8px var(--gutter); scroll-snap-type: x proximity; border-bottom: 0; }
  html.ios .sections a { scroll-snap-align: start; padding: 7px 14px; border: 0; border-radius: 999px; font-size: 15px; background: rgba(118, 118, 128, .1); }
  html.ios .sections a[aria-current="page"] { background: var(--brand); color: #fff; }
  html.ios .search { border-radius: 12px; background: rgba(118, 118, 128, .12); }
  html.ios .chip, html.ios .topic-tile, html.ios .empty, html.ios .profile-card { border-radius: 16px; }
  html.ios .topic-tile { border-radius: 20px; }
  html.ios .nav-item:active, html.ios .guide-btn:active, html.ios .action-bar button:active, html.ios .chip:active, html.ios .sections a:active { transform: scale(.94); }
  html.ios .story:active, html.ios .lead:active, html.ios .flash-list a:active, html.ios .list-link:active { background: rgba(118, 118, 128, .1); }

  /* ---------- Android: Material 3 ---------- */
  /* navigation bar: a tonal surface; the selected screen gets an "active indicator" pill behind its icon */
  html.android .bottom-nav { height: calc(80px + env(safe-area-inset-bottom)); padding-top: 12px; align-items: flex-start; border-top: 0; background: #eef1fa; }
  html.android .nav-item { position: relative; isolation: isolate; gap: 6px; font-size: 12px; font-weight: 500; color: #44474f; }
  html.android .nav-item::before { content: ""; position: absolute; z-index: -1; top: -4px; left: 50%; width: 64px; height: 32px; border-radius: 16px; background: #d9e2ff; transform: translateX(-50%) scaleX(0); transition: transform .2s cubic-bezier(.2, 0, 0, 1); }
  html.android .nav-item[aria-current="page"] { color: #001849; font-weight: 700; }
  html.android .nav-item[aria-current="page"]::before { transform: translateX(-50%) scaleX(1); }
  html.android .nav-item[data-nav="live"][aria-current="page"] { color: #410002; }
  html.android .nav-item[data-nav="live"][aria-current="page"]::before { background: #ffdad6; }
  html.android .shell { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html.android .action-bar { height: calc(80px + env(safe-area-inset-bottom)); border-top: 0; background: #eef1fa; }
  html.android .action-bar button + button { border: 0; }
  html.android .toast { bottom: calc(92px + env(safe-area-inset-bottom)); border-radius: 4px; background: #2f3036; padding: 14px 16px; }
  /* bottom sheet: 28px corners and a drag handle */
  html.android .guide { border-radius: 28px 28px 0 0; background: #f7f8ff; padding-top: 12px; }
  html.android .guide::before { content: ""; align-self: center; width: 32px; height: 4px; border-radius: 2px; background: #74777f; opacity: .5; flex: none; }
  html.android .sheet { border-radius: 16px 0 0 16px; background: #f7f8ff; }
  /* buttons: filled and outlined pills, 40px+ tall */
  html.android .guide-btn { border-radius: 999px; min-height: 48px; font-weight: 500; letter-spacing: .01em; }
  html.android .guide-btn:not(.primary) { border-color: #74777f; color: var(--brand); }
  /* tabs: Material's primary tabs, the indicator with rounded top corners */
  html.android .tab { border-bottom: 0; position: relative; }
  html.android .tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 40px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: translateX(-50%); }
  /* the sections row: filter chips */
  html.android .sections { gap: 8px; padding: 10px var(--gutter); border-bottom: 0; }
  html.android .sections a { padding: 6px 16px; border: 1px solid #c4c6d0; border-radius: 8px; font-size: 14px; font-weight: 500; }
  html.android .sections a[aria-current="page"] { border-color: transparent; background: #d9e2ff; color: #001849; }
  html.android .search { border-radius: 28px; background: #e9ecf6; }
  html.android .chip { border-radius: 8px; }
  html.android .topic-tile, html.android .empty, html.android .profile-card { border-radius: 16px; }
  /* the ripple (spawned by app.js) */
  html.android .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .14; pointer-events: none; transform: scale(0); animation: ripple .5s cubic-bezier(.2, 0, 0, 1) forwards; }
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* server pages after the SEO audit */
.home-h1 { font-size: 26px; font-weight: 900; line-height: 1.25; }
.home-sections, .other-sections { font-size: 14px; color: var(--muted); line-height: 1.9; }
.home-sections a, .other-sections a { color: var(--brand); font-weight: 700; text-decoration: none; }
.source-item .headline { font-size: 18px; font-weight: 700; line-height: 1.35; }
.about p { font-size: 17px; line-height: 1.7; }
