/* ==========================================================================
   Shlomi Online v2 — Design System
   --------------------------------------------------------------------------
   כל הסגנונות של העיצוב החדש במקום אחד. כל המחלקות החדשות מתחילות ב-so-
   כדי לא להתנגש עם style.css / mobile-upgrade.css הישנים (שעדיין משרתים את
   עמודי page-*.php ואינדקס העסקים).

   1. Tokens            7. Home: updates / hero      13. Footer
   2. Base + resets     8. Sections / rail / grid    14. Tab bar (mobile)
   3. Utilities         9. Business band             15. Podcast player
   4. Buttons / chips  10. Services block            16. Legacy harmonization
   5. Header / nav     11. Archive pages             17. Motion / print
   6. Cards            12. Single post
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* colors */
  --so-ink: #0f1b2d;
  --so-navy: #14305a;
  --so-navy-2: #1b4a8f;
  --so-red: #c1272d;
  --so-red-dark: #9e1c22;
  --so-green: #0b6b5e;
  --so-amber: #f2b84b;
  --so-bg: #f5f6f8;
  --so-surface: #ffffff;
  --so-surface-2: #eef1f5;
  --so-line: #e2e6ec;
  --so-text: #16202e;
  --so-text-2: #465366;
  --so-muted: #5b6778;
  --so-on-dark: #ffffff;
  --so-on-dark-2: #c9d2df;
  --so-focus: #0b57d0;
  --so-focus-on-dark: #ffd166;

  /* typography */
  --so-font: "Heebo", system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --so-fs-xs: 0.8125rem;
  --so-fs-sm: 0.875rem;
  --so-fs-base: 1rem;
  --so-fs-md: 1.125rem;
  --so-fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --so-fs-xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem);
  --so-fs-2xl: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);

  /* spacing */
  --so-1: 4px;
  --so-2: 8px;
  --so-3: 12px;
  --so-4: 16px;
  --so-5: 24px;
  --so-6: 32px;
  --so-7: 48px;
  --so-8: 64px;
  --so-gutter: 16px;

  /* shape */
  --so-r-sm: 8px;
  --so-r-md: 12px;
  --so-r-lg: 16px;
  --so-r-pill: 999px;
  --so-shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --so-shadow-md: 0 6px 20px rgba(15, 27, 45, 0.1);
  --so-shadow-lg: 0 16px 40px rgba(15, 27, 45, 0.22);

  /* layout */
  --so-container: 1200px;
  --so-header-h: 56px;
  --so-tabbar-h: 60px;
}

@media (min-width: 768px) {
  :root {
    --so-gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --so-header-h: 68px;
  }
}

/* 2. Base + resets (scoped to the new markup)
   ========================================================================== */
body {
  font-family: var(--so-font);
}

body:has(> #page > .so-main) {
  background: var(--so-bg);
}

/* body מקבל את המחלקה single-post מוורדפרס, וה-CSS הישן עיצב אותה ככרטיס */
body.single-post {
  background: var(--so-bg);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.so-header,
.so-main,
.so-footer,
.so-tabbar {
  font-family: var(--so-font);
  font-size: var(--so-fs-base);
  line-height: 1.6;
  color: var(--so-text);
  -webkit-text-size-adjust: 100%;
}

.so-main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  padding-block: var(--so-5) var(--so-7);
  overflow-x: clip;
}

.so-main.so-home {
  padding-top: 0;
}

:where(.so-header, .so-main, .so-footer, .so-tabbar) a {
  color: inherit;
  text-decoration: none;
}

:where(.so-header, .so-main, .so-footer, .so-tabbar) [hidden] {
  display: none !important;
}

/* style.css הישן: h2 עם קו אדום תחתון, שוליים קבועים לכל הכותרות */
.so-header :where(h1, h2, h3, h4, p),
.so-footer :where(h1, h2, h3, h4, p),
.so-main :where(h1, h2, h3, h4):not(.comments-area *) {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  line-height: 1.3;
  color: inherit;
}

.so-main :where(p):not(.comments-area *) {
  margin: 0;
}

/* style.css + rtl.css הישנים: ul/ol עם שוליים וריפוד גלובליים */
body :is(.so-header, .so-main, .so-footer) :is(ul, ol):not(.comments-area *) {
  margin: 0;
  padding: 0;
  list-style: none;
}

body :is(.so-header, .so-main, .so-footer) li:not(.comments-area *) {
  margin-bottom: 0;
  line-height: inherit;
}

.so-img,
.so-logo__img,
.so-avatar {
  border-radius: 0;
}

/* Focus — נראה תמיד במקלדת, לא בלחיצת עכבר */
.so-header a:focus:not(:focus-visible),
.so-main a:focus:not(:focus-visible),
.so-footer a:focus:not(:focus-visible),
.so-tabbar a:focus:not(:focus-visible),
.so-header button:focus:not(:focus-visible),
.so-main button:focus:not(:focus-visible),
.so-tabbar button:focus:not(:focus-visible),
.podcast-player button:focus:not(:focus-visible) {
  outline: none;
}

