/* עיצוב לפי קובץ הפיגמה של המעצבות (שבוע הדמוקרטיה · "פיתוח · Dev", 12.11.2026).
   מסך 1440: רוחב תוכן 1312, ריווח צד 64, אזורים 96. כותרות COLBO: 48 / 32 / 24.
   טקסט Simpler: 18/1.4, 16/1.6, 14/1.5, 12/1.4. קווים 1px #818ed4. פינות ישרות. */

/* ===== בסיס ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--muted); background: #fff; font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: 0; }
h2 { font-size: 48px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.05; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: calc(1312px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.lead { font-size: 18px; line-height: 1.4; max-width: 760px; margin: 16px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.demo-banner { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 5px var(--gutter); }
.link-btn { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 700; }
.link-btn:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* כותרת עם פס הדגשה: קו תחתון בעובי 30% מגובה האות, בלי דילוג על אותיות */
.hl { width: fit-content; max-width: 100%; text-decoration: underline var(--pink) solid; text-decoration-thickness: .3em; text-decoration-skip-ink: none; text-underline-offset: -.02em; }
.hl-light { text-decoration-color: var(--brand-image); }

/* ===== כותרות בגופן של המעצבים כתמונות מהפיגמה =====
   בעברית מוצגת התמונה (.ti) והטקסט (.tt) נשאר לקוראי מסך; בערבית מוצג הטקסט. */
