﻿/* begilenu 2026 — דפי הפנים */

/* ---------- כותרת דף ---------- */
.page-head { background: var(--c-surface-2); border-bottom: 1px solid var(--c-border-soft); padding: 2rem 0 2.25rem; }
.page-head h1 { margin: 0 0 0.5rem; }
.page-head .lead { font-size: var(--fs-lg); color: var(--c-text-soft); max-width: 68ch; margin: 0; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--c-text-faint); }
.page-head-navy { background: var(--bg-navy); border-bottom: 0; color: #fff; }
.page-head-navy h1 { color: #fff; }
.page-head-navy .lead { color: var(--c-on-navy); }

/* ---------- פריסת דף עם צד ---------- */
.layout { display: grid; gap: 2rem; padding-block: 2.5rem 1rem; align-items: start; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; }
  .layout-right { grid-template-columns: 300px minmax(0, 1fr); }
}
.sidebar { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 980px) {
  .sidebar {
    position: sticky; top: calc(var(--h-header) + 1.25rem);
    max-height: calc(100vh - var(--h-header) - 2.5rem);
    overflow-y: auto; overscroll-behavior: contain;
  }
  /* בדף מוסד יש גם רצועת טאבים דביקה — הצד יורד מתחתיה */
  .layout-tabs .sidebar { top: calc(var(--h-header) + var(--h-tabs) + 1.25rem); max-height: calc(100vh - var(--h-header) - var(--h-tabs) - 2.5rem); }
}
.side-box { background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r); padding: 1.25rem; }
.side-box h2, .side-box h3 { font-size: var(--fs-lg); margin: 0 0 0.9rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--c-border-soft); }
.side-list a:not(.btn) { display: block; padding: 0.7rem 0; text-decoration: none; color: var(--c-text); font-size: var(--fs-base); font-weight: 600; min-height: var(--tap); }
.side-list a:hover { color: var(--bg-navy); text-decoration: underline; }
.side-list [aria-current] { color: var(--bg-navy); font-weight: 800; }

/* ---------- סינונים ---------- */
.filters { background: #fff; border: 2px solid var(--c-border); border-radius: var(--r); padding: 1.25rem; }
.filters h2 { font-size: var(--fs-lg); margin: 0 0 1rem; }
.filter-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%;
  min-height: var(--tap); padding: 0.75rem 1rem;
  background: var(--bg-navy-7); border: 2px solid var(--bg-navy-6); border-radius: var(--r-sm);
  font-weight: 700; color: var(--bg-navy); cursor: pointer;
}
.filter-toggle[aria-expanded='true'] .caret { transform: rotate(180deg); }
.filter-toggle .caret { transition: transform var(--t); }
@media (min-width: 900px) { .filter-toggle { display: none; } }
/* מתחת ל-900px הכפתור נושא את השם; מעליו הוא מוסתר, ולכן צריך כותרת גלויה */
.filters-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 900px) {
  .filters-title {
    position: static; width: auto; height: auto; margin: 0 0 1rem;
    overflow: visible; clip: auto; white-space: normal;
  }
}
.filter-body { display: grid; gap: 1.1rem; margin-top: 1rem; }
@media (min-width: 900px) { .filter-body { margin-top: 0; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem;
  border: 2px solid var(--c-border); border-radius: var(--r-pill);
  background: #fff; color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--bg-navy); background: var(--bg-navy-7); text-decoration: none; }
.chip[aria-pressed='true'], .chip[aria-current], .chip[aria-selected='true'] { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.chip:has(input:checked) { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--bg-dark); outline-offset: 2px; box-shadow: 0 0 0 6px var(--c-focus); }
button.chip { font-family: inherit; }

/* ---------- סרגל תוצאות ---------- */
.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; margin-bottom: 1.25rem;
}
.results-count { font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.results-count b { color: var(--bg-navy); }
.sort-field { display: flex; align-items: center; gap: 0.6rem; }
.sort-field label { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.sort-field select { min-height: 44px; width: auto; }

/* ---------- כרטיס מוסד ---------- */
.result-list { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.result {
  position: relative; display: grid; gap: 1rem;
  grid-template-columns: 1fr; align-items: start;
  background: #fff; border: 2px solid var(--c-border-soft); border-radius: var(--r); padding: 1.25rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.result:hover { border-color: var(--bg-navy-5); box-shadow: var(--shadow-m); }
@media (min-width: 640px) { .result { grid-template-columns: 120px minmax(0, 1fr) auto; } }
.result-logo {
  width: 120px; min-height: 92px; border-radius: var(--r-sm); background: var(--c-surface-2);
  display: grid; place-items: center; color: var(--bg-navy); font-weight: 900; text-align: center;
  padding: 0.5rem; font-size: var(--fs-sm); overflow: hidden;
}
.result-logo img { width: 100%; height: 100%; object-fit: contain; }
.result-main { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.result-title { font-size: var(--fs-h3); margin: 0; }
.result-title a { text-decoration: none; color: inherit; }
.result-title a::after { content: ''; position: absolute; inset: 0; }
.result-title a:hover { text-decoration: underline; }
.result-slogan { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }
.result-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.result-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--c-text-faint); }
.result-facts li { display: flex; align-items: center; gap: 0.35rem; }
.result-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; min-width: 170px; }
@media (max-width: 639px) { .result-side { min-width: 0; } }
.result .check { position: relative; z-index: 1; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); background: var(--c-surface-2); }
.result-promoted { border-color: var(--bg-gold-4); background: linear-gradient(180deg, var(--bg-gold-7) 0%, #fff 60px); }

/* סרגל ההשוואה הצף */
.compare-bar {
  position: fixed; inset-inline: 0; bottom: var(--proto-bar-h); z-index: 80;
  background: var(--bg-navy); color: #fff; box-shadow: 0 -6px 24px rgba(0, 28, 50, 0.22);
  /* מתחת ל-nav-backdrop (90) כדי שלא ירחף מעל מגירת המובייל */
}
.compare-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-block: 0.85rem; }
.compare-bar p { margin: 0; font-weight: 700; }
.compare-bar [data-compare-list] { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 400; color: var(--c-on-navy); }
.compare-bar [data-compare-list] li::after { content: '·'; padding-inline-start: 0.35rem; }
.compare-bar [data-compare-list] li:last-child::after { content: ''; }

/* ---------- עמוד מוסד ---------- */
.inst-hero { background: var(--bg-navy); color: #fff; padding: 2rem 0; }
.inst-hero-grid { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .inst-hero-grid { grid-template-columns: 110px minmax(0, 1fr) auto; } }
.inst-logo { width: 110px; height: 110px; border-radius: var(--r); background: #fff; display: grid; place-items: center; padding: 0.75rem; }
.inst-hero h1 { color: #fff; margin: 0 0 0.25rem; }
.inst-hero .slogan { color: var(--c-on-navy); font-size: var(--fs-lg); margin: 0 0 0.75rem; }
.inst-hero .facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--c-on-navy); }
.inst-cta { display: grid; gap: 0.6rem; min-width: 220px; }
.inst-phone {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  background: var(--bg-gold); color: var(--bg-dark); border-radius: var(--r); padding: 0.75rem 1.25rem;
  text-decoration: none; font-weight: 900;
}
.inst-phone:hover { background: var(--bg-gold-2); text-decoration: none; }
.inst-phone .label { font-size: var(--fs-xs); font-weight: 700; }
.inst-phone .num { font-size: 1.5rem; letter-spacing: 0.02em; direction: ltr; }

.inst-tabs { background: #fff; border-bottom: 1px solid var(--c-border-soft); position: sticky; top: var(--h-header); z-index: 40; }
.inst-tabs [role='tablist'] { display: flex; gap: 0.25rem; overflow-x: auto; list-style: none; margin: 0; padding: 0; }
.inst-tabs [role='tab'] {
  min-height: 56px; padding: 0 1.1rem; border: 0; border-bottom: 4px solid transparent;
  background: transparent; font-weight: 700; color: var(--c-text-soft); cursor: pointer; white-space: nowrap;
}
.inst-tabs [role='tab']:hover { color: var(--bg-navy); }
.inst-tabs [role='tab'][aria-selected='true'] { color: var(--bg-navy); border-bottom-color: var(--bg-gold); }

/* max-width נפרד כדי שלא יגבר על .wrap-narrow בדפי תוכן */
.prose-measure { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { font-size: var(--fs-base); }
.prose img { border-radius: var(--r); margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem; border-inline-start: 5px solid var(--bg-gold);
  background: var(--bg-gold-7); border-radius: var(--r-sm); font-size: var(--fs-lg);
}

.spec-list { display: grid; gap: 0; margin: 1.5rem 0; }
.spec-list div { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--c-border-soft); }
.spec-list dt { font-weight: 800; min-width: 180px; color: var(--bg-navy); margin: 0; }
.spec-list dd { margin: 0; color: var(--c-text-soft); }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 1.25rem 0; }
.gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-3); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.map-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border-soft); background: var(--c-surface-2); aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--c-text-faint); }

/* ---------- מגזין ---------- */
.mag-hero { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .mag-hero { grid-template-columns: 1.5fr 1fr; } }
.mag-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.article-list { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.article-row {
  position: relative; display: grid; gap: 1rem; grid-template-columns: 1fr;
  padding: 1.1rem; background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
}
@media (min-width: 640px) { .article-row { grid-template-columns: 180px minmax(0, 1fr); } }
.article-row:hover { border-color: var(--bg-navy-5); box-shadow: var(--shadow-s); }
.article-row .thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-3); }
.article-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-row h3 { margin: 0 0 0.35rem; font-size: var(--fs-h3); }
.article-row h3 a { text-decoration: none; color: inherit; }
.article-row h3 a::after { content: ''; position: absolute; inset: 0; }
.article-row p { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--c-text-faint); }