.so-skip:focus-visible,
.so-header :focus-visible,
.so-main :focus-visible,
.so-tabbar :focus-visible {
  outline: 3px solid var(--so-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.so-footer :focus-visible,
.so-updates :focus-visible,
.so-band :focus-visible,
.so-svc--pod :focus-visible,
.so-svc--wa :focus-visible,
.podcast-player :focus-visible {
  outline: 3px solid var(--so-focus-on-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 3. Utilities
   ========================================================================== */
.so-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.so-skip {
  position: absolute;
  top: -80px;
  inset-inline-start: 8px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--so-ink);
  color: #fff;
  font-family: var(--so-font);
  font-weight: 700;
  border-radius: var(--so-r-sm);
  text-decoration: none;
}

.so-skip:focus {
  top: 8px;
  color: #fff;
}

.so-container {
  width: 100%;
  max-width: calc(var(--so-container) + 2 * var(--so-gutter));
  margin-inline: auto;
  padding-inline: var(--so-gutter);
}

.so-container--narrow {
  max-width: calc(760px + 2 * var(--so-gutter));
}

.so-kicker {
  display: inline-block;
  font-size: var(--so-fs-xs);
  font-weight: 700;
  line-height: 1.4;
  color: var(--so-red);
}

.so-kicker--solid {
  padding: 4px 10px;
  background: var(--so-red);
  color: #fff;
  border-radius: var(--so-r-pill);
}

a.so-kicker--solid:hover {
  background: var(--so-red-dark);
  color: #fff;
}

.so-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  font-size: var(--so-fs-xs);
  color: var(--so-muted);
}

.so-meta > * + *::before {
  content: "·";
  margin-inline-end: 6px;
}

.so-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: var(--so-fs-sm);
  font-weight: 700;
  color: var(--so-navy-2);
  white-space: nowrap;
}

.so-more:hover {
  color: var(--so-red);
  text-decoration: underline;
}

/* 4. Buttons / chips / inputs
   ========================================================================== */
.so-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--so-red);
  color: #fff;
  font-family: var(--so-font);
  font-size: var(--so-fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--so-r-md);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.so-btn:hover {
  background: var(--so-red-dark);
  color: #fff;
}

.so-btn--outline {
  background: transparent;
  color: var(--so-navy);
  border-color: var(--so-navy);
}

.so-btn--outline:hover {
  background: var(--so-navy);
  color: #fff;
}

.so-btn--light {
  background: #fff;
  color: var(--so-ink);
}

.so-btn--light:hover {
  background: var(--so-surface-2);
  color: var(--so-ink);
}

.so-btn--wa {
  background: var(--so-green);
}

.so-btn--wa:hover {
  background: #085248;
}

.so-btn--block {
  display: flex;
  width: 100%;
}

.so-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--so-ink);
  border: 0;
  border-radius: var(--so-r-md);
  cursor: pointer;
}

.so-iconbtn:hover,
.so-iconbtn[aria-expanded="true"] {
  background: var(--so-surface-2);
}

.so-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--so-fs-sm);
  font-weight: 700;
  color: var(--so-ink);
  background: var(--so-surface-2);
  border-radius: var(--so-r-pill);
  white-space: nowrap;
}

.so-chip:hover {
  background: var(--so-line);
}

.so-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  font-family: var(--so-font);
  font-size: 1rem; /* 16px — מונע זום אוטומטי ב-iOS */
  color: var(--so-text);
  background: #fff;
  border: 1.5px solid #8a95a5;
  border-radius: var(--so-r-md);
  text-align: start;
}

.so-input:focus {
  border-color: var(--so-focus);
}

/* 5. Header / nav
   ========================================================================== */
.so-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--so-surface);
  border-bottom: 1px solid var(--so-line);
}

.so-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--so-navy), var(--so-red));
}

.so-header__row {
  display: flex;
  align-items: center;
  gap: var(--so-2);
  min-height: var(--so-header-h);
}

.so-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: -8px;
  padding: 0;
  background: transparent;
  color: var(--so-ink);
  border: 0;
  border-radius: var(--so-r-md);
  cursor: pointer;
}

.so-burger:hover {
  background: var(--so-surface-2);
}

.so-burger__box {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.so-burger__box span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.so-burger__box span:nth-child(1) { top: 0; }
.so-burger__box span:nth-child(2) { top: 7px; }
.so-burger__box span:nth-child(3) { top: 14px; }

.so-burger[aria-expanded="true"] .so-burger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.so-burger[aria-expanded="true"] .so-burger__box span:nth-child(2) { opacity: 0; }
.so-burger[aria-expanded="true"] .so-burger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.so-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
}

.so-logo__img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 170px;
  object-fit: contain;
}

.so-logo__text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--so-navy);
  white-space: nowrap;
}

.so-header__tools {
  display: flex;
  align-items: center;
  gap: var(--so-1);
  margin-inline-start: auto;
}

.so-header__date {
  display: none;
  font-size: var(--so-fs-sm);
  color: var(--so-muted);
  white-space: nowrap;
}

/* Mobile drawer (same <nav> element as the desktop menu) */
.so-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--so-nav-top, 60px);
  bottom: 0;
  z-index: 1;
  padding: var(--so-4) var(--so-gutter) calc(var(--so-tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--so-5));
  background: var(--so-surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.so-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.so-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--so-ink);
  border-bottom: 1px solid var(--so-line);
}

.so-nav__link:hover,
.so-nav__link[aria-current] {
  color: var(--so-red);
}

.so-ext {
  font-size: 0.8em;
  color: var(--so-muted);
}

.so-nav__more {
  margin-top: var(--so-5);
}

.so-header .so-nav__heading {
  margin-bottom: var(--so-2);
  font-size: var(--so-fs-xs);
  font-weight: 700;
  color: var(--so-muted);
}

.so-nav__sublist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--so-4);
  margin-bottom: var(--so-5) !important;
}

.so-nav__sublink {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--so-fs-base);
  color: var(--so-text-2);
}

.so-nav__sublink:hover {
  color: var(--so-red);
}

body.so-lock {
  overflow: hidden;
}

/* Search panel */
.so-search {
  padding-block: var(--so-3);
  background: var(--so-surface);
  border-top: 1px solid var(--so-line);
}

.so-search__form {
  display: flex;
  gap: var(--so-2);
}

.so-search__form--page {
  max-width: 560px;
  margin-top: var(--so-4);
}

