/* ==========================================================================
   YM Starter — main.css
   בסיס, הדר, פוטר, טיפוגרפיית תוכן. עובד RTL-first עם מאפיינים לוגיים.
   ========================================================================== */

/* ---------- Reset בסיסי ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 0.1875rem solid var(--accent); outline-offset: 0.125rem; border-radius: 0.125rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--sp-4); }

/* ---------- מיכלים ---------- */
.ym-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.ym-container--narrow { max-width: var(--container-narrow); }

.ym-section { padding-block: var(--section-pad); }

/* ---------- כפתורים ---------- */
.ym-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8em 1.7em;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-0.125rem); box-shadow: var(--shadow-md); }

.ym-btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 0.125rem var(--line);
}
.ym-btn--ghost:hover { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 0.125rem var(--accent); }

/* ==========================================================================
   הדר
   ========================================================================== */
.ym-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-top: 0.1875rem solid var(--accent);
  border-bottom: 0.0625rem solid var(--line);
  transition: box-shadow var(--tr-med);
}
.ym-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}
.ym-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* --- טלפון + CTA בהדר --- */
.ym-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-inline-start: auto;
}
.ym-header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.ym-header__phone svg { color: var(--accent); flex-shrink: 0; width: 1.125rem; height: 1.125rem; }
.ym-header__phone:hover { color: var(--accent); }

.ym-header__cta {
  font-size: 0.9375rem;
  padding: 0.65em 1.5em;
  white-space: nowrap;
}

@media (max-width: 64rem) {
  .ym-header__actions { margin-inline-start: 0; }
  .ym-header__cta { display: none; }         /* במובייל: רק אייקון טלפון */
  .ym-header__phone span { display: none; }
  .ym-header__phone svg { width: 1.375rem; height: 1.375rem; }
}

/* רשת ביטחון להדר מותאם (custom) בנייד:
   הדרים מותאמים משתמשים במחלקות משלהם ולכן לא מקבלים את הגנות המובייל
   של ההדר הרגיל. כאן מחילים את אותן הגנות דרך המחלקות הקבועות של
   האלמנטים המוזרקים ({{ym_*}}), כדי למנוע גלישה אופקית במסכים צרים. */
@media (max-width: 48rem) {
  .ym-header--custom .ym-cart,
  .ym-header--custom .ym-account,
  .ym-header--custom .ym-search__toggle { width: 2.4rem; height: 2.4rem; }
}

/* אופציה: הסתרת אייקוני "החשבון שלי" ורשימת משאלות בנייד
   (זמינים ממילא בתפריט/מגירת הנייד). חל על הדר רגיל ומותאם כאחד.
   מסתירים את האייקון עצמו (בטוח לכל מבנה), ובנוסף מכווצים span עוטף
   בהדר מותאם כדי שלא יישאר רווח מיותר. בוחרים span בכוונה — מיכל
   הפעולות הוא תמיד div, כך שלא נסתיר בטעות את כל אזור הפעולות. */
@media (max-width: 48rem) {
  body.ym-hide-mobile-secondary .ym-header .ym-account,
  body.ym-hide-mobile-secondary .ym-header .ym-wishlink { display: none; }
  body.ym-hide-mobile-secondary .ym-header--custom span:has(> .ym-account),
  body.ym-hide-mobile-secondary .ym-header--custom span:has(> .ym-wishlink) { display: none; }
}

.ym-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

.ym-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
}
.ym-header__brand img { max-height: 2.75rem; width: auto; }

/* --- ניווט ראשי --- */
.ym-nav { display: flex; align-items: center; }

.ym-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.ym-nav li { position: relative; }

.ym-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.ym-nav a:hover,
.ym-nav .current-menu-item > a,
.ym-nav .current-menu-ancestor > a { color: var(--accent); background: rgba(79, 79, 229, 0.07); }

