@charset "UTF-8";
/* =====================================================================
   ilimudim 2026 — design system
   zap visual language. Navy anchor. RTL. Mobile first.

   Every class is prefixed `ilm-` so this sheet can sit next to the 141
   legacy stylesheets without a single collision. Nothing here overrides
   old rules by force: the new markup uses new class names, so there is
   no !important arms race.

   Sections
     1  fonts
     2  tokens
     3  reset + base
     4  layout primitives
     5  typography
     6  buttons
     7  form controls
     8  cards + surfaces
     9  decorative shapes
    10  header
    11  navigation (desktop + mobile drawer)
    12  footer
    13  motion
    14  accessibility utilities
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. fonts
   --------------------------------------------------------------------- */
@font-face{
  font-family:"Noto Sans Hebrew Var";
  src:url("fonts/NotoSansHebrew-Variable.ttf") format("truetype-variations");
  font-weight:100 900;
  font-display:swap;
}
@font-face{
  font-family:"Gveret Levin";
  src:url("fonts/GveretLevin-Regular.ttf") format("truetype");
  font-weight:400;
  font-display:swap;
}

/* ---------------------------------------------------------------------
   2. tokens
   --------------------------------------------------------------------- */
:root{
  /* --- official zap palette --- */
  --ilm-navy:#052b7a;          /* brand anchor */
  --ilm-navy-ink:#031d55;      /* pressed / deeper */
  --ilm-navy-soft:#2b4b8e;     /* hover */
  --ilm-navy-wash:#eef2f9;     /* tinted surface */
  --ilm-navy-line:#c6d2e8;
  --ilm-dark:#001c32;
  --ilm-yellow:#ffc600;
  --ilm-green:#00ab12;
  --ilm-pink:#ff5c9e;
  --ilm-purple:#485cc7;
  --ilm-red:#ff210d;

  /* --- neutrals, all AA against their intended background --- */
  --ilm-ink:#001c32;           /* 16.8:1 on white */
  --ilm-ink-2:#44586a;         /*  7.4:1 on white */
  --ilm-ink-3:#5b6b7b;         /*  5.2:1 on white  — lightest text allowed */
  --ilm-line:#e3e7ec;
  --ilm-line-2:#eef1f5;
  --ilm-bg:#fff;
  --ilm-bg-2:#f5f7fa;

  /* --- spacing --- */
  --ilm-1:4px;  --ilm-2:8px;  --ilm-3:12px; --ilm-4:16px;
  --ilm-5:20px; --ilm-6:24px; --ilm-8:32px; --ilm-10:40px;
  --ilm-12:48px; --ilm-16:64px; --ilm-20:80px; --ilm-24:96px;

  /* --- radius. zap rounds background shapes at roughly 6% --- */
  --ilm-r-sm:10px;
  --ilm-r:16px;
  --ilm-r-lg:24px;
  --ilm-r-xl:32px;
  --ilm-pill:999px;

  /* --- elevation --- */
  --ilm-sh-1:0 1px 2px rgba(0,28,50,.05), 0 4px 12px rgba(0,28,50,.06);
  --ilm-sh-2:0 2px 6px rgba(0,28,50,.06), 0 14px 32px rgba(0,28,50,.10);
  --ilm-sh-3:0 4px 10px rgba(0,28,50,.07), 0 28px 60px rgba(0,28,50,.16);

  /* --- motion --- */
  --ilm-ease:cubic-bezier(.2,.8,.3,1);
  --ilm-ease-out:cubic-bezier(.16,1,.3,1);
  --ilm-fast:.15s;
  --ilm-med:.28s;
  --ilm-slow:.5s;

  /* --- layout --- */
  --ilm-max:1240px;
  --ilm-gutter:clamp(16px, 4vw, 32px);
  --ilm-header-h:72px;

  /* --- type scale, fluid --- */
  --ilm-fs-display:clamp(2rem, 1.15rem + 3.6vw, 3.5rem);
  --ilm-fs-h1:clamp(1.65rem, 1.15rem + 2.1vw, 2.75rem);
  --ilm-fs-h2:clamp(1.4rem, 1.1rem + 1.3vw, 2.125rem);
  --ilm-fs-h3:clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --ilm-fs-lead:clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --ilm-fs-md:1.0625rem;  /* was used by ilimudim-pages.css and never defined */
  --ilm-fs-body:1rem;
  --ilm-fs-sm:.9375rem;
  --ilm-fs-xs:.8125rem;
}

@media (min-width:900px){
  :root{ --ilm-fs-body:1.0625rem; --ilm-header-h:88px; }
}

/* ---------------------------------------------------------------------
   3. reset + base — scoped to the new tree only
   --------------------------------------------------------------------- */
.ilm *,
.ilm *::before,
.ilm *::after{ box-sizing:border-box; }

.ilm{
  font-family:"Noto Sans Hebrew Var","Noto Sans Hebrew","Segoe UI",Arial,sans-serif;
  font-size:var(--ilm-fs-body);
  font-weight:380;
  line-height:1.65;
  color:var(--ilm-ink);
  direction:rtl;
  text-align:right;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-variant-numeric:tabular-nums;
}

/* Zero specificity, same reason as the link reset above. `.ilm img` is
   (0,1,1) and silently beat every single-class component rule - which is how
   a header image with display:none on its own class still rendered. With
   :where() any component that sets its own display simply wins. */
:where(.ilm) :where(img, svg){ max-width:100%; height:auto; display:block; }

/* Zero-specificity base. `.ilm a` would be (0,1,1) and quietly beat every
   single-class component rule — which is how a navy link colour ended up
   painting navy text onto navy buttons. :where() contributes nothing to
   specificity, so any component that sets its own colour simply wins, and
   none of them needs !important to do it. */
/* (0,0,1), not (0,0,0). Common_1.0.css, which every page loads, has a
   global `a{color:#353f48}` at (0,0,1); a fully zero-specificity base lost
   to it and every link without a colour of its own rendered grey. At
   (0,0,1) the two tie and this one wins on load order, while every
   component class (0,1,0) still beats it. */
:where(.ilm) a{
  color:var(--ilm-navy);
  text-decoration:none;
  transition:color var(--ilm-fast) var(--ilm-ease);
}
/* Hover stays at zero specificity on purpose. Legacy `a:hover` is (0,1,1);
   matching it here would also beat every single-class component on hover
   and underline the buttons. Components that are links set their own
   hover colour instead (see .ilm-btn, .ilm-topic, .ilm-art__link …). */
:where(.ilm) :where(a:hover){
  color:var(--ilm-navy-soft);
  text-decoration:underline;
}

/* The resets below must not reach inside the legacy user controls: those
   were laid out against browser defaults, and a reset that strips their
   list padding or paragraph margins rearranges them. .ilm-legacybox wraps
   every legacy control on the rewritten pages; .scroll-pane is the
   institute page's database HTML. :where() keeps the exclusion at zero
   specificity, so the rule as a whole stays (0,0,1). */
:where(.ilm) :is(ul, ol):where(:not(.ilm-legacybox *, .scroll-pane *)){ margin:0; padding:0; list-style:none; }
:where(.ilm) p:where(:not(.ilm-legacybox *, .scroll-pane *)){ margin:0 0 var(--ilm-4); }
:where(.ilm) p:where(:last-child):where(:not(.ilm-legacybox *, .scroll-pane *)){ margin-bottom:0; }

/* ---------------------------------------------------------------------
   4. layout primitives
   --------------------------------------------------------------------- */
.ilm-container{
  width:100%;
  max-width:var(--ilm-max);
  margin-inline:auto;
  padding-inline:var(--ilm-gutter);
}