/* ---------- כתבה ---------- */
.article-head { padding: 2.5rem 0 1.5rem; }
.article-head h1 { max-width: 22ch; }
.article-head .standfirst { font-size: var(--fs-xl); font-weight: 300; color: var(--c-text-soft); max-width: 60ch; margin: 0.5rem 0 1.25rem; line-height: 1.5; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: var(--fs-sm); color: var(--c-text-faint); border-block: 1px solid var(--c-border-soft); padding: 0.85rem 0; }
.article-hero { border-radius: var(--r-lg); overflow: hidden; margin: 1.5rem 0 2rem; background: var(--c-surface-3); aspect-ratio: 16 / 9; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.toc { background: var(--c-surface-2); border-radius: var(--r); padding: 1.1rem 1.25rem; margin: 0 0 2rem; }
.toc h2 { font-size: var(--fs-base); margin: 0 0 0.5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.45rem 0; font-size: var(--fs-sm); font-weight: 600; min-height: 40px; }

.text-size-bar { display: flex; align-items: center; gap: 0.4rem; }
.text-size-bar .label { font-size: var(--fs-xs); color: var(--c-text-faint); font-weight: 700; }
.text-size-bar button {
  min-width: 44px; min-height: 44px; border: 2px solid var(--c-border); border-radius: var(--r-sm);
  background: #fff; font-weight: 800; color: var(--bg-navy); cursor: pointer; line-height: 1;
}
.text-size-bar button[aria-pressed='true'] { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }

/* ---------- אירועים ---------- */
.event-card { display: grid; gap: 1rem; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r); padding: 1.15rem; position: relative; }
@media (min-width: 640px) { .event-card { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; } }
.event-card .date {
  width: 88px; border-radius: var(--r-sm); background: var(--bg-navy); color: #fff;
  text-align: center; padding: 0.6rem 0.3rem; line-height: 1.15;
}
.event-card .date .d { display: block; font-size: 1.75rem; font-weight: 900; }
.event-card .date .m { display: block; font-size: var(--fs-xs); }
.event-card h3 { margin: 0 0 0.25rem; font-size: var(--fs-h3); }
.event-card .where { margin: 0; font-size: var(--fs-sm); color: var(--c-text-faint); }

/* ---------- פורומים ---------- */
.forum-list { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.forum { position: relative; display: grid; gap: 0.75rem; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r); padding: 1.15rem; }
@media (min-width: 700px) { .forum { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; } }
.forum .ico { width: 56px; height: 56px; border-radius: var(--r-tile); background: var(--bg-navy-7); color: var(--bg-navy); display: grid; place-items: center; }
.forum h3 { margin: 0 0 0.2rem; font-size: var(--fs-lg); }
.forum h3 a { text-decoration: none; color: inherit; }
.forum h3 a::after { content: ''; position: absolute; inset: 0; }
.forum p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-soft); }
.forum .count { font-size: var(--fs-sm); color: var(--c-text-faint); white-space: nowrap; }

/* ---------- טפסים גדולים ---------- */
.form-card { background: #fff; border: 2px solid var(--c-border); border-radius: var(--r-lg); padding: 1.75rem; }
.form-card h2 { margin-top: 0; }
.form-steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: var(--fs-sm); }
.form-steps li { display: flex; align-items: center; gap: 0.5rem; color: var(--c-text-faint); }
.form-steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-3); font-weight: 800; font-size: var(--fs-xs); }
.form-steps [aria-current] { color: var(--bg-navy); font-weight: 800; }
.form-steps [aria-current] .n { background: var(--bg-navy); color: #fff; }

/* ---------- מפת אתר / תוכן כללי ---------- */
.sitemap-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sitemap-grid h2 { font-size: var(--fs-lg); border-bottom: 2px solid var(--bg-gold); padding-bottom: 0.4rem; }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; }
.sitemap-grid a:not(.btn) { display: block; padding: 0.5rem 0; font-size: var(--fs-base); min-height: var(--tap); }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: 4rem 2rem; }
.err .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; color: var(--bg-navy-5); line-height: 0.9; margin: 0; }
.err h1 { margin: 0.5rem 0; }
.err-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }


/* ==========================================================================
   2026-12 — מדור המגזין
   BrowseCategories, BrowseArticles, ShowArticle ו-Magazine.master.

   אפס טבלאות בשלושת הדפים — הפריסה כולה floats עם div.Breaker כ-clearfix
   ידני. לכן אפשר להחליף אותה בגריד ולנטרל את ה-Breaker, בלי לגעת באף .ascx.

   שתי מלכודות שמכתיבות את מה שלמטה:

   1. אותה מחלקה משמשת בכמה תפקידים באותו דף. div.Title הוא כותרת כתבה,
      כותרת מדור, כותרת תגובה וכותרת thumbnail. div.Text הוא גוף כתבה,
      מעטפת שדה טופס וגוף תגובה. כל כלל כאן ממוקם לפי ההורה, אף פעם לא לבד.
   2. id="Test" מופיע עשר פעמים בדף רשימה — id כפול שנכתב קשיח ב-Section.ascx.
      אין להישען עליו.
   ========================================================================== */

/* --------------------------------------------------------------------------
   הסקלטון של Magazine.master: שלוש עמודות floats -> גריד
   -------------------------------------------------------------------------- */
.ArticlesContainer {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
  width: auto; float: none;
}
@media (min-width: 1000px) {
  .ArticlesContainer { grid-template-columns: 220px minmax(0, 1fr) 180px; }
}
.ArticlesContainer > .Right,
.ArticlesContainer > .Center,
.ArticlesContainer > .Left { float: none; width: auto; min-width: 0; }
@media (max-width: 999px) {
  /* התוכן קודם, התפריט והפרסום אחריו */
  .ArticlesContainer > .Center { order: 1; }
  .ArticlesContainer > .Right  { order: 2; }
  .ArticlesContainer > .Left   { order: 3; }
}
/* ה-clearfix הידני מיותר בגריד, והוא יוצר רווחים מתים */
.ArticlesContainer .Breaker { display: none; }

/* --------------------------------------------------------------------------
   תפריט המדור — ul.MagazineMenu
   באג מקור: בבלוק הראשון כל ה-li מקבלים .First ואף אחד לא .Last.
   לכן אין להישען על .First/.Last, רק על המיקום בעץ.
   -------------------------------------------------------------------------- */
