/* CSS משותף לרשת. מקור: Custom CSS & JS של קפריסין (13377, 13375, 13389), בלי כללים של מזהי ווידג'טים מסוימים.
   CSS של אתר אחד נכנס ל-mu-plugin של אותו אתר, לא לכאן. */
/* ===== dev-css (קפריסין): 74 כללים (16 כללים שתלויים במזהי ווידג'טים של אתר מסוים הוסרו) ===== */
.ast-separate-container .ast-archive-description, .ast-separate-container .ast-author-box {
    background-color: #eee;
    padding-bottom: 0;
    border-bottom: 0;
}
.ast-article-single figure, .ast-article-single img:not(figure img) {
    box-shadow: unset !important;
}
.search-results article a {
    color:white;
}
.ast-builder-menu-1 .menu-item > .menu-link {
    font-size: 0.875rem;
    padding-left: 1.5em;
    padding-right: 1.5em;
}
.site-below-header-wrap.ast-container {
    max-width: 100%;
}
/* ===== כותרת בנייד: תפריט מימין, לוגו במרכז, חיפוש משמאל (header-mobile-items ב-astra-network-defaults.php) =====
   Astra נותנת לכל צד לפחות את רוחב התוכן שלו, וכפתור "תפריט" רחב מכפתור החיפוש, ולכן הלוגו זז הצידה.
   כאן הצדדים תמיד שווים (הכפתור יכול לגלוש קצת לתוך הרווח), ללוגו שבמרכז אין ריווח צד (שנועד ללוגו שליד שם האתר),
   הכיתוב לא נשבר אות-אות, ומתחת ל-360px נשאר רק האייקון של התפריט. */