@media (min-width: 1024px) {
  .so-burger {
    display: none;
  }

  .so-header__row {
    gap: var(--so-5);
  }

  .so-logo__img {
    height: 54px;
    max-width: 220px;
  }

  .so-nav {
    position: static;
    flex: 1 1 auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .so-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .so-nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 12px;
    font-size: var(--so-fs-base);
    border-bottom: 0;
    border-radius: var(--so-r-sm);
    white-space: nowrap;
  }

  .so-nav__link:hover {
    background: var(--so-surface-2);
    color: var(--so-ink);
  }

  .so-nav__link[aria-current]::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 4px;
    height: 3px;
    background: var(--so-red);
    border-radius: 2px;
  }

  .so-nav__more {
    display: none;
  }

  .so-header__tools {
    gap: var(--so-2);
  }
}

@media (min-width: 1240px) {
  .so-header__date {
    display: block;
    margin-inline-end: var(--so-2);
  }
}

/* 6. Cards + image placeholder
   ========================================================================== */
.so-card {
  position: relative;
  min-width: 0;
}

.so-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--so-surface-2);
}

.so-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.so-card__media .so-img,
.so-lead__media .so-img,
.so-biz__media .so-img {
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.so-card:hover .so-card__media .so-img,
.so-lead:hover .so-lead__media .so-img,
.so-biz__link:hover .so-img {
  transform: scale(1.04);
}

.so-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.so-main .so-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--so-ink);
  overflow-wrap: anywhere;
}

.so-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* כל הכרטיס לחיץ דרך הקישור שבכותרת */
.so-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.so-card:hover .so-card__title a {
  color: var(--so-red);
}

.so-main .so-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: var(--so-fs-sm);
  line-height: 1.55;
  color: var(--so-text-2);
}

.so-card__excerpt mark {
  padding: 0 2px;
  background: #ffe58a;
  color: var(--so-ink);
  border-radius: 2px;
}

.so-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 2px 10px;
  background: var(--so-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--so-r-pill);
}

/* card — תמונה מעל */
.so-card--card {
  display: flex;
  flex-direction: column;
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-radius: var(--so-r-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.so-card--card:hover {
  border-color: #cfd6e0;
  box-shadow: var(--so-shadow-md);
}

.so-card--card .so-card__body {
  flex: 1 1 auto;
  padding: 14px 14px 16px;
}

.so-card--card .so-meta {
  margin-top: auto;
  padding-top: 4px;
}

/* row — תמונה בצד */
.so-card--row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-block: 14px;
  border-bottom: 1px solid var(--so-line);
}

.so-card--row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.so-card--row .so-card__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--so-r-sm);
}

.so-main .so-card--row .so-card__title {
  font-size: 1rem;
}

.so-card--row .so-ph__label {
  display: none;
}

.so-card--row .so-ph__icon {
  font-size: 1.75rem;
}

/* Placeholder — כשאין תמונה: גרדיאנט ממותג + שם המדור (אף פעם לא קופסה ריקה) */
.so-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: #fff;
  text-align: center;
  background-color: var(--so-navy);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16) 0, transparent 42%),
    radial-gradient(circle at 10% 95%, rgba(255, 255, 255, 0.1) 0, transparent 46%),
    linear-gradient(135deg, var(--so-ph-a, #14305a), var(--so-ph-b, #1b4a8f));
}

.so-ph--1 { --so-ph-a: #14305a; --so-ph-b: #1b4a8f; }
.so-ph--2 { --so-ph-a: #0f1b2d; --so-ph-b: #8f1d22; }
.so-ph--3 { --so-ph-a: #0b4f46; --so-ph-b: #14305a; }
.so-ph--4 { --so-ph-a: #2a2f5b; --so-ph-b: #5b2a6e; }

.so-ph__icon {
  font-size: 2.25rem;
  line-height: 1;
}

.so-ph__label {
  font-size: var(--so-fs-sm);
  font-weight: 700;
  line-height: 1.3;
}

/* 7. Home: updates strip + hero
   ========================================================================== */
.so-updates {
  background: var(--so-ink);
  color: #fff;
}

.so-updates__row {
  display: flex;
  align-items: center;
  gap: var(--so-3);
  min-height: 48px;
}

.so-updates__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 10px;
  background: var(--so-red);
  font-size: var(--so-fs-xs);
  font-weight: 700;
  border-radius: var(--so-r-pill);
}

.so-updates__dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: so-pulse 1.6s ease-in-out infinite;
}

@keyframes so-pulse {
  50% { opacity: 0.35; }
}

body .so-main .so-updates__list {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--so-5);
  margin-inline-end: calc(var(--so-gutter) * -1);
  padding-inline-end: var(--so-gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.so-updates__list::-webkit-scrollbar {
  display: none;
}

.so-updates__list li {
  flex: none;
  max-width: 78vw;
}

.so-updates__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: var(--so-fs-sm);
  font-weight: 500;
  color: #fff;
}

.so-updates__list a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-updates__list a:hover span {
  text-decoration: underline;
}

.so-updates__list time {
  flex: none;
  font-weight: 700;
  color: var(--so-amber);
  font-variant-numeric: tabular-nums;
}

.so-hero {
  display: grid;
  gap: var(--so-5);
  padding-top: var(--so-5);
}

.so-lead {
  position: relative;
  min-width: 0;
}

.so-lead__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-inline: 0;
  border-radius: var(--so-r-md, 12px);
  overflow: hidden;
  background: var(--so-surface-2);
}

.so-lead__media .so-ph__icon {
  font-size: 3.5rem;
}

.so-lead__media .so-ph__label {
  font-size: var(--so-fs-md);
}

.so-lead__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: var(--so-4);
}

.so-lead__body .so-kicker {
  position: relative;
  z-index: 2;
}

.so-main .so-lead__title {
  font-size: var(--so-fs-2xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--so-ink);
  overflow-wrap: anywhere;
}

.so-lead__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.so-lead:hover .so-lead__title a {
  color: var(--so-red);
}

.so-main .so-lead__excerpt {
  max-width: 62ch;
  font-size: var(--so-fs-md);
  line-height: 1.6;
  color: var(--so-text-2);
}

.so-hero__side {
  min-width: 0;
  padding: var(--so-4);
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-radius: var(--so-r-lg);
}

.so-main .so-hero__side-title {
  padding-bottom: 10px;
  font-size: var(--so-fs-sm);
  font-weight: 800;
  color: var(--so-red);
  border-bottom: 2px solid var(--so-ink);
}

@media (min-width: 768px) {
  .so-lead__media {
    margin-inline: 0;
    border-radius: var(--so-r-lg);
  }
}

@media (min-width: 1024px) {
  .so-hero {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: var(--so-6);
    align-items: start;
    padding-top: var(--so-6);
  }
}

/* 8. Sections / rail / grid
   ========================================================================== */
.so-section {
  margin-top: var(--so-7);
}

.so-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--so-3);
  margin-bottom: var(--so-4);
  border-bottom: 1px solid var(--so-line);
}