/* a section of the page */
.ilm-section{ padding-block:var(--ilm-12); }
.ilm-section--tight{ padding-block:var(--ilm-8); }
.ilm-section--wash{ background:var(--ilm-bg-2); }
.ilm-section--navy{ background:var(--ilm-navy); color:#fff; }
.ilm-section--navy .ilm-section__title,
.ilm-section--navy .ilm-section__lead{ color:#fff; }

@media (min-width:900px){
  .ilm-section{ padding-block:var(--ilm-20); }
  .ilm-section--tight{ padding-block:var(--ilm-12); }
}

.ilm-section__head{
  display:flex;
  flex-direction:column;
  gap:var(--ilm-2);
  margin-bottom:var(--ilm-8);
}
@media (min-width:700px){
  .ilm-section__head{
    flex-direction:row;
    align-items:flex-end;
    justify-content:space-between;
    gap:var(--ilm-6);
  }
}
.ilm-section__title{
  font-size:var(--ilm-fs-h2);
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.015em;
  margin:0;
}
.ilm-section__lead{
  color:var(--ilm-ink-2);
  font-size:var(--ilm-fs-lead);
  margin:0;
  max-width:62ch;
}
.ilm-section__more{
  font-weight:700;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:var(--ilm-2);
  min-height:44px;          /* a text link is still a touch target */
  align-self:flex-start;
}
.ilm-section__more::after{
  content:"←";
  transition:transform var(--ilm-fast) var(--ilm-ease);
}
.ilm-section__more:hover::after{ transform:translateX(-4px); }

/* responsive auto grid */
.ilm-grid{
  display:grid;
  gap:var(--ilm-4);
  grid-template-columns:1fr;
}
@media (min-width:600px){ .ilm-grid{ gap:var(--ilm-5); grid-template-columns:repeat(2,1fr); }
  /* Twelve pages were already writing .ilm-grid--2 and getting two columns
     by accident, because two is what the base happens to be. Naming it makes
     the markup honest and survives a change to the base. */
  .ilm-grid--2{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px){ .ilm-grid{ gap:var(--ilm-6); } }
@media (min-width:900px){
  .ilm-grid--3{ grid-template-columns:repeat(3,1fr); }
  .ilm-grid--4{ grid-template-columns:repeat(4,1fr); }
}
@media (min-width:600px) and (max-width:899px){
  .ilm-grid--4{ grid-template-columns:repeat(2,1fr); }
}

/* main + aside */
.ilm-split{ display:grid; gap:var(--ilm-8); grid-template-columns:1fr; }
@media (min-width:1000px){
  .ilm-split{ grid-template-columns:minmax(0,1fr) 320px; gap:var(--ilm-10); }
}

/* horizontal scroller — becomes a grid on wide screens */
.ilm-rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px, 78vw);
  gap:var(--ilm-4);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:var(--ilm-3);
  margin-inline:calc(var(--ilm-gutter) * -1);
  padding-inline:var(--ilm-gutter);
  scrollbar-width:thin;
}
.ilm-rail > *{ scroll-snap-align:start; }
@media (min-width:700px){
  .ilm-rail{ grid-auto-columns:minmax(280px, 42%); }
}
@media (min-width:1000px){
  .ilm-rail{
    grid-auto-flow:row;
    grid-template-columns:repeat(3,1fr);
    overflow:visible;
    margin-inline:0;
    padding-inline:0;
    gap:var(--ilm-6);
  }
}

/* ---------------------------------------------------------------------
   5. typography
   --------------------------------------------------------------------- */
/* Was `.ilm h1` - (0,1,1), the same trap as `.ilm a` and `.ilm img`: it
   beat the single-class heading rules inside the legacy controls, so the
   sidebar's Triple titles rendered at 24px/900 inside a fixed 45px box and
   overlapped the next item, and every forum name in the forum list came
   out at 34px. Now (0,0,1), and kept out of the legacy controls and the
   institute's database HTML entirely - there, headings fall back to the
   control's own rules or the browser default, exactly as before. */
:where(.ilm) :is(h1,h2,h3,h4):where(:not(.ilm-legacybox *, .scroll-pane *)){
  margin:0 0 var(--ilm-3);
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.015em;
  color:inherit;
}
:where(.ilm) h1:where(:not(.ilm-legacybox *, .scroll-pane *)){ font-size:var(--ilm-fs-h1); }
:where(.ilm) h2:where(:not(.ilm-legacybox *, .scroll-pane *)){ font-size:var(--ilm-fs-h2); }
:where(.ilm) h3:where(:not(.ilm-legacybox *, .scroll-pane *)){ font-size:var(--ilm-fs-h3); }
:where(.ilm) h4:where(:not(.ilm-legacybox *, .scroll-pane *)){ font-size:1.0625rem; }

.ilm-display{
  font-size:var(--ilm-fs-display);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.025em;
  margin:0;
}
.ilm-lead{
  font-size:var(--ilm-fs-lead);
  color:var(--ilm-ink-2);
  font-weight:380;
}
.ilm-muted{ color:var(--ilm-ink-3); }
.ilm-small{ font-size:var(--ilm-fs-sm); }
.ilm-xs{ font-size:var(--ilm-fs-xs); }

/* the one handwritten accent zap allows. Decorative only, never a
   sentence of real content, never the only cue for meaning. */
.ilm-script{
  font-family:"Gveret Levin",cursive;
  font-weight:400;
  letter-spacing:0;
  color:var(--ilm-yellow);
  line-height:1;
}

.ilm-eyebrow{
  display:inline-block;
  font-size:var(--ilm-fs-xs);
  font-weight:900;
  letter-spacing:.06em;
  text-transform:none;
  color:var(--ilm-navy);
  background:var(--ilm-navy-wash);
  padding:6px 14px;
  border-radius:var(--ilm-pill);
}
.ilm-section--navy .ilm-eyebrow{
  color:#fff;
  background:rgba(255,255,255,.16);
}

/* ---------------------------------------------------------------------
   6. buttons — 44px minimum touch target throughout
   --------------------------------------------------------------------- */
.ilm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--ilm-2);
  min-height:48px;
  padding:12px 28px;
  border:0;
  border-radius:var(--ilm-pill);
  font:inherit;
  font-weight:900;
  font-size:var(--ilm-fs-body);
  line-height:1.2;
  text-align:center;
  text-decoration:none !important;
  cursor:pointer;
  transition:background var(--ilm-fast) var(--ilm-ease),
             color var(--ilm-fast) var(--ilm-ease),
             transform var(--ilm-fast) var(--ilm-ease),
             box-shadow var(--ilm-fast) var(--ilm-ease);
}
.ilm-btn:active{ transform:translateY(1px); }

