/* Rubik, self hosted (16.11.2026, CLS): variable font, one file per subset, preloaded in the head */
@font-face{font-family:"Rubik";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/rubik-hebrew.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Rubik";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/rubik-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Rubik";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/rubik-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* haprofessor.com, shared design system
   One stylesheet for all six templates. The generated pages carry arbitrary
   extracted markup, so the content rules below have to hold up for any
   combination of headings, lists, tables, images and accordions. */

:root{
  --primary:#041534;
  --primary-container:#1b2a4a;
  --secondary:#feb64e;
  --secondary-deep:#835400;
  --surface:#fbf8fc;
  --surface-warm:#faf6ee;
  --surface-low:#f5f3f6;
  --card:#fff;
  --ink:#1b1b1e;
  --ink-variant:#3a3b42;
  --outline:#696b73;
  --outline-variant:#c5c6cf;
  --ok:#1a7f5a;
  --ok-soft:#eaf6f1;
  --radius:16px;
  --shadow:0 1px 2px rgba(4,21,52,.05),0 10px 30px rgba(4,21,52,.07);
  --shadow-lift:0 6px 14px rgba(4,21,52,.09),0 18px 44px rgba(4,21,52,.11);
  --wrap:1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--surface);color:var(--ink);
  font-family:"Rubik","Segoe UI","Arial Hebrew",Arial,sans-serif;
  font-size:17.5px;line-height:1.85;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;background:rgba(251,248,252,.94);
  backdrop-filter:blur(10px);border-bottom:1px solid transparent;
  transition:box-shadow .25s ease,border-color .25s ease;
}
.site-header .bar{display:flex;align-items:center;gap:26px;padding:14px 0}
.site-header.small{box-shadow:0 2px 18px rgba(4,21,52,.08);border-bottom-color:var(--outline-variant)}
.brand{display:flex;align-items:center;gap:13px;text-decoration:none;flex:none}
.brand .mark{
  height:44px;width:44px;object-fit:contain;background:#fff;border-radius:13px;
  padding:3px;border:1px solid var(--outline-variant);transition:transform .25s ease;
}
.brand:hover .mark{transform:rotate(-3deg) scale(1.04)}
.brand .wordmark{font-size:19px;font-weight:700;color:var(--primary);white-space:nowrap}
nav.main{display:flex;gap:22px;margin-inline-start:auto;font-size:15.5px}
nav.main a{
  text-decoration:none;color:var(--ink-variant);font-weight:500;
  position:relative;padding:4px 0;
}
nav.main a::after{
  content:"";position:absolute;inset-inline-start:0;bottom:0;height:2px;width:0;
  background:var(--secondary);transition:width .22s ease;
}
nav.main a:hover{color:var(--primary)}
nav.main a:hover::after{width:100%}

/* WhatsApp in the header, the same link as the old site's header icon (ARZ, 16.11):
   right before "כניסה ללומדה", so in RTL it sits between the menu and the button on
   desktop and right of the button on a phone (the menu is in the panel there) */