.so-main .so-section-title {
  position: relative;
  padding-block: 8px;
  padding-inline-start: 14px;
  font-size: var(--so-fs-lg);
  font-weight: 800;
  color: var(--so-ink);
}

.so-section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 5px;
  height: 1.1em;
  background: var(--so-red);
  border-radius: 3px;
  transform: translateY(-50%);
}

.so-main .so-section__foot {
  margin-top: var(--so-5);
  text-align: center;
}

/* Rail — גלילה אופקית במובייל, רשת בדסקטופ */
.so-rail {
  display: flex;
  gap: var(--so-3);
  margin-inline: calc(var(--so-gutter) * -1);
  padding-inline: var(--so-gutter);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--so-gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.so-rail::-webkit-scrollbar {
  display: none;
}

.so-rail > * {
  flex: 0 0 76%;
  max-width: 300px;
  scroll-snap-align: start;
}

.so-rail--biz > * {
  flex-basis: 54%;
  max-width: 220px;
}

@media (min-width: 900px) {
  .so-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--so-5);
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .so-rail > * {
    max-width: none;
  }

  .so-rail--biz {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--so-4);
  }
}

.so-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--so-3);
}

/* מובייל צר: כרטיסי הרשת הופכים לשורות קומפקטיות */
@media (max-width: 559px) {
  .so-grid .so-card--card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
  }

  .so-grid .so-card--card .so-card__media {
    aspect-ratio: auto;
    min-height: 100px;
    height: 100%;
  }

  .so-grid .so-card--card .so-card__body {
    padding: 12px;
  }

  .so-main .so-grid .so-card__title {
    font-size: 1rem;
  }

  .so-grid .so-card__excerpt,
  .so-grid .so-ph__label {
    display: none;
  }

  .so-grid .so-ph__icon {
    font-size: 1.75rem;
  }

  .so-grid .so-badge {
    top: 6px;
    inset-inline-start: 6px;
    padding: 1px 8px;
  }
}

@media (min-width: 560px) {
  .so-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--so-4);
  }
}

@media (min-width: 900px) {
  .so-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--so-5);
  }

  .so-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Banners inside the new layout */
.so-main .shlomi-banner {
  margin: var(--so-7) 0 0;
  text-align: center;
}

.so-main .shlomi-banner img {
  max-width: 100%;
  height: auto;
}

/* 9. Business band — "עסקים מומלצים"
   ========================================================================== */
.so-band {
  margin-top: var(--so-7);
  padding-block: var(--so-6);
  background: var(--so-ink);
  background-image: radial-gradient(circle at 90% 0, rgba(27, 74, 143, 0.55) 0, transparent 55%);
  color: var(--so-on-dark);
}

.so-band .so-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.so-main .so-band .so-section-title {
  color: #fff;
}

.so-band .so-more {
  color: var(--so-amber);
}

.so-biz {
  min-width: 0;
}

.so-biz__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--so-r-md);
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.so-biz__link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.so-biz__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.so-biz__media .so-ph__label {
  font-size: var(--so-fs-xs);
}

.so-biz__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.so-biz__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: var(--so-fs-base);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.so-biz__meta {
  font-size: var(--so-fs-xs);
  color: var(--so-on-dark-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-main .so-band__cta {
  margin-top: var(--so-4);
  font-size: var(--so-fs-sm);
  color: var(--so-on-dark-2);
}

.so-band__cta a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 700;
  color: var(--so-amber);
  text-decoration: underline;
}

/* 10. Services block — weather / podcast / WhatsApp
   ========================================================================== */
.so-services {
  margin-top: var(--so-7);
}

.so-services__grid {
  display: grid;
  gap: var(--so-4);
}

.so-svc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: var(--so-5);
  border-radius: var(--so-r-lg);
}

.so-svc .so-btn {
  margin-top: auto;
}

.so-svc__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.so-main .so-svc__title {
  font-size: var(--so-fs-md);
  font-weight: 800;
}

.so-main .so-svc__text {
  font-size: var(--so-fs-sm);
  line-height: 1.55;
}

.so-svc--wx {
  background: var(--so-surface);
  border: 1px solid var(--so-line);
}

.so-svc--pod {
  background: linear-gradient(135deg, var(--so-ink), var(--so-navy));
  color: #fff;
}

.so-svc--wa {
  background: var(--so-green);
  color: #fff;
}

.so-main .so-svc--pod .so-svc__text,
.so-main .so-svc--wa .so-svc__text {
  color: rgba(255, 255, 255, 0.92);
}

/* ווידג'ט מזג האוויר הקיים (inc/weather-widget.php) בתוך הבלוק */
.so-svc--wx .weather-mini {
  flex-wrap: wrap;
  row-gap: 4px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--so-ink), var(--so-navy));
  border-radius: var(--so-r-md);
  color: #fff;
}

.so-svc--wx .wm-range,
.so-svc--wx .wm-humidity {
  color: rgba(255, 255, 255, 0.85);
}

.so-svc--wx .wm-updated {
  color: rgba(255, 255, 255, 0.75);
}