.MagazineMenu { list-style: none; margin: 0; padding: 0; }
.MagazineMenu > li { border-block-end: 1px solid var(--c-border-soft); }
.MagazineMenu > li > .Open,
.MagazineMenu > li > div:first-child {
  font-size: var(--fs-base); font-weight: 800; color: var(--bg-navy);
  padding: 0.7rem 0.25rem; background: none;
}
/* ה-<a> של ראשי הקטגוריות הוא ללא href — לא קישור, ולכן לא נראה ככזה */
.MagazineMenu > li > div > a { color: inherit; text-decoration: none; cursor: default; }
.MagazineMenu ul { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.MagazineMenu ul li a {
  display: block; min-height: var(--tap);
  padding: 0.5rem 0.75rem; font-size: var(--fs-sm); color: var(--c-link);
  border-radius: var(--r-sm);
}
.MagazineMenu ul li a:hover { background: var(--c-surface-3); text-decoration: none; }
.MagazineMenu ul li.Selected > a {
  background: var(--bg-navy); color: #fff; font-weight: 700;
}

/* --------------------------------------------------------------------------
   כרטיס כתבה — a.Item בתוך .Section ובתוך .MainPageTopFloats
   -------------------------------------------------------------------------- */
.Section .Item,
.MainPageTopFloats .Item,
.SectionTopFloats .Item {
  display: grid; gap: 0 1rem; align-items: start;
  grid-template-columns: 124px minmax(0, 1fr);
  padding: 1rem; margin: 0 0 0.75rem !important;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  text-decoration: none; color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t);
  float: none !important; width: auto;
}
.Section .Item:hover,
.MainPageTopFloats .Item:hover,
.SectionTopFloats .Item:hover {
  border-color: var(--c-border); box-shadow: var(--shadow-m); text-decoration: none;
}
.Section .Item .Right,
.Section .Item > img { grid-column: 1; margin: 0; float: none; width: 100%; }
.Section .Item .Left { grid-column: 2; float: none; width: auto; }
.Section .Item img,
.MainPageTopFloats .Item img,
.SectionTopFloats .Item img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-sm); background: var(--c-surface-3);
}
.Section .Item .Title,
.MainPageTopFloats .Item .Title,
.SectionTopFloats .Item .Title {
  font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin-bottom: 0.3rem;
}
.Section .Item .SubTitle {
  font-size: var(--fs-sm); color: var(--c-text-soft); line-height: var(--lh);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* .Arrow הוא "לקריאה" ברשימה ו-&nbsp; במקומות אחרים — מסתירים כשהוא ריק */
.Section .Item .Arrow {
  margin-top: 0.5rem; font-size: var(--fs-sm); font-weight: 700; color: var(--bg-navy);
}
.Section .Item .Arrow:empty { display: none; }

/* כותרות המדורים: div.Title שהוא ילד ישיר, לא זה שבתוך פריט */
.Section > .Title,
.MainPageTopFloats > .Title,
.SectionTopFloats > .Title,
.CheackIt > .Title,
.MoreForums > .Title {
  font-size: var(--fs-h2); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin: 0 0 1rem; background: none; padding: 0;
}
.Section > .SubTitle,
.MainPageTopFloats > .SubTitle { font-size: var(--fs-base); color: var(--c-text-soft); margin: -0.5rem 0 1rem; }

/* "שווה לבדוק" — שלושה פריטים בשורה. הריווח ביניהם הוא inline margin-right. */
.CheackIt .Container { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.CheackIt .Item { margin: 0 !important; display: block; padding: 0; border: 0; }
.CheackIt .Item img { width: 100%; height: auto; border-radius: var(--r-sm); }
.CheackIt .Item .Title { font-size: var(--fs-sm); margin-top: 0.5rem; }

/* שני הפריטים העליונים: ה-float נכתב בשרת ולכן צריך !important */
.SectionTopFloats .Container { display: grid; gap: 1rem; }
@media (min-width: 700px) { .SectionTopFloats .Container { grid-template-columns: 1fr 1fr; } }
.SectionTopFloats .Item { grid-template-columns: 1fr; }

/* --------------------------------------------------------------------------
   גוף הכתבה — div.Article
   -------------------------------------------------------------------------- */
.Article { background: #fff; width: auto; float: none; }
.Article > .Title { margin: 0 0 0.5rem; }
/* ה-h1 נושא inline font-size:inherit;color:inherit שמנטרל כל טיפוגרפיה */
.Article > .Title h1 {
  font-size: var(--fs-h1) !important; color: var(--bg-navy) !important;
  font-weight: 800; line-height: var(--lh-tight); margin: 0;
}
.Article > .SubTitle {
  font-size: var(--fs-lg); color: var(--c-text-soft); line-height: var(--lh);
  margin: 0 0 1.25rem;
}
.Article > .Line { display: none; }

/* הטקסט מגיע מה-CMS כטקסט חשוף בתוך div, מופרד ב-<br>. אין פסקאות לתפוס,
   ולכן הקריאוּת נבנית על המיכל עצמו. */
.Article > .Text {
  font-size: var(--fs-base); line-height: var(--lh); color: var(--c-text);
  max-width: 68ch;
}
.Article > .Text .Image { float: none; margin: 0 0 1.25rem; }
.Article > .Text img { max-width: 100%; height: auto; border-radius: var(--r); display: block; }
.Article > .Text a { color: var(--c-link); }
.Article > .Text strong, .Article > .Text b { color: var(--c-text); }
/* רצפים של 10-19 <br> משמשים כריווח בין קטעים — מכווצים אותם */
.Article > .Text br + br + br { display: none; }
/* h1 שני, ריק, שריד CMS */
.Article > .Text h1:empty, .Article > .Text h1 > span:empty { display: none; }
.Article > .Text h1 { font-size: var(--fs-h3); color: var(--bg-navy); margin: 1.5rem 0 0.5rem; }

.Article .LeftIcon, .Article .RightIcon {
  float: none; display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 1.5rem 1.5rem 0 0; font-size: var(--fs-sm);
}
.Article .LeftIcon a, .Article .RightIcon a { color: var(--c-link); }

/* --------------------------------------------------------------------------
   עימוד — div.PagerNav
   העמוד הנוכחי מסומן רק ב-inline color, בלי class ובלי aria-current
   -------------------------------------------------------------------------- */
.PagerNav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem; padding-top: 1rem; border-block-start: 1px solid var(--c-border-soft);
}
.PagerNav .StripTop { display: none; }
.PagerNav .Previous, .PagerNav .Next, .PagerNav .Middle { float: none; }
.PagerNav .Middle { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.PagerNav a, .PagerNav .Middle > span {
  display: grid; place-items: center;
  min-width: var(--tap); min-height: var(--tap); padding-inline: 0.6rem;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-link); background: #fff;
}
.PagerNav a:hover { background: var(--c-surface-3); text-decoration: none; }
.PagerNav .Middle > span[style] {
  background: var(--bg-navy) !important; color: #fff !important; border-color: var(--bg-navy);
}
/* "עמוד קודם" כשאין קודם: טקסט וחץ בלי קישור — לא אמור להיראות לחיץ */
.PagerNav .Previous { color: var(--c-text-faint); font-size: var(--fs-sm); display: flex; align-items: center; gap: 0.3rem; }
.PagerNav img { margin: 0 !important; }

/* --------------------------------------------------------------------------
   תגובות — div.Responses
   -------------------------------------------------------------------------- */
.Responses { background: var(--c-surface-2); border-radius: var(--r); padding: 1.25rem; width: auto; float: none; }
.Responses .Toggler {
  min-height: var(--tap); cursor: pointer;
  font-size: var(--fs-lg); font-weight: 800; color: var(--bg-navy);
  display: flex; align-items: center;
}
.Responses .Toggler::after { content: 'תגובות'; }
.Responses .Field { display: grid; gap: 0.25rem; margin-bottom: 0.9rem; }
.Responses .Field .Label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); }
.Responses .Field .Text { width: auto; float: none; }
.Responses input[type="text"], .Responses textarea {
  width: 100%; box-sizing: border-box; min-height: var(--tap);
  font-family: inherit; font-size: var(--fs-base); color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
}
.Responses textarea { min-height: 7rem; resize: vertical; }
.Responses input:focus-visible, .Responses textarea:focus-visible {
  outline: 3px solid var(--bg-dark); outline-offset: 2px;
}
/* כפתור השליחה הוא div עם onclick ו-&nbsp; בפנים — אין לו טקסט משלו */
.Responses .SubmitResponse {
  min-height: var(--tap); margin-top: 0.5rem; cursor: pointer;
  background: var(--bg-navy); color: #fff; border-radius: var(--r-pill);
  display: grid; align-items: center; justify-items: stretch;
  text-align: center; padding: 0.7rem 1.25rem;
  font-size: var(--fs-lg); font-weight: 800; width: auto;
}
.Responses .SubmitResponse::after { content: 'שלחו תגובה'; }
.Responses .SubmitResponse:hover { background: var(--bg-navy-2); }
.Responses .Messeges .Title {
  font-size: var(--fs-base); font-weight: 700; color: var(--bg-navy);
  cursor: pointer; min-height: var(--tap); display: flex; align-items: center;
}
.Responses .Messeges .Text { font-size: var(--fs-base); color: var(--c-text); }
.Responses .Footer { display: none; }

/* --------------------------------------------------------------------------
   קישורים שימושיים — div.MoreForums
   -------------------------------------------------------------------------- */
.MoreForums .Items { display: grid; gap: 0.15rem; }
.MoreForums .Items .Image { display: none; }
.MoreForums .Items .Item a {
  display: block; min-height: var(--tap); padding: 0.5rem 0.25rem;
  font-size: var(--fs-sm); color: var(--c-link);
}
.MoreForums .Items .Breaker { display: none !important; height: 0 !important; }

/* --------------------------------------------------------------------------
   תצוגת ה-thumbnails ב-SpecialFloats
   -------------------------------------------------------------------------- */
.MainPageTopFloats .Container { display: grid; gap: 1rem; }
@media (min-width: 700px) { .MainPageTopFloats .Container { grid-template-columns: 150px minmax(0, 1fr); } }
.MainPageTopFloats .RightPics { display: grid; gap: 0.5rem; float: none; width: auto; }
.MainPageTopFloats .SmallPicDiv, .MainPageTopFloats .PicsDivider { display: none; }
.MainPageTopFloats .SmallPic img { width: 100%; height: auto; border-radius: var(--r-sm); display: block; }
.MainPageTopFloats .SmallPic.Selected img { outline: 3px solid var(--bg-gold); outline-offset: 2px; }
.MainPageTopFloats .LeftPics { float: none; width: auto; position: relative; }
.MainPageTopFloats .LeftPics img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.MainPageTopFloats .Float .Inside {
  padding: 1rem; background: var(--c-surface-2); border-radius: 0 0 var(--r) var(--r);
}
.MainPageTopFloats #floatTitle {
  font-size: var(--fs-h3) !important; font-weight: 800 !important; color: var(--bg-navy);
  line-height: var(--lh-tight);
}
.MainPageTopFloats #floatSubTitle { font-size: var(--fs-sm); color: var(--c-text-soft); margin-top: 0.3rem; }

/* באנרי אדסנס של המדור — לא נוגעים בגודל, רק ממרכזים */
.rightMagazineBanner, .ArticlesContainer .LeftAdsenseBanner { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .Section .Item, .MainPageTopFloats .Item, .SectionTopFloats .Item { transition: none; }
}


/* ==========================================================================
   2026-12 — דף תוצאות החיפוש (SearchResults.aspx)

   אפס טבלאות בדף כולו — הפריסה היא div/float, ולכן הוא ניתן לעיצוב מלא
   בלי לגעת באף .ascx. היחידה החוזרת היא .SearchResultsContainer, 14 מופעים.

   שלוש מלכודות:

   1. למזהי הכרטיסים יש ערכים מספריים — id="641". ‎#641 אינו סלקטור CSS תקין
      (הדפדפן זורק שגיאה). כל טירגוט כאן הוא לפי מחלקה או [id="..."].
   2. ל-.Details יש שתי וריאציות לפי ClientLevelID: 11 כרטיסים עם style=""
      ריק, ו-3 עם height:52px inline שחותך את הטקסט. צריך !important.
   3. .MediaStrip עם display:none inline בשלושה כרטיסים — זו החלטה עסקית
      (רמת לקוח), לא באג. לא דורסים אותה.
   ========================================================================== */

/* --------------------------------------------------------------------------
   הסקלטון: RightDiv / HPDividerCol / LeftDiv -> גריד
   -------------------------------------------------------------------------- */
.RightDiv, .LeftDiv { float: none; width: auto; }
.BodyContainer:has(.SearchResultsRightContent) #aspnetForm,
.SearchResultsRightContent { width: auto; }

#aspnetForm:has(.SearchResultsMainDiv) {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
}
@media (min-width: 1000px) {
  #aspnetForm:has(.SearchResultsMainDiv) { grid-template-columns: minmax(0, 1fr) 200px; }
  #aspnetForm:has(.SearchResultsMainDiv) > .RightDiv { grid-column: 1; }
  #aspnetForm:has(.SearchResultsMainDiv) > .LeftDiv  { grid-column: 2; }
}
/* עמודת המפריד הגרפי מיותרת בגריד */
#aspnetForm > .HPDividerCol { display: none; }

/* כותרות הדף */
.SearchResultsH1 {
  font-size: var(--fs-h1); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin: 0 0 0.25rem;
}
.SearchResultsH2 {
  font-size: var(--fs-lg) !important; font-weight: 400; color: var(--c-text-soft);
  margin: 0 0 1rem !important; padding: 0 !important; clear: none !important;
}
.SearchResultsH3 { font-size: var(--fs-base); color: var(--c-text-faint); margin: 0 0 1.25rem; }
.BorderTop { background: none; border: 0; }
.BorderTop > div, .BorderTop > div > div[style] { float: none !important; }