.hdr-wa{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:42px;height:42px;border-radius:50%;background:#25d366;color:#fff;
  margin-inline-end:-12px;transition:transform .15s ease,background .18s ease;
}
.hdr-wa:hover{background:#1ebe5a;transform:translateY(-2px)}
@media (max-width:980px){.hdr-wa{margin-inline-end:0}}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border-radius:30px;font-size:15px;font-weight:600;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease,background .18s ease,box-shadow .18s ease,color .18s ease;
}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-container);transform:translateY(-1px);box-shadow:0 8px 20px rgba(4,21,52,.22)}
.btn-ghost{border-color:var(--outline-variant);color:var(--ink-variant);background:transparent}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary)}
.btn-amber{background:var(--secondary);color:#3a2600}
.btn-amber:hover{background:#ffc86f;transform:translateY(-1px);box-shadow:0 8px 22px rgba(254,182,78,.5)}
.btn-lg{padding:14px 30px;font-size:16.5px}

/* ---------- page heads ---------- */
.ahead,.hhead,.phero{background:var(--surface-warm);padding:24px 0 42px}
.lhead{background:var(--card);border-bottom:1px solid var(--outline-variant);padding:28px 0 24px}
.crumbs{font-size:13.5px;color:var(--outline);margin:0 0 18px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--secondary-deep)}
h1{
  font-size:38px;line-height:1.24;font-weight:700;letter-spacing:-.02em;
  margin:0;color:var(--primary);max-width:24ch;
}

/* ---------- content, has to survive arbitrary extracted markup ---------- */
.alayout,.llayout{padding:42px 0 70px}
article,.doc,.page-body{max-width:74ch}
.alayout article,.llayout .doc{max-width:74ch}

article h2,.page-body h2,.doc h2{
  font-size:28px;font-weight:700;color:var(--primary);letter-spacing:-.02em;
  line-height:1.32;margin:44px 0 14px;scroll-margin-top:90px;
}
article h3,.page-body h3,.doc h3{
  font-size:21px;font-weight:600;color:var(--primary);
  margin:32px 0 10px;scroll-margin-top:90px;line-height:1.45;
}
article h4,.page-body h4,.doc h4{font-size:18px;font-weight:600;color:var(--primary);margin:24px 0 8px}
article p,.page-body p,.doc p{margin:0 0 18px;color:var(--ink-variant)}
article ul,article ol,.page-body ul,.page-body ol,.doc ul,.doc ol{
  margin:0 0 18px;padding-inline-start:22px;color:var(--ink-variant);
}
article li,.page-body li,.doc li{margin-bottom:9px}

article a,.page-body a,.doc a{color:var(--secondary-deep);text-decoration:underline;text-underline-offset:3px;
  overflow-wrap:anywhere}
article a:hover,.page-body a:hover,.doc a:hover{color:var(--primary)}
/* ארז, 7.9.2026: the articles archive was a list of bare links. Each row is now
   the heading with an opening line under it, and the whole row is the target.
   list-style and the inherited li spacing are cleared so the rows read as rows. */
.archive-list{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}
.archive-list li{margin:0}
.archive-list a{
  display:block;padding:16px 18px;border:1px solid var(--outline-variant);
  border-radius:12px;background:var(--card);text-decoration:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.archive-list a:hover{border-color:var(--primary);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.archive-list .al-t{display:block;font-weight:700;color:var(--primary);line-height:1.4}
.archive-list .al-d{
  display:block;margin-top:6px;font-size:14.5px;line-height:1.6;
  color:var(--ink-variant);font-weight:400;
}
article strong,.page-body strong{color:var(--primary)}
article img,.page-body img{
  border-radius:14px;margin:26px 0;box-shadow:var(--shadow);
}
article blockquote,.page-body blockquote{
  margin:26px 0;padding:18px 24px;border-inline-start:4px solid var(--secondary);
  background:var(--surface-warm);border-radius:0 14px 14px 0;color:var(--primary);
}
/* wide content must scroll inside itself, never the page */
article table,.page-body table,.doc table{
  display:block;overflow-x:auto;white-space:nowrap;
  border-collapse:collapse;width:100%;margin:26px 0;font-size:16px;
  border:1px solid var(--outline-variant);border-radius:var(--radius);background:var(--card);
}
article th,article td,.page-body th,.page-body td{
  text-align:right;padding:12px 16px;border-bottom:1px solid var(--surface-low);
}
article th,.page-body th{background:#f8f9fc;font-weight:600;font-size:14.5px;color:var(--ink-variant)}

/* accordions arrive from the source as details/summary */
article details,.page-body details{
  background:var(--card);border:1px solid var(--outline-variant);
  border-radius:12px;margin-bottom:12px;overflow:hidden;
}
article summary,.page-body summary{
  padding:16px 22px;font-weight:600;font-size:16.5px;color:var(--primary);
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;
  gap:16px;align-items:center;
}
article summary::-webkit-details-marker,.page-body summary::-webkit-details-marker{display:none}
article summary::after,.page-body summary::after{
  content:"+";font-size:23px;color:var(--secondary-deep);font-weight:400;
  transition:transform .25s ease;flex:none;
}
article details[open] summary::after,.page-body details[open] summary::after{transform:rotate(45deg)}
article details > *:not(summary),.page-body details > *:not(summary){padding:0 22px 16px}

/* ---------- legal template, deliberately plain ---------- */
.tpl-legal .doc h2{font-size:22px;padding-bottom:8px;border-bottom:1px solid var(--surface-low)}
.tpl-legal h1{font-size:31px}

/* ---------- footer ---------- */
footer.site{background:var(--primary);color:#fff;padding:52px 0 26px;margin-top:60px}
footer.site .fgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:36px}
/* Google preferred source (ARZ, 27.9.2026): Google's own button once publisher.js
   renders it, the plain deeplink until then or if the script is blocked */
.fgoogle [google-add-preferred-source-btn]{min-height:44px}
footer.site .gpref-link{display:inline-block;padding:10px 16px;border:1px solid rgba(255,255,255,.35);border-radius:999px;color:#fff;font-size:14.5px;line-height:1.4}
footer.site .gpref-link:hover{border-color:var(--secondary);color:var(--secondary)}
/* social icons under the Google button (ARZ, 15.11.2026), links and icons from the WordPress footer */
footer.site .fsocial{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
footer.site .fsocial a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#869ab5;transition:transform .2s,color .2s}
footer.site .fsocial a:hover,footer.site .fsocial a:focus-visible{color:var(--secondary);transform:translateY(-3px)}
footer.site .fsocial svg{display:block;width:35px;height:36px}
footer.site h4{font-size:16px;margin:0 0 12px;font-weight:600}
footer.site p{color:#aab4cd;font-size:15px;font-weight:300;max-width:40ch;margin:0}
footer.site ul{list-style:none;padding:0;margin:0}
footer.site li{line-height:2}
footer.site a{color:#aab4cd;text-decoration:none;font-size:15px}
footer.site a:hover{color:var(--secondary)}
.fbot{
  margin-top:30px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);
  color:#8392b7;font-size:14px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
}

/* ---------- reveal, opt in so content is never stuck invisible ---------- */
.rv{opacity:1;transform:none}
.js-anim .rv{opacity:0;transform:translateY(16px);transition:opacity .5s ease-out,transform .5s ease-out}
.js-anim .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1!important;transform:none!important;transition:none!important}
  *{animation:none!important}
}

/* ---------- responsive ---------- */
/* ---------- the menu on a phone ----------
   ARZ, 16.9.2026: under 980px the menu was simply display:none, so a phone had
   no navigation at all. With script it is a panel under the bar, opened by the
   button; without script the items stay on screen as a scrollable row, so the
   menu is never unreachable. */
.navtoggle{
  display:none;width:44px;height:44px;flex:none;align-items:center;justify-content:center;
  flex-direction:column;gap:5px;background:transparent;cursor:pointer;
  border:1px solid var(--outline-variant);border-radius:12px;
}
.navtoggle span{display:block;width:20px;height:2px;background:var(--primary);border-radius:2px;
  transition:transform .2s ease,opacity .2s ease}
.site-header.nav-open .navtoggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-header.nav-open .navtoggle span:nth-child(2){opacity:0}
.site-header.nav-open .navtoggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:980px){
  .site-header .bar{flex-wrap:wrap;gap:12px}
  /* ARZ, 16.9.2026: the menu button on the right, "כניסה ללומדה" on the left.
     order puts the button first in the row, which in RTL is the right edge, and
     the auto margin after the logo pushes everything else to the left edge,
     whatever number of buttons the admin holds. */
  .navtoggle{display:flex;order:-1;margin-inline-start:0}
  .brand{margin-inline-end:auto}
  nav.main{
    order:9;flex:1 1 100%;margin:0;gap:18px;overflow-x:auto;
    padding-bottom:8px;-webkit-overflow-scrolling:touch;
  }
  .js-nav nav.main{
    display:none;position:absolute;inset-inline:0;top:100%;flex-direction:column;gap:0;
    overflow:visible;background:var(--card);border-top:1px solid var(--outline-variant);
    box-shadow:0 18px 40px rgba(4,21,52,.14);padding:4px 18px 12px;
  }
  .js-nav .site-header.nav-open nav.main{display:flex}
  .js-nav nav.main a{padding:13px 2px;font-size:16.5px;border-bottom:1px solid var(--surface-low)}
  .js-nav nav.main a:last-child{border-bottom:0}
  nav.main a::after{display:none}
  h1{font-size:29px}
  footer.site .fgrid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  body{font-size:17px}
  h1{font-size:25px}
  article h2,.page-body h2,.doc h2{font-size:23px}
  .brand .wordmark{display:none}
  .wrap{padding:0 18px}
}

/* ---------- sidebar layout ----------
   Generated pages put the article and an aside side by side. The aside carries
   a table of contents (only when the page has enough headings to need one),
   related pages and a soft CTA. */
.alayout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:52px;align-items:start}
.side{position:sticky;top:88px;display:flex;flex-direction:column;gap:18px}
.swidget{
  background:var(--card);border:1px solid var(--outline-variant);border-radius:var(--radius);
  padding:20px 22px;box-shadow:var(--shadow);
}
.swidget h4{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.12em;color:var(--outline)}
.toc,.rel{list-style:none;margin:0;padding:0}
.toc{font-size:15px}
.toc li{margin-bottom:2px}
.toc a{
  display:block;padding:7px 10px;margin-inline-start:-10px;border-radius:8px;
  text-decoration:none;color:var(--ink-variant);line-height:1.45;
  transition:background .15s ease,color .15s ease;
}
.toc a:hover,.toc a.active{background:#eef2ff;color:#3b5bdb;font-weight:500}
.rel{font-size:15.5px}
.rel li{padding:10px 0;border-bottom:1px solid var(--surface-low)}
.rel li:last-child{border-bottom:0}
.rel a{text-decoration:none;color:var(--ink-variant);line-height:1.5}
.rel a:hover{color:var(--secondary-deep)}
.sidecta{background:linear-gradient(150deg,#fdf0d8,#fbe4bb);border-color:#f0dcb4;text-align:center}
.sidecta h4{color:var(--secondary-deep)}
.sidecta p{margin:0 0 14px;font-size:15px;color:var(--secondary-deep)}

/* ---------- product classification chips ---------- */
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.tag{
  font-size:13px;font-weight:600;padding:5px 13px;border-radius:20px;
  background:#fff;border:1px solid var(--outline-variant);color:var(--ink-variant);
}
/* ארז, 4.9.2026: the type used to be a filled chip and the grades outlined,
   which reads as "on" and "off". The type is not a chip at all any more, it is
   the small label that opens the row, and every chip beside it is identical. */
.kind{
  font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--secondary-deep);
  background:#fdf0d8;padding:5px 12px;border-radius:20px;align-self:center;
}

/* ---------- essay layout, deliberately without a sidebar ---------- */
.narrow{max-width:680px;margin:0 auto;padding:0 24px}
.ehead{padding:36px 0 6px;text-align:center}
.ehead .crumbs{text-align:center}
.ehead h1{max-width:none;font-size:34px;line-height:1.35}
.kicker{
  display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.14em;
  color:var(--secondary-deep);background:#fdf0d8;padding:5px 14px;border-radius:20px;margin-bottom:16px;
}
article.essay{max-width:none;padding:8px 0 20px;font-size:18.5px;line-height:1.95}
article.essay p:first-of-type::first-letter{
  float:right;font-size:56px;line-height:.9;font-weight:700;
  color:var(--primary);margin:6px 0 0 10px;
}

/* ---------- legal document nav ---------- */
.llayout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:48px;align-items:start}
/* a legal page without a contents list is one column, the text never squeezed into the list's 250px */
.llayout-single,.llayout:not(:has(.docnav)){grid-template-columns:minmax(0,1fr)}
.llayout-single .doc{max-width:80ch}
.docnav{
  position:sticky;top:88px;background:var(--card);border:1px solid var(--outline-variant);
  border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow);
}
.docnav h4{margin:0 0 10px;font-size:12.5px;font-weight:700;letter-spacing:.12em;color:var(--outline)}
.docnav-list{list-style:none;margin:0;padding:0;font-size:14.5px}
.docnav-list a{
  display:block;padding:7px 9px;margin-inline-start:-9px;border-radius:8px;
  text-decoration:none;color:var(--ink-variant);line-height:1.45;transition:background .15s ease,color .15s ease;
}
.docnav-list a:hover,.docnav-list a.active{background:#eef2ff;color:#3b5bdb}

@media (max-width:980px){
  /* minmax(0,1fr), not 1fr: a wide table or a long line inside the column made
     the column itself wider than the phone, and the whole page scrolled sideways */
  .alayout,.llayout{grid-template-columns:minmax(0,1fr);gap:30px}
  .side,.docnav{position:static}
  .ehead h1{font-size:27px}
}

/* ---------- homepage ---------- */
.hero{background:var(--surface-warm);padding:52px 0 62px}
.hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:48px;align-items:stretch}
.hero h1{font-size:44px;line-height:1.2;max-width:none}
.hero .lead{font-size:19px;color:var(--ink-variant);margin:18px 0 28px;font-weight:300;max-width:52ch}
.hero-img{border-radius:20px;overflow:hidden;box-shadow:var(--shadow-lift);
          background:var(--surface-low);align-self:stretch;min-height:100%}
.hero-img img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}

.finder{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
        padding:22px;border:1px solid var(--outline-variant)}
.finder .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.finder label{display:block;font-size:13px;font-weight:600;color:var(--ink-variant);margin-bottom:7px}
.finder select{
  width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--outline-variant);
  background:var(--surface-low);font-family:inherit;font-size:15px;color:var(--ink);cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.finder select:focus{outline:none;border-color:var(--secondary);box-shadow:0 0 0 3px rgba(254,182,78,.28)}
.finder select:disabled{opacity:.5;cursor:not-allowed}
.finder .btn{width:100%}
#f-count{font-size:14px;opacity:.85;font-weight:500}
.finder-foot{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px;flex-wrap:wrap}
.finder-note{font-size:13px;color:var(--outline);margin:0;text-align:center}
.f-reset{
  font-family:inherit;font-size:13px;font-weight:600;color:var(--secondary-deep);
  background:transparent;border:1px solid var(--outline-variant);border-radius:20px;
  padding:6px 14px;cursor:pointer;transition:border-color .2s ease,background .2s ease;
}
.f-reset:hover{border-color:var(--secondary);background:var(--surface-warm)}

.entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:26px;
       padding-top:24px;border-top:1px solid var(--outline-variant)}
.entry a{
  display:flex;align-items:center;gap:12px;text-decoration:none;padding:13px 15px;
  border-radius:13px;border:1px solid var(--outline-variant);background:rgba(255,255,255,.55);
  transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.entry a:hover{border-color:var(--secondary);background:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(4,21,52,.08)}
.entry .tx{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.entry .tx b{font-size:15px;font-weight:600;color:var(--primary)}
.entry .tx span{font-size:12.5px;color:var(--outline)}

/* finder results */
.fr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.fr-item{
  background:var(--card);border:1px solid var(--outline-variant);border-radius:14px;
  padding:18px 20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;
  text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.fr-item:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift);border-color:var(--secondary)}
.fr-item:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}
.fr-item .ttl{font-size:16px;font-weight:600;color:var(--primary);line-height:1.5}
.fr-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.fr-tag{font-size:12px;padding:4px 10px;border-radius:20px;background:var(--card);
        color:var(--ink-variant);border:1px solid var(--outline-variant)}
/* what the product is, above its name: a label, not a chip competing with the grades */
.fr-kind{display:block;font-size:11.5px;font-weight:700;letter-spacing:.08em;
         color:var(--secondary-deep);margin-bottom:-4px}
.fr-go{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--secondary-deep)}
.fr-empty{text-align:center;color:var(--ink-variant);background:var(--surface-warm);
          border:1px dashed var(--outline-variant);border-radius:14px;padding:26px}