.so-svc--wx .wm-more {
  color: var(--so-amber);
}

@media (min-width: 900px) {
  .so-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--so-5);
  }
}

/* 11. Archive pages — category / tag / author / search / paged home
   ========================================================================== */
.so-crumbs {
  margin-bottom: var(--so-3);
  font-size: var(--so-fs-sm);
  color: var(--so-muted);
}

body .so-main .so-crumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.so-crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
}

.so-crumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}

.so-crumbs li:last-child span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.so-crumbs li + li::before {
  content: "‹";
  color: #8a95a5;
}

.so-crumbs a {
  display: inline-block;
  padding-block: 10px;
  color: var(--so-text-2);
}

.so-crumbs a:hover {
  color: var(--so-red);
  text-decoration: underline;
}

.so-arch-head {
  display: flex;
  align-items: flex-start;
  gap: var(--so-4);
  margin-bottom: var(--so-5);
  padding: var(--so-5);
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-inline-start: 5px solid var(--so-red);
  border-radius: var(--so-r-lg);
}

.so-arch-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  line-height: 1;
  background: var(--so-surface-2);
  border-radius: var(--so-r-md);
}

.so-arch-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

.so-main .so-arch-head__title {
  font-size: var(--so-fs-xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--so-ink);
  overflow-wrap: anywhere;
}

.so-query {
  color: var(--so-red);
}

.so-arch-head__desc {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--so-text-2);
}

.so-arch-head__desc p + p {
  margin-top: 0.6em;
}

.so-main .so-arch-head__count {
  margin-top: 8px;
  font-size: var(--so-fs-sm);
  color: var(--so-muted);
}

.so-arch-head__count a {
  color: var(--so-navy-2);
  text-decoration: underline;
}

.so-subcats {
  margin-bottom: var(--so-5);
}

body .so-main .so-subcats ul {
  display: flex;
  gap: var(--so-2);
  margin-inline: calc(var(--so-gutter) * -1);
  padding-inline: var(--so-gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.so-subcats ul::-webkit-scrollbar {
  display: none;
}

body .so-main .so-subcats--center ul {
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--so-5) 0 0;
  padding: 0;
  overflow: visible;
}

.so-subcats a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: var(--so-fs-sm);
  font-weight: 600;
  color: var(--so-ink);
  background: var(--so-surface);
  border: 1px solid #c3cbd7;
  border-radius: var(--so-r-pill);
  white-space: nowrap;
}

.so-subcats a:hover {
  color: #fff;
  background: var(--so-navy);
  border-color: var(--so-navy);
}

.so-pagination {
  margin-top: var(--so-6);
}

.so-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.so-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  font-size: var(--so-fs-base);
  font-weight: 600;
  color: var(--so-ink);
  background: var(--so-surface);
  border: 1px solid #c3cbd7;
  border-radius: var(--so-r-md);
}

.so-pagination a.page-numbers:hover {
  color: #fff;
  background: var(--so-navy);
  border-color: var(--so-navy);
}

.so-pagination .page-numbers.current {
  color: #fff;
  background: var(--so-navy);
  border-color: var(--so-navy);
}

.so-pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}

.so-empty {
  max-width: 640px;
  margin: var(--so-6) auto;
  padding: var(--so-6) var(--so-5);
  text-align: center;
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-radius: var(--so-r-lg);
}

.so-main .so-empty__title {
  margin-bottom: 8px;
  font-size: var(--so-fs-lg);
  font-weight: 800;
  color: var(--so-ink);
}

.so-empty p {
  color: var(--so-text-2);
}

.so-empty .so-btn {
  margin-top: var(--so-4);
}

body .so-main .so-empty__tips {
  display: inline-block;
  margin-top: var(--so-3);
  padding-inline-start: 1.2em;
  text-align: start;
  list-style: disc;
  color: var(--so-text-2);
}

@media (max-width: 559px) {
  .so-arch-head {
    padding: var(--so-4);
  }

  .so-arch-head__icon {
    width: 44px;
    height: 44px;
    font-size: 1.375rem;
  }

  .so-arch-head--author {
    flex-direction: column;
  }
}

/* 12. Single post
   ========================================================================== */
.so-article__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--so-3);
}

.so-main .so-article__title {
  font-size: var(--so-fs-2xl);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--so-ink);
  overflow-wrap: anywhere;
}

.so-main .so-article__dek {
  font-size: var(--so-fs-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--so-text-2);
}

.so-byline {
  display: flex;
  align-items: center;
  gap: var(--so-3);
  width: 100%;
  padding-block: var(--so-3);
  border-block: 1px solid var(--so-line);
}

.so-byline__text {
  min-width: 0;
}

.so-byline__author {
  display: inline-block;
  padding-block: 4px;
  font-weight: 700;
  color: var(--so-ink);
}

.so-byline__author:hover {
  color: var(--so-red);
}

.so-avatar {
  display: block;
  flex: none;
  object-fit: cover;
  background: var(--so-surface);
  border-radius: 50%;
}

.so-avatar--site {
  padding: 3px;
  object-fit: contain;
  border: 1px solid var(--so-line);
}

.so-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--so-navy);
  color: #fff;
  font-weight: 800;
}

.so-article__figure {
  margin: var(--so-5) calc(var(--so-gutter) * -1) 0;
}

.so-article__figure .so-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: var(--so-surface-2);
}

.so-article__figure figcaption {
  padding: 8px var(--so-gutter) 0;
  font-size: var(--so-fs-sm);
  line-height: 1.5;
  color: var(--so-muted);
}

@media (min-width: 768px) {
  .so-article__figure {
    margin-inline: 0;
  }

  .so-article__figure .so-img {
    border-radius: var(--so-r-lg);
  }

  .so-article__figure figcaption {
    padding-inline: 0;
  }
}