/* --------------------------------------------------------------------------
   כרטיס תוצאה — .SearchResultsContainer (14 מופעים)
   -------------------------------------------------------------------------- */
.SearchResultsContainer { margin-bottom: 1rem; padding-bottom: 0 !important; }
.SearchResultsContainer .Item {
  display: grid; gap: 0 1rem; align-items: start;
  grid-template-columns: auto 132px minmax(0, 1fr) auto;
  padding: 1.1rem; width: auto;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.SearchResultsContainer .Item:hover { border-color: var(--c-border); box-shadow: var(--shadow-m); }
@media (max-width: 699px) {
  .SearchResultsContainer .Item { grid-template-columns: 110px minmax(0, 1fr); }
}
.SearchResultsContainer .Divider { display: none; }

/* "הוסף" — div עם onclick, אין לו role ולא tabindex. לפחות שייראה כפתור. */
.SearchResultsContainer .Checkbox {
  grid-row: 1; cursor: pointer; align-self: start;
  min-width: var(--tap); min-height: var(--tap);
  display: grid; place-items: center; float: none; width: auto;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; color: var(--bg-navy); background: #fff;
}
.SearchResultsContainer .Checkbox:hover { background: var(--bg-navy-7); }
.SearchResultsContainer .Checkbox.Selected,
.SearchResultsContainer .Checkbox.Checked { background: var(--bg-navy); color: #fff; }
@media (max-width: 699px) { .SearchResultsContainer .Checkbox { grid-column: 1 / -1; justify-self: start; } }

.SearchResultsContainer .Image { float: none; width: auto; margin: 0; }
.SearchResultsContainer .Image img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-sm); background: var(--c-surface-3);
}

/* 3 כרטיסים מתוך 14 נושאים height:52px inline שחותך את הטקסט */
.SearchResultsContainer .Details {
  float: none !important; width: auto !important; height: auto !important;
  min-width: 0;
}
.SearchResultsContainer a.Title {
  display: block; font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin-bottom: 0.2rem;
}
.SearchResultsContainer .SubTitle {
  display: block; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: var(--lh);
}
.SearchResultsContainer .LinksStrip {
  margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem;
  font-size: var(--fs-xs);
}
.SearchResultsContainer .LinksStrip a { color: var(--c-link); padding-block: 0.2rem; }
.SearchResultsContainer .LinksStrip span { color: var(--c-border); }
.SearchResultsContainer .MediaStrip {
  margin-top: 0.4rem; display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs);
}
.SearchResultsContainer .MediaStrip a { color: var(--c-link); }
.SearchResultsContainer .PushDown { display: none !important; }

/* כפתור "צור קשר" — <a href="javascript:void(0)"> שכל תוכנו תמונה בלי alt */
.SearchResultsContainer .Order { float: none; width: auto; align-self: center; }
.SearchResultsContainer .Order img { display: block; max-width: 100%; height: auto; }
.SearchResultsContainer .Order a:focus-visible { outline: 3px solid var(--bg-gold); outline-offset: 3px; }
.SearchResultsContainer .AjaxIndicator { margin-top: 0.4rem; }
@media (max-width: 699px) {
  .SearchResultsContainer .Order { grid-column: 1 / -1; justify-self: stretch; margin-top: 0.75rem; }
}

/* --------------------------------------------------------------------------
   מוסדות בחסות — .Sponsers
   -------------------------------------------------------------------------- */
.Sponsers { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 700px) { .Sponsers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.Sponsers .Sponser {
  display: block; float: none !important; width: auto; padding: 0.9rem;
  background: var(--bg-gold-7); border-radius: var(--r); text-decoration: none;
}
.Sponsers .Sponser img { width: 100%; height: auto; border-radius: var(--r-sm); }
.Sponsers .Sponser .Title { font-size: var(--fs-base); font-weight: 800; color: var(--bg-navy); margin-top: 0.4rem; }
.Sponsers .Sponser .SubTitle { font-size: var(--fs-xs); color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   טופס הפנייה המרוכזת — .MultiRegister
   חמישה שדות, אפס <label>. התוויות הן div.Label.
   -------------------------------------------------------------------------- */
.MultiRegisterInfo { margin: 1.25rem 0 0.75rem; }
.MultiRegisterInfo .Title { font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy); }
.MultiRegisterInfo .SubTitle { font-size: var(--fs-sm); color: var(--c-text-soft); }

.MultiRegister {
  background: var(--c-surface-2); border-radius: var(--r); padding: 1.25rem; width: auto;
}
.MultiRegister .Content { display: grid; gap: 0.9rem; width: auto; }
@media (min-width: 700px) { .MultiRegister .Content { grid-template-columns: 1fr 1fr; } }
.MultiRegister .Field { display: grid; gap: 0.25rem; width: auto; float: none; }
.MultiRegister .Label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); }
.MultiRegister input[type="text"], .MultiRegister .InputText {
  width: 100%; box-sizing: border-box; min-height: var(--tap);
  font-family: inherit; font-size: var(--fs-base); color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
}
.MultiRegister input:focus-visible { outline: 3px solid var(--bg-dark); outline-offset: 2px; }
.MultiRegister input[type="checkbox"] { width: 24px; height: 24px; }
.MultiRegister .Error { color: var(--bg-red); font-size: var(--fs-sm); margin-bottom: 0.5rem; }
/* "שלח" — div עם onclick ובלי טקסט משלו */
.MultiRegister .Send {
  min-height: var(--tap); cursor: pointer; width: auto;
  background: var(--bg-navy); color: #fff; border-radius: var(--r-pill);
  display: grid; align-items: center; justify-items: stretch;
  text-align: center; padding: 0.7rem 1.25rem;
  font-size: var(--fs-lg); font-weight: 800;
}
.MultiRegister .Send::after { content: 'שלחו פנייה לכל המוסדות שסומנו'; }
.MultiRegister .Send:hover { background: var(--bg-navy-2); }
.MultiRegister .Footer { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   העמודה השמאלית — MarketingContent
   אין לה ולו מחלקה אחת: ארבעה כרטיסים שכל העיצוב שלהם inline.
   הדרך היחידה לתפוס אותם היא לפי ה-style עצמו.
   -------------------------------------------------------------------------- */
.LeftDiv div[style*="font-size:12px"][style*="width:190px"] {
  width: auto !important; float: none !important;
  font-size: var(--fs-sm) !important;
  padding: 0.75rem; margin-bottom: 0.5rem;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r-sm);
}
.LeftDiv div[style*="max-height:15px"],
.LeftDiv div[style*="max-height:45px"] {
  max-height: none !important; overflow: visible !important;
  font-size: var(--fs-sm) !important; line-height: var(--lh) !important;
  padding-right: 0 !important;
}
.LeftDiv .Yellow1[style] { font-size: var(--fs-base) !important; font-weight: 800; color: var(--bg-navy); }

@media (prefers-reduced-motion: reduce) {
  .SearchResultsContainer .Item { transition: none; }
}


/* ==========================================================================
   2026-12 — דף החיפוש החופשי (GUI/Search.aspx), בתוך .search-page

   הדף בנוי על 74 טבלאות פריסה, אבל זה מטעה: 45 מהן הן יחידה אחת זהה
   שנפלטת מלולאת DataList, ומתוך 238 inline styles רק 25 ייחודיים —
   14 מהם מכסים 95%. אפס טבלאות נתונים: אין th ואין caption בדף כולו.
   לכן מותר לשטח את הפריסה, ושלושה תיקונים מכסים כמעט הכול.

   העטיפה .search-page נוספה ל-Search.aspx כי אין לדף מזהה ברמת הדף —
   הטופס נפלט כ-aspnetForm ולא כ-frmSearch.
   ========================================================================== */

/* --------------------------------------------------------------------------
   שיטוח הטבלאות. בטוח רק כי אין כאן ולו טבלת נתונים אחת.
   -------------------------------------------------------------------------- */
.search-page table,
.search-page tbody,
.search-page tr,
.search-page td {
  display: block; width: auto !important; height: auto !important;
  border-collapse: collapse;
}
.search-page td { padding: 0; vertical-align: top; }
/* שורות ותאים שקיימים רק כמרווחים */
.search-page td:empty { display: none; }