.ilm-btn--primary{ background:var(--ilm-navy); color:#fff; }
.ilm-btn--primary:hover{ background:var(--ilm-navy-soft); color:#fff;
                          box-shadow:var(--ilm-sh-2); }

.ilm-btn--yellow{ background:var(--ilm-yellow); color:var(--ilm-dark); }
.ilm-btn--yellow:hover{ background:#ffd333; color:var(--ilm-dark);
                         box-shadow:var(--ilm-sh-2); }

.ilm-btn--ghost{
  background:transparent;
  color:var(--ilm-navy);
  box-shadow:inset 0 0 0 1.5px var(--ilm-navy-line);
}
.ilm-btn--ghost:hover{ background:var(--ilm-navy-wash); color:var(--ilm-navy); }

.ilm-btn--on-navy{ background:#fff; color:var(--ilm-navy); }
.ilm-btn--on-navy:hover{ background:var(--ilm-navy-wash); color:var(--ilm-navy); }

.ilm-btn--block{ width:100%; }
.ilm-btn--sm{ min-height:40px; padding:8px 18px; font-size:var(--ilm-fs-sm); }

/* the zap arrow pill */
.ilm-btn--arrow::after{
  content:"←";
  font-weight:900;
  transition:transform var(--ilm-fast) var(--ilm-ease);
}
.ilm-btn--arrow:hover::after{ transform:translateX(-4px); }

/* ---------------------------------------------------------------------
   7. form controls
   --------------------------------------------------------------------- */
.ilm-field{ display:block; margin-bottom:var(--ilm-4); }
.ilm-field__label{
  display:block;
  font-size:var(--ilm-fs-sm);
  font-weight:700;
  color:var(--ilm-ink-2);
  margin-bottom:6px;
}
.ilm-input,
.ilm-select,
.ilm-textarea{
  display:block;
  width:100%;
  min-height:48px;
  padding:11px 16px;
  font:inherit;
  font-size:var(--ilm-fs-body);
  color:var(--ilm-ink);
  background:#fff;
  border:1.5px solid var(--ilm-line);
  border-radius:var(--ilm-r-sm);
  transition:border-color var(--ilm-fast) var(--ilm-ease),
             box-shadow var(--ilm-fast) var(--ilm-ease);
}
.ilm-input::placeholder,
.ilm-textarea::placeholder{ color:var(--ilm-ink-3); opacity:1; }
.ilm-input:hover,
.ilm-select:hover{ border-color:var(--ilm-navy-line); }
.ilm-input:focus,
.ilm-select:focus,
.ilm-textarea:focus{
  outline:none;
  border-color:var(--ilm-navy);
  box-shadow:0 0 0 3px rgba(5,43,122,.14);
}
.ilm-input[aria-invalid="true"]{
  border-color:var(--ilm-red);
  box-shadow:0 0 0 3px rgba(255,33,13,.12);
}
.ilm-field__error{
  display:block;
  margin-top:6px;
  font-size:var(--ilm-fs-sm);
  font-weight:700;
  color:#c81700;
}
.ilm-select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2344586a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 16px center;
  padding-left:44px;
}
.ilm-textarea{ min-height:120px; resize:vertical; padding-block:14px; }

/* checkbox + radio, 44px hit area with a visible custom control */
.ilm-check{
  display:flex;
  align-items:flex-start;
  gap:var(--ilm-3);
  min-height:44px;
  padding-block:10px;
  cursor:pointer;
  font-size:var(--ilm-fs-sm);
  line-height:1.5;
}
.ilm-check input{
  flex:0 0 auto;
  width:22px; height:22px;
  margin:0;
  accent-color:var(--ilm-navy);
  cursor:pointer;
}
.ilm-check input:focus-visible{
  outline:3px solid var(--ilm-navy);
  outline-offset:2px;
}

/* a pill-shaped search: field + button welded together */
.ilm-search{
  display:flex;
  align-items:stretch;
  gap:var(--ilm-2);
  background:#fff;
  border:1.5px solid var(--ilm-line);
  border-radius:var(--ilm-pill);
  padding:5px 5px 5px 5px;
  transition:border-color var(--ilm-fast) var(--ilm-ease),
             box-shadow var(--ilm-fast) var(--ilm-ease);
}
.ilm-search:focus-within{
  border-color:var(--ilm-navy);
  box-shadow:0 0 0 3px rgba(5,43,122,.14);
}
.ilm-search__input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  border:0;
  background:transparent;
  padding:8px 18px;
  font:inherit;
  font-size:var(--ilm-fs-body);
  color:var(--ilm-ink);
}
.ilm-search__input:focus{ outline:none; }
.ilm-search__btn{
  flex:0 0 auto;
  min-height:44px;
  padding:8px 24px;
  border:0;
  border-radius:var(--ilm-pill);
  background:var(--ilm-navy);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:background var(--ilm-fast) var(--ilm-ease);
}
.ilm-search__btn:hover{ background:var(--ilm-navy-soft); }

/* ---------------------------------------------------------------------
   8. cards + surfaces
   --------------------------------------------------------------------- */
.ilm-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:var(--ilm-r);
  overflow:hidden;
  transition:transform var(--ilm-med) var(--ilm-ease),
             box-shadow var(--ilm-med) var(--ilm-ease),
             border-color var(--ilm-med) var(--ilm-ease);
}
.ilm-card--hover:hover,
.ilm-card--hover:focus-within{
  transform:translateY(-4px);
  box-shadow:var(--ilm-sh-2);
  border-color:transparent;
}
.ilm-card__media{
  position:relative;
  aspect-ratio:16/10;
  background:var(--ilm-navy-wash);
  overflow:hidden;
}
.ilm-card__media img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform var(--ilm-slow) var(--ilm-ease-out);
}
.ilm-card--hover:hover .ilm-card__media img{ transform:scale(1.045); }
.ilm-card__body{
  display:flex;
  flex-direction:column;
  gap:var(--ilm-2);
  padding:var(--ilm-5);
  flex:1 1 auto;
}
.ilm-card__title{
  font-size:1.0625rem;
  font-weight:900;
  line-height:1.3;
  margin:0;
  color:var(--ilm-ink);
}
.ilm-card__text{
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-2);
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ilm-card__foot{
  margin-top:auto;
  padding-top:var(--ilm-3);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ilm-3);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-3);
}

/* the whole card is clickable, but only the title is a real link, so a
   screen reader reads one link and the keyboard tabs once. */
.ilm-card__link::after{
  content:"";
  position:absolute;
  inset:0;
}

.ilm-panel{
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:var(--ilm-r-lg);
  padding:var(--ilm-6);
}
@media (min-width:900px){ .ilm-panel{ padding:var(--ilm-8); } }
.ilm-panel--raised{ border-color:transparent; box-shadow:var(--ilm-sh-3); }
.ilm-panel--wash{ background:var(--ilm-navy-wash); border-color:transparent; }

.ilm-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 12px;
  border-radius:var(--ilm-pill);
  background:var(--ilm-navy-wash);
  color:var(--ilm-navy);
  font-size:var(--ilm-fs-xs);
  font-weight:700;
  line-height:1.4;
}
.ilm-tag--green{ background:rgba(0,171,18,.12); color:#00790d; }
.ilm-tag--pink{  background:rgba(255,92,158,.16); color:#c01f5f; }
.ilm-tag--yellow{ background:rgba(255,198,0,.22); color:#7a5f00; }

/* ---------------------------------------------------------------------
   9. decorative shapes — zap background geometry
   --------------------------------------------------------------------- */
.ilm-shapes{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.ilm-shapes > *{ position:absolute; }

/* a single metro line, used sparingly: one per page at most */
.ilm-metro{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.5;
}
.ilm-metro path{
  fill:none;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray:1400;
  stroke-dashoffset:1400;
}

.ilm-blob{
  border-radius:40% 60% 55% 45% / 50% 45% 55% 50%;
  filter:blur(2px);
  opacity:.5;
}

/* ---------------------------------------------------------------------
   10. header
   --------------------------------------------------------------------- */
.ilm-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.6) blur(12px);
  -webkit-backdrop-filter:saturate(1.6) blur(12px);
  border-bottom:1px solid var(--ilm-line);
}
.ilm-header__bar{
  display:flex;
  align-items:center;
  gap:var(--ilm-4);
  min-height:var(--ilm-header-h);
}
.ilm-header__logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-height:44px;          /* the image is shorter than the touch target */
  line-height:0;
}
/* The 2026 wordmark is about twice as wide for its height as the old JPG
   was - the JPG was squarer because it carried a Hebrew tagline under the
   name, which was illegible at this size anyway. So the logo is capped by
   width as well as height: on a narrow phone the cap binds first and the
   whole lockup scales down proportionally, instead of crowding the menu
   button off the bar. */
.ilm-header__logo img{ height:38px; width:auto; max-width:52vw; }
@media (min-width:900px){ .ilm-header__logo img{ height:46px; max-width:none; } }

.ilm-header__search{
  flex:1 1 auto;
  min-width:0;
  display:none;
}
@media (min-width:900px){
  .ilm-header__search{ display:block; max-width:420px; margin-inline-start:var(--ilm-4); }
}

.ilm-header__actions{
  margin-inline-start:auto;
  display:flex;
  align-items:center;
  gap:var(--ilm-3);
}

.ilm-phone{
  display:none;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.15;
  text-decoration:none !important;
}
@media (min-width:700px){ .ilm-phone{ display:flex; } }
.ilm-phone__label{
  font-size:var(--ilm-fs-xs);
  color:var(--ilm-ink-2);
  font-weight:500;
}
.ilm-phone__number{
  font-size:1.25rem;
  font-weight:900;
  color:var(--ilm-navy);
  letter-spacing:-.01em;
  direction:ltr;
}
.ilm-phone:hover .ilm-phone__number{ color:var(--ilm-navy-soft); }

/* icon button, e.g. the hamburger and the mobile search toggle */
.ilm-iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px; height:48px;
  padding:0;
  border:0;
  border-radius:var(--ilm-r-sm);
  background:transparent;
  color:var(--ilm-navy);
  cursor:pointer;
  transition:background var(--ilm-fast) var(--ilm-ease);
}
.ilm-iconbtn:hover{ background:var(--ilm-navy-wash); }
@media (min-width:900px){ .ilm-iconbtn--menu{ display:none; } }

