/* ts-site.css (1.0.7): header + menu with sub-menus, blog/archive grid, Articles hub, single posts,
 * lead CTA, compact floating buttons. Unlayered and scoped with #ts-hdr / #ts-main so generic plugin
 * CSS on the site (img{height:auto}, .elementor-kit-N a/h2 …) cannot override the theme's components. */

/* ---------- Header ---------- */
#ts-hdr {
  --hdr-fg: var(--foreground, #1a1a1a);
  --hdr-mut: color-mix(in srgb, var(--hdr-fg) 78%, transparent);
  --hdr-pop: var(--card, #fff);
  --hdr-pop-fg: var(--foreground, #1a1a1a);
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding: 10px 12px 0; box-sizing: border-box; max-width: 100vw;
}
html:not([data-theme="dark"]) body.ts-nav-dark #ts-hdr { --hdr-fg: #F4F4F5; --hdr-mut: #F4F4F5; }
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr { --hdr-fg: #1A1A1A; --hdr-mut: rgba(26, 26, 26, .8); }
html[data-theme="dark"] #ts-hdr { --hdr-pop: #1f2025; --hdr-pop-fg: #F4F4F5; }
body.admin-bar #ts-hdr { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar #ts-hdr { top: 46px !important; } }
@media (max-width: 600px) { body.admin-bar #ts-hdr { position: fixed; } }

#ts-hdr *, #ts-hdr *::before, #ts-hdr *::after { box-sizing: border-box; }
#ts-hdr .ts-hdr-bar {
  display: flex; align-items: center; gap: 14px; max-width: 1280px; margin: 0 auto;
  padding: 8px 16px; border-radius: 1rem; min-height: 60px; color: var(--hdr-fg);
}
#ts-hdr .ts-brand { flex: 0 0 auto; display: inline-flex; align-items: center; line-height: 0; }
#ts-hdr img.ts-logo {
  height: 36px !important; max-height: 36px !important; width: auto !important; max-width: 150px !important;
  object-fit: contain; margin: 0; border: 0; box-shadow: none;
}
/* one logo at a time (light wordmark on dark nav / dark mode, dark wordmark on the white nav) */
#ts-hdr img.ts-logo-on-light { display: none !important; }
#ts-hdr img.ts-logo-on-dark { display: inline !important; }
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr img.ts-logo-on-light { display: inline !important; }
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr img.ts-logo-on-dark { display: none !important; }
@media (min-width: 1024px) { #ts-hdr img.ts-logo { height: 42px !important; max-height: 42px !important; max-width: 170px !important; } }

#ts-hdr .ts-dnav { display: none; flex: 1 1 auto; min-width: 0; justify-content: center; }
@media (min-width: 1024px) { #ts-hdr .ts-dnav { display: flex; } }
html.ts-compact #ts-hdr .ts-dnav { display: none !important; }

#ts-hdr ul.ts-menu, #ts-hdr ul.ts-sub { list-style: none; margin: 0; padding: 0; }
#ts-hdr li.ts-mi { margin: 0; padding: 0; list-style: none; }
#ts-hdr li.ts-mi::before, #ts-hdr li.ts-mi::marker { content: none; }
#ts-hdr .ts-menu-desktop { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; white-space: nowrap; }
#ts-hdr .ts-menu-desktop > .ts-mi { position: relative; display: flex; align-items: center; }
#ts-hdr .ts-ml, #ts-hdr .ts-sub-tg {
  font: inherit; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0;
  color: var(--hdr-mut) !important; background: none !important; border: 0; box-shadow: none; text-decoration: none !important;
  cursor: pointer; text-transform: none;
}
#ts-hdr .ts-menu-desktop > .ts-mi > .ts-ml { display: inline-flex; align-items: center; gap: 4px; padding: 8px 9px; border-radius: 10px; white-space: nowrap; }
#ts-hdr .ts-menu-desktop > .ts-mi.has-sub > a.ts-ml { padding-inline-end: 2px; }
#ts-hdr .ts-menu-desktop .ts-sub-arrow { display: inline-flex; align-items: center; padding: 8px 4px; border-radius: 8px; }
#ts-hdr .ts-ml:hover, #ts-hdr .ts-sub-tg:hover, #ts-hdr .is-current > .ts-ml { color: var(--brand-orange, #FD8943) !important; }
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr .ts-ml:hover,
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr .ts-sub-tg:hover,
html:not([data-theme="dark"]) body.ts-nav-light #ts-hdr .is-current > .ts-ml { color: var(--text-orange, #985228) !important; }
#ts-hdr .ts-ml:focus-visible, #ts-hdr .ts-sub-tg:focus-visible, #ts-hdr .ts-burger:focus-visible, #ts-hdr .ts-hdr-cta:focus-visible {
  outline: 2px solid var(--brand-orange, #FD8943); outline-offset: 2px;
}
#ts-hdr .ts-chev { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .2s; }
#ts-hdr .open > .ts-sub-tg .ts-chev { transform: rotate(180deg); }

/* Desktop dropdowns */
#ts-hdr .ts-menu-desktop .ts-sub-1 {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 240px; max-width: min(340px, 90vw);
  max-height: calc(100vh - 140px); overflow-y: auto; padding: 8px; border-radius: 14px;
  background: var(--hdr-pop) !important; color: var(--hdr-pop-fg);
  border: 1px solid color-mix(in srgb, var(--hdr-pop-fg) 12%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
  white-space: normal; text-align: right;
}
#ts-hdr .ts-menu-desktop .ts-sub-1::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
#ts-hdr .ts-menu-desktop > .ts-mi.has-sub:hover > .ts-sub-1,
#ts-hdr .ts-menu-desktop > .ts-mi.has-sub:focus-within > .ts-sub-1,
#ts-hdr .ts-menu-desktop > .ts-mi.has-sub.open > .ts-sub-1 { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
#ts-hdr .ts-menu-desktop > .ts-mi.has-sub.ts-x:not(.open) > .ts-sub-1 { visibility: hidden; opacity: 0; }
#ts-hdr .ts-menu-desktop .ts-sub .ts-mi { display: block; }
#ts-hdr .ts-menu-desktop .ts-sub .ts-ml {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; white-space: normal;
  color: var(--hdr-pop-fg) !important; width: 100%; text-align: right;
}
#ts-hdr .ts-menu-desktop .ts-sub .ts-ml:hover, #ts-hdr .ts-menu-desktop .ts-sub .ts-ml:focus-visible { background: color-mix(in srgb, var(--brand-orange, #FD8943) 14%, transparent) !important; }
/* Level 3: grouped under its parent inside the dropdown */
#ts-hdr .ts-menu-desktop .ts-sub .ts-sub-arrow { display: none; }
#ts-hdr .ts-menu-desktop .ts-sub-2 { position: static; margin: 0 14px 4px 0; padding: 0 10px 0 0; border-right: 2px solid color-mix(in srgb, var(--brand-orange, #FD8943) 45%, transparent); }
#ts-hdr .ts-menu-desktop .ts-sub-2 .ts-ml { font-size: 14px; padding: 7px 10px; opacity: .92; }
#ts-hdr .ts-menu-desktop .ts-sub .ts-ml-btn { font-weight: 700; }

/* Actions */
#ts-hdr .ts-hdr-act { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
#ts-hdr .ts-dnav + .ts-hdr-act { margin-inline-start: 0; }
#ts-hdr a.ts-hdr-cta {
  display: none; white-space: nowrap; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700;
  color: #fff !important; text-decoration: none !important; line-height: 1.2;
}
@media (min-width: 640px) { #ts-hdr a.ts-hdr-cta { display: inline-block; } }
#ts-hdr .ts-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent !important; color: var(--hdr-fg) !important; cursor: pointer; }
#ts-hdr .ts-burger svg { stroke: currentColor; width: 24px; height: 24px; }
@media (min-width: 1024px) { #ts-hdr .ts-burger { display: none; } }
html.ts-compact #ts-hdr .ts-burger { display: inline-flex !important; }
#ts-hdr .ts-theme-toggle { flex: 0 0 auto; }

/* Mobile / hamburger menu */
#ts-hdr .ts-mnav { display: none; max-width: 1280px; margin: 8px auto 0; padding: 10px 16px 16px; border-radius: 1rem; color: var(--hdr-fg); max-height: calc(100vh - 110px); overflow-y: auto; flex-direction: column; }
#ts-hdr .ts-mnav.open { display: flex; }
@media (min-width: 1024px) { html:not(.ts-compact) #ts-hdr .ts-mnav, html:not(.ts-compact) #ts-hdr .ts-mnav.open { display: none; } }
#ts-hdr .ts-menu-mobile > .ts-mi { border-bottom: 1px solid color-mix(in srgb, var(--hdr-fg) 14%, transparent); }
#ts-hdr .ts-menu-mobile > .ts-mi:last-child { border-bottom: 0; }
#ts-hdr .ts-menu-mobile .ts-mi { display: flex; flex-wrap: wrap; align-items: center; }
#ts-hdr .ts-menu-mobile .ts-ml { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 2px; font-size: 16px; color: var(--hdr-fg) !important; text-align: right; min-width: 0; }
#ts-hdr .ts-menu-mobile .ts-sub-arrow { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#ts-hdr .ts-menu-mobile .ts-sub { display: none; flex: 1 0 100%; padding: 0 14px 8px 0; border-right: 2px solid color-mix(in srgb, var(--brand-orange, #FD8943) 45%, transparent); margin-bottom: 8px; }
#ts-hdr .ts-menu-mobile .open > .ts-sub { display: block; }
#ts-hdr .ts-menu-mobile .ts-sub .ts-ml { font-size: 15px; padding: 9px 2px; }
#ts-hdr a.ts-mnav-cta { display: block; margin-top: 12px; border-radius: 999px; padding: 12px; text-align: center; font-weight: 700; color: #fff !important; text-decoration: none !important; }

/* Content never hidden under the fixed header */
.ts-pt-hdr { padding-top: calc(var(--ts-hdr-h, 84px) + 16px); }
html { scroll-padding-top: calc(var(--ts-hdr-h, 84px) + 12px); }
body.admin-bar .ts-phero, body.admin-bar .ts-post-hero { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .ts-phero, body.admin-bar .ts-post-hero { margin-top: 46px; } }

/* Decorative glows of dark bands never widen the page */
.ts-dark-band { overflow-x: clip; }

/* ---------- Shared ---------- */
#ts-main .ts-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
#ts-main.ts-archive { padding-bottom: 96px; }
#ts-main .ts-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5;
  background: color-mix(in srgb, var(--brand-orange, #FD8943) 14%, transparent); color: var(--text-orange, #985228) !important; text-decoration: none !important;
}
html[data-theme="dark"] #ts-main .ts-chip, html[data-theme="dark"] .ts-post-hero .ts-chip { color: var(--brand-sand, #F6BA65) !important; }
#ts-main .ts-btn, .ts-cta .ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; border: 1.5px solid transparent; white-space: nowrap;
}
#ts-main .ts-btn-p { background: linear-gradient(90deg, var(--brand-red, #E2381B), var(--brand-orange, #FD8943)); color: #fff !important; }
html:not([data-theme="dark"]) #ts-main .ts-btn-p { background: linear-gradient(90deg, #C81E12, #C44715); }
#ts-main .ts-btn-wa { background: #25D366; color: #062B16 !important; }
#ts-main .ts-btn-wa svg { width: 18px; height: 18px; fill: currentColor; }
#ts-main .ts-btn-o { border-color: color-mix(in srgb, var(--foreground) 30%, transparent); color: var(--foreground) !important; background: transparent; }
#ts-main .ts-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
#ts-main .ts-btn:focus-visible, #ts-main .ts-card a:focus-visible, #ts-main .ts-banner a:focus-visible, #ts-main .ts-pager a:focus-visible { outline: 3px solid var(--brand-orange, #FD8943); outline-offset: 2px; }

/* ---------- Cards / grid ---------- */
#ts-main .ts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; }
@media (min-width: 640px) { #ts-main .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { #ts-main .ts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
#ts-main .ts-card, #ts-main .ts-banner {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; margin: 0;
  background: var(--card, #fff); color: var(--foreground); border: 1px solid var(--border, #e6e6e8);
  box-shadow: 0 4px 18px rgba(18, 19, 22, .06); transition: transform .2s, box-shadow .2s; min-width: 0;
}
#ts-main .ts-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 19, 22, .12); }
#ts-main .ts-card-im { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface, #f7f7f8); line-height: 0; }
#ts-main .ts-card-im img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; transition: transform .5s; }
#ts-main .ts-card:hover .ts-card-im img { transform: scale(1.04); }
#ts-main .ts-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--brand-orange, #FD8943);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-orange, #FD8943) 18%, transparent), color-mix(in srgb, var(--brand-red, #E2381B) 10%, transparent)); }
#ts-main .ts-card-b { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1 1 auto; }
#ts-main .ts-card-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted-foreground, #5c5c5c); }
#ts-main .ts-card-t { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--foreground); font-family: inherit; letter-spacing: 0; text-transform: none; }
#ts-main .ts-card-t a { color: inherit !important; text-decoration: none !important; }
#ts-main .ts-card-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#ts-main .ts-card .ts-chip { position: relative; z-index: 2; }
#ts-main .ts-card-x { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted-foreground, #5c5c5c);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#ts-main .ts-card-go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--text-orange, #985228) !important; text-decoration: none !important; }
html[data-theme="dark"] #ts-main .ts-card-go:not(.ts-btn) { color: var(--brand-sand, #F6BA65) !important; }

/* Banner («הודעת דחיפה») */
#ts-main .ts-banner-wrap { margin: 0 0 36px; }
#ts-main .ts-banner { border-color: color-mix(in srgb, var(--brand-orange, #FD8943) 40%, transparent); box-shadow: 0 14px 40px rgba(226, 56, 27, .12); }
@media (min-width: 900px) {
  #ts-main .ts-banner { flex-direction: row; min-height: 340px; }
  #ts-main .ts-banner .ts-card-im { flex: 0 0 55%; aspect-ratio: auto; }
}
#ts-main .ts-banner .ts-card-b { padding: 26px 28px; justify-content: center; gap: 14px; }
#ts-main .ts-banner .ts-card-t { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
#ts-main .ts-banner .ts-card-x { -webkit-line-clamp: 4; font-size: 16px; }
#ts-main .ts-banner .ts-card-go { align-self: flex-start; margin-top: 6px; position: relative; z-index: 2; }
#ts-main .ts-banner-k { align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--brand-red, #E2381B); padding: 3px 10px; border-radius: 6px; }

/* Pagination */
#ts-main .ts-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 48px 0 0; }
#ts-main .ts-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--border, #e6e6e8); background: var(--card, #fff); color: var(--foreground) !important;
  font-weight: 700; text-decoration: none !important;
}
#ts-main .ts-pager .page-numbers.current { background: linear-gradient(90deg, #C81E12, #C44715); border-color: transparent; color: #fff !important; }
#ts-main .ts-pager .page-numbers.dots { border: 0; background: none; }
#ts-main .ts-empty { text-align: center; color: var(--muted-foreground); padding: 40px 0; }

/* Archive extras inherited from 1.0.6 */
#ts-main .ts-search { max-width: 36rem; margin: 0 auto 40px; }

/* ---------- Single post ---------- */
.ts-post-hero { position: relative; padding: calc(var(--ts-hdr-h, 84px) + 36px) 20px 24px; background: linear-gradient(180deg, var(--surface, #f7f7f8), var(--background, #fff)); }
.ts-post-hero-in { max-width: 1100px; margin: 0 auto; }
.ts-post-hero-txt { max-width: 820px; margin: 0 auto; text-align: center; }
.ts-post-hero .ts-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--brand-orange, #FD8943) 16%, transparent); color: var(--text-orange, #985228) !important; text-decoration: none !important; }
.ts-post-cats { margin: 0 0 14px; }
body .ts-post-hero h1.ts-post-title { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 900; color: var(--foreground); letter-spacing: -.01em; font-family: inherit; }
.ts-post-meta { margin: 14px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted-foreground, #5c5c5c); }
.ts-post-hero-im { margin: 28px auto 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; max-height: 520px; background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .14); }
.ts-post-hero-im img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0; }
@media (max-width: 640px) { .ts-post-hero-im { aspect-ratio: 16 / 10; border-radius: 14px; } }

#ts-main.ts-single { padding: 16px 20px 96px; }
#ts-main .ts-article { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.85; color: var(--foreground); overflow-wrap: anywhere; }
#ts-main.ts-page .ts-article { max-width: 860px; }
#ts-main .ts-article > *:first-child { margin-top: 0; }
#ts-main .ts-article p { margin: 0 0 1.15em; }
#ts-main .ts-article h2 { font-size: 28px; line-height: 1.3; font-weight: 800; margin: 1.8em 0 .6em; color: var(--foreground); font-family: inherit; }
#ts-main .ts-article h3 { font-size: 22px; line-height: 1.35; font-weight: 800; margin: 1.5em 0 .5em; color: var(--foreground); font-family: inherit; }
#ts-main .ts-article h4 { font-size: 19px; font-weight: 700; margin: 1.3em 0 .4em; color: var(--foreground); }
#ts-main .ts-article a { color: var(--text-orange, #985228); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] #ts-main .ts-article a { color: var(--brand-sand, #F6BA65); }
#ts-main .ts-article ul, #ts-main .ts-article ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
#ts-main .ts-article ul { list-style: disc; }
#ts-main .ts-article ol { list-style: decimal; }
#ts-main .ts-article li { margin: .3em 0; }
#ts-main .ts-article blockquote { margin: 1.6em 0; padding: 14px 20px; border-right: 4px solid var(--brand-orange, #FD8943); background: var(--surface, #f7f7f8); border-radius: 0 12px 12px 0; font-size: 1.05em; }
#ts-main .ts-article img, #ts-main .ts-article video, #ts-main .ts-article iframe { max-width: 100%; height: auto; border-radius: 12px; }
#ts-main .ts-article iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
#ts-main .ts-article figure { margin: 1.6em 0; max-width: 100%; }
#ts-main .ts-article figcaption { font-size: 14px; color: var(--muted-foreground); text-align: center; margin-top: 6px; }
#ts-main .ts-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
#ts-main .ts-article th, #ts-main .ts-article td { border: 1px solid var(--border, #e6e6e8); padding: 10px 12px; text-align: right; }
#ts-main .ts-article th { background: var(--surface, #f7f7f8); font-weight: 700; }
#ts-main .ts-article .gallery, #ts-main .ts-article .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
#ts-main .ts-article .gallery-item, #ts-main .ts-article .wp-block-gallery figure { width: auto !important; max-width: 100% !important; margin: 0 !important; }
#ts-main .ts-article .gallery img, #ts-main .ts-article .wp-block-gallery img { width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: 4 / 3; }
#ts-main .ts-article .alignwide { max-width: 1000px; margin-inline: calc((760px - 1000px) / 2); }
@media (max-width: 1040px) { #ts-main .ts-article .alignwide { margin-inline: 0; } }
#ts-main .ts-article .wp-caption { max-width: 100% !important; }
#ts-main .ts-tags { margin-top: 2em; display: flex; flex-wrap: wrap; gap: 8px; }

/* Elementor-built posts/pages: full container width, Elementor sizes its sections. */
#ts-main.ts-elementor-content { max-width: none; }
#ts-main.ts-elementor-content > .elementor { width: 100%; }

#ts-main .ts-after { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
#ts-main .ts-sidebar, #ts-main .ts-comments { max-width: 760px; margin: 56px auto 0; }

/* Lead CTA box */
.ts-cta { position: relative; margin: 56px auto 0; max-width: 860px; padding: 30px 28px; border-radius: 22px; text-align: center; box-sizing: border-box;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-orange, #FD8943) 14%, var(--card, #fff)), var(--card, #fff));
  border: 1px solid color-mix(in srgb, var(--brand-orange, #FD8943) 35%, transparent); color: var(--foreground); }
#ts-main .ts-cta .ts-cta-t { margin: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.35; font-weight: 900; color: var(--foreground); font-family: inherit; }
#ts-main .ts-cta .ts-cta-t span { color: var(--text-red, #C03017); }
html[data-theme="dark"] #ts-main .ts-cta .ts-cta-t span { color: var(--brand-orange, #FD8943); }
#ts-main .ts-cta .ts-cta-s { margin: 10px auto 0; max-width: 600px; color: var(--muted-foreground); font-size: 16px; line-height: 1.6; }
#ts-main .ts-cta .ts-cta-b { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#ts-main .ts-article .ts-cta a { text-decoration: none; }
#ts-main .ts-article .ts-cta-mid { margin: 2em 0; padding: 20px 22px; max-width: none; }
#ts-main .ts-article .ts-cta-mid .ts-cta-t { font-size: 19px; font-weight: 800; }
#ts-main .ts-article .ts-cta-mid .ts-cta-t span { display: block; font-size: 16px; font-weight: 500; color: var(--muted-foreground); margin-top: 4px; }
#ts-main .ts-article .ts-cta-mid .ts-cta-b { margin-top: 14px; }
#ts-main .ts-article .ts-cta-mid .ts-btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 480px) { #ts-main .ts-cta .ts-btn { flex: 1 1 100%; } }

/* Related posts */
#ts-main .ts-related { margin: 64px 0 0; }
#ts-main .ts-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
#ts-main .ts-related-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--foreground); font-family: inherit; }
#ts-main .ts-lp-all { font-weight: 700; color: var(--text-orange, #985228) !important; text-decoration: none !important; }
html[data-theme="dark"] #ts-main .ts-lp-all { color: var(--brand-sand, #F6BA65) !important; }
#ts-main .ts-related .ts-card-t { font-size: 17px; }

/* 404 / search */
#ts-main.ts-404 { padding: 0 20px 96px; text-align: center; }
#ts-main.ts-404 .ts-404-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 40px; }
#ts-main.ts-404 .ts-search { max-width: 36rem; margin: 0 auto 40px; }

/* ---------- Floating buttons: compact on desktop, never over content ---------- */
@media (min-width: 1024px) {
  #tsfab .fab { right: 14px !important; bottom: 18px !important; gap: 8px !important; }
  #tsfab .fab button, #tsfab .fab a.ts-fab-link { width: 48px; height: 48px; padding: 0 !important; border-radius: 50% !important; justify-content: center; position: relative; }
  #tsfab .fab button > span, #tsfab .fab a.ts-fab-link > span {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
    background: #121316; color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 8px; opacity: 0; transition: opacity .15s;
  }
  #tsfab .fab button:hover > span, #tsfab .fab button:focus-visible > span,
  #tsfab .fab a.ts-fab-link:hover > span, #tsfab .fab a.ts-fab-link:focus-visible > span { opacity: 1; }
}
body footer { padding-bottom: 96px; }
@media (max-width: 400px) {
  #ts-hdr { padding: 8px 8px 0; }
  #ts-hdr .ts-hdr-bar { padding: 6px 10px; gap: 8px; }
  #ts-hdr img.ts-logo { height: 32px !important; max-height: 32px !important; max-width: 124px !important; }
  #ts-hdr .ts-hdr-act { gap: 4px; }
}
/* Tight desktop: the menu has priority over the header button (it is in the hamburger menu and «צור קשר» is in the menu) */
html.ts-tight #ts-hdr a.ts-hdr-cta { display: none !important; }
@media (min-width: 1024px) and (max-width: 1500px) {
  #ts-hdr .ts-menu-desktop > .ts-mi > .ts-ml { padding-inline: 7px; }
  #ts-hdr .ts-hdr-bar { gap: 10px; }
}
/* Open hamburger menu: floating buttons step aside so every menu item stays tappable */
html.ts-mnav-open #tsfab .fab { display: none !important; }
#ts-main .ts-banner .ts-card-go.ts-btn-p, html[data-theme="dark"] #ts-main .ts-banner .ts-card-go.ts-btn-p { color: #fff !important; }
