:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --panel: rgba(21, 24, 33, 0.86);
  --panel-solid: #151821;
  --panel-2: #191d27;
  --text: #f7f8fb;
  --muted: #949aa8;
  --muted-2: #707786;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.12);
  --accent: #ff4f37;
  --accent-2: #ff8b48;
  --security: #ff5247;
  --politics: #9d7cff;
  --diplomatic: #55b8ff;
  --green: #4dd69c;
  --shadow: 0 24px 80px rgba(0,0,0,.24);
  --radius: 24px;
  --radius-sm: 16px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255,79,55,.08), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(83,135,255,.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.hidden { display: none !important; }
.mobile-only { display: none; }

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(100px); opacity: .12; z-index: -1; }
.ambient-one { width: 280px; height: 280px; background: #ff4f37; top: 180px; right: -100px; }
.ambient-two { width: 320px; height: 320px; background: #456cff; top: 520px; left: -160px; }

.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,18,.76);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #ff6c45, #ff2f3e); box-shadow: 0 8px 25px rgba(255,72,55,.23); }
.brand-mark span { width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; position: relative; }
.brand-mark span:after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: white; inset: 2px; margin: auto; }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 18px; letter-spacing: .12em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-pill { height: 34px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,82,71,.25); background: rgba(255,82,71,.08); color: #ff786e; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.live-pill i, .status-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(77,214,156,.09); animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(77,214,156,0); } }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 12px; display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.055); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page { padding-top: 54px; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; padding-bottom: 42px; }
.eyebrow { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.eyebrow b { color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .97; letter-spacing: -.045em; max-width: 720px; }
.hero h1 span { color: var(--muted-2); }
.hero p { margin: 22px 0 0; color: #b2b7c3; max-width: 660px; line-height: 1.8; font-size: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-card { min-height: 126px; padding: 18px; border-radius: 19px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.stat-card span { font-size: 11px; color: var(--muted); }
.stat-card strong { font-size: 31px; letter-spacing: -.04em; }
.stat-card small { font-size: 10px; color: var(--muted-2); }

.breaking-banner { min-height: 72px; padding: 11px 16px 11px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border: 1px solid rgba(255,82,71,.18); background: linear-gradient(90deg, rgba(255,73,61,.12), rgba(255,255,255,.025)); border-radius: 18px; margin-bottom: 18px; box-shadow: 0 15px 45px rgba(0,0,0,.12); }
.breaking-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: #ff837b; white-space: nowrap; }
.breaking-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--security); box-shadow: 0 0 0 5px rgba(255,82,71,.1); }
.breaking-banner a { min-width: 0; display: grid; gap: 5px; }
.breaking-banner strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.breaking-banner a span { color: var(--muted); font-size: 11px; }
.breaking-arrow { color: var(--muted); font-size: 21px; }

