/* ============================================================
   מעטפת האתר הציבורי — פס עליון, כותרת, ראש עמוד, פוטר (23/10/2026)
   נטען בכל 9 העמודים הציבוריים, כולל archive.html (לוח המסדרון).
   בלוח נטען רק הקובץ הזה ולא site.css — כדי שעיצוב האתר לא ייגע בלוח.
   לכן: כל כלל כאן מתחיל במחלקה של המעטפת (.tf-chrome / .topbar /
   header.site / footer.site / .page-head) — אין כאן כללים על תגיות עירומות.
   הצבעים מוגדרים גם על .tf-chrome עצמו: בלוח יש :root עם אותם שמות
   (--ink, --navy-deep, --gold-soft) בערכים אחרים, והוא גובר על :root שכאן.
   ============================================================ */
:root, .tf-chrome{
  --navy:#141a63; --navy-2:#1a237e; --navy-deep:#0b0f3a; --navy-soft:#e9ebf7;
  --gold:#d4af37; --gold-2:#a8811f; --gold-soft:#f6edd2;
  --cream:#fbf8f1; --paper:#ffffff; --ink:#1c2035; --muted:#5d6278; --line:#e6e1d3;
  --radius:18px; --shadow:0 10px 30px rgba(20,26,99,.08); --shadow-lg:0 24px 60px rgba(11,15,58,.18);
  --serif:'Frank Ruhl Libre','David',serif; --sans:'Heebo','Segoe UI',Arial,sans-serif;
  --wrap:1180px;
}
.tf-chrome{font-family:var(--sans);line-height:1.75;-webkit-font-smoothing:antialiased}
.tf-chrome,.tf-chrome *{box-sizing:border-box}
.tf-chrome .wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.tf-chrome a:focus-visible,.tf-chrome button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.tf-chrome img{max-width:100%;display:block}

/* דילוג לתוכן (נגישות) */
.skip{position:absolute;top:-60px;right:16px;z-index:100;background:var(--gold);color:var(--navy-deep);font-weight:700;padding:10px 18px;border-radius:0 0 12px 12px;text-decoration:none}
.skip:focus{top:0}