.search-page {
  display: grid; gap: var(--gap);
  /* ‎minmax(0,1fr) ולא ברירת המחדל: פריט גריד לא מתכווץ מתחת ל-min-content
     שלו, והטופס נשאר 525px במסך 360 (גלישה של 185px). */
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
}
.search-page > form { min-width: 0; }
@media (min-width: 1000px) {
  /* הטבלה החיצונית היא שתי עמודות: כתבות מימין, תוצאות משמאל */
  .search-page > form > table > tbody > tr {
    display: grid; gap: var(--gap); grid-template-columns: 240px minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   הקו המקווקו שמפריד בין פריטים — 45 מופעים, כולם inline
   -------------------------------------------------------------------------- */
.search-page div[style*="border-top"] {
  border-top: 1px solid var(--c-border-soft) !important;
  margin: 0.85rem 0 !important;
}

/* --------------------------------------------------------------------------
   טיפוגרפיה. font-size:10px מופיע 42 פעמים — הרצפה כאן היא 15px.
   -------------------------------------------------------------------------- */
.search-page [style*="font-size:10px"],
.search-page [style*="font-size: 10px"] {
  font-size: var(--fs-xs) !important;
  vertical-align: baseline !important;
}
.search-page .search-plain {
  font-size: var(--fs-sm); line-height: var(--lh); color: var(--c-text-soft);
  font-family: inherit;
}
.search-page .search-bold {
  font-size: var(--fs-base); font-weight: 700; line-height: var(--lh-tight);
  font-family: inherit;
}
.search-page .search-bold a { color: var(--bg-navy); font-weight: 800; }
.search-page .BlueLink { color: var(--c-link); font-size: inherit; }
.search-page .a18-bold-blue {
  font-size: var(--fs-h2); font-weight: 800; color: var(--bg-navy); font-family: inherit;
}
.search-page .ArticlesResultsTopTitle,
.search-page .search-resultbox-title {
  font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  margin-bottom: 0.75rem; background: none; height: auto;
}

/* --------------------------------------------------------------------------
   תוצאת מוסד — .FloodingMainDiv, 14 מופעים
   -------------------------------------------------------------------------- */
.search-page .SearchResultsByWordMainDiv { margin-bottom: 1rem; }
.search-page .FloodingMainDiv {
  display: grid; gap: 0 1rem; align-items: start;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 1rem; width: auto; float: none;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-page .FloodingMainDiv:hover { border-color: var(--c-border); box-shadow: var(--shadow-m); }
.search-page .FloodingItemImg {
  float: none; width: auto !important; height: auto !important; margin: 0;
}
.search-page .FloodingItemImg img {
  width: 100%; height: auto !important; display: block;
  border-radius: var(--r-sm); background: var(--c-surface-3);
}
.search-page .FloodingContentContainer { float: none; width: auto; min-width: 0; }
.search-page .FloodingItemTitle {
  font-size: var(--fs-h3); font-weight: 800; line-height: var(--lh-tight);
  margin-bottom: 0.2rem;
}
.search-page .FloodingItemTitle a { color: var(--bg-navy); }
.search-page .FloodingItemSubTitle {
  font-size: var(--fs-sm); color: var(--c-text-soft); line-height: var(--lh);
}
.search-page .FloodingItemOrder { margin-top: 0.6rem; }
.search-page .FloodingItemOrder img { max-width: 100%; height: auto; }
.search-page .InstitutePopup { display: none; }

/* --------------------------------------------------------------------------
   כתבות בעמודה הימנית — היחידה שחוזרת 45 פעמים
   -------------------------------------------------------------------------- */
.search-page .search-bold + * { margin-top: 0.15rem; }
.search-page td[class="search-bold"] a { display: block; padding-block: 0.15rem; }

/* --------------------------------------------------------------------------
   מוסדות בחסות
   -------------------------------------------------------------------------- */
.search-page .SponsersTop,
.search-page .SponsersBottom,
.search-page .SponsersDivider,
.search-page .SponsersTableStrip { display: none; }

/* --------------------------------------------------------------------------
   טבלה שמוסתרת בשרת (style="display:none") — לא מחזירים אותה לחיים
   -------------------------------------------------------------------------- */
.search-page [style*="display:none"] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .search-page .FloodingMainDiv { transition: none; }
}


/* ==========================================================================
   2026-12 — עמוד מוסד (ShowInstitute.aspx), בתוך .inst-page

   זה הדף היחיד באתר שלא ניתן לעיצוב ב-CSS בלבד, ולכן ה-markup שלו נכתב
   מחדש. הסיבה אינה הטבלאות כשלעצמן אלא שהרוחבים נעולים ב-HTML attributes
   (760 / 420 / 393 / 351 / 330 / 329) — attribute גובר על גיליון סגנונות,
   ולכן אי אפשר להפוך את העמוד לרספונסיבי בלי לגעת ב-markup.

   בנוסף היה שם markup לא תקין: <table> שמכיל <div> ישירות. הפרסר של
   HTML5 עושה לו foster-parenting ומוציא את ה-div מחוץ לטבלה, ולכן
   #ctl00_phBody_myPanel התרונדר ריק לגמרי. זה תוקן בכתיבה מחדש.

   מה שלא השתנה: כל פקדי השרת, המזהים שלהם, וה-DataList-ים. הקוד המקומפל
   מחזיק שדות לפי מזהה, והסרה של פקד הייתה מפילה את הדף ב-null reference.
   ========================================================================== */

.inst-page {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
  display: grid; gap: var(--gap);
}

/* --------------------------------------------------------------------------
   בלוק הכותרת — Title.ascx
   -------------------------------------------------------------------------- */
.inst-page .ShowInstituteControlTitleMainContainer {
  display: grid; gap: 1rem; align-items: center;
  grid-template-columns: 1fr; width: auto; height: auto; background: none;
}
@media (min-width: 760px) {
  .inst-page .ShowInstituteControlTitleMainContainer {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }
}
.inst-page .ShowInstituteControlTitleRightImgItemContainer,
.inst-page .ShowInstituteControlTitleLeftlogoItemContainer,
.inst-page .ShowInstituteControlTitleTextItemsContainer {
  float: none; width: auto; height: auto;
}
.inst-page .ShowInstituteControlTitleRightImgItemContainer img,
.inst-page .ShowInstituteControlTitleLeftlogoItemContainer img {
  max-width: 100%; height: auto; display: block; border-radius: var(--r-sm);
}
.inst-page .ShowInstituteControlTitleTextItemH1 {
  font-size: var(--fs-h1); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin: 0 0 0.2rem; background: none; height: auto;
}
.inst-page .ShowInstituteControlTitleTextItemH2 {
  font-size: var(--fs-lg); font-weight: 400; color: var(--c-text-soft);
  margin: 0; background: none; height: auto;
}

/* --------------------------------------------------------------------------
   רצועת הטאבים — NavBar.ascx
   -------------------------------------------------------------------------- */
.inst-page .ShowInstituteNavBar {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  width: auto; height: auto; background: none;
  border-block-end: 1px solid var(--c-border-soft); padding-bottom: 0.5rem;
}
.inst-page .ShowInstituteNavBar a {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding-inline: 1rem;
  background: var(--c-surface-2); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700; color: var(--bg-navy);
  width: auto; height: auto; text-indent: 0; text-decoration: none;
}
.inst-page .ShowInstituteNavBar a:hover { background: var(--bg-navy-7); }
.inst-page .ShowInstituteNavBar a.Selected { background: var(--bg-navy); color: #fff; }
.inst-page .ShowInstituteRightToolbar { width: auto; height: auto; background: none; }

/* --------------------------------------------------------------------------
   הפריסה: תוכן מימין, כרטיסי צד משמאל
   -------------------------------------------------------------------------- */
.inst-page .inst-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .inst-page .inst-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
.inst-page .ShowInstituteRightContainer,
.inst-page .ShowInstituteLeftContainer,
.inst-page .ShowInstituteRightInsideContainer,
.inst-page .ShowInstituteContentContainer,
.inst-page .ShowInstituteControlsContainer {
  float: none; width: auto; height: auto; background: none;
}
.inst-page .ShowInstituteMainMiddleDivider,
.inst-page .ShowInstituteInsideMiddleDivider { display: none; }

/* --------------------------------------------------------------------------
   סקשן תוכן — החלק שנכתב מחדש
   -------------------------------------------------------------------------- */
.inst-page .ShowInstituteControlContentMainContainer {
  width: auto; height: auto; background: #fff;
  border: 1px solid var(--c-border-soft); border-radius: var(--r);
  padding: 1.25rem; margin-bottom: 1rem;
}
.inst-page .ShowInstituteControlContentTitleContainer,
.inst-page .inst-section-title {
  font-size: var(--fs-h2); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin: 0 0 0.75rem;
  background: none; width: auto; height: auto; text-indent: 0;
}
/* כותרות התחומים היו <a name> עם טיפוגרפיה inline; עכשיו הן h3 אמיתיות */
.inst-page .inst-program-title {
  font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  margin: 1.5rem 0 0.5rem; scroll-margin-top: 1rem;
}
.inst-page .inst-program:first-child .inst-program-title { margin-top: 0; }
.inst-page .inst-field { margin-bottom: 0.9rem; }
.inst-page .inst-field-label {
  display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--bg-navy);
  margin-bottom: 0.15rem;
}
.inst-page .inst-field-value,
.inst-page .search-plain {
  font-size: var(--fs-base); line-height: var(--lh); color: var(--c-text);
  font-family: inherit;
}
.inst-page .main-buttons-blue {
  font-size: var(--fs-sm); font-weight: 700; color: var(--bg-navy); font-family: inherit;
}
/* תוכן שמגיע מה-CMS: <font>, <p> ורצפי <br> */
.inst-page .inst-field-value font,
.inst-page .search-plain font { font-family: inherit !important; font-size: inherit !important; }
.inst-page .inst-field-value p { margin: 0 0 0.75rem; }
.inst-page .inst-field-value br + br + br { display: none; }

/* --------------------------------------------------------------------------
   כרטיסי הצד
   -------------------------------------------------------------------------- */
.inst-page .inst-aside { display: grid; gap: 1rem; align-content: start; }
.inst-page .ShowInstituteControlCallUs,
.inst-page .ShowInstituteControlGallery,
.inst-page .ShowInstituteControlVOD,
.inst-page .fast-register {
  width: auto; height: auto; float: none;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  padding: 1.1rem;
}
.inst-page .ShowInstituteControlVOD:empty { display: none; }

.inst-page .ShowInstituteControlCallUsMainContainer {
  position: static !important; width: auto; height: auto; background: none;
}
.inst-page .ShowInstituteControlCallUsDetailsContainer {
  position: static !important; text-align: start !important;
  bottom: auto !important; left: auto !important;
}
.inst-page .ShowInstituteControlCallUs [style*="font-size:18px"] {
  float: none !important; overflow: visible !important;
  font-size: var(--fs-h3) !important; font-weight: 800; color: var(--bg-navy);
  direction: ltr; text-align: start;
}

.inst-page .ShowInstituteControlGalleryTitleContainer,
.inst-page .inst-aside-title {
  font-size: var(--fs-lg); font-weight: 800; color: var(--bg-navy);
  margin-bottom: 0.6rem; background: none; width: auto; height: auto; text-indent: 0;
}
.inst-page .ShowInstituteControlGalleryImagesContainer {
  display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: auto; height: auto;
}
.inst-page .ShowInstituteControlGalleryImagesContainer a { display: block; }
.inst-page .ShowInstituteControlGalleryImagesContainer img {
  width: 100%; height: auto; display: block; border-radius: var(--r-sm);
  background: var(--c-surface-3);
}
.inst-page .ShowInstituteControlGalleryLinkContainer {
  margin-top: 0.6rem; font-size: var(--fs-sm); width: auto; height: auto;
}
.inst-page .ShowInstituteControlGalleryLinkContainer a { color: var(--c-link); }

/* טופס הלידים: iframe של צד שלישי. ה-src שלו http:// בתוך עמוד https://
   ולכן הדפדפן חוסם אותו — תקלה חיה בפרוד שאינה שלנו לתקן. הכרטיס מעוצב
   כך שגם כשהוא נחסם הוא לא משאיר חור בפריסה. */
.inst-page .fast-register { direction: rtl; }
.inst-page .fast-register h3 {
  font-size: var(--fs-lg) !important; font-weight: 800; color: var(--bg-navy);
  margin: 0 0 0.6rem !important;
}
.inst-page .fast-register iframe { width: 100%; max-width: 100%; border: 0; display: block; }
.inst-page .fast-register p { font-size: var(--fs-xs) !important; color: var(--c-text-faint); }

/* --------------------------------------------------------------------------
   שאריות מה-markup הישן שאין להן מקום בפריסה החדשה
   -------------------------------------------------------------------------- */
.inst-page .Breaker { display: none; }
.inst-page [style*="height: 20px"] { height: auto !important; }
/* טקסט לגאסי של iLimudim שמוסתר בשרת — משאירים מוסתר */
.inst-page span[style*="display:none"] { display: none !important; }

/* --------------------------------------------------------------------------
   שירותים ומימון — המחלקות שנוספו בכתיבה מחדש של שני ה-DataList
   RepeatLayout="Flow" פולט span חיצוני ו-span לכל פריט; הם נפתחים לבלוק.
   -------------------------------------------------------------------------- */
.inst-page .ShowInstituteContentContainer > span,
.inst-page .ShowInstituteContentContainer span > span { display: block; }

.inst-page .inst-service,
.inst-page .inst-scholarship {
  padding: 0.9rem 0; border-block-end: 1px solid var(--c-border-soft);
}
.inst-page .inst-service:last-child,
.inst-page .inst-scholarship:last-child { border-block-end: 0; padding-bottom: 0; }

.inst-page .inst-service-title,
.inst-page .inst-scholarship-title {
  font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  line-height: var(--lh-tight); margin-bottom: 0.3rem;
}
.inst-page .inst-scholarship-title a { color: var(--bg-navy); }
.inst-page .inst-service-text,
.inst-page .inst-scholarship-text {
  font-size: var(--fs-base); line-height: var(--lh); color: var(--c-text);
}
.inst-page .inst-service-links {
  margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  font-size: var(--fs-sm);
}
.inst-page .inst-service-links a { color: var(--c-link); min-height: var(--tap); display: inline-flex; align-items: center; }
/* קישור בלי טקסט (LinkText ריק ב-DB) לא תופס מקום */
.inst-page .inst-service-links a:empty { display: none; }

/* הכותרת "תחומי טיפול" נבנית בשרת כ-LiteralControl עם inline styles
   קשיחים בתוך ה-DLL. אי אפשר לשנות אותה מה-markup, רק לדרוס. */
.inst-page #institutePage_programs > div[style*="font-size:20px"] {
  font-size: var(--fs-h2) !important; color: var(--bg-navy) !important;
  margin: 0 0 0.75rem !important; font-weight: 800 !important;
}
/* הקישורים לתחומים שנבנים בשרת עם class קשיח */
.inst-page .ShowInstProgrLink {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding-inline: 0.9rem; margin: 0 0 0.4rem 0.4rem;
  background: var(--c-surface-2); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700; color: var(--bg-navy);
}
.inst-page .ShowInstProgrLink:hover { background: var(--bg-navy-7); text-decoration: none; }

/* ==========================================================================
   2026-12 — שלב 4: מפת אתר, חדשות, אירועים

   שלושתם ניתנים לעיצוב ב-CSS בלבד. אף אחד מהם לא מכיל טבלת נתונים אמיתית
   (אין th ואין caption בשלושתם), ולכן מותר לשטח את הפריסה.

   הערה חשובה על שניים מהם: בפרוד **אין להם תוכן**. דף החדשות מגיש 4KB —
   שלושה מסנני תאריך ואפס פריטים. דף האירועים מכיל "לא נמצאו". הכללים כאן
   מעצבים גם את המצב הריק, כדי שדף ריק ייראה כמו החלטה ולא כמו תקלה.
   ========================================================================== */

/* --------------------------------------------------------------------------
   מפת אתר — .SiteMap
   הדף הפשוט באתר: אפס טבלאות, אפס inline, מחלקה אחת, 35 קישורים.
   -------------------------------------------------------------------------- */
.SiteMap {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
  columns: 1; column-gap: var(--gap);
}
@media (min-width: 640px)  { .SiteMap { columns: 2; } }
@media (min-width: 1000px) { .SiteMap { columns: 3; } }
.SiteMap a {
  display: block; min-height: var(--tap);
  padding: 0.55rem 0.75rem; margin-bottom: 0.2rem;
  font-size: var(--fs-base); color: var(--c-link);
  border-radius: var(--r-sm);
  break-inside: avoid;
}
.SiteMap a:hover { background: var(--c-surface-3); text-decoration: none; }
.SiteMap br { display: none; }

/* --------------------------------------------------------------------------
   מסנני תאריך — חדשות ואירועים
   חמישה שדות בכל דף, אפס <label>. אי אפשר לקשור תווית בלי לגעת ב-.ascx,
   אבל אפשר לפחות להפוך אותם לשדות שניתן ללחוץ עליהם ולקרוא אותם.
   -------------------------------------------------------------------------- */
.DatePickerContainer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem; width: auto; float: none;
}
.CalenderText { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text); }
.DatePickerContainer input[type="text"] {
  min-height: var(--tap); box-sizing: border-box;
  font-family: inherit; font-size: var(--fs-base); color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
}
.DatePickerContainer input:focus-visible { outline: 3px solid var(--bg-dark); outline-offset: 2px; }
.DatePickerContainer img { cursor: pointer; }