#ast-mobile-header .ast-builder-grid-row-has-sides.ast-grid-center-col-layout { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
/* ובדסקטופ אותו דבר: הריווח (16px מימין) הזיז את הלוגו 8px מהמרכז, והאייקונים משני צדיו לא היו במרחק שווה ממנו. */
:is(#ast-desktop-header, #ast-mobile-header) .ast-grid-section-center .site-logo-img { padding: 0; }
#ast-mobile-header .ast-builder-layout-element.ast-header-search { margin-inline: 0; } /* Astra מוסיפה 8px, והחיפוש היה רחוק מהקצה יותר מהתפריט. */
.ast-header-break-point .ast-mobile-menu-trigger-fill, .ast-header-break-point .mobile-menu-wrap { white-space: nowrap; }
@media (max-width: 359px) {
  #ast-mobile-header .menu-toggle .mobile-menu-wrap { display: none; }
}
/* אייקוני הרשתות בשורה העליונה בנייד: Astra מוסיפה לכל אלמנט ריווח צד של 10px, ולכן בין שני אלמנטים (למשל 2+2 בלונדוניסט)
   נוצר רווח כפול, והשורה לא ממורכזת. כאן כל האייקונים ברווח אחיד של 12px, כמו בתוך אלמנט אחד. */
#ast-mobile-header .ast-above-header [data-section^="section-hb-social-icons-"] { padding-inline: 0; }
#ast-mobile-header .ast-above-header .ast-grid-section-center { gap: 12px; }
/* אייקוני הרשתות: Font Awesome וצבעי מותג מ-inc/social-icons.php. כאן רק תגובה עדינה לריחוף. */
.ast-builder-social-element { transition: opacity .15s, transform .15s; }
.ast-builder-social-element:is(:hover, :focus-visible) { opacity: .8; transform: translateY(-1px); }
.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a {
    font-size: 16px;
    font-size: 1rem;
    line-height: 1em;
}
.ast-related-post-featured-section.post-has-thumb img {
    object-fit: cover;
    height: 100px;
}
/* תמונות בגריד הבלוג: Astra כופה יחס 16:9 על ה-img ומוסיפה cover רק ביחס "מותאם". עם <picture> של Imagify התמונה המקורית נמתחת. */
.ast-article-post .post-thumb-img-content img {
    object-fit: cover;
}
/* השורה הדביקה בצבע של שורת התפריט באתר (--net-menu-bar-bg מהגדרת Astra, functions.php). */
.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header {
    background: var(--net-menu-bar-bg, #060606) !important;
}
#cn-notice-text {
    margin-left: 5px;
}
.single-post .site-primary-footer-wrap {
    display: none !important;
}
/* העימוד בארכיונים ("הקודם 1 2 3 הבא"): בלי direction: ltr שהיה ב-CSS של קפריסין. הוא שם את החיצים בצד הפנימי,
   כשהם מצביעים על המילה. ב-RTL של Astra החץ בצד החיצוני ופונה החוצה, כמו "הקודם"/"הבא" בסוף כתבה (יאיר, 8.10.2026). */
/* הטמעת אינסטגרם בכתבה כופה min-width: 326px (בסגנון inline), ובמסך של 320px העמוד גולש הצידה. */
.entry-content .instagram-media { min-width: 0 !important; max-width: 100% !important; }
/* "הקודם" / "הבא" בסוף כתבה: Astra מציירת את החיצים לפי שמאל-לימין, ובעברית הם פנו פנימה, זה אל זה.
   כל חץ כבר יושב בצד החיצוני, ולכן מספיק להפוך אותו כדי שיפנה החוצה (שאולי, 8.10.2026). */
[dir="rtl"] .post-navigation .ast-post-nav svg { transform: scaleX(-1); }
/* בלוק Ad Inserter אחרי הפוטר (הווידג'ט הצף של Laya ודומיו) עטוף ב-margin: 8px 0. התוכן שלו צף (fixed), אז נשאר רק
   פס לבן של 8px מתחת לפוטר. מאפסים רק את השוליים, והווידג'ט עצמו נשאר. */
#page ~ .code-block { margin-block: 0 !important; }
/* טופס רב מסר מוסיף body:after{content:"a";font-size:0} (טעינה מוקדמת של הפונט שלו). האות בגודל 0, אבל היא פותחת שורת
   טקסט בגובה של שורה באתר (כ-26px), ונוצר פס לבן מתחת לפוטר אחרי שהטופס נטען. מחוץ לזרימה הפונט עדיין נטען. */
body::after { position: absolute; }
/* הרקע שמתחת לעמוד (נחשף ב"קפיצה" של גלילה בטרקפד או בטלפון, מעבר לסוף העמוד) בצבע השורה התחתונה של הפוטר,
   ולא לבן. הצבע מהגדרת Astra של האתר (--net-footer-end-bg, functions.php). ל-body יש רקע משלו מ-Astra (רקע האתר),
   ולכן העמוד עצמו לא משתנה. */
html { background-color: var(--net-footer-end-bg, #fff); }
/* תיאור הארכיון: מוסתר רק לפי הגדרת האתר (hide_archive_description, inc/archive-title.php). */
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single:not(.ast-related-post) {
    background: unset !important;
}
.ast-separate-container.ast-two-container #secondary .widget {
    padding: 0 !important;
}
.page .ast-single-post-featured-section {
    display: none;
}
.ast-separate-container .site-content .ast-single-post-featured-section + article {
    margin-top:0 !important;
}
@media (min-width: 993px) {
    .ast-left-sidebar #secondary {
        padding-left: 60px !important;
    }
}
.main-header-menu .menu-item, #astra-footer-menu .menu-item, .main-header-bar .ast-masthead-custom-menu-items {
    font-size:14px;
}
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu:last-child > .menu-item > .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link {
    border-bottom-width: 1px;
}
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link {
    border-bottom-width: 1px;
    border-color: #eaeaea;
    border-style: solid;
}
.home .ast-taxonomy-container a {
    color: white;
}
.blog article.post>div a, .archive article.post>div a {
    color: white;
}
.archive article .ast-taxonomy-container {
    display:none;
}
.home article .ast-taxonomy-container, .archive article .ast-taxonomy-container { 
    position: absolute;
    top: 0px;
    width: max-content;
    padding: 0px 10px;
    right: -24px;
}
.single-post .ast-single-entry-banner {
    display:none;
    height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
body.archive .ast-archive-description {
    text-align: right !important;
}
#cn-close-notice {
    display:none;
}
.differentiated-container {
    width:100%;
    text-align: center;
    padding: 20px 0;
    background: #d9d9d9;
}
.differentiated-container .main-header-bar {
    background: #d9d9d9;
    padding: 0;
}
html[lang="he-IL"] .differentiated-container .ast-terms-link:before {
    content: 'קטגוריה: ';
}
html[lang="en-US"] .differentiated-container .ast-terms-link:before {
    content: 'Category: ';
}
.differentiated-container {
    text-align: center;
    padding: 20px 0;
}
.single-post .ast-single-entry-banner .entry-title {
    text-shadow: 2px 2px #adadad;
}
.single-post .ast-single-entry-banner .ast-terms-link a {
    text-shadow: 2px 2px #adadad;
}
.ast-single-entry-banner[data-post-type="post"] .ast-container {
    text-align-last: center;
    background: #ffffffab;
    width: 100%;
}
.single-post .ast-breadcrumbs-wrapper {
    text-align: center;
    margin-bottom: .3em;
}
@media(max-width:500px) {
    .site-primary-footer-wrap{
        padding:0 20px;
    }
    .site-primary-footer-wrap .site-footer-section{
        margin: 20px 0;
    }
    .ast-archive-description h1{
        font-weight: 400 !important;
        font-size: 1.875rem;
        line-height: 1em;
        text-transform: capitalize;
        padding-right: 30PX;
    }
    /* כותרת החיפוש ממורכזת (בקטגוריות היא לימין), ולכן הריווח בשני הצדדים. אחרת היא זזה 15px שמאלה. */
    .search .ast-archive-description h1{
        padding-left: 30px;
    }
    .ast-archive-description {
        background-color: #ffffff !important;
        max-width: 100% !important;
        padding: 20px 0 !important;
    }
    .ast-separate-container.ast-two-container #secondary{
        padding: 0 10px;
    }
    .site-footer-below-section-1.site-footer-section.site-footer-section-1{
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
    }
}
article.ast-article-post .ast-blog-content,
article.ast-article-post .entry-header {
    position: static !important;
}
.home article .ast-taxonomy-container, 
.archive article .ast-taxonomy-container,
.search-results article .ast-taxonomy-container {
    position: absolute !important;
    top: 0px !important; 
    right: -24px !important; 
    z-index: 4 !important; 
}
.archive article.ast-article-post > div,
.search-results article.ast-article-post > div {
    border-radius: 15px !important; 
    overflow: hidden !important; 
}
.home article .ast-taxonomy-container, 
.archive article .ast-taxonomy-container, 
.search-results article .ast-taxonomy-container {
    padding: 5px 15px !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}
