/* The homepage header on every public page (server/pages/mwnav.js). The rules between the markers are copied
   from public/css/home-v3.css (the v3 design nav) with #mw changed to #mwh; the bar itself is at the end. */
#mwh{--bg:#022B30;--gold:#E0B562;--gold2:#F0CC85;--line:rgba(255,255,255,.16);--mute:rgba(255,255,255,.72);font-family:'IBM Plex Sans Arabic','IBM Plex Sans',system-ui,sans-serif;color:#fff;direction:rtl}
#mwh.ltr{direction:ltr;font-family:'IBM Plex Sans','IBM Plex Sans Arabic',system-ui,sans-serif}
#mwh,#mwh *{box-sizing:border-box}#mwh a{color:inherit;text-decoration:none}#mwh button{font-family:inherit;color:inherit}#mwh p{margin:0}
#mwh .disp{font-family:'Almadinah','Markazi Text',serif;font-weight:700;line-height:1.2}#mwh.ltr .disp{font-family:'Madinah Eng','Markazi Text',serif}
#mwh .wbtn{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 26px;border-radius:14px;background:var(--gold);color:#022B30;font-weight:600;font-size:15px;border:none;cursor:pointer;transition:transform .3s,box-shadow .3s}
#mwh .wbtn:hover{transform:translateY(-2px);box-shadow:0 16px 34px -12px rgba(224,181,98,.6)}
/* --- copied from the design --- */
#mwh .nav{position:absolute;top:0;left:0;right:0;z-index:7;padding:18px clamp(20px,4vw,72px) 0;background:linear-gradient(180deg,rgba(2,43,48,.92),rgba(2,43,48,.55) 70%,rgba(2,43,48,0))}
#mwh .nrow{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:24px}
#mwh .logo{justify-self:start;display:flex;align-items:center;gap:18px;direction:ltr;white-space:nowrap;justify-content:flex-end;padding-top:10px}
#mwh .logo img{display:block;height:40px;width:auto;object-fit:contain}
#mwh .logo .lg2{height:38px}
#mwh .lsep{width:1px;height:34px;background:rgba(255,255,255,.35)}
#mwh .tabs{display:flex;gap:34px;align-items:flex-start}
#mwh .tab{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:13px;font-weight:500;color:rgba(255,255,255,.62);background:none;border:none;cursor:pointer;padding:6px 2px 12px;border-bottom:2px solid transparent;white-space:nowrap;transition:color .25s,border-color .25s}
#mwh .tab svg{transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
#mwh .tab:hover{color:#fff;border-color:rgba(255,255,255,.35)}#mwh .tab:hover svg{transform:translateY(-3px) scale(1.06)}
#mwh .tab.more{color:var(--gold2)}#mwh .tab.more svg.ic{color:var(--gold)}
#mwh .tab.more .lb{display:flex;align-items:center;gap:5px}
#mwh .tab.more .chev{transition:transform .3s}#mwh .nav.open .tab.more{border-color:var(--gold)}#mwh .nav.open .tab.more .chev{transform:rotate(180deg)}
#mwh .tsep{width:1px;height:44px;background:var(--line);margin-top:8px}
#mwh .side-nav{justify-self:end;display:flex;gap:10px;align-items:center;justify-content:flex-start;padding-top:8px;font-size:14px;font-weight:500}
#mwh .ibtn{position:relative;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.04);display:grid;place-items:center;transition:background .25s,border-color .25s,color .25s}
#mwh .ibtn:hover{background:#fff;color:var(--bg);border-color:#fff}
#mwh .ibtn::after{content:attr(data-tip);position:absolute;top:52px;left:50%;transform:translate(-50%,-4px);background:#fff;color:var(--bg);font-size:12px;font-weight:600;white-space:nowrap;padding:5px 10px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#mwh .ibtn:hover::after{opacity:1;transform:translate(-50%,0)}
#mwh .ibtn .dt{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--gold)}
#mwh .acct{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:5px 6px 5px 14px;margin-inline-start:6px}
#mwh .acct span{width:32px;height:32px;border-radius:50%;background:#fff;color:var(--bg);display:grid;place-items:center}
#mwh .mega{position:absolute;top:206px;left:50%;width:min(1200px,calc(100% - 96px));transform:translate(-50%,-14px);z-index:6;background:#fff;color:#0B2427;border-radius:28px;padding:28px;display:grid;grid-template-columns:repeat(5,1fr) 1.5fr;gap:18px;box-shadow:0 50px 100px -30px rgba(0,0,0,.7);opacity:0;visibility:hidden;transition:opacity .3s,transform .45s cubic-bezier(.2,.8,.2,1),visibility .3s}
#mwh .nav.open~.mega{opacity:1;visibility:visible;transform:translate(-50%,0)}
#mwh .gi{display:block}
#mwh .gi .th{aspect-ratio:3/4;border-radius:200px 200px 14px 14px;overflow:hidden;background:#E3E9E8}
#mwh .gi .th img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s cubic-bezier(.2,.8,.2,1)}
#mwh .gi:hover .th img{transform:scale(1.08)}
#mwh .gi b{display:block;font-size:15px;font-weight:600;margin-top:10px;transition:color .25s}#mwh .gi:hover b{color:#B07A12}
#mwh .gi small{display:block;font-size:12px;color:#6B7775;line-height:1.5}
#mwh .mcta{border-radius:20px;background:var(--bg);color:#fff;padding:26px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;position:relative;overflow:hidden}
@media(max-width:1200px){#mwh .tabs{gap:22px}#mwh .acct{display:none}#mwh .mega{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){#mwh .nav{padding:14px 16px 0}#mwh .nrow{display:flex;flex-wrap:wrap;gap:10px 12px}#mwh .logo{flex:1 1 auto;justify-content:flex-start;order:1;padding-top:4px;gap:12px}#mwh .logo img{height:30px}#mwh .logo .lg2{height:28px}#mwh .lsep{height:26px}#mwh .side-nav{flex:0 0 auto;order:2;padding-top:0}#mwh .side-nav a.hide{display:none}#mwh .tabs{order:4;width:100%;overflow-x:auto;scrollbar-width:none;gap:18px;justify-content:space-between}#mwh .tab{font-size:12px}#mwh .tsep{display:none}#mwh .ibtn::after{display:none}#mwh .mega{top:200px;width:calc(100% - 24px);grid-template-columns:1fr 1fr;max-height:70vh;overflow:auto;padding:18px;gap:14px}#mwh .mega .mcta{grid-column:span 2}}
/* --- end of copy --- */

/* the bar: fixed at the top, solid design teal (no hero image behind it on these pages) */
body.mwh-on{--rkh:92px}
body.mwh-on #rkx .hd{display:none}
#mwh{position:fixed;top:0;left:0;right:0;z-index:900}
#mwh .nav{position:relative;padding-bottom:6px;background:linear-gradient(180deg,#022B30,#03343A);border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 10px 30px -18px rgba(0,0,0,.6)}
#mwh .tab{padding-bottom:10px}
#mwh .tab.on{color:#fff;border-color:var(--gold)}
#mwh .mega{top:calc(100% + 10px)}
#mwh .mega .mcta .wbtn{font-family:inherit}
@media(max-width:760px){body.mwh-on{--rkh:138px}#mwh .side-nav a#mwhLang{display:inline-block;font-size:13px}#mwh .nav{padding-bottom:0}#mwh .mega{top:calc(100% + 8px)}}

/* phones and tablets: the account pill (☰ + avatar) stays visible and opens the full site menu (language is in that menu on phones) */
@media(max-width:1200px){#mwh .side-nav a.acct{display:flex;padding:4px 4px 4px 11px;gap:8px;margin-inline-start:2px}}
@media(max-width:760px){#mwh .side-nav{gap:6px}#mwh .ibtn{width:38px;height:38px}#mwh .acct span{width:28px;height:28px}#mwh .side-nav a#mwhLang{display:none}}
/* small tablets: logo + buttons on the first row, the four tabs and "Madinah guide" on a second row (the one-row header does not fit) */
@media(min-width:761px) and (max-width:1000px){#mwh .nrow{display:flex;flex-wrap:wrap;gap:8px 16px}#mwh .logo{flex:1 1 auto;justify-content:flex-start;order:1}#mwh .side-nav{order:2}#mwh .tabs{order:4;width:100%;justify-content:space-between;gap:18px}#mwh .tsep{display:none}}
@media(min-width:761px) and (max-width:1000px){body.mwh-on{--rkh:152px}}