/* --------------------------------------------------------------------------
   אירועים — היחידה החוזרת ותיבות הצד
   -------------------------------------------------------------------------- */
.ForumsRightCol, .ForumsLeftCol { float: none; width: auto; }
.ForumsNewsFloatsItemContainer {
  display: grid; gap: 0 0.75rem; grid-template-columns: 72px minmax(0, 1fr);
  align-items: start; padding: 0.75rem 0;
  border-block-end: 1px solid var(--c-border-soft); width: auto; float: none;
}
.ForumsNewsFloatsItemContainer:last-child { border-block-end: 0; }
.ForumsNewsFloatsItemImage { float: none; width: auto; }
.ForumsNewsFloatsItemImage img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.ForumsNewsFloatsItemDetails { float: none; width: auto; min-width: 0; }
.ForumsNewsFloatsItemDetails .Title {
  font-size: var(--fs-base); font-weight: 700; color: var(--bg-navy); line-height: var(--lh-tight);
}
.ForumsNewsFloatsItemDetails .Description {
  font-size: var(--fs-sm); color: var(--c-text-soft); line-height: var(--lh);
}

/* הטקסט הנע — אותה החלטה כמו בדף הבית: לא לקהל הזה */
.ForumsRightCol marquee, .ForumsLeftCol marquee {
  width: 100% !important; height: auto !important; display: block; white-space: normal;
}

/* --------------------------------------------------------------------------
   טיפוגרפיה משותפת לשלושת הדפים
   -------------------------------------------------------------------------- */
