/* Mudheef website chrome (S63): the header, the footer, the type and the colours every public page shares. Pages link it after
   /brand/mudheef.css and after their own <style>, so these rules win over a page's older ones. The header and footer classes start
   with m- so nothing a page already styles (.top, .foot) can leak into them. Behaviour (menu, header on scroll): /brand/site.js.

   Colours come from mudheef.css (S62): indigo for text and buttons, sand gold only as decoration (dots, a rule), deep gold where gold
   must be text, the warm page. Fonts: IBM Plex Sans Arabic for Arabic, Inter for English. Weights 400 to 600. */
:root {
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --head: #141C33; --sand: #F2EFE8; --sand-line: #E3DFD6; --hair: rgba(30, 42, 74, .14);
  --on-deep: #C9CEDD; --deep-line: rgba(255, 255, 255, .14);
  --bar-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--lb-page); color: var(--lb-ink); font: 400 17px/1.8 var(--lb-font); -webkit-font-smoothing: antialiased;
       -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang="en"] body { line-height: 1.6; }
html[lang="ar"] .t-en, html:not([lang="ar"]) .t-ar { display: none !important; }
::selection { background: var(--lb-tint-2); color: var(--lb-ink); }
:focus-visible { outline: 2px solid var(--lb-primary); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
bdi { unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -64px; inset-inline-start: 16px; z-index: 80; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
        border-radius: 8px; background: var(--lb-deep); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons: indigo with white words; quiet ones on the page; white ones on indigo or over the hero */
.lb-btn { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.lb-btn.big { min-height: 52px; padding: 0 28px; font-size: 16px; }
.lb-btn--quiet { background: transparent; color: var(--lb-ink); box-shadow: inset 0 0 0 1px var(--hair); }
.lb-btn--quiet:hover { background: var(--sand); }
.lb-btn.on-deep { background: #fff; color: var(--lb-deep); }
.lb-btn.on-deep:hover { background: var(--lb-tint); }
.lb-btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.lb-btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.lb-btn.on-deep:focus-visible, .lb-btn.ghost:focus-visible { box-shadow: 0 0 0 2px var(--lb-deep), 0 0 0 4px #fff; }

/* ---------- header ---------- */
.m-top { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 241, .94); color: var(--lb-ink);
         box-shadow: 0 1px 0 var(--lb-line); }
@supports (backdrop-filter: blur(1px)) { .m-top { backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); } }
.m-top .m-bar { display: flex; align-items: center; gap: 8px; max-width: var(--wrap); height: var(--bar-h); margin-inline: auto; padding-inline: var(--gutter); }
.m-top .m-brand { flex: none; display: block; margin-inline-end: 20px; line-height: 0; border-radius: 8px; }
.m-top .m-brand img { width: auto; height: 40px; }
.m-top .m-brand .on-dark { display: none; }
.m-top .m-links { display: flex; align-items: center; gap: 2px; }
.m-top .m-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: inherit; font-size: 15px;
                    text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.m-top .m-links a:hover { background: rgba(30, 42, 74, .06); }
.m-top .m-links a[aria-current] { box-shadow: inset 0 -2px var(--lb-gold); border-radius: 0; }
.m-top .m-links .m-only { display: none; }
.m-top .m-right { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.m-top .langbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
                  color: inherit; font: 400 14px/1 var(--lb-font); cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.m-top .langbtn:hover, .m-top .signin:hover { background: rgba(30, 42, 74, .06); }
.m-top .langbtn .i { width: 16px; height: 16px; flex: none; }
/* a page in one language only (the API reference, the live demo) has no language switch */
html[data-one-lang] .langbtn { display: none; }
.m-top .signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: inherit; font-size: 15px;
                 text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.m-top .m-start { min-height: 40px; margin-inline-start: 8px; padding: 0 16px; font-size: 14px; }
.m-top .m-menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: inherit; place-items: center; cursor: pointer; }
.m-top .m-menu .i { width: 22px; height: 22px; }
.m-top:not(.open) .m-menu .when-open, .m-top.open .m-menu .when-shut { display: none; }

/* the landing page's header sits over the hero's video until the page scrolls, then it is the page's own bar */
.m-top.over { position: fixed; inset-inline: 0; background: transparent; color: #fff; box-shadow: none; transition: background-color .25s, color .25s, box-shadow .25s; }
@supports (backdrop-filter: blur(1px)) { .m-top.over { backdrop-filter: none; -webkit-backdrop-filter: none; } }
.m-top.over .m-brand .on-dark { display: block; }
.m-top.over .m-brand .on-light { display: none; }
.m-top.over .m-links a:hover, .m-top.over .langbtn:hover, .m-top.over .signin:hover { background: rgba(255, 255, 255, .12); }
.m-top.over .m-start { background: #fff; color: var(--lb-deep); }
.m-top.over .m-start:hover { background: var(--lb-tint); }
.m-top.over :focus-visible { outline-color: #fff; }
.m-top.over.scrolled, .m-top.over.open { background: rgba(248, 246, 241, .96); color: var(--lb-ink); box-shadow: 0 1px 0 var(--lb-line); }
.m-top.over.scrolled .m-brand .on-dark, .m-top.over.open .m-brand .on-dark { display: none; }
.m-top.over.scrolled .m-brand .on-light, .m-top.over.open .m-brand .on-light { display: block; }
.m-top.over.scrolled .m-start, .m-top.over.open .m-start { background: var(--lb-primary); color: #fff; }
.m-top.over.scrolled :focus-visible, .m-top.over.open :focus-visible { outline-color: var(--lb-primary); }
.m-top.over.scrolled .m-links a:hover, .m-top.over.scrolled .langbtn:hover, .m-top.over.scrolled .signin:hover { background: rgba(30, 42, 74, .06); }

@media (max-width: 1000px) {
  .m-top .m-links, .m-top .m-right .signin { display: none; }
  .m-top .m-menu { display: grid; }
  .m-top.open .m-links { display: flex; position: absolute; top: var(--bar-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
                         padding: 8px var(--gutter) 16px; background: var(--lb-page); color: var(--lb-ink); border-bottom: 1px solid var(--lb-line);
                         box-shadow: var(--lb-shadow-2); }
  .m-top.open .m-links a { min-height: 48px; padding: 0 12px; border-radius: 10px; font-size: 16px; }
  .m-top.open .m-links a[aria-current] { box-shadow: none; background: var(--lb-tint); }
  .m-top .m-links .m-only { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --bar-h: 64px; }
  .m-top .m-brand { margin-inline-end: 4px; }
  .m-top .m-brand { padding-block: 3px; }   /* a 40 px tap target around the smaller phone logo */
  .m-top .m-brand img { height: 34px; }
  .m-top .langbtn { padding: 0 8px; }
  .m-top .m-start { padding: 0 12px; margin-inline-start: 4px; }
}
@media (max-width: 359px) { .m-top .langbtn .i { display: none; } }

/* ---------- footer: the one deep indigo band ---------- */
.m-foot { background: var(--lb-deep); color: #fff; font-size: 15px; line-height: 1.6; }
.m-foot :focus-visible { outline-color: #fff; }
.m-foot .m-fwrap { max-width: var(--wrap); margin-inline: auto; padding: 64px var(--gutter) 32px; }
.m-foot .m-fgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.m-foot .m-brand { display: inline-block; line-height: 0; border-radius: 8px; }
.m-foot .m-brand img { width: auto; height: 52px; }
.m-foot .m-tag { margin: 16px 0 0; max-width: 22rem; color: var(--on-deep); }
.m-foot .m-fh { margin: 0 0 8px; padding: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; }
.m-foot .m-fh::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--lb-gold); vertical-align: 2px; }
.m-foot ul { margin: 0; padding: 0; list-style: none; }
.m-foot ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-deep); text-decoration: none; }
.m-foot ul a:hover, .m-foot ul a[aria-current] { color: #fff; text-decoration: underline; }
.m-foot .m-fbase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px;
                   border-top: 1px solid var(--deep-line); color: var(--on-deep); font-size: 13.5px; }
.m-foot .m-fbase p { margin: 0; }
.m-foot .langbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
                   box-shadow: inset 0 0 0 1px var(--deep-line); color: #fff; font: 400 14px/1 var(--lb-font); cursor: pointer; }
.m-foot .langbtn:hover { background: rgba(255, 255, 255, .08); }
.m-foot .langbtn .i { width: 16px; height: 16px; }
@media (max-width: 1000px) {
  .m-foot .m-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-foot .m-fabout { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .m-foot .m-fwrap { padding-top: 48px; } .m-foot .m-fgrid { gap: 32px 16px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .m-top, .m-top .m-links a, .m-top .langbtn, .m-top .signin { transition: none; } }
@media print { .m-top, .m-foot { display: none; } }