/* חץ לפריט עם תת-תפריט */
.ym-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-inline-start: 0.4em;
  border-inline-end: 0.125rem solid currentColor;
  border-bottom: 0.125rem solid currentColor;
  transform: rotate(45deg) translateY(-0.125rem);
  transition: transform var(--tr-fast);
}

/* --- תת-תפריט (דסקטופ) --- */
@media (min-width: 64.0625rem) {
  .ym-nav .sub-menu {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 0.5rem);
    min-width: 13.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 0.0625rem solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity var(--tr-fast), transform var(--tr-fast), visibility var(--tr-fast);
  }
  .ym-nav li:hover > .sub-menu,
  .ym-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .ym-nav .sub-menu a { padding: var(--sp-2) var(--sp-3); font-weight: 400; }
}

/* --- כפתור המבורגר --- */
.ym-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ym-burger span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 0.125rem;
  transition: transform var(--tr-med), opacity var(--tr-med);
}
.ym-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.ym-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ym-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* --- מובייל --- */
@media (max-width: 64rem) {
  .ym-burger { display: flex; }

  .ym-nav {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    background: var(--surface);
    border-top: 0.0625rem solid var(--line);
    padding: var(--sp-4) var(--container-pad) var(--sp-16);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity var(--tr-med), transform var(--tr-med), visibility var(--tr-med);
  }
  .ym-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .ym-nav ul { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .ym-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem var(--sp-2);
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 0.0625rem solid var(--line);
    border-radius: 0;
    background: none;
  }
  .ym-nav a:hover,
  .ym-nav .current-menu-item > a { background: none; }

  .ym-nav .sub-menu {
    display: none;
    padding-inline-start: var(--sp-4);
  }
  .ym-nav .sub-menu a { font-size: 1.0625rem; font-weight: 400; }
  .ym-nav li.is-sub-open > .sub-menu { display: block; }
  .ym-nav li.is-sub-open > a::after { transform: rotate(225deg) translateY(-0.125rem); }

  body.ym-nav-locked { overflow: hidden; }
}

/* ==========================================================================
   פוטר
   ========================================================================== */
.ym-footer {
  --f-bg: var(--footer-bg, var(--bg-deep));
  --f-ink: var(--footer-ink, var(--ink-invert));
  background: var(--f-bg);
  color: var(--f-ink);
  margin-top: auto;
}

.ym-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  padding-block: var(--sp-16) var(--sp-12);
}
@media (max-width: 48rem) {
  .ym-footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); padding-block: var(--sp-12) var(--sp-8); }
}

.ym-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--f-ink);
  margin-bottom: var(--sp-3);
}
.ym-footer__about { color: color-mix(in srgb, var(--f-ink) 72%, transparent); max-width: 26rem; }

.ym-footer__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--sp-4);
}

.ym-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.ym-footer ul a { color: color-mix(in srgb, var(--f-ink) 80%, transparent); }
.ym-footer ul a:hover { color: var(--f-ink); }

.ym-footer__bottom {
  border-top: 0.0625rem solid color-mix(in srgb, var(--f-ink) 12%, transparent);
  padding-block: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: color-mix(in srgb, var(--f-ink) 60%, transparent);
}
.ym-footer__bottom a { color: color-mix(in srgb, var(--f-ink) 85%, transparent); }
.ym-footer__bottom a:hover { color: var(--lime); }

/* פריסת עמוד מלאה — פוטר תמיד למטה */
.ym-page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.ym-main { flex: 1; }

/* ==========================================================================
   תוכן (entry-content) — טיפוגרפיה לעמודים ופוסטים
   ========================================================================== */
.ym-entry-header { padding-block: var(--sp-12) var(--sp-6); }
.ym-entry-header h1 { margin-bottom: var(--sp-2); }
.ym-entry-meta { color: var(--ink-soft); font-size: var(--fs-small); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.ym-content h2 { margin-top: var(--sp-12); }
.ym-content h3 { margin-top: var(--sp-8); }

.ym-content ul, .ym-content ol { margin: 0 0 var(--sp-6); padding-inline-start: 1.4em; }
.ym-content li { margin-bottom: var(--sp-2); }
.ym-content li::marker { color: var(--accent); }

.ym-content blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-4) var(--sp-6);
  border-inline-start: 0.25rem solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
