
/* PERSIAN HEADER SYNC V1 ? local Persian pages only */
@media (min-width: 1101px) {
  html[lang="fa-IR"] header.nav {
    height: 72px !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding-inline: clamp(14px, 2vw, 30px) !important;
  }

  html[lang="fa-IR"] header.nav .brand {
    flex: 0 0 auto !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  html[lang="fa-IR"] header.nav nav {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(7px, .75vw, 14px) !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html[lang="fa-IR"] header.nav nav a {
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  html[lang="fa-IR"] header.nav .actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 7px !important;
  }

  html[lang="fa-IR"] header.nav .actions .linkbtn {
    font-size: 11px !important;
    padding: 9px 11px !important;
    white-space: nowrap !important;
  }

  html[lang="fa-IR"] header.nav .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  html[lang="fa-IR"] header.nav {
    min-height: 64px !important;
    padding-inline: 14px !important;
  }

  html[lang="fa-IR"] header.nav:not(.mobile-open) nav {
    display: none !important;
  }

  html[lang="fa-IR"] header.nav .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
  }

  html[lang="fa-IR"] header.nav:not(.mobile-open) .actions {
    display: none !important;
  }

  html[lang="fa-IR"] header.nav.mobile-open nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: visible !important;
  }

  html[lang="fa-IR"] header.nav.mobile-open .actions {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }
}


/* PERSIAN_HEADER_SPACING_V2
   Persian-only desktop navigation improvements.
   Production and shared CSS remain unchanged.
*/

/* Remove the inconsistent active-link underline. */
html[lang="fa-IR"] header.nav nav a.nav-active::after,
html[lang="fa-IR"] header.nav nav a[aria-current="page"]::after {
    display: none !important;
    content: none !important;
}

/* Keep navigation highlighting subtle and consistent. */
html[lang="fa-IR"] header.nav nav a.nav-active,
html[lang="fa-IR"] header.nav nav a[aria-current="page"] {
    color: #a9b9b0 !important;
}

/* More breathing room between Persian navigation items. */
@media (min-width: 1101px) {
    html[lang="fa-IR"] header.nav nav {
        gap: 16px !important;
    }
}

/* Preserve mobile menu layout and spacing. */
@media (max-width: 1100px) {
    html[lang="fa-IR"] header.nav.mobile-open nav {
        gap: 0 !important;
    }

    html[lang="fa-IR"] header.nav.mobile-open nav a {
        padding: 12px 6px !important;
    }
}

/* PERSIAN_HEADER_SPACING_V2_END */