.navigate-white {
  font-size: var(--fs-base) !important; font-family: inherit !important;
  color: var(--c-link);
}
/* "כותרת" שמיוצרת כ-span עם 18px אפור inline — היא הכותרת היחידה בדף */
[style*="font-size:18px"][style*="font-weight:bold"] {
  font-size: var(--fs-h2) !important; color: var(--bg-navy) !important;
  font-family: inherit !important; display: block; margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   מצב ריק
   שלושת הדפים האלה מגישים אפס פריטים בפרוד. במקום חור בעמוד, המסננים
   נשארים גלויים והאזור שמתחתם פשוט לא תופס גובה מת.
   -------------------------------------------------------------------------- */
.ForumsRightCol > table:empty,
.ForumsLeftCol > table:empty { display: none; }
.ForumsRightCol .Breaker, .ForumsLeftCol .Breaker { display: none; }


/* ==========================================================================
   2026-12 — דף התחום (GUI/Index/Phase1.aspx), בתוך .Index

   הדף שאליו מובילים כל שמונת אריחי התחומים בדף הבית, והחוליה הראשונה
   במשפך: דף הבית ← Phase1 ← תוצאות ← עמוד מוסד. שמונה כתובות חיות,
   כולן אותה תבנית. נשמט משלבים 1–4, ולכן נוסף כאן כשלב 5.

   ‎.Index הוא עוגן ברמת הדף: נבדק מול שמונת הדפים החיים ומול כל שאר
   הדפים השמורים — הוא מופיע ב-Phase1 בלבד. לכן אין צורך לגעת ב-.aspx
   ואין צורך בעטיפה חדשה, בניגוד ל-Search.aspx.

   שלוש מלכודות ייחודיות לדף הזה:

   1. ‎Style/Index.css נטען ב-phHead, כלומר **אחרי** גיליונות 2026.
      בתיקו של specificity הוא מנצח. לכן הסעיף הזה משתמש ב-!important
      הרבה יותר מכל סעיף אחר בקובץ — לא מרוב זהירות, אלא כי אין ברירה.
   2. ‎.Index * { overflow:hidden } — כלל אוניברסלי שחותך כל צאצא בדף.
      חייבים לנטרל אותו לפני כל פריסה גמישה.
   3. שתי תמונות ה-Strip מוגשות ב-http:// בתוך עמוד https, ולכן נחסמות
      בכל דפדפן מודרני. הן דקורטיביות ובלי alt — מוסתרות.
   ========================================================================== */

/* --------------------------------------------------------------------------
   נטרול כלל ה-overflow האוניברסלי
   ה-:not שומר על האלמנטים שקוצצו בכוונה ב-inline (הלינקים הממומנים),
   שמטופלים בנפרד למעלה.
   -------------------------------------------------------------------------- */
.Index *:not([style*="overflow"]) { overflow: visible !important; }

/* --------------------------------------------------------------------------
   הסקלטון: RightDiv / HPDividerCol / LeftDiv -> גריד
   ב-Index.css אלה שני floats של 544 ו-190 פיקסלים קבועים.
   -------------------------------------------------------------------------- */
.Index {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x);
  padding-block: 1.5rem;
}
@media (min-width: 1000px) {
  .Index { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
}
.Index .RightDiv,
.Index .LeftDiv {
  float: none !important; width: auto !important; min-width: 0;
}
@media (min-width: 1000px) {
  .Index .RightDiv { grid-column: 1; }
  .Index .LeftDiv  { grid-column: 2; }
}
/* עמודת המפריד הגרפי מיותרת בגריד */
.Index .HPDividerCol { display: none !important; }
.Index .Breaker { display: none !important; }

/* --------------------------------------------------------------------------
   מדריך החיפוש — .Phase1
   אותה שפה של המדריך בדף הבית (.finder-live), על markup אחר לגמרי:
   כאן שני <select> רגילים ו-div.Submit עם onclick.
   -------------------------------------------------------------------------- */
.Index .Phase1 {
  width: auto !important; height: auto !important;
  background: var(--c-surface-3) !important;
  border: 1px solid var(--c-border); border-radius: var(--r);
  padding: 1.5rem !important;
}
@media (min-width: 700px) {
  .Index .Phase1 { padding: 1.75rem 2rem !important; }
}
/* ה-div שעוטף את הכותרות נעול ל-height:60px ב-inline */
.Index .Phase1 > div[style*="height"] { height: auto !important; }

.Index .Phase1 .Title {
  font-size: var(--fs-h1) !important; font-weight: 800 !important;
  color: var(--bg-navy); line-height: var(--lh-tight);
  margin-bottom: 0.5rem;
}
.Index .Phase1 .SubTitle {
  font-size: var(--fs-base) !important; line-height: var(--lh) !important;
  color: var(--c-text-soft); margin-bottom: 1.25rem;
}

/* שתי השורות: תווית + בורר */
.Index .Phase1 .Strip {
  width: auto !important; height: auto !important;
  padding: 0 !important; margin: 0 0 1rem !important;
  display: grid; gap: 0.35rem;
}
.Index .Phase1 .Strip.Top,
.Index .Phase1 .Strip.Bottom { margin-top: 0 !important; }

/* אייקון דקורטיבי, בלי alt, ומוגש ב-http בתוך עמוד https */
.Index .Phase1 .Strip .Image { display: none !important; }

.Index .Phase1 .Strip .Text {
  float: none !important; padding: 0 !important;
  font-size: var(--fs-sm) !important; font-weight: 700;
  color: var(--c-text);
}
/* ההודעה שה-JS צובע באדום כשלא נבחר ערך */
.Index .Phase1 .Strip .Text.Invalid { color: var(--bg-red) !important; }

.Index .Phase1 .Strip .Select {
  float: none !important; padding: 0 !important;
}
.Index .Phase1 .Strip .Select select {
  width: 100% !important; min-height: var(--tap);
  font-family: inherit; font-size: var(--fs-base); color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
}
.Index .Phase1 .Strip .Select select:focus-visible {
  outline: 3px solid var(--bg-dark); outline-offset: 2px;
}

/* כפתור החיפוש. ב-markup הוא <div onclick> ריק בלי שם נגיש — כאן הוא
   מקבל מראה וטקסט של כפתור. התיקון הסמנטי דורש עריכת .ascx ובילד. */
.Index .Phase1 .Submit {
  float: none !important; width: auto !important; height: auto !important;
  min-height: var(--tap); margin: 0.5rem 0 0 !important;
  background: var(--bg-navy); color: #fff;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-family: inherit; font-size: var(--fs-lg); font-weight: 800;
  /* ‎justify-items:stretch ולא center: פריט גריד שממורכז מקבל רוחב
     ‎max-content, והתווית הארוכה גלשה מהכפתור במסך טלפון. */
  display: grid; align-items: center; justify-items: stretch;
  text-align: center; padding: 0.7rem 1.25rem; text-indent: 0;
  transition: background var(--t);
}
.Index .Phase1 .Submit::after { content: 'הציגו את המוסדות המתאימים  ←'; }
.Index .Phase1 .Submit:hover { background: var(--bg-navy-2); }
.Index .Phase1 .Submit:focus-visible { outline: 3px solid var(--bg-gold); outline-offset: 3px; }
@media (min-width: 700px) {
  .Index .Phase1 .Strip {
    grid-template-columns: minmax(0, 260px) minmax(0, 420px);
    justify-content: start; align-items: center; gap: 1rem;
  }
  .Index .Phase1 .Submit { justify-self: start; padding-inline: 2rem; }
}

/* --------------------------------------------------------------------------
   המוסד בחסות — .Sponser
   ב-Index.css זו רצועה של 544x75 עם תמונת רקע. כאן: כרטיס.
   -------------------------------------------------------------------------- */
.Index .Sponser {
  width: auto !important; height: auto !important;
  background: #fff !important;
  border: 1px solid var(--c-border-soft); border-radius: var(--r);
  box-shadow: var(--shadow-s);
  padding: 1rem;
  display: grid; gap: 0 1rem; align-items: center;
  grid-template-columns: 72px minmax(0, 1fr);
  position: relative;
}
@media (min-width: 700px) {
  .Index .Sponser { grid-template-columns: 72px minmax(0, 1fr) auto; }
}
.Index .Sponser .FloodingItemImg {
  float: none !important; width: auto !important; height: auto !important;
  margin: 0 !important; border: 0 !important;
}
.Index .Sponser .FloodingItemImg img {
  width: 100% !important; height: auto !important;
  border-radius: var(--r-sm); display: block; background: var(--c-surface-3);
}
.Index .Sponser .FloodingContentContainer {
  float: none !important; width: auto !important; height: auto !important;
  margin: 0 !important; min-width: 0;
}
.Index .Sponser .FloodingItemTitle {
  height: auto !important;
  font-size: var(--fs-lg); font-weight: 800; line-height: var(--lh-tight);
}
.Index .Sponser .FloodingItemTitle a { color: var(--bg-navy); }
.Index .Sponser .FloodingItemSubTitle {
  height: auto !important; margin-top: 0.2rem !important;
  font-size: var(--fs-sm); color: var(--c-text-soft); line-height: var(--lh);
}
/* "להזמנה" — עוד <a> שעוטף <div> ריק עם ספרייט רקע */
.Index .Sponser .FloodingItemOrder {
  float: none !important; width: auto !important; height: auto !important;
  margin: 0 !important;
}
.Index .Sponser .FloodingItemOrder a { display: block; }
.Index .Sponser .FloodingItemOrder div {
  width: auto !important; height: auto !important;
  min-height: var(--tap); display: grid; place-items: center;
  padding-inline: 1.25rem; white-space: nowrap;
  background: var(--bg-gold); color: var(--bg-dark);
  border-radius: var(--r-pill); font-weight: 800; font-size: var(--fs-sm);
}
.Index .Sponser .FloodingItemOrder div::after { content: 'לפרטים'; }
.Index .Sponser .FloodingItemOrder:hover div { background: var(--bg-gold-2); }
@media (max-width: 699px) {
  .Index .Sponser .FloodingItemOrder { grid-column: 1 / -1; margin-top: 0.75rem !important; }
}

/* --------------------------------------------------------------------------
   שתי רצועות התוכן — .ContentFloats ("מתוך הפורומים", "עוד כתבות בנושא")
   כל אחת: תמונה גדולה מימין, שלושה פריטים משמאל, קישור "עוד" בתחתית.
   הכותרת שלהן היא h1 — שני h1 נוספים בדף. זה חוב סמנטי שדורש .ascx.
   -------------------------------------------------------------------------- */
.Index .ContentFloatsDivider { display: none !important; }

.Index .ContentFloats {
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  padding: 1.25rem;
}
@media (min-width: 700px) {
  .Index .ContentFloats { padding: 1.5rem; }
}
.Index .ContentFloats .Title {
  font-size: var(--fs-h3) !important; font-weight: 800 !important;
  color: var(--bg-navy); line-height: var(--lh-tight);
  height: auto !important; width: auto !important; margin: 0 0 1rem;
}
/* ה-div שעוטף את שתי העמודות */
.Index .ContentFloats > div[style*="margin-top"] {
  display: grid; gap: var(--gap); margin-top: 0 !important;
}
@media (min-width: 700px) {
  .Index .ContentFloats > div[style*="margin-top"] {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
.Index .ContentFloats .RightSection,
.Index .ContentFloats .LeftSection {
  float: none !important; width: auto !important; min-width: 0;
}
.Index .ContentFloats .RightSection .Image {
  width: auto !important; height: auto !important; margin: 0 !important;
}
.Index .ContentFloats .RightSection .Image img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-sm); background: var(--c-surface-3);
}
.Index .ContentFloats .RightSection .Title {
  width: auto !important; height: auto !important; margin: 0.5rem 0 0 !important;
  font-size: var(--fs-base) !important; font-weight: 700 !important;
}
.Index .ContentFloats .RightSection .Title a { font-size: var(--fs-base) !important; color: var(--bg-navy); }

.Index .ContentFloats .LeftSection .Items {
  width: auto !important; height: auto !important;
  display: grid; gap: 0;
}
.Index .ContentFloats .LeftSection .Items .Item {
  padding: 0.85rem 0 !important;
  border-block-end: 1px solid var(--c-border-soft);
}
.Index .ContentFloats .LeftSection .Items .Item:last-of-type { border-block-end: 0; }
.Index .ContentFloats .LeftSection .Title {
  height: auto !important;
  font-size: var(--fs-base) !important; font-weight: 700 !important;
  line-height: var(--lh-tight); margin: 0;
}
/* ‎App_Themes/GUI/styles.css נטען אחרון ומגדיר ‎.search-bold{12px;Arial} —
   כאן צריך להצהיר גודל וגופן במפורש, לא להסתמך על ירושה. */
.Index .ContentFloats .LeftSection .Title a,
.Index .ContentFloats .LeftSection .Item .search-bold {
  color: var(--bg-navy); font-weight: 800;
  font-size: var(--fs-base); font-family: inherit;
}
.Index .ContentFloats .LeftSection .SubTitle {
  height: auto !important;
  font-size: var(--fs-sm) !important; color: var(--c-text-soft);
  line-height: var(--lh); margin-top: 0.15rem;
}
.Index .ContentFloats .LeftSection .More {
  float: none !important; margin-top: 1rem; display: flex; align-items: center;
}
.Index .ContentFloats .LeftSection .More > div[style] { float: none !important; }
/* החץ הגרפי שליד "עוד" */
.Index .ContentFloats .LeftSection .More img { display: none; }
.Index .ContentFloats .LeftSection .More a {
  display: inline-grid; place-items: center; min-height: var(--tap);
  padding-inline: 1.1rem;
  font-size: var(--fs-sm); font-weight: 800; color: var(--bg-navy);
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  background: #fff;
}
.Index .ContentFloats .LeftSection .More a:hover { background: var(--c-surface-3); text-decoration: none; }

/* --------------------------------------------------------------------------
   העמודה השמאלית
   שתי יחידות: ArticlesResults (45 טבלאות של 180px) ו-MarketingContent,
   שכבר מטופל למעלה בסעיף של SearchResults.
   -------------------------------------------------------------------------- */
.Index .LeftDiv { display: grid; gap: var(--gap); align-content: start; }

/* תיבת המודעה: ה-<ins> עצמו הוא קוד של גוגל ולא נוגעים בו */
.Index .LeftAdsenseBanner {
  width: auto !important; height: auto !important; padding: 0 !important;
  display: flex; justify-content: center; overflow: hidden !important;
}
@media (max-width: 999px) { .Index .LeftAdsenseBanner { display: none; } }

/* שיטוח טבלאות ArticlesResults — בטוח: אין בדף ולו th או caption אחד */
.Index .LeftDiv table,
.Index .LeftDiv tbody,
.Index .LeftDiv tr,
.Index .LeftDiv td {
  display: block; width: auto !important; height: auto !important;
  border-collapse: collapse;
}
.Index .LeftDiv td { padding: 0; vertical-align: top; text-align: start; }
.Index .LeftDiv td:empty { display: none; }

/* הטבלה החיצונית (width=201) היא התיבה עצמה */
.Index .LeftDiv table[width="201"] {
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r);
  padding: 1.1rem;
}
.Index .LeftDiv .ArticlesResultsTopTitle {
  font-size: var(--fs-h3); font-weight: 800; color: var(--bg-navy);
  background: none; height: auto; width: auto;
  margin-bottom: 0.75rem; text-align: start;
}
/* היחידה החוזרת: כותרת + תקציר + קו מקווקו */
.Index .LeftDiv .search-bold {
  font-size: var(--fs-base); font-weight: 700; line-height: var(--lh-tight);
  font-family: inherit;
}
.Index .LeftDiv .search-bold a { color: var(--bg-navy); font-weight: 800; }
.Index .LeftDiv .search-plain {
  font-size: var(--fs-sm); line-height: var(--lh); color: var(--c-text-soft);
  font-family: inherit; margin-top: 0.15rem;
}
.Index .LeftDiv div[style*="border-top"] {
  border-top: 1px solid var(--c-border-soft) !important;
  margin: 0.85rem 0 !important;
}

