/* Header-only refinement. Saved colors, menus and visibility flags remain authoritative. */
body[data-theme="corporate-mahaweb"] .mfh-topbar{background:#102238;color:#d6deea;border-bottom:1px solid #ffffff0c;font-size:11px;padding-block:5px}
body[data-theme="corporate-mahaweb"] .mfh-topbar .mfs-shell{display:flex;align-items:center;justify-content:flex-start;min-height:20px;letter-spacing:0}
body[data-theme="corporate-mahaweb"] .mfh-topbar .mfs-shell::before{content:"";width:6px;height:6px;border-radius:50%;background:#c6ac7f;flex:none;margin-inline-end:10px;box-shadow:0 0 0 4px #c6ac7f13}
body[data-theme="corporate-mahaweb"] .mfh-header{font-family:var(--site-font-family,Vazir,Tahoma,sans-serif);background:var(--mfs-header-bg,#fff);border-bottom:1px solid #14253c10;transition:box-shadow .2s,border-color .2s}
body[data-theme="corporate-mahaweb"] .mfh-header::after{content:"";position:absolute;bottom:0;inset-inline:0;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#bea47660,transparent)}
body[data-theme="corporate-mahaweb"] .mfh-header[data-scrolled=true]{box-shadow:0 10px 30px #0b233d0d;border-color:#14253c16}
body[data-theme="corporate-mahaweb"] .mfh-header>.mfs-shell{width:min(1240px,calc(100% - 48px))}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-header-inner{position:relative;z-index:2;min-height:82px;padding-block:10px;gap:24px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand{flex:0 1 160px;min-width:0;max-width:180px;gap:3px;position:relative}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-logo{max-width:148px;max-height:60px;width:auto;height:auto;object-fit:contain;align-self:flex-start}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand-name{font-size:30px;letter-spacing:-.5px;line-height:1.4}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand-caption{font-size:9px;max-width:190px;line-height:1.8;display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav{display:flex;justify-content:center;align-items:center;flex:1 1 auto;min-width:0}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-desktop{flex-wrap:nowrap;gap:3px;justify-content:center;min-width:0}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation{border:1px solid #14253c09;background:#14253c03;border-radius:12px;padding:4px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-desktop>li{font-size:13px;font-weight:600;line-height:1.8;min-width:0}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>a,
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>.mfs-nav-label,
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>.mfs-dropdown>summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 11px;border-radius:8px;white-space:nowrap;position:relative;color:inherit}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>a:hover,
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>.mfs-dropdown>summary:hover{background:#bea47618;color:#8a6c3d}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav>.mfs-navigation>li>a[aria-current],
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav .mfs-dropdown[data-active=true]>summary,
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav .mfs-dropdown[open]>summary{background:#bea47620;color:#866a3b}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-chevron{width:6px;height:6px;border-width:0 1.5px 1.5px 0;opacity:.75}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-header-actions{gap:9px;flex:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-action{border:1px solid #b49a7133;border-radius:10px;min-height:46px;padding:7px 9px 7px 15px;gap:12px;font-size:12px;max-width:205px;background:#c5ad83;color:#11263d;font-weight:700;box-shadow:0 4px 12px #b49a7110;line-height:1.8;transition:background .18s,box-shadow .18s}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-action:hover{background:#d0ba97;box-shadow:0 6px 18px #a88b5a1c}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-action-icon{display:grid;place-items:center;width:29px;height:29px;flex:none;border-radius:7px;background:#11263d;color:#ead7b5;font-size:18px;line-height:1}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-action-short{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel{inset-block-start:calc(100% + 12px);min-width:235px;max-width:min(360px,calc(100vw - 32px));padding:10px;border:1px solid #ded8cc;border-radius:14px;background:var(--mfs-header-bg,#fff);color:var(--mfs-header-text,#14253c);box-shadow:0 20px 55px #0b233d20}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel .mfs-navigation-desktop{gap:3px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel .mfs-navigation a{padding:11px 12px;border-radius:8px;font-size:13px;line-height:1.8;white-space:normal}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel .mfs-navigation a:hover{background:#bea47612;color:#8a6c3d}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel .mfs-dropdown-panel{border:0;border-inline-start:1px solid #d8c8aa;border-radius:0;box-shadow:none;padding:0 10px;min-width:0;margin-block-start:4px;max-width:none;transform:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-parent-link{font-weight:700;color:#806741;border-bottom-color:#e6dece;padding:8px 12px 12px;font-size:12px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega>.mfs-dropdown-panel{width:620px;max-width:calc(100vw - 48px);padding:18px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-link{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;padding:13px;border-radius:10px;min-height:74px;color:inherit;text-decoration:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-link:hover{background:#bea47612;color:inherit}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid #c5ad8340;background:#c5ad8314;border-radius:11px;color:#8c713f;flex:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-icon .icon{width:21px;height:21px;stroke-width:1.5}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-copy{display:grid;gap:4px;min-width:0}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-copy strong{font-size:13px;font-weight:700;line-height:1.9;overflow-wrap:anywhere}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-copy small{font-size:11px;font-weight:400;line-height:1.9;opacity:.66;overflow-wrap:anywhere}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega-caption{margin:0 0 9px;padding:0 5px 12px;border-bottom:1px solid #14253c10;font-size:11px;color:inherit;opacity:.6;font-weight:400}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-menu-backdrop{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-toggle{display:grid;place-items:center;justify-content:center;color:var(--mfs-header-text,#14253c);width:44px;height:44px;border:1px solid #14253c15;border-radius:11px;background:#14253c04;position:relative;z-index:3}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu[open] .mfs-menu-toggle{background:#c5ad8320;border-color:#c5ad8355}
body[data-theme="corporate-mahaweb"] .mfh-header :is(a,summary,button):focus-visible{outline:2px solid #987843;outline-offset:4px}
@media(min-width:1101px){body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu{display:none}body[data-theme="corporate-mahaweb"] .mfh-header .mfs-dropdown-panel[hidden]{display:none}}
@media(max-width:1100px){
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-header-inner{min-height:74px;gap:16px;padding-block:8px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-desktop-nav{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu{display:block}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand{flex:1 1 auto;max-width:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-logo{max-height:54px;max-width:140px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand-caption[data-mobile-slogan=true]{display:block}
body[data-theme="corporate-mahaweb"] .mfh-header[data-mobile-action=false] .mfs-action{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-panel{inset-block-start:calc(100% + 8px);inset-inline:16px;z-index:5;padding:16px 20px 20px;border:1px solid #d8c8aa;border-radius:16px;max-height:min(76dvh,680px);box-shadow:0 24px 55px #0b233d28}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu[open]>.mfh-menu-backdrop{display:block;position:fixed;inset:0;z-index:-1;background:#06182e59;border:0;border-radius:0;padding:0;cursor:default}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-heading{font-weight:600;font-size:12px;opacity:1;border-bottom-color:#14253c12;margin-bottom:8px;padding-bottom:9px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-close{width:40px;height:40px;background:#14253c05;border-radius:9px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-mobile>li>a,
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-mobile .mfs-dropdown>summary{padding:13px 5px;min-height:48px;font-size:14px;font-weight:600;line-height:1.9}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-mobile>li>a[aria-current]{color:#8b6e3b}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-navigation-mobile .mfs-dropdown-panel{border:0;border-inline-start:2px solid #c5ad83;background:transparent;box-shadow:none;border-radius:0;min-width:0;max-width:none;padding:0 10px;margin:0 0 10px;transform:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega-grid{grid-template-columns:minmax(0,1fr);gap:0}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega>.mfs-dropdown-panel{width:auto;padding:0 8px;max-width:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-mega-caption{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-link{padding:12px 4px;min-height:65px;grid-template-columns:36px minmax(0,1fr);gap:10px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-icon{width:36px;height:36px;border-radius:10px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-solution-copy small{font-size:11px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-action{min-height:46px;padding:12px 16px;border-radius:10px;background:#c5ad83;color:#11263d;max-width:none;font-size:13px}
}
@media(max-width:540px){
body[data-theme="corporate-mahaweb"] .mfh-header>.mfs-shell{width:calc(100% - 32px)}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-header-inner{min-height:68px;gap:12px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand{max-width:none;flex:1 1 90px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-logo{max-height:46px;max-width:112px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-brand-name{font-size:24px}
body[data-theme="corporate-mahaweb"] .mfh-header[data-has-menu=true][data-mobile-action=true] .mfs-action{display:flex}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-action{max-width:145px;min-height:44px;padding:6px 7px 6px 11px;gap:8px;font-size:11px;border-radius:10px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-action .mfh-action-full{display:none}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-action .mfh-action-short{display:inline}
body[data-theme="corporate-mahaweb"] .mfh-header .mfh-action-icon{width:27px;height:27px;font-size:17px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-header-actions{gap:8px}
body[data-theme="corporate-mahaweb"] .mfh-header .mfs-menu-panel{inset-inline:12px;padding:12px 16px 16px}
}
@media(prefers-reduced-motion:reduce){body[data-theme="corporate-mahaweb"] .mfh-header,body[data-theme="corporate-mahaweb"] .mfh-header *{scroll-behavior:auto;transition:none!important}}

/* Saved menus may contain more items than the automatic home navigation. */
@media(min-width:1101px){
body[data-theme="corporate-mahaweb"] .mfh-header[data-auto-navigation=false] .mfs-desktop-nav>.mfs-navigation{flex-wrap:wrap;max-width:100%}
body[data-theme="corporate-mahaweb"] .mfh-header[data-auto-navigation=false] .mfs-desktop-nav>.mfs-navigation>li{max-width:240px}
body[data-theme="corporate-mahaweb"] .mfh-header[data-auto-navigation=false] .mfs-desktop-nav>.mfs-navigation>li>a,
body[data-theme="corporate-mahaweb"] .mfh-header[data-auto-navigation=false] .mfs-desktop-nav>.mfs-navigation>li>.mfs-dropdown>summary{white-space:normal;overflow-wrap:anywhere}
}