/* גוף הכתבה — מידה קריאה (~68 תווים בשורה) */
.so-main .so-prose {
  max-width: 68ch;
  margin-top: var(--so-5);
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--so-text);
  overflow-wrap: break-word;
}

.so-main .so-prose > * + * {
  margin-top: 1.15em;
}

.so-main .so-prose p {
  margin-bottom: 0;
}

.so-main .so-prose :is(h2, h3, h4) {
  margin: 1.8em 0 0;
  padding: 0;
  border: 0;
  font-weight: 800;
  line-height: 1.3;
  color: var(--so-ink);
}

.so-main .so-prose h2 { font-size: 1.5rem; }
.so-main .so-prose h3 { font-size: 1.25rem; }
.so-main .so-prose h4 { font-size: 1.125rem; }

.so-main .so-prose a {
  color: var(--so-navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.so-main .so-prose a:hover {
  color: var(--so-red);
}

body .so-main .so-prose :is(ul, ol) {
  margin-bottom: 0;
  padding-inline-start: 1.4em;
  padding-inline-end: 0;
}

body .so-main .so-prose ul { list-style: disc; }
body .so-main .so-prose ol { list-style: decimal; }

body .so-main .so-prose li {
  margin-bottom: 0.4em;
  line-height: inherit;
}

.so-main .so-prose blockquote {
  margin-inline: 0;
  padding: var(--so-3) var(--so-4);
  background: var(--so-surface);
  border: 0;
  border-inline-start: 4px solid var(--so-red);
  border-radius: var(--so-r-sm);
  color: var(--so-text-2);
}

.so-main .so-prose img {
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--so-r-md);
}

.so-main .so-prose figure {
  max-width: 100%;
  margin-inline: 0;
}

.so-main .so-prose figcaption,
.so-main .so-prose .wp-caption-text {
  margin-top: 6px;
  font-size: var(--so-fs-sm);
  color: var(--so-muted);
}

.so-main .so-prose :is(iframe, video, embed, object) {
  max-width: 100%;
}

.so-main .so-prose .shlomi-banner {
  margin-top: var(--so-5);
}

.so-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: var(--so-5);
  font-weight: 700;
}

.so-article__foot {
  display: flex;
  flex-direction: column;
  gap: var(--so-5);
  margin-top: var(--so-6);
}

body .so-main .so-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--so-2);
}

.so-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: var(--so-fs-sm);
  font-weight: 600;
  color: var(--so-text-2);
  background: var(--so-surface);
  border: 1px solid #c3cbd7;
  border-radius: var(--so-r-pill);
}

.so-tags a::before {
  content: "#";
  margin-inline-end: 2px;
  color: var(--so-red);
}

.so-tags a:hover {
  color: var(--so-ink);
  border-color: var(--so-ink);
}

.so-share {
  padding: var(--so-4);
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-radius: var(--so-r-lg);
}

.so-share__label {
  display: block;
  margin-bottom: 10px;
  font-size: var(--so-fs-sm);
  font-weight: 800;
  color: var(--so-ink);
}

.so-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--so-2);
}

.so-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 110px;
  min-height: 46px;
  padding: 0 16px;
  font-family: var(--so-font);
  font-size: var(--so-fs-base);
  font-weight: 700;
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--so-r-md);
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.so-share__btn:hover {
  filter: brightness(0.9);
  color: #fff;
}

.so-share__btn--wa { background: var(--so-green); }
.so-share__btn--fb { background: #1459b8; }

.so-share__btn--copy {
  background: transparent;
  color: var(--so-navy);
  border-color: var(--so-navy);
}

.so-share__btn--copy:hover,
.so-share__btn--copy.is-copied {
  background: var(--so-navy);
  color: #fff;
  filter: none;
}

.so-author {
  display: flex;
  align-items: flex-start;
  gap: var(--so-4);
  margin-top: var(--so-6);
  padding: var(--so-5);
  background: var(--so-surface);
  border: 1px solid var(--so-line);
  border-radius: var(--so-r-lg);
}

.so-author__body {
  min-width: 0;
}

.so-main .so-author__name {
  font-size: var(--so-fs-md);
  font-weight: 800;
  color: var(--so-ink);
}

.so-main .so-author__bio {
  margin-top: 4px;
  font-size: var(--so-fs-sm);
  color: var(--so-text-2);
}

.so-related .so-grid--3 {
  gap: var(--so-3);
}

@media (min-width: 560px) {
  .so-related .so-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--so-4);
  }
}

/* תגובות קיימות (comments.php נשאר כמו שהוא) */
.so-main .comments-area {
  margin-top: var(--so-6);
}

/* 13. Footer
   ========================================================================== */
.so-footer {
  flex-shrink: 0;
  padding-block: var(--so-7) var(--so-5);
  background: var(--so-ink);
  color: var(--so-on-dark-2);
  font-size: var(--so-fs-sm);
}

.so-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--so-6) var(--so-4);
}

.so-footer__brand {
  grid-column: 1 / -1;
}

.so-footer__logo {
  font-size: 1.375rem;
  font-weight: 900;
  color: #fff;
}

.so-footer .so-footer__desc {
  max-width: 44ch;
  margin-top: 8px;
  line-height: 1.6;
}

body .so-footer .so-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--so-2);
  margin-top: var(--so-4);
}

.so-footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--so-r-pill);
}

.so-footer__social a:hover {
  background: #fff;
  color: var(--so-ink);
}

.so-footer .so-footer__title {
  margin-bottom: 4px;
  font-size: var(--so-fs-sm);
  font-weight: 800;
  color: #fff;
}

.so-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--so-on-dark-2);
}

.so-footer__col a:hover,
.so-footer__bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.so-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--so-2) var(--so-5);
  margin-top: var(--so-6);
  padding-top: var(--so-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--so-fs-xs);
}