.ilm-burger{ width:24px; height:18px; position:relative; }
.ilm-burger span{
  position:absolute;
  inset-inline:0;
  height:2.5px;
  border-radius:2px;
  background:currentColor;
  transition:transform var(--ilm-med) var(--ilm-ease),
             opacity var(--ilm-fast) var(--ilm-ease);
}
.ilm-burger span:nth-child(1){ top:0; }
.ilm-burger span:nth-child(2){ top:50%; margin-top:-1.25px; }
.ilm-burger span:nth-child(3){ bottom:0; }
[aria-expanded="true"] .ilm-burger span:nth-child(1){ transform:translateY(7.75px) rotate(45deg); }
[aria-expanded="true"] .ilm-burger span:nth-child(2){ opacity:0; }
[aria-expanded="true"] .ilm-burger span:nth-child(3){ transform:translateY(-7.75px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   11. navigation
   --------------------------------------------------------------------- */
.ilm-nav{ display:none; background:var(--ilm-navy); }
@media (min-width:900px){ .ilm-nav{ display:block; } }

/* The menu comes from the database, so the item count and the label
   lengths can change without warning. Never wrap — a ragged second row
   of tabs reads as a bug — and let it scroll if it ever outgrows the
   bar. The compact breakpoint below keeps that from happening with
   today's nine items. */
.ilm-nav__list{
  display:flex;
  align-items:stretch;
  flex-wrap:nowrap;
  gap:2px;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.ilm-nav__list::-webkit-scrollbar{ display:none; }
.ilm-nav__link{ flex:0 0 auto; }
.ilm-nav__item{ position:relative; display:flex; }
.ilm-nav__link{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:52px;
  padding:0 16px;
  color:#fff !important;
  font-size:var(--ilm-fs-sm);
  font-weight:500;
  text-decoration:none !important;
  white-space:nowrap;
  border-radius:var(--ilm-r-sm) var(--ilm-r-sm) 0 0;
  transition:background var(--ilm-fast) var(--ilm-ease);
}
.ilm-nav__link:hover,
.ilm-nav__item:focus-within > .ilm-nav__link,
.ilm-nav__link[aria-expanded="true"]{ background:rgba(255,255,255,.14); }
.ilm-nav__link[aria-current="page"]{ font-weight:900; }
.ilm-nav__link[aria-current="page"]::before{
  content:"";
  position:absolute;
  inset-inline:16px;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--ilm-yellow);
}
/* Nine items with long Hebrew labels need roughly 1150px to sit on one
   row. Between the nav appearing and that width, tighten rather than
   wrap: a second row of tabs reads as a mistake. */
@media (min-width:900px) and (max-width:1199px){
  .ilm-nav__link{ padding:0 9px; font-size:.8438rem; }
}

.ilm-nav__caret{
  width:9px; height:6px;
  flex:0 0 auto;
  transition:transform var(--ilm-fast) var(--ilm-ease);
}
.ilm-nav__link[aria-expanded="true"] .ilm-nav__caret{ transform:rotate(180deg); }

.ilm-nav__panel{
  position:absolute;
  top:100%;
  inset-inline-start:0;
  min-width:240px;
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:0 var(--ilm-r) var(--ilm-r) var(--ilm-r);
  box-shadow:var(--ilm-sh-3);
  padding:var(--ilm-2);
  z-index:5;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity var(--ilm-fast) var(--ilm-ease),
             transform var(--ilm-fast) var(--ilm-ease),
             visibility var(--ilm-fast);
}
.ilm-nav__item:hover > .ilm-nav__panel,
.ilm-nav__item:focus-within > .ilm-nav__panel,
.ilm-nav__panel[data-open="true"]{
  opacity:1; visibility:visible; transform:none;
}
.ilm-nav__panel a{
  display:block;
  padding:10px 14px;
  min-height:44px;
  border-radius:var(--ilm-r-sm);
  color:var(--ilm-ink-2) !important;
  font-size:var(--ilm-fs-sm);
  text-decoration:none !important;
  transition:background var(--ilm-fast) var(--ilm-ease),
             color var(--ilm-fast) var(--ilm-ease);
}
.ilm-nav__panel a:hover{
  background:var(--ilm-navy-wash);
  color:var(--ilm-navy) !important;
}

/* --- mobile drawer --- */
.ilm-drawer{
  position:fixed;
  inset:0;
  z-index:100;
  pointer-events:none;
  /* Closed, the drawer is only translated off-screen. Without visibility it
     stays in the tab order and the accessibility tree - an always-present
     aria-modal dialog. inert does the same job but only where the browser
     supports it and only once the script has run; visibility works
     everywhere, from the first paint. The delay keeps it visible while the
     sheet slides out. */
  visibility:hidden;
  transition:visibility 0s linear var(--ilm-med);
}
.ilm-drawer[data-open="true"]{ visibility:visible; transition-delay:0s; }
.ilm-drawer__scrim{
  position:absolute;
  inset:0;
  background:rgba(0,28,50,.55);
  opacity:0;
  transition:opacity var(--ilm-med) var(--ilm-ease);
}
/* The sheet sits on the inline-start edge — the right, in Hebrew — and
   parks itself just outside it. translateX is physical, not logical, so
   the resting offset has to flip with the document direction. */
.ilm-drawer__sheet{
  position:absolute;
  inset-block:0;
  inset-inline-start:0;
  width:min(380px,88vw);
  background:#fff;
  box-shadow:var(--ilm-sh-3);
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform var(--ilm-med) var(--ilm-ease-out);
  overflow-y:auto;
  overscroll-behavior:contain;
}
[dir="ltr"] .ilm-drawer__sheet{ transform:translateX(-100%); }
.ilm-drawer[data-open="true"]{ pointer-events:auto; }
.ilm-drawer[data-open="true"] .ilm-drawer__scrim{ opacity:1; }
.ilm-drawer[data-open="true"] .ilm-drawer__sheet{ transform:none; }

.ilm-drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ilm-3);
  padding:var(--ilm-4);
  border-bottom:1px solid var(--ilm-line);
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
}
.ilm-drawer__body{ padding:var(--ilm-4); }

.ilm-acc__item + .ilm-acc__item{ border-top:1px solid var(--ilm-line-2); }
.ilm-acc__trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ilm-3);
  width:100%;
  min-height:52px;
  padding:12px 4px;
  border:0;
  background:transparent;
  font:inherit;
  font-size:1.0625rem;
  font-weight:700;
  color:var(--ilm-ink);
  text-align:start;
  cursor:pointer;
}
.ilm-acc__trigger .ilm-nav__caret{ color:var(--ilm-ink-3); }
.ilm-acc__trigger[aria-expanded="true"] .ilm-nav__caret{ transform:rotate(180deg); }
.ilm-acc__panel{ padding-bottom:var(--ilm-3); }
.ilm-acc__panel[hidden]{ display:none; }
.ilm-acc__panel a{
  display:block;
  min-height:44px;
  padding:10px 14px;
  border-radius:var(--ilm-r-sm);
  color:var(--ilm-ink-2);
  font-size:var(--ilm-fs-sm);
  text-decoration:none;
}
.ilm-acc__panel a:hover{ background:var(--ilm-navy-wash); color:var(--ilm-navy); }

body.ilm-locked{ overflow:hidden; }

/* ---------------------------------------------------------------------
   12. footer
   --------------------------------------------------------------------- */
.ilm-footer{
  background:var(--ilm-dark);
  color:#c8d2da;
  padding-block:var(--ilm-12) var(--ilm-6);
  margin-top:var(--ilm-12);
}
.ilm-footer__grid{
  display:grid;
  gap:var(--ilm-8);
  grid-template-columns:1fr;
}
@media (min-width:600px){ .ilm-footer__grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .ilm-footer__grid{ grid-template-columns:repeat(4,1fr); gap:var(--ilm-10); } }