[dir="rtl"] .ym-content blockquote { border-radius: var(--radius-md) 0 0 var(--radius-md); }

.ym-content img { border-radius: var(--radius-md); margin-block: var(--sp-6); }

.ym-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--sp-8);
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}
.ym-content th {
  background: var(--ink);
  color: #fff;
  text-align: start;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
}
.ym-content td { padding: var(--sp-3) var(--sp-4); border-bottom: 0.0625rem solid var(--line); }
.ym-content tr:last-child td { border-bottom: 0; }

.ym-content pre {
  background: var(--bg-deep);
  color: var(--ink-invert);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: 0.9375rem;
}
.ym-content code { background: rgba(79, 79, 229, 0.08); color: var(--accent-hover); padding: 0.15em 0.4em; border-radius: 0.3em; direction: ltr; unicode-bidi: embed; }
.ym-content pre code { background: none; color: inherit; padding: 0; }

.ym-content hr { border: 0; border-top: 0.0625rem solid var(--line); margin-block: var(--sp-12); }

/* יישור תמונות של וורדפרס */
.alignwide { margin-inline: calc(-1 * var(--sp-8)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-inline: auto; }

/* ==========================================================================
   רשימת פוסטים (index / archive) — בסיסי לשלב 1
   ========================================================================== */
.ym-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-8) var(--sp-16);
}

.ym-card {
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }

.ym-card__thumb { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ym-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.ym-card__title { font-size: 1.25rem; margin: 0; }
.ym-card__title a { color: var(--ink); }
.ym-card__title a:hover { color: var(--accent); }
.ym-card__excerpt { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.ym-card__more { margin-top: auto; font-weight: 600; font-size: 0.9375rem; }

/* עימוד */
.ym-pagination { display: flex; justify-content: center; gap: var(--sp-2); padding-bottom: var(--sp-16); }
.ym-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.ym-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.ym-pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* הגנה: הסתרת פסקאות ריקות שוורדפרס מייצר סביב HTML מודבק */
.ym-main > p:empty { display: none; margin: 0; }

/* ==========================================================================
   באנר קוקיז
   ========================================================================== */
.ym-cookie {
  position: fixed;
  inset-inline: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 900;
  max-width: 30rem;
  margin-inline-start: auto;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-top: 0.1875rem solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity var(--tr-med), transform var(--tr-med), visibility var(--tr-med);
}
.ym-cookie.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ym-cookie__close {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.ym-cookie__close:hover { background: var(--bg); color: var(--ink); }
.ym-cookie__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--sp-2);
}
.ym-cookie__text {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
}
.ym-cookie__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.ym-cookie__actions { display: flex; align-items: center; gap: var(--sp-4); }
.ym-cookie__accept {
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.6em 1.6em;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast);
}
.ym-cookie__accept:hover { background: var(--accent-hover); transform: translateY(-0.125rem); }

@media (max-width: 40rem) {
  .ym-cookie { inset-inline: var(--sp-3); bottom: var(--sp-3); max-width: none; }
}

/* ==========================================================================
   רשתות חברתיות (פוטר)
   ========================================================================== */