/* homepage sections */
.sec-head{text-align:center;max-width:680px;margin:0 auto 40px}
.sec-head h2{font-size:33px;font-weight:700;color:var(--primary);margin:0 0 10px;letter-spacing:-.02em;line-height:1.28}
.sec-head p{font-size:17.5px;color:var(--ink-variant);margin:0;font-weight:300}
.eyebrow{display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.14em;
         color:var(--secondary-deep);background:#fdf0d8;padding:5px 14px;border-radius:20px;margin-bottom:14px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.card{background:var(--card);border:1px solid var(--outline-variant);border-radius:var(--radius);
      overflow:hidden;box-shadow:var(--shadow);transition:transform .22s ease,box-shadow .22s ease}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.card .topbar{display:block;height:4px;background:var(--primary-container)}
.card .topbar.amber{background:var(--secondary)}
.card .thumb{aspect-ratio:4/3;overflow:hidden;display:grid;place-items:center;padding:14px;
             background:linear-gradient(150deg,var(--surface-warm),#f3eee4)}
.card .thumb img{width:100%;height:100%;object-fit:contain;margin:0;border-radius:0;box-shadow:none}
.card .body{padding:22px 24px 24px}
.card h3{margin:0 0 9px;font-size:20px;font-weight:600;color:var(--primary)}
.card p{margin:0;font-size:15.5px;color:var(--ink-variant);line-height:1.65}

.how{background:var(--card);border:1px solid var(--outline-variant);border-radius:var(--radius);
     padding:28px 24px;text-align:center;box-shadow:var(--shadow);transition:transform .22s ease,box-shadow .22s ease}
.how:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.how .ico{width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;
          background:var(--surface-warm);border-radius:16px}
.how .ico img{width:38px;height:38px;object-fit:contain;margin:0;border-radius:0;box-shadow:none}
.how h3{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--primary)}
.how p{margin:0;font-size:15px;color:var(--ink-variant);line-height:1.6}
/* a card with an address set in the admin: the title is the link and its
   ::after stretches over the whole card, so the card is one click target */
.card,.how{position:relative}
.card-link{color:inherit;text-decoration:none}
.card-link::after{content:"";position:absolute;inset:0;z-index:1}
.card-link:focus-visible{outline:none}
.card:has(.card-link:focus-visible),.how:has(.card-link:focus-visible){outline:3px solid var(--secondary);outline-offset:3px}

.gcard{background:var(--card);border:1px solid var(--outline-variant);border-radius:14px;
       padding:20px 22px;box-shadow:var(--shadow);text-decoration:none;display:block;
       transition:transform .2s ease,box-shadow .2s ease}
.gcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.gcard span{display:block;font-size:12.5px;color:var(--outline);margin-bottom:6px}
.gcard b{font-size:16.5px;color:var(--primary);font-weight:600;line-height:1.5}

/* expert band */
.expert{background:var(--primary);color:#fff;position:relative;overflow:hidden;padding:88px 0 80px;margin-top:58px}
.expert::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.075) 1px,transparent 1px);background-size:24px 24px}
.panel{position:relative;background:linear-gradient(150deg,rgba(255,255,255,.062),rgba(255,255,255,.018));
       border:1px solid rgba(255,255,255,.15);border-radius:30px;padding:48px 54px;
       display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:52px;align-items:center}