/* קיפול הרשימה. ‎initSideList() ב-begilenu.js מוסיף את .is-folded ואת
   הכפתור; בלי JS הרשימה פשוט נשארת פתוחה, ואף קישור לא נעלם. */
.Index .LeftDiv tr.is-folded { display: none !important; }
.Index .LeftDiv .side-more {
  width: 100%; min-height: var(--tap); margin-top: 0.75rem;
  background: #fff; color: var(--bg-navy);
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer;
}
.Index .LeftDiv .side-more:hover { background: var(--c-surface-3); }
.Index .LeftDiv .side-more:focus-visible { outline: 3px solid var(--bg-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .Index .Phase1 .Submit { transition: none; }
}


/* ==========================================================================
   2026-12 — ניצולים: כללים ותיקים שעדיין ניצחו את העיצוב החדש

   כל מה שכאן נמצא ב-BGLGRAFT — בדיקה שרצה על ה-HTML שהפרודקשן באמת
   מגיש, עם אותם גיליונות ותיקים ובאותו סדר טעינה (ראו assets/_graft-audit.js).
   אלה לא תיקונים תיאורטיים: כל שורה כאן מצביעה על אלמנט שנמדד בדפדפן.

   המכנה המשותף: גיליונות הדפים הוותיקים נטענים ב-phHead, כלומר **אחרי**
   גיליונות 2026, ולכן בתיקו של specificity הם מנצחים. התרופה היא דרגה
   אחת נוספת — ‎.BodyContainer לפני הסלקטור — ולא !important.
   ========================================================================== */

/* --------------------------------------------------------------------------
   שתי עמודות התוכן. ‎SearchResults.css מקבע ‎.RightDiv ל-544px, וזה גלש
   ב-204px במסך 360. הכלל הקודם כאן היה ‎.RightDiv לבדו — תיקו שהפסיד.
   -------------------------------------------------------------------------- */
.BodyContainer .RightDiv,
.BodyContainer .LeftDiv { float: none; width: auto; }

/* --------------------------------------------------------------------------
   טבלאות פריסה עם רוחב קבוע ב-attribute

   ‎:has מגן: טבלה עם th או caption היא טבלת נתונים ואין לגעת בפריסתה.
   בכל הדפים שנבדקו לא נמצאה ולו אחת כזו, אבל הדפים שלא נבדקו ממשיכים
   לחיות. בדפדפן שלא תומך ב-:has הסלקטור כולו נפסל והמצב נשאר כשהיה.
   -------------------------------------------------------------------------- */
.BodyContainer table[width]:not(:has(th)):not(:has(caption)),
.BodyContainer table:not(:has(th)):not(:has(caption)) td[width],
.BodyContainer table:not(:has(th)):not(:has(caption)) col[width] {
  width: auto !important;
  max-width: 100%;
}
/* ‎Search.css מקבע לכותרת העמודה 182px, והיא גלשה במסך 360 */
.BodyContainer .ArticlesResultsTopTitle { width: auto; }

/* ביטול הרוחב לבדו לא הספיק: טבלת פריסה עם ‎width:auto מתכווצת רק עד
   רוחב התוכן המינימלי שלה, ובדפי החיפוש והחדשות זה עדיין 545px — גלישה
   של 185px במסך 360. מתחת ל-1000px הטבלאות האלה נפרשות לשורות.
   מעל 1000px הן נשארות כפי שהן, כדי לא לשנות פריסה שכבר נבדקה. */
@media (max-width: 999px) {
  .BodyContainer table:not(:has(th)):not(:has(caption)),
  .BodyContainer table:not(:has(th)):not(:has(caption)) > tbody,
  .BodyContainer table:not(:has(th)):not(:has(caption)) > tbody > tr,
  .BodyContainer table:not(:has(th)):not(:has(caption)) > tbody > tr > td {
    display: block;
    width: auto !important;
    height: auto !important;
  }
}
/* תמונה לא תגרום לגלישה אופקית בשום רוחב */
.BodyContainer img { max-width: 100%; }

/* ‎div ריק עם רוחב inline הוא תמיד קו הפרדה או spacer דקורטיבי — ב-Search.aspx
   יש 14 כאלה ברוחב 510px, והם לבדם החזיקו את הדף רחב במסכי טלפון. */
.BodyContainer div[style*="width:"]:empty,
.BodyContainer div[style*="width: "]:empty {
  width: auto !important;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   גדלים: מה ששרד אחרי האיפוס הגלובלי ב-begilenu.css
   כולם כללים עם שתי מחלקות ומעלה, או inline.
   -------------------------------------------------------------------------- */
.BodyContainer .SearchResultsH3 { font-size: var(--fs-sm); }
.BodyContainer .MultiRegisterInfo .SubTitle,
.BodyContainer .MultiRegister span { font-size: var(--fs-sm); }
.BodyContainer .SearchResultsContainer .Details .MediaStrip a { font-size: var(--fs-xs); }
.BodyContainer .CheackIt .Container .Item .Title { font-size: var(--fs-base); }
.BodyContainer .OpenDaysSearchContainer .LinksStrip a { font-size: var(--fs-sm); }
.BodyContainer .FooterFeatures.Disclaimer form .Title ~ div,
.BodyContainer .FooterFeatures.Disclaimer form .Title ~ div b { font-size: var(--fs-base); }
.BodyContainer .HPOpenDays .Content .More,
.BodyContainer .HPOpenDays .Content .More a { font-size: var(--fs-sm); }

/* ‎font-size inline — גובר על כל גיליון, ולכן !important.
   ‎10–11px עולים ל-15 (הרצפה), ‎12–14px ל-17. */
.BodyContainer [style*="font-size:10px"], .BodyContainer [style*="font-size: 10px"],
.BodyContainer [style*="font-size:11px"], .BodyContainer [style*="font-size: 11px"] {
  font-size: var(--fs-xs) !important;
}
.BodyContainer [style*="font-size:12px"], .BodyContainer [style*="font-size: 12px"],
.BodyContainer [style*="font-size:13px"], .BodyContainer [style*="font-size: 13px"],
.BodyContainer [style*="font-size:14px"], .BodyContainer [style*="font-size: 14px"] {
  font-size: var(--fs-sm) !important;
}

/* --------------------------------------------------------------------------
   מגזין: שני שרידים נקודתיים
   -------------------------------------------------------------------------- */
.BodyContainer .ArticlesContainer { width: auto; }
.BodyContainer .MainPageTopFloats .SubTitle { color: var(--c-text-soft); }