.ti { display: block; max-width: 100%; height: auto; }
html:not([lang="ar"]) .tt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[lang="ar"] .ti { display: none; }
/* כותרת שנערכה בפלטפורמת הניהול: הטקסט במקום התמונה */
.ti-off > .ti { display: none !important; }
html:not([lang="ar"]) .ti-off > .tt { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
html:not([lang="ar"]) .hl.ti-off { text-decoration: underline var(--pink) solid; text-decoration-thickness: .3em; text-decoration-skip-ink: none; }
html:not([lang="ar"]) .hl-light.ti-off { text-decoration-color: var(--brand-image); }
html:not([lang="ar"]) .hl:has(> .ti) { text-decoration: none; }
html:not([lang="ar"]) h2 > .ti, html:not([lang="ar"]) h1 > .ti { margin-block: 9px 7px; }
html:not([lang="ar"]) .model-tables h3 > .ti { margin-block: 6px 5px; }
html:not([lang="ar"]) .model-sub > .ti { margin-block: 2px; }
html:not([lang="ar"]) .brand > .ti { margin-block: 6px; }
html:not([lang="ar"]) .footer-name > .ti { margin-block: 8px 6px; }
html:not([lang="ar"]) .step-n { height: 86px; display: flex; align-items: flex-end; }
html:not([lang="ar"]) .axis-tile b { display: flex; justify-content: center; align-items: center; min-height: 25px; }

/* ===== כפתורים: M = 48, S = 32, פינות ישרות ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 0; padding: 0 24px; font-weight: 700; font-size: 16px; line-height: 1.5;
  text-decoration: none; cursor: pointer; background: none; transition: background .15s, color .15s;
  min-height: 48px; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--pink); color: var(--ink); } /* בפיגמה: ריחוף ורוד, טקסט ink */
/* קישור שנפתח בדף חיצוני: חץ למעלה־שמאלה 16 (Icon / Arrow up-left) אחרי הטקסט */
.btn.ext::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url(/img/icons/arrow-ul.svg) center / 16px no-repeat; mask: url(/img/icons/arrow-ul.svg) center / 16px no-repeat; }
html[dir="ltr"] .btn.ext::after { transform: scaleX(-1); }
.btn-soft { background: var(--brand-tint); color: var(--primary); }
.btn-soft:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--brand-tint); }
.btn-yellow { background: var(--yellow); color: var(--link); }
.btn-yellow:hover { background: var(--pink); color: var(--ink); }
.btn-ghost { color: var(--link); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-lg { padding: 0 24px; min-height: 48px; }
.btn-sm { padding: 0 12px; font-size: 14px; min-height: 32px; }
.btn[disabled] { background: var(--brand-image); color: #fff; cursor: not-allowed; }
.icon-btn { border: 0; background: none; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 16px; color: var(--ink); }
.icon-btn:hover { background: var(--brand-tint); }

/* ===== סרגל עליון: כחול, 72, קו תחתון 1px ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--primary); border-bottom: 1px solid var(--divider); }
.topbar-in { display: flex; align-items: center; min-height: 71px; }
.brand { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 32px; line-height: 1.1; color: #fff; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 32px; margin-inline-start: 56px; }
.nav a { color: #fff; text-decoration: none; font-size: 16px; line-height: 1.6; padding: 2px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.topbar-reg { min-height: 32px; }
.week-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgb(255 255 255 / 12%); color: #fff; padding: 0 12px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 32px; }
.week-btn:hover { background: rgb(255 255 255 / 22%); }
.badge { min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding-inline: 4px; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.3); } }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px; color: #fff; }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-switch:hover { background: rgb(255 255 255 / 12%); }
.nav-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; margin: auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-extra { display: none; }
.footer-by .fb-label { display: none; }
@media (max-width: 1100px) {
  /* Dev / Header · Mobile: 56 גובה, ריווח 20, לוגו 24 וכפתור תפריט 40 משמאלו. רישום ושפה עוברים לתפריט */
  .topbar-in { min-height: 55px; padding-inline: 20px; }
  .brand > .ti { width: 175px; }
  html:not([lang="ar"]) .brand > .ti { margin-block: 4px; }
  .brand { font-size: 24px; }
  .topbar-actions { margin-inline-start: 4px; gap: 0; }
  .topbar-reg, .lang-switch, .week-btn { display: none !important; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { width: 18px; }
  .nav-extra { display: block; }
  .nav .nav-extra:first-of-type { border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 16px; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; background: var(--primary); border-bottom: 1px solid var(--divider); padding: 8px var(--gutter) 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; }
  .topbar-actions { gap: 10px; }
}


/* ===== פתיחה: האיור של המעצבות (1230×558) על רקע כחול, 640 גובה ב-1440 ===== */
.hero { background: var(--primary); }
.hero-stage { position: relative; container-type: inline-size; width: min(1230px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: clamp(12px, 2.85vw, 41px); }
.hero-art { width: 100%; height: auto; }
/* בעברית הכותרת כבר חלק מהאיור, והטקסט נשאר לקוראי מסך ולמנועי חיפוש */
.hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-title h1 { font-size: inherit; color: inherit; }
/* בעברית ובערבית אותו איור פתיחה בדיוק (הכותרת חלק מהאיור) */
/* ספירה לאחור (בקשת תמר בפגישה 1): פס בתחתית אזור הפתיחה, בצבעי האיור */
.countdown { text-align: center; color: var(--cream); padding: 0 var(--gutter) clamp(20px, 2.6vw, 36px); margin-top: calc(-1 * clamp(4px, 1.4vw, 20px)); }
.countdown-label { font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--on-dark); margin: 0 0 6px; }
.countdown-nums { display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px); align-items: baseline; flex-wrap: wrap; }
.countdown-nums > span { display: inline-flex; align-items: baseline; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.countdown-nums b { font-family: var(--font-display); font-weight: var(--fw-display); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; color: var(--pink); font-variant-numeric: tabular-nums lining-nums; min-width: 1.3em; }
.countdown.live .countdown-nums { display: none; }
.countdown.live .countdown-label { font-family: var(--font-display); font-weight: var(--fw-display); font-size: clamp(24px, 2.6vw, 32px); color: var(--pink); }

/* ===== אודות: טקסט מימין, איור 500 משמאל, רווח 64 ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 64px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.split-art { width: 100%; height: auto; }
.prose p { font-size: 18px; line-height: 1.4; margin-bottom: 16px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose b { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 24px; line-height: 1.05; color: var(--ink); }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-art { max-width: 460px; margin-inline: auto; order: 2; } }

/* ===== חמישה צעדים: רקע קרם, 5 עמודות שוות, מספרים 96 ===== */
.steps { list-style: none; padding: 24px 0 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
/* מספרי הצעדים: הגוון של הפיגמה (#8d9cfe) כהה מעט, כדי לעבור ניגודיות 3:1 על הרקע הקרם (נגישות) */
.step-n { font-family: var(--font-display); font-size: 96px; font-weight: 700; line-height: .9; color: #7986da; font-variant-numeric: lining-nums; }
.steps p { font-size: 18px; line-height: 1.4; margin: 0; color: var(--muted); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 16px 0; } .step-n { font-size: 72px; } }

/* ===== מודל מארגן: עמודה 420 מימין, טבלאות משמאל ===== */
#model { padding-block: 80px; }
.model { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: stretch; }
.model-side { display: flex; flex-direction: column; gap: 16px; }
.model-sub { font-family: var(--font-display); font-size: 32px; font-weight: var(--fw-display); color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; }
.small-prose p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; color: var(--muted); }
.small-prose p:last-child { margin-bottom: 0; }
.model-art { width: 100%; flex: none; height: auto; object-fit: cover; aspect-ratio: 420 / 348; margin-top: auto; }
.model-tables { display: flex; flex-direction: column; }
.model-tables h3 { font-size: 32px; line-height: 1.1; }
.dim-intro { font-weight: 700; font-size: 16px; line-height: 1.5; margin: 8px 0 8px; color: var(--muted); }
.dim-table + h3 { margin-top: 48px; }
.dim-table { margin: 0; }
.dim-table > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--divider); padding: 12px 0; }
.dim-table dt { font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.5; }
.dim-table dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1000px) { .model { grid-template-columns: 1fr; } .model-art { max-width: 420px; } }
@media (max-width: 560px) { .dim-table > div { grid-template-columns: 1fr; gap: 4px; } }