/* ---------- פס עליון ---------- */
.topbar{background:var(--navy-deep);color:rgba(255,255,255,.8);font-size:.86rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px}
.topbar a{text-decoration:none;color:inherit}
.topbar a:hover{color:var(--gold)}
.topbar .tb-date b{color:var(--gold);font-weight:500}
.topbar .tb-links{display:flex;gap:18px;align-items:center}
.topbar .tb-date{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.topbar .tb-portal{white-space:nowrap;flex-shrink:0;color:#fff;font-weight:700;border:1px solid rgba(212,175,55,.6);border-radius:999px;padding:3px 14px;background:rgba(212,175,55,.12)}
.topbar .tb-portal:hover{background:var(--gold);color:var(--navy-deep)}

/* ---------- כותרת ---------- */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line);transition:box-shadow .2s}
header.site.scrolled{box-shadow:0 6px 24px rgba(11,15,58,.08)}
header.site .wrap{display:flex;align-items:center;gap:22px;min-height:78px;position:relative}
header.site .brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0;color:inherit}
header.site .brand img{width:56px;height:56px;object-fit:contain}
header.site .brand b{display:block;font-family:var(--serif);font-size:1.32rem;color:var(--navy);line-height:1.1}
header.site .brand span{display:block;font-size:.78rem;color:var(--muted);letter-spacing:.2px}
/* style.css הישן (שנטען בלוח) מעצב nav ו-nav a עירומים — מאפסים כאן */
header.site nav.main{display:flex;gap:2px;margin-inline-start:auto;position:static;background:none;box-shadow:none;border:0;z-index:auto}
header.site nav.main a{text-decoration:none;font-weight:500;font-size:.98rem;color:var(--ink);padding:8px 13px;border-radius:10px;transition:background .15s,color .15s;white-space:nowrap;border-bottom:0;margin-bottom:0;position:static}
header.site nav.main a:hover{background:var(--navy-soft);color:var(--navy)}
header.site nav.main a[aria-current="page"]{color:var(--navy);font-weight:700;box-shadow:inset 0 -3px 0 var(--gold)}
header.site .hdr-give{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;font-size:.96rem;padding:.6rem 1.4rem;border-radius:999px;background:var(--gold);color:var(--navy-deep);box-shadow:0 8px 22px rgba(212,175,55,.35);transition:transform .15s,background .15s;white-space:nowrap}
header.site .hdr-give:hover{transform:translateY(-2px);background:#e0bd48}
header.site .menu-btn{display:none;background:none;border:0;font-size:1.7rem;color:var(--navy);cursor:pointer;padding:6px;margin-inline-start:auto;line-height:1}

/* ---------- ראש עמוד פנימי ---------- */
.page-head{position:relative;background:var(--navy-deep);color:#fff;overflow:hidden}
.page-head::before{content:"";position:absolute;inset:0;background:var(--ph-img,url('img/hero-beit-midrash.jpg')) center 40%/cover no-repeat;opacity:.28}
.page-head::after{content:"";position:absolute;inset:0;background:linear-gradient(to left,rgba(11,15,58,.9),rgba(11,15,58,.6))}
.page-head .wrap{position:relative;z-index:2;padding-top:64px;padding-bottom:64px}
.page-head .crumbs{font-size:.88rem;color:rgba(255,255,255,.7);margin-bottom:10px}
.page-head .crumbs a{text-decoration:none;color:rgba(255,255,255,.85)}
.page-head .crumbs a:hover{color:var(--gold)}
.page-head h1{color:#fff;font-family:var(--serif);font-size:clamp(2.1rem,4.4vw,3.2rem);font-weight:900;line-height:1.25;margin:0}
.page-head p{color:rgba(255,255,255,.85);font-size:1.12rem;max-width:640px;margin:12px 0 0}

/* ---------- פוטר ---------- */
footer.site{background:var(--navy-deep);color:rgba(255,255,255,.75);padding:64px 0 0;font-size:.95rem;text-align:start;margin-top:0}
footer.site .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:36px;padding-bottom:44px}
footer.site h4{color:#fff;font-family:var(--serif);font-size:1.15rem;margin:0 0 14px}
footer.site p{margin:0}
footer.site a{text-decoration:none;color:rgba(255,255,255,.75)}
footer.site a:hover{color:var(--gold)}
footer.site ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
footer.site .fbrand{display:flex;gap:12px;align-items:center;margin-bottom:14px}
footer.site .fbrand img{width:60px}
footer.site .fbrand b{font-family:var(--serif);color:#fff;font-size:1.3rem;display:block}
footer.site .fbrand span{font-size:.8rem}
footer.site .legal{border-top:1px solid rgba(255,255,255,.1);padding:18px 0 22px;font-size:.82rem;color:rgba(255,255,255,.55);display:flex;justify-content:space-between;gap:10px 20px;flex-wrap:wrap}
footer.site .legal a{color:rgba(255,255,255,.55)}
footer.site .legal .en{direction:ltr;flex-basis:100%;text-align:center;opacity:.8}

/* וואטסאפ צף — בצד ימין, כי כפתור הנגישות (♿) יושב בשמאל */
.wa-float{position:fixed;bottom:20px;right:20px;z-index:60;width:56px;height:56px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(0,0,0,.25);text-decoration:none}
.wa-float svg{width:30px;height:30px}

/* מצב מסך בלוח (archive.html?tv=1 / מסך מלא) — המעטפת לא מוצגת לעולם */
.tv-mode .tf-chrome,body.is-projecting .tf-chrome,:fullscreen .tf-chrome{display:none!important}

/* ---------- טאבלט ---------- */
@media (max-width:1080px){
  header.site nav.main{display:none}
  header.site .menu-btn{display:block}
  header.site .hdr-give{display:none}
  header.site nav.main.open{display:flex;flex-direction:column;position:absolute;top:100%;right:0;left:0;background:#fff;padding:12px 18px 18px;box-shadow:0 18px 30px rgba(11,15,58,.12);border-bottom:3px solid var(--gold)}
  header.site nav.main.open a{padding:12px 10px;border-bottom:1px solid var(--line);font-size:1.05rem;border-radius:0}
  header.site nav.main.open a[aria-current="page"]{box-shadow:none;background:var(--navy-soft)}
  header.site nav.main.open .nav-give{display:block;text-align:center;margin-top:12px;background:var(--gold);color:var(--navy-deep);font-weight:700;border-radius:999px;border-bottom:0}
  footer.site .cols{grid-template-columns:1fr 1fr}
}
@media (min-width:1081px){header.site nav.main .nav-give{display:none}}
@media (min-width:1081px) and (max-width:1200px){header.site nav.main a{padding:8px 5px}}
/* ---------- טלפון ---------- */
@media (max-width:640px){
  .tf-chrome .wrap{padding:0 16px}
  .topbar .tb-links a:not(.tb-portal){display:none}
  .topbar .tb-date{font-size:.8rem}
  .topbar .tb-greg{display:none}
  header.site .wrap{min-height:66px;gap:10px}
  header.site .brand img{width:46px;height:46px}
  header.site .brand b{font-size:1.12rem}
  header.site .brand span{font-size:.72rem}
  .page-head .wrap{padding-top:44px;padding-bottom:44px}
  footer.site .cols{grid-template-columns:1fr;gap:28px}
}

/* ===== "עקבו אחרינו" בפוטר (12/11/2026) ===== */
footer.site .fsocial{display:flex;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}
footer.site .fsocial small{color:rgba(255,255,255,.6);margin-inline-end:4px}
footer.site .fsocial a{width:38px;height:38px;border-radius:50%;border:1px solid rgba(212,175,55,.6);display:grid;place-items:center;color:var(--gold);transition:background .15s,color .15s}
footer.site .fsocial a:hover{background:var(--gold);color:var(--navy-deep)}
footer.site .fsocial svg{width:18px;height:18px}