.home article .ast-taxonomy-container a, 
.archive article .ast-taxonomy-container a, 
.search-results article .ast-taxonomy-container a {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.search-results article.type-page,
body.search-results article.page {
    background: transparent !important;
    border: none !important;
}
body.search-results article.type-page > div,
body.search-results article.type-page .ast-article-inner,
body.search-results article.page > div,
body.search-results article.page .ast-article-inner {
    border: 2px solid #ADD8E6 !important;
    background-color: #ADD8E6 !important;
    background: #ADD8E6 !important;
    border-radius: 15px !important; 
}
body.search-results article.type-page,
body.search-results article.page {
    background: transparent !important;
    border: none !important;
}
body.search-results article.type-page .ast-article-inner,
body.search-results article.page .ast-article-inner {
    background-color: #359bed !important;
    background-image: none !important;
    background: #359bed !important;
    border: 2px solid #359bed !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}
.search-results article.type-page > div,
.search-results article.page > div,
.search-results article.page .ast-post-format- {
    background-color: #359bed !important;
    border: 2px solid #359bed !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}
.search-results article.type-page .entry-title a,
.search-results article.type-page .entry-content p,
.search-results article.page .entry-title a,
.search-results article.page .entry-content p {
    color: #ffffff !important;
}
body.search-results .site-main {
    padding-bottom: 120px !important;
}
body.search-results article .ast-excerpt-container p,
body.search-results article .entry-content p,
body.search-results article .entry-content {
    color: #ffffff !important;
}
/* ===== טופס רב מסר (Rav Messer) =====
   הטופס מעוצב ב-Rav כ"טופס אופקי" ברוחב 850px, והסקריפט שלו כופה את זה בבוררים עם ספציפיות קיצונית ו-!important.
   (1) הטופס לא יוצא מהאזור שלו: בלי זה העמוד גולש הצידה בנייד (עד 46px) ובטאבלט (עד 290px, בשורת הפוטר),
       וכפתור הנגישות הקבוע נדחק מחוץ למסך.
   (2) כשהאזור של הטופס צר מ-600px (נייד, טאבלט, עמודת התוכן) השדות נערמים זה מעל זה, כמו באתר הקודם.
       `html:not(#rav-narrow)` נותן ספציפיות של ID, שגוברת על הבוררים של Rav. בפוטר בדסקטופ הטופס נשאר אופקי.
   (3) בביקור חוזר, כשהקבצים של Rav במטמון, הוא עובר למצב אחר: עיצוב נייד ברוחב 352px שמוקטן ב-transform: scale
       עם !important בסגנון inline. בעין הטופס נכנס, אבל רוחב הפריסה המקורי דוחף את העמוד הצידה. חיתוך אופקי סביב
       הטופס (overflow-x: clip) עוצר את זה בלי לשנות את מה שרואים, ובלי ליצור אזור גלילה.
   (לונדוניסט 10.2026. מחליף את הכלל של קפריסין, שמתח כל שדה ל-100% בתוך שורת ה-flex של Rav והצר את השדות ל-16px.) */
.site-footer .site-footer-section { min-width: 0; }
.rav-form-script,
.site-footer .ast-builder-html-element:has([class*="RDUI_"]) { container: ravform / inline-size; overflow-x: clip; }
[class*="RDUI_"],
[class*="RDUI_"] form,
[class*="RDUI_"] .multyfields,
[class*="RDUI_"] .inner_multyfields,
[class*="RDUI_"] .overridestyle,
[class*="RDUI_"] .multyinner,
[class*="RDUI_"] .field,
[class*="RDUI_"] .confirmation,
[class*="RDUI_"] .submitbuttonbox,
[class*="RDUI_"] input[type="text"],
[class*="RDUI_"] input[type="email"] { max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
[class*="RDUI_"] .inner_bodyarea_multyelements { flex-wrap: wrap; }
@container ravform (max-width: 600px) {
  html:not(#rav-narrow) body [class*="RDUI_"] form.form,
  html:not(#rav-narrow) body [class*="RDUI_"] .inner_multyfields { display: block !important; }
  html:not(#rav-narrow) body [class*="RDUI_"] form.form > div,
  html:not(#rav-narrow) body [class*="RDUI_"] .inner_multyfields > .overridestyle,
  html:not(#rav-narrow) body [class*="RDUI_"] .multyfields .multyinner,
  html:not(#rav-narrow) body [class*="RDUI_"] .multyfields .field,
  html:not(#rav-narrow) body [class*="RDUI_"] .multyfields input[type="text"],
  html:not(#rav-narrow) body [class*="RDUI_"] .multyfields input[type="email"],
  html:not(#rav-narrow) body [class*="RDUI_"] .submitbuttonbox,
  html:not(#rav-narrow) body [class*="RDUI_"] .submitbuttonbox button,
  html:not(#rav-narrow) body [class*="RDUI_"] .submitbuttonbox input[type="submit"] {
    width: 100% !important; max-width: 100% !important; float: none !important; margin-inline: 0 !important;
  }
  html:not(#rav-narrow) body [class*="RDUI_"] .inner_multyfields > .overridestyle:not([style*="none"]) { display: block !important; }
  html:not(#rav-narrow) body [class*="RDUI_"] .multyfields .field { margin-bottom: 10px !important; }
  html:not(#rav-narrow) body [class*="RDUI_"] .confirmation { margin-block: 2px 12px !important; }
  html:not(#rav-narrow) body [class*="RDUI_"] :is(.checkbox-container, .fieldtype_checkbox) { display: flex !important; align-items: flex-start !important; }
}

/* ===== שורת ווידג'טים ריקה בפוטר =====
   בעמודים שבהם הווידג'טים של הפוטר מוסתרים (footer_widgets_on), Astra עדיין מדפיסה 4 תיבות ריקות, והמסגרת של
   aside.footer-widget-area הופכת אותן ל-4 קווים בתחתית העמוד. שורה בלי אף ווידג'ט לא מוצגת. (לונדוניסט 10.2026) */
.site-primary-footer-wrap:not(:has(.widget)) { display: none; }

/* ===== ווידג'טים בסרגל הצד ובפוטר: כרטיס =====
   ברשת כל ווידג'ט הוא באנר (תמונה בקישור) או רשימת קישורים (<a> ו-<br>, כמו "הכל על").
   כותרת שחורה ברוחב מלא (מקפריסין), גוף עם ריווח 16px, באנר ממורכז, ורשימה עם קווים מפרידים.
   קודם: מסגרת שחורה בלי ריווח, הקישורים צמודים לקו ובנייד פס הכותרת "צף" בתוך המסגרת. (לונדוניסט 10.2026) */
.widget {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.site-footer .footer-widget-area .widget + .widget { margin-top: 24px; }
/* גודל אחד לכותרת בסרגל ובפוטר (Astra: 26px בסרגל, ובפוטר יצא 17px). #secondary גובר על ההגדרה של Astra. */
.widget-title,
#secondary .widget-title {
  margin: 0;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.widget > .widget-title + * {
  margin: 0;
  padding: 16px;
}
/* באנר */
.widget .textwidget :is(p, figure) { margin: 0; text-align: center; }
/* figure.aligncenter של וורדפרס מוצג כטבלה ברוחב התמונה, וממורכז רק בזכות margin auto, שה-margin:0 למעלה מבטל.
   בלי זה הבאנר נצמד לימין (מבצעי מלונות: 40px ריקים משמאל). */
.widget .textwidget figure { display: block; width: auto; }
/* בדסקטופ (סרגל צד ופוטר) כל הבאנרים ברוחב הכרטיס, והגובה לפי היחס של כל אחד: טור אחיד (יאיר, 7.10.2026).
   קובץ שצר מהכרטיס מוגדל: פספורטכארד 160px → 256px. כדאי לבקש ממנו באנר ברוחב 300px לפחות.
   בנייד ובטאבלט הכרטיס רחב, והגדלה הייתה מטשטשת ומאריכה (פספורטכארד כ-1,250px), ולכן הבאנרים בגודלם, ממורכזים. */
@media (min-width: 922px) {
  :is(#secondary, .site-footer) .widget .textwidget img { width: 100%; }
}
.widget .textwidget :is(p, figure) + :is(p, figure) { margin-top: 12px; }
.widget .textwidget a:has(img) { display: block; }
.widget .textwidget img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
/* רשימת קישורים */
.widget > .widget-title + .textwidget:has(> a:not(:has(img))) { padding-block: 4px; }
.widget .textwidget > br { display: none; }
.widget .textwidget > a:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #ececec;
  color: #222;
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s;
}
.widget .textwidget > a:not(:has(img)):last-of-type { border-bottom: 0; }
/* החץ מצויר בגבולות ולא בתו "‹": בעברית הדפדפן מראה תו כזה הפוך (›), והחצים פנו אל הטקסט (שאולי, 8.10.2026). */
.widget .textwidget > a:not(:has(img))::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-inline-end: 4px;
  border-left: 1.5px solid #a3a3a3;
  border-bottom: 1.5px solid #a3a3a3;
  transform: rotate(45deg);
  transition: transform .15s, border-color .15s;
}
.widget .textwidget > a:not(:has(img)):is(:hover, :focus-visible) { color: var(--ast-global-color-0, #046bd2); }
.widget .textwidget > a:not(:has(img)):is(:hover, :focus-visible)::after {
  border-color: var(--ast-global-color-0, #046bd2);
  transform: translateX(-3px) rotate(45deg);
}
/* פוטר בטאבלט: 2 עמודות עם שוליים. ב-4 עמודות הכרטיסים צרים (154px) ונוגעים בקצה המסך. */
@media (min-width: 545px) and (max-width: 921px) {
  .site-primary-footer-wrap { padding-inline: 24px; }
  .site-primary-footer-wrap.ast-builder-grid-row-tablet-4-equal .ast-builder-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ווידג'טים מתחת לתוכן בתבנית "Full-width, with Widgets" (inc/sidebars.php, למשל עמודי הסיורים): בשורה, כמו בפוטר.
   בלי זה הם נערמו אחד מתחת לשני ברוחב מלא (יאיר, 12.10.2026, /tours/pubtours/). בדסקטופ כמה שנכנסים (4 בלונדוניסט),
   בטאבלט 2, בנייד 1. הבאנרים ממלאים את רוחב הכרטיס, כמו בסרגל ובפוטר. */
.network-full-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
  margin-block: 2em;
}
.network-full-widgets .widget { margin: 0; }
@media (min-width: 922px) {
  .network-full-widgets .widget .textwidget img { width: 100%; }
}
@media (max-width: 921px) {
  .network-full-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 544px) {
  .network-full-widgets { grid-template-columns: minmax(0, 1fr); }
}

/* ===== קרוסלת פוסטים של Spectra =====
   החצים יושבים 45px מחוץ לבלוק. ב-993 עד 1100px (דסקטופ עם סרגל, ומרווח צד של 20px בלבד) החץ השמאלי יוצא מהמסך ב-25px
   והדף גולש הצידה. מקרבים אותם ל-12px מהקצה, ברווח שבין הקרוסלה לרשימה. (לונדוניסט, /to-do/museums-in-london/) */
@media (max-width: 1100px) {
  /* [dir] וארבע מחלקות: גובר על הכלל של Spectra ל-RTL ([dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid). */
  [dir] .wp-block-uagb-post-carousel.uagb-post__arrow-outside.uagb-post-grid .slick-prev { left: -12px; }
  [dir] .wp-block-uagb-post-carousel.uagb-post__arrow-outside.uagb-post-grid .slick-next { right: -12px; }
}

/* ===== עמוד 404 (template-parts/404/404-layout.php) =====
   פתיח עם קוד 404 גדול וחיפוש, כרטיסי כתבות אחרונות עם תמונה, ונושאים ותגיות ככפתורים. בנייד הכרטיסים אופקיים. */
.n404 {
  --n404-accent: var(--ast-global-color-0, #046bd2);
  --n404-ink: var(--ast-global-color-2, #1e293b);
  --n404-muted: #5f6b7a;
  --n404-line: #e2e8ef;
  --n404-soft: #eef5fd;
  max-width: 1080px; margin-inline: auto; text-align: start;
  display: grid; gap: 44px; padding-block: 8px 24px;
}
.n404-hero {
  text-align: center; padding: 36px 20px 30px; border-radius: 18px;
  background: linear-gradient(180deg, var(--n404-soft), #fff 85%);
  border: 1px solid var(--n404-line);
}
.n404-code {
  font-size: clamp(76px, 14vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -2px;
  color: color-mix(in srgb, var(--n404-accent) 24%, transparent); margin-bottom: 6px;
}
.n404-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; color: var(--n404-ink); margin: 0 0 8px; line-height: 1.3; }
.n404-lead { color: var(--n404-muted); font-size: 17px; max-width: 46ch; margin: 0 auto; }
.n404-search {
  display: flex; gap: 6px; max-width: 560px; margin: 22px auto 0; padding: 6px;
  background: #fff; border: 1px solid var(--n404-line); border-radius: 999px;
  box-shadow: 0 4px 18px rgba(15, 35, 70, .06);
}
.n404-search input {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 10px 16px !important; font-size: 16px; color: var(--n404-ink);
}
.n404-search input:focus { outline: none; }
.n404-search:focus-within { border-color: var(--n404-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--n404-accent) 18%, transparent); }
.n404-search button {
  flex: none; border: 0; border-radius: 999px; padding: 10px 22px; font-size: 16px; font-weight: 600;
  background: var(--n404-accent); color: #fff; cursor: pointer;
}
.n404-search button:hover { filter: brightness(1.08); }
.n404-home { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--n404-accent); text-decoration: none; }
.n404-home:hover { text-decoration: underline; }
.n404-h2 { font-size: 20px; font-weight: 700; color: var(--n404-ink); margin: 0 0 14px; }
.n404-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.n404-post a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--n404-ink);
  background: #fff; border: 1px solid var(--n404-line); border-radius: 14px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.n404-post a:hover { box-shadow: 0 10px 26px rgba(15, 35, 70, .10); transform: translateY(-2px); }
.n404-thumb { display: block; aspect-ratio: 16 / 10; background: var(--n404-soft); overflow: hidden; }
.n404-thumb img, .n404-thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.n404-post-body { display: grid; gap: 6px; padding: 12px 14px 16px; }
.n404-post-cat { font-size: 12px; font-weight: 700; color: var(--n404-accent); }
.n404-post-title { font-size: 16px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n404-browse { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
.n404-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.n404-chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--n404-line); background: #fff; color: var(--n404-ink); text-decoration: none; font-size: 15px;
  transition: border-color .15s, color .15s;
}
.n404-chips a:hover { border-color: var(--n404-accent); color: var(--n404-accent); }
.n404-count { font-size: 12px; font-weight: 700; color: var(--n404-accent); background: var(--n404-soft); border-radius: 999px; padding: 1px 8px; }
.n404-chips-light a { background: #f5f7fa; border-color: transparent; font-size: 14px; padding: 6px 12px; }
.n404-archive { margin-top: 20px; display: grid; gap: 6px; max-width: 320px; }
.n404-archive label { font-size: 14px; color: var(--n404-muted); }
.n404-archive select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--n404-line); border-radius: 10px;
  background-color: #fff; color: var(--n404-ink); font: inherit;
}
@media (max-width: 921px) {
  .n404-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n404-browse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .n404 { gap: 34px; }
  .n404-hero { padding: 26px 16px 24px; }
  .n404-search button { padding: 10px 16px; }
  .n404-posts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .n404-post a { flex-direction: row; align-items: stretch; }
  .n404-thumb { flex: none; width: 112px; aspect-ratio: auto; }
  .n404-post-body { padding: 10px 12px; align-content: center; }
  .n404-post-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .n404-post a { transition: none; } .n404-post a:hover { transform: none; } }

/* ===== כפתור חיפוש בכותרת הנייד =====
   החיפוש כבר נמצא בכותרת הנייד של אסטרה, אבל האייקון לבן (מותאם לפס התפריט השחור בדסקטופ) על רקע לבן, ולכן לא נראה.
   כאן הוא מעוצב כמו כפתור "תפריט" שלידו: ריבוע כחול עם אייקון לבן. (החלטת יאיר, 7.10.2026: חיפוש בנייד בכל הרשת) */
#ast-mobile-header .ast-header-search .astra-search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 49px; height: 49px; color: #fff !important;
  background: var(--ast-global-color-0, #046bd2); border-radius: 2px;
}
#ast-mobile-header .ast-header-search .astra-search-icon svg { fill: currentColor !important; width: 20px; height: 20px; }
#ast-mobile-header .ast-header-search { margin-inline-end: 8px; }

/* ===== כפתור הנגישות (One Click Accessibility) בנייד ובטאבלט =====
   עד 921px אסטרה מציגה כותרת נייד עם כפתור "תפריט" בצד שמאל, בגובה 56-126px, והכפתור של התוסף (top 80/100px, שמאל)
   הסתיר את התחילית "תפ". מורידים אותו אל מתחת לכותרת (שנגמרת ב-162-204px). (לונדוניסט 10.2026) */
@media (max-width: 921px) {
  html body #pojo-a11y-toolbar { top: 215px !important; }
}

/* ===== ציר זמן של Spectra =====
   בנייד, לפני שהגולש גולל אליהם, הסמנים של ציר הזמן יושבים בקצה העמודה, ועמודת התוכן של אסטרה צרה יותר מזו של
   התבנית הקודמת. התוצאה: העמוד גלש הצידה ב-16 עד 27 פיקסלים (/show-2024/, ברוחב 390 ומטה). חיתוך אופקי בגבולות הבלוק. (לונדוניסט 10.2026) */
.entry-content .uagb-timeline__outer-wrap { overflow-x: clip; }

/* ===== עמוד כותב =====
   הביו מגיע עם ירידות שורה, ו-Astra מדפיסה אותו בפסקה אחת: pre-line שומר על הפסקאות, כמו באתר הקודם.
   קישורי הכותב (inc/author.php) בשורה, עם רווח ביניהם: בלי זה "אתר" ו"פייסבוק" נדבקים ל"אתרפייסבוק". */
.ast-author-bio > p { white-space: pre-line; line-height: 1.6; }
.network-author-social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }

/* ===== שם המחבר בראש הכתבה: 5 כללים (0 כללים שתלויים במזהי ווידג'טים של אתר מסוים הוסרו) ===== */
.differentiated-container .post-author-top {
    display: inline;
    font-weight: 500;
    white-space: nowrap;
}
.differentiated-container .post-author-top h4 {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.differentiated-container .post-author-top a {
    display: inline;
    text-decoration: none;
    color: inherit;
}
.differentiated-container .post-author-top::before {
    content: " | ✍️ מאת: ";
    opacity: 0.7;
}
.single-post .ast-author-meta {
    display: none;
}

/* ===== יישור alignfull/alignwide: 15 כללים (0 כללים שתלויים במזהי ווידג'טים של אתר מסוים הוסרו) ===== */
.ast-no-sidebar .entry-content .alignfull {
                margin-left: calc( -50vw + 50%);
                margin-right: calc( -50vw + 50%);
                max-width: 100vw;
                width: 100vw;
            }
.ast-no-sidebar .entry-content .alignwide {
                margin-left: calc(-41vw + 50%);
                margin-right: calc(-41vw + 50%);
                max-width: unset;
                width: unset;
            }
.ast-no-sidebar .entry-content .alignfull .alignfull,.ast-no-sidebar .entry-content .alignfull .alignwide,.ast-no-sidebar .entry-content .alignwide .alignfull,.ast-no-sidebar .entry-content .alignwide .alignwide,.ast-no-sidebar .entry-content .wp-block-column .alignfull,.ast-no-sidebar .entry-content .wp-block-column .alignwide {
                width: 100%;
                margin-left: auto;
                margin-right: auto;
            }
.wp-block-gallery,.blocks-gallery-grid {
                margin: 0;
            }
.wp-block-separator {
                max-width: 100px;
            }
.wp-block-separator.is-style-wide,.wp-block-separator.is-style-dots {
                max-width: none;
            }
.entry-content .has-2-columns .wp-block-column:first-child {
                padding-right: 10px;
            }
.entry-content .has-2-columns .wp-block-column:last-child {
                padding-left: 10px;
            }
@media (max-width: 782px) {
                .entry-content .wp-block-columns .wp-block-column {
                    flex-basis: 100%;
                }

                .entry-content .has-2-columns .wp-block-column:first-child {
                    padding-right: 0;
                }

                .entry-content .has-2-columns .wp-block-column:last-child {
                    padding-left: 0;
                }
            }
body .entry-content .wp-block-latest-posts {
                margin-left: 0;
            }
body .entry-content .wp-block-latest-posts li {
                list-style: none;
            }
.ast-no-sidebar .ast-container .entry-content .wp-block-latest-posts {
                margin-left: 0;
            }
.ast-header-break-point .entry-content .alignwide {
                margin-left: auto;
                margin-right: auto;
            }
.entry-content .blocks-gallery-item img {
                margin-bottom: auto;
            }
.wp-block-pullquote {
                border-top: 4px solid #555d66;
                border-bottom: 4px solid #555d66;
                color: #40464d;
            }


/* אסטרה מוסיף ריפוד (48px) לכל בלוק Group/Cover בשורש התוכן. ב-Surfarama לא היה, ולכן קווים מפרידים וקבוצות ריקות נראו
   כרווח של 138px. רק בלי רקע ומסגרת (שם הריפוד הוא חלק מהעיצוב). לונדוניסט, 21.10: /events/, /changing/. */
.entry-content > .wp-block-group:not(.has-background):not(.has-border-color):not([class*="has-"][class*="-background-color"]) {
	padding: 0;
}

/* סרטון שלא נטען (נמחק או פרטי ב-YouTube): וורדפרס משאיר את הכתובת כטקסט בתוך מסגרת ששומרת מקום 16:9 ב-::before.
   מסירים רק את המקום השמור, והכתובת נשארת גלויה כדי שאפשר יהיה לזהות ולהחליף. לונדוניסט, 21.10: 27 עמודים. */
.wp-block-embed .wp-block-embed__wrapper:not(:has(*))::before {
	display: none !important;
}

/* שורת התפריט הדביקה (Astra Pro) נשארת מעל תוכן אחר בכותרת. בלוק Ad Inserter שנכנס אחרי התפריט (בתוך #masthead)
   צויר מעליה בגלילה, כי לשורה הקבועה אין z-index. לונדוניסט, 21.10. */
#ast-desktop-header .ast-below-header-bar {
	position: relative;
	z-index: 30;
}

/* כותרת ארכיון או חיפוש עם מילה ארוכה (למשל כתובת שחיפשו) נשברת, במקום להרחיב את העמוד בנייד (לונדוניסט, 8.11.2026). */
.ast-archive-description .page-title, .entry-title { overflow-wrap: anywhere; }
/* טבלה שהוכנסה כ-HTML (לא בבלוק טבלה) רחבה מהמסך בנייד ומרחיבה את כל העמוד. בנייד היא נגללת בתוך עצמה (לונדוניסט, 8.11.2026). */
@media (max-width: 768px) {
	.entry-content table:not(.wp-block-table table) { display: block; max-width: 100%; overflow-x: auto; }
}
/* רשת ביטחון בנייד: מודעות צד שלישי (728px, adscale) מוזרקות מדי פעם ומרחיבות את העמוד, והוא "קופץ" הצידה. clip ולא hidden, כדי לא לשבור את התפריט הדביק (לונדוניסט, 8.11.2026). */
@media (max-width: 768px) {
	html, body { overflow-x: clip; }
}
/* מודעת הכותרת (Ad Inserter, "After HTML element" על #masthead): #page הוא flex בעמודה, ו-margin:auto של הבלוק מכווץ אותו לרוחב 0, ואז AdSense לא מציג כלום. */
#masthead + .code-block { width: 100%; }