.ym-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}
.ym-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--f-ink) 9%, transparent);
  color: var(--f-ink);
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.ym-social a:hover { background: var(--accent); color: #fff; transform: translateY(-0.125rem); }
.ym-social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

.ym-cookie--center { margin-inline: auto; max-width: 34rem; }
@media (max-width: 40rem) {
  .ym-cookie { margin-inline: auto; max-width: none; }
}

.admin-bar .ym-header { top: var(--wp-admin--admin-bar--height, 2rem); }

/* ==========================================================================
   YM Forms
   ========================================================================== */
.ym-form { max-width: 42rem; }
.ym-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 40rem) { .ym-form__grid { grid-template-columns: 1fr; } }
.ym-form__field { display: flex; flex-direction: column; gap: var(--sp-2); }
.ym-form__field--full { grid-column: 1 / -1; }
.ym-form__label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.ym-form__req { color: var(--accent); margin-inline-start: 0.2em; }
.ym-form__input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8em 1em;
  width: 100%;
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-form__input::placeholder { color: var(--ink-soft); opacity: 1; }
.ym-form__input:hover:not(:focus) { border-color: color-mix(in srgb, var(--ink-soft) 45%, var(--line)); }
.ym-form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--accent) 18%, transparent);
}
.is-validated .ym-form__input:invalid { border-color: var(--error); }
textarea.ym-form__input { resize: vertical; min-height: 8rem; }
.ym-form__consent {
  display: flex;
  gap: var(--sp-3);
  align-items: start;
  margin-block: var(--sp-6) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  cursor: pointer;
}
.ym-form__consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin: 0.1rem 0 0;
  border: 0.125rem solid color-mix(in srgb, var(--ink-soft) 45%, var(--line));
  background-color: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-form__consent input:hover:not(:checked) {
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.ym-form__consent input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.75rem 0.75rem;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0.25rem 0.5rem -0.125rem color-mix(in srgb, var(--accent) 40%, transparent);
}
.ym-form__consent input:focus-visible {
  outline: 0.1875rem solid var(--lime);
  outline-offset: 0.1875rem;
}
.ym-form__consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.ym-form__submit { margin-top: var(--sp-2); }
.ym-form__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ym-form__msg { margin-top: var(--sp-4); font-weight: 600; min-height: 1.5em; }
.ym-form__msg.is-success {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  border: 0.0625rem solid color-mix(in srgb, var(--success) 30%, transparent);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.ym-form__msg.is-success::before { content: "✓"; font-weight: 800; }
.ym-form__msg.is-error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, transparent);
  border: 0.0625rem solid color-mix(in srgb, var(--error) 25%, transparent);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
}
.ymf-hp { position: absolute; inset-inline-start: -624.9375rem; opacity: 0; pointer-events: none; }

/* טופס על רקע כהה — רק הטקסטים מסביב מתאימים את עצמם; השדות תמיד בהירים */
.ym-form--dark .ym-form__label { color: var(--ink-invert); }
.ym-form--dark .ym-form__input { border-color: transparent; }
.ym-form--dark .ym-form__consent { color: rgba(246, 244, 238, 0.75); }
.ym-form--dark .ym-form__consent a { color: var(--lime); }
.ym-form--dark .ym-form__msg.is-success {
  color: var(--lime);
  background: color-mix(in srgb, var(--lime) 12%, transparent);
  border-color: color-mix(in srgb, var(--lime) 35%, transparent);
}

.ym-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888ba0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1em center;
  background-size: 1em;
  padding-inline-end: 1em;
  cursor: pointer;
}
.ym-form__select:invalid { color: var(--ink-soft); }

.ym-form--cols-1 .ym-form__grid { grid-template-columns: 1fr; }

/* ==========================================================================
   פוסט מלא
   ========================================================================== */
.ym-progress {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  height: 0.25rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  z-index: 490;
}
.admin-bar .ym-progress { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 2rem)); }
.ym-progress__bar {
  position: relative;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-end-start-radius: var(--radius-pill);
  transition: width 0.1s linear;
}
.ym-progress__pct {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: -1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--tr-fast);
}
.ym-progress.is-active .ym-progress__pct { opacity: 1; }