.ilm-footer__head{
  font-size:1.0625rem;
  font-weight:900;
  color:#fff;
  padding-bottom:var(--ilm-3);
  margin-bottom:var(--ilm-3);
  border-bottom:1px solid rgba(255,255,255,.16);
}
.ilm-footer__link{
  display:block;
  min-height:36px;
  padding-block:5px;
  color:#c8d2da !important;
  font-size:var(--ilm-fs-sm);
  text-decoration:none !important;
  transition:color var(--ilm-fast) var(--ilm-ease);
}
.ilm-footer__link:hover{ color:#fff !important; text-decoration:underline !important; }
.ilm-footer__link--title{ color:var(--ilm-yellow) !important; font-weight:700; }
.ilm-footer__link--title:hover{ color:#ffd84d !important; }

.ilm-footer__bottom{
  margin-top:var(--ilm-10);
  padding-top:var(--ilm-5);
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;
  flex-direction:column;
  gap:var(--ilm-3);
  font-size:var(--ilm-fs-sm);
}
@media (min-width:800px){
  .ilm-footer__bottom{ flex-direction:row; align-items:center; justify-content:space-between; }
}
.ilm-footer__legal{
  display:flex;
  flex-wrap:wrap;
  gap:var(--ilm-2) var(--ilm-4);
}
.ilm-footer__legal a{
  color:#c8d2da !important;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  text-decoration:none !important;
}
.ilm-footer__legal a:hover{ color:#fff !important; text-decoration:underline !important; }
.ilm-footer__copy{ color:#8fa0ae; }

/* ---------------------------------------------------------------------
   13. motion — every animation is opt-out, see section 14
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion:no-preference){
  /* Only when the script is known to be running. html.ilm-js is set by an
     inline line in the <head> before anything paints; if ilimudim.js then
     fails to load, is blocked or is a stale cached copy, the content
     simply shows - instead of the homepage topic grid staying invisible. */
  .ilm-js .ilm-rv{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .6s var(--ilm-ease-out),
               transform .6s var(--ilm-ease-out);
    transition-delay:var(--ilm-rv-delay, 0ms);
  }
  .ilm-js .ilm-rv.is-in{ opacity:1; transform:none; }

  .ilm-float{ animation:ilm-float 7s ease-in-out infinite; }
  .ilm-float--slow{ animation-duration:9s; animation-delay:-3s; }
  @keyframes ilm-float{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%    { transform:translateY(-12px) rotate(-1deg); }
  }

  .ilm-metro.is-in path{
    animation:ilm-draw 2.4s var(--ilm-ease-out) forwards;
  }
  @keyframes ilm-draw{ to{ stroke-dashoffset:0; } }
}

/* ---------------------------------------------------------------------
   14. accessibility
   --------------------------------------------------------------------- */

/* One focus style for the whole site. Visible on every background:
   a dark ring with a white halo, so it never disappears on navy. */
.ilm :focus-visible{
  outline:3px solid var(--ilm-navy);
  outline-offset:2px;
  border-radius:var(--ilm-1);
  box-shadow:0 0 0 6px rgba(255,255,255,.85);
}
.ilm-section--navy :focus-visible,
.ilm-nav :focus-visible,
.ilm-footer :focus-visible,
.ilm-hero :focus-visible{
  outline-color:var(--ilm-yellow);
  box-shadow:0 0 0 6px rgba(0,28,50,.55);
}

.ilm-skip{
  position:absolute;
  inset-inline-start:var(--ilm-4);
  top:-100px;
  z-index:200;
  padding:14px 24px;
  background:var(--ilm-navy);
  color:#fff;
  font-weight:900;
  border-radius:0 0 var(--ilm-r-sm) var(--ilm-r-sm);
  text-decoration:none;
  transition:top var(--ilm-fast) var(--ilm-ease);
}
.ilm-skip:focus{ top:0; color:#fff; }

/* Field labels keep their height while the legacy validators blink them.
   pgUtils.blink() fades the element to display:none and back three times;
   the lbl* ids now sit on a span inside the label, so it is the span that
   disappears and the input below no longer jumps a line each time. */
.ilm-field__label{ min-height:1.45em; }

.ilm-sr{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Windows high contrast / forced colors: let the OS palette win, and
   make sure borders survive, since forced-colors drops box-shadows. */
@media (forced-colors:active){
  .ilm-card,
  .ilm-panel,
  .ilm-nav__panel,
  .ilm-drawer__sheet{ border:1px solid CanvasText; }
  .ilm-btn{ border:1px solid ButtonText; }
  .ilm :focus-visible{ outline:3px solid Highlight; }
}

@media (prefers-reduced-motion:reduce){
  .ilm *,
  .ilm *::before,
  .ilm *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .ilm-rv{ opacity:1 !important; transform:none !important; }
}

/* ---------------------------------------------------------------------
   15. shared page components
   These appear on the homepage AND in every inner page's sidebar, so
   they belong in the sheet that every page loads.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   19. price guide — the legacy "מפתחון לימודים"
   --------------------------------------------------------------------- */
.ilm-prices{ display:flex; flex-direction:column; }
.ilm-price{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--ilm-4);
  padding:var(--ilm-3) 0;
  min-height:56px;
  border-bottom:1px solid var(--ilm-line-2);
}
.ilm-price:last-child{ border-bottom:0; }
.ilm-price__name{
  font-size:var(--ilm-fs-sm);
  font-weight:700;
  color:var(--ilm-ink);
  margin:0;
}
.ilm-price__range{
  flex:0 0 auto;
  font-size:var(--ilm-fs-sm);
  font-weight:900;
  color:var(--ilm-navy);
  background:var(--ilm-navy-wash);
  padding:5px 12px;
  border-radius:var(--ilm-pill);
  white-space:nowrap;
  direction:ltr;
}

/* ---------------------------------------------------------------------
   20. open days
   --------------------------------------------------------------------- */
.ilm-dateitem{
  display:flex;
  align-items:center;
  gap:var(--ilm-4);
  padding:var(--ilm-4);
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:var(--ilm-r);
  position:relative;
  transition:transform var(--ilm-med) var(--ilm-ease),
             box-shadow var(--ilm-med) var(--ilm-ease),
             border-color var(--ilm-med) var(--ilm-ease);
}
.ilm-dateitem:hover{
  transform:translateY(-3px);
  box-shadow:var(--ilm-sh-2);
  border-color:transparent;
}
.ilm-datebox{
  flex:0 0 auto;
  width:62px;
  padding:var(--ilm-2) 0;
  text-align:center;
  border-radius:var(--ilm-r-sm);
  background:var(--ilm-navy);
  color:#fff;
  line-height:1.1;
}
.ilm-datebox__day{ display:block; font-size:1.5rem; font-weight:900; }
.ilm-datebox__month{ display:block; font-size:var(--ilm-fs-xs); opacity:.9; }
.ilm-dateitem__body{ min-width:0; }
.ilm-dateitem__title{
  font-size:1rem;
  font-weight:900;
  margin:0 0 2px;
  line-height:1.3;
}
.ilm-dateitem__meta{
  font-size:var(--ilm-fs-xs);
  color:var(--ilm-ink-3);
  margin:0;
}

/* ---------------------------------------------------------------------
   21. thread list — forums
   --------------------------------------------------------------------- */
.ilm-threads{ display:flex; flex-direction:column; }
.ilm-thread{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:var(--ilm-4);
  padding:var(--ilm-4) 0;
  border-bottom:1px solid var(--ilm-line-2);
}
.ilm-thread:last-child{ border-bottom:0; }
.ilm-thread__avatar{
  flex:0 0 auto;
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--ilm-navy-wash);
  color:var(--ilm-navy);
  font-weight:900;
  font-size:var(--ilm-fs-sm);
}
.ilm-thread__body{ min-width:0; flex:1 1 auto; }
.ilm-thread__title{
  font-size:1rem;
  font-weight:700;
  margin:0 0 2px;
  line-height:1.35;
}
.ilm-thread__title a{ color:var(--ilm-ink) !important; text-decoration:none !important; }
.ilm-thread:hover .ilm-thread__title a{ color:var(--ilm-navy) !important; }
.ilm-thread__meta{
  display:flex;
  flex-wrap:wrap;
  gap:var(--ilm-1) var(--ilm-3);
  font-size:var(--ilm-fs-xs);
  color:var(--ilm-ink-3);
}
.ilm-thread__replies{
  flex:0 0 auto;
  align-self:center;
  font-size:var(--ilm-fs-xs);
  font-weight:900;
  color:var(--ilm-navy);
  background:var(--ilm-navy-wash);
  border-radius:var(--ilm-pill);
  padding:5px 11px;
}

/* ---------------------------------------------------------------------
   23. sidebar widgets
   --------------------------------------------------------------------- */
.ilm-widget{
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:var(--ilm-r);
  padding:var(--ilm-5);
}
.ilm-widget + .ilm-widget{ margin-top:var(--ilm-5); }
.ilm-widget__title{
  font-size:1rem;
  font-weight:900;
  margin:0 0 var(--ilm-4);
  padding-bottom:var(--ilm-3);
  border-bottom:2px solid var(--ilm-navy-wash);
}
.ilm-widget--wash{ background:var(--ilm-navy-wash); border-color:transparent; }

/* an ad slot keeps its space so nothing jumps when it fills */
.ilm-adslot{
  display:grid;
  place-items:center;
  min-height:250px;
  background:var(--ilm-bg-2);
  border-radius:var(--ilm-r);
  color:var(--ilm-ink-3);
  font-size:var(--ilm-fs-xs);
  overflow:hidden;
}
.ilm-adslot--strip{ min-height:90px; }

/* ---------------------------------------------------------------------
   24. breadcrumbs
   --------------------------------------------------------------------- */
.ilm-crumbs{
  padding-block:var(--ilm-4);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-3);
}
.ilm-crumbs ol{ display:flex; flex-wrap:wrap; gap:var(--ilm-1) var(--ilm-2); }
.ilm-crumbs li{ display:flex; align-items:center; gap:var(--ilm-2); }
.ilm-crumbs li + li::before{ content:"‹"; color:var(--ilm-line); }
.ilm-crumbs a{ color:var(--ilm-ink-3) !important; text-decoration:none !important; }
.ilm-crumbs a:hover{ color:var(--ilm-navy) !important; text-decoration:underline !important; }
.ilm-crumbs [aria-current="page"]{ color:var(--ilm-ink); font-weight:700; }

/* ---------------------------------------------------------------------
   16. stats strip   (shared)
   Lived in ilimudim-home.css until advertise.html needed it too. A page
   that does not load the home sheet got the markup with none of the CSS:
   yellow-on-navy text rendered as plain inline ink, and the automated
   contrast check passed it precisely because it was unstyled. Anything a
   second page uses belongs here.

   The colours assume a dark section. Keep it inside .ilm-section--navy.
   --------------------------------------------------------------------- */
.ilm-stats{
  display:grid;
  gap:var(--ilm-5);
  grid-template-columns:repeat(2,1fr);
  text-align:center;
}
@media (min-width:800px){ .ilm-stats{ grid-template-columns:repeat(4,1fr); gap:var(--ilm-8); } }
.ilm-stat__num{
  display:block;
  font-size:clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.03em;
  color:var(--ilm-yellow);
}
.ilm-stat__label{
  display:block;
  margin-top:var(--ilm-2);
  font-size:var(--ilm-fs-sm);
  color:rgba(255,255,255,.85);
}

/* ---------------------------------------------------------------------
   99. legacy bridge
   Only needed once the markup is transplanted into the real site. These
   rules undo the parts of the 1.0 stylesheets that would otherwise cage
   the new layout, and hide the chrome the new design replaces.

   Everything here is scoped to .ilm on <body>, so the pages that have not
   been transplanted yet are untouched.
   --------------------------------------------------------------------- */

/* MasterPage_1.0.css pins both of these to a fixed 960px. That is the
   single line that made the old site desktop-only. */
.ilm #header,
.ilm .mp-Container{
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  direction:rtl;
}

/* The menu still has to be in the DOM: ilimudim.js reads the links out of
   it, and wide_master.js binds to .mp-wm-Item. It just must not be seen. */
.ilm .mp-wm-Container[hidden]{ display:none !important; }

/* Replaced by .ilm-footer. */
.ilm .mp-footer-Container,
.ilm .mp-footer-links-Container{ display:none !important; }

/* The partner logo the code-behind keeps switched off. If it is ever
   switched back on it must not break the header row. */
.ilm-header__partner{ display:none; }

/* The old pages float almost everything. A stray float escaping into the
   new layout would drag the next section up beside it. */
.ilm .ilm-container::after{ content:""; display:table; clear:both; }

/* Ad slots keep their place but stop forcing a horizontal scrollbar on a
   phone, which a fixed 728px leaderboard would do at any mobile width. */
.ilm #LeftFloatingBanner,
.ilm .leaderboard-banner-top{ max-width:100%; overflow:hidden; }
@media (max-width:899px){
  .ilm #LeftFloatingBanner{ display:none; }
}

/* The skyscraper is position:fixed at the right edge. In the old 960px
   layout it sat in the empty margin; in a fluid layout it covers the first
   nav item and the edge of the page head, and stays there while scrolling.
   Hiding it would cost the impression, so the page makes room for it
   instead - and only when the slot has actually been filled, which is when
   GPT has put an iframe in it. Without :has() support the old overlap
   simply remains. */
@media (min-width:900px){
  .ilm:has(#LeftFloatingBanner iframe){ padding-right:136px; }
}

/* The header sits inside #header, a plain div the code-behind and a legacy
   script both rely on. Inside it, position:sticky could never leave that
   div, so the header scrolled away with the page. display:contents takes
   the wrapper's box out of the layout - the header's sticky containing
   block becomes the form - while the element stays in the DOM for
   everything that looks it up. */
.ilm #header{ display:contents; }

/* <main> wraps whatever a page puts in phBody. A page body that floats its
   columns - every page not rewritten yet - left <main> zero pixels tall,
   and the new footer, which the old master used to push down with a
   clear:both spacer, rose up underneath the results. flow-root makes
   <main> contain its floats; the clear on the footer is the belt to that. */
.ilm main.mp-Container{ display:flow-root; }
.ilm .ilm-footer{ clear:both; }

/* The breadcrumb trail from TopNavBarWide (see the master). The legacy
   rule pinned it as a 950px float: on a desktop the hero and every page
   head laid themselves out beside it at about a third of their width, and
   on a phone it made every page 950px wide. Here it becomes a strip that
   lines up with the content. The separator the code-behind writes is a
   literal "&nbsp;&nbsp;>&nbsp;&nbsp;" in a span - in RTL that arrow points
   the wrong way - so its text is hidden and a chevron drawn instead. */
.ilm .mp-bc-Container.ilm-bc{
  float:none;
  width:auto;
  margin:0;
  padding:10px 0;
  background:#fff;
  border-bottom:1px solid var(--ilm-line);
  font-size:var(--ilm-fs-xs);
  color:var(--ilm-ink-3);
  line-height:1.5;
}
.ilm-bc .ilm-container{ display:flex; flex-wrap:wrap; align-items:center; row-gap:4px; }
.ilm-bc a{ color:var(--ilm-ink-3) !important; text-decoration:none !important; }
.ilm-bc a:hover{ color:var(--ilm-navy) !important; text-decoration:underline !important; }
.ilm-bc a:last-child{ color:var(--ilm-ink) !important; font-weight:700; }
.ilm-bc span{ font-size:0; }
.ilm-bc span::before{
  content:"‹";
  content:"‹" / "";      /* decorative: not announced, where supported */
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-line-2);
  padding:0 8px;
}
/* A trail of one link ("לימודים") says nothing; nor does any trail on the
   homepage, which is the root it would point back to. */
.ilm-bc:not(:has(span)){ display:none; }
.ilm:has(.ilm-hero) .ilm-bc{ display:none; }

/* The free-counselling badge and its pop-up are fixed-position legacy
   pieces sized for a desktop window. The old site had no viewport meta, so
   a phone rendered them shrunk with the rest of the page; now they render
   at real size - a 140x100 badge over the content, and a 380px pop-up
   anchored at left:35%, two thirds of it off a 360px screen and unable to
   scroll there. free_counseling.js opens the pop-up by itself after ten
   seconds, so this is not a corner case. */
.ilm .free-counseling-container iframe{ max-width:100%; }
@media (max-width:599px){
  .ilm .free_counseling{
    width:84px;
    height:60px;
    right:12px;
    bottom:12px;
    background-size:contain;
  }
  .ilm .free-counseling-container{
    left:50% !important;
    right:auto !important;
    top:72px !important;
    transform:translateX(-50%);
    width:calc(100vw - 24px) !important;
    max-width:380px;
    max-height:calc(100vh - 96px);
    overflow-y:auto;
  }
}
/* ---------------------------------------------------------------------
   36. article prose
   --------------------------------------------------------------------- */
.ilm-prose{
  font-size:var(--ilm-fs-lead);
  line-height:1.8;
  color:var(--ilm-ink-2);
  max-width:72ch;
}
.ilm-prose > * + *{ margin-top:var(--ilm-5); }
.ilm-prose h2{
  font-size:var(--ilm-fs-h3);
  font-weight:900;
  color:var(--ilm-ink);
  margin-top:var(--ilm-10);
  margin-bottom:0;
  line-height:1.25;
  scroll-margin-top:calc(var(--ilm-header-h) + 16px);
}
.ilm-prose h3{
  font-size:1.125rem;
  font-weight:900;
  color:var(--ilm-ink);
  margin-top:var(--ilm-8);
  margin-bottom:0;
}
.ilm-prose p{ margin:0; }
.ilm-prose strong{ color:var(--ilm-ink); font-weight:700; }
.ilm-prose ul, .ilm-prose ol{ padding-inline-start:var(--ilm-5); }
.ilm-prose ul li{ list-style:disc; margin-bottom:var(--ilm-2); }
.ilm-prose ol li{ list-style:decimal; margin-bottom:var(--ilm-2); }
.ilm-prose a{ text-decoration:underline; font-weight:500; }
.ilm-prose img{ border-radius:var(--ilm-r); }
.ilm-prose figure{ margin:0; }
.ilm-prose figcaption{
  margin-top:var(--ilm-2);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-3);
}
.ilm-prose blockquote{
  margin:0;
  padding:var(--ilm-4) var(--ilm-5);
  border-inline-start:4px solid var(--ilm-yellow);
  background:var(--ilm-bg-2);
  border-radius:0 var(--ilm-r-sm) var(--ilm-r-sm) 0;
  font-size:1.0625rem;
  color:var(--ilm-ink);
}
.ilm-prose table{
  width:100%;
  border-collapse:collapse;
  font-size:var(--ilm-fs-sm);
}
.ilm-prose th, .ilm-prose td{
  padding:10px 14px;
  border-bottom:1px solid var(--ilm-line);
  text-align:start;
}
.ilm-prose th{ background:var(--ilm-navy-wash); font-weight:900; color:var(--ilm-ink); }

.ilm-byline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--ilm-2) var(--ilm-4);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-3);
  padding-bottom:var(--ilm-5);
  border-bottom:1px solid var(--ilm-line);
  margin-bottom:var(--ilm-6);
}