.portrait{position:relative;width:180px;height:180px;justify-self:center;transform:translate(-24px,-40px)}
.portrait .glow{position:absolute;inset:-32%;background:radial-gradient(circle at 50% 42%,rgba(254,182,78,.5),transparent 62%);filter:blur(6px)}
.portrait .ring{position:absolute;inset:0;border:1px solid rgba(254,182,78,.6);border-radius:30px 30px 30px 76px;transform:translate(13px,13px)}
.portrait img{position:relative;width:100%;height:100%;object-fit:cover;object-position:top center;
              border-radius:30px 30px 30px 76px;border:3px solid rgba(255,255,255,.92);
              box-shadow:0 26px 62px rgba(0,0,0,.5);margin:0}
.portrait .badge{position:absolute;bottom:-17px;inset-inline-start:-20px;background:var(--secondary);
                 color:#3a2600;border-radius:14px;padding:9px 15px;font-size:13.5px;font-weight:700;
                 box-shadow:0 12px 28px rgba(0,0,0,.4)}
.expert h2{font-size:34px;margin:0 0 4px;font-weight:700;color:#fff}
.expert .role{color:var(--secondary);font-size:17px;font-weight:500;margin:0 0 18px}
.expert .bio{color:#d5dbea;font-size:17px;font-weight:300;margin:0;max-width:60ch;line-height:1.85}

/* press */
.press{background:var(--surface-low);padding:50px 0}
.press h3{text-align:center;font-size:14px;letter-spacing:.14em;color:var(--outline);font-weight:600;margin:0 0 26px}
.press-row{display:flex;justify-content:center;align-items:center;gap:52px;flex-wrap:wrap}
.press-row img{
  max-height:38px;max-width:140px;height:auto;width:auto;object-fit:contain;
  transition:transform .18s ease,filter .18s ease;
}
.press-link{display:inline-flex}
.press-row img:hover{transform:translateY(-3px) scale(1.04);filter:drop-shadow(0 8px 18px rgba(4,21,52,.18))}

@media (max-width:980px){
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  /* stacked, a tall portrait would take over the screen */
  .hero-img{max-height:56vh}
  .hero-img img{object-position:center 22%}
  .hero h1{font-size:31px}
  .grid3,.grid4,.fr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel{grid-template-columns:minmax(0,1fr);text-align:center;padding:40px 26px 32px}
  .portrait{transform:translate(0,-32px);order:-1;width:158px;height:158px}
}
@media (max-width:640px){
  .grid3,.grid4,.fr-grid,.entry,.finder .row{grid-template-columns:minmax(0,1fr)}
  .hero h1{font-size:26px}
  .sec-head h2{font-size:26px}
}

/* ---------- hub route cards ----------
   Sits between the hub heading and its body copy, because routing a parent to
   the right product is the actual job of these pages. */
.hub-routes{padding:34px 0 10px}
.hub-routes .sec-head{margin-bottom:26px}
.hub-routes .sec-head h2{font-size:27px}

/* ---------- head band media ----------
   The lead image used to sit inside the text column as a lonely square with a
   lot of white around it. It now lives in the head band. Two shapes: a wide
   photo becomes a cover strip across the whole band, a square illustration goes
   into a soft panel beside the title and fills its column. */
.phero.has-art,.ahead.has-art,.hhead.has-art{padding:24px 0 34px}
.phero-grid{
  display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);
  gap:46px;align-items:stretch;
}
.phero-text h1{max-width:20ch}
.phero-art{position:relative}
.phero-art-in{
  position:relative;display:grid;place-items:center;
  aspect-ratio:4/3;padding:26px;border-radius:24px;
  background:
    radial-gradient(120% 110% at 78% 14%, rgba(254,182,78,.20), transparent 62%),
    radial-gradient(120% 110% at 12% 92%, rgba(59,91,219,.14), transparent 60%),
    linear-gradient(150deg,#ffffff 0%,#f4f1fa 100%);
  border:1px solid rgba(4,21,52,.06);
  box-shadow:var(--shadow-lift);
  overflow:hidden;
}
.phero-art-in::after{
  content:"";position:absolute;inset:auto -18% -34% -18%;height:62%;
  background:radial-gradient(60% 100% at 50% 0%, rgba(4,21,52,.05), transparent 70%);
  pointer-events:none;
}
.phero-art img{
  position:relative;width:100%;height:100%;
  object-fit:contain;margin:0;border-radius:0;box-shadow:none;
}
/* An illustration keeps its own proportions inside the panel. A photograph
   fills it, but in a shorter panel: cropping a wide photo into a narrow column
   at full height cut people's heads off. */
/* max-width, and no minimum height on a phone: min-height with an aspect-ratio
   sets the width too (250px at 3/2 is 375px), which pushed the panel past the screen */
.phero-art-in{aspect-ratio:auto;min-height:250px;height:100%;max-width:100%}
.phero-art.photo{align-self:center}
.phero-art.photo .phero-art-in{
  padding:0;background:var(--surface-low);height:auto;aspect-ratio:auto;min-height:0;
}
.phero-art.photo img{width:100%;height:auto;object-fit:contain}

.phero.has-cover,.ahead.has-cover,.hhead.has-cover{padding-bottom:0}
.phero-cover{
  margin:28px 0 -34px;border-radius:22px;overflow:hidden;
  background:var(--surface-low);box-shadow:var(--shadow-lift);
  border:1px solid rgba(4,21,52,.06);
}
.phero-cover img{
  width:100%;height:auto;aspect-ratio:24/9;object-fit:cover;object-position:center;
  display:block;margin:0;border-radius:0;box-shadow:none;
}
.has-cover + .alayout,.has-cover + .wrap{padding-top:76px}

/* On a desktop the head image stands on its own, no card around it: the
   panel loses its background, border and shadow, and the corners move to the
   image (ARZ, 7.10.2026). Videos have no .phero-art-in and are not touched,
   and the phone and tablet keep the panel. */
@media (min-width:981px){
  .phero-art-in{background:none;border:0;box-shadow:none}
  /* the photo variant sets its own background with a stronger selector (ARZ, 8.10.2026) */
  .phero-art.photo .phero-art-in{background:none}
  .phero-art-in::after{display:none}
  .phero-art-in img{width:auto;height:auto;max-width:100%;max-height:100%;border-radius:24px}
}
@media (max-width:980px){
  .phero-grid{grid-template-columns:minmax(0,1fr);gap:26px}
  .phero-art-in{aspect-ratio:16/10;padding:20px;min-height:0}
  .phero-art img{max-height:230px}
}
@media (max-width:640px){
  .phero-cover{margin:22px 0 -26px;border-radius:16px}
  .phero-cover img{aspect-ratio:16/9}
  .has-cover + .alayout,.has-cover + .wrap{padding-top:56px}
  .phero-art-in{aspect-ratio:3/2;padding:16px;border-radius:18px;min-height:0}
  .phero-art img{max-height:200px}
}

/* ---------- head band: opening line and video ---------- */
.phero-lead{
  margin:18px 0 0;font-size:18.5px;line-height:1.7;font-weight:300;
  color:var(--ink-variant);max-width:56ch;
}
.phero-lead b,.phero-lead strong{font-weight:600;color:var(--primary)}
.has-video .phero-art-in,.has-video .vid{margin:0}
.has-video .phero-art{align-self:center}

/* ---------- click to play video ----------
   Elementor stored the video as JSON, so the first build dropped it on 71
   pages. It comes back as a poster with a play button: nothing is requested
   from YouTube until the visitor asks for it. */
.vid{
  position:relative;display:block;margin:26px 0;border-radius:18px;overflow:hidden;
  aspect-ratio:16/9;background:#0b1830 center/cover no-repeat;
  box-shadow:var(--shadow-lift);cursor:pointer;
}
.vid::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(4,21,52,.10),rgba(4,21,52,.42));
  transition:background .2s ease;
}
.vid:hover::after{background:linear-gradient(180deg,rgba(4,21,52,.04),rgba(4,21,52,.30))}
.vid-btn{
  position:absolute;inset:0;margin:auto;width:74px;height:74px;z-index:2;
  border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(4,21,52,.35);
  transition:transform .18s ease,background .18s ease;
}
.vid-btn::before{
  content:"";position:absolute;inset:0;margin:auto;width:0;height:0;
  border-style:solid;border-width:13px 0 13px 21px;
  border-color:transparent transparent transparent var(--primary);
  transform:translateX(2px);
}
.vid-btn:hover{transform:scale(1.07);background:#fff}
.vid-btn:focus-visible{outline:3px solid var(--secondary);outline-offset:4px}
.vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:3}
.vid.playing::after,.vid.playing .vid-btn{display:none}