.ym-single__header { padding-block: var(--sp-12) var(--sp-6); }
.ym-single__cats { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.ym-single__cats a {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3em 1em;
  border-radius: var(--radius-pill);
}
.ym-single__cats a:hover { background: var(--accent); color: #fff; }
.ym-single__header h1 { margin-bottom: var(--sp-3); }

.ym-crumbs { margin-bottom: var(--sp-4); }
.ym-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.ym-crumbs li:not(:last-child)::after { content: "›"; margin-inline-start: var(--sp-2); color: var(--line); }
.ym-crumbs a { color: var(--ink-soft); }
.ym-crumbs a:hover { color: var(--accent); }
.ym-crumbs li[aria-current] { color: var(--ink); font-weight: 500; }

.ym-single__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  padding-top: var(--sp-4);
  border-top: 0.0625rem solid var(--line);
}
.ym-single__author-mini { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); }
.ym-single__author-mini img { border-radius: 50%; width: 2rem; height: 2rem; }

.ym-single__thumb { margin: 0 0 var(--sp-8); }
.ym-single__thumb img { border-radius: var(--radius-lg); width: 100%; }

.ym-share {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-block: var(--sp-12) 0;
  padding-block: var(--sp-6);
  border-top: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
}
.ym-share__label { font-weight: 700; font-size: 0.9375rem; }
.ym-share__btns { display: flex; gap: var(--sp-2); }
.ym-share__btns a, .ym-share__copy {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.ym-share__btns a:hover, .ym-share__copy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-0.125rem);
}
.ym-share__btns svg { width: 1.125rem; height: 1.125rem; }
.ym-share__copy.is-copied { background: var(--success); border-color: var(--success); color: #fff; }

.ym-author {
  display: flex;
  gap: var(--sp-6);
  align-items: start;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-inline-start: 0.1875rem solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  margin-top: var(--sp-8);
}
.ym-author__avatar img { border-radius: 50%; width: 6rem; height: 6rem; }
.ym-author__eyebrow { color: var(--accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: var(--sp-1); }
.ym-author__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-2); }
.ym-author__bio { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
@media (max-width: 40rem) {
  .ym-author { flex-direction: column; align-items: center; text-align: center; }
}

.ym-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-block: var(--sp-8) var(--sp-16);
}
@media (max-width: 40rem) { .ym-postnav { grid-template-columns: 1fr; } }
.ym-postnav__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-postnav__item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ym-postnav__item--next { text-align: start; }
.ym-postnav__dir { font-size: 0.8125rem; color: var(--accent); font-weight: 700; }
.ym-postnav__title { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }

.ym-related { background: var(--surface); border-top: 0.0625rem solid var(--line); padding-block: var(--sp-16); }
.ym-related__title { text-align: center; font-size: var(--fs-h2); margin-bottom: var(--sp-8); }
.ym-related__grid { padding-block: 0; }

/* גלילת טבלאות בנייד — פס גלילה בצבע המותג הכהה */
.ym-table-wrap { margin-block: var(--sp-8); }
.ym-table-wrap .ym-content table,
.ym-table-wrap table { margin-block: 0; }
@media (max-width: 48rem) {
  .ym-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    scrollbar-color: var(--bg-deep) var(--line);
    scrollbar-width: thin;
    padding-bottom: var(--sp-2);
  }
  .ym-table-wrap table { min-width: 34rem; }
  .ym-table-wrap::-webkit-scrollbar { height: 0.5rem; }
  .ym-table-wrap::-webkit-scrollbar-track { background: var(--line); border-radius: var(--radius-pill); }
  .ym-table-wrap::-webkit-scrollbar-thumb { background: var(--bg-deep); border-radius: var(--radius-pill); }
}

.ym-single__excerpt {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 500;
  border-inline-start: 0.1875rem solid var(--accent);
  padding-inline-start: var(--sp-4);
  margin: 0 0 var(--sp-8);
}

/* ==========================================================================
   עמוד בלוג
   ========================================================================== */