/* a table of contents that tracks the reader */
.ilm-toc{ position:sticky; top:calc(var(--ilm-header-h) + 16px); }
.ilm-toc a{
  display:block;
  min-height:40px;
  padding:8px 12px;
  border-inline-start:2px solid var(--ilm-line);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-2) !important;
  text-decoration:none !important;
}
.ilm-toc a:hover{ background:var(--ilm-navy-wash); color:var(--ilm-navy) !important; }
.ilm-toc a[aria-current="true"]{
  border-inline-start-color:var(--ilm-navy);
  color:var(--ilm-navy) !important;
  font-weight:700;
}
/* prose set in a single readable column, for a block of copy that is not
   the main body of the page */
.ilm-prose--narrow{ max-width:70ch; margin-inline:auto; }

/* a bare ad unit between two sections, boxed so a wide creative cannot
   widen the page */
.ilm-adstrip{
  margin-block:var(--ilm-8);
  display:flex;
  justify-content:center;
  max-width:100%;
  overflow:hidden;
}
.ilm-adstrip:empty{ display:none; }
/* A component we are not rewriting, laid out at a fixed pixel width by a
   script of its own. Boxing it keeps it from dragging a horizontal scrollbar
   across the whole page on a phone. It lives in the base sheet, not a page
   sheet, because the homepage, Register and the forum pages all wrap one. */