/* ---------- route cards, with the real description ---------- */
.fr-item{
  display:flex;flex-direction:column;gap:10px;height:100%;
}
.fr-desc{
  font-size:15px;line-height:1.6;color:var(--ink-variant);font-weight:300;
}
.fr-item .fr-go{margin-top:auto;padding-top:4px}

/* ---------- rebuilt Elementor column rows ----------
   Comparison rows and feature strips were authored as columns side by side.
   The first build flattened them into one stream, so a four column table read
   as a run on paragraph. extract.py now marks them and they come back as a
   grid, with consecutive rows separated so a table still reads as a table. */
.cols{display:grid;gap:12px 26px;margin:0 0 16px;align-items:start}
.cols.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cols.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cols.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.col > *:first-child{margin-top:0}
.col > *:last-child{margin-bottom:0}
.col p,.col ul,.col ol{margin-bottom:10px}
.cols + .cols{border-top:1px solid var(--outline-variant);padding-top:16px}
.cols img{margin:0 0 10px}
@media (max-width:900px){
  .cols.c3,.cols.c4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .cols{grid-template-columns:minmax(0,1fr)}
  .cols.c2,.cols.c3,.cols.c4{grid-template-columns:minmax(0,1fr)}
}

/* ---------- in page section nav ----------
   The pages carry their own menu, "הנושאים בחוג", "ההרשמה", "שאלות הורים".
   Extracted it was a bullet list buried in the text and its targets had been
   dropped, so 495 links across 109 pages went nowhere. It gets a bar of its
   own under the hero, and the targets are back. */
.secnav{
  background:var(--primary);position:sticky;top:71px;z-index:40;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.08),0 8px 24px rgba(4,21,52,.12);
}
.secnav ul{
  display:flex;flex-wrap:wrap;justify-content:center;gap:2px;
  list-style:none;margin:0;padding:0;
}
.secnav a{
  display:block;padding:14px 18px;color:#c9d4e8;text-decoration:none;
  font-size:16px;font-weight:400;white-space:nowrap;
  border-bottom:3px solid transparent;
  transition:color .16s ease,background .16s ease,border-color .16s ease;
}
.secnav a:hover,.secnav a:focus-visible{
  color:#fff;background:rgba(255,255,255,.07);border-bottom-color:var(--secondary);
}
.secnav a:focus-visible{outline:2px solid var(--secondary);outline-offset:-4px}
.secnav a.active{
  color:#fff;background:rgba(255,255,255,.07);border-bottom-color:var(--secondary);
  font-weight:500;
}

/* the anchor target itself: an empty marker, offset so the sticky header
   never covers the heading it belongs to */
.anchor{display:block;height:0;overflow:hidden;scroll-margin-top:96px}
.page-body [id],article [id],.doc [id]{scroll-margin-top:96px}
/* on a page that has the bar, the target has to clear the header and the bar */
.secnav ~ * .anchor,.secnav ~ * [id]{scroll-margin-top:142px}

@media (max-width:760px){
  .secnav ul{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
             -webkit-overflow-scrolling:touch}
  .secnav a{padding:12px 14px;font-size:15px}
}

/* ---------- author card ----------
   ענת's portrait and bio used to sit in a side column. Flattened by the
   extractor it landed in the middle of the text. It belongs beside the content,
   and it is an authority signal, so it gets a card of its own. */
.authorcard{text-align:center}
.authorcard h4{text-align:start}
.an-photo{
  width:132px;height:132px;border-radius:50%;object-fit:cover;object-position:top center;
  margin:4px auto 12px;border:4px solid #fff;box-shadow:var(--shadow-lift);
}
.an-name{margin:0 0 4px;font-size:17px;font-weight:700;color:var(--primary)}
.an-role{margin:0 0 10px;font-size:13.5px;color:var(--outline);line-height:1.5}
.authorcard .an-bio ul{list-style:none;margin:0;padding:0}
.authorcard .an-bio li{margin:0 0 8px}
.an-bio{font-size:14.5px;line-height:1.62;color:var(--ink-variant);text-align:start}
.an-bio p{margin:0}

/* ---------- forms shown for review ----------
   The payment path is still waiting on Senzey, so the extracted forms are
   displayed for content review and cannot be submitted. */
.pform{
  margin:26px 0;padding:22px 24px;border:1px solid var(--outline-variant);
  border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);
}
.pform ul,.pform ol{list-style:none;margin:0;padding:0}
.pform li{margin:0 0 14px}
.pform label{display:block;font-size:15px;font-weight:500;color:var(--ink-variant);margin:0 0 6px}
.pform input[type=text],.pform input[type=email],.pform input[type=tel],
.pform input[type=number],.pform select,.pform textarea{
  width:100%;max-width:420px;padding:11px 13px;font-family:inherit;font-size:16px;
  border:1px solid var(--outline-variant);border-radius:10px;background:#fdfdff;color:var(--ink);
}
/* a field's own hint ("דוגמה: 0501234567", "יש לבחור את כיתת הלימוד...")
   sits right under its box, not beside it (ARZ, 15.11.2026) */