.ym-blog__head { text-align: center; padding-block: var(--sp-12) var(--sp-8); }
.ym-blog__head h1 { margin-bottom: var(--sp-4); }
.ym-blog__cats { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); }
.ym-blog__cats a {
  display: inline-block;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4em 1.1em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--tr-fast), color var(--tr-fast), background var(--tr-fast);
}
.ym-blog__cats a:hover { border-color: var(--accent); color: var(--accent); }

.ym-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}
@media (max-width: 56rem) { .ym-featured { grid-template-columns: 1fr; gap: 0; } }
.ym-featured__thumb { display: block; height: 100%; }
.ym-featured__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 18rem; }
.ym-featured__body { padding: var(--sp-8); }
@media (max-width: 56rem) { .ym-featured__body { padding: var(--sp-6); } }
.ym-featured__cat {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}
.ym-featured__title { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.ym-featured__title a { color: var(--ink); }
.ym-featured__title a:hover { color: var(--accent); }
.ym-featured__excerpt { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.ym-featured__meta { display: flex; gap: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: var(--sp-6); }

.ym-footer__logo { max-height: 3.25rem; width: auto; }
.ym-footer__brand .custom-logo { max-height: 3.25rem; width: auto; }

/* ==========================================================================
   כפתורים צפים — וואטסאפ + טלפון
   ========================================================================== */
.ym-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 850;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}
.ym-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}
.ym-float a:hover { color: #fff; transform: translateY(-0.1875rem); }
.ym-float svg { width: 1.5rem; height: 1.5rem; }
.ym-float__wa {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--float-wa, #25D366);
}
.ym-float__pulse {
  position: absolute;
  top: 0.1875rem;
  inset-inline-end: 0.1875rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--lime);
  border: 0.125rem solid #fff;
  animation: ym-pulse 1.8s ease-in-out infinite;
}
@keyframes ym-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .ym-float__pulse { animation: none; }
}
.ym-float__phone {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--float-phone, var(--accent));
}
@media (max-width: 40rem) {
  .ym-float { bottom: 1rem; right: 1rem; }
  .ym-float__wa { width: 3.25rem; height: 3.25rem; }
  .ym-float__phone { width: 3rem; height: 3rem; }
}

/* ==========================================================================
   בונה הדר — סטריפ, פריסות, שקיפות
   ========================================================================== */
.ym-strip { font-size: 0.875rem; font-weight: 500; }
.ym-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  min-height: 2.25rem;
  padding-block: 0.35rem;
  text-align: center;
}
.ym-strip a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.ym-strip a:hover { opacity: 0.85; color: inherit; }
.ym-strip .ym-social { margin: 0; }
.ym-strip .ym-social a { width: 1.75rem; height: 1.75rem; background: rgba(255, 255, 255, 0.12); }

/* --- פריסה: קלאסי — הטלפון נודד לצד הפעולות --- */
.ym-header--classic .ym-header__inner { justify-content: flex-start; }
.ym-header--classic .ym-header__phone { order: 5; }
.ym-header--classic .ym-header__actions { order: 6; margin-inline-start: 0; }
.ym-header--classic .ym-burger { order: 7; }
@media (min-width: 64.0625rem) {
  .ym-header--classic .ym-header__phone { margin-inline-start: var(--sp-4); }
}

/* --- יישור התפריט (קלאסי + מינימלי, דסקטופ) --- */
@media (min-width: 64.0625rem) {
  .ym-header--nav-start.ym-header--classic .ym-nav,
  .ym-header--nav-start.ym-header--minimal .ym-nav {
    margin-inline-start: var(--sp-6);
    margin-inline-end: auto;
  }
  .ym-header--nav-center.ym-header--classic .ym-nav,
  .ym-header--nav-center.ym-header--minimal .ym-nav {
    margin-inline: auto;
  }
}

