/* Menu Manager public overrides. Loaded after all frontend theme/header CSS so
 * admin-selected menu colors and submenu behavior are the final public rules. */
body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-sticky-shell>.public-header{box-shadow:var(--mm-header-shadow,none)!important}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link,
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-static{color:var(--mm-header-text,var(--text))!important;background:var(--mm-header-item-bg,transparent)!important}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link .public-nav-link-icon{color:var(--mm-header-text,var(--text))!important}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link:hover,
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link:focus-visible{color:var(--mm-header-text,var(--text))!important;background:var(--mm-header-hover-bg,var(--surface-2))!important}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link.active,
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-dropdown.active>.public-nav-link{color:var(--mm-header-active-text,var(--text))!important;background:var(--mm-header-active-bg,var(--surface-2))!important;box-shadow:inset 0 -3px var(--mm-header-accent,var(--primary))!important}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link.active .public-nav-link-icon,
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-dropdown.active>.public-nav-link .public-nav-link-icon{color:var(--mm-header-active-text,var(--text))!important}
body.guest-shell .public-nav-dropdown{position:relative;flex:0 0 auto;margin:0;padding:0}
body.guest-shell .public-nav-dropdown>summary{list-style:none;cursor:pointer;user-select:none}
body.guest-shell .public-nav-dropdown>summary::-webkit-details-marker{display:none}
body.guest-shell .public-nav-chevron{width:13px;height:13px;margin-inline-start:2px;transition:transform .18s ease}
body.guest-shell .public-nav-dropdown[open] .public-nav-chevron{transform:rotate(180deg)}
body.guest-shell .public-nav-submenu{position:absolute;z-index:120;top:calc(100% + 9px);left:50%;display:grid;min-width:220px;padding:8px;border:1px solid color-mix(in srgb,var(--border,#dbe4ee) 78%,transparent);border-radius:14px;background:color-mix(in srgb,var(--surface,#fff) 96%,transparent);box-shadow:0 18px 46px rgba(15,23,42,.16);backdrop-filter:blur(16px);transform:translateX(-50%)}
body.guest-shell .public-nav-submenu a,body.guest-shell .public-nav-submenu-label{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;border-radius:9px;color:var(--text,#172554);font-size:.78rem;font-weight:750;text-decoration:none;white-space:nowrap}
body.guest-shell .public-nav-submenu a:hover,body.guest-shell .public-nav-submenu a:focus-visible,body.guest-shell .public-nav-submenu a.active{background:var(--surface-2,#f8fafc);color:var(--primary,#2563eb)}
body.guest-shell .public-nav-submenu svg{width:17px;height:17px;flex:0 0 17px}
body.guest-shell .public-nav-submenu-label{color:var(--muted,#64748b)}
body.guest-shell .public-nav-static{cursor:default}
html:not([data-theme="dark"]) body.guest-shell .public-footer{background:var(--mm-footer-bg,var(--theme-footer,#071b2c))!important;color:var(--mm-footer-text,#9eb4c8)!important}
html:not([data-theme="dark"]) body.guest-shell .public-footer .public-footer-grid strong{color:var(--mm-footer-heading,#fff)!important}
html:not([data-theme="dark"]) body.guest-shell .public-footer .public-footer-grid :where(p,span){color:var(--mm-footer-text,#9eb4c8)!important}
html:not([data-theme="dark"]) body.guest-shell .public-footer .public-footer-grid a{color:var(--mm-footer-link,#9eb4c8)!important}
html:not([data-theme="dark"]) body.guest-shell .public-footer .public-footer-grid a:hover,html:not([data-theme="dark"]) body.guest-shell .public-footer .public-footer-grid a:focus-visible{color:var(--mm-footer-hover,#5eead4)!important}
body.guest-shell .public-footer .public-footer-menu-group{display:flex;flex-direction:column;gap:10px;min-width:0}
html:not([data-theme="dark"]) body.guest-shell .public-footer .footer-bottom{color:var(--mm-footer-text,#9eb4c8)!important}
@media(max-width:1180px){body.guest-shell .public-nav-dropdown{width:100%}body.guest-shell .public-nav-dropdown>summary{width:100%}body.guest-shell .public-nav-submenu{position:static;min-width:0;width:100%;margin:4px 0 8px;padding:6px;border-radius:12px;transform:none;box-shadow:none}body.guest-shell .public-nav-submenu a,body.guest-shell .public-nav-submenu-label{white-space:normal}}
@media(min-width:1181px){body.guest-shell.menu-density-compact .public-header .public-links{gap:1px!important}body.guest-shell.menu-density-compact .public-header .public-links .public-nav-link{padding-inline:6px!important;font-size:.72rem!important}body.guest-shell.menu-density-crowded .public-header .public-links{gap:0!important}body.guest-shell.menu-density-crowded .public-header .public-links .public-nav-link{padding-inline:4px!important;font-size:.68rem!important}body.guest-shell.menu-density-crowded .public-header .public-nav-link-icon{width:22px!important;height:22px!important;flex-basis:22px!important}}
@media(min-width:721px){body.guest-shell .public-footer-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}body.guest-shell .public-footer-grid>.footer-brand{grid-column:span 2}}
@media(max-width:720px){body.guest-shell .public-footer-grid{grid-template-columns:1fr!important}body.guest-shell .public-footer-grid>.footer-brand{grid-column:auto}}
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-link.active::after,
html:not([data-theme="dark"]) body.guest-shell.ui-v2[class*="frontend-theme-"]:not(.role-admin) .public-header .public-nav-dropdown.active>.public-nav-link::after{background:var(--mm-header-accent,var(--primary))!important;border-color:var(--mm-header-accent,var(--primary))!important}

/* Organized public footer: keep menu groups compact, then place the brand note
 * beneath a theme-aware divider so long menu groups do not create dead space. */
body.guest-shell .public-footer{padding-top:clamp(38px,4.5vw,56px)!important}
body.guest-shell .public-footer .public-footer-menu-grid{
  display:grid!important;
  grid-template-columns:minmax(130px,.82fr) minmax(150px,.95fr) minmax(190px,1.18fr) minmax(190px,1.18fr) minmax(300px,1.72fr)!important;
  align-items:start!important;
  gap:clamp(24px,2.8vw,42px)!important;
}
body.guest-shell .public-footer .public-footer-menu-group{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  min-width:0;
  align-self:start;
}
body.guest-shell .public-footer .public-footer-menu-links{
  display:flex;
  flex-direction:column;
  gap:9px;
  min-width:0;
}
body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"] .public-footer-menu-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:22px;
  row-gap:9px;
  direction:rtl;
  text-align:right;
}
body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"] strong{
  direction:rtl;
  text-align:right;
}
body.guest-shell .public-footer .public-footer-menu-links :where(a,span){
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
body.guest-shell .public-footer .public-footer-brand-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  margin-top:clamp(30px,3.6vw,44px);
  padding:clamp(22px,2.4vw,30px) 0;
  border-top:1px solid color-mix(in srgb,var(--mm-footer-link,var(--primary,#5eead4)) 28%,transparent);
}
body.guest-shell .public-footer .public-footer-brand-note{
  display:flex;
  align-items:center;
  gap:clamp(18px,2.3vw,30px);
  min-width:0;
}
body.guest-shell .public-footer .public-footer-brand-note .footer-synced-brand{
  flex:0 0 auto;
}
body.guest-shell .public-footer .public-footer-brand-note p{
  max-width:510px;
  margin:0;
  color:var(--mm-footer-text,#9eb4c8)!important;
  font-size:.82rem;
  line-height:1.65;
}
body.guest-shell .public-footer .public-footer-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  flex:0 0 auto;
  color:var(--mm-footer-text,#9eb4c8)!important;
  font-size:.7rem;
  line-height:1.45;
  text-align:right;
}
body.guest-shell .public-footer .public-footer-meta span{
  color:inherit!important;
}
@media(max-width:1180px){
  body.guest-shell .public-footer .public-footer-menu-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"]{
    grid-column:span 2;
  }
}
@media(max-width:820px){
  body.guest-shell .public-footer .public-footer-menu-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"]{
    grid-column:1/-1;
  }
  body.guest-shell .public-footer .public-footer-brand-strip{
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  body.guest-shell .public-footer .public-footer-meta{
    align-items:flex-start;
    text-align:left;
  }
}
@media(max-width:560px){
  body.guest-shell .public-footer .public-footer-menu-grid{
    grid-template-columns:1fr!important;
    gap:28px!important;
  }
  body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"]{
    grid-column:auto;
  }
  body.guest-shell .public-footer .public-footer-menu-group[data-footer-group="farsi"] .public-footer-menu-links{
    grid-template-columns:1fr;
  }
  body.guest-shell .public-footer .public-footer-brand-note{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}