.pform li>input[type=text]:not([id^="gf_coupon"]),.pform li>input[type=email],.pform li>input[type=tel],
.pform li>input[type=number],.pform li>select,.pform li>textarea{display:block}
.pform li>small{display:block;margin:4px 0 0;font-size:13.5px;color:var(--ink-variant)}
.pform input[type=checkbox],.pform input[type=radio]{margin-inline-end:8px}
.pform input[type=submit],.pform button{
  padding:13px 30px;border:0;border-radius:999px;background:var(--primary);color:#fff;
  font-family:inherit;font-size:16.5px;font-weight:600;cursor:pointer;
  transition:transform .15s ease,box-shadow .18s ease;
}
.pform input[type=submit]:hover,.pform button:hover{
  transform:translateY(-1px);box-shadow:0 10px 24px rgba(4,21,52,.24);
}
.pform [hidden]{display:none !important}
/* the submit button while the payment page opens: locked, with a spinner
   (checkout.js lockSubmit, ARZ, 21.11.2026) */
.pform button.is-sending{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  cursor:progress;transform:none;
}
/* grey while it works, so it reads as "busy", not "click me" (ARZ, 21.11.2026) */
.pform button.is-sending,.pform button.is-sending:hover{background:#8a919c;color:#fff}
.pform-spin{
  flex:0 0 auto;width:18px;height:18px;box-sizing:border-box;border-radius:50%;
  border:2.5px solid currentColor;border-top-color:transparent;
  animation:pform-spin .8s linear infinite;
}
@keyframes pform-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pform-spin{animation-duration:2.4s}}

/* the running total, the same line the current site shows */
.pform-total{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:22px 0 4px;padding:15px 18px;border-radius:12px;
  background:var(--surface-warm);border:1px solid #ecd9b0;
}
.pform-total span{font-size:16px;font-weight:500;color:var(--ink-variant)}
.pform-total-value{font-size:21px;font-weight:700;color:var(--primary)}
.pform li{list-style:none}
.pform .gchoice,.pform li li{display:flex;align-items:flex-start;gap:9px}
.pform li li label{margin:0;font-weight:400}
.pform-error{
  margin:0 0 16px;padding:12px 15px;border-radius:11px;font-size:15px;font-weight:500;
  background:#fdecec;color:#9b2226;border:1px solid #f0c2c4;
}
/* weeks / months / days chosen and the end date, side by side in frames,
   the number centred under its label (ARZ, 15.11.2026) */