/* --- סגנונות תפריט (דסקטופ) --- */
@media (min-width: 64.0625rem) {
  .ym-header--style-underline .ym-nav > ul > li > a,
  .ym-header--style-underline-current .ym-nav > ul > li > a {
    position: relative;
    background: none;
  }
  .ym-header--style-underline .ym-nav > ul > li > a::before,
  .ym-header--style-underline-current .ym-nav > ul > li > a::before {
    content: "";
    position: absolute;
    inset-inline: var(--sp-3);
    bottom: 0.3rem;
    height: 0.125rem;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--tr-fast);
  }

  .ym-header--style-underline .ym-nav > ul > li > a:hover { background: none; }
  .ym-header--style-underline .ym-nav > ul > li > a:hover::before,
  .ym-header--style-underline .ym-nav > ul > li.current-menu-item > a::before,
  .ym-header--style-underline .ym-nav > ul > li.current-menu-ancestor > a::before { transform: scaleX(1); }
  .ym-header--style-underline .ym-nav .current-menu-item > a,
  .ym-header--style-underline .ym-nav .current-menu-ancestor > a { background: none; }

  .ym-header--style-underline-current .ym-nav > ul > li > a:hover { background: none; color: var(--accent); }
  .ym-header--style-underline-current .ym-nav > ul > li.current-menu-item > a::before,
  .ym-header--style-underline-current .ym-nav > ul > li.current-menu-ancestor > a::before { transform: scaleX(1); }
  .ym-header--style-underline-current .ym-nav .current-menu-item > a,
  .ym-header--style-underline-current .ym-nav .current-menu-ancestor > a { background: none; }

  .ym-header--style-bg-current .ym-nav > ul > li > a:hover { background: none; color: var(--accent); }
}

/* --- פריסה: ממורכז — טלפון | לוגו | כפתור, תפריט בשורה שנייה --- */
@media (min-width: 64.0625rem) {
  .ym-header--centered .ym-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "phone brand actions" "nav nav nav";
    row-gap: 0;
    padding-block: var(--sp-3) 0;
    min-height: 0;
  }
  .ym-header--centered .ym-header__phone { grid-area: phone; justify-self: start; }
  .ym-header--centered .ym-header__brand { grid-area: brand; }
  .ym-header--centered .ym-header__actions { grid-area: actions; justify-self: end; margin-inline-start: 0; }
  .ym-header--centered .ym-nav { grid-area: nav; justify-content: center; padding-block: var(--sp-2) var(--sp-3); }
  .ym-header--centered .ym-nav ul { justify-content: center; }
}
@media (max-width: 64rem) {
  .ym-header--centered .ym-header__inner { justify-content: space-between; }
}

/* --- פריסה: מינימלי --- */
.ym-header--minimal .ym-header__inner { justify-content: space-between; }