.ilm-legacybox{
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
/* ...and give it back the text environment it was built for. The legacy
   controls were laid out under Common_1.0.css's body - Arial, #353f48,
   normal line height - and their boxes have fixed pixel heights that
   assume it. Inheriting the new body (a wider face at 1.6 line height)
   pushed text out of those boxes. Their own rules still win; this only
   resets what they inherit. */
.ilm .ilm-legacybox{
  font-family:Arial, Helvetica, sans-serif;
  color:#353f48;
  line-height:normal;
}
/* In the main column the old pages also set 13px on the column itself. */
.ilm .ilm-split > :first-child .ilm-legacybox{ font-size:13px; }
.ilm-legacybox::-webkit-scrollbar{ height:6px; }
.ilm-legacybox::-webkit-scrollbar-thumb{
  background:var(--ilm-line-2); border-radius:6px;
}

/* ---------------------------------------------------------------------
   The two legacy page columns.
   Common_1.0.css, which every page links, sets
       .rgt-panel { float:right; width:728px }
       .lft-panel { float:right; width:227px }
   That pair of fixed widths is the 960px cage the whole redesign is
   undoing. The class names are kept on the rewritten pages, because the
   stylesheets of the user controls inside them are written as
   ".rgt-panel .something" and would stop matching otherwise. So the
   widths are cancelled where - and only where - a new grid is in charge.
   Pages that have not been rewritten have no .ilm-split, so they keep
   their old layout untouched.

   Each page named its two columns differently, but they are all the same
   fixed-width float, so they are all cancelled the same way. The first
   version of this list missed four pairs, and those pages overflowed a
   phone by 380-400px and overlapped their sidebar at 1024px:
       .ps-ct-*  phaseNew.css         .ba-*  BrowseArticles.css
       .ac-ct-*  Article_1.0.css      .bc-*  BrowseCategories.css

   font:inherit because several of them also set font-family:Arial and
   font-size:13px on the column, which put every piece of new markup in
   it - forms, prose, the results intro - in the old type. The legacy
   controls inside get that type back from .ilm-legacybox above.
   --------------------------------------------------------------------- */
.ilm-split > :is(
  .rgt-panel, .lft-panel,
  .rgt, .lft,
  .sf-rgt, .sf-lft,
  .nm-rgt, .nm-lft,
  .ps-ct-RightPanel, .ps-ct-LeftPanel,
  .ac-ct-RightPanel, .ac-ct-LeftPanel,
  .ba-rgt, .ba-lft,
  .bc-rgt, .bc-lft){
  float:none;
  width:auto;
  max-width:100%;
  margin:0;
  min-width:0;
  font:inherit;
}
/* Fixed-width wrappers one level further in. Found by measuring each page
   at 360px under its real legacy sheets: .ps-ct-txtcontiner (739px,
   phaseNew) and .ba-rgt-mor (720px, BrowseArticles) still pushed those two
   pages ~390px wider than a phone after the columns were released.
   Wrappers that also carry .ilm-legacybox need nothing here - its
   max-width:100% already caps them. */
.ilm-split :is(.af, .more-articles, .bc-rgt-boxes,
               .ps-ct-txtcontiner, .ba-rgt-mor, .no-results){
  width:auto !important;
  height:auto !important;
  max-width:100%;
  float:none;
}
/* RoundedCornersPanel renders .ui-content-fd / .ui-content-box-top, which
   Common_1.0.css floats. A float sizes to its content, so a form inside
   one stopped at 582px in an 816px column with a grey band beside it. */
.ilm-split :is(.ui-content-fd, .ui-content-box-top){
  float:none;
  width:auto;
  background:none;
}
/* ---------------------------------------------------------------------
   lead CTA panel - the component that replaced the legacy hp-cu block.
   It lives in the base sheet because two pages use it and they link
   different page sheets: the homepage and the 404. Leaving it in the
   homepage sheet would have shipped the 404 an unstyled form.
   --------------------------------------------------------------------- */
.ilm-cta{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:var(--ilm-r-xl);
  background:
    radial-gradient(640px 420px at 92% 8%, rgba(72,92,199,.6), transparent 64%),
    var(--ilm-navy);
  color:#fff;
  padding:var(--ilm-8) var(--ilm-6);
}
@media (min-width:900px){ .ilm-cta{ padding:var(--ilm-12); } }

.ilm-cta__grid{
  position:relative;
  z-index:2;
  display:grid;
  gap:var(--ilm-8);
  grid-template-columns:1fr;
  align-items:center;
}
@media (min-width:900px){
  .ilm-cta__grid{ grid-template-columns:minmax(0,1fr) minmax(0,380px); gap:var(--ilm-12); }
}
.ilm-cta__title{
  font-size:var(--ilm-fs-h2);
  font-weight:900;
  line-height:1.12;
  margin:var(--ilm-3) 0 var(--ilm-3);
}
.ilm-cta__text{ color:rgba(255,255,255,.88); margin:0 0 var(--ilm-5); max-width:54ch; }

.ilm-cta__phone{
  display:inline-flex;
  align-items:center;
  gap:var(--ilm-3);
  font-size:clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight:900;
  color:var(--ilm-yellow) !important;
  letter-spacing:-.02em;
  direction:ltr;
  text-decoration:none !important;
}
.ilm-cta__phone:hover{ color:#ffd84d !important; }
.ilm-cta__phone svg{ width:.72em; height:.72em; flex:0 0 auto; }

.ilm-cta__form{
  background:#fff;
  color:var(--ilm-ink);
  border-radius:var(--ilm-r-lg);
  padding:var(--ilm-6);
  box-shadow:var(--ilm-sh-3);
}
.ilm-cta__formtitle{
  font-size:1.0625rem;
  font-weight:900;
  margin:0 0 var(--ilm-4);
}
.ilm-cta__note{
  font-size:var(--ilm-fs-xs);
  color:var(--ilm-ink-3);
  margin:var(--ilm-3) 0 0;
}

/* ------------------------------------------------------------------
   50. the parts the live homepage script builds at runtime
   ------------------------------------------------------------------
   None of this markup exists in the page source. The homepage script
   creates it - the cascading category lists inside #instFrmPlcHld, and
   the checkbox rows inside them - and gives each piece a class name of
   its own. Those names are the only hook there is, so they are styled
   here rather than renamed. Styling them is also the only way the
   generated lists inherit the new look instead of falling back to
   unstyled browser defaults once the old sheet is gone.
   ------------------------------------------------------------------ */
.ilm-agree{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:var(--ilm-3);
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-2);
  line-height:1.5;
}
.ilm-agree input[type="checkbox"]{
  inline-size:18px;
  block-size:18px;
  margin:2px 0 0;
  accent-color:var(--ilm-navy);
  flex:0 0 auto;
}
.ilm-agree label{ cursor:pointer; }

.ilm-cta__status{
  font-size:var(--ilm-fs-sm);
  font-weight:700;
  color:var(--ilm-navy);
  margin:0 0 var(--ilm-3);
  min-height:1.4em;
}
.ilm-cta__status:empty{ margin:0; min-height:0; }

/* the generated category lists */
.InstFormContainer{ display:block; }
.StudyAreasInstForm{ margin-top:var(--ilm-4); }
.StudyAreasInstForm .ListTitle{
  font-size:var(--ilm-fs-sm);
  font-weight:800;
  color:var(--ilm-navy);
  margin:0 0 var(--ilm-2);
}
.StudyAreasListInstForm{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:6px 16px;
  margin-bottom:var(--ilm-4);
}
.StudyAreasListInstForm > div{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:var(--ilm-fs-sm);
  color:var(--ilm-ink-2);
}
.StudyAreasListInstForm input[type="checkbox"]{
  inline-size:17px;
  block-size:17px;
  accent-color:var(--ilm-navy);
  flex:0 0 auto;
}
.StudyAreasListInstForm label{ cursor:pointer; }

/* The autocomplete dropdown under the two search boxes is jQuery UI's,
   positioned by its own script. Only its skin is ours.

   Scoped to .ilm: jQuery UI appends the list to <body>, which carries .ilm
   on every redesigned page, so it still matches here - but CommonCss.ascx
   also loads this sheet into the partner lead-box iframe
   (Iframs/YellowPages/LeadboxYellowPages.aspx), whose body has no .ilm and
   whose city autocomplete must keep its own look. */
.ilm .ui-autocomplete{
  position:absolute;
  direction:rtl;
  z-index:60;
  list-style:none;
  margin:4px 0 0;
  padding:6px;
  max-height:320px;
  overflow-y:auto;
  background:#fff;
  border:1px solid var(--ilm-line);
  border-radius:var(--ilm-r-sm);
  box-shadow:var(--ilm-sh-3);
  font-size:var(--ilm-fs-sm);
}
.ilm .ui-menu-item{ list-style:none; }
.ilm .ui-menu-item a,
.ilm .ui-menu-item > div{
  display:block;
  padding:8px 10px;
  border-radius:var(--ilm-r-sm);
  color:var(--ilm-ink) !important;
  cursor:pointer;
}
/* The highlighted item. jQuery UI 1.8 marks the arrow-key selection by
   adding .ui-state-hover to the <a>. A bare `.ui-state-hover` (0,1,0) lost
   to the rule above (0,1,1), so a keyboard user got ink text on a navy
   background - 1.35:1, unreadable. Each selector here out-ranks the one
   above. */
.ilm .ui-menu-item a.ui-state-hover,
.ilm .ui-menu-item a:hover,
.ilm .ui-menu-item > div:hover,
.ilm .ui-menu-item > div.ui-state-active,
.ilm .ui-menu-item .ui-state-hover{
  background:var(--ilm-navy);
  color:#fff !important;
}

/* Date items and forum threads lift as a whole on hover, which says "the
   whole row is clickable" - but only the title link was, and at its
   designed 16px that link is 22px tall: under the 24px minimum target. The
   title link now stretches over its item, the same pattern as
   .ilm-card__link. Both items are position:relative already. */
.ilm-dateitem__title a::after,
.ilm-thread__title a::after{ content:""; position:absolute; inset:0; }

/* A footer row whose sub-title is empty in the database renders an empty
   link (one exists today: /forum/4 in the institutions column) - a tab
   stop with no name. */
.ilm-footer__link:empty{ display:none; }

/* WCAG 2.2.2: the Triple boxes (hot forum posts, price list, open days)
   rotated their slides every five seconds with no pause control. Each box
   now shows its first slide, still; the "more" link under it leads to the
   rest. !important because jquery.cycle writes position, opacity and
   display inline on every tick. */
.ilm .cycleEnabled{ height:auto !important; min-height:0 !important; }
.ilm .cycleEnabled > div:first-child{
  position:static !important;
  opacity:1 !important;
  display:block !important;
  z-index:auto !important;
}
.ilm .cycleEnabled > div ~ div{ display:none !important; }

/* The Triple boxes outside a sidebar (homepage "what's on now"): their
   own sheet sets #2999D0 titles (3.2:1) and Silver dates (1.8:1). */
.ilm .ui-trp-title{ color:var(--ilm-navy); }
.ilm :is(.ui-trp-frmDate, .ui-trp-forum, .ui-trp-date){ color:var(--ilm-ink-3); }
.ilm .ui-trp-more{ color:var(--ilm-navy); }

/* zap.embed.co.il does not resolve: the "free counseling" button would
   open a form that cannot load (see ilimudim.js, section 10). The class
   is only set after the host check fails. */
.ilm-noembed .free_counseling{ display:none !important; }