.pform li.pform-stats>ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;align-items:stretch}
.pform li.pform-stats li.pform-stat{
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;
  flex:0 0 20%;min-width:120px;box-sizing:border-box;margin:0;padding:3px 10px;text-align:center;line-height:1.25;
  border-radius:12px;background:var(--surface-warm);border:1px solid #ecd9b0;
}
.pform li.pform-stat label{margin:0;text-align:center;line-height:1.25}
/* a line under a phone or email field (ARZ, 15.11.2026) */
.pform-field-note{margin:6px 0 0;font-size:14px;font-weight:500;line-height:1.5}
.pform-field-note.is-error{color:#b91c1c}
.pform-field-note.is-ask{color:#92400e}
.pform .pform-note-fix{
  display:inline;margin:0;padding:0;border:0;border-radius:0;min-height:0;background:none;box-shadow:none;transform:none;
  font:inherit;font-weight:700;color:var(--primary);text-decoration:underline;cursor:pointer;
}
.pform .pform-note-fix:hover{transform:none;box-shadow:none;background:none}

/* ---------- product status flags, grade quick filter, homepage rhythm (3.9.2026) ----------
   The client asked for a green "פעיל" / yellow "מלא" flag on every listed product,
   grade buttons next to the finder results, and air between the homepage sections. */
.st{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:20px;line-height:1.4;white-space:nowrap}
.st-few{background:#fef3c7;color:#92400e}
.st-full{background:#fce7f3;color:#9d174d}
.fr-item .st{align-self:flex-start;margin-bottom:6px}
/* a closed product is rendered with the hidden attribute (status_attrs, status.js);
   display:flex on .fr-item beat the browser default, so closed cards showed (ARZ, 16.11.2026) */
.fr-item[hidden],.st[hidden]{display:none !important}
.tags .st{margin-inline-start:auto}
.grade-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 24px}
.gbtn{border:1px solid var(--outline-variant);background:var(--card);border-radius:20px;padding:7px 15px;
      font:inherit;font-size:14px;font-weight:600;cursor:pointer;color:var(--primary);transition:all .16s ease}
.gbtn:hover{border-color:var(--secondary);transform:translateY(-1px)}
.gbtn.on{background:var(--primary);color:#fff;border-color:var(--primary)}
.tpl-home main>section{padding:60px 0 68px}
.tpl-home main>#finder-results{padding-top:52px}
.tpl-home .expert{margin-top:0}
@media (max-width:640px){.tpl-home main>section{padding:44px 0 50px}}

/* ---------- coupons in the order form (3.9.2026) ---------- */
.pform-coupon-msg{font-size:13.5px;margin:8px 0 0;color:var(--ink-variant)}
.pform-coupon-msg.is-error{color:#b91c1c}
.pform-coupon-msg.is-ok{color:#166534}
.pform-coupons{list-style:none;padding:0;margin:8px 0 0;font-size:14px}
.pform-coupons li{display:flex;align-items:center;gap:10px;background:#dcfce7;color:#166534;border-radius:8px;padding:6px 10px;margin:4px 0}
.pform-coupon-remove{border:0;background:transparent;color:#166534;text-decoration:underline;cursor:pointer;font:inherit;font-size:13px}

/* ---------- pricing tables on product pages (3.9.2026) ----------
   One card per plan, the feature rows with a check or a cross, the price block.
   Rendered from data at build time and re-rendered by status.js when the
   admin edits a table. */
/* stretch: every card in a row the height of the tallest, price at the bottom (ARZ, 27.9.2026) */
.pricing{display:grid;gap:22px;margin:28px 0 34px;align-items:stretch}
.pricing.cols-1{grid-template-columns:minmax(0,420px)}
.pricing.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pricing.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pricing.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.pr-card{background:var(--card);border:1px solid var(--outline-variant);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.pr-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.pr-card header{padding:22px 18px 18px;text-align:center;color:#fff;position:relative}
.pr-card.tone-a header{background:var(--primary)}
.pr-card.tone-b header{background:#5b8fd6}
.pr-card header::after{content:"";position:absolute;left:50%;bottom:-10px;width:20px;height:20px;transform:translateX(-50%) rotate(45deg);background:inherit}
.pr-card header h3{margin:0;font-size:19px;font-weight:700;color:#fff;line-height:1.3}
.pr-ico{display:block;width:44px;height:30px;margin:0 auto 8px}
.pr-ico svg{width:100%;height:100%;fill:#fff}
.pr-rows{list-style:none;margin:0;padding:14px 0 0}
.pr-rows li{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 16px;border-bottom:1px solid var(--outline-variant);font-size:14.5px;line-height:1.45;text-align:center;color:var(--ink)}
.pr-rows li:last-child{border-bottom:0}
.pr-rows li>span{white-space:pre-line}
.pr-rows .mark{display:inline-block;width:20px;height:20px;border-radius:50%;position:relative}
.pr-rows li.ok .mark{background:#dcfce7}
.pr-rows li.ok .mark::after{content:"";position:absolute;left:6px;top:3px;width:5px;height:10px;border:solid #16a34a;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.pr-rows li.no .mark{background:#fee2e2}
.pr-rows li.no .mark::before,.pr-rows li.no .mark::after{content:"";position:absolute;left:9px;top:4px;width:2.5px;height:12px;background:#dc2626;transform:rotate(45deg)}
.pr-rows li.no .mark::after{transform:rotate(-45deg)}
.pr-card footer{margin-top:auto;padding:18px 16px 20px;text-align:center;background:var(--surface-low)}
.pr-price{font-size:30px;font-weight:700;color:var(--primary);line-height:1.1;direction:ltr}
.pr-price .cur{font-size:18px;font-weight:600;margin-left:4px}
.pr-period{font-weight:700;margin-top:4px}
.pr-extra{font-size:14px;color:var(--ink-variant);margin-top:2px}
.pr-note{font-size:11.5px;color:var(--outline);margin:12px 0 0;line-height:1.5}
@media (max-width:900px){.pricing.cols-3,.pricing.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.pricing,.pricing.cols-2,.pricing.cols-3,.pricing.cols-4{grid-template-columns:minmax(0,1fr)}}

/* the article's real publication date, from the live site (4.9.2026) */
.pubdate{font-size:13.5px;color:var(--outline);margin:10px 0 0;font-weight:400}
.ehead .pubdate{margin-top:12px}

/* ---------- the Botfsor: choosing a track by answering (ארז, 8.9.2026) ----------
   Reads as a conversation, works as a filter. The questions and answers are
   computed from the catalogue, so nothing here is typed by hand and nothing
   goes stale. */
.probot{
  max-width:780px;margin:0 auto;padding:22px;border:1px solid var(--outline-variant);
  border-radius:18px;background:var(--card);
}
.pb-row{display:flex;margin:0 0 12px}
.pb-mine{justify-content:flex-start}
.pb-ask{
  background:var(--surface-low);border:1px solid var(--outline-variant);
  border-radius:16px 16px 16px 4px;padding:12px 16px;font-size:16px;
  line-height:1.5;color:var(--ink);max-width:80%;
}
.pb-said{
  display:inline-flex;align-items:center;gap:8px;background:var(--primary);
  color:#fff;border:0;border-radius:16px 16px 4px 16px;padding:10px 16px;
  font:inherit;font-size:15px;font-weight:600;cursor:pointer;
}
.pb-said:hover{opacity:.9}
.pb-said .pb-x{font-size:17px;line-height:1;opacity:.75}
.pb-opts{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 18px}
.pb-opt{
  display:inline-flex;align-items:center;gap:8px;background:var(--card);
  border:1px solid var(--outline-variant);border-radius:22px;padding:10px 16px;
  font:inherit;font-size:15px;color:var(--ink);cursor:pointer;
  transition:border-color .15s ease,background .15s ease;
}
.pb-opt:hover{border-color:var(--primary);background:var(--surface-low)}
.pb-opt:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}
.pb-n{
  font-size:12.5px;font-weight:700;color:var(--ink-variant);
  background:var(--surface-low);border-radius:10px;padding:1px 7px;
}
.pb-res{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:6px 0 4px}
.pb-card{
  position:relative;display:flex;flex-direction:column;gap:4px;padding:16px 18px;
  border:1px solid var(--outline-variant);border-radius:14px;background:var(--card);
  text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease;
}
.pb-card:hover{border-color:var(--primary);box-shadow:0 2px 12px rgba(0,0,0,.07)}
.pb-kind{font-size:11.5px;font-weight:700;letter-spacing:.08em;color:var(--secondary-deep)}
.pb-t{font-weight:700;color:var(--primary);line-height:1.4}
.pb-g{font-size:13.5px;color:var(--ink-variant)}
.pb-go{margin-top:6px;font-size:14px;font-weight:600;color:var(--secondary-deep)}
.pb-flag{
  position:absolute;top:10px;left:10px;font-size:11.5px;font-weight:700;
  padding:3px 9px;border-radius:20px;
}
.pb-foot{margin-top:14px;text-align:center}
.pb-reset{
  background:none;border:0;font:inherit;font-size:14px;color:var(--ink-variant);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px;
}
.pb-reset:hover{color:var(--primary)}
@media (max-width:640px){
  .probot{padding:16px;border-radius:14px}
  .pb-ask{max-width:100%}
  .pb-res{grid-template-columns:minmax(0,1fr)}
}

/* ARZ, 15.9.2026: an icon grid he writes as HTML in the page editor. A <style>
   block does not survive a save, so the component lives here and his markup
   carries only the classes: div.hp-icongrid > div.hp-col > img + h3 */
/* 4.10.2026 (ARZ's assistant): the layout he had written inline on 49 pages,
   moved here so a page carries only the classes. Every cube in one row on a
   wide screen whatever their number (3, 5 or 6), two in a row on a phone with
   an odd last cube centred. Borders are drawn per cube so no row ends open. */
.hp-icongrid{--ig-line:rgba(151,151,151,.27);display:flex;flex-wrap:wrap;justify-content:center;border-top:1px solid var(--ig-line);margin:0 0 30px}
.hp-icongrid .hp-col{flex:1 1 0;min-width:0;padding:14px 8px;text-align:center;border-bottom:1px solid var(--ig-line);border-inline-start:1px solid var(--ig-line);transition:box-shadow .3s}
.hp-icongrid .hp-col:last-child{border-inline-end:1px solid var(--ig-line)}
.hp-icongrid .hp-col:hover{box-shadow:0 0 15px rgba(115,126,130,.5)}
.hp-icongrid .hp-col img{width:70%;height:auto;margin:0 auto 15px;display:block;border-radius:0;box-shadow:none}
.hp-icongrid .hp-col h3{font-size:20px;font-weight:400;color:#272728;margin:0}
@media (max-width:640px){
  .hp-icongrid .hp-col{flex:0 0 50%}
  .hp-icongrid .hp-col:nth-child(2n){border-inline-end:1px solid var(--ig-line)}
  .hp-icongrid .hp-col h3{font-size:17px}
}

/* 4.10.2026 (ARZ): cards in one row that move on their own, with arrows. Any
   element with class hp-carousel in the page editor; its children are the
   cards. site.js adds the arrows and the motion; without script it is a row
   the visitor scrolls sideways, so nothing is ever hidden. */
.hp-carousel-wrap{position:relative;margin:20px 0}
.hp-carousel{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:4px 2px 8px;margin:0}
.hp-carousel::-webkit-scrollbar{display:none}
.hp-carousel>*{flex:0 0 calc((100% - 40px) / 3);min-width:0;scroll-snap-align:start;margin:0}
@media (max-width:980px){.hp-carousel>*{flex-basis:calc((100% - 20px) / 2)}}
@media (max-width:640px){.hp-carousel>*{flex-basis:100%}}
.hp-car-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid #d9dbe3;background:#fff;color:#1c2e4a;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(21,27,45,.12);z-index:2}
.hp-car-btn:hover{border-color:var(--primary)}
.hp-car-btn.prev{inset-inline-start:-14px}
.hp-car-btn.next{inset-inline-end:-14px}
@media (max-width:640px){.hp-car-btn.prev{inset-inline-start:-6px}.hp-car-btn.next{inset-inline-end:-6px}}

/* a button that came across inside the content (the AI prompt page): the old
   site styled it, here it arrived bare and was 24px high, too small to tap */
article button.rv,.page-body button.rv{
  font:inherit;font-size:15px;font-weight:600;min-height:42px;padding:9px 18px;
  border-radius:24px;border:1px solid var(--outline-variant);
  background:var(--card);color:var(--primary);cursor:pointer;
}
article button.rv:hover,.page-body button.rv:hover{border-color:var(--primary)}

/* ---------- phones, last so these win over the component rules above ---------- */
@media (max-width:640px){
  /* 16px, or iOS zooms the page in the moment the field is focused */
  .finder select{font-size:16px}
  /* nothing on a phone under 12.5px */
  .fr-kind,.pr-note,.kind{font-size:12.5px}
  /* a link on its own line is a tap target, so give it room around the text
     (padding on an inline element grows the hit area without moving anything) */
  .page-body a,article a,.doc a{padding-block:6px}
  /* rows the old content writes as an inline flex (photo beside text on the team
     page) stack instead of squeezing the text into a 40px column */
  .page-body [style*="display:flex"],article [style*="display:flex"],.doc [style*="display:flex"]{flex-wrap:wrap}
}

/* Copy box: a text the reader copies whole (a prompt for an AI chat), with its
   own button. Plain markup the admin editor keeps: div.copybox > .copybox-text
   + button.copybox-btn. site.js does the copying (ARZ, 27.9.2026). */
.copybox{
  margin:30px 0;padding:22px 24px;background:var(--surface-low);
  border:2px dashed var(--outline-variant);border-radius:var(--radius);
}
.copybox-label{margin:0 0 14px;font-weight:700;color:var(--primary);font-size:18px}
.copybox-text{
  background:var(--card);border:1px solid var(--outline-variant);border-radius:10px;
  padding:18px 20px;max-height:320px;overflow:auto;font-size:15px;line-height:1.7;
}
.copybox-text p{margin:0 0 12px;font-size:15px}
.copybox-text p:last-child{margin-bottom:0}
.copybox-btn{
  display:block;width:100%;margin-top:16px;min-height:48px;padding:12px 18px;border:0;
  border-radius:12px;background:var(--primary);color:#fff;font:inherit;font-weight:700;
  font-size:17px;cursor:pointer;transition:background .15s,transform .15s;
}
.copybox-btn:hover{background:var(--primary-container);transform:translateY(-1px)}
.copybox-btn:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}
.copybox-ok{margin:12px 0 0;text-align:center;font-weight:700;color:var(--ok)}
/* the scrolling boxes take the keyboard focus (site.js), so they show it (26.10.2026) */
.copybox-text:focus-visible,.hp-carousel:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}

/* Admin discount fields in the order forms: hidden from visitors, shown when the
   admin marker cookie is set by /_admin/ (ARZ, 27.9.2026, as on the live site) */
html:not(.hp-admin) .pform li.gf-admin{display:none!important}

/* the upgrade page: the student's current track and the ones below it (site.js) */
.pr-card.current-plan{box-shadow:0 0 0 3px #2ecc71,var(--shadow);position:relative}
.pr-card.current-plan header{padding-top:40px}
.pr-card.current-plan header::before{
  content:"המסלול שלך";position:absolute;top:10px;left:50%;transform:translateX(-50%);
  background:#2ecc71;color:#fff;font-size:13px;font-weight:700;padding:3px 12px;border-radius:999px;
  white-space:nowrap;z-index:1
}
.pr-card.previous-plan{opacity:.45;filter:grayscale(1)}
@media (max-width:767px){.pr-card.previous-plan{display:none}}

/* ---------- price lists row against row (ARZ, 28.9.2026) ----------
   On a wide screen every card is a subgrid of the table's rows (--r feature rows
   between the header and the price), so row N of one plan sits level with row N
   of every other plan and with its label in the label column. On a narrow screen
   the cards stack and each row carries its own label (span.rl). */
.pr-more{
  grid-column:1/-1;justify-self:center;margin-top:6px;padding:10px 26px;border-radius:999px;
  border:1px solid var(--primary);background:var(--card);color:var(--primary);font:inherit;font-weight:700;cursor:pointer
}
.pr-more:hover{background:var(--primary);color:#fff}
.pricing:not(.open) .pr-rows li.d{display:none}
.pricing.open .pr-rows li.s{display:none}
/* ARZ 29.9.2026: every list shows its text inside the plan columns, as the middle
   school lists do; the label column stays in the markup (it carries the rows for
   status.js) but is never shown, and span.rl is the row's text in the card */
.pr-labels{display:none!important}
@media (min-width:1100px){
  .pricing.cols-2,.pricing.cols-3,.pricing.cols-4{
    grid-template-rows:[top] auto repeat(var(--r),auto) auto [end];align-items:stretch;row-gap:0
  }
  .pricing.cols-2 .pr-card,.pricing.cols-3 .pr-card,.pricing.cols-4 .pr-card,.pricing .pr-labels{
    grid-row:top / end;display:grid;grid-template-rows:subgrid
  }
  .pricing.cols-2 .pr-card .pr-rows,.pricing.cols-3 .pr-card .pr-rows,.pricing.cols-4 .pr-card .pr-rows,
  .pricing .pr-labels .pr-rows{grid-row:2 / -2;display:grid;grid-template-rows:subgrid;padding-top:0}
  .pricing .pr-more{grid-row:auto}
  .pr-labels .pr-rows li{
    align-items:flex-start;justify-content:center;text-align:right;font-weight:600;color:var(--primary);
    font-size:14px;padding:12px 4px 12px 10px
  }
  .pr-labels .pr-lf{display:flex;align-items:center;font-weight:700;color:var(--primary);padding-inline-end:10px}
  .pr-card .pr-rows li{justify-content:center}
  .pricing.has-labels .pr-card .pr-rows li{padding:9px 8px;font-size:13.5px;line-height:1.4}
  .pricing.has-labels .pr-labels .pr-rows li{font-size:13.5px;line-height:1.4;padding:9px 4px 9px 10px}
  /* the plan's own description line, the first row, has no label */
  .pricing.has-labels .pr-card .pr-rows li.plain:first-child span{font-size:12.5px;color:var(--ink-variant)}
}

/* the text lists' indent (.page-body ul, 22px at the start) outranked .pr-rows and pushed
   every price row off the card's right edge (ARZ, 29.9.2026) */
.pricing .pr-rows{padding-inline:0;margin:0}
main[tabindex="-1"]:focus{outline:none}

/* cookie notice, built by site.js (ARZ, 23.11.2026): a fixed card at the bottom, clear
   of the accessibility button (56px at bottom 18px), below its z-index */
.hp-cookie{
  position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:2147483000;
  width:min(760px,calc(100% - 176px));display:flex;align-items:center;gap:16px;
  background:var(--primary);color:#fff;border-radius:14px;padding:14px 18px;
  box-shadow:0 10px 30px rgba(4,21,52,.28);font-size:14px;line-height:1.55;
  animation:hpCookieIn .5s ease-out both;
}
.hp-cookie p{margin:0;flex:1}
.hp-cookie a{color:var(--secondary);text-decoration:underline}
.hp-cookie button{
  flex:none;background:var(--secondary);color:var(--primary);border:0;border-radius:999px;
  padding:9px 22px;font:inherit;font-weight:700;cursor:pointer;
}
.hp-cookie button:hover{filter:brightness(1.06)}
.hp-cookie button:focus-visible,.hp-cookie a:focus-visible{outline:3px solid #fff;outline-offset:2px}
@keyframes hpCookieIn{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translate(-50%,0)}}
@media (max-width:760px){
  .hp-cookie{bottom:86px;width:calc(100% - 24px);flex-direction:column;align-items:stretch;gap:10px;font-size:13px;padding:12px 14px}
  .hp-cookie button{align-self:center}
}
@media (prefers-reduced-motion:reduce){.hp-cookie{animation:none}}
@media print{.hp-cookie{display:none}}