/* --- הדר שקוף בעמוד הבית --- */
.ym-header--transparent:not(.is-scrolled) {
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.ym-header--transparent:not(.is-scrolled)::before {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ym-header--transparent:not(.is-scrolled) .ym-header__brand,
.ym-header--transparent:not(.is-scrolled) .ym-header__brand a,
.ym-header--transparent:not(.is-scrolled) .ym-nav > ul > li > a,
.ym-header--transparent:not(.is-scrolled) .ym-header__phone {
  color: #fff;
}
.ym-header--transparent:not(.is-scrolled) .ym-nav > ul > li > a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ym-header--transparent:not(.is-scrolled) .ym-burger span { background: #fff; }

.ym-footer__grid--2 { grid-template-columns: 2fr 1fr; }
.ym-footer__grid--3 { grid-template-columns: 2fr 1fr 1fr; }
.ym-footer__grid--4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.ym-footer__grid--5 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 48rem) {
  .ym-footer__grid--2, .ym-footer__grid--3, .ym-footer__grid--4, .ym-footer__grid--5 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   עמוד תודה
   ========================================================================== */
.ym-thanks { padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center; }
.ym-thanks__inner { max-width: 50rem; }
.ym-thanks__check { width: 7.5rem; height: 7.5rem; margin-inline: auto; margin-bottom: var(--sp-6); }
.ym-thanks__check svg { width: 100%; height: 100%; }
.ym-thanks__circle {
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: ym-thanks-draw 0.7s ease-out forwards;
}
.ym-thanks__mark {
  stroke: var(--success);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: ym-thanks-draw 0.45s ease-out 0.6s forwards;
}
@keyframes ym-thanks-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ym-thanks__circle, .ym-thanks__mark { animation: none; stroke-dashoffset: 0; }
}
.ym-thanks__title { font-size: var(--fs-h1); color: var(--success); margin-bottom: var(--sp-3); }
.ym-thanks__text { color: var(--ink-soft); font-size: 1.125rem; margin-bottom: var(--sp-8); }
.ym-thanks__actions { display: flex; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-12); }
@media (max-width: 40rem) {
  .ym-thanks__actions { flex-direction: column; }
  .ym-thanks__actions .ym-btn { width: 100%; justify-content: center; }
}
.ym-thanks__posts-title { font-size: var(--fs-h3); margin-bottom: var(--sp-6); }
.ym-thanks__posts .ym-archive-grid { padding-block: 0; text-align: start; }

/* טקסטים לקוראי מסך — סטנדרט וורדפרס/ווקומרס */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 0.0625rem;
  width: 0.0625rem;
  margin: -0.0625rem;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal;
}
.screen-reader-text:focus {
  background-color: var(--surface);
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  inset-inline-start: 0.3125rem;
  line-height: normal;
  padding: 0.9375rem 1.4375rem 0.875rem;
  text-decoration: none;
  top: 0.3125rem;
  width: auto;
  z-index: 100000;
}

/* מגה-מניו */
@media (min-width: 64.0625rem) {
  .ym-nav__list .ym-has-mega { position: relative; }
  .ym-nav__list .ym-has-mega > .sub-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(50%) translateY(0.75rem);
    width: min(46rem, 86vw);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: var(--sp-3);
    background: var(--bg);
    border: 0.0625rem solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tr-fast), transform var(--tr-fast), visibility var(--tr-fast);
    z-index: 60;
  }
  [dir="ltr"] .ym-nav__list .ym-has-mega > .sub-menu { transform: translateX(-50%) translateY(0.75rem); }
  /* תת-פריט בודד או זוג: לכווץ את הפאנל לרוחב התוכן ולא למתוח את האריח לכל הרוחב */
  .ym-nav__list .ym-has-mega > .sub-menu:has(.ym-mega__item:only-child) {
    width: max-content;
    grid-template-columns: minmax(9.5rem, 12rem);
  }
  .ym-nav__list .ym-has-mega > .sub-menu:has(.ym-mega__item:first-child:nth-last-child(2)) {
    width: max-content;
    grid-template-columns: repeat(2, minmax(9.5rem, 12rem));
  }
  .ym-nav__list .ym-has-mega:hover > .sub-menu,
  .ym-nav__list .ym-has-mega:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0.25rem);
  }
  [dir="ltr"] .ym-nav__list .ym-has-mega:hover > .sub-menu,
  [dir="ltr"] .ym-nav__list .ym-has-mega:focus-within > .sub-menu { transform: translateX(-50%) translateY(0.25rem); }
  .ym-nav__list .ym-mega__item { margin: 0; }
  .ym-nav__list .ym-mega__item > a {
    display: block;
    text-align: center;
    padding: var(--sp-2);
    border-radius: var(--radius-md);
    background: transparent;
    transition: background var(--tr-fast), transform var(--tr-fast);
  }
  .ym-nav__list .ym-mega__item > a:hover {
    background: var(--surface);
    transform: translateY(-0.125rem);
  }
  .ym-mega__thumb { display: block; margin-bottom: var(--sp-2); }
  .ym-mega__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
  .ym-mega__img--ph { background: linear-gradient(150deg, var(--surface), var(--line)); }
  .ym-mega__label { display: block; font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
}
@media (max-width: 64rem) {
  .ym-mega__thumb { display: none; }
  .ym-mega__label { display: inline; }
}