.so-footer__bottom a {
  display: inline-block;
  padding-block: 8px;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 900px) {
  .so-footer__grid {
    grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
    gap: var(--so-6);
  }

  .so-footer__brand {
    grid-column: auto;
  }

  .so-footer__col a {
    min-height: 34px;
  }
}

/* 14. Tab bar — הסרגל התחתון היחיד במובייל
   ========================================================================== */
.so-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .so-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--so-surface);
    border-top: 1px solid var(--so-line);
    box-shadow: 0 -4px 16px rgba(15, 27, 45, 0.06);
  }

  .so-tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    height: var(--so-tabbar-h);
    padding: 0 2px;
    background: transparent;
    color: var(--so-text-2);
    font-family: var(--so-font);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    border: 0;
    cursor: pointer;
  }

  .so-tabbar__item[aria-current],
  .so-tabbar__item[aria-expanded="true"] {
    color: var(--so-red);
  }

  .so-tabbar__item[aria-current]::before,
  .so-tabbar__item[aria-expanded="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 22%;
    height: 3px;
    background: var(--so-red);
    border-radius: 0 0 3px 3px;
  }

  /* נקודה כשהפודקאסט מתנגן */
  .so-tabbar__item.is-playing::after {
    content: "";
    position: absolute;
    top: 9px;
    inset-inline-end: calc(50% - 16px);
    width: 8px;
    height: 8px;
    background: var(--so-red);
    border: 2px solid var(--so-surface);
    border-radius: 50%;
    box-sizing: content-box;
  }

  body:not(.single-business) {
    padding-bottom: calc(var(--so-tabbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* 15. Podcast player (הועבר מ-template-parts/podcast-player.php)
   ========================================================================== */
.podcast-player {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1002;
  font-family: var(--so-font);
  direction: rtl;
}

.podcast-player button {
  font-family: inherit;
  cursor: pointer;
}

.podcast-player .podcast-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--so-ink);
  color: #fff;
  font-size: var(--so-fs-sm);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--so-r-pill);
  box-shadow: var(--so-shadow-md);
}

.podcast-player .podcast-toggle:hover {
  background: var(--so-navy);
}

.podcast-player.playing .podcast-toggle {
  background: var(--so-red);
}

.podcast-player .toggle-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.podcast-player .podcast-expanded {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 140px);
  padding: var(--so-4);
  background: var(--so-ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--so-r-lg);
  box-shadow: var(--so-shadow-lg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.podcast-player.expanded .podcast-expanded {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.podcast-player .podcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--so-2);
  margin-bottom: var(--so-3);
}

.podcast-player .podcast-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--so-fs-sm);
  font-weight: 700;
  color: var(--so-amber);
}

.podcast-player .podcast-minimize,
.podcast-player .volume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0;
  border-radius: 50%;
}

.podcast-player .podcast-minimize:hover,
.podcast-player .volume-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.podcast-player .podcast-episode {
  display: flex;
  align-items: center;
  gap: var(--so-3);
  margin-bottom: var(--so-3);
}

.podcast-player .art-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--so-navy-2), var(--so-red));
  border-radius: var(--so-r-md);
  overflow: hidden;
}

.podcast-player .art-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.podcast-player .sound-waves {
  position: absolute;
  inset-inline: 0;
  bottom: 5px;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.podcast-player.playing .sound-waves {
  display: flex;
}

.podcast-player.playing .art-icon {
  transform: translateY(-6px);
}

.podcast-player .sound-waves span {
  width: 3px;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transform-origin: bottom;
  animation: so-wave 0.9s ease-in-out infinite;
}

.podcast-player .sound-waves span:nth-child(2) { animation-delay: 0.15s; }
.podcast-player .sound-waves span:nth-child(3) { animation-delay: 0.3s; }
.podcast-player .sound-waves span:nth-child(4) { animation-delay: 0.45s; }
.podcast-player .sound-waves span:nth-child(5) { animation-delay: 0.6s; }

@keyframes so-wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.podcast-player .episode-info {
  flex: 1 1 auto;
  min-width: 0;
}

.podcast-player .episode-title {
  margin: 0;
  font-size: var(--so-fs-base);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.podcast-player .episode-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: var(--so-fs-xs);
  line-height: 1.45;
  color: var(--so-on-dark-2);
}

.podcast-player .progress-bar {
  position: relative;
  height: 6px;
  margin-block: 12px 8px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  cursor: pointer;
  touch-action: none;
}

/* אזור מגע גדול יותר מהפס עצמו */
.podcast-player .progress-bar::before {
  content: "";
  position: absolute;
  inset: -14px 0;
}

.podcast-player .progress-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  background: var(--so-amber);
  border-radius: 3px;
}

.podcast-player .progress-handle {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.podcast-player .progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--so-on-dark-2);
}

.podcast-player .podcast-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--so-2);
  margin-block: var(--so-2);
  direction: ltr; /* סדר כפתורי נגן מקובל: הקודם משמאל, הבא מימין */
}

.podcast-player .ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 50%;
}

.podcast-player .ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.podcast-player .ctrl-play {
  width: 56px;
  height: 56px;
  background: #fff;
  color: var(--so-ink);
}

.podcast-player .ctrl-play:hover {
  background: var(--so-amber);
}

.podcast-player .icon-pause,
.podcast-player.playing .icon-play,
.podcast-player .icon-muted,
.podcast-player.is-muted .icon-volume {
  display: none;
}

.podcast-player.playing .icon-pause,
.podcast-player.is-muted .icon-muted {
  display: block;
}

.podcast-player .podcast-volume {
  display: flex;
  align-items: center;
  gap: var(--so-2);
}

.podcast-player .volume-slider {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  accent-color: var(--so-amber);
}

.podcast-player .episodes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: var(--so-2);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--so-fs-sm);
  font-weight: 600;
  border: 0;
  border-radius: var(--so-r-sm);
}

.podcast-player .episodes-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.podcast-player .episodes-toggle svg {
  transition: transform 0.2s ease;
}