/* ===== בונים את התכנית מתוך הקטלוג: רקע surface-2 ===== */
#catalog > .wrap > .hl { color: var(--primary); }
#catalog .lead { font-size: 16px; line-height: 1.6; margin: 12px 0 40px; }
.axis-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.axis-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; }
.axis-tile .ic { width: 108px; height: 108px; border-radius: 999px; background: #fff; display: grid; place-items: center; color: var(--primary); transition: background .15s; }
.axis-tile .ic svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.axis-tile:hover .ic { background: var(--brand-tint); }
.axis-tile b { font-family: var(--font-display); font-size: 24px; font-weight: var(--fw-display); color: var(--ink); line-height: 1.05; }
.axis-tile > span:not(.ic) { font-size: 14px; line-height: 1.5; color: var(--muted); }
#featured-cards { border-top: 1px solid var(--divider); padding-top: 48px; }
@media (max-width: 1000px) { .axis-tiles { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 560px) { .axis-tiles { grid-template-columns: repeat(2, 1fr); } .axis-tile .ic { width: 84px; height: 84px; } .axis-tile b { font-size: 19px; } }

/* ===== כרטיס פעילות 313×399 (בעיצוב 320): ריווח 20/20/16, תמונה 200, כפתור 48 ===== */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 431px; }
.card:focus { outline: none; }
.card-media { position: relative; height: 200px; flex: none; background: var(--brand-image); overflow: hidden; }
/* תמונה בגוון אחיד: שכבת פריווינקל במצב hard-light מעל התמונה, כמו בפיגמה */
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); } /* אפור לפני שכבת הצבע, כדי שכל התמונות ייצאו בגוון כחול אחיד כמו בפיגמה */
.card-media.has-img::after { content: ""; position: absolute; inset: 0; background: var(--periwinkle); mix-blend-mode: hard-light; pointer-events: none; }
.card-media:not(.has-img) { background: #d6d6ff; }
@media (max-width: 1340px) { .browse-layout .card-axis { font-size: 16px; padding: 8px 12px; } }
.card-axis { position: absolute; z-index: 1; top: 0; inset-inline-start: 0; background: #fff; padding: 8px 16px; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--primary); white-space: nowrap; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
.add-btn { position: absolute; z-index: 1; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: #fff; color: var(--primary); cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.add-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.add-btn:hover { background: var(--brand-tint); }
.add-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.card-text { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.card h3 { font-size: 24px; line-height: 1.05; color: var(--primary); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.title-btn { all: unset; cursor: pointer; }
.title-btn:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.title-btn:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.card p { margin: 0; }
.card .meta { font-size: 14px; line-height: 1.5; color: var(--muted); }
.card .meta-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .provider { font-size: 16px; line-height: 1.4; color: var(--brand-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .desc { font-size: 14px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cards:not(.cards-list) .card .desc { border-top: 1px solid var(--divider); padding-top: 10px; margin-top: 4px; }
.more-btn { display: none; }
.card .tags-line { font-size: 14px; line-height: 1.5; color: var(--muted); }
.row-tags { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; margin: 0; }
.row-tags .tag { background: var(--brand-tint); color: var(--primary); padding: 2px 8px; font-size: 12px; line-height: 1.4; font-weight: 700; }
.row-tags .path { color: var(--brand-secondary); font-size: 14px; line-height: 1.5; font-weight: 700; }
.card .cta { margin-top: auto; flex: none; }
.card .cta .btn { width: 100%; }

/* מצב רגיל בגריד: תמונה, כותרת ושורת פרטים קצרה. מעבר עכבר: בלי תמונה, כל הפרטים ותיאור קצר. הכפתור לא זז. */
.cards:not(.cards-list) .row-tags,
.cards:not(.cards-list) .meta-full,
.cards:not(.cards-list) .desc,
.cards:not(.cards-list) .tags-line,
.cards:not(.cards-list) .list-actions { display: none; }
@media (hover: hover) {
  .cards:not(.cards-list) .card:hover,
  .cards:not(.cards-list) .card:focus-within { outline: 2px solid var(--divider); outline-offset: -2px; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .card-media,
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .meta-short { display: none; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .card-text { gap: 8px; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .row-tags { display: flex; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .meta-full { display: block; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) .desc { display: -webkit-box; }
  .cards:not(.cards-list) .card:is(:hover, :focus-within) h3 { -webkit-line-clamp: 3; }
}

/* מספרים מתחת לכרטיסים */
.cat-stats { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--divider); }
.cat-stats dl { display: flex; gap: 48px; margin: 0; flex-wrap: wrap; align-items: flex-end; }
.cat-stats dl > div, .big-stats > div { display: flex; flex-direction: column; align-items: flex-start; }
.cat-stats dd, .big-stats dd { order: 0; }
.cat-stats dt, .big-stats dt { order: 1; }
.cat-stats dl > div:first-child { padding-inline-end: 48px; border-inline-end: 1px solid var(--divider); }
.cat-stats dd, .big-stats dd { margin: 0; font-family: var(--font-display); font-size: 48px; font-weight: var(--fw-display); color: var(--ink); line-height: 1.15; width: fit-content; text-decoration: underline var(--pink) solid; text-decoration-thickness: .3em; text-decoration-skip-ink: none; text-underline-offset: -.12em; font-variant-numeric: tabular-nums lining-nums; }
.big-stats dd { text-decoration-color: var(--brand-image); }
.cat-stats dt, .big-stats dt { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ===== עמוד הקטלוג: פתיחה, סרגל סינון דביק, תוכן על surface-2 (סינון 290, רווח 32, תוצאות 990) ===== */
.cat-head { padding-top: 32px; background: #fff; }
.cat-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 8px; }
.cat-head h1 { font-size: 48px; line-height: 1.15; margin: 0; white-space: nowrap; }
.search { display: grid; gap: 6px; width: min(420px, 100%); }
.search span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.search input, .field input, .field select, .field textarea, .select-box select, .sort select, .multi summary {
  width: 100%; border: 1px solid transparent; border-radius: 0; background: var(--brand-tint); color: var(--ink); padding: 0 16px; min-height: 48px; font-size: 16px;
}
.field textarea { padding: 12px 16px; line-height: 1.6; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; background: #fff; }
.cat-toolbar { position: sticky; top: 72px; z-index: 30; background: #fff; border-bottom: 1px solid var(--divider); }
.axis-tabs { display: flex; gap: 28px; flex-wrap: wrap; border-bottom: 1px solid var(--divider); }
.axis-tabs button { border: 0; background: none; height: 48px; padding: 0 4px; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1.6; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.axis-tabs button span { color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 400; }
.axis-tabs button:hover { color: var(--ink); }
.axis-tabs button[aria-pressed="true"] { border-bottom-color: var(--primary); font-weight: 700; color: var(--ink); line-height: 1.5; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; }
.results-bar p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--ink); margin-inline-end: 4px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.active-chips button { border: 0; background: var(--brand-tint); color: var(--primary); height: 32px; padding: 0 12px; font-size: 14px; line-height: 1.5; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.active-chips button::after { content: "✕"; }
.active-chips button:hover { background: var(--surface-2); }
.results-bar .link-btn { color: var(--link); }
.results-tools { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sort select, .select-box select { min-height: 44px; padding-block: 0; padding-inline: 12px 36px; width: auto; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231d2a6b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 12px 50%; }
html[dir="ltr"] .sort select, html[dir="ltr"] .select-box select { background-position: calc(100% - 12px) 50%; padding-inline: 12px 36px; }
.seg { display: inline-flex; gap: 0; }
.seg button { border: 0; background: var(--brand-tint); padding: 0 16px; font-size: 16px; line-height: 1.6; cursor: pointer; min-height: 44px; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.seg button.active, .seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
[data-cview="grid"]::before { content: "▦"; content: "▦" / ""; }
[data-cview="list"]::before { content: "☰"; content: "☰" / ""; }
.cat-body { padding-block: 24px 96px; }
.browse-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { background: #fff; padding: 20px; position: sticky; top: 210px; max-height: calc(100vh - 234px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }
.filters-head h2 { font-family: var(--font); font-size: 18px; line-height: 1.4; margin: 0; font-weight: 700; color: var(--ink); }
.filters-head .link-btn { font-weight: 400; text-decoration: none; }
.fgroup { border-top: 1px solid var(--divider); padding: 4px 0; }
.fgroup[open] { padding-bottom: 10px; }
.fgroup summary { font-weight: 700; color: var(--ink); cursor: pointer; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.5; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: ""; margin-inline-start: auto; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231d2a6b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.fgroup[open] summary::after { transform: rotate(180deg); }
.fgroup .n-active { min-width: 20px; height: 20px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; line-height: 1; font-weight: 700; display: inline-grid; place-items: center; }
.fgroup .opts { display: grid; gap: 0; }
.fgroup .check { min-height: 44px; padding: 0 8px; font-size: 16px; color: var(--ink); }
.fgroup .check.top { font-weight: 700; }
.fgroup .check.sub { min-height: 36px; padding-inline: 26px 8px; font-size: 14px; }
.fgroup .count { color: var(--muted); font-size: 14px; margin-inline-start: auto; font-weight: 400; }
.fgroup .check.sub .count { font-size: 12px; }
.fgroup .more { margin-top: 6px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
/* תיבת סימון 18×18, מסגרת 1.5px; מסומן: מלא בכחול כהה עם ✓ לבן */
.check input[type=checkbox] { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); background: #fff; flex: none; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input[type=checkbox]:checked { background: var(--ink); }
.check input[type=checkbox]:checked::after { content: "✓"; color: #fff; font-size: 12px; line-height: 1; font-weight: 700; }
.check input[type=checkbox]:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.browse-layout .cards:not(.cards-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .browse-layout .cards:not(.cards-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .browse-layout .cards:not(.cards-list) { grid-template-columns: 1fr; } }

/* תצוגת רשימה (Dev / Activity row): תמונה 176 בגובה השורה מימין, טקסט, כפתור צמוד לתחתית משמאל. גובה 223; "קראו עוד" מרחיב */
.cards-list { grid-template-columns: 1fr; gap: 8px; }
.cards-list .card { display: grid; grid-template-columns: 176px minmax(0, 1fr) auto; column-gap: 24px; align-items: end; padding: 16px; height: auto; min-height: 223px; transition: box-shadow .15s; }
.cards-list .card:hover, .cards-list .card:focus-within { outline: 2px solid var(--brand-secondary); outline-offset: -2px; box-shadow: 0 8px 12px rgb(0 8 42 / 14%); }
.cards-list .card-media { grid-column: 1; height: auto; align-self: stretch; min-height: 191px; }
.cards-list .card-media .card-axis, .cards-list .card-media .add-btn { display: none; }
.cards-list .card-text { grid-column: 2; gap: 4px; overflow: visible; align-self: start; }
.cards-list .card h3 { line-height: 1.05; -webkit-line-clamp: unset; display: block; }
.cards-list .meta-short, .cards-list .card .cta, .cards-list .tags-line { display: none; }
.cards-list .card .desc { -webkit-line-clamp: 2; }
.cards-list .card.expanded .desc { -webkit-line-clamp: unset; display: block; }
.cards-list .card.clamped .more-btn { display: inline-flex; align-self: flex-start; align-items: center; min-height: 32px; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--link); cursor: pointer; }
.cards-list .card.clamped .more-btn:hover { text-decoration: underline; }
.list-actions { grid-column: 3; display: flex; align-items: center; gap: 12px; }
.list-actions .add-btn { position: static; background: var(--brand-tint); }
.list-actions .add-btn[aria-pressed="true"] { background: var(--primary); }
.more-row { display: grid; justify-items: center; gap: 8px; padding-top: 32px; font-size: 14px; color: var(--muted); }
.more-row .btn { background: #fff; color: var(--primary); }
.more-row .btn:hover { background: var(--brand-tint); }
.empty-state { background: #fff; padding: 40px; text-align: center; grid-column: 1 / -1; }
.plan-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--primary); color: #fff; transform: translateY(100%); transition: transform .25s; }
.plan-bar.show { transform: none; }
.plan-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 80px; }
.plan-bar p { margin: 0; font-weight: 700; font-size: 18px; }
@media (max-width: 1000px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .cat-toolbar { position: static; }
  .results-tools { margin-inline-start: 0; }
  .cards-list .card { grid-template-columns: 96px minmax(0, 1fr); }
  .cards-list .card-media { height: 72px; align-self: start; }
  .list-actions { grid-column: 1 / -1; margin-top: 12px; }
  .cat-head h1 { white-space: normal; font-size: 36px; }
}
@media (max-width: 760px) {
  /* Dev / Activity row · Mobile: תמונה 72 מימין, טקסט, כפתור ברוחב מלא מתחת. תיאור בשורה אחת + "קראו עוד" */
  .cards-list .card { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 12px; align-items: start; min-height: 0; }
  .cards-list .card-media { width: 72px; height: 72px; min-height: 0; align-self: start; }
  .cards-list .card-text { gap: 2px; }
  .cards-list .row-tags { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cards-list .card h3 { font-family: var(--font); font-weight: 700; font-size: 18px; line-height: 1.3; }
  .cards-list .card .provider { font-size: 14px; }
  .cards-list .card .desc { -webkit-line-clamp: 1; }
  .list-actions { grid-column: 1 / -1; margin-top: 0; }
  .list-actions .btn { width: 100%; }
}

/* ===== הצעות לסדר: לשוניות 72, לוח כחול, 5 עמודות ברווח 16 ===== */
#agenda .lead { margin-bottom: 32px; }
.agenda-tabs { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.agenda-tabs button { border: 0; background: #fff; height: 72px; padding: 0 12px; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 24px; line-height: 1.05; color: var(--ink); cursor: pointer; }
.agenda-tabs button:hover { background: var(--brand-tint); }
.agenda-tabs button.active { background: var(--primary); color: #fff; }
.agenda-board { background: var(--primary); padding: 32px; overflow-x: auto; }
.agenda-grid { display: grid; grid-template-columns: repeat(var(--days, 5), minmax(150px, 1fr)); gap: 16px; align-items: start; }
.agenda-day { display: flex; flex-direction: column; gap: 12px; }
.agenda-day h3 { text-align: center; font-size: 32px; line-height: 1.1; color: #fff; margin: 0; }
.agenda-day .day-date { display: block; text-align: center; font-size: 14px; line-height: 1.5; color: var(--on-dark); margin-top: -10px; }
.day-theme { background: var(--brand-image); min-height: 88px; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.day-box { background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.slot-label { font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--muted); margin: 0; }
.slot-label:not(:first-child) { margin-top: 10px; }
.ai { position: relative; background: var(--brand-tint); padding: 10px 8px; min-height: 44px; transition: background .15s; }
.ai-link { padding-inline-end: 34px; }
.ai-link { display: block; text-decoration: none; }
.ai-link:hover { background: var(--yellow); }
.ai-link:hover .ai-title { color: var(--primary); }
.ai-link:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.ai-arrow { position: absolute; top: 8px; inset-inline-end: 8px; width: 20px; height: 20px; background: var(--primary); -webkit-mask: url(/img/icons/arrow-ul.svg) center / 20px no-repeat; mask: url(/img/icons/arrow-ul.svg) center / 20px no-repeat; }
html[dir="ltr"] .ai-arrow { transform: scaleX(-1); }
.ai-open { all: unset; cursor: pointer; display: block; }
.ai-title { display: block; font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.4; }
.ai-type { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.ai-open:hover .ai-title { text-decoration: underline; }
.ai-open:focus-visible { outline: 3px solid var(--c-focus); }
.ai-add { position: absolute; top: 6px; inset-inline-end: 4px; width: 28px; height: 28px; border: 0; background: none; color: var(--primary); cursor: pointer; display: grid; place-items: center; }
.ai-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-add:hover { background: #fff; }
.rest { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 6px; }
.agenda-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; justify-content: flex-end; }
@media (max-width: 760px) {
  .agenda-tabs { grid-template-columns: repeat(2, 1fr); }
  .agenda-tabs button { height: 56px; font-size: 18px; }
  .agenda-board { padding: 20px 16px; }
  .agenda-grid { grid-template-columns: 1fr; }
  .day-theme { min-height: 0; }
  .agenda-actions { justify-content: flex-start; }
}

/* ===== מפה: רקע קרם, כותרת ומספרים מימין וקקטוס משמאל, מפה 888×680 ופאנל 400 ===== */
.map-head { display: flex; justify-content: space-between; align-items: stretch; gap: 32px; }
.map-head-text { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; }
.map-head .lead { margin: 0; }
.map-art { width: 350px; height: auto; object-fit: contain; align-self: center; }
.big-stats { display: flex; gap: 48px; margin: 8px 0 0; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.select-box select { background-color: #fff; min-height: 44px; min-width: 76px; font-size: 16px; line-height: 1.6; padding-inline: 16px 40px; background-position: 16px 50%; }
html[dir="ltr"] .select-box select { background-position: calc(100% - 16px) 50%; padding-inline: 16px 40px; }
.toggle-box { display: inline-flex; align-items: center; gap: 8px; background: #fff; min-height: 40px; padding: 0 12px; cursor: pointer; color: var(--primary); font-size: 14px; line-height: 1.5; }
.toggle-box input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.map-toolbar .seg { margin-inline-start: auto; }
.map-search { flex: 0 1 300px; }
.map-search input { width: 100%; min-height: 48px; border: 0; background: #fff; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.map-search input::placeholder { color: var(--muted); }
.map-toolbar .seg button { min-height: 40px; font-size: 14px; background: #fff; }
.map-toolbar .seg button[aria-pressed="true"] { background: var(--primary); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.map-canvas { position: relative; background: #fff; overflow: hidden; height: 680px; }
#events-map { position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); margin: 0; }
.map-abroad { position: absolute; top: 20px; inset-inline-start: 20px; background: #fff; color: var(--primary); z-index: 2; border: 1px solid var(--divider); }
.map-legend { position: absolute; bottom: 24px; inset-inline-start: 24px; background: var(--brand-tint); padding: 12px 16px; font-size: 14px; line-height: 1.5; display: flex; align-items: center; gap: 8px; z-index: 2; color: var(--ink); }
.map-legend .dot ~ .dot { margin-inline-start: 8px; }
.dot { width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; }
.dot-open { background: radial-gradient(circle, #fff 0 4px, var(--ink) 4.5px 9px, #fff 9.5px 11px, var(--ink) 11.5px); }
.dot-closed { background: radial-gradient(circle, var(--ink) 0 4px, #fff 4.5px 10px, var(--ink) 10.5px); }
.dot-cluster { background: var(--ink); border: 1.8px solid #fff; box-shadow: 0 0 0 1px var(--ink); color: #fff; font-size: 9px; font-weight: 700; }
.event-panel { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.event-panel > * { margin: 0; }
.event-panel:focus { outline: none; }
.ep-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 700; min-height: 44px; }
.ep-head .icon-btn { margin-inline-end: -10px; }
.ep-empty h3 { font-size: 24px; margin-bottom: 10px; }
.ep-empty p { font-size: 16px; line-height: 1.6; }
.ep-badge { align-self: flex-start; display: inline-block; padding: 4px 12px; font-size: 12px; line-height: 1.4; font-weight: 700; color: #fff; background: var(--ink); }
.ep-badge.closed { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ep-badge.pending { background: var(--brand-image); color: var(--ink); }
.event-panel h3 { font-size: 24px; line-height: 1.05; }
.ep-org { color: var(--muted); font-weight: 700; font-size: 16px; line-height: 1.5; }
.ep-meta { display: grid; }
.ep-meta div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--divider); align-items: baseline; }
.ep-meta dt { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ep-meta dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.ep-desc { font-size: 16px; line-height: 1.6; color: var(--muted); }
.event-panel .btn { width: 100%; }
.ep-note { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: -8px !important; }
.ep-back { display: none; }
.event-list { display: none; list-style: none; margin: 0; padding: 0; overflow: auto; background: #fff; height: 680px; }
.event-list li + li { border-top: 1px solid var(--divider); }
.event-list button { all: unset; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 18px; cursor: pointer; width: 100%; box-sizing: border-box; }
.event-list button:hover { background: var(--brand-tint); }
.event-list button:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.event-list .dot { width: 14px; height: 14px; }
.event-list .el-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.event-list .el-meta { grid-column: 2; font-size: 14px; color: var(--muted); }
.event-list .el-day { grid-row: 1 / 3; grid-column: 3; font-size: 14px; color: var(--muted); }
.map-wrap[data-view="list"] .map-canvas { display: none; }
.map-wrap[data-view="list"] .event-list { display: block; }
.map-reg { margin-top: 24px; }
@media (max-width: 1000px) {
  .map-head { flex-direction: column; }
  .map-art { width: 220px; align-self: flex-start; }
  .map-wrap { grid-template-columns: 1fr; gap: 16px; }
  .map-canvas { height: 62vh; min-height: 380px; }
  .event-list { height: auto; max-height: 70vh; }
  .map-wrap.has-selection .event-panel { order: -1; }
  .map-toolbar .seg { margin-inline-start: 0; }
  .map-legend { inset-inline: 12px auto; bottom: 12px; flex-wrap: wrap; }
  .big-stats { gap: 40px; }
}
.maplibregl-popup-content { font-family: var(--font); }
.maplibregl-ctrl-group { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; background-color: var(--brand-tint) !important; border: 0 !important; }
.maplibregl-ctrl-group button + button { margin-top: 4px; }
.maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 24px 20px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ===== טופס רישום ===== */
#register .lead { margin-bottom: 40px; }
.reg-form { display: grid; }
.rf-org { border: 0; padding: 0 0 32px; margin: 0; display: grid; gap: 20px; min-width: 0; }
.rf-title { font-size: 24px; font-weight: var(--fw-display); color: var(--ink); padding: 0; margin: 0; font-family: var(--font-display); line-height: 1.05; }
legend.rf-title { float: right; width: 100%; margin-bottom: 4px; }
html[dir="ltr"] legend.rf-title { float: left; }
.rf-type { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.rf-label { font-size: 14px; color: var(--muted); min-width: 96px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; background: var(--brand-tint); color: var(--primary); font-size: 14px; transition: background .15s, color .15s; }
.choice label:hover span { background: var(--surface-2); }
.choice input:checked + span { background: var(--primary); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span:first-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.field small { color: var(--muted); font-size: 12px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .multi summary { border-color: var(--c-error); background: #fff; }
.field .err, .rf-type .err { color: var(--c-error); font-size: 14px; font-weight: 700; }
.rf-type.invalid .choice span { box-shadow: inset 0 0 0 1px var(--c-error); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.rf-events { border-top: 1px solid var(--divider); padding: 32px 0; }
.rf-events-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.rf-count { font-size: 14px; color: var(--muted); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-list:empty { display: none; }
.ev-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--brand-tint); padding: 14px 24px; }
.ev-row-t { margin: 0; font-weight: 700; color: var(--ink); font-size: 16px; }
.ev-row-m { margin: 2px 0 0; font-size: 14px; }
.ev-row-a { display: flex; gap: 20px; }
.ev-empty { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--brand-tint); padding: 18px 24px; }
.ev-empty[hidden] { display: none; }
.ev-empty p { margin: 0; }
.ev-empty-t { font-weight: 700; color: var(--ink); font-size: 16px; }
.ev-empty-d { font-size: 14px; margin-top: 4px !important; }
.ev-editor { background: var(--brand-tint); padding: 24px; margin-top: 8px; display: grid; gap: 20px; }
.ev-editor[hidden] { display: none; }
.ev-editor .field input, .ev-editor .field select, .ev-editor .field textarea, .ev-editor .multi summary { background: #fff; }
.ev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ev-f-title { grid-column: span 3; }
.ev-f-desc { grid-column: 1 / -1; }
.ev-f-link { max-width: 50%; }
.ev-editor .rf-type { gap: 16px; }
.ev-editor .rf-label { min-width: 0; }
.ev-editor .choice span { background: #fff; }
.ev-editor .choice input:checked + span { background: var(--primary); }
.ev-actions { display: flex; align-items: center; gap: 24px; }
.ev-actions .btn-light { box-shadow: inset 0 0 0 2px var(--primary); }
.ev-more { margin-top: 12px; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: 1fr 1fr; } .ev-f-title { grid-column: 1 / -1; } .ev-f-link { max-width: none; } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } .ev-empty { flex-direction: column; align-items: stretch; } .ev-row { flex-direction: column; align-items: flex-start; } }
/* בחירה מרובה של קהל יעד */
.multi { position: relative; }
.multi summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.multi.has-value summary { color: var(--ink); }
.multi summary span { overflow: hidden; text-overflow: ellipsis; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231d2a6b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.multi-pop { position: absolute; z-index: 5; top: calc(100% + 4px); inset-inline: 0; min-width: 220px; background: #fff; border: 1px solid var(--divider); padding: 10px 14px; display: grid; gap: 2px; }
.multi-pop .check { padding: 6px 0; font-size: 15px; color: var(--ink); }
.rf-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--divider); padding-top: 24px; }
.rf-merch { font-size: 14px; color: var(--ink); }
.rf-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rf-hint { font-size: 14px; color: var(--muted); }
.rf-hint[hidden] { display: none; }
.rf-privacy { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 16px 0 0; }
.form-errors { background: #fdecea; border: 1px solid var(--c-error); padding: 16px 20px; margin-bottom: 24px; }
.form-errors h3 { font-size: 18px; color: var(--c-error); margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-inline-start: 20px; }
.form-errors a { color: var(--c-error); font-weight: 700; }
.reg-success { background: var(--brand-tint); padding: 40px; }
.reg-success h3 { font-size: 24px; margin-bottom: 12px; }
.reg-success h3::before { content: "✓ "; }
.success-n { font-weight: 700; color: var(--ink); }
.reg-success:focus { outline: none; }
.turnstile { min-height: 0; }

/* ===== ארגונים שותפים: רקע קרם, 6 משבצות 96×44 ===== */
.partners-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 32px; flex-wrap: wrap; }
.partners-title { font-size: 24px; line-height: 1.05; margin: 0 0 4px; }
.partners p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.partner-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; }
.partner-logos li { background: var(--brand-image); width: 96px; height: 44px; }

/* ===== כותרת תחתונה מלאה (עמוד הבית): כחול ===== */
.footer { padding-top: 56px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 64px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-name { font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: var(--fw-display); color: #fff; }
.footer-tag { font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.footer-dates { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.footer-by { margin-top: 47px !important; padding-top: 16px; }
.footer-by img { width: 248px; height: auto; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.footer-col h2 { font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 700; color: #fff; margin: 0; }
.footer-col p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.footer a, .footer .link-btn { color: var(--on-dark); text-decoration: none; font-size: 16px; line-height: 1.6; font-weight: 400; }
.footer a:hover, .footer .link-btn:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--divider); }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 20px; font-size: 12px; line-height: 1.4; color: var(--on-dark); }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer .footer-links a { font-size: 12px; line-height: 1.4; }
@media (max-width: 760px) {
  /* Dev / Footer · Mobile: מותג במרכז, ואז ניווט ויצירת קשר זה לצד זה (רווח 64), שורת משפטי במרכז */
  .footer-in { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-inline: 20px; }
  .footer-brand { flex-basis: 100%; align-items: center; text-align: center; }
  .footer-name { font-size: 24px; }
  .footer-name > .ti { width: 175px; margin-inline: auto; }
  .footer-by { margin-top: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .footer-by .fb-label { display: block; font-size: 12px; line-height: 1.4; color: var(--on-dark); }
  .footer-by img { width: 130px; }
  .footer-bottom-in { flex-direction: column; justify-content: center; gap: 24px; padding: 20px; }
  .footer-links { justify-content: center; }
  .footer-bottom p { text-align: center; }
}

/* ===== כותרת תחתונה מצומצמת (עמוד הקטלוג): לבנה ===== */
.footer-compact { background: #fff; }
.footer-compact-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.fc-by { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.fc-by img { width: 80px; height: auto; }
.fc-legal { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.fc-legal a { color: var(--muted); text-decoration: none; }
.fc-legal a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  /* Dev / Footer compact · Mobile */
  .footer-compact-in { flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
  .fc-by { flex-direction: column; gap: 12px; }
  .fc-by img { width: 150px; }
  .fc-legal { justify-content: center; gap: 8px 16px; }
  .fc-legal span { flex-basis: 100%; text-align: center; }
}

/* ===== חלונות ===== */
dialog { border: 0; padding: 0; color: var(--muted); background: #fff; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(0 8 42 / 45%); }
.modal { width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.modal-sm { width: min(420px, calc(100vw - 32px)); }
.modal-body { padding: 32px; display: grid; gap: 12px; }
.modal-body h2 { font-size: 32px; line-height: 1.1; margin: 0; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; }
.modal .kicker { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--brand-tint); width: fit-content; padding: 2px 8px; }
.modal .meta { display: grid; margin: 0; }
.modal .meta div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--divider); }
.modal .meta div:last-child { border-bottom: 1px solid var(--divider); }
.modal .meta dt { color: var(--muted); }
.modal .meta dd { margin: 0; color: var(--ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.day-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.day-grid button { border: 0; background: var(--brand-tint); padding: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.day-grid button:hover { background: var(--surface-2); }
.drawer { margin: 0; margin-inline-start: auto; height: 100%; max-height: 100%; width: min(460px, 100vw); padding: 24px; display: none; flex-direction: column; gap: 12px; }
.drawer[open] { display: flex; animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
html[dir="ltr"] .drawer[open] { animation-name: slide-r; }
@keyframes slide-r { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 32px; line-height: 1.1; }
.drawer p { margin: 0; }
.week-days { flex: 1; overflow: auto; display: grid; gap: 16px; align-content: start; }
.wd h3 { font-size: 18px; margin: 0 0 6px; }
.wd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wd li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; background: var(--brand-tint); padding: 8px 10px; }
.wd li .wt { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.wd li select { border: 0; background: #fff; font-size: 13px; padding: 4px; }
.wd li button { border: 0; background: none; cursor: pointer; width: 32px; height: 32px; }
.wd li button:hover { background: #fff; }
.wd .none { color: var(--muted); font-size: 14px; }
.week-empty { background: var(--brand-tint); padding: 20px; text-align: center; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--divider); padding-top: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px); background: var(--ink); color: #fff; padding: 12px 22px; z-index: 200; transition: transform .25s; pointer-events: none; font-weight: 700; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
body:has(.plan-bar.show) .toast.show { transform: translate(-50%, -84px); }

/* ===== הדפסה ===== */
.print-area { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; font-size: 12pt; color: #000; }
  .print-area h1 { font-size: 22pt; margin-bottom: 4pt; color: #334aae; }
  .print-area .pa-sub { color: #555; margin-bottom: 12pt; }
  .print-area table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .print-area th, .print-area td { border: 1px solid #999; padding: 6pt; vertical-align: top; text-align: start; }
  .print-area th { background: #eef0ff; }
  .print-area td div { margin-bottom: 6pt; padding-bottom: 4pt; border-bottom: 1px dotted #bbb; }
  .print-area footer { margin-top: 12pt; color: #555; font-size: 10pt; }
}

/* "התכנית שלי" (בונה השבוע האישי) ירדה לשלב הבא לפי פגישה 1.
   כדי להחזיר: מוחקים את class="no-plan" מתגית html ב-index.html וב-catalog.html. */
.no-plan .week-btn, .no-plan .add-btn, .no-plan .plan-bar, .no-plan [data-open-week], .no-plan #agenda-copy, .no-plan .list-actions .add-btn, .no-plan [data-add-dlg] { display: none !important; }
.no-plan .card-axis { max-width: 100%; }