.control-panel { position: sticky; top: 92px; z-index: 30; background: rgba(17,20,27,.82); backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 12px; margin-bottom: 30px; }
.control-row { display: flex; align-items: center; gap: 10px; }
.control-row-main { justify-content: space-between; }
.search-box { height: 48px; flex: 1 1 620px; border: 1px solid var(--line); background: #0e1117; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 0 14px; transition: .2s; }
.search-box:focus-within { border-color: rgba(255,255,255,.18); box-shadow: 0 0 0 3px rgba(255,255,255,.025); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #626977; }
.search-box kbd { direction: ltr; color: #737a89; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 10px; background: rgba(255,255,255,.03); }
.segmented { display: flex; background: #0e1117; border: 1px solid var(--line); border-radius: 14px; padding: 4px; flex: 0 0 auto; }
.segmented button { height: 38px; min-width: 72px; padding: 0 14px; border: 0; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s; }
.segmented button.active { background: #252a35; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); }
.filter-scroll { margin-top: 10px; overflow-x: auto; padding: 2px 1px; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; height: 36px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 11px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }
.filter-chip:hover { color: #fff; background: rgba(255,255,255,.035); }
.filter-chip.active { color: #fff; border-color: var(--line); background: rgba(255,255,255,.055); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip-dot.all { background: #fff; }
.chip-dot.security { background: var(--security); }
.chip-dot.politics { background: var(--politics); }
.chip-dot.diplomatic { background: var(--diplomatic); }
.filter-divider { width: 1px; height: 22px; background: var(--line); flex: 0 0 auto; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-kicker { display: block; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .04em; margin-bottom: 5px; }
.section-head h2, .sidebar-card h3 { margin: 0; letter-spacing: -.02em; }
.section-head h2 { font-size: 23px; }
.section-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: none; color: #c1c5ce; padding: 0; cursor: pointer; font-size: 11px; }
.text-button:hover { color: #fff; }

.feed { display: grid; gap: 10px; }
.news-card { position: relative; padding: 18px 18px 17px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,28,38,.84), rgba(19,22,30,.86)); border-radius: 19px; overflow: hidden; transition: .2s ease; }
.news-card:before { content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: transparent; }
.news-card[data-category="security"]:before { background: linear-gradient(var(--security), transparent 86%); }
.news-card[data-category="politics"]:before { background: linear-gradient(var(--politics), transparent 86%); }
.news-card[data-category="diplomatic"]:before { background: linear-gradient(var(--diplomatic), transparent 86%); }
.news-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.13); background: linear-gradient(180deg, rgba(29,33,44,.92), rgba(21,25,34,.92)); box-shadow: 0 16px 45px rgba(0,0,0,.16); }
.news-main { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.news-copy { min-width: 0; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.source-name { color: #e7e9ee; font-weight: 800; }
.meta-sep { opacity: .45; }
.source-type-badge, .official-badge, .independent-badge, .cluster-badge, .category-badge { height: 20px; display: inline-flex; align-items: center; border-radius: 7px; padding: 0 7px; font-size: 9px; font-weight: 800; }
.new-badge { background: rgba(255,82,71,.1); color: #ff928b; border: 1px solid rgba(255,82,71,.16); }
.source-type-badge { background: rgba(75,151,255,.08); color: #7db8ff; border: 1px solid rgba(75,151,255,.12); }
.official-badge { background: rgba(77,214,156,.08); color: #75e5b4; border: 1px solid rgba(77,214,156,.13); }
.independent-badge { background: rgba(255,188,77,.08); color: #ffd08a; border: 1px solid rgba(255,188,77,.14); }
.cluster-badge { background: rgba(255,255,255,.045); color: #c7cad1; border: 1px solid var(--line); }
.news-title { margin: 0; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.5; letter-spacing: -.015em; }
.news-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-preview { margin: 8px 0 0; color: #9fa5b2; font-size: 12px; line-height: 1.75; max-width: 760px; }
.news-side { display: flex; align-items: center; }
.category-badge.security { background: rgba(255,82,71,.08); color: #ff857c; }
.category-badge.politics { background: rgba(157,124,255,.09); color: #bca5ff; }
.category-badge.diplomatic { background: rgba(85,184,255,.08); color: #82c9ff; }
.category-badge.other { background: rgba(255,255,255,.04); color: #969daa; }
.related-wrap { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; }
.related-wrap summary { list-style: none; cursor: pointer; color: #aab0bb; font-size: 10px; font-weight: 700; }
.related-wrap summary::-webkit-details-marker { display: none; }
.related-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.related-link { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 9px; padding: 7px 9px; font-size: 10px; color: #c1c5cd; }
.related-link:hover { color: #fff; border-color: var(--line-strong); }
.news-card.compact { padding: 13px 16px; }
.news-card.compact .news-preview, .news-card.compact .news-side, .news-card.compact .related-wrap { display: none; }
.news-card.compact .news-title { font-size: 14px; }
.news-card.compact .news-meta { margin-bottom: 6px; }

.sidebar { display: grid; gap: 14px; position: sticky; top: 188px; }
.sidebar-card { border: 1px solid var(--line); background: rgba(20,23,31,.78); backdrop-filter: blur(18px); border-radius: 20px; padding: 18px; }
.sidebar-title-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 15px; }
.sidebar-card h3 { font-size: 16px; }
.status-badge { min-width: 42px; height: 27px; border: 1px solid rgba(77,214,156,.12); background: rgba(77,214,156,.055); color: #80dfba; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; }
.status-badge i { width: 5px; height: 5px; }
.source-list { display: grid; gap: 2px; }
.source-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 45px; padding: 5px 0; }
.source-avatar { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #e5e8ef; background: linear-gradient(145deg, #282d38, #1d212a); border: 1px solid var(--line); }
.source-info { min-width: 0; display: grid; gap: 3px; }
.source-info b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-info small { font-size: 9px; color: var(--muted-2); }
.source-state { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(77,214,156,.06); }
.show-more { width: 100%; height: 37px; margin-top: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 11px; color: #aeb3bd; cursor: pointer; font-size: 10px; font-weight: 700; }
.show-more:hover { color: #fff; border-color: var(--line-strong); }
.settings-card { display: grid; gap: 4px; }
.settings-card h3 { margin-bottom: 8px; }
.switch-row { min-height: 55px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; cursor: pointer; border-top: 1px solid var(--line); }
.switch-row span { display: grid; gap: 3px; }
.switch-row b { font-size: 11px; }
.switch-row small { color: var(--muted-2); font-size: 9px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 35px; height: 21px; background: #2c313d; border-radius: 99px; position: relative; transition: .2s; }
.switch-row i:after { content: ""; position: absolute; width: 15px; height: 15px; top: 3px; right: 3px; border-radius: 50%; background: #8a909b; transition: .2s; }
.switch-row input:checked + i { background: rgba(77,214,156,.18); }
.switch-row input:checked + i:after { right: 17px; background: var(--green); }
.note-card { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.note-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: #aeb4c0; font-weight: 800; font-size: 11px; }
.note-card p { margin: 0; color: #8f96a4; font-size: 10px; line-height: 1.7; }
.note-card strong { color: #cfd3da; }

.skeleton-card { height: 124px; border-radius: 19px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.055), rgba(255,255,255,.025)); background-size: 220% 100%; animation: shimmer 1.5s infinite; }
.source-skeleton { height: 43px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.045), rgba(255,255,255,.02)); background-size: 220% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.empty-state { border: 1px dashed var(--line-strong); border-radius: 20px; padding: 58px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 38px; color: #646b78; }
.empty-state h3 { color: #e4e6eb; margin: 10px 0 7px; }
.empty-state p { font-size: 12px; }
.empty-state button { margin-top: 8px; border: 1px solid var(--line); background: #20242e; border-radius: 10px; padding: 9px 14px; cursor: pointer; font-size: 11px; }

.footer { min-height: 120px; border-top: 1px solid var(--line); margin-top: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 10px; }
.footer div { display: flex; align-items: center; gap: 10px; }
.footer strong { color: #d5d8de; letter-spacing: .12em; }
.footer p { margin: 0; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #222731; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.35); color: #e5e7eb; border-radius: 12px; padding: 10px 14px; font-size: 11px; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero p { max-width: 760px; }
  .stats-grid { max-width: 700px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 285px; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .mobile-only { display: grid; }
  .page { padding-top: 34px; }
  .hero h1 { font-size: clamp(44px, 13vw, 65px); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { padding: 14px; min-height: 112px; }
  .stat-card strong { font-size: 25px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .note-card { grid-column: 1 / -1; }
  .control-panel { top: 86px; }
}

@media (max-width: 620px) {
  .topbar { height: 68px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .live-pill { height: 31px; font-size: 10px; padding: 0 10px; }
  .hero { padding-bottom: 28px; }
  .eyebrow { font-size: 10px; }
  .hero p { font-size: 13px; margin-top: 16px; }
  .stats-grid { gap: 7px; }
  .stat-card { min-height: 98px; border-radius: 15px; padding: 11px; }
  .stat-card span { font-size: 9px; }
  .stat-card strong { font-size: 22px; }
  .stat-card small { font-size: 8px; }
  .breaking-banner { grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; }
  .breaking-label { grid-column: 1 / -1; }
  .breaking-banner strong { font-size: 12px; }
  .control-panel { position: relative; top: 0; border-radius: 18px; padding: 9px; margin-bottom: 24px; }
  .control-panel.mobile-collapsed .filter-scroll { display: none; }
  .control-row-main { display: grid; grid-template-columns: 1fr; }
  .search-box { height: 45px; width: 100%; flex-basis: auto; }
  .search-box kbd { display: none; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; }
  .filter-scroll { padding-top: 7px; }
  .section-head { align-items: center; }
  .section-head h2 { font-size: 20px; }
  .section-actions { gap: 9px; }
  .section-actions span { display: none; }
  .news-card { padding: 15px 14px 14px; border-radius: 16px; }
  .news-main { grid-template-columns: 1fr; gap: 9px; }
  .news-side { display: none; }
  .news-title { font-size: 15px; }
  .news-preview { font-size: 11px; }
  .sidebar { grid-template-columns: 1fr; }
  .note-card { grid-column: auto; }
  .footer { margin-top: 48px; min-height: 130px; flex-direction: column; justify-content: center; text-align: center; }
  .footer div { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* Light is the default. Dark mode reuses the original premium palette below via targeted overrides. */
html:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef1f5;
  --panel: rgba(255,255,255,.88);
  --panel-solid: #ffffff;
  --panel-2: #f3f5f8;
  --text: #171a21;
  --muted: #697180;
  --muted-2: #9198a5;
  --line: rgba(20,27,38,.09);
  --line-strong: rgba(20,27,38,.15);
  --shadow: 0 20px 60px rgba(40,48,60,.10);
}
html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 12% 4%, rgba(255,79,55,.07), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(83,135,255,.06), transparent 28rem),
    var(--bg);
}
html:not([data-theme="dark"]) .topbar { background: rgba(247,248,251,.86); }
html:not([data-theme="dark"]) .icon-button { background: rgba(255,255,255,.72); }
html:not([data-theme="dark"]) .icon-button:hover { background: #fff; }
html:not([data-theme="dark"]) .hero p { color: #626b78; }
html:not([data-theme="dark"]) .stat-card { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,249,252,.94)); box-shadow: 0 10px 30px rgba(35,45,60,.045); }
html:not([data-theme="dark"]) .breaking-banner { background: linear-gradient(90deg, rgba(255,73,61,.08), rgba(255,255,255,.9)); }
html:not([data-theme="dark"]) .breaking-label { color: #d7483e; }
html:not([data-theme="dark"]) .control-panel { background: rgba(255,255,255,.86); }
html:not([data-theme="dark"]) .search-box,
html:not([data-theme="dark"]) .segmented { background: #f3f5f8; }
html:not([data-theme="dark"]) .search-box:focus-within { border-color: rgba(23,26,33,.18); box-shadow: 0 0 0 3px rgba(23,26,33,.025); }
html:not([data-theme="dark"]) .search-box input::placeholder { color: #939aa6; }
html:not([data-theme="dark"]) .search-box kbd { color: #7c8491; background: #fff; }
html:not([data-theme="dark"]) .segmented button.active { background: #fff; color: #171a21; box-shadow: 0 2px 9px rgba(30,40,55,.08), inset 0 0 0 1px rgba(20,27,38,.04); }
html:not([data-theme="dark"]) .filter-chip:hover { color: #171a21; background: rgba(20,27,38,.035); }
html:not([data-theme="dark"]) .filter-chip.active { color: #171a21; background: #f0f2f5; }
html:not([data-theme="dark"]) .chip-dot.all { background: #252a33; }
html:not([data-theme="dark"]) .text-button { color: #6f7784; }
html:not([data-theme="dark"]) .text-button:hover { color: #171a21; }
html:not([data-theme="dark"]) .news-card { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.98)); box-shadow: 0 7px 24px rgba(35,45,60,.035); }
html:not([data-theme="dark"]) .news-card:hover { border-color: rgba(20,27,38,.15); background: #fff; box-shadow: 0 16px 38px rgba(35,45,60,.09); }
html:not([data-theme="dark"]) .source-name { color: #2a3039; }
html:not([data-theme="dark"]) .new-badge { color: #d94e45; }
html:not([data-theme="dark"]) .source-type-badge { color: #3378c8; }
html:not([data-theme="dark"]) .official-badge { color: #21845c; }
html:not([data-theme="dark"]) .independent-badge { color: #9a681f; }
html:not([data-theme="dark"]) .cluster-badge { color: #626a77; background: #f5f6f8; }
html:not([data-theme="dark"]) .news-preview { color: #68717f; }
html:not([data-theme="dark"]) .category-badge.security { color: #d94e45; }
html:not([data-theme="dark"]) .category-badge.politics { color: #7053cc; }
html:not([data-theme="dark"]) .category-badge.diplomatic { color: #2c83bd; }
html:not([data-theme="dark"]) .category-badge.other { color: #737b88; background: #f2f4f6; }
html:not([data-theme="dark"]) .related-wrap summary { color: #68717e; }
html:not([data-theme="dark"]) .related-link { background: #f7f8fa; color: #5e6673; }
html:not([data-theme="dark"]) .related-link:hover { color: #171a21; }
html:not([data-theme="dark"]) .sidebar-card { background: rgba(255,255,255,.86); box-shadow: 0 10px 32px rgba(35,45,60,.035); }
html:not([data-theme="dark"]) .status-badge { color: #25835d; }
html:not([data-theme="dark"]) .source-avatar { color: #3b4350; background: linear-gradient(145deg, #f7f8fa, #edf0f4); }
html:not([data-theme="dark"]) .show-more { background: #f7f8fa; color: #69717e; }
html:not([data-theme="dark"]) .show-more:hover { color: #171a21; }
html:not([data-theme="dark"]) .switch-row i { background: #d9dde4; }
html:not([data-theme="dark"]) .switch-row i:after { background: #fff; box-shadow: 0 1px 4px rgba(20,27,38,.18); }
html:not([data-theme="dark"]) .note-icon { color: #68717e; }
html:not([data-theme="dark"]) .note-card p { color: #737b88; }
html:not([data-theme="dark"]) .note-card strong { color: #3a414c; }
html:not([data-theme="dark"]) .skeleton-card,
html:not([data-theme="dark"]) .source-skeleton { background: linear-gradient(90deg, #f2f4f7, #fafbfc, #f2f4f7); background-size: 220% 100%; }
html:not([data-theme="dark"]) .empty-icon { color: #a0a7b1; }
html:not([data-theme="dark"]) .empty-state h3 { color: #303640; }
html:not([data-theme="dark"]) .empty-state button { background: #fff; color: #303640; }
html:not([data-theme="dark"]) .footer strong { color: #39404b; }
html:not([data-theme="dark"]) .toast { background: #fff; color: #303640; box-shadow: 0 18px 50px rgba(35,45,60,.16); }

.theme-toggle .theme-sun { display: none; }
.theme-toggle .theme-moon { display: block; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }

/* Lead story: the most widely reported fresh story */
.lead-story {
  position: relative;
  overflow: hidden;
  margin: 2px 0 18px;
  padding: 24px 26px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,74,60,.13), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,249,252,.94));
  box-shadow: 0 24px 70px rgba(35,45,60,.10);
}
.lead-story::after { content:""; position:absolute; inset:auto -12% -75% 35%; height:220px; background:radial-gradient(circle, rgba(255,77,59,.09), transparent 68%); pointer-events:none; }
.lead-story-topline { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:17px; }
.lead-story-label { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:800; letter-spacing:.02em; color:#d4473d; }
.lead-story-label i { width:8px; height:8px; border-radius:50%; background:#ff4d3d; box-shadow:0 0 0 5px rgba(255,77,61,.10); animation:pulse-dot 1.8s infinite; }
.lead-story-signal { font-size:10px; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:6px 10px; background:var(--panel); }
.lead-story-body { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:28px; position:relative; z-index:1; }
.lead-story h2 { margin:0; max-width:900px; font-size:clamp(27px,3vw,46px); line-height:1.14; letter-spacing:-.035em; }
.lead-story h2 a { color:var(--text); text-decoration:none; }
.lead-story h2 a:hover { opacity:.78; }
.lead-story-copy > p { max-width:850px; margin:14px 0 13px; color:var(--muted); font-size:13px; line-height:1.75; }
.lead-story-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:var(--muted-2); font-size:10px; }
.lead-story-meta strong { color:#d4473d; }
.lead-story-sources { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
.lead-story-sources a { text-decoration:none; color:var(--muted); font-size:9px; font-weight:700; border:1px solid var(--line); background:var(--panel); border-radius:999px; padding:5px 8px; }
.lead-story-sources a:hover { color:var(--text); border-color:var(--line-strong); }
.lead-story-cta { display:inline-flex; align-items:center; gap:10px; white-space:nowrap; text-decoration:none; border-radius:13px; padding:12px 15px; background:#171a21; color:#fff; font-size:11px; font-weight:800; box-shadow:0 10px 30px rgba(23,26,33,.16); }
.lead-story-cta:hover { transform:translateY(-1px); }
.footer-copy { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.footer-copy p { margin:0; }
.footer-copy a { color:var(--text); text-decoration:none; font-weight:700; }
.footer-copy a:hover { text-decoration:underline; }
.footer-copy small { margin-top:4px; color:var(--muted-2); }
html[data-theme="dark"] .lead-story { background: radial-gradient(circle at 8% 8%, rgba(255,74,60,.11), transparent 24rem), linear-gradient(135deg, rgba(25,28,36,.98), rgba(18,21,28,.96)); box-shadow:0 24px 70px rgba(0,0,0,.26); }
html[data-theme="dark"] .lead-story-cta { background:#f3f4f6; color:#171a21; }
@media (max-width: 620px) {
  .lead-story { padding:19px 16px 18px; border-radius:20px; margin-bottom:16px; }
  .lead-story-topline { align-items:flex-start; }
  .lead-story-body { grid-template-columns:1fr; gap:16px; }
  .lead-story h2 { font-size:27px; }
  .lead-story-copy > p { font-size:12px; }
  .lead-story-cta { justify-content:center; width:100%; }
  .footer-copy { align-items:center; }
}

/* ===== כותרת פלוס V2 — denser, more vivid newsroom layout ===== */
:root {
  --brand-red: #ff3b30;
  --brand-red-2: #ff6b3d;
  --brand-blue: #1769ff;
  --brand-violet: #7457ff;
  --ink: #111827;
}
.page { padding-top: 22px; }
.pulse-strip {
  display:grid;
  grid-template-columns:minmax(260px,.8fr) minmax(520px,1.2fr);
  gap:18px;
  align-items:stretch;
  margin-bottom:16px;
}
.pulse-intro {
  min-height:104px;
  border-radius:22px;
  border:1px solid var(--line);
  padding:17px 19px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:linear-gradient(135deg, rgba(255,59,48,.10), rgba(23,105,255,.055)), var(--panel);
  box-shadow:0 12px 34px rgba(31,41,55,.06);
}
.pulse-intro .eyebrow { margin:0; }
.pulse-title { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.pulse-title strong { font-size:21px; letter-spacing:-.025em; }
.pulse-title small { color:var(--muted); font-size:11px; }
.pulse-live-dot { width:9px; height:9px; border-radius:50%; background:var(--brand-red); box-shadow:0 0 0 5px rgba(255,59,48,.11); animation:pulse 1.7s infinite; }
.stats-grid { gap:9px; }
.stat-card { min-height:104px; padding:15px 16px; border-radius:20px; position:relative; overflow:hidden; }
.stat-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(var(--brand-violet), var(--brand-blue)); opacity:.9; }
.stat-card.accent-blue::before { background:linear-gradient(#2f80ff,#20b4ff); }
.stat-card.accent-red::before { background:linear-gradient(#ff3b30,#ff7a45); }
.stat-card strong { font-size:28px; }

/* Stronger premium light palette */
html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 88% 2%, rgba(23,105,255,.105), transparent 25rem),
    radial-gradient(circle at 8% 14%, rgba(255,59,48,.095), transparent 24rem),
    #f4f6fa;
}
html:not([data-theme="dark"]) .topbar { background:rgba(255,255,255,.90); border-bottom-color:rgba(17,24,39,.085); box-shadow:0 6px 24px rgba(17,24,39,.035); }
html:not([data-theme="dark"]) .pulse-intro,
html:not([data-theme="dark"]) .stat-card { background:rgba(255,255,255,.92); border-color:rgba(17,24,39,.10); box-shadow:0 10px 28px rgba(31,41,55,.055); }
html:not([data-theme="dark"]) .pulse-intro { background:linear-gradient(135deg, rgba(255,59,48,.09), rgba(23,105,255,.06)), #fff; }
html:not([data-theme="dark"]) .control-panel { background:rgba(255,255,255,.94); border-color:rgba(17,24,39,.11); box-shadow:0 15px 44px rgba(31,41,55,.10); }
html:not([data-theme="dark"]) .search-box,
html:not([data-theme="dark"]) .segmented { background:#f1f4f8; border-color:rgba(17,24,39,.085); }
html:not([data-theme="dark"]) .segmented button.active { background:#fff; color:#101828; box-shadow:0 3px 12px rgba(31,41,55,.10); }
html:not([data-theme="dark"]) .filter-chip.active { color:#101828; background:#fff; border-color:rgba(17,24,39,.12); box-shadow:0 4px 12px rgba(31,41,55,.07); }
html:not([data-theme="dark"]) .filter-chip[data-category="security"].active { color:#b42318; background:#fff2f0; border-color:#ffd0cb; }
html:not([data-theme="dark"]) .filter-chip[data-category="politics"].active { color:#5f3dc4; background:#f3efff; border-color:#ddd2ff; }
html:not([data-theme="dark"]) .filter-chip[data-category="diplomatic"].active { color:#0958bd; background:#eef6ff; border-color:#cce3ff; }
html:not([data-theme="dark"]) .news-card { border-color:rgba(17,24,39,.10); box-shadow:0 9px 28px rgba(31,41,55,.055); }
html:not([data-theme="dark"]) .news-card:hover { transform:translateY(-2px); box-shadow:0 18px 44px rgba(31,41,55,.11); }
html:not([data-theme="dark"]) .source-type-badge { color:#0969da; background:#eaf3ff; border-color:#cfe4ff; }
html:not([data-theme="dark"]) .official-badge { color:#087a55; background:#eafaf4; border-color:#bfead9; }
html:not([data-theme="dark"]) .independent-badge { color:#7b4c00; background:#fff5db; border-color:#f3dfaa; }
html:not([data-theme="dark"]) .cluster-badge { color:#6439c6; background:#f4efff; border-color:#ded2ff; }

/* Main story becomes a visual news splash, but stays compact */
.lead-story { margin-bottom:14px; padding:20px 22px 22px; }
.lead-story-body { grid-template-columns:minmax(230px, 33%) minmax(0,1fr) auto; align-items:center; gap:22px; }
.lead-story-media { display:block; min-height:210px; height:100%; max-height:290px; border-radius:18px; overflow:hidden; background:#e9edf3; border:1px solid var(--line); }
.lead-story-media img { width:100%; height:100%; min-height:210px; object-fit:cover; display:block; transition:transform .35s ease; }
.lead-story-media:hover img { transform:scale(1.025); }
.lead-story h2 { font-size:clamp(28px,3vw,44px); }
.lead-story-cta { align-self:end; }
html:not([data-theme="dark"]) .lead-story { background:linear-gradient(120deg,#fff 0%,#fff 62%,#fff2ef 100%); border-color:rgba(255,59,48,.18); box-shadow:0 18px 55px rgba(31,41,55,.10); }
html:not([data-theme="dark"]) .lead-story-label { color:#c6281e; }
html:not([data-theme="dark"]) .lead-story-cta { background:linear-gradient(135deg,#151922,#272d39); }

/* Image-aware feed cards */
.news-main { grid-template-columns:1fr auto; }
.news-card.has-image .news-main { grid-template-columns:178px minmax(0,1fr) auto; align-items:stretch; }
.news-image { width:178px; min-height:118px; max-height:150px; border-radius:14px; overflow:hidden; background:#e9edf3; align-self:stretch; border:1px solid var(--line); }
.news-image img { width:100%; height:100%; min-height:118px; object-fit:cover; display:block; transition:transform .3s ease; }
.news-card:hover .news-image img { transform:scale(1.035); }
.news-title { font-size:17px; line-height:1.45; }
.news-preview { line-height:1.65; }
.news-card.compact .news-image { display:none; }
.news-card.compact.has-image .news-main { grid-template-columns:1fr auto; }

/* More newsroom density */
.control-panel { margin-bottom:22px; }
.content-grid { grid-template-columns:minmax(0,1fr) 292px; gap:20px; }
.sidebar { top:176px; }
.sidebar-card { border-radius:18px; }
.section-head { margin-bottom:10px; }
.feed { gap:9px; }

/* Small screens */
@media (max-width: 980px) {
  .pulse-strip { grid-template-columns:1fr; }
  .pulse-intro { min-height:82px; }
  .lead-story-body { grid-template-columns:minmax(210px, 38%) minmax(0,1fr); }
  .lead-story-cta { grid-column:1/-1; justify-self:start; }
  .content-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .page { padding-top:14px; }
  .pulse-strip { gap:9px; margin-bottom:10px; }
  .pulse-intro { padding:13px 14px; border-radius:17px; }
  .pulse-title small { width:100%; }
  .stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .stat-card { min-height:86px; padding:12px 10px; border-radius:15px; }
  .stat-card strong { font-size:24px; }
  .stat-card small { font-size:8px; }
  .lead-story { padding:15px; }
  .lead-story-body { grid-template-columns:1fr; }
  .lead-story-media { min-height:190px; max-height:230px; }
  .lead-story-media img { min-height:190px; }
  .lead-story h2 { font-size:27px; }
  .lead-story-cta { width:100%; justify-content:center; }
  .news-card.has-image .news-main { grid-template-columns:112px minmax(0,1fr); gap:12px; }
  .news-image { width:112px; min-height:96px; max-height:118px; }
  .news-image img { min-height:96px; }
  .news-card.has-image .news-side { display:none; }
}
@media (max-width: 460px) {
  .stats-grid { gap:6px; }
  .stat-card span { font-size:9px; }
  .stat-card strong { font-size:21px; }
  .stat-card small { display:none; }
  .news-card.has-image .news-main { grid-template-columns:92px minmax(0,1fr); }
  .news-image { width:92px; min-height:82px; max-height:96px; border-radius:11px; }
  .news-image img { min-height:82px; }
  .news-card.has-image .news-preview { display:none; }
}

/* ===== כותרת פלוס V3 — portal-first, denser and more addictive ===== */
:root {
  --brand-red: #ff3b30;
  --brand-blue: #1769ff;
  --brand-violet: #7457ff;
  --brand-cyan: #16a6ff;
  --brand-amber: #f59e0b;
}

.page { padding-top: 16px; }
.portal-strip {
  display: grid;
  grid-template-columns: minmax(390px, 1.45fr) minmax(230px, .72fr) minmax(270px, .83fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.portal-status,
.utility-card {
  min-height: 112px;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 10px 30px rgba(31,41,55,.065);
}
.portal-status {
  padding: 15px 17px;
  background:
    radial-gradient(circle at 8% 5%, rgba(255,59,48,.13), transparent 12rem),
    radial-gradient(circle at 92% 95%, rgba(23,105,255,.13), transparent 13rem),
    #fff;
}
.portal-status .eyebrow { margin: 0 0 8px; font-size: 10px; }
.portal-status .pulse-title { gap: 8px; }
.portal-status .pulse-title strong { font-size: 19px; }
.portal-status .pulse-title small { font-size: 10px; }
.status-metrics { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.status-metrics span { padding:5px 9px; border:1px solid rgba(17,24,39,.085); background:rgba(255,255,255,.76); border-radius:999px; color:#667085; font-size:9px; }
.status-metrics b { color:#111827; font-size:11px; }
.status-detail { display:block; margin-top:7px; color:#98a2b3; font-size:8px; }

.utility-card { padding: 13px 14px 11px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; position:relative; }
.utility-card::after { content:""; position:absolute; width:120px; height:120px; border-radius:50%; filter:blur(4px); opacity:.14; pointer-events:none; }
.weather-card::after { background:#2f80ff; left:-55px; top:-58px; }
.shabbat-card::after { background:#8b5cf6; left:-55px; bottom:-70px; }
.utility-head { display:flex; align-items:center; justify-content:space-between; gap:8px; position:relative; z-index:1; }
.utility-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#eef4ff; color:#1769ff; font-size:15px; font-weight:800; }
.shabbat-card .utility-icon { background:#f4efff; color:#7457ff; }
.utility-label { font-size:10px; color:#667085; font-weight:800; }
.city-picker select { max-width:105px; border:0; outline:0; background:transparent; color:#475467; font-size:10px; font-weight:800; cursor:pointer; text-align:right; }
.weather-main { display:flex; align-items:center; gap:11px; position:relative; z-index:1; }
.weather-main > strong { font-size:34px; letter-spacing:-.05em; line-height:1; color:#101828; }
.weather-main > div { display:grid; gap:3px; min-width:0; }
.weather-main b { font-size:11px; color:#101828; }
.weather-main small { font-size:9px; color:#667085; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.utility-credit { position:relative; z-index:1; color:#98a2b3; font-size:7px; text-decoration:none; width:max-content; }
.utility-credit:hover { color:#475467; text-decoration:underline; }
.shabbat-times { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; position:relative; z-index:1; }
.shabbat-times div { display:grid; gap:2px; }
.shabbat-times div:first-child { text-align:right; }
.shabbat-times div:last-child { text-align:left; }
.shabbat-times span { font-size:9px; color:#667085; }
.shabbat-times strong { font-size:22px; letter-spacing:-.035em; color:#101828; }
.shabbat-times i { width:1px; height:30px; background:rgba(17,24,39,.10); }
.shabbat-meta { display:flex; gap:4px; color:#98a2b3; font-size:8px; position:relative; z-index:1; min-height:10px; }

/* The main story is now a compact newsroom splash instead of a full-screen billboard */
.lead-story { padding: 14px 16px 15px; border-radius: 20px; margin: 0 0 9px; }
.lead-story-topline { margin-bottom: 9px; }
.lead-story-label { font-size: 9px; }
.lead-story-signal { padding:4px 8px; font-size:8px; }
.lead-story-body { grid-template-columns: minmax(215px, 30%) minmax(0,1fr) auto; gap:16px; align-items:center; }
.lead-story-media { min-height: 150px; max-height: 196px; border-radius: 14px; }
.lead-story-media img { min-height:150px; max-height:196px; }
.lead-story h2 { font-size: clamp(23px, 2.25vw, 34px); line-height:1.08; letter-spacing:-.035em; }
.lead-story h2 a { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.lead-story-copy > p { margin:8px 0 8px; font-size:10px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lead-story-meta { font-size:8px; gap:5px; }
.lead-story-sources { margin-top:8px; gap:4px; max-height:25px; overflow:hidden; }
.lead-story-sources a { font-size:7px; padding:4px 7px; }
.lead-story-cta { padding:9px 11px; border-radius:10px; font-size:9px; box-shadow:none; }

.breaking-banner { min-height: 48px; padding: 8px 12px; border-radius: 14px; margin-bottom: 8px; gap:12px; }
.breaking-label { font-size:9px; }
.breaking-banner strong { font-size:11px; }
.breaking-banner a span { font-size:8px; }

.trending-strip { min-height:42px; margin-bottom:8px; border:1px solid rgba(17,24,39,.10); background:rgba(255,255,255,.91); border-radius:14px; padding:7px 10px; display:flex; align-items:center; gap:9px; box-shadow:0 6px 20px rgba(31,41,55,.035); overflow:hidden; }
.trending-label { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; color:#475467; font-size:9px; font-weight:800; }
.trending-label i { width:7px; height:7px; border-radius:50%; background:#ff3b30; box-shadow:0 0 0 4px rgba(255,59,48,.09); }
.trending-topics { display:flex; gap:5px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.trending-topics::-webkit-scrollbar { display:none; }
.trending-topics button { flex:0 0 auto; border:1px solid rgba(17,24,39,.085); background:#f7f9fc; border-radius:999px; padding:5px 9px; color:#344054; font-size:9px; font-weight:800; cursor:pointer; }
.trending-topics button:hover { border-color:rgba(23,105,255,.25); background:#eef5ff; color:#0958bd; }
.trending-topics small { margin-right:3px; color:#98a2b3; font-size:7px; }
.refresh-countdown { flex:0 0 auto; margin-right:auto; color:#667085; font-size:8px; border-right:1px solid rgba(17,24,39,.08); padding-right:10px; }

.control-panel { top:86px; border-radius:16px; padding:9px; margin-bottom:15px; box-shadow:0 10px 32px rgba(31,41,55,.08); }
.search-box { height:42px; border-radius:11px; }
.segmented { border-radius:11px; }
.segmented button { height:32px; min-width:65px; font-size:10px; }
.filter-chip { height:30px; font-size:9px; padding:0 9px; }
.filter-scroll { margin-top:7px; }

.content-grid { grid-template-columns:minmax(0,1fr) 276px; gap:16px; }
.sidebar { top:156px; gap:10px; }
.sidebar-card { padding:14px; border-radius:16px; }
.feed { gap:7px; }
.news-card { border-radius:15px; padding:14px 15px 13px; }
.news-title { font-size:16px; line-height:1.38; }
.news-preview { font-size:10px; line-height:1.55; margin-top:6px; }
.news-card.has-image .news-main { grid-template-columns:150px minmax(0,1fr) auto; gap:13px; }
.news-image { width:150px; min-height:100px; max-height:124px; border-radius:12px; }
.news-image img { min-height:100px; }

/* More confident light-mode color and contrast */
html:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 91% 0%, rgba(23,105,255,.16), transparent 25rem),
    radial-gradient(circle at 5% 18%, rgba(255,59,48,.13), transparent 24rem),
    linear-gradient(180deg,#f4f7fb 0%,#f8fafc 55%,#f4f7fb 100%);
}
html:not([data-theme="dark"]) .topbar { background:rgba(255,255,255,.94); }
html:not([data-theme="dark"]) .lead-story { border-color:rgba(255,59,48,.22); background:linear-gradient(120deg,#fff 0%,#fff 58%,#fff0ed 100%); box-shadow:0 14px 40px rgba(31,41,55,.09); }
html:not([data-theme="dark"]) .breaking-banner { background:linear-gradient(90deg,#fff0ed,#fff); }
html:not([data-theme="dark"]) .news-card { background:#fff; box-shadow:0 7px 22px rgba(31,41,55,.055); }
html:not([data-theme="dark"]) .news-card:hover { box-shadow:0 16px 38px rgba(31,41,55,.11); }

/* Dark mode utility surfaces */
html[data-theme="dark"] .portal-status,
html[data-theme="dark"] .utility-card,
html[data-theme="dark"] .trending-strip { background:rgba(20,23,31,.92); border-color:rgba(255,255,255,.085); box-shadow:0 12px 30px rgba(0,0,0,.18); }
html[data-theme="dark"] .portal-status { background:radial-gradient(circle at 8% 5%, rgba(255,59,48,.13), transparent 12rem), radial-gradient(circle at 92% 95%, rgba(23,105,255,.12), transparent 13rem), #151821; }
html[data-theme="dark"] .status-metrics span,
html[data-theme="dark"] .trending-topics button { background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.08); color:#b4bac6; }
html[data-theme="dark"] .status-metrics b,
html[data-theme="dark"] .weather-main > strong,
html[data-theme="dark"] .weather-main b,
html[data-theme="dark"] .shabbat-times strong { color:#f7f8fb; }
html[data-theme="dark"] .city-picker select { color:#b4bac6; }
html[data-theme="dark"] .utility-icon { background:rgba(47,128,255,.14); }
html[data-theme="dark"] .shabbat-card .utility-icon { background:rgba(116,87,255,.14); }
html[data-theme="dark"] .trending-topics button:hover { background:rgba(23,105,255,.12); color:#9fc4ff; }

@media (max-width: 1050px) {
  .portal-strip { grid-template-columns:1.2fr .8fr; }
  .shabbat-card { grid-column:1/-1; min-height:86px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; }
  .shabbat-card .utility-credit { position:absolute; left:14px; bottom:8px; }
  .lead-story-body { grid-template-columns:minmax(210px,34%) minmax(0,1fr); }
  .lead-story-cta { display:none; }
  .content-grid { grid-template-columns:1fr; }
}

@media (max-width: 720px) {
  .page { padding-top:10px; }
  .portal-strip { grid-template-columns:1fr 1fr; gap:7px; }
  .portal-status { grid-column:1/-1; min-height:92px; padding:12px 13px; }
  .portal-status .pulse-title strong { font-size:17px; }
  .utility-card { min-height:100px; padding:11px 12px 9px; border-radius:15px; }
  .weather-main > strong { font-size:29px; }
  .shabbat-card { grid-column:auto; min-height:100px; display:flex; }
  .shabbat-card .utility-credit { position:relative; left:auto; bottom:auto; }
  .shabbat-times strong { font-size:18px; }
  .lead-story { padding:11px; border-radius:16px; }
  .lead-story-topline { margin-bottom:7px; }
  .lead-story-body { grid-template-columns:118px minmax(0,1fr); gap:10px; align-items:stretch; }
  .lead-story-media { min-height:112px; max-height:148px; border-radius:11px; }
  .lead-story-media img { min-height:112px; max-height:148px; }
  .lead-story h2 { font-size:20px; -webkit-line-clamp:4; }
  .lead-story-copy > p { display:none; }
  .lead-story-sources { display:none; }
  .lead-story-cta { display:none; }
  .breaking-banner { min-height:43px; }
  .trending-strip { border-radius:12px; padding:6px 8px; }
  .refresh-countdown { display:none; }
  .control-panel { top:76px; }
  .news-card.has-image .news-main { grid-template-columns:102px minmax(0,1fr); }
  .news-image { width:102px; min-height:88px; max-height:105px; }
  .news-image img { min-height:88px; }
}

@media (max-width: 470px) {
  .portal-strip { grid-template-columns:1fr; }
  .weather-card, .shabbat-card { min-height:88px; }
  .weather-card { display:grid; grid-template-columns:auto 1fr; column-gap:8px; }
  .weather-card .utility-head { grid-column:1/-1; }
  .weather-card .utility-credit { position:absolute; left:11px; bottom:8px; }
  .shabbat-times { width:100%; }
  .lead-story-body { grid-template-columns:95px minmax(0,1fr); }
  .lead-story-media { min-height:96px; max-height:120px; }
  .lead-story-media img { min-height:96px; max-height:120px; }
  .lead-story h2 { font-size:18px; }
  .news-card.has-image .news-main { grid-template-columns:88px minmax(0,1fr); }
  .news-image { width:88px; min-height:78px; max-height:92px; }
  .news-image img { min-height:78px; }
}


/* =========================
   HADASHOTA V4 — newsroom density / readability
   ========================= */
:root {
  --v4-red:#ef2c2c;
  --v4-red-soft:#fff1f1;
  --v4-blue:#2563eb;
  --v4-ink:#111827;
  --v4-muted:#667085;
  --v4-line:#e2e7ef;
  --v4-panel:#ffffff;
}
body { background:linear-gradient(180deg,#fff 0,#f5f7fb 32%,#f7f8fb 100%); color:var(--v4-ink); }
.topbar { height:70px; border-bottom:1px solid #eceff4; background:rgba(255,255,255,.96); box-shadow:0 1px 0 rgba(17,24,39,.02); }
.topbar-inner { height:70px; }
.brand-copy strong { font-size:19px; letter-spacing:.08em; }
.brand-copy small { font-size:11px; color:#8b95a5; }
.icon-button { width:42px; height:42px; border-color:#dfe4eb; background:#fff; }
.live-pill { height:40px; padding:0 14px; font-size:12px; }

.news-nav { position:sticky; top:0; z-index:39; background:rgba(255,255,255,.97); border-bottom:2px solid var(--v4-red); box-shadow:0 5px 18px rgba(17,24,39,.035); }
.news-nav-inner { height:48px; display:flex; align-items:center; justify-content:center; gap:2px; overflow-x:auto; scrollbar-width:none; }
.news-nav-inner::-webkit-scrollbar { display:none; }
.nav-item { height:46px; padding:0 18px; border:0; background:transparent; color:#273142; font:800 14px/1 inherit; cursor:pointer; white-space:nowrap; position:relative; }
.nav-item:hover { color:var(--v4-red); }
.nav-item.active { color:var(--v4-red); }
.nav-item.active:after { content:""; position:absolute; right:16px; left:16px; bottom:-2px; height:3px; border-radius:3px 3px 0 0; background:var(--v4-red); }
.nav-separator { width:1px; height:20px; background:#dfe4eb; margin:0 7px; flex:0 0 auto; }

.page { padding-top:20px; }
.portal-strip { grid-template-columns:minmax(0,1.55fr) minmax(235px,.72fr) minmax(235px,.72fr); gap:12px; margin-bottom:12px; }
.portal-strip > * { min-height:116px; border-radius:17px !important; border-color:#dde3ec !important; box-shadow:0 8px 24px rgba(17,24,39,.055) !important; }
.portal-status { background:linear-gradient(105deg,#fff 15%,#fff2f2 100%) !important; border-top:3px solid var(--v4-red) !important; }
.pulse-title strong { font-size:21px !important; }
.pulse-title small,.status-detail { font-size:12px !important; }
.status-metrics span { font-size:12px !important; padding:7px 11px !important; background:#fff !important; border:1px solid #e4e8ef !important; }
.status-metrics b { font-size:15px !important; }
.utility-card { padding:14px 16px !important; }
.utility-head { min-height:28px; gap:8px; }
.utility-label,.city-picker select { font-size:12px !important; font-weight:800 !important; }
.weather-main strong { font-size:34px !important; }
.weather-main b { font-size:14px !important; }
.weather-main small,.shabbat-meta,.utility-credit { font-size:10px !important; }
.shabbat-times strong { font-size:24px !important; }
.shabbat-times span { font-size:11px !important; }
.locate-button { margin-inline-start:auto; border:1px solid #dbe2ec; background:#fff; border-radius:999px; padding:5px 9px; color:#536071; font-size:9px; font-weight:800; cursor:pointer; }
.locate-button:hover { color:var(--v4-blue); border-color:#b9cdfc; }
.locate-button:disabled { opacity:.55; cursor:wait; }

.flash-deck { display:grid; grid-template-columns:95px minmax(0,1fr); min-height:92px; margin-bottom:12px; background:#fff; border:1px solid var(--v4-line); border-radius:17px; overflow:hidden; box-shadow:0 8px 26px rgba(17,24,39,.045); }
.flash-deck-label { display:flex; flex-direction:column; align-items:center; justify-content:center; background:#f5f6f8; border-inline-start:4px solid var(--v4-red); color:#212936; font-size:12px; }
.flash-deck-label b { color:var(--v4-red); font-size:15px; }
.flash-deck-items { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.flash-item { min-width:0; padding:14px 17px; text-decoration:none; border-inline-start:1px solid #e7eaf0; display:flex; flex-direction:column; justify-content:center; gap:6px; color:var(--v4-ink); transition:.18s; }
.flash-item:hover { background:#fafbfc; }
.flash-item span { color:#e23b35; font-size:10px; font-weight:800; }
.flash-item strong { font-size:14px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.lead-story { padding:15px 17px 16px !important; border-radius:20px !important; margin-bottom:11px !important; border:1px solid #ffc8c5 !important; background:linear-gradient(100deg,#fff 28%,#fff6f5 100%) !important; box-shadow:0 13px 34px rgba(239,44,44,.065) !important; }
.lead-story-topline { margin-bottom:8px !important; }
.lead-story-label { font-size:11px !important; }
.lead-story-signal { font-size:10px !important; padding:5px 9px !important; }
.lead-story-body { grid-template-columns:minmax(190px,29%) minmax(0,1fr) auto !important; gap:18px !important; }
.lead-story-media { min-height:155px !important; max-height:205px !important; border-radius:14px !important; }
.lead-story-media img { min-height:155px !important; max-height:205px !important; }
.lead-story h2 { font-size:clamp(24px,2.15vw,35px) !important; line-height:1.08 !important; max-width:780px !important; }
.lead-story-copy > p { margin:8px 0 !important; font-size:12px !important; line-height:1.55 !important; -webkit-line-clamp:2 !important; }
.lead-story-meta { font-size:10px !important; }
.lead-story-sources { margin-top:8px !important; max-height:31px !important; }
.lead-story-sources a,.lead-story-sources span { display:inline-flex; align-items:center; font-size:9px; font-weight:800; color:#566173; border:1px solid #e1e6ee; background:#fff; border-radius:999px; padding:5px 8px; text-decoration:none; }
.lead-story-cta { padding:10px 13px !important; font-size:10px !important; }
.no-link { cursor:default !important; text-decoration:none !important; }

.breaking-banner { min-height:54px !important; border-radius:14px !important; padding:9px 13px !important; margin-bottom:8px !important; background:linear-gradient(90deg,#fff3f2,#fff) !important; }
.breaking-banner strong { font-size:13px !important; }
.breaking-banner a span { font-size:10px !important; }
.trending-strip { min-height:48px !important; padding:8px 12px !important; margin-bottom:10px !important; }
.trending-label { font-size:11px !important; font-weight:900 !important; }
.trending-topic { font-size:11px !important; padding:6px 10px !important; }
.refresh-countdown { font-size:10px !important; }

.control-panel { top:50px !important; border-radius:17px !important; padding:12px 13px !important; margin-bottom:18px !important; border-color:#dce2eb !important; box-shadow:0 10px 28px rgba(17,24,39,.07) !important; }
.search-box { min-height:46px !important; }
.search-box input { font-size:14px !important; }
.segmented { padding:4px !important; border-radius:13px !important; }
.segmented button { height:40px !important; min-width:82px !important; padding:0 15px !important; font-size:13px !important; }
.filter-scroll { gap:4px !important; padding-top:9px !important; }
.filter-chip { height:38px !important; padding:0 13px !important; border-radius:10px !important; font-size:12px !important; }
.filter-chip.active { background:#fff !important; border-color:#d6dce6 !important; box-shadow:0 2px 8px rgba(17,24,39,.045) !important; color:#111827 !important; }
.filter-chip[data-category="security"].active { color:#d82d28 !important; border-color:#ffd3d0 !important; background:#fff5f4 !important; }
.filter-chip[data-category="politics"].active { color:#6d45d8 !important; border-color:#e0d6ff !important; background:#faf8ff !important; }
.filter-chip[data-category="diplomatic"].active { color:#1f6ed4 !important; border-color:#cfe1ff !important; background:#f4f8ff !important; }

.content-grid { grid-template-columns:minmax(0,1fr) 286px !important; gap:18px !important; }
.section-head { margin-bottom:12px !important; align-items:center !important; }
.section-kicker { font-size:11px !important; font-weight:900 !important; color:#8993a2 !important; }
.section-head h2 { font-size:27px !important; line-height:1.15 !important; }
.section-actions { font-size:11px !important; }
.text-button { font-size:11px !important; }
.feed { gap:11px !important; }
.news-card { padding:16px 17px !important; border-radius:16px !important; border-color:#dfe4ec !important; background:#fff !important; box-shadow:0 6px 18px rgba(17,24,39,.035) !important; }
.news-card:hover { transform:translateY(-1px) !important; border-color:#cbd3df !important; box-shadow:0 12px 26px rgba(17,24,39,.075) !important; }
.news-card.has-image .news-main { grid-template-columns:168px minmax(0,1fr) auto !important; gap:16px !important; }
.news-image { border-radius:12px !important; min-height:104px !important; }
.news-image img { min-height:104px !important; max-height:124px !important; }
.news-meta { font-size:11px !important; gap:7px !important; margin-bottom:8px !important; }
.news-title { font-size:19px !important; line-height:1.37 !important; font-weight:850 !important; }
.news-preview { font-size:12px !important; line-height:1.55 !important; margin-top:7px !important; }
.category-badge { font-size:9px !important; padding:5px 7px !important; }
.source-type-badge,.official-badge,.independent-badge,.cluster-badge,.new-badge { font-size:8px !important; padding:3px 6px !important; }
.telegram-story { background:linear-gradient(100deg,#fff,#fbfcff) !important; }
.telegram-story .news-title span { cursor:text; }
.telegram-image { cursor:default; }
.related-wrap summary,.related-link { font-size:10px !important; }

.sidebar { top:112px !important; gap:11px !important; }
.sidebar-card { padding:15px !important; border-radius:16px !important; background:#fff !important; border-color:#dde3ec !important; box-shadow:0 7px 22px rgba(17,24,39,.04) !important; }
.sidebar-card h3 { font-size:17px !important; }
.source-row { min-height:48px !important; padding:7px 5px !important; }
.source-info b { font-size:12px !important; }
.source-info small { font-size:9px !important; }
.source-row-static { cursor:default; }
.source-row-static:hover { background:transparent !important; }
.show-more { height:36px !important; font-size:10px !important; }

@media (max-width: 1050px) {
  .flash-deck-items { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .flash-item:nth-child(n+3) { border-top:1px solid #e7eaf0; }
  .portal-strip { grid-template-columns:1fr 1fr; }
  .portal-status { grid-column:1 / -1; }
  .content-grid { grid-template-columns:1fr !important; }
  .sidebar { position:static !important; grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .news-nav-inner { justify-content:flex-start; }
  .nav-item { font-size:13px; padding:0 13px; }
  .portal-strip { grid-template-columns:1fr; }
  .portal-status { grid-column:auto; }
  .flash-deck { grid-template-columns:70px 1fr; }
  .flash-deck-items { grid-template-columns:1fr; }
  .flash-item:nth-child(n+2) { display:none; }
  .lead-story-body { grid-template-columns:1fr !important; }
  .lead-story-media { order:0; min-height:190px !important; max-height:220px !important; }
  .lead-story-copy { order:1; }
  .lead-story-cta { order:2; justify-self:start; }
  .lead-story h2 { font-size:27px !important; }
  .control-panel { top:49px !important; }
  .control-row-main { gap:8px !important; }
  .segmented button { min-width:72px !important; font-size:12px !important; }
  .filter-chip { font-size:12px !important; }
  .news-card.has-image .news-main { grid-template-columns:110px minmax(0,1fr) !important; }
  .news-side { display:none !important; }
  .news-title { font-size:17px !important; }
  .sidebar { grid-template-columns:1fr; }
}
@media (max-width: 470px) {
  .topbar,.topbar-inner { height:62px; }
  .page { padding-top:12px; }
  .news-nav-inner { height:44px; }
  .nav-item { height:42px; font-size:12px; }
  .portal-strip > * { min-height:104px; }
  .flash-deck { min-height:78px; }
  .flash-item strong { font-size:13px; }
  .lead-story { padding:13px !important; }
  .lead-story h2 { font-size:24px !important; }
  .lead-story-copy > p { font-size:12px !important; }
  .section-head h2 { font-size:23px !important; }
  .news-card { padding:13px !important; }
  .news-card.has-image .news-main { grid-template-columns:92px minmax(0,1fr) !important; gap:11px !important; }
  .news-image { min-height:86px !important; }
  .news-image img { min-height:86px !important; max-height:104px !important; }
  .news-meta { font-size:10px !important; }
  .news-title { font-size:16px !important; }
  .news-preview { display:none !important; }
}


/* ===== V5 UX refinements ===== */
.menu-toggle { display:grid !important; }
.auto-refresh-pill { border:1px solid #d9dee7; background:#fff; height:38px; padding:0 11px; border-radius:999px; display:flex; align-items:center; gap:7px; font:700 12px/1 inherit; color:#7a8392; cursor:pointer; transition:.2s; }
.auto-refresh-pill i { width:8px; height:8px; border-radius:50%; background:#a8afb9; }
.auto-refresh-pill.active { color:#087a4e; background:#effbf5; border-color:#aee8ce; }
.auto-refresh-pill.active i { background:#21c98a; box-shadow:0 0 0 4px rgba(33,201,138,.12); }
.quick-menu { position:fixed; z-index:70; top:70px; left:28px; width:270px; padding:8px; border:1px solid #dfe4ec; border-radius:16px; background:rgba(255,255,255,.98); box-shadow:0 18px 55px rgba(20,28,40,.16); backdrop-filter:blur(16px); }
.quick-menu.hidden { display:none; }
.quick-menu button { width:100%; min-height:52px; border:0; background:transparent; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 12px; border-radius:11px; cursor:pointer; color:#151b26; font:600 14px/1.2 inherit; }
.quick-menu button:hover { background:#f3f6fa; }
.quick-menu b { font-size:12px; color:#667184; }
html[data-theme="dark"] .quick-menu { background:rgba(22,27,35,.98); border-color:#343b48; }
html[data-theme="dark"] .quick-menu button { color:#f4f6f9; }
html[data-theme="dark"] .quick-menu button:hover { background:#252c37; }
html[data-theme="dark"] .auto-refresh-pill { background:#1d232d; border-color:#343b48; color:#abb3c0; }
html[data-theme="dark"] .auto-refresh-pill.active { background:#123126; color:#72ddb3; border-color:#235f49; }
.switch-row b { font-size:14px !important; }
.switch-row small { font-size:12px !important; }
.switch-row i { width:42px !important; height:24px !important; }
.switch-row i:after { width:18px !important; height:18px !important; }
.switch-row input:checked + i { background:#bdf2db !important; }
.switch-row input:checked + i:after { right:21px !important; background:#0dbb78 !important; }
.filter-chip, .nav-item, .text-button, .time-filter { font-size:14px !important; }
.news-title { font-size:19px !important; line-height:1.35 !important; }
.news-meta, .news-preview { font-size:13px !important; }
.flash-deck-label { width:auto; padding:0 10px; }
.flash-deck-label b { font-size:13px !important; text-align:center; }

@media (max-width: 700px) {
  .topbar-actions { gap:6px; }
  .auto-refresh-pill { height:34px; padding:0 9px; font-size:11px; }
  .quick-menu { top:62px; left:12px; width:min(280px,calc(100vw - 24px)); }
  .portal-strip { display:grid !important; grid-template-columns:1fr 1fr !important; gap:8px !important; }
  .portal-status { grid-column:1 / -1; min-height:82px !important; padding:12px 14px !important; }
  .utility-card { min-height:72px !important; padding:9px 10px !important; border-radius:14px !important; }
  .utility-card .utility-head { margin-bottom:2px !important; }
  .utility-card .utility-foot, .utility-card .utility-note, .utility-card .weather-range, .utility-card .shabbat-parasha { display:none !important; }
  .weather-main, .shabbat-times { margin-top:0 !important; }
  .weather-temp { font-size:28px !important; }
  .weather-text { font-size:11px !important; }
  .shabbat-time strong { font-size:20px !important; }
  .city-picker select { max-width:92px; font-size:11px !important; padding:3px 20px 3px 5px !important; }
  .locate-button { width:28px !important; height:28px !important; overflow:hidden; color:transparent !important; padding:0 !important; position:relative; }
  .locate-button::after { content:"⌖"; color:#255cff; position:absolute; inset:0; display:grid; place-items:center; font-size:16px; }
  .filter-chip, .nav-item, .text-button, .time-filter { font-size:13px !important; min-height:38px; }
  .news-title { font-size:18px !important; }
  .news-meta, .news-preview { font-size:12.5px !important; }
}

/* =========================
   HADASHOTA V6 FINAL — resilient newsroom layout
   ========================= */

/* Desktop hero: main story on the right, latest major-site updates on the left in RTL. */
.hero-news-grid {
  display:grid;
  grid-template-columns:minmax(0,1.68fr) minmax(320px,.94fr);
  gap:12px;
  align-items:stretch;
  margin:0 0 12px;
}
.hero-news-grid .lead-story,
.hero-news-grid .flash-deck { margin:0 !important; min-width:0; height:100%; }
.hero-news-grid .lead-story { min-height:300px; }
.hero-news-grid .lead-story-body { height:calc(100% - 30px); }
.hero-news-grid .flash-deck {
  display:flex;
  flex-direction:column;
  min-height:300px;
  background:#fff;
  border:1px solid #dfe4ec;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 26px rgba(17,24,39,.05);
}
.hero-news-grid .flash-deck-label {
  min-height:54px;
  padding:0 15px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  background:#f6f7f9;
  border:0;
  border-bottom:1px solid #e4e8ef;
  border-inline-start:4px solid var(--v4-red);
  color:#283243;
  font-size:13px;
  font-weight:900;
}
.hero-news-grid .flash-deck-label b { font-size:14px !important; color:var(--v4-red); }
.hero-news-grid .flash-deck-items { display:grid !important; grid-template-columns:1fr !important; flex:1; }
.hero-news-grid .flash-item {
  min-height:49px;
  padding:9px 13px;
  border:0;
  border-top:1px solid #edf0f4;
  display:flex !important;
  justify-content:center;
  gap:4px;
}
.hero-news-grid .flash-item:first-child { border-top:0; }
.hero-news-grid .flash-item span { font-size:12.5px; }
.hero-news-grid .flash-item strong { font-size:15px; line-height:1.35; -webkit-line-clamp:1; }

/* Readability */
.news-title { font-size:20.5px !important; line-height:1.38 !important; }
.news-preview { font-size:15px !important; line-height:1.58 !important; color:#657080; }
.news-meta { font-size:13.5px !important; }
.filter-chip, .nav-item, .text-button, .time-filter { font-size:14.5px !important; }
.segmented button { font-size:14px !important; }
.trending-label, .trending-topic, .trending-topics button { font-size:13px !important; }
.trending-topics small { font-size:10px !important; }
.section-kicker { font-size:12px !important; }
.section-head h2 { font-size:28px !important; }
.section-actions, .text-button { font-size:13px !important; }
.source-info b { font-size:13px !important; }
.source-info small { font-size:10.5px !important; }
.news-card.compact .news-title { font-size:17.5px !important; }
.news-card.compact .news-meta { font-size:12.5px !important; }

/* Delayed update / Last Good Data status */
.data-status {
  min-height:38px;
  margin:-2px 0 10px;
  padding:8px 12px;
  border:1px solid #f0d9a5;
  border-radius:12px;
  background:#fff9e9;
  color:#76581c;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:750;
}
.data-status-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#e5a11b; box-shadow:0 0 0 4px rgba(229,161,27,.12); }

/* Fully consistent dark theme. These rules intentionally override V4's literal light colors. */
html[data-theme="dark"] { color-scheme:dark; }
html[data-theme="dark"] body {
  background:radial-gradient(circle at 88% 2%, rgba(44,95,190,.12), transparent 28rem), radial-gradient(circle at 8% 14%, rgba(255,59,48,.08), transparent 25rem), #0b0f15 !important;
  color:#f3f5f8 !important;
}
html[data-theme="dark"] .topbar { background:rgba(11,15,21,.94) !important; border-color:#242b35 !important; box-shadow:0 1px 0 rgba(255,255,255,.025) !important; }
html[data-theme="dark"] .brand-copy small { color:#8f99a8 !important; }
html[data-theme="dark"] .icon-button { background:#151a22 !important; border-color:#2a323e !important; color:#e6eaf0 !important; }
html[data-theme="dark"] .icon-button:hover { background:#1c232d !important; border-color:#394452 !important; }
html[data-theme="dark"] .news-nav { background:rgba(13,18,25,.97) !important; border-bottom-color:#ef443d !important; box-shadow:0 5px 18px rgba(0,0,0,.22) !important; }
html[data-theme="dark"] .nav-item { color:#c7ced8 !important; }
html[data-theme="dark"] .nav-item:hover, html[data-theme="dark"] .nav-item.active { color:#ff716a !important; }
html[data-theme="dark"] .nav-separator { background:#303844 !important; }
html[data-theme="dark"] .portal-strip > *,
html[data-theme="dark"] .portal-status,
html[data-theme="dark"] .utility-card { border-color:#2b333e !important; box-shadow:0 8px 24px rgba(0,0,0,.22) !important; }
html[data-theme="dark"] .portal-status { background:linear-gradient(105deg,#151b24 15%,#21191b 100%) !important; }
html[data-theme="dark"] .utility-card { background:#151b24 !important; color:#edf1f6 !important; }
html[data-theme="dark"] .status-metrics span { background:#111720 !important; border-color:#2a333f !important; color:#cbd2dc !important; }
html[data-theme="dark"] .utility-label, html[data-theme="dark"] .shabbat-meta, html[data-theme="dark"] .weather-main small { color:#98a3b2 !important; }
html[data-theme="dark"] .city-picker select, html[data-theme="dark"] .locate-button { background:#111720 !important; color:#cbd2dc !important; border-color:#303947 !important; }
html[data-theme="dark"] .utility-credit { color:#778292 !important; }
html[data-theme="dark"] .hero-news-grid .flash-deck { background:#141a22 !important; border-color:#2b333e !important; box-shadow:0 8px 26px rgba(0,0,0,.22) !important; }
html[data-theme="dark"] .hero-news-grid .flash-deck-label { background:#10161e !important; color:#e6eaf0 !important; border-bottom-color:#2b333e !important; }
html[data-theme="dark"] .hero-news-grid .flash-item { color:#edf1f6 !important; border-top-color:#252d38 !important; }
html[data-theme="dark"] .hero-news-grid .flash-item:hover { background:#1a212b !important; }
html[data-theme="dark"] .lead-story { background:linear-gradient(100deg,#151b24 28%,#211719 100%) !important; border-color:#54302f !important; box-shadow:0 13px 34px rgba(0,0,0,.25) !important; }
html[data-theme="dark"] .lead-story-media, html[data-theme="dark"] .news-image { background:#10151c !important; border-color:#303844 !important; }
html[data-theme="dark"] .lead-story-sources a, html[data-theme="dark"] .lead-story-sources span { color:#c0c8d3 !important; background:#111720 !important; border-color:#303947 !important; }
html[data-theme="dark"] .lead-story-signal { background:#111720 !important; border-color:#303947 !important; color:#aab4c2 !important; }
html[data-theme="dark"] .breaking-banner { background:linear-gradient(90deg,#25191a,#151b24) !important; border-color:#4b2c2c !important; box-shadow:none !important; }
html[data-theme="dark"] .trending-strip { background:#141a22 !important; border-color:#2b333e !important; box-shadow:none !important; }
html[data-theme="dark"] .trending-label { color:#b7c0cc !important; }
html[data-theme="dark"] .trending-topics button { background:#111720 !important; color:#c5cdd8 !important; border-color:#2d3642 !important; }
html[data-theme="dark"] .control-panel { background:rgba(17,23,32,.94) !important; border-color:#2c3541 !important; box-shadow:0 12px 35px rgba(0,0,0,.27) !important; }
html[data-theme="dark"] .search-box, html[data-theme="dark"] .segmented { background:#0d131b !important; border-color:#29323e !important; }
html[data-theme="dark"] .search-box input { color:#f0f3f7 !important; }
html[data-theme="dark"] .search-box input::placeholder { color:#687484 !important; }
html[data-theme="dark"] .search-box kbd { background:#171e28 !important; color:#919cab !important; border-color:#303947 !important; }
html[data-theme="dark"] .segmented button { color:#9da8b7 !important; }
html[data-theme="dark"] .segmented button.active { background:#202833 !important; color:#f4f6f9 !important; box-shadow:none !important; }
html[data-theme="dark"] .filter-chip { color:#9faab9 !important; }
html[data-theme="dark"] .filter-chip:hover { background:#1a222c !important; color:#eef2f6 !important; }
html[data-theme="dark"] .filter-chip.active { background:#202833 !important; border-color:#35404e !important; color:#f4f6f9 !important; box-shadow:none !important; }
html[data-theme="dark"] .filter-chip[data-category="security"].active { background:#2b1819 !important; border-color:#5a3030 !important; color:#ff847d !important; }
html[data-theme="dark"] .filter-chip[data-category="politics"].active { background:#211b33 !important; border-color:#41355f !important; color:#b49cff !important; }
html[data-theme="dark"] .filter-chip[data-category="diplomatic"].active { background:#172337 !important; border-color:#29466d !important; color:#8db9ff !important; }
html[data-theme="dark"] .news-card, html[data-theme="dark"] .telegram-story { background:#141a22 !important; border-color:#2b333e !important; box-shadow:0 6px 18px rgba(0,0,0,.18) !important; }
html[data-theme="dark"] .news-card:hover { background:#18202a !important; border-color:#3a4654 !important; box-shadow:0 12px 28px rgba(0,0,0,.28) !important; }
html[data-theme="dark"] .news-title, html[data-theme="dark"] .news-title a, html[data-theme="dark"] .news-title span { color:#f1f4f8 !important; }
html[data-theme="dark"] .news-preview { color:#a8b2c0 !important; }
html[data-theme="dark"] .news-meta { color:#8f9aa9 !important; }
html[data-theme="dark"] .source-name { color:#cbd2dc !important; }
html[data-theme="dark"] .cluster-badge { background:#211b33 !important; border-color:#40345e !important; color:#b7a0ff !important; }
html[data-theme="dark"] .related-wrap { border-top-color:#2b333e !important; }
html[data-theme="dark"] .related-wrap summary { color:#a5afbd !important; }
html[data-theme="dark"] .related-link { background:#10161e !important; color:#aeb8c5 !important; border-color:#2a333f !important; }
html[data-theme="dark"] .sidebar-card { background:#141a22 !important; border-color:#2b333e !important; box-shadow:0 7px 22px rgba(0,0,0,.18) !important; }
html[data-theme="dark"] .sidebar-card h3 { color:#edf1f6 !important; }
html[data-theme="dark"] .source-avatar { background:linear-gradient(145deg,#252d38,#1a2029) !important; color:#e7ebf0 !important; border-color:#303947 !important; }
html[data-theme="dark"] .source-row:hover { background:#1a212b !important; }
html[data-theme="dark"] .source-row-static:hover { background:transparent !important; }
html[data-theme="dark"] .show-more { background:#111720 !important; color:#aeb8c5 !important; border-color:#303947 !important; }
html[data-theme="dark"] .switch-row { border-top-color:#2b333e !important; }
html[data-theme="dark"] .switch-row small, html[data-theme="dark"] .note-card p { color:#8f9aa9 !important; }
html[data-theme="dark"] .note-card strong { color:#cfd6df !important; }
html[data-theme="dark"] .empty-state { border-color:#303947 !important; color:#9ba6b5 !important; }
html[data-theme="dark"] .empty-state h3 { color:#e8ecf1 !important; }
html[data-theme="dark"] .empty-state button { background:#171e28 !important; color:#e4e8ee !important; border-color:#303947 !important; }
html[data-theme="dark"] .footer { border-top-color:#29323e !important; color:#8994a3 !important; }
html[data-theme="dark"] .footer strong, html[data-theme="dark"] .footer-copy a { color:#e5e9ef !important; }
html[data-theme="dark"] .data-status { background:#211d13 !important; border-color:#59471e !important; color:#d8c386 !important; }

@media (max-width:1050px) {
  .hero-news-grid { grid-template-columns:minmax(0,1.45fr) minmax(290px,.85fr); }
  .hero-news-grid .flash-item:nth-child(n+5) { display:none !important; }
}

@media (max-width:900px) {
  .hero-news-grid { grid-template-columns:1fr; }
  .hero-news-grid .lead-story { min-height:0; }
  .hero-news-grid .flash-deck { min-height:0; }
  .hero-news-grid .flash-deck-items { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .hero-news-grid .flash-item { border-top:1px solid #edf0f4; }
}

/* Mobile: weather + Shabbat become one compact strip and news starts much higher. */
@media (max-width:700px) {
  .page { padding-top:8px !important; }
  .portal-strip { display:grid !important; grid-template-columns:1fr 1fr !important; gap:0 !important; margin-bottom:8px !important; }
  .portal-status { display:none !important; }
  .portal-strip > .utility-card { min-height:58px !important; height:58px !important; padding:6px 9px !important; box-shadow:none !important; border-radius:0 !important; overflow:hidden; }
  .portal-strip > .weather-card { border-radius:0 13px 13px 0 !important; border-inline-start:0 !important; }
  .portal-strip > .shabbat-card { border-radius:13px 0 0 13px !important; }
  .utility-card::after, .utility-credit, .weather-main small, .shabbat-meta, .locate-button { display:none !important; }
  .utility-head { min-height:18px !important; margin:0 !important; justify-content:flex-start !important; }
  .utility-icon { width:21px !important; height:21px !important; border-radius:7px !important; font-size:12px !important; }
  .city-picker { margin-inline-start:auto; }
  .city-picker select { max-width:82px !important; height:23px !important; padding:1px 18px 1px 3px !important; font-size:10px !important; background:transparent !important; border:0 !important; }
  .weather-main { display:flex !important; align-items:center !important; gap:5px !important; margin:0 !important; }
  .weather-main strong { font-size:23px !important; }
  .weather-main b { font-size:10.5px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .shabbat-times { margin:1px 0 0 !important; gap:5px !important; }
  .shabbat-times div { gap:2px !important; }
  .shabbat-times span { font-size:9px !important; }
  .shabbat-times strong { font-size:16px !important; }
  .hero-news-grid { margin-bottom:8px; }
  .hero-news-grid .flash-deck { display:none !important; }
  .lead-story h2 { font-size:24px !important; }
  .lead-story-copy > p { font-size:13px !important; }
  .lead-story-meta { font-size:11.5px !important; }
  .filter-chip, .nav-item, .text-button, .time-filter { font-size:13px !important; }
  .news-title { font-size:18px !important; }
  .news-meta { font-size:12px !important; }
  .news-preview { font-size:13px !important; }
  .data-status { margin:0 0 8px; min-height:34px; font-size:11.5px; padding:6px 9px; }
}

@media (max-width:470px) {
  .portal-strip > .utility-card { min-height:55px !important; height:55px !important; }
  .weather-main strong { font-size:21px !important; }
  .shabbat-times strong { font-size:15px !important; }
  .news-title { font-size:17px !important; }
}


/* =========================
   HADASHOTA V7 — persistent navigation, unified typography & refined UI
   ========================= */
html,
body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
body { letter-spacing: 0; }
button, input, select, textarea { font-synthesis: none; }

/* Keep both the main header and the newsroom navigation visible while browsing. */
.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid rgba(17,24,39,.07) !important;
  box-shadow: 0 8px 30px rgba(17,24,39,.045) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
}
.news-nav {
  position: sticky !important;
  top: 70px !important;
  z-index: 55 !important;
  background: rgba(255,255,255,.93) !important;
  border-bottom: 1px solid rgba(17,24,39,.08) !important;
  box-shadow: 0 7px 22px rgba(17,24,39,.04) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
}
.news-nav-inner {
  height: 52px !important;
  gap: 5px !important;
  padding: 6px 0 !important;
}
.nav-item {
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: 11px !important;
  color: #4b5565 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  transition: color .18s ease, background .18s ease, transform .18s ease !important;
}
.nav-item:hover {
  color: #111827 !important;
  background: #f4f6f9 !important;
}
.nav-item.active {
  color: #df2f2f !important;
  background: #fff1f1 !important;
}
.nav-item.active::after {
  right: 12px !important;
  left: 12px !important;
  bottom: -7px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ef3e3e !important;
}
.nav-separator { background: #e4e8ee !important; }

/* Extra header actions */
.header-action-button {
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dce2ea;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #535e6f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: .18s ease;
}
.header-action-button:hover {
  color: #111827;
  border-color: #cbd3de;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(17,24,39,.07);
}
.header-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Less "boxed" and more editorial top section. */
.portal-strip > * {
  border-radius: 20px !important;
  border-color: #e3e7ed !important;
  box-shadow: 0 10px 30px rgba(17,24,39,.055) !important;
}
.portal-status {
  background: linear-gradient(120deg,#fff 0%,#fff 58%,#fff6f5 100%) !important;
  border-top: 1px solid #e3e7ed !important;
  position: relative;
  overflow: hidden;
}
.portal-status::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(#f14949, #ff9a91);
}
.status-metrics span {
  border-radius: 999px !important;
  background: #fbfcfe !important;
}

.hero-news-grid { gap: 14px !important; }
.lead-story {
  border: 1px solid #e6e9ef !important;
  background: linear-gradient(120deg,#fff 55%,#fff8f7 100%) !important;
  box-shadow: 0 14px 38px rgba(17,24,39,.065) !important;
}
.lead-story-label { font-size: 12.5px !important; font-weight: 850 !important; }
.lead-story-signal { font-size: 12px !important; }
.lead-story h2 { letter-spacing: -.035em !important; }
.lead-story-copy > p { font-size: 15px !important; line-height: 1.6 !important; color: #5e6878 !important; }
.lead-story-meta { font-size: 13px !important; color: #7b8594 !important; }
.lead-story-sources a,
.lead-story-sources span { font-size: 11px !important; }
.lead-story-cta { font-size: 12px !important; font-weight: 800 !important; }

.hero-news-grid .flash-deck {
  border-radius: 20px !important;
  border-color: #e3e7ed !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(17,24,39,.055) !important;
}
.hero-news-grid .flash-deck-label {
  background: #f8f9fb !important;
  border-bottom-color: #e7ebf0 !important;
}
.hero-news-grid .flash-item {
  padding: 13px 15px !important;
  transition: background .18s ease, padding .18s ease !important;
}
.hero-news-grid .flash-item:hover { background: #f8fafc !important; padding-inline-start: 18px !important; }
.hero-news-grid .flash-item span { font-size: 12.5px !important; }
.hero-news-grid .flash-item strong { font-size: 15.5px !important; line-height: 1.45 !important; }

/* The newsroom nav is the persistent control; the larger filter panel stays in the document flow. */
.control-panel {
  position: relative !important;
  top: auto !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid #e0e5ec !important;
  border-radius: 19px !important;
  box-shadow: 0 11px 30px rgba(17,24,39,.055) !important;
  backdrop-filter: blur(16px) !important;
}
.search-box {
  border-radius: 13px !important;
  background: #f8fafc !important;
  border-color: #e0e5ec !important;
}
.search-box:focus-within {
  background: #fff !important;
  border-color: #bdc8d6 !important;
  box-shadow: 0 0 0 4px rgba(74,112,164,.07) !important;
}
.search-box input { font-size: 15px !important; }
.segmented { background: #f4f6f9 !important; border-color: #e1e6ed !important; }
.segmented button { font-size: 14px !important; }
.segmented button.active { background: #fff !important; color: #111827 !important; box-shadow: 0 2px 9px rgba(17,24,39,.07) !important; }
.filter-chip { font-size: 14px !important; font-weight: 720 !important; }

/* Feed typography: same family and visual rhythm as the section headline. */
.section-kicker { font-size: 12.5px !important; letter-spacing: 0 !important; }
.section-head h2 { font-size: 28px !important; font-weight: 850 !important; letter-spacing: -.03em !important; }
.section-actions, .text-button { font-size: 13px !important; }
.news-card {
  border-radius: 19px !important;
  border-color: #e2e6ec !important;
  box-shadow: 0 7px 22px rgba(17,24,39,.04) !important;
}
.news-card:hover {
  transform: translateY(-2px) !important;
  border-color: #d0d7e1 !important;
  box-shadow: 0 14px 34px rgba(17,24,39,.075) !important;
}
.news-meta { font-size: 13.5px !important; line-height: 1.35 !important; }
.news-title {
  font-size: 20.5px !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}
.news-preview {
  font-size: 15px !important;
  line-height: 1.62 !important;
  color: #697384 !important;
}
.category-badge { font-size: 11px !important; }
.source-type-badge,
.official-badge,
.independent-badge,
.cluster-badge,
.new-badge { font-size: 10px !important; }
.related-wrap summary,
.related-link { font-size: 12px !important; }
.sidebar-card h3 { font-size: 19px !important; }
.source-row { font-size: 13px !important; }
.switch-row b { font-size: 14px !important; }
.switch-row small { font-size: 12.5px !important; }
.note-card p { font-size: 13px !important; line-height: 1.65 !important; }

/* Modals */
body.modal-open { overflow: hidden; }
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15,23,42,.38);
  backdrop-filter: blur(8px);
  cursor: default;
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 90px rgba(15,23,42,.24);
  padding: 30px;
  outline: 0;
  color: #1b2430;
}
.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid #e1e6ed;
  background: #f8fafc;
  color: #5f6978;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #f1f4f8; color: #111827; }
.modal-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff0f0;
  color: #e43737;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 18px;
}
.modal-icon-mail { background: #eff6ff; color: #2563eb; }
.modal-eyebrow { display: block; color: #8791a0; font-size: 12px; font-weight: 850; margin-bottom: 7px; }
.modal-card h2 { margin: 0 0 15px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.modal-card p { margin: 0 0 13px; color: #5f6978; font-size: 15px; line-height: 1.75; }
.modal-note {
  margin-top: 20px;
  padding: 15px 16px;
  display: grid;
  gap: 5px;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  background: #f8fafc;
  color: #626d7c;
  font-size: 13px;
  line-height: 1.65;
}
.modal-note strong { color: #252d38; }
.modal-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 5px 0 2px;
  padding: 0 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  direction: ltr;
}
.modal-email:hover { background: #222b39; }

/* Dark mode refinements for the new V7 elements. */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .news-nav {
  background: rgba(12,17,24,.94) !important;
  border-color: #28313d !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .nav-item { color: #aeb8c5 !important; }
html[data-theme="dark"] .nav-item:hover { color: #f1f4f8 !important; background: #1a222c !important; }
html[data-theme="dark"] .nav-item.active { color: #ff8b84 !important; background: #29191b !important; }
html[data-theme="dark"] .nav-separator { background: #303946 !important; }
html[data-theme="dark"] .header-action-button {
  background: #171e28;
  border-color: #303947;
  color: #b8c1cd;
}
html[data-theme="dark"] .header-action-button:hover { background: #202833; color: #f2f5f8; border-color: #3d4857; box-shadow: none; }
html[data-theme="dark"] .portal-status { background: linear-gradient(120deg,#151b24 0%,#151b24 58%,#211819 100%) !important; border-color: #2b333e !important; }
html[data-theme="dark"] .lead-story { background: linear-gradient(120deg,#151b24 55%,#201718 100%) !important; border-color: #2f3742 !important; }
html[data-theme="dark"] .lead-story-copy > p,
html[data-theme="dark"] .news-preview { color: #a8b2c0 !important; }
html[data-theme="dark"] .lead-story-meta { color: #8e99a8 !important; }
html[data-theme="dark"] .control-panel { background: rgba(17,23,32,.95) !important; border-color: #2c3541 !important; }
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .segmented { background: #0f151d !important; border-color: #2d3642 !important; }
html[data-theme="dark"] .search-box:focus-within { background: #111821 !important; border-color: #455365 !important; box-shadow: 0 0 0 4px rgba(116,149,194,.08) !important; }
html[data-theme="dark"] .segmented button.active { background: #232c37 !important; color: #f4f6f9 !important; box-shadow: none !important; }
html[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.58); }
html[data-theme="dark"] .modal-card { background: #151b24; border-color: #303947; color: #eef2f6; box-shadow: 0 30px 90px rgba(0,0,0,.48); }
html[data-theme="dark"] .modal-close { background: #10161e; border-color: #303947; color: #aeb8c5; }
html[data-theme="dark"] .modal-close:hover { background: #1b232d; color: #fff; }
html[data-theme="dark"] .modal-icon { background: #2a191b; color: #ff8b84; }
html[data-theme="dark"] .modal-icon-mail { background: #17253a; color: #8db9ff; }
html[data-theme="dark"] .modal-eyebrow { color: #8e99a8; }
html[data-theme="dark"] .modal-card p { color: #aab4c1; }
html[data-theme="dark"] .modal-note { background: #10161e; border-color: #2c3541; color: #9ba6b5; }
html[data-theme="dark"] .modal-note strong { color: #e6ebf0; }
html[data-theme="dark"] .modal-email { background: #f1f4f8; color: #111827; }

@media (max-width: 900px) {
  .header-action-button { width: 38px; padding: 0; }
  .header-action-button span { display: none; }
}

@media (max-width: 700px) {
  .topbar, .topbar-inner { height: 62px !important; }
  .news-nav { top: 62px !important; }
  .news-nav-inner { height: 46px !important; padding: 4px 0 !important; }
  .nav-item { height: 36px !important; font-size: 13px !important; padding: 0 12px !important; }
  .nav-item.active::after { bottom: -5px !important; }
  .header-action-button { width: 34px; height: 34px; border-radius: 10px; }
  .header-action-button svg { width: 16px; height: 16px; }
  .live-pill { display: none !important; }
  .auto-refresh-pill span { display: none; }
  .auto-refresh-pill { width: 34px; height: 34px; padding: 0 !important; justify-content: center; }
  .auto-refresh-pill i { margin: 0; }
  .control-panel { position: relative !important; top: auto !important; }
  .lead-story-copy > p { font-size: 14px !important; }
  .lead-story-meta { font-size: 12px !important; }
  .news-title { font-size: 18px !important; }
  .news-meta { font-size: 12px !important; }
  .news-preview { font-size: 13px !important; }
  .section-head h2 { font-size: 24px !important; }
  .modal-card { padding: 25px 20px 22px; border-radius: 22px; }
  .modal-card h2 { font-size: 24px; padding-inline-start: 34px; }
  .modal-card p { font-size: 14px; }
  .modal-close { top: 13px; left: 13px; }
}

@media (max-width: 470px) {
  .brand-copy strong { font-size: 17px !important; }
  .topbar-actions { gap: 5px !important; }
  .icon-button, .header-action-button, .auto-refresh-pill { width: 32px !important; height: 32px !important; }
  .news-nav-inner { justify-content: flex-start !important; }
  .news-title { font-size: 17.5px !important; }
}

.connection-state {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid #e3e7ed;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  color: #465163;
  text-align: right;
}
.connection-state > div { display: grid; gap: 4px; }
.connection-state strong { font-size: 15px; color: #222b38; }
.connection-state small { font-size: 12px; color: #7c8797; }
.connection-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid #e2e7ee;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
html[data-theme="dark"] .connection-state { background:#141a22; border-color:#2b333e; color:#aab4c1; }
html[data-theme="dark"] .connection-state strong { color:#edf1f6; }
html[data-theme="dark"] .connection-state small { color:#8995a5; }
html[data-theme="dark"] .connection-spinner { border-color:#303946; border-top-color:#ff7770; }


/* =========================================================
   HADASHOTA V8 — source links + fuller lead headline
   ========================================================= */

/* The whole story card is an accessible link, including Telegram reports. */
.news-card[data-story-url] { cursor: pointer !important; }
.news-card[data-story-url]:focus-visible {
  outline: 3px solid rgba(239,68,68,.22);
  outline-offset: 3px;
  border-color: #f2a29e !important;
}
.news-card[data-story-url] .news-title a {
  color: inherit;
  text-decoration: none;
}
.news-card[data-story-url] .news-title a:hover { color: #d83d36; }
.telegram-story .news-title a { cursor: pointer !important; }
.telegram-image { cursor: pointer !important; }

/* Fit substantially more of the central headline without making it feel small. */
.lead-story h2 {
  font-size: clamp(21px, 1.65vw, 28px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.028em !important;
  max-width: none !important;
}
.lead-story h2 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .lead-story h2 { font-size: 23px !important; line-height: 1.18 !important; }
}

@media (max-width: 700px) {
  .lead-story h2 { font-size: 19.5px !important; line-height: 1.2 !important; }
  .lead-story h2 a { -webkit-line-clamp: 5 !important; }
}

@media (max-width: 470px) {
  .lead-story h2 { font-size: 18px !important; }
}

/* =========================================================
   HADASHOTA V9 — newsroom navigation, unified Hebrew type & polish
   ========================================================= */

:root {
  --hadashota-ui-font: Arial, "Segoe UI", sans-serif;
}

/* One local/system font stack everywhere: no external font dependency and no
   visual jump between section headings, navigation and news cards. */
html, body, button, input, select, textarea,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body span, body strong, body b, body small,
body label, body summary, body time {
  font-family: var(--hadashota-ui-font) !important;
  font-synthesis: none;
}

.nav-item,
.section-head h2,
.news-title,
.lead-story h2,
.flash-item strong,
.sidebar-card h3,
.modal-card h2 {
  font-weight: 700 !important;
}

/* Primary newsroom navigation now lands exactly at the filtered feed. */
.feed-column {
  scroll-margin-top: 142px;
}
.nav-item[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(239,62,62,.10);
}

/* Cleaner editorial rhythm: a little less "boxed", clearer hierarchy. */
.section-head {
  padding: 4px 2px 13px !important;
  border-bottom: 1px solid #e7eaf0;
  margin-bottom: 12px !important;
}
.section-kicker {
  color: #87909d !important;
  font-weight: 700 !important;
}
.section-head h2 {
  font-size: 27px !important;
  letter-spacing: -.018em !important;
}
.news-card {
  border-radius: 16px !important;
  box-shadow: 0 5px 18px rgba(17,24,39,.035) !important;
  content-visibility: auto;
  contain-intrinsic-size: 185px;
}
.news-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 11px 28px rgba(17,24,39,.075) !important;
}
.news-title {
  font-size: 20px !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
}
.news-preview {
  font-size: 14.5px !important;
  line-height: 1.62 !important;
}
.news-meta {
  font-size: 13px !important;
  font-weight: 400 !important;
}
.source-name { font-weight: 700 !important; }

/* Preserve V8 source-link behavior and fuller lead headline (the original V8
   append contained escaped newlines, now repaired in this full build). */
.news-card[data-story-url] { cursor: pointer !important; }
.news-card[data-story-url]:focus-visible {
  outline: 3px solid rgba(239,68,68,.22);
  outline-offset: 3px;
  border-color: #f2a29e !important;
}
.news-card[data-story-url] .news-title a { color: inherit; text-decoration: none; }
.news-card[data-story-url] .news-title a:hover { color: #d83d36; }
.telegram-story .news-title a, .telegram-image { cursor: pointer !important; }
.lead-story h2 {
  font-size: clamp(21px, 1.65vw, 28px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.018em !important;
}
.lead-story h2 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html[data-theme="dark"] .section-head { border-bottom-color: #29323d; }
html[data-theme="dark"] .section-kicker { color: #8f9aaa !important; }
html[data-theme="dark"] .nav-item[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(255,139,132,.12);
}

@media (max-width: 900px) {
  .feed-column { scroll-margin-top: 132px; }
  .lead-story h2 { font-size: 23px !important; }
}
@media (max-width: 700px) {
  .feed-column { scroll-margin-top: 118px; }
  .section-head h2 { font-size: 23px !important; }
  .news-title { font-size: 18px !important; }
  .news-preview { font-size: 13px !important; }
  .lead-story h2 { font-size: 19.5px !important; line-height: 1.22 !important; }
  .lead-story h2 a { -webkit-line-clamp: 5 !important; }
}
@media (max-width: 470px) {
  .news-title { font-size: 17px !important; }
  .lead-story h2 { font-size: 18px !important; }
}


/* =========================================================
   HADASHOTA V10 — Heebo editorial typography
   ========================================================= */
:root {
  --hadashota-ui-font: "Heebo", Arial, "Segoe UI", sans-serif;
}

html, body, button, input, select, textarea,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body span, body strong, body b, body small,
body label, body summary, body time {
  font-family: var(--hadashota-ui-font) !important;
}

/* Strong Israeli-news hierarchy: bold headlines, calm readable body copy. */
.brand-copy strong { font-weight: 900 !important; }
.nav-item,
.filter-chip,
.segmented button,
.header-action-button,
.auto-refresh-pill,
.live-pill { font-weight: 700 !important; }

.lead-story h2,
.lead-story h2 a {
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
}

.news-title,
.news-title a,
.flash-item strong,
.sidebar-card h3,
.section-head h2 {
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

.news-preview,
.lead-story-summary,
.footer-copy,
.modal-card p {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.news-meta,
.source-name,
.section-kicker,
.trending-label,
.utility-label {
  font-family: var(--hadashota-ui-font) !important;
}

.source-name { font-weight: 700 !important; }
.news-meta { font-weight: 400 !important; }
.section-kicker, .trending-label, .utility-label { font-weight: 700 !important; }

/* Prevent legacy fallback stacks from creating visibly different Hebrew glyphs. */
.news-card *,
.lead-story *,
.flash-deck *,
.sidebar-card *,
.primary-nav *,
.filters-panel *,
.topbar *,
.utility-strip *,
.trending-strip *,
.modal-card *,
.site-footer * {
  font-family: var(--hadashota-ui-font) !important;
}


/* =========================================================
   HADASHOTA V11 — guaranteed mobile Shabbat visibility
   ========================================================= */
.shabbat-mobile-line {
  display: none;
}

@media (max-width: 700px) {
  /* Give Shabbat slightly more room than weather on narrow screens. */
  .portal-strip {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
  }

  .portal-strip > .shabbat-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .shabbat-card .utility-head {
    min-height: 15px !important;
    height: 15px !important;
    overflow: hidden !important;
  }

  .shabbat-card .utility-icon {
    display: none !important;
  }

  .shabbat-card .utility-label {
    display: block !important;
    width: 100% !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    color: #667085 !important;
    white-space: nowrap !important;
  }

  .shabbat-card .shabbat-times {
    display: none !important;
  }

  .shabbat-mobile-line {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    direction: rtl !important;
    width: 100% !important;
    margin-top: 5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    line-height: 1 !important;
    color: #101828 !important;
  }

  .shabbat-mobile-line span {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    color: #667085 !important;
  }

  .shabbat-mobile-line strong {
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    color: #101828 !important;
  }

  .shabbat-mobile-line i {
    font-style: normal !important;
    font-size: 10px !important;
    color: #98a2b3 !important;
  }

  html[data-theme="dark"] .shabbat-card .utility-label,
  html[data-theme="dark"] .shabbat-mobile-line span {
    color: #a5afbd !important;
  }

  html[data-theme="dark"] .shabbat-mobile-line strong {
    color: #f7f8fb !important;
  }
}

@media (max-width: 390px) {
  .portal-strip {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  }
  .shabbat-mobile-line { gap: 3px !important; }
  .shabbat-mobile-line span { font-size: 9px !important; }
  .shabbat-mobile-line strong { font-size: 14px !important; }
}


/* ===== Hadashota launch polish ===== */
.lead-story-topline { align-items: center !important; gap: 16px !important; flex-wrap: wrap !important; }
.lead-story-label { font-size: 15px !important; font-weight: 900 !important; letter-spacing: .01em !important; color: #c6281e !important; }
.lead-story-label i { width: 10px !important; height: 10px !important; box-shadow: 0 0 0 6px rgba(255,77,61,.13) !important; }
.lead-story-signal { font-size: 12px !important; font-weight: 800 !important; padding: 7px 12px !important; }
.lead-story h2,
.lead-story h2 a { font-size: clamp(34px, 3.35vw, 54px) !important; line-height: 1.12 !important; letter-spacing: -.04em !important; }
.lead-story h2 a { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.lead-story-copy > p { font-size: 16px !important; line-height: 1.72 !important; color: #5d6776 !important; margin: 14px 0 14px !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.lead-story-meta { font-size: 13px !important; gap: 8px !important; }
.lead-story-sources { margin-top: 12px !important; gap: 7px !important; max-height: none !important; overflow: visible !important; }
.lead-story-sources a, .lead-story-sources span { font-size: 11px !important; padding: 6px 10px !important; }
.lead-story-cta { font-size: 13px !important; padding: 12px 16px !important; }
.data-status { margin: 2px 0 14px !important; }
.notifications-button.active { color: #087a4e !important; background: #effbf5 !important; border-color: #aee8ce !important; }
.notifications-button.active svg { stroke: #087a4e !important; }
.quick-menu button#quickNotifications.active b { color: #087a4e !important; }
html[data-theme="dark"] .notifications-button.active { background: #123126 !important; color: #72ddb3 !important; border-color: #235f49 !important; }
html[data-theme="dark"] .lead-story-copy > p { color: #a2acb9 !important; }
@media (max-width: 1100px) {
  .lead-story h2, .lead-story h2 a { font-size: 28px !important; line-height: 1.16 !important; }
  .lead-story-copy > p { font-size: 14px !important; line-height: 1.65 !important; }
}
@media (max-width: 780px) {
  .lead-story-label { font-size: 13.5px !important; }
  .lead-story h2, .lead-story h2 a { font-size: 23px !important; line-height: 1.18 !important; }
  .lead-story-copy > p { font-size: 13px !important; }
  .lead-story-meta { font-size: 11.5px !important; }
}
/* =========================================================
   HADASHOTA V15 — final launch layout & headline balance
   ========================================================= */

/* Main story: headline stays dramatic without overpowering the image. */
.lead-story {
  padding: 18px 20px 20px !important;
  border-radius: 22px !important;
}
.lead-story-topline {
  margin-bottom: 13px !important;
  align-items: center !important;
  gap: 14px !important;
}
.lead-story-label {
  font-size: 14px !important;
  font-weight: 900 !important;
}
.lead-story-signal {
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

/* No-image stories use the full copy width. Adding .has-media opens a dedicated image column. */
.lead-story-body {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  height: auto !important;
}
.lead-story.has-media .lead-story-body {
  grid-template-columns: minmax(205px, 25%) minmax(0, 1fr) auto !important;
}
.lead-story-copy {
  min-width: 0 !important;
  align-self: center !important;
}
.lead-story-media {
  width: 100% !important;
  height: 218px !important;
  min-height: 218px !important;
  max-height: 218px !important;
  border-radius: 16px !important;
  align-self: center !important;
}
.lead-story-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}

.lead-story h2,
.lead-story h2 a {
  font-size: clamp(29px, 2.2vw, 36px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.032em !important;
  max-width: 790px !important;
  text-wrap: balance;
  font-weight: 900 !important;
}
.lead-story h2 a {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
/* Long headlines step down automatically so their visual height stays close to the lead image. */
.lead-story[data-title-size="medium"] h2,
.lead-story[data-title-size="medium"] h2 a {
  font-size: clamp(27px, 2vw, 33px) !important;
}
.lead-story[data-title-size="long"] h2,
.lead-story[data-title-size="long"] h2 a {
  font-size: clamp(24px, 1.8vw, 30px) !important;
  line-height: 1.18 !important;
}
.lead-story-copy > p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  margin: 10px 0 !important;
  color: #5e6878 !important;
}
.lead-story-meta {
  font-size: 12px !important;
  gap: 7px !important;
}
.lead-story-sources {
  margin-top: 10px !important;
  gap: 6px !important;
  max-height: 58px !important;
  overflow: hidden !important;
}
.lead-story-sources a,
.lead-story-sources span {
  font-size: 10.5px !important;
  padding: 5px 9px !important;
}
.lead-story-cta {
  align-self: end !important;
  font-size: 12px !important;
  padding: 11px 14px !important;
}

/* Latest-updates column: compact, even and readable. */
.hero-news-grid {
  gap: 14px !important;
  align-items: start !important;
}
.hero-news-grid .lead-story {
  min-height: 0 !important;
}
.hero-news-grid .flash-deck {
  min-height: 0 !important;
  height: auto !important;
}
.hero-news-grid .flash-deck-label {
  min-height: 54px !important;
  font-size: 13px !important;
}
.hero-news-grid .flash-deck-label b {
  font-size: 15px !important;
}
.hero-news-grid .flash-deck-items {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
}
.hero-news-grid .flash-item {
  min-height: 0 !important;
  padding: 11px 14px !important;
  gap: 3px !important;
  justify-content: flex-start !important;
}
.hero-news-grid .flash-item strong {
  font-size: 14px !important;
  line-height: 1.38 !important;
  -webkit-line-clamp: 2 !important;
}
.hero-news-grid .flash-item span {
  font-size: 11.5px !important;
}

/* Delayed-data banner remains visible but no longer dominates the page. */
.data-status {
  min-height: 40px !important;
  padding: 9px 13px !important;
  margin: 2px 0 12px !important;
  border-radius: 13px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

/* Tablet: hero is full width, while the lead still keeps an editorial image/copy balance. */
@media (max-width: 1180px) {
  .lead-story h2,
  .lead-story h2 a {
    font-size: clamp(27px, 2.65vw, 33px) !important;
  }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a { font-size: 27px !important; }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a { font-size: 24px !important; }
}

@media (max-width: 900px) {
  .lead-story { padding: 16px !important; }
  .lead-story.has-media .lead-story-body {
    grid-template-columns: 180px minmax(0, 1fr) !important;
    gap: 15px !important;
  }
  .lead-story-body { grid-template-columns: minmax(0, 1fr) !important; }
  .lead-story-media {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
  }
  .lead-story-cta { display: none !important; }
  .lead-story h2,
  .lead-story h2 a { font-size: 27px !important; }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a { font-size: 25px !important; }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a { font-size: 22.5px !important; }
}

@media (max-width: 700px) {
  .hero-news-grid { margin-bottom: 8px !important; }
  .hero-news-grid .flash-deck { display: none !important; }
  .lead-story {
    padding: 13px !important;
    border-radius: 18px !important;
  }
  .lead-story-topline { margin-bottom: 9px !important; }
  .lead-story-label { font-size: 12.5px !important; }
  .lead-story-signal { font-size: 10.5px !important; padding: 5px 8px !important; }
  .lead-story.has-media .lead-story-body,
  .lead-story-body { grid-template-columns: 1fr !important; gap: 11px !important; }
  .lead-story-media {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
    border-radius: 13px !important;
  }
  .lead-story h2,
  .lead-story h2 a { font-size: 22px !important; line-height: 1.2 !important; }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a { font-size: 21px !important; }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a { font-size: 20px !important; }
  .lead-story-copy > p { font-size: 12.5px !important; -webkit-line-clamp: 2 !important; }
  .lead-story-meta { font-size: 11px !important; }
  .lead-story-sources { display: flex !important; max-height: 29px !important; }
}

@media (max-width: 470px) {
  .lead-story-media {
    height: 164px !important;
    min-height: 164px !important;
    max-height: 164px !important;
  }
  .lead-story h2,
  .lead-story h2 a { font-size: 20.5px !important; }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a { font-size: 19.5px !important; }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a { font-size: 18.5px !important; }
}

html[data-theme="dark"] .lead-story-copy > p { color: #a2acb9 !important; }


/* =========================================================
   HADASHOTA V17 — online USD/EUR market rates
   ========================================================= */
.portal-strip {
  grid-template-columns: minmax(350px, 1.35fr) minmax(205px, .72fr) minmax(225px, .78fr) minmax(225px, .78fr) !important;
}
.currency-card::after { background:#10b981; right:-58px; top:-62px; }
.currency-card .utility-icon { background:#ecfdf3; color:#079455; }
.currency-rates {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:9px;
  position:relative; z-index:1;
}
.currency-rates > div { display:grid; gap:1px; min-width:0; }
.currency-rates > div:first-child { text-align:right; }
.currency-rates > div:last-child { text-align:left; }
.currency-rates span { font-size:9px; color:#667085; font-weight:700; }
.currency-rates strong { font-size:20px; line-height:1.05; letter-spacing:-.035em; color:#101828; white-space:nowrap; }
.currency-rates small { font-size:7px; color:#98a2b3; font-weight:800; letter-spacing:.05em; }
.currency-rates i { width:1px; height:31px; background:rgba(17,24,39,.10); }
.currency-meta { position:relative; z-index:1; min-height:10px; color:#98a2b3; font-size:8px; }
html[data-theme="dark"] .currency-card .utility-icon { background:rgba(16,185,129,.14); color:#6ce9a6; }
html[data-theme="dark"] .currency-rates strong { color:#f7f8fb; }
html[data-theme="dark"] .currency-rates span { color:#a5afbd; }

@media (max-width: 1180px) and (min-width: 701px) {
  .portal-strip { grid-template-columns:1.25fr .75fr .8fr !important; }
  .portal-status { grid-row:span 2; }
  .currency-card { grid-column:2 / 4; min-height:86px !important; }
  .currency-card .currency-rates { max-width:340px; }
}

@media (max-width:700px) {
  .portal-strip {
    grid-template-columns:minmax(0,.9fr) minmax(0,1.08fr) minmax(0,1.02fr) !important;
    gap:0 !important;
  }
  .portal-strip > .weather-card { border-radius:0 13px 13px 0 !important; }
  .portal-strip > .shabbat-card { border-radius:0 !important; }
  .portal-strip > .currency-card { border-radius:13px 0 0 13px !important; }
  .portal-strip > .currency-card { min-height:58px !important; height:58px !important; padding:6px 8px !important; }
  .currency-card .utility-head { min-height:15px !important; height:15px !important; overflow:hidden !important; }
  .currency-card .utility-icon { display:none !important; }
  .currency-card .utility-label { display:block !important; width:100% !important; font-size:9.5px !important; line-height:1 !important; white-space:nowrap !important; }
  .currency-rates { gap:4px !important; margin-top:5px !important; }
  .currency-rates span, .currency-rates small { display:none !important; }
  .currency-rates strong { font-size:12.5px !important; line-height:1 !important; }
  .currency-rates i { height:15px !important; }
  .currency-meta { display:none !important; }
}

@media (max-width:470px) {
  .portal-strip { grid-template-columns:minmax(0,.86fr) minmax(0,1.08fr) minmax(0,1.06fr) !important; }
  .portal-strip > .currency-card { min-height:55px !important; height:55px !important; }
  .currency-card .utility-label { font-size:9px !important; }
  .currency-rates strong { font-size:11.5px !important; }
}


/* =========================================================
   HADASHOTA V18 — currency badges + accessibility polish
   ========================================================= */
.skip-link {
  position:absolute;
  top:-52px;
  right:14px;
  z-index:1200;
  padding:10px 14px;
  border-radius:12px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  box-shadow:0 10px 24px rgba(17,24,39,.18);
}
.skip-link:focus-visible { top:12px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline:3px solid rgba(23,105,255,.32);
  outline-offset:3px;
}
main:focus { outline:none; }

.control-panel,
.sidebar-card,
.utility-card,
.lead-story,
.news-card,
.flash-item,
.trending-strip,
.breaking-banner {
  backdrop-filter:saturate(145%) blur(10px);
}

.currency-card .utility-label { letter-spacing:.01em; }
.currency-rates { align-items:stretch; }
.currency-unit {
  display:grid;
  align-content:center;
  gap:2px;
  min-width:0;
}
.currency-unit:first-child { text-align:right; }
.currency-unit:last-child { text-align:left; }
.currency-headline {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#667085;
  font-size:9px;
  font-weight:800;
}
.currency-badge {
  width:22px;
  height:22px;
  display:inline-grid;
  place-items:center;
  border-radius:8px;
  font-size:13px;
  font-weight:900;
  flex:0 0 auto;
}
.usd-unit .currency-badge {
  background:#ecfdf3;
  color:#067647;
  box-shadow:inset 0 0 0 1px rgba(6,118,71,.12);
}
.eur-unit .currency-badge {
  background:#eef4ff;
  color:#175cd3;
  box-shadow:inset 0 0 0 1px rgba(23,92,211,.12);
}
.currency-unit strong {
  direction:ltr;
  unicode-bidi:plaintext;
  font-variant-numeric:tabular-nums;
}
.currency-unit small { letter-spacing:.08em; }
html[data-theme="dark"] .skip-link { background:#f7f8fb; color:#0b0f15; }
html[data-theme="dark"] .usd-unit .currency-badge { background:rgba(16,185,129,.14); color:#6ce9a6; box-shadow:inset 0 0 0 1px rgba(108,233,166,.08); }
html[data-theme="dark"] .eur-unit .currency-badge { background:rgba(23,105,255,.18); color:#9fc4ff; box-shadow:inset 0 0 0 1px rgba(159,196,255,.1); }
html[data-theme="dark"] .currency-headline { color:#a5afbd; }

@media (max-width:700px) {
  .currency-rates { gap:4px !important; margin-top:4px !important; }
  .currency-unit { gap:1px !important; }
  .currency-headline { justify-content:center; gap:4px; }
  .currency-badge { width:16px; height:16px; border-radius:5px; font-size:10px; }
  .currency-card .currency-label-text,
  .currency-card .currency-unit small { display:none !important; }
  .currency-card .currency-unit strong { font-size:12.5px !important; line-height:1 !important; }
}

@media (max-width:470px) {
  .currency-badge { width:15px; height:15px; font-size:9px; }
  .currency-card .currency-unit strong { font-size:11.5px !important; }
}


/* =========================================================
   HADASHOTA V19 — mobile utility repair + final polish
   ========================================================= */
.back-to-top {
  position:fixed;
  left:max(16px, env(safe-area-inset-left));
  bottom:max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index:70;
  width:44px;
  height:44px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.94);
  color:#101828;
  box-shadow:0 12px 30px rgba(17,24,39,.15);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  cursor:pointer;
  backdrop-filter:blur(12px);
}
.back-to-top.visible { opacity:1; visibility:visible; transform:none; }
.back-to-top svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.back-to-top:hover { transform:translateY(-2px); }
html[data-theme="dark"] .back-to-top { background:rgba(21,27,36,.94); color:#f7f8fb; border-color:#303846; }

/* Sharper hierarchy without making the page louder. */
.news-card { transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.news-card:hover { transform:translateY(-1px); }
.lead-story, .utility-card, .sidebar-card { border-color:rgba(17,24,39,.09) !important; }
.currency-rates strong, .shabbat-mobile-line strong, .shabbat-times strong { font-variant-numeric:tabular-nums; }

@media (max-width:700px) {
  /* Three compact utilities on one row: weather / Shabbat / FX. */
  .portal-strip {
    grid-template-columns:minmax(0,.86fr) minmax(0,.82fr) minmax(0,1.12fr) !important;
    border:1px solid rgba(17,24,39,.10);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 7px 22px rgba(31,41,55,.055);
  }
  html[data-theme="dark"] .portal-strip { background:#151b24; border-color:#2b333e; }
  .portal-strip > .utility-card {
    height:70px !important;
    min-height:70px !important;
    border:0 !important;
    border-inline-start:1px solid rgba(17,24,39,.08) !important;
    border-radius:0 !important;
    padding:7px 8px !important;
    background:transparent !important;
  }
  html[data-theme="dark"] .portal-strip > .utility-card { border-inline-start-color:#2b333e !important; }
  .portal-strip > .weather-card { border-inline-start:0 !important; }
  .weather-main strong { font-size:22px !important; }
  .weather-main b { font-size:10px !important; }

  /* Requested: Shabbat entry/exit are stacked vertically so times never collide. */
  .shabbat-card { justify-content:center !important; }
  .shabbat-mobile-line {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-rows:repeat(2, 1fr) !important;
    align-items:center !important;
    justify-content:stretch !important;
    column-gap:6px !important;
    row-gap:3px !important;
    margin-top:4px !important;
    white-space:normal !important;
    line-height:1.05 !important;
  }
  .shabbat-mobile-line i { display:none !important; }
  .shabbat-mobile-line span { font-size:9px !important; white-space:nowrap; }
  .shabbat-mobile-line strong { font-size:14px !important; text-align:left; direction:ltr; }

  .currency-card .utility-head { height:16px !important; min-height:16px !important; }
  .currency-card .utility-label { font-size:9px !important; }
  .currency-rates { margin-top:4px !important; align-items:center !important; }
  .currency-headline { display:flex !important; }
  .currency-badge { width:17px !important; height:17px !important; font-size:10px !important; }
  .currency-card .currency-unit strong { font-size:12px !important; }
  .currency-rates i { height:22px !important; }

  .back-to-top { width:42px; height:42px; border-radius:13px; left:12px; }
}

@media (max-width:390px) {
  .portal-strip { grid-template-columns:minmax(0,.82fr) minmax(0,.82fr) minmax(0,1.16fr) !important; }
  .portal-strip > .utility-card { height:68px !important; min-height:68px !important; padding:6px 6px !important; }
  .weather-main strong { font-size:20px !important; }
  .shabbat-mobile-line span { font-size:8.5px !important; }
  .shabbat-mobile-line strong { font-size:13px !important; }
  .currency-card .currency-unit strong { font-size:11px !important; }
  .currency-badge { width:15px !important; height:15px !important; font-size:9px !important; }
}

@media (max-width:700px) { .currency-card .currency-badge { display:inline-grid !important; } }


/* =========================================================
   HADASHOTA V20 — real-time Home Front Command alert center
   ========================================================= */
.alert-center { margin-top:10px; }
.alert-center-card {
  min-height:62px; display:flex; align-items:center; gap:12px; padding:10px 12px;
  border:1px solid #e1e7ee; border-radius:17px; background:rgba(255,255,255,.94);
  box-shadow:0 8px 24px rgba(31,41,55,.055); transition:.22s ease; overflow:hidden; position:relative;
}
.alert-center-card::before { content:""; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px; background:#12b76a; }
.alert-status-icon { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:12px; background:#ecfdf3; color:#067647; }
.alert-status-icon svg { width:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.alert-center-copy { flex:1; min-width:0; }
.alert-center-eyebrow { display:flex; align-items:center; gap:6px; color:#667085; font-size:9px; font-weight:700; margin-bottom:2px; }
.alert-live-dot { width:7px; height:7px; border-radius:50%; background:#12b76a; box-shadow:0 0 0 4px rgba(18,183,106,.1); }
.alert-center-eyebrow b { color:#344054; font-size:10px; }
.alert-center-eyebrow span:last-child { color:#98a2b3; }
.alert-center-copy > strong { display:block; color:#101828; font-size:14px; line-height:1.25; }
.alert-center-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.alert-sound-quick,.alert-settings-button { height:34px; display:inline-flex; align-items:center; gap:6px; border:1px solid #e1e7ee; background:#fff; color:#475467; border-radius:10px; padding:0 10px; font:inherit; font-size:9.5px; font-weight:800; cursor:pointer; }
.alert-sound-quick svg,.alert-settings-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.alert-sound-quick .sound-on { display:none; }
.alert-sound-quick[aria-pressed="true"] .sound-on { display:block; }
.alert-sound-quick[aria-pressed="true"] .sound-off { display:none; }
.alert-sound-quick[aria-pressed="true"] { border-color:#b7e4ce; background:#f0fdf6; color:#067647; }
.alert-disclaimer { margin:4px 5px 0; color:#98a2b3; font-size:7.5px; line-height:1.4; }
.alert-areas { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px; }
.alert-areas span { padding:3px 7px; border-radius:999px; background:rgba(255,255,255,.17); border:1px solid rgba(255,255,255,.25); color:#fff; font-size:9px; font-weight:800; }

.alert-center-card.alert-active {
  background:linear-gradient(105deg,#b42318 0%,#d92d20 55%,#f04438 100%); border-color:transparent; color:#fff; box-shadow:0 12px 34px rgba(217,45,32,.22);
}
.alert-center-card.alert-active::before { width:6px; background:#fff; opacity:.92; }
.alert-center-card.alert-active .alert-status-icon { background:rgba(255,255,255,.16); color:#fff; animation:alertPulse 1.25s ease-in-out infinite; }
.alert-center-card.alert-active .alert-live-dot { background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.15); animation:alertBlink 1s steps(2,end) infinite; }
.alert-center-card.alert-active .alert-center-eyebrow,.alert-center-card.alert-active .alert-center-eyebrow b,.alert-center-card.alert-active .alert-center-eyebrow span:last-child,.alert-center-card.alert-active .alert-center-copy>strong { color:#fff; }
.alert-center-card.alert-active .alert-center-copy>strong { font-size:17px; font-weight:900; }
.alert-center-card.alert-active .alert-sound-quick,.alert-center-card.alert-active .alert-settings-button { color:#fff; border-color:rgba(255,255,255,.27); background:rgba(255,255,255,.10); }
.alert-center-card.alert-active .alert-sound-quick[aria-pressed="true"] { background:rgba(255,255,255,.18); }
@keyframes alertPulse { 50% { transform:scale(1.08); background:rgba(255,255,255,.23); } }
@keyframes alertBlink { 50% { opacity:.42; } }

.alert-settings-card { max-width:590px !important; }
.alert-settings-heading { display:flex; align-items:center; gap:12px; margin-bottom:5px; }
.alert-settings-heading h2 { margin:2px 0 0 !important; }
.alert-modal-icon { background:#fff1f0 !important; color:#d92d20 !important; }
.alert-settings-intro { margin:8px 0 14px !important; }
.alert-setting-block { border:1px solid #e6eaf0; border-radius:15px; padding:11px 12px; margin-top:9px; background:#fbfcfe; }
.alert-setting-row { display:flex; align-items:center; justify-content:space-between; gap:14px; position:relative; }
.alert-setting-row > span { display:grid; gap:2px; }
.alert-setting-row b { font-size:12px; color:#101828; }
.alert-setting-row small { color:#667085; font-size:9.5px; line-height:1.4; }
.mini-switch { display:flex; align-items:center; gap:6px; cursor:pointer; flex:0 0 auto; }
.mini-switch input,.alert-toggle-list input { position:absolute; opacity:0; pointer-events:none; }
.mini-switch i,.toggle-ui { width:34px; height:20px; border-radius:999px; background:#d0d5dd; position:relative; transition:.18s; flex:0 0 auto; }
.mini-switch i::after,.toggle-ui::after { content:""; width:14px; height:14px; border-radius:50%; background:#fff; position:absolute; top:3px; right:3px; box-shadow:0 1px 3px rgba(16,24,40,.2); transition:.18s; }
.mini-switch input:checked + i,.alert-toggle-list input:checked + .toggle-ui { background:#d92d20; }
.mini-switch input:checked + i::after,.alert-toggle-list input:checked + .toggle-ui::after { transform:translateX(-14px); }
.mini-switch em { font-style:normal; font-size:9px; color:#475467; font-weight:800; }
.alert-city-picker { margin-top:10px; }
.alert-city-picker.disabled { opacity:.46; pointer-events:none; }
.alert-city-input-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.alert-city-input-row input { height:38px; border:1px solid #dfe4eb; border-radius:10px; background:#fff; padding:0 11px; color:#101828; font:inherit; font-size:11px; outline:none; }
.alert-city-input-row input:focus { border-color:#84adff; box-shadow:0 0 0 3px rgba(23,105,255,.10); }
.alert-city-input-row button,.alert-test-button { border:0; border-radius:10px; background:#101828; color:#fff; padding:0 14px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.alert-city-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.alert-city-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:999px; background:#fff1f0; color:#b42318; font-size:9px; font-weight:800; border:1px solid #fecdca; }
.alert-city-chip button { border:0; background:none; padding:0; color:inherit; cursor:pointer; font-weight:900; line-height:1; }
.field-help { display:block; margin-top:7px; color:#98a2b3; font-size:8.5px; line-height:1.45; }
.alert-toggle-list { padding:0; overflow:hidden; }
.alert-toggle-list .alert-setting-row { padding:11px 12px; cursor:pointer; }
.alert-toggle-list .alert-setting-row + .alert-setting-row { border-top:1px solid #e6eaf0; }
.alert-test-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.alert-test-button { height:38px; background:#d92d20; }
.alert-test-row span { color:#667085; font-size:9px; }
.alert-safety-note { margin-top:12px !important; }

html[data-theme="dark"] .alert-center-card { background:#151b24; border-color:#2b333e; }
html[data-theme="dark"] .alert-center-copy>strong,html[data-theme="dark"] .alert-center-eyebrow b { color:#edf1f6; }
html[data-theme="dark"] .alert-sound-quick,html[data-theme="dark"] .alert-settings-button { background:#1b222d; border-color:#303846; color:#b7c0cd; }
html[data-theme="dark"] .alert-setting-block { background:#111720; border-color:#2b333e; }
html[data-theme="dark"] .alert-setting-row b { color:#edf1f6; }
html[data-theme="dark"] .alert-city-input-row input { background:#151b24; border-color:#303846; color:#edf1f6; }
html[data-theme="dark"] .alert-toggle-list .alert-setting-row + .alert-setting-row { border-color:#2b333e; }

@media(max-width:700px){
  .alert-center { margin-top:7px; padding-inline:8px; }
  .alert-center-card { min-height:54px; border-radius:14px; padding:8px 8px; gap:8px; }
  .alert-status-icon { width:31px; height:31px; flex-basis:31px; border-radius:10px; }
  .alert-status-icon svg { width:17px; }
  .alert-center-eyebrow { font-size:8px; gap:4px; }
  .alert-center-eyebrow b { font-size:9px; }
  .alert-center-copy>strong { font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .alert-center-card.alert-active { align-items:flex-start; padding:9px; }
  .alert-center-card.alert-active .alert-center-copy>strong { font-size:14px; white-space:normal; }
  .alert-areas { gap:4px; margin-top:5px; }
  .alert-areas span { font-size:8px; padding:3px 6px; }
  .alert-sound-quick { width:33px; padding:0; justify-content:center; }
  .alert-sound-quick span { display:none; }
  .alert-settings-button { width:33px; padding:0; justify-content:center; }
  .alert-settings-button span { display:none; }
  .alert-disclaimer { display:none; }
  .alert-settings-card { max-height:88vh; overflow:auto; }
  .alert-setting-row { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce){ .alert-center-card.alert-active .alert-status-icon,.alert-center-card.alert-active .alert-live-dot{animation:none!important;} }

.alert-center.has-active-alert { position:sticky; top:73px; z-index:44; }
@media(max-width:700px){ .alert-center.has-active-alert { top:58px; } }


/* =========================================================
   HADASHOTA V21 — final newsroom polish & smarter health UI
   ========================================================= */
@media (min-width: 1101px) {
  .lead-story-label {
    font-size: 16.5px !important;
    line-height: 1.2 !important;
    letter-spacing: .005em !important;
  }
  .lead-story-label i {
    width: 10px !important;
    height: 10px !important;
  }
}

.data-status.is-major {
  border-color:#efd397 !important;
  background:linear-gradient(90deg,#fff8e6,#fffdf7) !important;
  color:#6e531b !important;
  box-shadow:0 6px 18px rgba(111,83,27,.045) !important;
}
html[data-theme="dark"] .data-status.is-major {
  background:linear-gradient(90deg,#211d13,#1a1812) !important;
  border-color:#59471e !important;
  color:#ddc98c !important;
}

/* Slightly cleaner desktop hierarchy without changing mobile density. */
@media (min-width: 901px) {
  .hero-news-grid { margin-top:2px; }
  .lead-story { box-shadow:0 14px 38px rgba(31,41,55,.075) !important; }
  .lead-story-topline { padding-bottom:2px; }
  .lead-story-signal { border-radius:999px !important; }
}


/* =========================================================
   HADASHOTA V22 — live latest-news wire
   ========================================================= */
.hero-news-grid .flash-deck {
  overflow:hidden !important;
}
.hero-news-grid .flash-deck-label {
  position:relative;
  z-index:2;
}
.hero-news-grid .flash-deck-label b {
  display:inline-flex;
  align-items:center;
  gap:7px;
  direction:ltr;
  letter-spacing:.04em;
}
.flash-live-dot {
  width:8px;
  height:8px;
  display:inline-block;
  border-radius:50%;
  background:#ef2c2c;
  box-shadow:0 0 0 4px rgba(239,44,44,.10);
  animation:flashLivePulse 1.7s ease-in-out infinite;
}
@keyframes flashLivePulse { 50% { opacity:.45; box-shadow:0 0 0 7px rgba(239,44,44,0); } }
.hero-news-grid .flash-deck-viewport {
  position:relative;
  flex:1 1 auto;
  min-height:0;
  max-height:326px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#d0d5dd transparent;
  scroll-behavior:smooth;
}
.hero-news-grid .flash-deck-viewport::-webkit-scrollbar { width:5px; }
.hero-news-grid .flash-deck-viewport::-webkit-scrollbar-thumb { background:#d0d5dd; border-radius:999px; }
.hero-news-grid .flash-deck-viewport::after {
  content:"";
  position:sticky;
  display:block;
  pointer-events:none;
  bottom:0;
  height:34px;
  margin-top:-34px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.96));
}
.hero-news-grid .flash-deck-items { display:flex !important; flex-direction:column !important; }
.hero-news-grid .flash-item {
  flex:0 0 auto !important;
  min-height:58px !important;
  padding:10px 14px !important;
}
.hero-news-grid .flash-item:first-child {
  background:linear-gradient(90deg,rgba(239,44,44,.045),transparent 65%);
}
.hero-news-grid .flash-item span {
  font-variant-numeric:tabular-nums;
}
.flash-more-button {
  display:none;
  width:100%;
  min-height:38px;
  border:0;
  border-top:1px solid #edf0f4;
  background:#fafbfc;
  color:#475467;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.flash-more-button:hover { background:#f4f6f8; color:#101828; }
html[data-theme="dark"] .hero-news-grid .flash-deck-viewport { scrollbar-color:#3b4655 transparent; }
html[data-theme="dark"] .hero-news-grid .flash-deck-viewport::after { background:linear-gradient(to bottom,rgba(21,27,36,0),rgba(21,27,36,.97)); }
html[data-theme="dark"] .hero-news-grid .flash-item:first-child { background:linear-gradient(90deg,rgba(239,68,68,.08),transparent 65%); }
html[data-theme="dark"] .flash-more-button { background:#171e27; border-top-color:#29313c; color:#b7c0cd; }
html[data-theme="dark"] .flash-more-button:hover { background:#1c2430; color:#fff; }

@media (max-width:700px) {
  /* On mobile, keep the wire still while the user reads. */
  .hero-news-grid .flash-deck { display:block !important; }
  .hero-news-grid .flash-deck-viewport {
    max-height:292px;
    overflow:hidden;
    scroll-behavior:auto;
  }
  .hero-news-grid .flash-deck-items .flash-item:nth-child(n+6) { display:none !important; }
  .hero-news-grid .flash-deck.flash-expanded .flash-deck-viewport {
    max-height:min(62vh, 540px);
    overflow-y:auto;
  }
  .hero-news-grid .flash-deck.flash-expanded .flash-deck-items .flash-item { display:flex !important; }
  .hero-news-grid .flash-deck-viewport::after { display:none; }
  .flash-more-button:not(.hidden) { display:block; }
  .hero-news-grid .flash-deck-label { min-height:44px !important; padding:0 12px !important; }
  .hero-news-grid .flash-deck-label span { font-size:13px !important; }
  .hero-news-grid .flash-deck-label b { font-size:12px !important; }
  .flash-live-dot { width:7px; height:7px; }
  .hero-news-grid .flash-item { min-height:58px !important; padding:9px 12px !important; }
  .hero-news-grid .flash-item strong { font-size:13.5px !important; line-height:1.35 !important; -webkit-line-clamp:2 !important; }
  .hero-news-grid .flash-item span { font-size:10.5px !important; }
}

@media (prefers-reduced-motion:reduce) {
  .flash-live-dot { animation:none !important; }
  .hero-news-grid .flash-deck-viewport { scroll-behavior:auto !important; }
}


/* =========================================================
   HADASHOTA V23 — featured-story emphasis
   ========================================================= */
.lead-story {
  isolation:isolate;
}
.lead-story::before {
  content:"";
  position:absolute;
  z-index:3;
  top:16px;
  bottom:16px;
  right:0;
  width:4px;
  border-radius:4px 0 0 4px;
  background:linear-gradient(180deg,#ff5a4f 0%,#ef2c2c 48%,#b91c1c 100%);
  box-shadow:0 0 22px rgba(239,44,44,.18);
  pointer-events:none;
}
.lead-story-topline {
  position:relative;
  z-index:4;
}
.lead-story-label {
  gap:8px;
}
.lead-story-label > i {
  position:relative;
  flex:0 0 auto;
  animation:leadLiveBreath 1.7s ease-in-out infinite !important;
}
.lead-story-label > i::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(239,44,44,.28);
  opacity:.55;
  animation:leadLiveRing 1.7s ease-out infinite;
}
.lead-story-label > em {
  display:inline-flex;
  align-items:center;
  min-height:21px;
  padding:2px 7px 1px;
  border-radius:999px;
  background:rgba(239,44,44,.08);
  border:1px solid rgba(239,44,44,.14);
  color:#d92d20;
  font-size:8px;
  line-height:1;
  font-style:normal;
  font-weight:900;
  letter-spacing:.08em;
  direction:ltr;
}
.lead-story-signal {
  position:relative;
  overflow:hidden;
}
.lead-story-signal::before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  margin-inline-end:6px;
  border-radius:50%;
  background:#ef2c2c;
  vertical-align:middle;
}
@keyframes leadLiveBreath {
  0%,100% { transform:scale(1); box-shadow:0 0 0 5px rgba(255,77,61,.10),0 0 0 rgba(239,44,44,0); }
  50% { transform:scale(1.12); box-shadow:0 0 0 7px rgba(255,77,61,.06),0 0 16px rgba(239,44,44,.30); }
}
@keyframes leadLiveRing {
  0% { transform:scale(.7); opacity:.55; }
  75%,100% { transform:scale(1.35); opacity:0; }
}
html[data-theme="dark"] .lead-story::before {
  background:linear-gradient(180deg,#ff6b61 0%,#ef4444 52%,#991b1b 100%);
  box-shadow:0 0 26px rgba(239,68,68,.24);
}
html[data-theme="dark"] .lead-story-label > em {
  background:rgba(239,68,68,.13);
  border-color:rgba(248,113,113,.18);
  color:#fca5a5;
}

@media (min-width:1101px) {
  .lead-story-label > span {
    font-weight:900;
  }
}

@media (max-width:700px) {
  .lead-story::before {
    top:10px;
    bottom:10px;
    width:3px;
  }
  .lead-story-label {
    gap:6px;
    font-size:11px !important;
  }
  .lead-story-label > i {
    width:7px !important;
    height:7px !important;
  }
  .lead-story-label > em {
    min-height:18px;
    padding:2px 5px 1px;
    font-size:7px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .lead-story-label > i,
  .lead-story-label > i::after { animation:none !important; }
}


/* =========================================================
   HADASHOTA V25 — launch audit, lead stability & accessibility
   ========================================================= */
.sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.lead-story-signal { cursor:help; }
@media (min-width:901px) {
  .lead-story-signal {
    max-width:320px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
@media (max-width:700px) {
  .lead-story-signal {
    max-width:48vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .back-to-top {
    bottom:calc(14px + env(safe-area-inset-bottom));
  }
}


/* =========================================================
   HADASHOTA V26 — lead story must never disappear
   ========================================================= */
.lead-story #leadStoryLiveBadge.hidden { display:none !important; }
.lead-story-signal { max-width:100%; white-space:normal; text-align:center; }
@media (min-width:701px) {
  .lead-story-label { font-size:13.5px !important; }
}

/* =========================================================
   HADASHOTA V27 — persistent lead story with image
   ========================================================= */
.lead-story-media.image-unavailable {
  position:relative;
  display:grid !important;
  place-items:center;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,59,48,.16), transparent 38%),
    radial-gradient(circle at 78% 82%, rgba(23,105,255,.14), transparent 42%),
    linear-gradient(135deg,#f7f9fc,#eef2f7);
}
.lead-story-media.image-unavailable img { display:none !important; }
.lead-story-media.image-unavailable::after {
  content:"כותרת פלוס";
  font-size:clamp(18px,2vw,28px);
  font-weight:900;
  letter-spacing:.08em;
  color:#98a2b3;
}
html[data-theme="dark"] .lead-story-media.image-unavailable {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,59,48,.14), transparent 38%),
    radial-gradient(circle at 78% 82%, rgba(23,105,255,.13), transparent 42%),
    linear-gradient(135deg,#151b24,#10151c);
}
html[data-theme="dark"] .lead-story-media.image-unavailable::after { color:#667085; }


/* V29 — utility card head alignment fix: text right, icon left */
.weather-card .utility-head > .city-picker { order: 1 !important; }
.weather-card .utility-head > .locate-button { order: 2 !important; }
.weather-card .utility-head > .utility-icon { order: 3 !important; }
.shabbat-card .utility-head > .utility-label,
.currency-card .utility-head > .utility-label { order: 1 !important; }
.shabbat-card .utility-head > .utility-icon,
.currency-card .utility-head > .utility-icon { order: 2 !important; }


/* V34 — brand slogan + SEO navigation */
.brand-copy small { white-space:nowrap; letter-spacing:0; font-weight:600; }
.footer-seo-links { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.footer-seo-links a { color:inherit; font-weight:700; text-decoration:none; }
.footer-seo-links a:hover { text-decoration:underline; }
@media (max-width:620px) {
  .brand-copy small { display:block !important; font-size:8.5px !important; line-height:1.05; color:#7b8797; }
  .brand-copy { gap:3px !important; }
}
@media (max-width:390px) {
  .brand-copy small { font-size:8.2px !important; }
  .brand-copy strong { font-size:16px !important; }
}
html[data-theme="dark"] .brand-copy small { color:#9aa5b4 !important; }


/* V35 — persistent display preferences */
.settings-save-note { margin:-3px 0 8px; color:#98a2b3; font-size:10px; font-weight:600; }
.settings-reset-button { width:100%; margin-top:10px; border:1px solid rgba(17,24,39,.11); background:transparent; color:#667085; border-radius:10px; padding:8px 10px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.settings-reset-button:hover { background:rgba(17,24,39,.035); color:#344054; }
html[data-theme="dark"] .settings-reset-button { border-color:rgba(255,255,255,.1); color:#aeb7c4; }
html[data-theme="dark"] .settings-reset-button:hover { background:rgba(255,255,255,.045); color:#eef2f7; }
body.hide-feed-images .feed .news-image { display:none !important; }
body.hide-feed-images .feed .news-card.has-image .news-main { grid-template-columns:minmax(0,1fr) auto !important; }
@media (max-width:720px) { body.hide-feed-images .feed .news-card.has-image .news-main { grid-template-columns:minmax(0,1fr) !important; } }


/* V36 — smart headline notification opt-in */
.notification-offer-card {
  width:min(92vw,480px);
  text-align:center;
  padding:28px 28px 24px;
  border-radius:22px;
  overflow:hidden;
}
.notification-offer-card::before {
  content:""; position:absolute; inset:0 0 auto; height:4px;
  background:linear-gradient(90deg,#e82937,#ff5b62);
}
.notification-offer-bell {
  width:56px; height:56px; margin:0 auto 12px; border-radius:18px; display:grid; place-items:center;
  background:rgba(232,41,55,.09); color:#d92735;
}
.notification-offer-bell svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.notification-offer-card .modal-eyebrow { color:#d92735; }
.notification-offer-card h2 { margin:5px auto 10px; max-width:390px; font-size:clamp(21px,3vw,28px); line-height:1.15; }
.notification-offer-card > p { margin:0 auto; max-width:405px; color:#5d6675; font-size:13.5px; line-height:1.72; }
.notification-offer-highlight {
  margin:17px 0 18px; padding:11px 13px; border:1px solid rgba(232,41,55,.11); border-radius:13px;
  background:rgba(232,41,55,.045); display:flex; align-items:flex-start; gap:9px; text-align:right; color:#4b5565; font-size:12px; line-height:1.5;
}
.notification-offer-highlight i { width:8px; height:8px; margin-top:5px; border-radius:50%; background:#e82937; box-shadow:0 0 0 4px rgba(232,41,55,.10); flex:0 0 auto; }
.notification-offer-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.notification-offer-actions button { border:0; border-radius:11px; padding:11px 13px; font:inherit; font-size:12px; font-weight:900; cursor:pointer; transition:transform .15s ease,box-shadow .15s ease,background .15s ease; }
.notification-offer-actions button:active { transform:translateY(1px); }
.notification-offer-accept { background:#e82937; color:#fff; box-shadow:0 8px 22px rgba(232,41,55,.18); }
.notification-offer-accept:hover { background:#d82331; }
.notification-offer-decline { background:#f1f3f6; color:#5b6573; }
.notification-offer-decline:hover { background:#e9edf2; }
.notification-offer-note { display:block; margin-top:11px; color:#98a2b3; font-size:9.5px; font-weight:600; }
html[data-theme="dark"] .notification-offer-bell { background:rgba(255,79,91,.12); color:#ff727c; }
html[data-theme="dark"] .notification-offer-card > p, html[data-theme="dark"] .notification-offer-highlight { color:#b8c0cb; }
html[data-theme="dark"] .notification-offer-highlight { background:rgba(255,79,91,.055); border-color:rgba(255,114,124,.13); }
html[data-theme="dark"] .notification-offer-decline { background:#202731; color:#c6ced8; }
html[data-theme="dark"] .notification-offer-decline:hover { background:#28313d; }
@media (max-width:520px) {
  .notification-offer-card { width:calc(100vw - 28px); padding:24px 18px 20px; border-radius:19px; }
  .notification-offer-bell { width:50px; height:50px; border-radius:16px; margin-bottom:10px; }
  .notification-offer-card h2 { font-size:21px; max-width:310px; }
  .notification-offer-card > p { font-size:12.5px; line-height:1.65; }
  .notification-offer-highlight { font-size:11px; margin:14px 0 15px; }
  .notification-offer-actions { grid-template-columns:1fr; }
  .notification-offer-actions button { min-height:44px; font-size:12.5px; }
  .notification-offer-decline { order:2; }
}

/* V38 — smart PWA / home-screen install experience */
.settings-install-button {
  width:100%; margin-top:10px; border:1px solid rgba(232,41,55,.18); background:rgba(232,41,55,.055);
  color:#cf2633; border-radius:10px; padding:9px 10px; font:inherit; font-size:10px; font-weight:900; cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.settings-install-button:hover { background:rgba(232,41,55,.09); border-color:rgba(232,41,55,.28); }
.settings-install-button:active { transform:translateY(1px); }
.settings-install-button:disabled { cursor:default; opacity:.72; color:#667085; background:rgba(17,24,39,.035); border-color:rgba(17,24,39,.09); }
html[data-theme="dark"] .settings-install-button { color:#ff8b94; background:rgba(255,79,91,.07); border-color:rgba(255,114,124,.16); }
html[data-theme="dark"] .settings-install-button:disabled { color:#9aa5b3; background:#171e27; border-color:#303947; }

.install-offer-card { width:min(92vw,500px); text-align:center; padding:28px 28px 24px; border-radius:22px; overflow:hidden; }
.install-offer-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,#e82937,#ff6a72); }
.install-offer-icon { width:58px; height:58px; margin:0 auto 12px; border-radius:18px; display:grid; place-items:center; background:rgba(232,41,55,.085); color:#d92735; }
.install-offer-icon svg { width:29px; height:29px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.install-offer-card .modal-eyebrow { color:#d92735; }
.install-offer-card h2 { margin:5px auto 10px; max-width:410px; font-size:clamp(21px,3vw,28px); line-height:1.15; }
.install-offer-card > p { margin:0 auto; max-width:420px; color:#5d6675; font-size:13.5px; line-height:1.72; }
.install-instructions { margin:17px 0 18px; padding:11px 13px; border:1px solid rgba(17,24,39,.08); background:#f8fafc; border-radius:14px; text-align:right; display:grid; gap:8px; }
.install-step { display:flex; align-items:flex-start; gap:9px; color:#4f5968; font-size:12px; line-height:1.55; }
.install-step > b { flex:0 0 22px; width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:#fff; color:#d92735; border:1px solid rgba(232,41,55,.12); font-size:10px; }
.install-step span strong { color:#252d38; }
.install-step em { font-style:normal; font-size:17px; vertical-align:-1px; }
.install-offer-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.install-offer-actions button { border:0; border-radius:11px; min-height:42px; padding:11px 13px; font:inherit; font-size:12px; font-weight:900; cursor:pointer; transition:transform .15s ease,background .15s ease,box-shadow .15s ease; }
.install-offer-actions button:active { transform:translateY(1px); }
.install-offer-accept { background:#e82937; color:#fff; box-shadow:0 8px 22px rgba(232,41,55,.18); }
.install-offer-accept:hover { background:#d82331; }
.install-offer-later { background:#f1f3f6; color:#5b6573; }
.install-offer-later:hover { background:#e9edf2; }
.install-offer-note { display:block; margin-top:11px; color:#98a2b3; font-size:9.5px; font-weight:600; }
html[data-theme="dark"] .install-offer-icon { background:rgba(255,79,91,.12); color:#ff727c; }
html[data-theme="dark"] .install-offer-card > p { color:#b8c0cb; }
html[data-theme="dark"] .install-instructions { background:#10161e; border-color:#2c3541; }
html[data-theme="dark"] .install-step { color:#b8c0cb; }
html[data-theme="dark"] .install-step > b { background:#171e27; border-color:rgba(255,114,124,.15); color:#ff818a; }
html[data-theme="dark"] .install-step span strong { color:#eef2f6; }
html[data-theme="dark"] .install-offer-later { background:#202731; color:#c6ced8; }
html[data-theme="dark"] .install-offer-later:hover { background:#28313d; }
@media (max-width:520px) {
  .install-offer-card { width:calc(100vw - 28px); padding:24px 18px 20px; border-radius:19px; }
  .install-offer-icon { width:50px; height:50px; border-radius:16px; margin-bottom:10px; }
  .install-offer-card h2 { font-size:21px; max-width:320px; }
  .install-offer-card > p { font-size:12.5px; line-height:1.65; }
  .install-instructions { margin:14px 0 15px; padding:10px 11px; }
  .install-step { font-size:11.5px; }
  .install-offer-actions { grid-template-columns:1fr; }
  .install-offer-actions button { min-height:44px; font-size:12.5px; }
  .install-offer-later { order:2; }
}


/* V38 — Hadashota Intelligence */
.intelligence-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 14px;padding:12px 14px;border:1px solid var(--border,#e7e9ee);border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,249,252,.98));box-shadow:0 8px 25px rgba(16,24,40,.05)}
.hot-now-pill{display:flex;align-items:center;gap:8px;min-width:0}.hot-now-pill i{width:9px;height:9px;border-radius:50%;background:#ef233c;box-shadow:0 0 0 5px rgba(239,35,60,.1);animation:pulseHot 1.8s infinite}.hot-now-pill strong{font-size:13px}.hot-now-pill small{font-size:10px;color:#7b8494}.intelligence-actions{display:flex;gap:8px}.intelligence-actions button{border:1px solid #dfe3ea;background:#fff;border-radius:11px;padding:8px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.intelligence-actions button.active{background:#111827;color:#fff;border-color:#111827}.intelligence-actions #quickBriefBtn{background:#e9002b;color:#fff;border-color:#e9002b}
.since-visit{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0;padding:8px 12px;border-radius:11px;background:#f0f7ff;color:#175cd3;font-size:11px;border:1px solid #d6e8ff}.since-visit span{font-size:15px}.since-visit.hidden{display:none}
.lead-intelligence{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.lead-intelligence span{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f6f7f9;border:1px solid #e5e7eb;color:#344054}.lead-intelligence span:first-child{color:#b42318;background:#fff4f2;border-color:#ffd6d2}
.lead-timeline-details{margin-top:10px;border-top:1px solid #edf0f3;padding-top:8px}.lead-timeline-details.hidden{display:none}.lead-timeline-details summary{cursor:pointer;font-size:11px;font-weight:800;color:#475467;list-style:none}.lead-timeline{display:grid;gap:6px;margin-top:8px}.lead-timeline a{display:grid;grid-template-columns:42px 95px 1fr;gap:7px;align-items:center;text-decoration:none;color:inherit;padding:6px 8px;background:#fafbfc;border-radius:9px}.lead-timeline time{font-size:10px;color:#667085}.lead-timeline span{font-size:10px;font-weight:800;color:#344054;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lead-timeline b{font-size:10px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-badge,.verification-badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 6px;font-size:9px!important;font-weight:800!important}.hot-badge{background:#fff3f0;color:#c4320a}.hot-badge.hot-very{background:#fee4e2;color:#b42318}.verification-badge{background:#ecfdf3;color:#027a48}.story-timeline-mini .related-link{display:grid;grid-template-columns:42px 90px 1fr;align-items:center;gap:6px}.story-timeline-mini .related-link b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-timeline-mini time{font-size:10px;color:#667085}
.source-health{display:block;font-style:normal;font-size:9px;margin-top:2px;color:#667085}.source-health.health-healthy{color:#027a48}.source-health.health-degraded{color:#b54708}.source-health.health-offline{color:#b42318}.source-state.degraded{background:#f79009!important}.source-state.offline{background:#f04438!important}
.quick-brief-card{max-width:680px}.quick-brief-list{display:grid;gap:8px;margin-top:14px}.brief-story{display:flex;align-items:flex-start;gap:10px;text-decoration:none;color:inherit;border:1px solid #e9ecf1;border-radius:13px;padding:10px;background:#fff}.brief-story em{display:grid;place-items:center;min-width:25px;height:25px;border-radius:8px;background:#111827;color:#fff;font-style:normal;font-weight:900;font-size:11px}.brief-story div{display:grid;gap:4px}.brief-story b{font-size:13px;line-height:1.35}.brief-story small{color:#667085;font-size:10px}
@keyframes pulseHot{50%{box-shadow:0 0 0 8px rgba(239,35,60,0)}}
html[data-theme="dark"] .intelligence-bar,html[data-theme="dark"] .brief-story{background:#111720;border-color:#2b3442}html[data-theme="dark"] .intelligence-actions button{background:#171e28;color:#e5e7eb;border-color:#303947}html[data-theme="dark"] .lead-intelligence span,html[data-theme="dark"] .lead-timeline a{background:#171e28;border-color:#303947;color:#d0d5dd}html[data-theme="dark"] .since-visit{background:#10223b;border-color:#1d3c66;color:#84adff}
@media(max-width:700px){.intelligence-bar{align-items:stretch;flex-direction:column;padding:10px 11px}.hot-now-pill{display:grid;grid-template-columns:auto 1fr}.hot-now-pill small{grid-column:2}.intelligence-actions{display:grid;grid-template-columns:1fr 1.35fr}.intelligence-actions button{padding:9px 7px;font-size:10px}.lead-timeline a{grid-template-columns:38px 72px 1fr}.story-timeline-mini .related-link{grid-template-columns:38px 72px 1fr}.brief-story b{font-size:12px}}
.hot-now-pill{border:0;background:transparent;text-align:right;font:inherit;color:inherit;cursor:pointer;padding:0}.hot-now-pill.active strong{color:#d92d20}.hot-now-pill:focus-visible{outline:2px solid #175cd3;outline-offset:5px;border-radius:8px}


/* V39 — licensed/open-media presentation */
.safe-news-image { position:relative; overflow:hidden; background:linear-gradient(135deg,#eef2f7,#dce5ef); }
.safe-media-slot { display:block; width:100%; height:100%; min-height:110px; background:linear-gradient(135deg,rgba(17,24,39,.04),rgba(239,68,68,.08)); }
.safe-media-slot::after { content:"כותרת פלוס"; position:absolute; inset:0; display:grid; place-items:center; font-weight:900; font-size:18px; color:rgba(17,24,39,.18); letter-spacing:.04em; }
.lead-story-media[data-media-credit]::after { content:attr(data-media-credit); position:absolute; left:8px; bottom:7px; max-width:75%; padding:3px 7px; border-radius:7px; background:rgba(0,0,0,.58); color:#fff; font-size:9px; line-height:1.2; z-index:3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-theme="dark"] .safe-news-image { background:linear-gradient(135deg,#161c25,#222b38); }
html[data-theme="dark"] .safe-media-slot::after { color:rgba(255,255,255,.2); }


/* V40 — licensed media coverage + visible attribution */
.lead-story-media,.safe-news-image{position:relative}
.media-credit{position:absolute;left:5px;bottom:5px;z-index:4;max-width:82%;padding:2px 5px;border-radius:5px;background:rgba(0,0,0,.58);color:#fff;font-size:7.5px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.lead-story-media[data-media-credit]::after{content:attr(data-media-credit);position:absolute;left:7px;bottom:6px;z-index:4;max-width:82%;padding:3px 6px;border-radius:6px;background:rgba(0,0,0,.62);color:#fff;font-size:8px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
@media(max-width:700px){.media-credit{font-size:6.5px;max-width:88%;padding:2px 4px}.lead-story-media[data-media-credit]::after{font-size:7px;max-width:88%}}


/* V42 — relevance-first licensed media */
.safe-media-slot.contextual-media-fallback{
  position:relative;display:grid;place-items:end start;min-height:100%;padding:10px;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.26),transparent 28%),
    linear-gradient(135deg,#1d2939 0%,#344054 48%,#b42318 145%);
  color:#fff;overflow:hidden;
}
.safe-media-slot.contextual-media-fallback::before{
  content:attr(data-fallback-label);position:relative;z-index:2;font-size:12px;font-weight:900;line-height:1.2;
  max-width:90%;text-shadow:0 1px 5px rgba(0,0,0,.32);
}
.safe-media-slot.contextual-media-fallback::after{
  content:"כותרת פלוס";position:absolute;inset:auto 10px 9px auto;font-size:9px;font-weight:800;color:rgba(255,255,255,.58);
}
.lead-story-media.contextual-fallback::before{
  content:attr(data-fallback-label);position:absolute;inset:0;display:grid;place-items:center;z-index:2;
  padding:28px;text-align:center;color:#fff;font-size:clamp(23px,3vw,40px);font-weight:900;line-height:1.05;
  text-shadow:0 2px 10px rgba(0,0,0,.28);
  background:radial-gradient(circle at 78% 22%,rgba(255,255,255,.18),transparent 26%),linear-gradient(135deg,#111827,#344054 55%,#b42318 150%);
}
.lead-story-media.contextual-fallback::after{display:none!important}

/* V42 — rebuilt 30-second briefing modal */
.quick-brief-card{width:min(760px,100%);max-height:min(780px,calc(100dvh - 32px));padding:28px 28px 20px;overflow:auto;background:#fff!important;color:#101828!important;box-shadow:0 30px 100px rgba(15,23,42,.32)!important}
.quick-brief-card>p{margin:6px 46px 0 0;color:#667085;font-size:12px;line-height:1.55}
.quick-brief-list{display:grid;gap:10px;margin-top:18px}
.brief-story-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e4e7ec;border-radius:16px;padding:13px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.035)}
.brief-rank{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#101828;color:#fff;font-size:13px;font-weight:900}
.brief-copy{min-width:0}.brief-copy h3{margin:0;font-size:14px;line-height:1.4;color:#101828}.brief-copy p{margin:6px 0 0;font-size:10px;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.brief-meta span{display:inline-flex;padding:3px 6px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:800}.brief-meta .brief-verify{background:#ecfdf3;color:#027a48}.brief-meta .brief-heat{background:#fff1f0;color:#b42318}
.brief-source-btn{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:8px 10px;border-radius:10px;background:#f9fafb;border:1px solid #d0d5dd;color:#344054;text-decoration:none;font-size:10px;font-weight:900}.brief-source-btn:hover{background:#f2f4f7}
.quick-brief-footer{display:flex;justify-content:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid #eaecf0}.quick-brief-close-btn{border:0;border-radius:11px;background:#101828;color:#fff;padding:10px 22px;font:inherit;font-size:11px;font-weight:900;cursor:pointer}
html[data-theme="dark"] .quick-brief-card{background:#111720!important;color:#f2f4f7!important;border-color:#303947}.dark .quick-brief-card>p,html[data-theme="dark"] .quick-brief-card>p{color:#98a2b3}.dark .brief-story-card,html[data-theme="dark"] .brief-story-card{background:#171e28;border-color:#303947}.dark .brief-copy h3,html[data-theme="dark"] .brief-copy h3{color:#f2f4f7}.dark .brief-meta span,html[data-theme="dark"] .brief-meta span{background:#252d39;color:#cbd5e1}.dark .brief-source-btn,html[data-theme="dark"] .brief-source-btn{background:#202834;border-color:#3b4655;color:#e5e7eb}
@media(max-width:700px){
  .site-modal{padding:10px!important;align-items:end!important}
  .quick-brief-card{width:100%;max-height:88dvh;border-radius:22px 22px 16px 16px!important;padding:23px 15px 14px!important}
  .quick-brief-card>p{margin-right:0;padding-left:36px;font-size:11px}
  .brief-story-card{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:11px}.brief-rank{width:30px;height:30px;border-radius:9px}.brief-copy h3{font-size:12.5px}
  .brief-source-btn{grid-column:2;justify-self:start;min-width:0;padding:6px 9px}.quick-brief-footer{position:sticky;bottom:-14px;background:inherit;padding-bottom:2px}.quick-brief-close-btn{width:100%;padding:11px}
}


/* V44 — more authentic imagery + balanced main-story layout */
.lead-story { padding: 24px 24px 22px !important; border-radius: 24px !important; }
.lead-story-topline { margin-bottom: 14px !important; }
.lead-story.has-media .lead-story-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr) !important;
  grid-template-areas:
    "copy media"
    "cta  media" !important;
  align-items: stretch !important;
  gap: 22px !important;
}
.lead-story-copy { grid-area: copy !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; min-width: 0 !important; }
.lead-story-media { grid-area: media !important; min-height: 265px !important; height: 100% !important; max-height: none !important; border-radius: 20px !important; overflow: hidden !important; }
.lead-story-media img { width: 100% !important; height: 100% !important; min-height: 265px !important; object-fit: cover !important; }
.lead-story h2, .lead-story h2 a { font-size: clamp(31px, 3vw, 48px) !important; line-height: 1.13 !important; }
.lead-story-copy > p { margin: 12px 0 16px !important; max-width: none !important; }
.lead-story-sources { margin-top: 14px !important; }
.lead-story-cta { grid-area: cta !important; justify-self: start !important; align-self: end !important; margin-top: 4px !important; }
.news-preview { color: #586272 !important; }
html[data-theme="dark"] .news-preview { color: #a1acba !important; }
@media (max-width: 1100px) {
  .lead-story.has-media .lead-story-body {
    grid-template-columns: minmax(0, 1fr) 290px !important;
    gap: 18px !important;
  }
  .lead-story h2, .lead-story h2 a { font-size: 29px !important; }
}
@media (max-width: 860px) {
  .lead-story.has-media .lead-story-body {
    grid-template-columns: 1fr !important;
    grid-template-areas: "media" "copy" "cta" !important;
  }
  .lead-story-media { min-height: 210px !important; }
  .lead-story-media img { min-height: 210px !important; }
  .lead-story-cta { width: 100% !important; justify-content: center !important; }
}


/* V45 — newsroom polish for main story symmetry */
.lead-story {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.96)) !important;
}
html[data-theme="dark"] .lead-story {
  background: linear-gradient(180deg, rgba(20,25,34,.94), rgba(17,23,32,.97)) !important;
}
.lead-story.has-media .lead-story-body {
  grid-template-columns: minmax(270px, 33.5%) minmax(0, 66.5%) !important;
  grid-template-areas: "media copy" "media cta" !important;
  gap: 24px !important;
}
.lead-story-media {
  min-height: 245px !important;
  max-height: 450px !important;
  aspect-ratio: 4 / 4.6 !important;
  align-self: start !important;
}
.lead-story-media img {
  min-height: 245px !important;
  aspect-ratio: 4 / 4.6 !important;
}
.lead-story h2, .lead-story h2 a {
  font-size: clamp(28px, 2.55vw, 42px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  max-width: 13.5ch !important;
}
.lead-story-copy {
  justify-content: center !important;
}
.lead-story-copy > p {
  font-size: 16px !important;
  line-height: 1.55 !important;
  margin: 10px 0 14px !important;
  max-width: 68ch !important;
}
.lead-story .source-name,
.lead-story .cluster-badge,
.lead-story .hot-badge,
.lead-story .verification-badge { font-size: 12px !important; }
.lead-story-sources { gap: 8px !important; }
.lead-story-cta .button-primary { padding: 12px 18px !important; font-size: 15px !important; }
.lead-story-media::after { font-size: 11px !important; padding: 6px 10px !important; }
@media (max-width: 1180px) {
  .lead-story.has-media .lead-story-body { grid-template-columns: 300px minmax(0,1fr) !important; }
  .lead-story h2, .lead-story h2 a { font-size: 34px !important; max-width: none !important; }
}
@media (max-width: 860px) {
  .lead-story.has-media .lead-story-body {
    grid-template-columns: 1fr !important;
    grid-template-areas: "media" "copy" "cta" !important;
  }
  .lead-story-media { max-height: 290px !important; aspect-ratio: 16 / 10 !important; }
  .lead-story-media img { aspect-ratio: 16 / 10 !important; }
  .lead-story h2, .lead-story h2 a { font-size: 32px !important; max-width: none !important; }
}


/* V46 — symmetric hero / square lead image */
@media (min-width: 901px) {
  .hero-news-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }
  .hero-news-grid .flash-deck,
  .hero-news-grid .lead-story {
    height: 100% !important;
    min-height: 100% !important;
  }
  .hero-news-grid .flash-deck {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-news-grid .flash-deck-items {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
  }
  .hero-news-grid .lead-story {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-news-grid .lead-story.has-media .lead-story-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-areas:
      "media copy"
      "media cta" !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  .hero-news-grid .lead-story-copy {
    grid-area: copy !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
  .hero-news-grid .lead-story-media {
    grid-area: media !important;
    width: 280px !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    aspect-ratio: 1 / 1 !important;
    align-self: start !important;
    margin: 0 !important;
  }
  .hero-news-grid .lead-story-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px !important;
    max-height: 280px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
  .hero-news-grid .lead-story h2,
  .hero-news-grid .lead-story h2 a {
    max-width: none !important;
    font-size: clamp(30px, 2.45vw, 40px) !important;
    line-height: 1.1 !important;
  }
  .hero-news-grid .lead-story-copy > p {
    margin: 10px 0 12px !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
  }
  .hero-news-grid .lead-story-sources {
    max-height: 62px !important;
    overflow: hidden !important;
  }
  .hero-news-grid .lead-story-cta {
    grid-area: cta !important;
    align-self: end !important;
    justify-self: start !important;
    margin-top: auto !important;
  }
}


/* ==========================================================
   HADASHOTA V51 — final visual polish
   ========================================================== */

@media (min-width: 901px) {
  .hero-news-grid {
    align-items: stretch !important;
    gap: 16px !important;
    min-height: 430px !important;
    height: 430px !important;
  }

  .hero-news-grid > .lead-story,
  .hero-news-grid > .flash-deck {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-news-grid > .lead-story {
    padding: 20px 22px 18px !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-story-topline {
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
  }

  .hero-news-grid .lead-story.has-media .lead-story-body,
  .hero-news-grid .lead-story-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 238px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "media copy"
      "media cta" !important;
    column-gap: 22px !important;
    row-gap: 8px !important;
    align-items: stretch !important;
  }

  .hero-news-grid .lead-story-media {
    grid-area: media !important;
    width: 238px !important;
    height: 238px !important;
    min-width: 238px !important;
    min-height: 238px !important;
    max-width: 238px !important;
    max-height: 238px !important;
    aspect-ratio: 1 / 1 !important;
    align-self: start !important;
    border-radius: 18px !important;
  }

  .hero-news-grid .lead-story-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 238px !important;
    max-height: 238px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .hero-news-grid .lead-story-copy {
    grid-area: copy !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-story h2 {
    margin: 0 !important;
  }

  .hero-news-grid .lead-story h2,
  .hero-news-grid .lead-story h2 a {
    max-width: none !important;
    font-size: 36px !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
  }

  .hero-news-grid .lead-story[data-title-size="medium"] h2,
  .hero-news-grid .lead-story[data-title-size="medium"] h2 a {
    font-size: 32px !important;
  }

  .hero-news-grid .lead-story[data-title-size="long"] h2,
  .hero-news-grid .lead-story[data-title-size="long"] h2 a {
    font-size: 29px !important;
  }

  .hero-news-grid .lead-story h2 a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-story-copy > p {
    margin: 8px 0 9px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-story-meta {
    flex: 0 0 auto !important;
    font-size: 11.5px !important;
    gap: 6px !important;
  }

  .hero-news-grid .lead-story-sources {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 9px !important;
    max-height: 31px !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-story-sources a,
  .hero-news-grid .lead-story-sources span {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    padding: 5px 8px !important;
  }

  .hero-news-grid .lead-intelligence {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 8px !important;
    max-height: 30px !important;
    overflow: hidden !important;
  }

  .hero-news-grid .lead-intelligence span {
    white-space: nowrap !important;
    font-size: 9.5px !important;
    padding: 4px 7px !important;
  }

  .hero-news-grid .lead-timeline-details {
    flex: 0 0 auto !important;
    margin-top: 7px !important;
    padding-top: 6px !important;
  }

  .hero-news-grid .lead-timeline-details summary {
    font-size: 10.5px !important;
  }

  .hero-news-grid .lead-story-cta {
    grid-area: cta !important;
    position: relative !important;
    display: inline-flex !important;
    align-self: end !important;
    justify-self: start !important;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    z-index: 5 !important;
  }

  .hero-news-grid > .flash-deck {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .hero-news-grid .flash-deck-label {
    flex: 0 0 55px !important;
    min-height: 55px !important;
  }

  .hero-news-grid .flash-deck-viewport {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .hero-news-grid .flash-more-button {
    flex: 0 0 auto !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-news-grid {
    height: 410px !important;
    min-height: 410px !important;
  }

  .hero-news-grid > .lead-story,
  .hero-news-grid > .flash-deck {
    height: 410px !important;
    min-height: 410px !important;
    max-height: 410px !important;
  }

  .hero-news-grid .lead-story.has-media .lead-story-body,
  .hero-news-grid .lead-story-body {
    grid-template-columns: 210px minmax(0, 1fr) !important;
    column-gap: 17px !important;
  }

  .hero-news-grid .lead-story-media,
  .hero-news-grid .lead-story-media img {
    width: 210px !important;
    height: 210px !important;
    min-width: 210px !important;
    min-height: 210px !important;
    max-width: 210px !important;
    max-height: 210px !important;
  }

  .hero-news-grid .lead-story h2,
  .hero-news-grid .lead-story h2 a {
    font-size: 30px !important;
  }

  .hero-news-grid .lead-story[data-title-size="medium"] h2,
  .hero-news-grid .lead-story[data-title-size="medium"] h2 a {
    font-size: 27px !important;
  }

  .hero-news-grid .lead-story[data-title-size="long"] h2,
  .hero-news-grid .lead-story[data-title-size="long"] h2 a {
    font-size: 24.5px !important;
  }
}

@media (max-width: 900px) {
  .hero-news-grid {
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-news-grid > .lead-story {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .hero-news-grid .lead-story-media {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Cross-site visual consistency */
.control-panel,
.intelligence-bar,
.breaking-banner,
.trending-strip,
.data-status,
.sidebar-card,
.utility-card,
.flash-deck,
.lead-story {
  box-sizing: border-box !important;
}

.control-panel,
.intelligence-bar {
  border-radius: 18px !important;
}

.intelligence-actions button,
.control-panel button,
.flash-more-button,
.quick-brief-close-btn {
  min-height: 38px;
}

.footer a,
.utility-credit,
.source-row,
.news-title a,
.lead-story-sources a {
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .intelligence-bar,
  .control-panel {
    border-radius: 16px !important;
  }

  .intelligence-actions {
    gap: 7px !important;
  }

  .intelligence-actions button {
    min-height: 42px !important;
  }
}


/* V55 — quick brief modal polish */
.quick-brief-card{
  width:min(700px,100%)!important;
  max-height:min(650px,calc(100dvh - 40px))!important;
  padding:24px 24px 16px!important;
  overflow:hidden!important;
}
.quick-brief-card>p{
  margin:4px 44px 0 0!important;
  font-size:11.5px!important;
  line-height:1.45!important;
}
.quick-brief-list{
  gap:8px!important;
  margin-top:14px!important;
}
.brief-story-card{
  grid-template-columns:32px minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:11px 12px!important;
  border-radius:14px!important;
}
.brief-rank{
  width:32px!important;
  height:32px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
.brief-copy h3{
  font-size:13px!important;
  line-height:1.33!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
.brief-copy p{
  margin:4px 0 0!important;
  font-size:9.5px!important;
}
.brief-meta{
  gap:4px!important;
  margin-top:6px!important;
}
.brief-meta span{
  padding:3px 6px!important;
  font-size:8.5px!important;
}
.brief-source-btn{
  min-width:66px!important;
  padding:7px 9px!important;
  font-size:9.5px!important;
}
.quick-brief-footer{
  justify-content:flex-end!important; /* left side in RTL */
  margin-top:12px!important;
  padding-top:12px!important;
}
.quick-brief-close-btn{
  min-width:88px!important;
  padding:9px 18px!important;
  font-size:10.5px!important;
}

@media (max-width:700px){
  .quick-brief-card{
    width:100%!important;
    max-height:min(92dvh,680px)!important;
    padding:20px 14px 12px!important;
    overflow:hidden!important;
  }
  .quick-brief-card>p{
    margin-right:0!important;
    padding-left:34px!important;
    font-size:10.5px!important;
  }
  .quick-brief-list{
    gap:7px!important;
    margin-top:12px!important;
  }
  .brief-story-card{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:8px!important;
    padding:10px!important;
  }
  .brief-rank{
    width:28px!important;
    height:28px!important;
    font-size:11px!important;
  }
  .brief-copy h3{
    font-size:12px!important;
  }
  .brief-meta{
    margin-top:5px!important;
  }
  .brief-meta span{
    font-size:8px!important;
    padding:3px 5px!important;
  }
  .brief-copy p{
    font-size:9px!important;
  }
  .brief-source-btn{
    grid-column:2!important;
    justify-self:start!important;
    min-width:60px!important;
    padding:6px 8px!important;
    font-size:9px!important;
  }
  .quick-brief-footer{
    position:static!important;
    justify-content:flex-end!important;
    margin-top:10px!important;
    padding-top:10px!important;
  }
  .quick-brief-close-btn{
    width:auto!important;
    min-width:82px!important;
    padding:9px 16px!important;
  }
}


/* V56 — quick brief modal fit + stronger backdrop */
.site-modal-backdrop{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  background:rgba(15,23,42,.54)!important;
  backdrop-filter:blur(10px) saturate(90%)!important;
  -webkit-backdrop-filter:blur(10px) saturate(90%)!important;
}

.quick-brief-card{
  width:min(690px,100%)!important;
  max-height:min(640px,calc(100dvh - 44px))!important;
  padding:22px 22px 18px!important;
  overflow:hidden!important;
}
.quick-brief-card>p{
  margin:4px 44px 0 0!important;
  font-size:11px!important;
  line-height:1.4!important;
}
.quick-brief-list{
  gap:7px!important;
  margin-top:12px!important;
}
.brief-story-card{
  grid-template-columns:30px minmax(0,1fr) auto!important;
  gap:9px!important;
  padding:10px 11px!important;
  border-radius:14px!important;
}
.brief-rank{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  font-size:11px!important;
}
.brief-copy h3{
  font-size:12.5px!important;
  line-height:1.3!important;
}
.brief-copy p{
  margin:3px 0 0!important;
  font-size:9px!important;
}
.brief-meta{
  gap:4px!important;
  margin-top:5px!important;
}
.brief-meta span{
  padding:2px 6px!important;
  font-size:8px!important;
}
.brief-source-btn{
  min-width:62px!important;
  padding:6px 9px!important;
  font-size:9px!important;
}
.quick-brief-footer{
  justify-content:flex-end!important;
  margin-top:10px!important;
  padding:10px 4px 4px 8px!important;
  border-top:1px solid #eaecf0!important;
}
.quick-brief-close-btn{
  min-width:86px!important;
  padding:8px 16px!important;
  font-size:10px!important;
  margin-left:4px!important;
  box-shadow:0 2px 8px rgba(15,23,42,.08)!important;
}

@media (max-width:700px){
  .site-modal{padding:8px!important;align-items:end!important}
  .site-modal-backdrop{background:rgba(15,23,42,.58)!important}
  .quick-brief-card{
    width:100%!important;
    max-height:min(90dvh,650px)!important;
    padding:18px 13px 12px!important;
    border-radius:22px 22px 16px 16px!important;
  }
  .quick-brief-card>p{
    margin-right:0!important;
    padding-left:34px!important;
    font-size:10px!important;
  }
  .quick-brief-list{
    gap:6px!important;
    margin-top:10px!important;
  }
  .brief-story-card{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:8px!important;
    padding:9px!important;
  }
  .brief-rank{width:28px!important;height:28px!important;font-size:10px!important}
  .brief-copy h3{font-size:11.5px!important}
  .brief-meta{gap:3px!important;margin-top:4px!important}
  .brief-meta span{font-size:7.6px!important;padding:2px 5px!important}
  .brief-copy p{font-size:8.5px!important}
  .brief-source-btn{grid-column:2!important;justify-self:start!important;min-width:58px!important;padding:5px 8px!important;font-size:8.8px!important}
  .quick-brief-footer{position:static!important;justify-content:flex-end!important;padding:9px 2px 2px 6px!important;margin-top:8px!important}
  .quick-brief-close-btn{width:auto!important;min-width:80px!important;padding:8px 14px!important;margin-left:2px!important}
}


/* V57 — About modal information architecture */
.about-modal-card{width:min(760px,100%)!important;max-height:min(820px,calc(100dvh - 38px))!important;padding:27px!important}
.about-modal-card h2{margin-bottom:10px!important}
.about-modal-card .about-lead{font-size:14px!important;line-height:1.65!important;margin-bottom:15px!important}
.about-process{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0}
.about-process>div{display:flex;gap:8px;align-items:flex-start;padding:11px;border:1px solid #e6eaf0;background:#fafbfc;border-radius:13px}
.about-process>div>b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:8px;background:#101828;color:#fff;font-size:9px}
.about-process span{display:grid;gap:2px}.about-process strong{font-size:11px;color:#101828}.about-process small{font-size:9px;line-height:1.45;color:#7a8493}
.about-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0}
.about-feature-grid>div{display:grid;gap:3px;padding:11px;border:1px solid #e6eaf0;border-radius:13px;background:#fff}
.about-feature-grid>div>span{font-size:17px}.about-feature-grid b{font-size:10.5px;color:#101828}.about-feature-grid small{font-size:8.8px;line-height:1.4;color:#7a8493}
.about-note{margin-top:12px!important}.about-more-link{display:inline-flex;margin-top:11px;color:#1769ff;text-decoration:none;font-weight:900;font-size:11px}
html[data-theme="dark"] .about-process>div,html[data-theme="dark"] .about-feature-grid>div{background:#171e28;border-color:#303947}
html[data-theme="dark"] .about-process strong,html[data-theme="dark"] .about-feature-grid b{color:#f2f4f7}
@media(max-width:700px){
  .about-modal-card{padding:22px 14px 15px!important;max-height:91dvh!important}
  .about-modal-card h2{font-size:24px!important}
  .about-process,.about-feature-grid{grid-template-columns:1fr 1fr;gap:6px}
  .about-feature-grid>div{padding:9px}
}


/* ==========================================================
   HADASHOTA V58 — Smart newsroom expansion
   ========================================================== */
.intelligence-bar{gap:12px!important}
.smart-now-status{display:grid;gap:2px;min-width:210px;padding:8px 12px;border:1px solid #e1e6ed;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.025)}
.smart-now-status>span{font-size:9px;font-weight:900;color:#e02f3b}.smart-now-status>strong{font-size:10.5px;color:#596579;white-space:nowrap}.smart-now-status b{color:#111827;font-size:12px}
html[data-theme="dark"] .smart-now-status{background:#171e28;border-color:#303947}html[data-theme="dark"] .smart-now-status>strong{color:#aab4c1}html[data-theme="dark"] .smart-now-status b{color:#f2f4f7}
.lead-why-button{border:1px solid #dfe4eb;background:#fff;color:#475467;border-radius:999px;padding:4px 8px;font:inherit;font-size:9.5px;font-weight:900;cursor:pointer;white-space:nowrap}.lead-why-button:hover{border-color:#bbc4d0;color:#101828}html[data-theme="dark"] .lead-why-button{background:#171e28;border-color:#303947;color:#d0d5dd}
.lead-changes{margin-top:8px;border-top:1px solid #edf0f4;padding-top:8px;max-width:100%}.lead-changes-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.lead-changes-head strong{font-size:10.5px;color:#344054}.lead-changes-head span{font-size:8.5px;color:#98a2b3}.lead-changes-list{display:grid;gap:4px}
.lead-changes-list>a,.lead-changes-list>div{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:7px;align-items:center;color:inherit;text-decoration:none;border-radius:9px;padding:4px 6px;background:#fafbfc}.lead-changes-list time{font-size:8.5px;color:#e02f3b;font-weight:900}.lead-changes-list span{font-size:9.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lead-changes-list small{font-size:8px;color:#98a2b3;white-space:nowrap}
html[data-theme="dark"] .lead-changes{border-color:#303947}html[data-theme="dark"] .lead-changes-list>a,html[data-theme="dark"] .lead-changes-list>div{background:#171e28}
.smart-explain-card{width:min(570px,100%)!important}.why-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.why-metrics>div{display:grid;gap:4px;padding:12px;border:1px solid #e5e9ef;border-radius:13px;background:#fafbfc}.why-metrics span{font-size:9px;color:#7a8493}.why-metrics strong{font-size:16px;color:#101828}.why-explanation{padding:14px;border-radius:14px;background:#f7f9fc;border:1px solid #e4e8ef}.why-explanation>strong{font-size:12px}.why-explanation ul{margin:8px 0 0;padding-right:18px;color:#596579;font-size:11.5px;line-height:1.65}.why-note{display:block;margin-top:11px;color:#98a2b3;font-size:9.5px;line-height:1.5}
html[data-theme="dark"] .why-metrics>div,html[data-theme="dark"] .why-explanation{background:#171e28;border-color:#303947}html[data-theme="dark"] .why-metrics strong{color:#f2f4f7}
.near-you-card{width:min(720px,100%)!important;max-height:min(760px,calc(100dvh - 38px))!important}.near-you-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.near-you-panel{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid #e4e8ef;border-radius:14px;background:#fafbfc}.near-you-panel>span{font-size:19px}.near-you-panel div{min-width:0}.near-you-panel b{font-size:11px}.near-you-panel p{font-size:9.5px!important;line-height:1.45!important;margin:4px 0 0!important;color:#667085!important}.near-you-panel a{display:inline-flex;margin-top:6px;color:#1769ff;text-decoration:none;font-size:8.5px;font-weight:900}
.near-you-news{margin-top:12px}.near-you-news-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.near-you-news-head strong{font-size:12px}.near-you-news-head span{font-size:9px;color:#98a2b3}#nearYouNewsList{display:grid;gap:6px}#nearYouNewsList>a,#nearYouNewsList>div{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e7eaf0;border-radius:11px;padding:8px 10px;text-decoration:none;color:inherit;background:#fff}#nearYouNewsList time{font-size:9px;color:#e02f3b;font-weight:900}#nearYouNewsList span{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#nearYouNewsList small{font-size:8.5px;color:#98a2b3}.near-you-empty{color:#7a8493;font-size:11px!important}.near-you-note{display:block;margin-top:10px;color:#98a2b3;font-size:9px;line-height:1.45}
html[data-theme="dark"] .near-you-panel,html[data-theme="dark"] #nearYouNewsList>a,html[data-theme="dark"] #nearYouNewsList>div{background:#171e28;border-color:#303947}
.emergency-mode-bar{position:sticky;top:0;z-index:115;background:linear-gradient(90deg,#b70718,#ef233c);color:#fff;box-shadow:0 8px 30px rgba(183,7,24,.25)}.emergency-mode-inner{min-height:68px;display:flex;align-items:center;gap:12px;padding-top:8px;padding-bottom:8px}.emergency-mode-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#c71020;font-size:21px;font-weight:900;box-shadow:0 0 0 6px rgba(255,255,255,.12)}.emergency-mode-copy{display:grid;gap:1px;min-width:0;flex:1}.emergency-mode-copy span{font-size:9px;font-weight:900;opacity:.85}.emergency-mode-copy strong{font-size:17px}.emergency-mode-copy small{font-size:10px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emergency-mode-actions{display:flex;gap:7px}.emergency-mode-actions a,.emergency-mode-actions button{border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:8px 10px;text-decoration:none;font:inherit;font-size:9.5px;font-weight:900;cursor:pointer}.emergency-mode-actions a:hover,.emergency-mode-actions button:hover{background:rgba(255,255,255,.22)}
body.emergency-mode .alert-center-card{box-shadow:0 0 0 2px rgba(239,35,60,.16),0 14px 42px rgba(239,35,60,.11)}body.emergency-mode .news-nav{border-bottom-color:rgba(239,35,60,.38)}
@media(max-width:1000px){.smart-now-status{display:none}.intelligence-actions{grid-template-columns:repeat(3,auto)!important}}
@media(max-width:700px){.intelligence-actions{grid-template-columns:1fr 1fr!important}.intelligence-actions #quickBriefBtn{grid-column:1/-1}.why-metrics{grid-template-columns:1fr 1fr}.near-you-grid{grid-template-columns:1fr}#nearYouNewsList>a,#nearYouNewsList>div{grid-template-columns:52px minmax(0,1fr)}#nearYouNewsList small{grid-column:2}.emergency-mode-inner{gap:9px;min-height:72px}.emergency-mode-icon{width:32px;height:32px;font-size:17px}.emergency-mode-copy strong{font-size:14px}.emergency-mode-actions{display:grid;gap:4px}.emergency-mode-actions a,.emergency-mode-actions button{font-size:8px;padding:6px 7px}.lead-changes-list>a,.lead-changes-list>div{grid-template-columns:34px minmax(0,1fr)}.lead-changes-list small{display:none}}


/* ==========================================================
   HADASHOTA V62 — unified mobile modal system
   All dialogs must remain usable on iPhone/Android regardless
   of viewport height, browser chrome or Home-Screen safe areas.
   ========================================================== */

@media (max-width: 700px) {
  body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .site-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  .site-modal.hidden {
    display: none !important;
  }

  .site-modal .modal-backdrop,
  .site-modal .site-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, .58) !important;
    backdrop-filter: blur(9px) saturate(90%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(90%) !important;
  }

  .site-modal .modal-card {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom))) !important;
    margin: 0 !important;
    padding: 20px 14px max(14px, env(safe-area-inset-bottom)) !important;
    border-radius: 22px 22px 16px 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  /* The X must stay visible even when the dialog content scrolls. */
  .site-modal .modal-close {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    float: left !important;
    z-index: 20 !important;
    width: 38px !important;
    height: 38px !important;
    margin: -8px 0 4px -2px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(248,250,252,.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 3px 12px rgba(15,23,42,.08) !important;
  }

  html[data-theme="dark"] .site-modal .modal-close {
    background: rgba(30,38,50,.96) !important;
  }

  .site-modal .modal-card h2 {
    clear: both !important;
    padding-inline-start: 0 !important;
    padding-left: 42px !important;
    margin-top: 0 !important;
  }

  /* Quick brief: fit five cards comfortably but allow a small scroll on
     unusually short screens. The close action remains sticky and visible. */
  .quick-brief-card {
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom))) !important;
    padding: 16px 12px max(10px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  .quick-brief-card > p {
    margin: 2px 0 8px !important;
    padding-left: 38px !important;
    font-size: 9.7px !important;
    line-height: 1.35 !important;
  }

  .quick-brief-list {
    gap: 5px !important;
    margin-top: 8px !important;
  }

  .brief-story-card {
    grid-template-columns: 27px minmax(0,1fr) auto !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  .brief-rank {
    width: 27px !important;
    height: 27px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }

  .brief-copy h3 {
    font-size: 11px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  .brief-meta {
    gap: 3px !important;
    margin-top: 4px !important;
  }

  .brief-meta span {
    font-size: 7.3px !important;
    padding: 2px 4px !important;
  }

  .brief-copy p {
    font-size: 8px !important;
    margin-top: 2px !important;
  }

  .brief-source-btn {
    grid-column: auto !important;
    align-self: center !important;
    min-width: 52px !important;
    padding: 5px 6px !important;
    font-size: 8px !important;
  }

  .quick-brief-footer {
    position: sticky !important;
    bottom: calc(-1 * max(10px, env(safe-area-inset-bottom))) !important;
    z-index: 15 !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 7px -12px calc(-1 * max(10px, env(safe-area-inset-bottom))) !important;
    padding: 9px 12px max(10px, env(safe-area-inset-bottom)) !important;
    background: rgba(255,255,255,.97) !important;
    border-top: 1px solid #e8ecf1 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  html[data-theme="dark"] .quick-brief-footer {
    background: rgba(17,23,32,.97) !important;
    border-color: #303947 !important;
  }

  .quick-brief-close-btn {
    width: auto !important;
    min-width: 82px !important;
    margin: 0 2px 0 0 !important;
    padding: 9px 15px !important;
    font-size: 10px !important;
  }

  /* Rich dialogs: normal scrolling, no clipped grids. */
  .about-modal-card,
  .near-you-card,
  .smart-explain-card,
  .alert-settings-card,
  .notification-offer-card,
  .install-offer-card,
  .modal-card-contact {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom))) !important;
    overflow-y: auto !important;
  }

  .about-process,
  .about-feature-grid,
  .near-you-grid,
  .why-metrics {
    grid-template-columns: 1fr 1fr !important;
  }

  .notification-offer-actions,
  .install-offer-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    background: inherit !important;
    padding-top: 8px !important;
  }
}

@media (max-width: 390px), (max-height: 690px) {
  .site-modal .modal-card {
    border-radius: 18px 18px 12px 12px !important;
    padding-top: 13px !important;
  }

  .quick-brief-card h2 {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .quick-brief-card > p {
    display: none !important;
  }

  .brief-story-card {
    padding: 7px !important;
  }

  .brief-copy h3 {
    font-size: 10.4px !important;
  }

  .brief-meta span:nth-child(n+4) {
    display: none !important;
  }

  .about-process,
  .about-feature-grid,
  .near-you-grid,
  .why-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   HADASHOTA V70 — mobile readability safety
   Keep every modal scroll-safe while avoiding sub-10px UI text.
   ========================================================== */
@media (max-width: 700px) {
  .quick-brief-card > p { font-size: 11px !important; line-height: 1.45 !important; }
  .brief-copy h3 { font-size: 12px !important; line-height: 1.32 !important; }
  .brief-meta span { font-size: 9px !important; padding: 3px 5px !important; }
  .brief-copy p { font-size: 10px !important; line-height: 1.35 !important; }
  .brief-source-btn { font-size: 10px !important; min-height: 30px !important; }
  .quick-brief-close-btn { font-size: 11px !important; min-height: 36px !important; }
}
@media (max-width: 390px), (max-height: 690px) {
  .brief-copy h3 { font-size: 11.5px !important; }
  .brief-meta span { font-size: 8.8px !important; }
  .brief-copy p { font-size: 9.8px !important; }
}


/* V70 — visible deployment marker */
.site-version {
  display: inline-block;
  margin-top: 6px !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .72;
}
@media (max-width: 720px) {
  .site-version { font-size: 9px; margin-top: 8px !important; }
}

/* KOTERET PLUS V80 — five equal top cards */
.portal-strip{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.portal-strip>.portal-status,.portal-strip>.utility-card{min-width:0!important;min-height:116px!important;height:116px!important;border-radius:20px!important;border:1px solid rgba(17,24,39,.10)!important;background-color:rgba(255,255,255,.94)!important;box-shadow:0 10px 30px rgba(31,41,55,.065)!important;overflow:hidden!important;grid-row:auto!important;grid-column:auto!important}
.portal-strip>.portal-status{display:flex!important;padding:13px 14px 11px!important}
.portal-status .eyebrow{margin-bottom:5px!important;font-size:9px!important}.portal-status .pulse-title strong{font-size:16px!important}.portal-status .pulse-title small{display:none!important}.portal-status .status-metrics{gap:5px!important;margin-top:7px!important}.portal-status .status-metrics span{padding:4px 7px!important;font-size:8px!important}.portal-status .status-metrics b{font-size:10px!important}.portal-status .status-detail{margin-top:5px!important;font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.promo-card{padding:0!important;position:relative!important;background:radial-gradient(circle at 20% 0%,rgba(255,59,48,.14),transparent 8rem),radial-gradient(circle at 90% 100%,rgba(116,87,255,.15),transparent 9rem),#fff!important}.promo-card::after{display:none!important}.promo-card-link{position:relative;display:flex;width:100%;height:100%;align-items:flex-end;padding:12px;text-decoration:none;color:#101828;overflow:hidden;cursor:default}.promo-card.is-active .promo-card-link{cursor:pointer;color:#fff}.promo-card-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.promo-card-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(8,13,24,.02) 18%,rgba(8,13,24,.82) 100%);opacity:0}.promo-card.is-active .promo-card-shade{opacity:1}.promo-card-badge{position:absolute;top:10px;right:10px;z-index:2;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:900;color:#667085;background:rgba(255,255,255,.82);border:1px solid rgba(17,24,39,.08)}.promo-card.is-active .promo-card-badge{color:#fff;background:rgba(17,24,39,.52);border-color:rgba(255,255,255,.22)}.promo-card-text{position:relative;z-index:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.28;font-weight:900}.promo-card:not(.is-active) .promo-card-text{margin:auto;align-self:center;font-size:16px;color:#475467}
html[data-theme="dark"] .portal-strip>.portal-status,html[data-theme="dark"] .portal-strip>.utility-card{background-color:#151b24!important;border-color:#2b333e!important}
@media(max-width:1180px) and (min-width:701px){.portal-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}.portal-strip>.portal-status,.portal-strip>.utility-card{min-height:110px!important;height:110px!important}}
@media(max-width:700px){.portal-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;border:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}.portal-strip>.portal-status,.portal-strip>.utility-card{display:flex!important;height:92px!important;min-height:92px!important;border:1px solid rgba(17,24,39,.10)!important;border-radius:14px!important;padding:8px 9px!important;background:#fff!important;overflow:hidden!important}.portal-strip>.promo-card{padding:0!important}.portal-strip>.weather-card,.portal-strip>.shabbat-card,.portal-strip>.currency-card{border-radius:14px!important}.promo-card-text{font-size:12px}.promo-card:not(.is-active) .promo-card-text{font-size:14px}}

/* V85 — mobile news-first utility rail */
@media(max-width:700px){
  .portal-strip{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:0 0 5px!important;margin-bottom:8px!important;scrollbar-width:none!important}
  .portal-strip::-webkit-scrollbar{display:none}
  .portal-strip>.portal-status,.portal-strip>.utility-card{flex:0 0 142px!important;width:142px!important;min-width:142px!important;height:76px!important;min-height:76px!important;padding:7px 8px!important;border-radius:13px!important;scroll-snap-align:start}
  .portal-strip>.promo-card{padding:0!important}
  .portal-strip .eyebrow,.portal-strip .utility-label,.portal-strip .portal-label{font-size:8px!important}
  .portal-strip .pulse-title strong{font-size:12px!important}
  .portal-strip .status-metrics{display:none!important}
  .portal-strip .status-detail{font-size:7px!important;margin-top:3px!important}
  .promo-card-text{font-size:11px!important;-webkit-line-clamp:2!important}
  .promo-card:not(.is-active) .promo-card-text{font-size:12px!important}
  .promo-card-badge{top:6px!important;right:6px!important;font-size:7px!important;padding:3px 5px!important}
}


/* =========================================================
   KOTERET PLUS V87 — premium ad card + roomier utility row
   ========================================================= */
@media (min-width:1181px) {
  .portal-strip > .portal-status,
  .portal-strip > .utility-card {
    height: 148px !important;
    min-height: 148px !important;
  }

  /* The ad is no longer text-over-photo. The image owns most of the card. */
  .promo-card-link {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 46px !important;
    padding: 0 !important;
    align-items: stretch !important;
    background: #fff;
  }

  .promo-card-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    grid-row: 1 !important;
    display: block;
  }

  .promo-card-shade {
    display: none !important;
  }

  .promo-card-text {
    grid-row: 2 !important;
    position: relative !important;
    z-index: 2 !important;
    display: -webkit-box !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    background: #fff !important;
    color: #182230 !important;
    border-top: 1px solid rgba(17,24,39,.08);
    font-size: 11px !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .promo-card-badge {
    top: 8px !important;
    right: 8px !important;
    color: #fff !important;
    background: rgba(17,24,39,.68) !important;
    border-color: rgba(255,255,255,.28) !important;
    backdrop-filter: blur(6px);
  }

  .promo-card:not(.is-active) .promo-card-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .promo-card:not(.is-active) .promo-card-text {
    border: 0 !important;
    background: transparent !important;
    padding: 12px !important;
    font-size: 15px !important;
  }
}

html[data-theme="dark"] .promo-card.is-active .promo-card-text {
  background: #151b24 !important;
  color: #f8fafc !important;
  border-top-color: #2b333e !important;
}

/* Tablet: preserve a meaningful photo area as well. */
@media (max-width:1180px) and (min-width:701px) {
  .portal-strip > .portal-status,
  .portal-strip > .utility-card {
    height: 132px !important;
    min-height: 132px !important;
  }
  .promo-card-link {
    display:grid !important;
    grid-template-rows:minmax(0,1fr) 42px !important;
    padding:0 !important;
  }
  .promo-card-image {
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    grid-row:1 !important;
  }
  .promo-card-shade{display:none!important}
  .promo-card-text {
    grid-row:2 !important;
    position:relative !important;
    margin:0 !important;
    padding:7px 9px !important;
    background:#fff !important;
    color:#182230 !important;
    border-top:1px solid rgba(17,24,39,.08);
    font-size:10px !important;
    line-height:1.25 !important;
    -webkit-line-clamp:2 !important;
  }
}

/* Mobile stays news-first, but the ad gets extra width so the image is not tiny. */
@media (max-width:700px) {
  .portal-strip > .promo-card {
    flex-basis: 190px !important;
    width: 190px !important;
    min-width: 190px !important;
  }

  .promo-card-link {
    display:grid !important;
    grid-template-columns: 58% 42% !important;
    grid-template-rows: 1fr !important;
    padding:0 !important;
    align-items:stretch !important;
  }

  .promo-card-image {
    position:relative !important;
    inset:auto !important;
    grid-column:1 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .promo-card-shade { display:none !important; }

  .promo-card-text {
    grid-column:2 !important;
    position:relative !important;
    margin:0 !important;
    align-self:stretch !important;
    display:flex !important;
    align-items:center !important;
    padding:7px !important;
    background:#fff !important;
    color:#182230 !important;
    border-inline-start:1px solid rgba(17,24,39,.08);
    font-size:9px !important;
    line-height:1.25 !important;
    -webkit-line-clamp:unset !important;
  }

  html[data-theme="dark"] .promo-card.is-active .promo-card-text {
    background:#151b24 !important;
    color:#f8fafc !important;
    border-inline-start-color:#2b333e !important;
  }
}


/* =========================================================
   KOTERET PLUS V88 — notification offer hard layout guard
   ========================================================= */
.notification-offer-modal .notification-offer-card {
  width: min(480px, calc(100vw - 32px)) !important;
  max-height: min(620px, calc(100dvh - 32px)) !important;
  padding: 24px 24px 20px !important;
  text-align: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.notification-offer-modal .notification-offer-bell {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  margin: 2px auto 10px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  flex: 0 0 52px !important;
}

.notification-offer-modal .notification-offer-bell svg {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

.notification-offer-modal .notification-offer-card h2 {
  font-size: clamp(20px, 4vw, 26px) !important;
  line-height: 1.18 !important;
  margin: 5px auto 8px !important;
}

.notification-offer-modal .notification-offer-card > p {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  margin: 0 auto !important;
}

.notification-offer-modal .notification-offer-highlight {
  margin: 12px 0 !important;
  padding: 9px 11px !important;
}

.notification-offer-modal .notification-offer-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 9px 0 2px !important;
  background: rgba(255,255,255,.98) !important;
}

html[data-theme="dark"] .notification-offer-modal .notification-offer-actions {
  background: rgba(21,24,33,.98) !important;
}

.notification-offer-modal .notification-offer-actions button {
  min-height: 42px !important;
}

@media (max-width:700px) {
  .notification-offer-modal {
    align-items: center !important;
    padding:
      max(8px, env(safe-area-inset-top))
      10px
      max(8px, env(safe-area-inset-bottom)) !important;
  }

  .notification-offer-modal .notification-offer-card {
    width: min(460px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))) !important;
    padding: 14px 14px max(12px, env(safe-area-inset-bottom)) !important;
    border-radius: 20px !important;
  }

  .notification-offer-modal .notification-offer-bell {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 12px !important;
    margin: 0 auto 5px !important;
  }

  .notification-offer-modal .notification-offer-bell svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .notification-offer-modal .modal-eyebrow {
    font-size: 9px !important;
  }

  .notification-offer-modal .notification-offer-card h2 {
    font-size: 19px !important;
    line-height: 1.15 !important;
    margin: 3px auto 7px !important;
    padding-left: 36px !important;
  }

  .notification-offer-modal .notification-offer-card > p {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .notification-offer-modal .notification-offer-highlight {
    margin: 8px 0 !important;
    padding: 7px 9px !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
  }

  .notification-offer-modal .notification-offer-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin-top: 8px !important;
    padding-top: 7px !important;
  }

  .notification-offer-modal .notification-offer-actions button {
    min-height: 40px !important;
    padding: 8px 9px !important;
    font-size: 11px !important;
  }

  .notification-offer-modal .notification-offer-note {
    margin-top: 6px !important;
    font-size: 8.5px !important;
  }
}

@media (max-height:600px) {
  .notification-offer-modal .notification-offer-bell,
  .notification-offer-modal .notification-offer-highlight,
  .notification-offer-modal .notification-offer-note {
    display: none !important;
  }
  .notification-offer-modal .notification-offer-card {
    max-height: calc(100dvh - 12px) !important;
  }
}


/* V90 — optional sponsored item at the top of "כל העדכונים" */
.feed-promo-card {
  border-inline-end: 3px solid #ff3b30 !important;
}
.feed-promo-link {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.feed-promo-image {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}
.feed-promo-copy { min-width: 0; }
.feed-promo-meta { margin-bottom: 6px; }
.feed-promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff0ef;
  color: #d92d20;
  font-size: 10px;
  font-weight: 900;
}
.feed-promo-copy h3 {
  margin: 0;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.3;
}
.feed-promo-copy p {
  margin: 7px 0 0;
  color: #7b8494;
  font-size: 11px;
}
@media(max-width:700px){
  .feed-promo-link { grid-template-columns: 100px minmax(0,1fr); gap: 11px; padding: 11px; }
  .feed-promo-image { width:100px; height:78px; border-radius:10px; }
  .feed-promo-copy h3 { font-size:15px; }
}


/* V92 — technical refresh/retry information stays internal */
#dataStatus,
.data-status,
.since-visit,
#sinceVisit {
  display: none !important;
}

/* V93 — licensed media attribution links */
a.media-credit {
  color: inherit;
  text-decoration: none;
}
a.media-credit:hover {
  text-decoration: underline;
}

/* V94 — branded contextual fallback when no licensed relevant image exists */
.contextual-media-fallback,
.safe-media-slot.contextual-media-fallback {
  position: relative;
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,59,48,.13), transparent 42%),
    linear-gradient(145deg, #f3f6fb, #e9eef6) !important;
  color: #344054;
  font-weight: 900;
  text-align: center;
}
.contextual-media-fallback::before {
  content: attr(data-fallback-label);
  max-width: 82%;
  font-size: 12px;
  line-height: 1.2;
}
.contextual-media-fallback::after {
  content: "כותרת פלוס";
  position: absolute;
  inset-inline: 7px;
  bottom: 6px;
  font-size: 8px;
  font-weight: 800;
  color: #98a2b3;
}

/* V98 — stronger image coverage in "כל העדכונים" */
.news-card.has-image .news-image {
  display: block !important;
  overflow: hidden;
}
.news-card.has-image .news-image img,
.news-card.has-image .news-image .safe-media-slot {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}
@media(max-width:700px){
  .news-card.has-image .news-image img,
  .news-card.has-image .news-image .safe-media-slot {
    min-height: 78px;
  }
}


/* V100 — photographer/source credit on source images */
.safe-media-slot.hydrated-direct > .media-credit,
.news-image > .media-credit {
  font-size: 7.5px !important;
  line-height: 1.2 !important;
  padding: 2px 5px !important;
  max-width: calc(100% - 10px) !important;
  white-space: normal !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}


/* =========================================================
   V101 PREMIUM EXIT LAYER
   Editorial intelligence, not another dashboard.
   ========================================================= */
.premium-intelligence {
  margin: 18px 0 14px;
  padding: 22px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 5%, rgba(220,38,38,.08), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
  overflow: hidden;
}
.premium-intelligence__head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.premium-eyebrow {
  display:block;
  margin-bottom:6px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
  color:#9f1239;
}
.premium-intelligence h2,
.since-visit-premium h2 {
  margin:0;
  font-size:clamp(22px,2.5vw,34px);
  line-height:1.05;
  letter-spacing:-.035em;
  color:#0f172a;
}
.premium-intelligence__head p {
  margin:8px 0 0;
  color:#64748b;
  font-size:13px;
}
.news-pulse {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:#fff;
  font-size:11px;
  font-weight:800;
  color:#475569;
}
.news-pulse__dot {
  width:8px;height:8px;border-radius:50%;
  background:#94a3b8;
  box-shadow:0 0 0 5px rgba(148,163,184,.12);
}
.news-pulse[data-level="active"] .news-pulse__dot { background:#f59e0b; box-shadow:0 0 0 5px rgba(245,158,11,.13); }
.news-pulse[data-level="hot"] .news-pulse__dot { background:#dc2626; box-shadow:0 0 0 5px rgba(220,38,38,.13); animation:koteretPulse 1.8s infinite; }
@keyframes koteretPulse { 50% { box-shadow:0 0 0 9px rgba(220,38,38,0); } }

.premium-intelligence__grid {
  display:grid;
  grid-template-columns:1.45fr 1fr .72fr;
  gap:10px;
}
.premium-signal {
  min-width:0;
  padding:16px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:18px;
  background:rgba(255,255,255,.78);
}
.premium-signal--hero {
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.premium-signal__label {
  display:block;
  margin-bottom:9px;
  font-size:10px;
  font-weight:900;
  color:#94a3b8;
}
.premium-signal--hero .premium-signal__label { color:#fca5a5; }
.premium-signal strong {
  display:block;
  font-size:15px;
  line-height:1.35;
}
.premium-signal--hero strong { font-size:17px; }
.premium-signal small {
  display:block;
  margin-top:8px;
  color:#94a3b8;
  font-size:10px;
}
.premium-topics { display:grid; gap:7px; }
.premium-topic {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.premium-topic:last-child { border-bottom:0; padding-bottom:0; }
.premium-topic b { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.premium-topic small { margin:0; white-space:nowrap; }

.since-visit-premium {
  margin:12px 0 18px;
  padding:18px 20px;
  border-radius:20px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}
.since-visit-premium[hidden] { display:none !important; }
.since-visit-premium h2 { font-size:19px; }
.since-visit-items { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:13px; }
.since-visit-item {
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:10px;
  border-radius:13px;
  background:#f8fafc;
  color:#0f172a;
  text-decoration:none;
  transition:transform .16s ease, background .16s ease;
}
.since-visit-item:hover { transform:translateY(-1px); background:#f1f5f9; }
.since-visit-item > span {
  display:grid; place-items:center; flex:0 0 22px; height:22px;
  border-radius:50%; background:#111827; color:#fff; font-size:10px; font-weight:900;
}
.since-visit-item strong { font-size:11px; line-height:1.35; }

.why-important {
  margin-top:7px;
  padding:5px 8px;
  border:0;
  border-radius:8px;
  background:#f1f5f9;
  color:#475569;
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  text-align:right;
  transition:all .15s ease;
}
.why-important:hover { background:#e2e8f0; color:#0f172a; }
.why-important.open {
  display:block;
  width:100%;
  padding:8px 10px;
  background:#fff7ed;
  color:#9a3412;
  line-height:1.4;
}

/* More editorial breathing room and hierarchy without redesigning the site */
.news-card {
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.news-card:hover {
  transform:translateY(-1px);
  border-color:rgba(15,23,42,.13);
  box-shadow:0 10px 24px rgba(15,23,42,.055);
}

@media(max-width:800px) {
  .premium-intelligence { padding:16px; border-radius:19px; margin-top:12px; }
  .premium-intelligence__head { display:block; }
  .news-pulse { width:max-content; margin-top:12px; }
  .premium-intelligence__grid { grid-template-columns:1fr 1fr; }
  .premium-signal--hero { grid-column:1/-1; }
  .since-visit-items { grid-template-columns:1fr; }
}
@media(max-width:520px) {
  .premium-intelligence__grid { grid-template-columns:1fr; }
  .premium-signal--hero { grid-column:auto; }
  .premium-intelligence h2 { font-size:25px; }
  .premium-intelligence__head p { font-size:11px; }
}


/* V102 — top settings access + preferences popup */
.top-settings-btn {
  position:relative;
  display:inline-grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid rgba(15,23,42,.09);
  border-radius:12px;
  background:rgba(255,255,255,.86);
  color:#475569;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.top-settings-btn:hover { transform:translateY(-1px); background:#fff; color:#0f172a; }
.top-settings-btn svg { width:17px; height:17px; fill:currentColor; }
.settings-custom-dot {
  display:none;
  position:absolute;
  top:4px;
  inset-inline-start:4px;
  width:6px;height:6px;border-radius:50%;
  background:#10b981;
  box-shadow:0 0 0 2px #fff;
}
.settings-custom-dot.visible { display:block; }

.settings-modal[hidden] { display:none !important; }
.settings-modal {
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:18px;
  opacity:0;
  transition:opacity .16s ease;
}
.settings-modal.is-open { opacity:1; }
.settings-modal__backdrop {
  position:absolute; inset:0;
  background:rgba(15,23,42,.44);
  backdrop-filter:blur(8px);
}
.settings-modal__panel {
  position:relative;
  width:min(430px, calc(100vw - 28px));
  max-height:min(720px, calc(100vh - 36px));
  overflow:auto;
  border:1px solid rgba(255,255,255,.65);
  border-radius:24px;
  background:rgba(255,255,255,.98);
  box-shadow:0 30px 90px rgba(15,23,42,.22);
  transform:translateY(8px) scale(.985);
  transition:transform .18s ease;
}
.settings-modal.is-open .settings-modal__panel { transform:none; }
.settings-modal__head {
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:20px 20px 14px;
  border-bottom:1px solid #eef2f7;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}
.settings-modal__eyebrow { font-size:10px;font-weight:900;color:#94a3b8; }
.settings-modal__head h2 { margin:3px 0 0;font-size:22px;color:#0f172a;letter-spacing:-.03em; }
.settings-modal__head p { margin:6px 0 0;font-size:10px;color:#94a3b8; }
.settings-modal__close {
  flex:0 0 auto;
  width:34px;height:34px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#f8fafc;
  color:#64748b;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.settings-modal__content { padding:10px 14px 16px; }
.settings-modal__content > * {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.settings-modal__content h1,
.settings-modal__content h2,
.settings-modal__content h3:first-of-type { display:none; }
html.settings-modal-open { overflow:hidden; }

@media(max-width:600px) {
  .settings-modal { padding:10px; align-items:end; }
  .settings-modal__panel {
    width:100%;
    max-height:88vh;
    border-radius:22px 22px 16px 16px;
  }
  .top-settings-btn { width:34px;height:34px;border-radius:11px; }
}


/* V103 — premium intelligence belongs in the newsroom, not the footer */
.intelligence-bar + .premium-intelligence {
  margin-top: 12px;
}
.premium-intelligence {
  scroll-margin-top: 84px;
}
@media(max-width:700px){
  .intelligence-bar + .premium-intelligence {
    margin-top: 9px;
  }
}


/* =========================================================
   V104 — unified "מה באמת קורה עכשיו?"
   ========================================================= */
.premium-now-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(15,23,42,.07);
}
.premium-hot-summary {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.premium-hot-summary strong {
  font-size:12px;
  color:#0f172a;
}
.premium-hot-summary small {
  font-size:9px;
  color:#94a3b8;
}
.premium-hot-dot {
  flex:0 0 auto;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ef4444;
  box-shadow:0 0 0 5px rgba(239,68,68,.1);
}
.premium-now-actions {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.premium-now-actions button {
  min-height:34px;
  padding:7px 11px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#fff;
  color:#334155;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.premium-now-actions button:hover {
  transform:translateY(-1px);
  background:#f8fafc;
  color:#0f172a;
}
.premium-now-actions button.active,
.premium-now-actions button[aria-pressed="true"] {
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* The old standalone bars are intentionally gone in V104. */
#breakingBanner,
#trendingStrip,
.intelligence-bar {
  display:none !important;
}

@media(max-width:760px) {
  .premium-now-footer {
    align-items:stretch;
    flex-direction:column;
  }
  .premium-hot-summary {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .premium-hot-summary small {
    flex-basis:100%;
    padding-inline-start:15px;
  }
  .premium-now-actions {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
  }
  .premium-now-actions button {
    padding:7px 6px;
    font-size:9px;
  }
}
@media(max-width:520px) {
  .premium-now-actions {
    grid-template-columns:1fr;
  }
}


/* V105 — flagship News Intelligence Center */
.premium-intelligence--v105{padding:24px;border-radius:26px;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 22px 60px rgba(15,23,42,.08)}
.v105-intelligence-grid{display:grid;grid-template-columns:1.45fr 1fr .78fr;gap:10px}
.v105-lead-signal,.v105-topics-card,.v105-status-card{border:1px solid rgba(15,23,42,.07);border-radius:19px;padding:17px;background:#fff}
.v105-lead-signal{background:linear-gradient(145deg,#111827,#1e293b);color:#fff}
.v105-card-label{font-size:10px;font-weight:900;color:#94a3b8;margin-bottom:10px}
.v105-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ef4444;margin-inline-end:5px;box-shadow:0 0 0 5px rgba(239,68,68,.12)}
.v105-lead-signal h3{margin:0;font-size:19px;line-height:1.32;letter-spacing:-.025em}
.v105-lead-meta{margin-top:9px;color:#cbd5e1;font-size:10px}
.v105-story-button{margin-top:15px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;padding:8px 11px;font-size:10px;font-weight:900;cursor:pointer}
.v105-story-button:disabled{opacity:.4;cursor:default}
.v105-activity{font-size:21px;color:#0f172a}
.v105-status-card p{font-size:10px;line-height:1.5;color:#94a3b8}
.v105-hot-line{display:flex;align-items:center;gap:6px;margin-top:14px;padding-top:11px;border-top:1px solid #eef2f7;font-size:10px;font-weight:800;color:#475569}
.v105-watch{display:flex;gap:18px;align-items:center;margin-top:11px;padding:13px 15px;border:1px solid rgba(15,23,42,.06);border-radius:17px;background:rgba(248,250,252,.82)}
.v105-watch__head{flex:0 0 170px}.v105-watch__head strong{display:block;font-size:11px}.v105-watch__head small{display:block;margin-top:3px;font-size:8px;color:#94a3b8}
.v105-watch__items{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;flex:1;min-width:0}
.v105-watch-item{min-width:0;padding:8px 9px;border-radius:11px;background:#fff;border:1px solid #eef2f7}
.v105-watch-item>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ef4444;margin-inline-end:5px}
.v105-watch-item strong{display:block;margin-top:4px;font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v105-watch-item small{font-size:8px;color:#94a3b8}
.premium-now-footer--v105{justify-content:flex-end}
.premium-now-footer--v105 .premium-now-actions{width:100%;justify-content:flex-end}
.premium-now-footer--v105 .premium-now-actions button:first-child{background:#e11d48;color:#fff;border-color:#e11d48}

.v105-tool-modal[hidden]{display:none!important}.v105-tool-modal{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:16px;opacity:0;transition:opacity .15s ease}
.v105-tool-modal.is-open{opacity:1}.v105-tool-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(8px)}
.v105-tool-modal__panel{position:relative;width:min(650px,calc(100vw - 28px));max-height:82vh;overflow:auto;padding:24px;border-radius:24px;background:#fff;box-shadow:0 30px 100px rgba(15,23,42,.25);transform:translateY(8px);transition:transform .15s ease}
.v105-tool-modal.is-open .v105-tool-modal__panel{transform:none}.v105-tool-modal__panel--small{width:min(480px,calc(100vw - 28px))}
.v105-tool-modal__panel h2{margin:4px 0 17px;font-size:25px;letter-spacing:-.03em}.v105-tool-modal__panel>p{color:#64748b;font-size:11px}
.v105-tool-modal__close{position:absolute;top:15px;left:15px;width:34px;height:34px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;font-size:20px;color:#64748b;cursor:pointer}
.v105-brief-list{display:grid;gap:8px}.v105-brief-item{display:flex;gap:11px;padding:12px;border-radius:14px;background:#f8fafc;text-decoration:none;color:#0f172a}
.v105-brief-item>span{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#111827;color:#fff;font-size:10px;font-weight:900}
.v105-brief-item strong{font-size:12px;line-height:1.4}.v105-brief-item small{display:block;margin-top:4px;font-size:9px;color:#94a3b8}
.v105-near-row{display:flex;gap:7px}.v105-near-row input{flex:1;min-width:0;border:1px solid #dbe2ea;border-radius:11px;padding:11px 12px;font:inherit}.v105-near-row button{border:0;border-radius:11px;padding:0 17px;background:#111827;color:#fff;font-weight:900;cursor:pointer}
.v105-near-clear{margin-top:10px;border:0;background:none;color:#94a3b8;font-size:10px;cursor:pointer}.v105-empty{font-size:10px;color:#94a3b8;padding:8px}
html.v105-modal-open{overflow:hidden}

@media(max-width:800px){
 .v105-intelligence-grid{grid-template-columns:1fr 1fr}.v105-lead-signal{grid-column:1/-1}.v105-watch{display:block}.v105-watch__head{margin-bottom:9px}.v105-watch__items{grid-template-columns:1fr}
}
@media(max-width:540px){
 .premium-intelligence--v105{padding:16px}.v105-intelligence-grid{grid-template-columns:1fr}.v105-lead-signal{grid-column:auto}.v105-watch-item strong{white-space:normal}
 .premium-now-footer--v105 .premium-now-actions{display:grid;grid-template-columns:1fr}.v105-tool-modal{align-items:end;padding:8px}.v105-tool-modal__panel{width:100%;max-height:88vh;border-radius:22px 22px 14px 14px}
}


/* V106 — visible working feed filters */
.v106-filter-status{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 10px;padding:10px 12px;border:1px solid #dbeafe;border-radius:12px;
  background:#eff6ff;color:#1e3a8a;font-size:10px;font-weight:800;
}
.v106-filter-status[hidden]{display:none!important}
.v106-filter-status button{
  flex:0 0 auto;border:0;border-radius:8px;background:#fff;color:#1e40af;
  padding:6px 9px;font:inherit;font-size:9px;font-weight:900;cursor:pointer;
}
#premiumImportantBtn.active,#premiumNearYouBtn.active{
  background:#111827!important;color:#fff!important;border-color:#111827!important;
}
@media(max-width:540px){
  .v106-filter-status{position:sticky;top:6px;z-index:20;box-shadow:0 6px 18px rgba(15,23,42,.08)}
}


/* =========================================================
   V107 — compact two-card intelligence center
   ========================================================= */
.premium-intelligence--v107{
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f8fafc);
  box-shadow:0 16px 42px rgba(15,23,42,.065);
}
.premium-intelligence__head--compact{
  margin-bottom:12px;
  align-items:center;
}
.premium-intelligence__head--compact h2{
  font-size:clamp(24px,2.3vw,31px);
}
.premium-intelligence__head--compact p{
  margin-top:5px;
  font-size:11px;
}
.v107-grid{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:10px;
}
.v107-main-card,
.v107-side-card{
  min-width:0;
  border:1px solid rgba(15,23,42,.07);
  border-radius:18px;
}
.v107-main-card{
  padding:16px 17px;
  color:#fff;
  background:linear-gradient(145deg,#111827,#1e293b);
}
.v107-side-card{
  padding:14px 15px;
  background:#fff;
}
.v107-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.v107-label{
  font-size:9px;
  font-weight:900;
  color:#94a3b8;
}
.v107-main-card .v107-label{
  color:#cbd5e1;
}
.v107-activity{
  text-align:left;
}
.v107-activity b{
  display:block;
  color:#fff;
  font-size:13px;
}
.v107-activity small{
  display:block;
  margin-top:2px;
  color:#94a3b8;
  font-size:8px;
}
.v107-main-card h3{
  margin:12px 0 8px;
  font-size:18px;
  line-height:1.3;
  letter-spacing:-.025em;
}
.v107-main-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#cbd5e1;
  font-size:9px;
}
.v107-hot-inline{
  flex:0 0 auto;
  color:#fda4af;
  font-weight:800;
}
.v107-main-actions{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:13px;
}
.v107-main-actions button{
  min-height:33px;
}
.v107-primary-action{
  border:0;
  border-radius:10px;
  padding:8px 11px;
  background:#e11d48;
  color:#fff;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.v107-side-head{
  display:grid;
  grid-template-columns:120px 1fr;
  align-items:start;
  gap:10px;
}
.v107-side-card .premium-topics{
  gap:4px;
}
.v107-side-card .premium-topic{
  padding-bottom:4px;
}
.v107-side-card .premium-topic b{
  font-size:10px;
}
.v107-side-card .premium-topic small{
  font-size:8px;
}
.v107-watch-mini{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  align-items:start;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #eef2f7;
}
.v107-watch-mini #premiumWatchItems{
  display:grid;
  gap:5px;
}
.v107-watch-item{
  display:grid;
  grid-template-columns:6px minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  padding:6px 7px;
  border-radius:9px;
  background:#f8fafc;
}
.v107-watch-item>span{
  width:6px;height:6px;border-radius:50%;background:#ef4444;
}
.v107-watch-item strong{
  min-width:0;
  font-size:9px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v107-watch-item small{
  font-size:7.5px;
  color:#94a3b8;
  white-space:nowrap;
}
.v107-side-actions{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #eef2f7;
}
.v107-side-actions button{
  min-height:32px;
  padding:7px 10px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  color:#334155;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.v107-side-actions button.active,
.v107-side-actions button[aria-pressed="true"]{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* Removed in V107 to reduce vertical weight */
.since-visit-premium{display:none!important}

@media(max-width:760px){
  .premium-intelligence--v107{padding:14px}
  .premium-intelligence__head--compact{display:block}
  .premium-intelligence__head--compact .news-pulse{margin-top:9px}
  .v107-grid{grid-template-columns:1fr}
  .v107-main-card h3{font-size:16px}
  .v107-side-head,.v107-watch-mini{grid-template-columns:105px 1fr}
}
@media(max-width:520px){
  .v107-card-top{display:block}
  .v107-activity{text-align:right;margin-top:8px}
  .v107-main-meta{align-items:flex-start;flex-direction:column}
  .v107-main-actions{display:grid;grid-template-columns:1fr}
  .v107-side-head,.v107-watch-mini{grid-template-columns:1fr}
  .v107-side-actions{display:grid;grid-template-columns:1fr 1fr}
}


/* =========================================================
   V108 — slim live status strip
   ========================================================= */
.now-status-strip{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  min-height:58px;
  margin:10px 0 12px;
  padding:10px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:17px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.now-status-strip__activity{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:max-content;
}
.now-status-strip__activity .news-pulse{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  font-size:11px;
}
.now-status-strip__activity small{
  color:#94a3b8;
  font-size:8px;
  white-space:nowrap;
}
.now-status-strip__topics{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  padding-inline:12px;
  border-inline:1px solid #eef2f7;
}
.now-status-strip__label{
  flex:0 0 auto;
  font-size:9px;
  font-weight:900;
  color:#64748b;
}
.now-status-strip__topic-list{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  overflow:hidden;
}
.now-topic-chip{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  padding:5px 7px;
  border-radius:9px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  white-space:nowrap;
}
.now-topic-chip b{
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:9px;
  color:#0f172a;
}
.now-topic-chip small{
  color:#94a3b8;
  font-size:7.5px;
}
.now-status-strip__watch{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:max-content;
  color:#475569;
  font-size:9px;
  font-weight:800;
}
.now-status-strip__watch .premium-hot-dot{
  width:6px;height:6px;box-shadow:0 0 0 4px rgba(239,68,68,.09);
}
.now-status-strip__actions{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:max-content;
}
.now-status-strip__actions button{
  min-height:31px;
  padding:6px 9px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  color:#334155;
  font-size:8.5px;
  font-weight:900;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.now-status-strip__actions button:hover{transform:translateY(-1px);background:#f8fafc}
.now-status-strip__actions button:first-child{
  background:#e11d48;
  color:#fff;
  border-color:#e11d48;
}
.now-status-strip__actions button.active,
.now-status-strip__actions button[aria-pressed="true"]{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* Hide old premium layouts completely */
.premium-intelligence--v107,
.v107-grid,
.v107-main-card,
.v107-side-card,
.v107-watch-mini,
.v107-main-actions,
.v107-side-actions{display:none!important}

@media(max-width:900px){
  .now-status-strip{
    grid-template-columns:auto 1fr auto;
  }
  .now-status-strip__watch{
    display:none;
  }
}
@media(max-width:700px){
  .now-status-strip{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:52px;
    padding:8px 10px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .now-status-strip::-webkit-scrollbar{display:none}
  .now-status-strip__activity,
  .now-status-strip__topics,
  .now-status-strip__watch,
  .now-status-strip__actions{
    flex:0 0 auto;
  }
  .now-status-strip__topics{
    padding-inline:8px;
    border-inline:1px solid #eef2f7;
  }
  .now-status-strip__topic-list{
    overflow:visible;
  }
  .now-topic-chip b{max-width:100px}
  .now-status-strip__watch{display:flex}
  .now-status-strip__activity small{display:none}
  .now-status-strip__actions button{
    min-height:30px;
    font-size:8px;
    padding:6px 8px;
  }
}
@media(max-width:480px){
  .now-status-strip{
    margin:8px 0 10px;
    border-radius:14px;
  }
  .now-status-strip__label{font-size:8px}
  .now-topic-chip{padding:4px 6px}
  .now-topic-chip b{font-size:8.5px}
  .now-topic-chip small{font-size:7px}
}


/* V109 — slightly taller, substantially more readable status strip */
.now-status-strip{
  min-height:76px;
  padding:14px 18px;
  gap:17px;
}
.now-status-strip__activity .news-pulse{
  font-size:13px;
}
.now-status-strip__activity small{
  font-size:10px;
}
.now-status-strip__label{
  font-size:11px;
}
.now-status-strip__topics{
  gap:10px;
  padding-inline:15px;
}
.now-status-strip__topic-list{
  gap:8px;
}
.now-topic-chip{
  gap:6px;
  padding:7px 10px;
  border-radius:10px;
}
.now-topic-chip b{
  max-width:145px;
  font-size:11px;
}
.now-topic-chip small{
  font-size:9px;
}
.now-status-strip__watch{
  gap:6px;
  font-size:11px;
}
.now-status-strip__actions{
  gap:7px;
}
.now-status-strip__actions button{
  min-height:36px;
  padding:8px 11px;
  font-size:10px;
}

@media(max-width:700px){
  .now-status-strip{
    min-height:64px;
    padding:11px 12px;
    gap:10px;
  }
  .now-status-strip__activity .news-pulse{font-size:11px}
  .now-status-strip__label{font-size:10px}
  .now-topic-chip{
    padding:6px 8px;
  }
  .now-topic-chip b{
    max-width:120px;
    font-size:10px;
  }
  .now-topic-chip small{font-size:8px}
  .now-status-strip__watch{font-size:10px}
  .now-status-strip__actions button{
    min-height:34px;
    padding:7px 10px;
    font-size:9px;
  }
}
@media(max-width:480px){
  .now-status-strip{
    min-height:62px;
    padding-block:10px;
  }
}


/* =========================================================
   V110 — production mobile containment
   The page itself never pans horizontally; only explicitly scrollable controls do.
   ========================================================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}
body {
  position: relative;
  min-width: 0;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, video, canvas, svg {
  max-width: 100%;
}
.shell,
.page,
.topbar-inner,
.content-grid,
.feed-column,
.sidebar,
.hero-news-grid,
.control-panel,
.pulse-strip,
.portal-strip,
.alert-center,
.footer,
.premium-intelligence,
.now-status-strip {
  min-width: 0;
  max-width: 100%;
}
.content-grid > *,
.hero-news-grid > *,
.pulse-strip > *,
.portal-strip > * {
  min-width: 0;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden !important; }
}

/* Horizontal movement is allowed only inside components designed for it. */
.filter-scroll,
.now-status-strip,
.flash-deck-viewport,
.trending-topics {
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

@media (max-width:700px) {
  .shell {
    width: min(calc(100% - 20px), var(--shell)) !important;
    margin-inline: auto !important;
  }
  .page,
  main,
  header,
  footer {
    max-width: 100vw;
  }
  .topbar-inner,
  .topbar-actions,
  .section-head,
  .lead-story-body,
  .feed,
  .news-card {
    min-width: 0;
  }
  .news-card,
  .lead-story,
  .utility-card,
  .sidebar-card,
  .control-panel,
  .now-status-strip {
    max-width: 100%;
  }
  input, select, textarea {
    max-width: 100%;
    min-width: 0;
  }
}


/* V112 — fast paint after a discarded/suspended tab is restored */
.news-card {
  content-visibility: auto;
  contain-intrinsic-size: 190px;
}
.feed > .news-card:nth-child(-n+8) {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
.sidebar-card,
.source-card {
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}
@media(max-width:700px){
  .news-card { contain-intrinsic-size: 170px; }
}


/* =========================================================
   V115 — Editorial newsroom redesign
   Goal: stronger hierarchy, fewer boxes, denser live feed.
   No functional selectors or JS behavior changed.
   ========================================================= */

/* A calmer editorial canvas: keep features, remove visual competition. */
.control-panel {
  border-radius: 15px !important;
  box-shadow: 0 4px 18px rgba(17,24,39,.035) !important;
  border-color: #e4e8ee !important;
  background: rgba(252,253,254,.94) !important;
  padding: 10px 12px !important;
  margin-bottom: 24px !important;
}
.now-status-strip {
  border-radius: 14px !important;
  box-shadow: none !important;
  border-color: #e6e9ee !important;
  background: #fbfcfd !important;
  min-height: 64px !important;
  padding: 11px 14px !important;
}

/* Main story — one unmistakable editorial focal point. */
.lead-story {
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
  padding: 18px 20px 20px !important;
  border: 1px solid #e3e6eb !important;
  border-top: 4px solid #df3b32 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(17,24,39,.055) !important;
}
.lead-story::after {
  display: none !important;
}
.lead-story-topline {
  margin-bottom: 15px !important;
  padding-bottom: 11px !important;
  border-bottom: 1px solid #eef0f3 !important;
}
.lead-story-label {
  color: #c92f27 !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
}
.lead-story-label i {
  width: 8px !important;
  height: 8px !important;
  box-shadow: 0 0 0 4px rgba(223,59,50,.10) !important;
}
.lead-story-signal {
  border-color: #e6e9ee !important;
  background: #f8f9fb !important;
  color: #697386 !important;
  font-size: 10.5px !important;
  padding: 6px 10px !important;
}

.lead-story-body {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 13px !important;
  align-items: stretch !important;
}
.lead-story.has-media .lead-story-body {
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 12px 24px !important;
}
.lead-story.has-media .lead-story-media {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}
.lead-story.has-media .lead-story-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.lead-story.has-media .lead-story-cta {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
}
.lead-story:not(.has-media) .lead-story-copy {
  grid-column: 1 !important;
}
.lead-story:not(.has-media) .lead-story-cta {
  grid-column: 1 !important;
  justify-self: start !important;
}

.lead-story-media {
  width: 100% !important;
  height: 286px !important;
  min-height: 286px !important;
  max-height: 286px !important;
  border-radius: 13px !important;
  border: 0 !important;
  background: #edf0f4 !important;
  box-shadow: none !important;
}
.lead-story-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}
.lead-story h2,
.lead-story h2 a {
  display: block !important;
  margin: 0 !important;
  max-width: 840px !important;
  font-size: clamp(34px, 3.05vw, 46px) !important;
  line-height: 1.09 !important;
  letter-spacing: -.042em !important;
  font-weight: 850 !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  text-wrap: balance;
}
.lead-story[data-title-size="medium"] h2,
.lead-story[data-title-size="medium"] h2 a {
  font-size: clamp(31px, 2.75vw, 41px) !important;
}
.lead-story[data-title-size="long"] h2,
.lead-story[data-title-size="long"] h2 a {
  font-size: clamp(27px, 2.3vw, 35px) !important;
  line-height: 1.14 !important;
}
.lead-story-copy > p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  margin: 12px 0 11px !important;
  max-width: 800px !important;
  color: #606b7b !important;
  font-size: 14.5px !important;
  line-height: 1.58 !important;
}
.lead-story-meta {
  gap: 7px !important;
  color: #7a8492 !important;
  font-size: 11.5px !important;
}
.lead-story-meta strong {
  color: #c92f27 !important;
}
.lead-story-sources {
  margin-top: 9px !important;
  gap: 5px !important;
  max-height: 29px !important;
  overflow: hidden !important;
}
.lead-story-sources a,
.lead-story-sources span {
  border-color: #e5e8ed !important;
  background: #fafbfc !important;
  color: #5e6877 !important;
  font-size: 9.5px !important;
  padding: 4px 8px !important;
}
.lead-intelligence {
  margin-top: 9px !important;
  gap: 5px !important;
}
.lead-intelligence span,
.lead-why-button {
  min-height: 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 9.5px !important;
  padding: 4px 8px !important;
  box-shadow: none !important;
}
.lead-story-cta {
  align-self: end !important;
  border: 1px solid #171b22 !important;
  border-radius: 10px !important;
  background: #171b22 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  padding: 9px 12px !important;
}

/* "כל העדכונים" becomes a live editorial list, not a stack of floating boxes. */
.feed-column .section-head {
  margin-bottom: 0 !important;
  padding: 3px 0 14px !important;
  border-bottom: 2px solid #20252d !important;
}
.feed-column .section-head > div:first-child {
  padding-inline-start: 12px !important;
  border-inline-start: 3px solid #df3b32 !important;
}
.feed-column .section-kicker {
  margin-bottom: 3px !important;
  color: #8a93a0 !important;
  font-size: 10.5px !important;
}
.feed-column .section-head h2 {
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.03em !important;
}
.feed-column .section-actions,
.feed-column .text-button {
  font-size: 11.5px !important;
}

.feed {
  display: grid !important;
  gap: 0 !important;
}
.news-card {
  position: relative !important;
  margin: 0 !important;
  padding: 17px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e9ed !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: background .16s ease, border-color .16s ease !important;
  contain-intrinsic-size: 138px !important;
}
.news-card::before {
  top: 21px !important;
  right: 0 !important;
  bottom: auto !important;
  width: 3px !important;
  height: 40px !important;
  border-radius: 99px !important;
  opacity: .88 !important;
}
.news-card:hover {
  transform: none !important;
  border-color: #dde1e7 !important;
  background: #fafbfc !important;
  box-shadow: none !important;
}
.news-main {
  align-items: center !important;
  gap: 15px !important;
}
.news-card.has-image .news-main {
  grid-template-columns: 164px minmax(0,1fr) auto !important;
  gap: 16px !important;
}
.news-image {
  width: 164px !important;
  height: 108px !important;
  min-height: 108px !important;
  max-height: 108px !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #edf0f4 !important;
}
.news-image img,
.news-card.has-image .news-image img,
.news-card.has-image .news-image .safe-media-slot {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}
.news-copy {
  align-self: center !important;
}
.news-meta {
  margin-bottom: 7px !important;
  gap: 6px !important;
  color: #7d8794 !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}
.source-name {
  color: #343b46 !important;
  font-weight: 800 !important;
}
.news-title,
.news-title a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  color: #121720 !important;
  font-size: 19px !important;
  line-height: 1.32 !important;
  font-weight: 780 !important;
  letter-spacing: -.015em !important;
}
.news-title a:hover {
  color: #c9342c !important;
}
.news-preview {
  display: none !important;
}
.news-side {
  align-self: start !important;
  padding-top: 1px !important;
}
.category-badge {
  min-height: 21px !important;
  height: auto !important;
  border-radius: 7px !important;
  font-size: 9px !important;
  padding: 4px 7px !important;
}
.source-type-badge,
.official-badge,
.independent-badge,
.cluster-badge,
.new-badge,
.hot-badge,
.verification-badge {
  min-height: 18px !important;
  height: auto !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  padding: 3px 6px !important;
}
.related-wrap {
  margin-top: 10px !important;
  border-top-color: #edf0f3 !important;
}
.related-wrap summary,
.related-link {
  font-size: 10.5px !important;
}

/* Compact mode remains meaningfully tighter. */
.news-card.compact {
  padding: 12px 2px !important;
}
.news-card.compact .news-image {
  display: none !important;
}
.news-card.compact.has-image .news-main,
.news-card.compact .news-main {
  grid-template-columns: minmax(0,1fr) auto !important;
}
.news-card.compact .news-title,
.news-card.compact .news-title a {
  font-size: 17px !important;
  -webkit-line-clamp: 2 !important;
}
.news-card.compact .news-meta {
  margin-bottom: 5px !important;
  font-size: 10.5px !important;
}

/* Dark mode keeps the same hierarchy instead of reverting to card-heavy styling. */
html[data-theme="dark"] .control-panel {
  background: rgba(17,22,30,.94) !important;
  border-color: #29323d !important;
}
html[data-theme="dark"] .now-status-strip {
  background: #111720 !important;
  border-color: #29323d !important;
}
html[data-theme="dark"] .lead-story {
  background: #111720 !important;
  border-color: #2a333f !important;
  border-top-color: #f05b50 !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .lead-story-topline {
  border-bottom-color: #29323d !important;
}
html[data-theme="dark"] .lead-story-signal,
html[data-theme="dark"] .lead-story-sources a,
html[data-theme="dark"] .lead-story-sources span {
  background: #171e28 !important;
  border-color: #303947 !important;
  color: #aab4c1 !important;
}
html[data-theme="dark"] .lead-story-copy > p {
  color: #a7b1bf !important;
}
html[data-theme="dark"] .lead-story-meta {
  color: #8f9aa9 !important;
}
html[data-theme="dark"] .lead-story-cta {
  border-color: #f3f5f7 !important;
  background: #f3f5f7 !important;
  color: #111720 !important;
}
html[data-theme="dark"] .feed-column .section-head {
  border-bottom-color: #3a4450 !important;
}
html[data-theme="dark"] .news-card {
  border-bottom-color: #29323d !important;
  background: transparent !important;
}
html[data-theme="dark"] .news-card:hover {
  background: #121923 !important;
  border-bottom-color: #36414e !important;
}
html[data-theme="dark"] .source-name {
  color: #e6e9ee !important;
}
html[data-theme="dark"] .news-title,
html[data-theme="dark"] .news-title a {
  color: #f2f4f7 !important;
}
html[data-theme="dark"] .news-title a:hover {
  color: #ff8f87 !important;
}
html[data-theme="dark"] .news-meta {
  color: #929dac !important;
}
html[data-theme="dark"] .news-image,
html[data-theme="dark"] .lead-story-media {
  background: #151c25 !important;
}

/* Tablet — keep the hero editorial, but protect usable copy width. */
@media (max-width: 1100px) {
  .lead-story.has-media .lead-story-body {
    grid-template-columns: minmax(250px, 33%) minmax(0,1fr) !important;
    gap: 12px 19px !important;
  }
  .lead-story-media {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
  }
  .lead-story h2,
  .lead-story h2 a {
    font-size: 32px !important;
  }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a {
    font-size: 29px !important;
  }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a {
    font-size: 26px !important;
  }
}

/* Mobile — image first, then headline; dense rows expose more live stories. */
@media (max-width: 700px) {
  .control-panel {
    border-radius: 13px !important;
    padding: 9px !important;
    margin-bottom: 19px !important;
  }
  .now-status-strip {
    min-height: 58px !important;
    padding: 9px 10px !important;
  }

  .lead-story {
    padding: 12px !important;
    border-top-width: 3px !important;
    border-radius: 15px !important;
  }
  .lead-story-topline {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }
  .lead-story.has-media .lead-story-body,
  .lead-story-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
  }
  .lead-story.has-media .lead-story-media,
  .lead-story.has-media .lead-story-copy,
  .lead-story.has-media .lead-story-cta,
  .lead-story:not(.has-media) .lead-story-copy,
  .lead-story:not(.has-media) .lead-story-cta {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .lead-story-media {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 11px !important;
  }
  .lead-story h2,
  .lead-story h2 a {
    font-size: 23px !important;
    line-height: 1.16 !important;
  }
  .lead-story[data-title-size="medium"] h2,
  .lead-story[data-title-size="medium"] h2 a {
    font-size: 21.5px !important;
  }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a {
    font-size: 20px !important;
  }
  .lead-story-copy > p {
    margin: 8px 0 !important;
    font-size: 12.5px !important;
  }
  .lead-story-meta {
    font-size: 10.5px !important;
  }
  .lead-story-sources {
    max-height: 27px !important;
  }
  .lead-story-cta {
    display: none !important;
  }

  .feed-column .section-head {
    padding-bottom: 11px !important;
  }
  .feed-column .section-head h2 {
    font-size: 23px !important;
  }
  .feed-column .section-actions,
  .feed-column .text-button {
    font-size: 10.5px !important;
  }
  .news-card {
    padding: 13px 0 !important;
    contain-intrinsic-size: 104px !important;
  }
  .news-card:hover {
    padding-inline: 0 !important;
    background: transparent !important;
  }
  .news-card::before {
    top: 17px !important;
    height: 31px !important;
  }
  .news-card.has-image .news-main {
    grid-template-columns: 112px minmax(0,1fr) !important;
    gap: 11px !important;
  }
  .news-image {
    width: 112px !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    border-radius: 8px !important;
  }
  .news-side {
    display: none !important;
  }
  .news-meta {
    margin-bottom: 5px !important;
    gap: 4px !important;
    font-size: 10.5px !important;
  }
  .news-title,
  .news-title a {
    font-size: 16.5px !important;
    line-height: 1.28 !important;
  }
  .source-type-badge,
  .official-badge,
  .independent-badge,
  .cluster-badge,
  .new-badge,
  .hot-badge,
  .verification-badge {
    font-size: 7.5px !important;
    padding: 3px 5px !important;
  }
  .related-wrap {
    margin-top: 7px !important;
  }
}

@media (max-width: 430px) {
  .lead-story h2,
  .lead-story h2 a {
    font-size: 21.5px !important;
  }
  .lead-story[data-title-size="long"] h2,
  .lead-story[data-title-size="long"] h2 a {
    font-size: 18.5px !important;
  }
  .news-card.has-image .news-main {
    grid-template-columns: 98px minmax(0,1fr) !important;
    gap: 9px !important;
  }
  .news-image {
    width: 98px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
  }
  .news-title,
  .news-title a {
    font-size: 15.5px !important;
  }
  .news-meta {
    font-size: 9.8px !important;
  }
}


/* =========================================================
   V116 — Premium Newsroom
   Restores comfortable white story cards and elevates the
   overall portal hierarchy without changing functionality.
   ========================================================= */

:root{
  --v116-ink:#111827;
  --v116-muted:#697386;
  --v116-line:#e8ebef;
  --v116-soft:#f5f6f8;
  --v116-card:#ffffff;
  --v116-accent:#df3b32;
  --v116-shadow:0 8px 24px rgba(15,23,42,.045);
  --v116-shadow-hover:0 12px 30px rgba(15,23,42,.075);
}

/* Overall page rhythm: premium news portal rather than dashboard tiles. */
body{
  background:
    linear-gradient(180deg,#fff 0,#fafbfc 420px,#f5f6f8 100%) !important;
}
.site-shell,
.page-shell,
main{
  position:relative;
}

/* Header / portal strips: crisp and newsroom-like. */
.portal-strip{
  border-radius:12px !important;
  box-shadow:none !important;
  border-color:#e4e7eb !important;
  background:rgba(255,255,255,.98) !important;
}
.now-status-strip{
  border-radius:12px !important;
  border:1px solid #e5e8ec !important;
  background:#fff !important;
  box-shadow:0 3px 14px rgba(15,23,42,.035) !important;
}
.now-topic-chip{
  background:#f7f8fa !important;
  border-color:#eceef2 !important;
  border-radius:8px !important;
}
.now-status-strip__actions button{
  border-radius:8px !important;
}

/* Main editorial hero: cleaner and more authoritative. */
.lead-story{
  border-radius:16px !important;
  border:1px solid #e1e5ea !important;
  border-top:4px solid var(--v116-accent) !important;
  background:#fff !important;
  box-shadow:0 14px 36px rgba(15,23,42,.065) !important;
}
.lead-story-media{
  border-radius:11px !important;
}
.lead-story h2,
.lead-story h2 a{
  color:var(--v116-ink) !important;
  letter-spacing:-.038em !important;
}
.lead-story-copy > p{
  color:#626d7c !important;
}
.lead-story-sources a,
.lead-story-sources span{
  background:#f7f8fa !important;
  border-color:#e8ebef !important;
}
.lead-story-cta{
  border-radius:9px !important;
  background:#171b22 !important;
  border-color:#171b22 !important;
}

/* Editorial column surface — gives "all updates" a real section. */
.feed-column{
  position:relative;
}
.feed-column .section-head{
  margin-bottom:12px !important;
  padding:4px 2px 12px !important;
  border-bottom:2px solid #1f252d !important;
}
.feed-column .section-head h2{
  color:#171c24 !important;
  font-size:29px !important;
}
.feed-column .section-head > div:first-child{
  border-inline-start:4px solid var(--v116-accent) !important;
}

/* IMPORTANT: restore the white background on every update card. */
.feed{
  display:grid !important;
  gap:10px !important;
}
.news-card{
  margin:0 !important;
  padding:14px 15px !important;
  border:1px solid #e5e8ec !important;
  border-radius:13px !important;
  background:var(--v116-card) !important;
  box-shadow:0 3px 12px rgba(15,23,42,.028) !important;
  overflow:hidden !important;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease,
    background .16s ease !important;
  contain-intrinsic-size:142px !important;
}
.news-card::before{
  top:14px !important;
  right:0 !important;
  height:44px !important;
  width:3px !important;
  border-radius:3px 0 0 3px !important;
}
.news-card:hover{
  transform:translateY(-1px) !important;
  border-color:#d9dde3 !important;
  background:#fff !important;
  box-shadow:var(--v116-shadow-hover) !important;
}
.news-main{
  gap:15px !important;
}
.news-card.has-image .news-main{
  grid-template-columns:158px minmax(0,1fr) auto !important;
  gap:15px !important;
}
.news-image{
  width:158px !important;
  height:104px !important;
  min-height:104px !important;
  max-height:104px !important;
  border-radius:9px !important;
  background:#eef1f4 !important;
}
.news-title,
.news-title a{
  font-size:18.5px !important;
  line-height:1.31 !important;
  color:#171c24 !important;
  font-weight:790 !important;
}
.news-meta{
  color:#7a8491 !important;
  font-size:11px !important;
}
.source-name{
  color:#39424f !important;
}
.news-preview{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:1 !important;
  overflow:hidden !important;
  margin-top:7px !important;
  color:#7b8490 !important;
  font-size:11.5px !important;
  line-height:1.45 !important;
}
.category-badge{
  border-radius:6px !important;
}
.related-wrap{
  border-top:1px solid #eff1f3 !important;
}

/* Give the side column a calmer hierarchy, like a secondary newsroom rail. */
.sidebar,
.side-column{
  gap:12px !important;
}
.sidebar-card,
.source-card,
.sidebar > section,
.side-column > section{
  border-radius:13px !important;
  border-color:#e5e8ec !important;
  box-shadow:0 4px 16px rgba(15,23,42,.03) !important;
}
.sidebar-card h3,
.source-card h3,
.sidebar h2,
.side-column h2{
  letter-spacing:-.015em;
}

/* Filters: visually subordinate to the news itself. */
.control-panel{
  border-radius:12px !important;
  background:#fff !important;
  border-color:#e5e8ec !important;
  box-shadow:0 2px 10px rgba(15,23,42,.025) !important;
}
.control-panel button,
.control-panel select,
.control-panel input{
  border-radius:8px !important;
}

/* A slightly stronger brand rhythm in section headings. */
.section-kicker{
  letter-spacing:.025em !important;
  font-weight:850 !important;
}

/* Desktop: make the main content feel broader and less boxed-in. */
@media(min-width:1101px){
  .news-layout,
  .content-grid,
  .main-grid{
    column-gap:22px !important;
  }
}

/* Tablet */
@media(max-width:1100px){
  .news-card.has-image .news-main{
    grid-template-columns:142px minmax(0,1fr) auto !important;
  }
  .news-image{
    width:142px !important;
    height:96px !important;
    min-height:96px !important;
    max-height:96px !important;
  }
}

/* Mobile: retain white cards but avoid the "floating bubble" look. */
@media(max-width:700px){
  body{
    background:#f4f5f7 !important;
  }
  .feed{
    gap:7px !important;
  }
  .news-card{
    padding:11px 10px !important;
    border-radius:10px !important;
    border-color:#e3e6ea !important;
    box-shadow:0 2px 8px rgba(15,23,42,.025) !important;
    contain-intrinsic-size:108px !important;
  }
  .news-card:hover{
    transform:none !important;
    box-shadow:0 2px 8px rgba(15,23,42,.025) !important;
  }
  .news-card::before{
    top:12px !important;
    height:32px !important;
  }
  .news-card.has-image .news-main{
    grid-template-columns:105px minmax(0,1fr) !important;
    gap:10px !important;
  }
  .news-image{
    width:105px !important;
    height:74px !important;
    min-height:74px !important;
    max-height:74px !important;
    border-radius:7px !important;
  }
  .news-title,
  .news-title a{
    font-size:16px !important;
    line-height:1.28 !important;
  }
  .news-preview{
    display:none !important;
  }
  .news-meta{
    font-size:10px !important;
    margin-bottom:4px !important;
  }
  .feed-column .section-head{
    margin-bottom:8px !important;
  }
  .feed-column .section-head h2{
    font-size:23px !important;
  }
}

/* Very small screens */
@media(max-width:430px){
  .news-card{
    padding:10px 9px !important;
  }
  .news-card.has-image .news-main{
    grid-template-columns:94px minmax(0,1fr) !important;
    gap:9px !important;
  }
  .news-image{
    width:94px !important;
    height:68px !important;
    min-height:68px !important;
    max-height:68px !important;
  }
  .news-title,
  .news-title a{
    font-size:15.2px !important;
  }
}

/* Dark mode */
html[data-theme="dark"] body{
  background:#0c1118 !important;
}
html[data-theme="dark"] .portal-strip,
html[data-theme="dark"] .now-status-strip,
html[data-theme="dark"] .control-panel,
html[data-theme="dark"] .lead-story,
html[data-theme="dark"] .news-card{
  background:#111720 !important;
  border-color:#29313c !important;
}
html[data-theme="dark"] .news-card:hover{
  background:#141b25 !important;
  border-color:#384250 !important;
}
html[data-theme="dark"] .news-title,
html[data-theme="dark"] .news-title a,
html[data-theme="dark"] .lead-story h2,
html[data-theme="dark"] .lead-story h2 a{
  color:#f3f5f7 !important;
}
html[data-theme="dark"] .source-name{
  color:#d9dee5 !important;
}
html[data-theme="dark"] .news-meta,
html[data-theme="dark"] .news-preview{
  color:#929dab !important;
}
html[data-theme="dark"] .now-topic-chip{
  background:#171e28 !important;
  border-color:#303947 !important;
}
html[data-theme="dark"] .feed-column .section-head{
  border-bottom-color:#485463 !important;
}

/* =========================================================
   V117 — lead headline polish + image-first feed
   ========================================================= */
/* Hard reset for the intermittent line/strike artifact seen across rotating
   lead headlines. Keep every title layer paint-only: no decoration, border,
   pseudo content or inherited background can cross the glyphs. */
.hero-news-grid .lead-story h2,
.hero-news-grid .lead-story h2 a,
.hero-news-grid .lead-story #leadStoryTitle {
  position: relative !important;
  z-index: 5 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.hero-news-grid .lead-story h2::before,
.hero-news-grid .lead-story h2::after,
.hero-news-grid .lead-story h2 a::before,
.hero-news-grid .lead-story h2 a::after,
.hero-news-grid .lead-story #leadStoryTitle::before,
.hero-news-grid .lead-story #leadStoryTitle::after {
  content: none !important;
  display: none !important;
}

/* More controlled headline ladder. JS chooses by chars + words and performs
   one post-layout safety step when a headline becomes unusually tall. */
.hero-news-grid .lead-story[data-title-size="xlong"] h2,
.hero-news-grid .lead-story[data-title-size="xlong"] h2 a {
  font-size: clamp(25px, 2.05vw, 32px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.03em !important;
}

/* Slightly more breathable hero rhythm without making the module taller. */
.hero-news-grid .lead-story-copy {
  min-width: 0 !important;
  align-self: center !important;
}
.hero-news-grid .lead-story-copy > p {
  margin-top: 10px !important;
  margin-bottom: 9px !important;
}
.hero-news-grid .lead-intelligence {
  margin-top: 8px !important;
}
.hero-news-grid .lead-story-cta {
  min-height: 36px !important;
  padding-inline: 14px !important;
}

/* Feed images are part of the editorial card. Give the loading state a visible
   neutral surface, then let the actual article image take over immediately. */
.news-image.safe-news-image {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg,#eef1f4,#f7f8fa) !important;
}
.news-image .safe-media-slot {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}
.news-image > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

/* A little more editorial separation inside All updates. */
.feed-column .section-head {
  padding-inline: 4px !important;
}
.news-card .news-meta {
  margin-bottom: 5px !important;
}
.news-card .news-preview {
  margin-top: 6px !important;
}

@media (max-width:700px) {
  .hero-news-grid .lead-story[data-title-size="xlong"] h2,
  .hero-news-grid .lead-story[data-title-size="xlong"] h2 a {
    font-size: 20.5px !important;
    line-height: 1.19 !important;
  }
}

/* =========================================================
   HADASHOTA V120 — remove residual lead-story stripe/line artifact
   ========================================================= */
/* The featured headline must never render with decorative bars/lines around or
   through it. Older visual layers are explicitly neutralized here so legacy
   rules cannot revive them after headline rotation or responsive changes. */
.hero-news-grid .lead-story {
  border-top: 1px solid #e3e6eb !important;
}
.hero-news-grid .lead-story::before,
.hero-news-grid .lead-story::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero-news-grid .lead-story h2,
.hero-news-grid .lead-story h2 a,
.hero-news-grid .lead-story #leadStoryTitle {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: solid !important;
  text-decoration-color: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.hero-news-grid .lead-story h2::before,
.hero-news-grid .lead-story h2::after,
.hero-news-grid .lead-story h2 a::before,
.hero-news-grid .lead-story h2 a::after,
.hero-news-grid .lead-story #leadStoryTitle::before,
.hero-news-grid .lead-story #leadStoryTitle::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .hero-news-grid .lead-story {
  border-top-color: #2f3742 !important;
}


/* V120 — launch polish: subtle depth without changing layout */
.news-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover) and (pointer:fine) {
  .news-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(16,24,40,.075);
  }
}
.news-image img, .lead-story-media img {
  transition: opacity .18s ease, transform .28s ease;
}
@media (hover:hover) and (pointer:fine) {
  .news-card:hover .news-image img { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .news-image img, .lead-story-media img { transition: none !important; transform: none !important; }
}

/* V120 — native site sharing */
.share-site-button svg { stroke-linecap: round; stroke-linejoin: round; }
.share-site-button:hover { border-color: rgba(255,59,48,.28); }
html[data-theme="dark"] .share-site-button:hover { border-color: rgba(255,107,99,.34); }


/* V121 SEO editorial context */
.seo-editorial-about{margin:32px auto 8px;padding:0 18px}.seo-editorial-inner{max-width:1180px;margin:0 auto;padding:20px 22px;border-top:1px solid #dde2e8;border-bottom:1px solid #e7eaee;background:rgba(255,255,255,.5)}.seo-editorial-kicker{display:block;margin-bottom:5px;color:#d43931;font-size:10px;font-weight:900}.seo-editorial-about h2{margin:0;color:#1a2029;font-size:20px;line-height:1.25;font-weight:850}.seo-editorial-about p{max-width:930px;margin:10px 0 13px;color:#687383;font-size:12px;line-height:1.7}.seo-editorial-links{display:flex;flex-wrap:wrap;gap:7px 15px}.seo-editorial-links a{color:#3f4a58;font-size:11px;font-weight:750;text-decoration:none}.seo-editorial-links a:hover{color:#cf352d;text-decoration:underline}html[data-theme="dark"] .seo-editorial-inner{border-color:#29333f;background:rgba(17,23,32,.52)}html[data-theme="dark"] .seo-editorial-about h2{color:#f1f3f6}html[data-theme="dark"] .seo-editorial-about p{color:#99a4b2}html[data-theme="dark"] .seo-editorial-links a{color:#c5ccd5}@media(max-width:700px){.seo-editorial-about{margin-top:24px;padding:0 10px}.seo-editorial-inner{padding:16px 12px}.seo-editorial-about h2{font-size:17px}.seo-editorial-about p{font-size:11px;line-height:1.65}}


/* =========================================================
   V122 — back-to-top placement
   Requested: right side on desktop and mobile.
   ========================================================= */
.back-to-top{
  right:max(16px, env(safe-area-inset-right)) !important;
  left:auto !important;
}
@media(max-width:700px){
  .back-to-top{
    right:max(12px, env(safe-area-inset-right)) !important;
    left:auto !important;
  }
}

/* V125 — Start hub */
.alert-center-card{gap:10px !important}
.alert-center-actions{order:0}
.alert-status-icon{order:1}
.alert-center-copy{order:2}
.start-hub-tools{order:3;margin-inline-start:auto;display:flex;align-items:center;gap:7px;flex:0 1 430px;min-width:260px;direction:ltr}
.google-search-form{height:36px;min-width:210px;flex:1 1 300px;display:flex;align-items:center;gap:6px;padding:0 6px 0 10px;border:1px solid #dfe4ea;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025)}
.google-word{direction:ltr;color:#667085;font-size:11px;font-weight:850;letter-spacing:-.02em}
.google-search-form input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:#101828;font:inherit;font-size:11px;direction:rtl}
.google-search-form input::placeholder{color:#98a2b3}
.google-search-form button{width:27px;height:27px;display:grid;place-items:center;border:0;border-radius:8px;background:#f3f5f7;color:#344054;font-size:17px;cursor:pointer}
.homepage-button{height:36px;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #dfe4ea;border-radius:10px;background:#fff;color:#475467;font:inherit;font-size:9.5px;font-weight:850;cursor:pointer;direction:rtl}
.homepage-button span{font-size:14px}
.homepage-button:hover,.google-search-form:focus-within{border-color:#cbd2db;box-shadow:0 4px 14px rgba(15,23,42,.06)}
.homepage-modal-card{max-width:560px !important}
.homepage-modal-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f2f4f7;color:#101828;font-size:22px;margin-bottom:8px}
.homepage-instructions{display:grid;gap:8px;margin-top:14px}
.homepage-step{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;gap:9px;padding:9px 10px;border:1px solid #e5e9ef;border-radius:11px;background:#fbfcfd;color:#475467;font-size:11px;line-height:1.5}
.homepage-step>b{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#101828;color:#fff;font-size:10px}
.homepage-url{padding:9px 10px;border-radius:10px;background:#f4f6f8;border:1px solid #e4e8ed;direction:ltr;text-align:left;overflow:auto}
.homepage-url code{font-size:10px;color:#344054}
.homepage-note{display:block;margin-top:11px;color:#98a2b3;font-size:9px}
.alert-center-card.alert-active .google-search-form,.alert-center-card.alert-active .homepage-button{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.30);color:#fff}
.alert-center-card.alert-active .google-search-form input,.alert-center-card.alert-active .google-word{color:#fff}
.alert-center-card.alert-active .google-search-form input::placeholder{color:rgba(255,255,255,.72)}
.alert-center-card.alert-active .google-search-form button{background:rgba(255,255,255,.16);color:#fff}
html[data-theme="dark"] .google-search-form,html[data-theme="dark"] .homepage-button{background:#151c25;border-color:#303946;color:#d6dce4}
html[data-theme="dark"] .google-search-form input{color:#f2f4f7}
html[data-theme="dark"] .google-search-form button{background:#202936;color:#d6dce4}
html[data-theme="dark"] .homepage-step{background:#151c25;border-color:#303946;color:#c1c9d4}
html[data-theme="dark"] .homepage-url{background:#111720;border-color:#303946}
html[data-theme="dark"] .homepage-url code{color:#cbd3dd}
@media(max-width:1000px){.alert-center-card{flex-wrap:wrap}.alert-center-copy{flex:1 1 45%}.start-hub-tools{flex:1 1 100%;min-width:0;margin-inline-start:0}}
@media(max-width:700px){
  .alert-center-card{display:grid !important;grid-template-columns:auto auto minmax(0,1fr);gap:7px !important}
  .alert-center-actions{grid-column:1 / span 2;grid-row:1;justify-self:start}
  .alert-status-icon{grid-column:3;grid-row:1;justify-self:end}
  .alert-center-copy{grid-column:1 / -1;grid-row:2}
  .start-hub-tools{grid-column:1 / -1;grid-row:3;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto}
  .google-search-form{min-width:0;width:100%}
  .homepage-button b{display:none}.homepage-button{width:38px;padding:0;justify-content:center}
}


/* V126 — Google search interaction fix */
.google-search-form button{
  order:-1 !important;
  margin-left:0 !important;
  margin-right:2px !important;
  flex:0 0 27px !important;
}
.google-search-form input{
  order:1 !important;
}
.google-search-form .google-word{
  order:2 !important;
}


/* V127 — Google search remains interactive during news refresh */
.start-hub-tools,
.google-search-form,
.google-search-form *{
  pointer-events:auto !important;
}
.google-search-form{
  position:relative;
  z-index:20;
}
.google-search-form input{
  user-select:text;
  -webkit-user-select:text;
}


/* V128 — Alert controls stay attached to the alert block, on its left side */
.alert-center-card{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.alert-status-group{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}
.alert-status-group .alert-status-icon{order:0 !important}
.alert-status-group .alert-center-copy{order:1 !important; flex:1 1 auto}
.alert-status-group .alert-center-actions{
  order:2 !important;
  flex:0 0 auto;
  margin-inline-start:2px;
}
.start-hub-tools{
  flex:0 1 430px !important;
  margin-inline-start:0 !important;
}

@media(max-width:1000px){
  .alert-center-card{flex-wrap:wrap !important}
  .alert-status-group{flex:1 1 100%}
  .start-hub-tools{flex:1 1 100% !important}
}

@media(max-width:700px){
  .alert-center-card{display:block !important}
  .alert-status-group{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    gap:7px 9px !important;
  }
  .alert-status-group .alert-status-icon{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:start;
  }
  .alert-status-group .alert-center-copy{
    grid-column:2 !important;
    grid-row:1 !important;
  }
  .alert-status-group .alert-center-actions{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    justify-self:end !important;
    margin-top:2px;
  }
  .start-hub-tools{
    margin-top:8px !important;
  }
}


/* V129 — Home Front alert polish */
.alert-primary-wrap{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  flex:1 1 auto;
}
.alert-primary-wrap .alert-status-group{
  flex:0 0 auto !important;
}
.alert-primary-wrap .alert-disclaimer{
  margin:2px 0 0 48px !important;
  color:#98a2b3 !important;
  font-size:7.6px !important;
  line-height:1.35 !important;
  text-align:right !important;
  max-width:720px;
}
.alert-center-eyebrow b{
  font-size:11px !important;
  font-weight:850 !important;
}
.alert-sound-quick,
.alert-settings-button{
  height:31px !important;
  padding:0 8px !important;
  gap:5px !important;
  font-size:8.8px !important;
  border-radius:9px !important;
}
.alert-sound-quick svg,
.alert-settings-button svg{
  width:13px !important;
  height:13px !important;
}

@media(max-width:1000px){
  .alert-primary-wrap{
    flex:1 1 100%;
  }
}
@media(max-width:700px){
  .alert-primary-wrap .alert-disclaimer{
    margin:3px 0 0 0 !important;
    font-size:7px !important;
    text-align:right !important;
  }
  .alert-sound-quick,
  .alert-settings-button{
    height:30px !important;
    padding:0 7px !important;
    font-size:8.4px !important;
  }
}


/* =========================================================
   V130 — restore Home Front area to one compact thin bar
   ========================================================= */
.alert-center{
  margin-top:10px !important;
}
.alert-center-card{
  min-height:62px !important;
  height:auto !important;
  max-height:none !important;
  padding:9px 11px !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  overflow:hidden !important;
}
.alert-primary-wrap{
  display:block !important;
  flex:1 1 auto !important;
  min-width:360px !important;
  max-width:none !important;
}
.alert-primary-wrap .alert-status-group{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  width:100% !important;
  min-height:0 !important;
}
.alert-primary-wrap .alert-center-copy{
  flex:1 1 auto !important;
  min-width:170px !important;
}
.alert-primary-wrap .alert-disclaimer{
  display:block !important;
  margin:1px 0 0 48px !important;
  max-width:620px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.15 !important;
}
.alert-primary-wrap .alert-center-actions{
  flex:0 0 auto !important;
  margin-inline-start:4px !important;
}
.start-hub-tools{
  flex:0 1 430px !important;
  min-width:310px !important;
  max-width:430px !important;
  margin-inline-start:0 !important;
  align-self:center !important;
}
.google-search-form,
.homepage-button{
  height:34px !important;
}
.google-search-form{
  min-width:210px !important;
}
.alert-status-icon{
  width:36px !important;
  height:36px !important;
  flex:0 0 36px !important;
}
.alert-center-copy > strong{
  font-size:14px !important;
  line-height:1.2 !important;
}
.alert-center-eyebrow{
  margin-bottom:1px !important;
}

@media(max-width:1100px){
  .alert-center-card{
    flex-wrap:nowrap !important;
  }
  .alert-primary-wrap{
    min-width:300px !important;
  }
  .start-hub-tools{
    min-width:260px !important;
    max-width:360px !important;
    flex-basis:360px !important;
  }
  .homepage-button b{
    display:none !important;
  }
  .homepage-button{
    width:38px !important;
    padding:0 !important;
    justify-content:center !important;
  }
}

@media(max-width:820px){
  .alert-center-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    padding:9px !important;
    overflow:visible !important;
  }
  .alert-primary-wrap{
    min-width:0 !important;
    width:100% !important;
  }
  .alert-primary-wrap .alert-status-group{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) auto !important;
    align-items:center !important;
  }
  .alert-primary-wrap .alert-status-icon{
    grid-column:1 !important;
  }
  .alert-primary-wrap .alert-center-copy{
    grid-column:2 !important;
  }
  .alert-primary-wrap .alert-center-actions{
    grid-column:3 !important;
    display:flex !important;
  }
  .alert-primary-wrap .alert-disclaimer{
    margin:2px 0 0 45px !important;
    white-space:normal !important;
    font-size:6.9px !important;
  }
  .start-hub-tools{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
  }
}

@media(max-width:520px){
  .alert-primary-wrap .alert-status-group{
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
  }
  .alert-primary-wrap .alert-status-icon{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:start !important;
  }
  .alert-primary-wrap .alert-center-copy{
    grid-column:2 !important;
    grid-row:1 !important;
  }
  .alert-primary-wrap .alert-center-actions{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    justify-self:end !important;
    margin-top:2px !important;
  }
  .alert-primary-wrap .alert-disclaimer{
    margin:2px 0 0 0 !important;
  }
}


/* =========================================================
   V131 — alert bar layout correction
   Left: Google + homepage | Right: Home Front + actions
   ========================================================= */
.alert-center-card{
  display:grid !important;
  grid-template-columns:minmax(320px,430px) minmax(0,1fr) !important;
  grid-template-areas:"tools main" !important;
  align-items:center !important;
  column-gap:12px !important;
}
.start-hub-tools{
  grid-area:tools !important;
  order:0 !important;
  margin:0 !important;
  min-width:300px !important;
  max-width:430px !important;
  justify-self:start !important;
  align-self:center !important;
}
.alert-primary-wrap{
  grid-area:main !important;
  order:0 !important;
  min-width:0 !important;
  justify-self:stretch !important;
}
.alert-primary-wrap .alert-status-group{
  width:100% !important;
}
.alert-primary-wrap .alert-disclaimer{
  margin:3px 0 0 46px !important;
  max-width:720px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.alert-center-copy > strong,
#alertStateLabel{
  font-size:15px !important;
}
.alert-sound-quick,
.alert-settings-button{
  transform:scale(.96);
  transform-origin:center;
}
@media(max-width:1100px){
  .alert-center-card{
    grid-template-columns:minmax(260px,380px) minmax(0,1fr) !important;
  }
  .start-hub-tools{
    min-width:250px !important;
    max-width:360px !important;
  }
}
@media(max-width:820px){
  .alert-center-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:"main" "tools" !important;
    gap:7px !important;
  }
  .start-hub-tools{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-self:stretch !important;
  }
  .alert-primary-wrap .alert-disclaimer{
    margin:2px 0 0 0 !important;
    white-space:normal !important;
  }
}


/* =========================================================
   V133 — refined compact alert bar
   Right: Home Front Command + settings
   Left: homepage button + Google search
   ========================================================= */
.alert-center-card{
  display:flex !important;
  flex-direction:row-reverse !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  min-height:0 !important;
  height:auto !important;
  padding:10px 14px !important;
  overflow:hidden !important;
}
.alert-primary-wrap{
  flex:1 1 auto !important;
  min-width:340px !important;
  max-width:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  gap:6px !important;
}
.alert-primary-wrap .alert-status-group{
  width:100% !important;
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto !important;
  grid-template-areas:
    "icon copy copy"
    "icon actions actions" !important;
  align-items:center !important;
  column-gap:10px !important;
  row-gap:6px !important;
  min-height:0 !important;
}
.alert-primary-wrap .alert-status-icon{
  grid-area:icon !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  align-self:start !important;
}
.alert-primary-wrap .alert-center-copy{
  grid-area:copy !important;
  min-width:0 !important;
  width:100% !important;
  text-align:right !important;
}
.alert-primary-wrap .alert-center-eyebrow{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
}
.alert-center-copy > strong,
#alertStateLabel{
  font-size:16px !important;
  line-height:1.2 !important;
}
#alertLastCheck{
  font-size:12px !important;
}
.alert-primary-wrap .alert-center-actions{
  grid-area:actions !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin:0 !important;
}
.alert-sound-quick,
.alert-settings-button{
  height:32px !important;
  padding:0 11px !important;
  font-size:12px !important;
  transform:none !important;
}
.alert-primary-wrap .alert-disclaimer{
  display:none !important;
}
.start-hub-tools{
  flex:0 0 420px !important;
  min-width:300px !important;
  max-width:420px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  margin:0 !important;
  align-self:center !important;
}
.homepage-button{
  order:1 !important;
  flex:0 0 auto !important;
  height:34px !important;
  white-space:nowrap !important;
}
.google-search-form{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  height:34px !important;
}
.google-search-form input{
  min-width:0 !important;
}
@media(max-width:1100px){
  .start-hub-tools{
    flex-basis:360px !important;
    min-width:260px !important;
    max-width:360px !important;
  }
  .homepage-button b{
    display:none !important;
  }
  .homepage-button{
    width:40px !important;
    padding:0 !important;
    justify-content:center !important;
  }
}
@media(max-width:820px){
  .alert-center-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:10px !important;
  }
  .alert-primary-wrap{
    min-width:0 !important;
    width:100% !important;
    align-items:stretch !important;
  }
  .alert-primary-wrap .alert-status-group{
    grid-template-columns:38px minmax(0,1fr) !important;
    grid-template-areas:
      "icon copy"
      "actions actions" !important;
  }
  .alert-primary-wrap .alert-status-icon{
    align-self:start !important;
  }
  .alert-primary-wrap .alert-center-actions{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }
  .start-hub-tools{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-content:space-between !important;
  }
}
@media(max-width:560px){
  .start-hub-tools{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    gap:8px !important;
  }
  .homepage-button{
    order:1 !important;
    width:auto !important;
    padding:0 10px !important;
  }
  .homepage-button b{
    display:inline !important;
  }
  .google-search-form{
    order:2 !important;
    width:100% !important;
  }
}


/* =========================================================
   V133 — corrected alert bar: thin single row desktop
   ========================================================= */
.alert-center{margin-top:10px !important;}
.alert-center-card{
  display:grid !important;
  grid-template-columns:minmax(300px, 1fr) minmax(420px, 520px) !important;
  grid-template-areas:"tools main" !important;
  align-items:center !important;
  column-gap:16px !important;
  row-gap:0 !important;
  min-height:74px !important;
  height:74px !important;
  max-height:74px !important;
  padding:10px 14px !important;
  overflow:hidden !important;
}
.start-hub-tools{
  grid-area:tools !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  min-width:0 !important;
  max-width:none !important;
  width:100% !important;
  align-self:center !important;
  margin:0 !important;
  direction:ltr !important;
}
.homepage-button{
  order:1 !important;
  flex:0 0 auto !important;
  height:34px !important;
  padding:0 11px !important;
  font-size:10px !important;
  white-space:nowrap !important;
}
.google-search-form{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:360px !important;
  width:100% !important;
  height:34px !important;
}
.google-search-form input{min-width:0 !important;}
.alert-primary-wrap{
  grid-area:main !important;
  min-width:0 !important;
  width:100% !important;
  max-width:520px !important;
  justify-self:end !important;
  align-self:center !important;
}
.alert-primary-wrap .alert-disclaimer{
  display:none !important;
}
.alert-primary-wrap .alert-status-group{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) !important;
  grid-template-areas:
    "icon copy"
    "icon actions" !important;
  align-items:center !important;
  column-gap:10px !important;
  row-gap:6px !important;
  width:100% !important;
  min-height:0 !important;
}
.alert-primary-wrap .alert-status-icon{
  grid-area:icon !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  align-self:start !important;
}
.alert-primary-wrap .alert-center-copy{
  grid-area:copy !important;
  min-width:0 !important;
  width:100% !important;
}
.alert-primary-wrap .alert-center-eyebrow{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
}
.alert-center-copy > strong, #alertStateLabel{
  font-size:16px !important;
  line-height:1.2 !important;
}
#alertLastCheck{font-size:12px !important;}
.alert-primary-wrap .alert-center-actions{
  grid-area:actions !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin:0 !important;
}
.alert-sound-quick, .alert-settings-button{
  height:32px !important;
  padding:0 11px !important;
  font-size:12px !important;
  transform:none !important;
}
@media(max-width:1100px){
  .alert-center-card{
    grid-template-columns:minmax(240px, 1fr) minmax(360px, 460px) !important;
    height:76px !important;
    max-height:76px !important;
  }
  .google-search-form{max-width:320px !important;}
  .homepage-button b{display:none !important;}
  .homepage-button{width:40px !important; padding:0 !important; justify-content:center !important;}
}
@media(max-width:820px){
  .alert-center-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:"main" "tools" !important;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
    gap:8px !important;
    padding:10px !important;
  }
  .alert-primary-wrap{max-width:none !important; justify-self:stretch !important;}
  .start-hub-tools{justify-content:space-between !important;}
}
@media(max-width:560px){
  .alert-primary-wrap .alert-status-group{
    grid-template-columns:38px minmax(0,1fr) !important;
    grid-template-areas:
      "icon copy"
      "actions actions" !important;
  }
  .alert-primary-wrap .alert-center-actions{flex-wrap:wrap !important;}
  .start-hub-tools{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    gap:8px !important;
  }
  .homepage-button{width:auto !important; padding:0 10px !important;}
  .homepage-button b{display:inline !important;}
  .google-search-form{max-width:none !important;}
}

/* =========================================================
   V137 — alert bar final layout: right alert block, left Google tools
   ========================================================= */
.alert-center{margin-top:10px !important;}
.alert-center-card{
  display:flex !important;
  flex-direction:row-reverse !important;
  direction:ltr !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:16px !important;
  min-height:72px !important;
  height:auto !important;
  max-height:none !important;
  padding:10px 14px !important;
  overflow:hidden !important;
}
.alert-primary-wrap{
  direction:rtl !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:4px !important;
  flex:0 1 520px !important;
  width:auto !important;
  max-width:520px !important;
  min-width:320px !important;
  margin:0 !important;
}
.alert-primary-wrap .alert-status-group{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 34px !important;
  grid-template-areas:
    "copy icon"
    "actions icon" !important;
  align-items:start !important;
  column-gap:10px !important;
  row-gap:6px !important;
  width:100% !important;
  min-height:0 !important;
}
.alert-primary-wrap .alert-status-icon{
  grid-area:icon !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  align-self:start !important;
}
.alert-primary-wrap .alert-center-copy{
  grid-area:copy !important;
  min-width:0 !important;
  width:100% !important;
}
.alert-primary-wrap .alert-center-eyebrow{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
}
.alert-primary-wrap .alert-center-copy > strong,
.alert-primary-wrap #alertStateLabel{
  color:#344054 !important;
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
}
.alert-primary-wrap #alertLastCheck{
  color:#98a2b3 !important;
  font-size:11px !important;
}
.alert-primary-wrap .alert-center-actions{
  grid-area:actions !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin:0 !important;
}
.alert-sound-quick,
.alert-settings-button{
  height:30px !important;
  padding:0 10px !important;
  font-size:11px !important;
  border-radius:10px !important;
}
.alert-primary-wrap .alert-disclaimer{display:none !important;}
.start-hub-tools{
  direction:ltr !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex:0 1 430px !important;
  min-width:260px !important;
  max-width:430px !important;
  width:100% !important;
  margin:0 !important;
}
.google-search-form{
  order:1 !important;
  flex:1 1 260px !important;
  min-width:0 !important;
  max-width:290px !important;
  width:100% !important;
  height:34px !important;
}
.google-search-form button{cursor:pointer !important;}
.homepage-button{
  order:2 !important;
  flex:0 0 auto !important;
  height:34px !important;
  padding:0 11px !important;
  font-size:10px !important;
  white-space:nowrap !important;
}
@media (max-width: 980px){
  .alert-center-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:10px !important;
  }
  .alert-primary-wrap,
  .start-hub-tools{
    max-width:none !important;
    min-width:0 !important;
    width:100% !important;
  }
  .start-hub-tools{justify-content:space-between !important;}
}
@media (max-width: 640px){
  .alert-primary-wrap .alert-status-group{
    grid-template-columns:minmax(0,1fr) 30px !important;
    row-gap:6px !important;
  }
  .alert-primary-wrap #alertStateLabel,
  .alert-primary-wrap .alert-center-copy > strong{font-size:16px !important;}
  .alert-sound-quick,
  .alert-settings-button,
  .homepage-button,
  .google-search-form{height:32px !important;}
  .start-hub-tools{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
  }
  .google-search-form{max-width:none !important;}
}

/* =========================================================
   V137 — final alert bar alignment
   Right: Home Front Command + its settings
   Left: Homepage button + Google search
   Thin, single-row desktop bar
   ========================================================= */
.alert-center{margin-top:10px !important;}
.alert-center-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:18px !important;
  min-height:68px !important;
  height:auto !important;
  max-height:none !important;
  padding:10px 14px !important;
  overflow:hidden !important;
  direction:ltr !important;
}
.start-hub-tools{
  grid-column:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  min-width:0 !important;
  width:100% !important;
  max-width:460px !important;
  margin:0 !important;
  direction:ltr !important;
}
.google-search-form{
  order:1 !important;
  flex:1 1 300px !important;
  min-width:0 !important;
  max-width:320px !important;
  width:100% !important;
  height:34px !important;
}
.google-search-form button{cursor:pointer !important;}
.homepage-button{
  order:2 !important;
  flex:0 0 auto !important;
  height:34px !important;
  padding:0 11px !important;
  font-size:10px !important;
  white-space:nowrap !important;
}
.alert-primary-wrap{
  grid-column:2 !important;
  min-width:340px !important;
  max-width:540px !important;
  width:auto !important;
  margin:0 !important;
  justify-self:end !important;
  align-self:center !important;
  direction:rtl !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  gap:4px !important;
}
.alert-primary-wrap .alert-status-group{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 34px !important;
  grid-template-areas:
    "copy icon"
    "actions icon" !important;
  align-items:start !important;
  column-gap:10px !important;
  row-gap:6px !important;
  width:100% !important;
  min-height:0 !important;
}
.alert-primary-wrap .alert-status-icon{
  grid-area:icon !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  align-self:start !important;
}
.alert-primary-wrap .alert-center-copy{
  grid-area:copy !important;
  min-width:0 !important;
  width:100% !important;
  text-align:right !important;
}
.alert-primary-wrap .alert-center-eyebrow{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
}
.alert-primary-wrap .alert-center-copy > strong,
.alert-primary-wrap #alertStateLabel{
  color:#344054 !important;
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
}
.alert-primary-wrap #alertLastCheck{
  color:#98a2b3 !important;
  font-size:11px !important;
}
.alert-primary-wrap .alert-center-actions{
  grid-area:actions !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  width:100% !important;
  margin:0 !important;
}
.alert-sound-quick,
.alert-settings-button{
  height:30px !important;
  padding:0 10px !important;
  font-size:11px !important;
  border-radius:10px !important;
}
.alert-primary-wrap .alert-disclaimer{display:none !important;}
@media (max-width: 980px){
  .alert-center-card{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:10px !important;
  }
  .alert-primary-wrap,
  .start-hub-tools{
    grid-column:1 !important;
    max-width:none !important;
    min-width:0 !important;
    width:100% !important;
  }
  .alert-primary-wrap{order:1 !important; justify-self:stretch !important;}
  .start-hub-tools{order:2 !important; justify-content:space-between !important;}
}
@media (max-width: 640px){
  .alert-primary-wrap .alert-status-group{
    grid-template-columns:minmax(0,1fr) 30px !important;
    row-gap:6px !important;
  }
  .alert-primary-wrap #alertStateLabel,
  .alert-primary-wrap .alert-center-copy > strong{font-size:16px !important;}
  .alert-sound-quick,
  .alert-settings-button,
  .homepage-button,
  .google-search-form{height:32px !important;}
  .start-hub-tools{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
  }
  .google-search-form{max-width:none !important;}
}


/* =========================================================
   V137 — alert strip definitive desktop layout
   Left: Google + homepage | Right: Home Front Command + buttons
   ========================================================= */
.alert-center{margin-top:10px!important;}
.alert-center-card{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;direction:ltr!important;gap:16px!important;min-height:64px!important;max-height:64px!important;height:64px!important;padding:8px 14px!important;overflow:hidden!important;}
.alert-center-card>*{margin:0!important;}
.start-hub-tools{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex:0 1 460px!important;min-width:300px!important;max-width:460px!important;width:auto!important;direction:ltr!important;order:1!important;}
.google-search-form{display:flex!important;align-items:center!important;gap:6px!important;flex:1 1 310px!important;min-width:0!important;max-width:320px!important;width:100%!important;height:34px!important;margin:0!important;}
.google-search-form input{min-width:0!important;flex:1 1 auto!important;}
.google-search-form button{cursor:pointer!important;flex:0 0 28px!important;}
.homepage-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex:0 0 auto!important;height:34px!important;padding:0 11px!important;font-size:10px!important;white-space:nowrap!important;margin:0!important;}
.alert-primary-wrap{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:4px!important;flex:0 1 560px!important;min-width:340px!important;max-width:560px!important;width:auto!important;direction:rtl!important;order:2!important;}
.alert-status-group{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:10px!important;width:100%!important;direction:rtl!important;}
.alert-primary-textblock{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:6px!important;min-width:0!important;flex:1 1 auto!important;}
.alert-status-icon{width:34px!important;height:34px!important;flex:0 0 34px!important;align-self:flex-start!important;}
.alert-center-copy{display:block!important;min-width:0!important;width:auto!important;text-align:right!important;}
.alert-center-eyebrow{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;margin:0!important;white-space:nowrap!important;}
#alertStateLabel{font-size:18px!important;font-weight:900!important;line-height:1.15!important;color:#344054!important;}
#alertLastCheck{font-size:11px!important;color:#98a2b3!important;}
.alert-center-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important;}
.alert-sound-quick,.alert-settings-button{height:30px!important;padding:0 10px!important;font-size:11px!important;border-radius:10px!important;white-space:nowrap!important;}
.alert-disclaimer{display:none!important;}
@media(max-width:980px){.alert-center-card{display:grid!important;grid-template-columns:1fr!important;min-height:unset!important;max-height:none!important;height:auto!important;gap:10px!important;padding:10px!important;}.start-hub-tools,.alert-primary-wrap{max-width:none!important;min-width:0!important;width:100%!important;}.start-hub-tools{order:2!important;justify-content:space-between!important;}.alert-primary-wrap{order:1!important;}.alert-status-group{justify-content:space-between!important;}}
@media(max-width:640px){.start-hub-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}.google-search-form{max-width:none!important;height:32px!important;}.homepage-button{height:32px!important;}.alert-center-eyebrow{white-space:normal!important;}.alert-sound-quick,.alert-settings-button{height:32px!important;}}

/* =========================================================
   V137 — MOBILE ONLY cleanup
   Desktop intentionally unchanged from the accepted V136 layout.
   ========================================================= */
@media (max-width: 700px) {
  /* 1) Phone: no Google search strip. */
  .alert-center .google-search-form {
    display: none !important;
  }

  /* 2) Phone: remove the green automatic-refresh pill from the topbar. */
  .topbar .auto-refresh-pill {
    display: none !important;
  }

  /* 3) Reduce header crowding; these pages remain linked in the footer. */
  .topbar #aboutBtn,
  .topbar #contactBtn {
    display: none !important;
  }

  .topbar-inner {
    gap: 8px !important;
  }
  .topbar-actions {
    gap: 4px !important;
    flex: 0 0 auto !important;
  }
  .brand-copy small {
    display: none !important;
  }
  .brand-copy strong {
    white-space: nowrap !important;
  }

  /* Google is gone, so do not reserve a full-width utility row. */
  .alert-center .start-hub-tools {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  .alert-center .homepage-button {
    height: 31px !important;
    min-height: 31px !important;
    padding-inline: 9px !important;
    font-size: 9.5px !important;
  }

  /* Compact the Home Front controls without changing functionality. */
  .alert-center-card {
    gap: 6px !important;
    padding: 8px !important;
  }
  .alert-primary-wrap .alert-center-actions {
    gap: 5px !important;
  }
  .alert-sound-quick,
  .alert-settings-button {
    height: 30px !important;
    padding-inline: 8px !important;
    font-size: 9.5px !important;
  }

  /* News categories stay readable and scroll horizontally instead of squeezing. */
  .news-nav-inner {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 2px !important;
  }
  .news-nav-inner::-webkit-scrollbar {
    display: none !important;
  }
  .news-nav .nav-item {
    flex: 0 0 auto !important;
    padding-inline: 10px !important;
  }
  .news-nav .nav-separator {
    flex: 0 0 1px !important;
  }

  /* More usable horizontal space for cards on phones. */
  .shell {
    width: min(calc(100% - 16px), var(--shell)) !important;
  }
}

@media (max-width: 470px) {
  .topbar-actions {
    gap: 3px !important;
  }
  .topbar .icon-button,
  .topbar .header-action-button,
  .topbar .top-settings-btn {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
  }
  .brand-copy strong {
    font-size: 16px !important;
  }
  .news-nav .nav-item {
    font-size: 11.5px !important;
    padding-inline: 9px !important;
  }
}

/* =========================================================
   V139 — MOBILE ONLY: remove homepage button + slimmer Home Front strip
   User request: on mobile only, hide “הפוך לדף הבית” and reduce the
   overall height / visual density of the alert strip.
   ========================================================= */
@media (max-width: 700px) {
  /* Remove the homepage button on mobile. */
  .alert-center .homepage-button {
    display: none !important;
  }

  /* The utility area is no longer needed on mobile once Google and
     homepage are removed. */
  .alert-center .start-hub-tools {
    display: none !important;
  }

  /* Make the Home Front strip slimmer and tighter. */
  .alert-center {
    margin-top: 8px !important;
  }
  .alert-center-card {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 6px 8px !important;
    gap: 4px !important;
    border-radius: 16px !important;
  }
  .alert-primary-wrap {
    gap: 0 !important;
    min-width: 0 !important;
  }
  .alert-status-group {
    gap: 8px !important;
    align-items: center !important;
  }
  .alert-status-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }
  .alert-status-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
  .alert-primary-textblock {
    gap: 4px !important;
  }
  .alert-center-eyebrow {
    gap: 5px !important;
    align-items: center !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  #alertStateLabel {
    font-size: 15px !important;
    line-height: 1.1 !important;
  }
  #alertLastCheck {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
  .alert-center-actions {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  .alert-sound-quick,
  .alert-settings-button {
    height: 28px !important;
    min-height: 28px !important;
    padding-inline: 8px !important;
    font-size: 9.5px !important;
    border-radius: 9px !important;
  }
  .alert-sound-quick span,
  .alert-settings-button span {
    line-height: 1 !important;
  }
}

/* =========================================================
   V141 — Escalation Index entry points
   ========================================================= */
.escalation-nav-link{
  display:inline-flex !important;
  align-items:center;
  gap:5px;
  text-decoration:none;
  color:#3e4856;
  font-weight:850;
}
.escalation-nav-link b{
  min-width:23px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f3f5f7;
  border:1px solid #e2e7ec;
  color:#202833;
  font-size:9.5px;
  direction:ltr;
}
.escalation-teaser{
  margin:12px 0 0;
  min-height:62px;
  padding:10px 14px;
  display:grid;
  grid-template-columns:auto auto minmax(180px,1fr) auto;
  align-items:center;
  gap:16px;
  border:1px solid #e1e6ec;
  border-radius:14px;
  background:linear-gradient(135deg,#fff 0%,#fbfcfd 56%,#f6f8fa 100%);
  color:#101828;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(15,23,42,.035);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.escalation-teaser:hover{border-color:#cfd6df;box-shadow:0 9px 24px rgba(15,23,42,.06);transform:translateY(-1px)}
.escalation-teaser__brand{display:flex;align-items:center;gap:9px;min-width:150px}
.escalation-teaser__brand>div{display:flex;flex-direction:column;line-height:1.05}
.escalation-teaser__brand small{color:#8993a1;font-size:8px;font-weight:750;margin-bottom:4px}
.escalation-teaser__brand strong{font-size:15px;font-weight:900;letter-spacing:-.02em}
.escalation-teaser__pulse{width:10px;height:10px;border-radius:50%;background:#d84a3f;box-shadow:0 0 0 5px rgba(216,74,63,.08)}
.escalation-teaser__reading{display:flex;align-items:baseline;gap:4px;direction:ltr;white-space:nowrap}
.escalation-teaser__reading>strong{font-size:27px;line-height:1;font-weight:900;letter-spacing:-.04em}
.escalation-teaser__reading>span{font-size:9px;color:#8a94a2;font-weight:750}
.escalation-teaser__reading>b{direction:rtl;margin-left:7px;padding:4px 7px;border-radius:999px;background:#fff1ed;color:#a83b31;border:1px solid #f0d2cd;font-size:8.5px;font-weight:850}
.escalation-teaser__trend{min-width:0;color:#717c8b;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.escalation-teaser__cta{font-size:9px;font-weight:900;color:#3f4957;white-space:nowrap}
.escalation-teaser__cta i{font-style:normal;margin-right:3px}
html[data-theme="dark"] .escalation-teaser{background:linear-gradient(135deg,#151c25,#121922);border-color:#2b3541;color:#f1f3f6}
html[data-theme="dark"] .escalation-teaser__reading>b{background:#2a1d1d;border-color:#4a2927;color:#f0a29a}
html[data-theme="dark"] .escalation-nav-link{color:#c5ccd5}
html[data-theme="dark"] .escalation-nav-link b{background:#171f29;border-color:#303a46;color:#e7ebef}
@media(max-width:700px){
  .escalation-nav-link,.escalation-nav-separator{display:none !important}
  .escalation-teaser{
    min-height:50px;
    margin-top:8px;
    padding:8px 10px;
    grid-template-columns:minmax(105px,1fr) auto auto;
    gap:8px;
    border-radius:12px;
  }
  .escalation-teaser__brand{min-width:0;gap:7px}
  .escalation-teaser__brand small{font-size:6.8px;margin-bottom:2px}
  .escalation-teaser__brand strong{font-size:12px}
  .escalation-teaser__pulse{width:8px;height:8px;box-shadow:0 0 0 4px rgba(216,74,63,.07)}
  .escalation-teaser__reading>strong{font-size:21px}
  .escalation-teaser__reading>span{font-size:7px}
  .escalation-teaser__reading>b{font-size:7px;padding:3px 5px;margin-left:4px}
  .escalation-teaser__trend{display:none}
  .escalation-teaser__cta{font-size:0}
  .escalation-teaser__cta i{font-size:15px;margin:0}
}
@media(max-width:390px){
  .escalation-teaser{grid-template-columns:minmax(92px,1fr) auto 18px;padding-inline:8px;gap:5px}
  .escalation-teaser__reading>b{display:none}
}


/* =========================================================
   V141 — brand slogan parity for mobile-first indexing + UX
   Keep the site slogan visible beneath the logo on every viewport.
   ========================================================= */
.brand-copy small {
  display:block !important;
}
@media (max-width:700px) {
  .topbar .brand-copy {
    gap:2px !important;
    min-width:0 !important;
  }
  .topbar .brand-copy small {
    display:block !important;
    font-size:7.4px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
    max-width:145px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}
@media (max-width:390px) {
  .topbar .brand-copy small {
    font-size:7px !important;
    max-width:128px !important;
  }
}


/* =========================================================
   V142 — DESKTOP ONLY: three-box utility strip
   Google | Escalation Index | Home Front Command
   Mobile keeps the compact V139/V141 behavior.
   ========================================================= */
@media (min-width: 981px) {
  #alertCenter { margin-top:10px !important; }
  #alertCenter .kp-desktop-triple-strip {
    width:100%;
    display:grid;
    grid-template-columns:minmax(280px,1fr) minmax(250px,.82fr) minmax(360px,1.12fr);
    gap:10px;
    align-items:stretch;
    direction:ltr;
  }
  #alertCenter .kp-strip-box {
    box-sizing:border-box;
    min-height:66px;
    height:66px;
    border:1px solid #e3e7ec;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 18px rgba(16,24,40,.04);
    overflow:hidden;
  }
  #alertCenter .kp-google-box {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    max-width:none !important;
    width:100% !important;
    padding:10px 12px !important;
    margin:0 !important;
    direction:ltr !important;
  }
  #alertCenter .kp-google-box .google-search-form {
    display:flex !important;
    width:100% !important;
    max-width:none !important;
    height:38px !important;
    margin:0 !important;
    box-shadow:none !important;
  }
  #alertCenter .kp-google-box .homepage-button { display:none !important; }
  #alertCenter .kp-escalation-box {
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    padding:8px 12px;
    text-decoration:none;
    color:#f8fafc;
    background:linear-gradient(135deg,#101317 0%,#171b21 58%,#101317 100%);
    border-color:#272d35;
    direction:ltr;
    isolation:isolate;
  }
  #alertCenter .kp-escalation-box::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:radial-gradient(circle at 25% 50%,rgba(66,211,146,.10),transparent 44%);
    z-index:-1;
  }
  #alertCenter .kp-escalation-radar {
    width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
    border:1px solid rgba(255,255,255,.18);position:relative;
    background:radial-gradient(circle,rgba(51,209,122,.18) 0 12%,transparent 13% 100%);
  }
  #alertCenter .kp-escalation-radar::before,
  #alertCenter .kp-escalation-radar::after {content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.10);}
  #alertCenter .kp-escalation-radar::before{inset:7px}
  #alertCenter .kp-escalation-radar::after{inset:13px}
  #alertCenter .kp-escalation-radar i{position:absolute;width:16px;height:1px;background:#33d17a;transform-origin:0 50%;left:50%;top:50%;animation:kpRadarSweep 3.4s linear infinite;box-shadow:0 0 7px rgba(51,209,122,.7)}
  @keyframes kpRadarSweep{to{transform:rotate(360deg)}}
  #alertCenter .kp-escalation-copy {display:flex;flex-direction:column;min-width:0;direction:rtl;text-align:right;line-height:1.08}
  #alertCenter .kp-escalation-copy small{font-size:9px;color:#9aa4b2;font-weight:700;white-space:nowrap}
  #alertCenter .kp-escalation-copy strong{font-size:14px;color:#fff;font-weight:900;white-space:nowrap;margin-top:3px}
  #alertCenter .kp-escalation-value{display:grid;grid-template-columns:auto auto;grid-template-areas:"score unit" "level level";align-items:end;justify-items:end;column-gap:2px;direction:ltr}
  #alertCenter .kp-escalation-value b{grid-area:score;font-size:25px;line-height:.9;font-weight:950;color:#33d17a;letter-spacing:-1px}
  #alertCenter .kp-escalation-value em{grid-area:unit;font-style:normal;font-size:9px;color:#82909f;margin-bottom:2px}
  #alertCenter .kp-escalation-value small{grid-area:level;font-size:9px;color:#aeb8c4;font-weight:800;margin-top:4px;white-space:nowrap;direction:rtl}
  #alertCenter .kp-escalation-box[data-level="elevated"] .kp-escalation-value b{color:#f2c94c}
  #alertCenter .kp-escalation-box[data-level="high"] .kp-escalation-value b{color:#ff9f43}
  #alertCenter .kp-escalation-box[data-level="significant"] .kp-escalation-value b,
  #alertCenter .kp-escalation-box[data-level="exceptional"] .kp-escalation-value b{color:#ff5a5f}
  #alertCenter .kp-oref-box.alert-center-card {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:66px !important;
    height:66px !important;
    max-height:66px !important;
    padding:8px 12px !important;
    margin:0 !important;
    direction:rtl !important;
    gap:0 !important;
  }
  #alertCenter .kp-oref-box .alert-primary-wrap {
    width:100% !important;max-width:none !important;min-width:0 !important;
    flex:1 1 auto !important;display:flex !important;align-items:flex-end !important;
  }
  #alertCenter .kp-oref-box .alert-status-group {width:100% !important;justify-content:flex-start !important;}
  #alertCenter .kp-oref-box .alert-center-eyebrow {justify-content:flex-start !important;}
  #alertCenter .kp-oref-box .alert-center-actions {justify-content:flex-start !important;}
  html[data-theme="dark"] #alertCenter .kp-google-box{background:#151b24;border-color:#2b333e}
  /* The lower teaser is kept for mobile; on desktop the new center box replaces it. */
  .escalation-teaser { display:none !important; }
}

@media (max-width: 980px) {
  #alertCenter .kp-desktop-triple-strip { display:block !important; }
  #alertCenter .kp-google-box,
  #alertCenter .kp-escalation-box { display:none !important; }
  #alertCenter .kp-oref-box.alert-center-card { width:100% !important; }
}
@media (prefers-reduced-motion:reduce){#alertCenter .kp-escalation-radar i{animation:none!important}}


/* =========================================================
   V143 — definitive one-line utility strip on non-mobile widths
   Visual order: Google (left) | Escalation (center) | Home Front (right)
   Mobile remains Home Front only.
   ========================================================= */
@media (min-width:701px) {
  #alertCenter .kp-desktop-triple-strip {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,.88fr) minmax(0,1.16fr) !important;
    grid-template-rows:64px !important;
    align-items:stretch !important;
    gap:8px !important;
    width:100% !important;
    direction:ltr !important;
  }
  #alertCenter .kp-strip-box {
    min-width:0 !important;
    width:100% !important;
    min-height:64px !important;
    height:64px !important;
    max-height:64px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  #alertCenter .kp-google-box {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:8px 10px !important;
  }
  #alertCenter .kp-google-box .google-search-form {
    display:flex !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    height:36px !important;
  }
  #alertCenter .kp-escalation-box {
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) auto !important;
    align-items:center !important;
    min-width:0 !important;
    padding:7px 10px !important;
  }
  #alertCenter .kp-oref-box.alert-center-card {
    display:flex !important;
    min-width:0 !important;
    width:100% !important;
    min-height:64px !important;
    height:64px !important;
    max-height:64px !important;
    padding:7px 10px !important;
    overflow:hidden !important;
  }
  #alertCenter .kp-oref-box .alert-primary-wrap,
  #alertCenter .kp-oref-box .alert-status-group {
    min-width:0 !important;
    width:100% !important;
  }
  .escalation-teaser { display:none !important; }
}
@media (min-width:701px) and (max-width:930px) {
  #alertCenter .kp-desktop-triple-strip {
    grid-template-columns:minmax(0,.95fr) minmax(0,.82fr) minmax(0,1.23fr) !important;
    gap:6px !important;
  }
  #alertCenter .kp-escalation-radar { width:32px !important;height:32px !important; }
  #alertCenter .kp-escalation-copy small { display:none !important; }
  #alertCenter .kp-escalation-copy strong { font-size:12px !important; }
  #alertCenter .kp-escalation-value b { font-size:21px !important; }
  #alertCenter .kp-oref-box #alertLastCheck { display:none !important; }
  #alertCenter .kp-oref-box .alert-center-eyebrow b { font-size:12px !important; }
  #alertCenter .kp-oref-box .alert-sound-quick,
  #alertCenter .kp-oref-box .alert-settings-button { padding-inline:7px !important;font-size:9px !important; }
}
@media (max-width:700px) {
  #alertCenter .kp-desktop-triple-strip { display:block !important; }
  #alertCenter .kp-google-box,
  #alertCenter .kp-escalation-box { display:none !important; }
  #alertCenter .kp-oref-box.alert-center-card { display:flex !important;width:100% !important; }
}


/* =========================================================
   V144 — escalation index stays prominent at the TOP of Koteret Plus
   ========================================================= */
.kp-mobile-escalation-top{display:none}
@media(min-width:701px){
  #alertCenter .kp-escalation-box{grid-template-columns:34px minmax(0,1fr) auto auto !important;gap:7px !important;}
  #alertCenter .kp-escalation-cta{display:inline-flex;align-items:center;justify-content:center;height:27px;padding:0 8px;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:rgba(255,255,255,.07);color:#fff;font-size:8px;font-weight:900;white-space:nowrap;direction:rtl;}
  #alertCenter .kp-escalation-box:hover .kp-escalation-cta{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.23)}
  .escalation-teaser{display:none !important;}
}
@media(min-width:701px) and (max-width:930px){
  #alertCenter .kp-escalation-box{grid-template-columns:30px minmax(0,1fr) auto !important;}
  #alertCenter .kp-escalation-cta{grid-column:2 / 4;justify-self:end;height:18px;padding:0 6px;margin-top:-19px;font-size:6.8px;}
  #alertCenter .kp-escalation-copy strong{font-size:11.5px !important;}
  #alertCenter .kp-escalation-value b{font-size:19px !important;}
}
@media(max-width:700px){
  #alertCenter .kp-mobile-escalation-top{margin-top:6px;min-height:47px;width:100%;display:grid !important;grid-template-columns:9px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:7px 9px;color:#f8fafc;text-decoration:none;background:linear-gradient(135deg,#101419,#171c23 58%,#101419);border:1px solid #252c35;border-radius:13px;box-shadow:0 5px 18px rgba(16,24,40,.08);direction:rtl;}
  #alertCenter .kp-mobile-escalation-top__pulse{width:8px;height:8px;border-radius:50%;background:#33d17a;box-shadow:0 0 0 4px rgba(51,209,122,.09),0 0 12px rgba(51,209,122,.36);}
  #alertCenter .kp-mobile-escalation-top__copy{display:flex;flex-direction:column;min-width:0;line-height:1.04;text-align:right;}
  #alertCenter .kp-mobile-escalation-top__copy small{color:#8e99a8;font-size:6.8px;font-weight:750;white-space:nowrap;margin-bottom:3px;}
  #alertCenter .kp-mobile-escalation-top__copy strong{color:#fff;font-size:12px;font-weight:950;white-space:nowrap;}
  #alertCenter .kp-mobile-escalation-top__value{display:grid;grid-template-columns:auto auto;grid-template-areas:"score unit" "level level";align-items:end;justify-items:end;column-gap:1px;direction:ltr;white-space:nowrap;}
  #alertCenter .kp-mobile-escalation-top__value b{grid-area:score;font-size:20px;line-height:.9;color:#33d17a;font-weight:950;}
  #alertCenter .kp-mobile-escalation-top__value em{grid-area:unit;font-size:6.5px;font-style:normal;color:#7d8998;margin-bottom:1px;}
  #alertCenter .kp-mobile-escalation-top__value small{grid-area:level;font-size:6.7px;color:#aeb8c4;font-weight:800;margin-top:3px;direction:rtl;}
  #alertCenter .kp-mobile-escalation-top__cta{display:inline-flex;align-items:center;justify-content:center;height:27px;padding:0 7px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);color:#fff;font-size:7.4px;font-weight:900;white-space:nowrap;}
  #alertCenter .kp-mobile-escalation-top[data-level="elevated"] .kp-mobile-escalation-top__value b,#alertCenter .kp-mobile-escalation-top[data-level="elevated"] .kp-mobile-escalation-top__pulse{color:#f2c94c;background:#f2c94c}
  #alertCenter .kp-mobile-escalation-top[data-level="high"] .kp-mobile-escalation-top__value b,#alertCenter .kp-mobile-escalation-top[data-level="high"] .kp-mobile-escalation-top__pulse{color:#ff9f43;background:#ff9f43}
  #alertCenter .kp-mobile-escalation-top[data-level="significant"] .kp-mobile-escalation-top__value b,#alertCenter .kp-mobile-escalation-top[data-level="significant"] .kp-mobile-escalation-top__pulse,#alertCenter .kp-mobile-escalation-top[data-level="exceptional"] .kp-mobile-escalation-top__value b,#alertCenter .kp-mobile-escalation-top[data-level="exceptional"] .kp-mobile-escalation-top__pulse{color:#ff5a5f;background:#ff5a5f}
  .escalation-teaser{display:none !important;}
}
@media(max-width:390px){
  #alertCenter .kp-mobile-escalation-top{grid-template-columns:8px minmax(0,1fr) auto auto;gap:5px;padding-inline:7px;}
  #alertCenter .kp-mobile-escalation-top__copy small{display:none}
  #alertCenter .kp-mobile-escalation-top__copy strong{font-size:11px}
  #alertCenter .kp-mobile-escalation-top__value b{font-size:18px}
  #alertCenter .kp-mobile-escalation-top__value small{display:none}
  #alertCenter .kp-mobile-escalation-top__cta{font-size:6.8px;padding-inline:6px}
}

/* =========================================================
   V145 — definitive desktop triple-strip placement
   Fixes inherited <=980px grid-column/order rules that pushed Google
   into a second row. Desktop visual order: Google | Index | Home Front.
   ========================================================= */
@media (min-width:701px) {
  #alertCenter .kp-desktop-triple-strip {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr) !important;
    grid-template-rows:64px !important;
    grid-template-areas:"google escalation oref" !important;
    grid-auto-flow:column !important;
    align-items:stretch !important;
    gap:8px !important;
    width:100% !important;
    direction:ltr !important;
  }

  #alertCenter .kp-google-box {
    grid-area:google !important;
    grid-column:1 !important;
    grid-row:1 !important;
    order:0 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    min-width:0 !important;
    width:100% !important;
  }

  #alertCenter .kp-escalation-box {
    grid-area:escalation !important;
    grid-column:2 !important;
    grid-row:1 !important;
    order:0 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    min-width:0 !important;
    width:100% !important;
  }

  #alertCenter .kp-oref-box.alert-center-card {
    grid-area:oref !important;
    grid-column:3 !important;
    grid-row:1 !important;
    order:0 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    min-width:0 !important;
    width:100% !important;
  }
}

/* Keep the one-line desktop strip usable even on narrower desktop windows. */
@media (min-width:701px) and (max-width:930px) {
  #alertCenter .kp-desktop-triple-strip {
    grid-template-columns:minmax(0,.92fr) minmax(0,.96fr) minmax(0,1.12fr) !important;
    gap:6px !important;
  }
  #alertCenter .kp-google-box { padding:7px 8px !important; }
  #alertCenter .kp-escalation-box { padding:6px 8px !important; gap:5px !important; }
  #alertCenter .kp-escalation-radar { width:29px !important; height:29px !important; }
  #alertCenter .kp-escalation-copy small { display:none !important; }
  #alertCenter .kp-escalation-copy strong { font-size:11px !important; }
  #alertCenter .kp-escalation-value b { font-size:18px !important; }
  #alertCenter .kp-escalation-value small { font-size:7px !important; }
  #alertCenter .kp-escalation-cta { font-size:6.5px !important; padding-inline:5px !important; }
  #alertCenter .kp-oref-box.alert-center-card { padding:6px 8px !important; }
  #alertCenter .kp-oref-box #alertLastCheck { display:none !important; }
  #alertCenter .kp-oref-box .alert-center-eyebrow b { font-size:11px !important; }
  #alertCenter .kp-oref-box .alert-sound-quick,
  #alertCenter .kp-oref-box .alert-settings-button {
    height:28px !important;
    padding-inline:6px !important;
    font-size:8px !important;
  }
}