.podcast-player .episodes-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.podcast-player .episodes-list {
  max-height: 200px;
  margin-top: var(--so-2);
  overflow-y: auto;
}

.podcast-player .episodes-list[hidden] {
  display: none;
}

.podcast-player .episode-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  background: transparent;
  color: #fff;
  font-size: var(--so-fs-sm);
  text-align: start;
  border: 0;
  border-radius: var(--so-r-sm);
}

.podcast-player .episode-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.podcast-player .episode-item.active {
  background: rgba(242, 184, 75, 0.16);
}

.podcast-player .ep-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.podcast-player .episode-item.active .ep-number {
  background: var(--so-amber);
  color: var(--so-ink);
}

.podcast-player .ep-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podcast-player .ep-duration {
  flex: none;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--so-on-dark-2);
}

/* מובייל: בלי כפתור צף — הנגן נפתח מהסרגל התחתון כגיליון מעליו */
@media (max-width: 768px) {
  .podcast-player {
    position: static;
  }

  .podcast-player .podcast-toggle {
    display: none;
  }

  .podcast-player .podcast-expanded {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(var(--so-tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 1002;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--so-tabbar-h) - 100px);
  }

  .single-business .podcast-player .podcast-expanded {
    bottom: 8px;
  }
}

/* 16. Legacy harmonization
   ========================================================================== */
/* mobile-upgrade.css: main#main-content{padding:0 8px!important} */
main#main-content.so-main {
  padding-inline: 0 !important;
}

/* כפתור "חזרה למעלה" של scripts.js: לא במובייל (סרגל תחתון יחיד), ובדסקטופ מעל כפתור הפודקאסט */
@media (max-width: 768px) {
  #back-to-top {
    display: none !important;
  }
}

@media (min-width: 769px) {
  body.rtl #back-to-top,
  #back-to-top {
    bottom: 84px;
  }
}

/* עמודי אינדקס העסקים מבודדים את עצמם עם ניווט משלהם (template-parts/business-nav.php)
   — כמו שהסתירו את ‎.site-header‎ ואת ‎.shlomi-action-bar‎ הישנים */
/* v3: אינדקס העסקים משתמש ב-header וב-tab bar של האתר (ראו css/directory.css) — כלל ההסתרה הוסר */

.admin-bar .so-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .so-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .so-header {
    top: 0;
  }
}

/* 17. Motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .so-header *,
  .so-header *::before,
  .so-header *::after,
  .so-main *,
  .so-main *::before,
  .so-main *::after,
  .so-footer *,
  .so-tabbar *,
  .podcast-player *,
  .podcast-player *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .so-card:hover .so-card__media .so-img,
  .so-lead:hover .so-lead__media .so-img,
  .so-biz__link:hover .so-img {
    transform: none;
  }

  .so-rail {
    scroll-snap-type: none;
  }
}

@media print {
  .so-header,
  .so-footer,
  .so-tabbar,
  .so-skip,
  .so-share,
  .so-related,
  .so-updates,
  .so-band,
  .so-services,
  .podcast-player {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
    background: #fff !important;
  }

  .so-main .so-prose {
    max-width: none;
    font-size: 12pt;
  }

  /* style.css הישן מדפיס את כתובת הקישור אחרי כל קישור */
  .so-main a[href]::after {
    content: none;
  }
}

/* תאריך פרק בנגן */
.podcast-player .episode-date { margin: 0 0 2px; font-size: 12px; font-weight: 600; opacity: .8; }
.podcast-player .ep-date { font-size: 11px; opacity: .7; white-space: nowrap; margin-inline-start: auto; padding-inline-end: 8px; }

/* ===== Primary menu with sub-menus (from Appearance → Menus) ===== */
.so-nav__item {
  position: relative;
}

.so-nav__item--parent {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--so-line);
}

.so-nav__item--parent > .so-nav__link {
  border-bottom: 0;
}

.so-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--so-r-sm);
  background: transparent;
  color: var(--so-muted);
  cursor: pointer;
}

.so-nav__toggle svg {
  transition: transform 0.18s ease;
}

.so-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.so-nav__toggle:focus-visible {
  outline: 2px solid var(--so-navy-2);
  outline-offset: 2px;
}

.so-nav__dd {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--so-4);
  padding: 0 0 var(--so-3) !important;
  margin: 0 !important;
}

.so-nav__item.is-open > .so-nav__dd {
  display: grid;
}

.so-nav__ddlink {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: var(--so-fs-base);
  color: var(--so-text-2);
}

.so-nav__ddlink:hover,
.so-nav__ddlink[aria-current] {
  color: var(--so-red);
}

@media (max-width: 380px) {
  .so-nav__dd {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .so-nav__list--dd {
    gap: 0;
  }

  .so-nav__item--parent {
    display: flex;
    align-items: center;
    border-bottom: 0;
  }

  .so-nav__item--parent > .so-nav__link {
    padding-inline-end: 2px;
  }

  .so-nav__toggle {
    width: 22px;
    height: 44px;
  }

  .so-nav__item.is-active > .so-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 4px;
    height: 3px;
    background: var(--so-red);
    border-radius: 2px;
  }

  .so-nav__dd {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 30;
    display: block;
    min-width: 230px;
    padding: var(--so-2) !important;
    background: var(--so-surface);
    border: 1px solid var(--so-line);
    border-radius: var(--so-r-md, 12px);
    box-shadow: 0 14px 34px rgba(15, 31, 77, 0.14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }

  .so-nav__item--parent:hover > .so-nav__dd,
  .so-nav__item--parent:focus-within > .so-nav__dd,
  .so-nav__item.is-open > .so-nav__dd {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .so-nav__dd::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -10px;
    height: 10px;
  }

  .so-nav__ddlink {
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--so-r-sm);
    white-space: nowrap;
  }

  .so-nav__ddlink:hover {
    background: var(--so-surface-2);
    color: var(--so-ink);
  }
}
