/* Shared header (non-home copies) and footer. Scoped: .mrl-header / .mrl-footer only. */
header.site.mrl-header{
  --bg:#F6F7F3;--surface:#fff;--border:#D5DDD9;--text:#25302E;--text-2:#596461;
  --primary:#356C76;--primary-pressed:#28545D;--orange:#E28235;--orange-line:#B36124;--edge:#234B53;
  position:sticky;top:env(safe-area-inset-top,0px);z-index:30;
  background:rgba(246,247,243,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);color:var(--text);
  font-family:"Noto Sans","Segoe UI",system-ui,-apple-system,sans-serif;font-size:17px;line-height:1.55;
}
html[lang="ar"] header.site.mrl-header{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic","Segoe UI",Tahoma,sans-serif}
header.mrl-header .bar{display:flex;align-items:center;gap:20px;min-height:64px;padding-inline:0;max-width:none}
header.mrl-header .brand{display:flex;align-items:center;gap:1px;font-family:inherit;font-weight:700;font-size:23px;letter-spacing:0;text-decoration:none;direction:ltr;color:var(--text)}
header.mrl-header .brand .mr{color:var(--primary)}
header.mrl-header .brand svg{width:31px;height:41px;margin-top:-2px;overflow:visible}
header.mrl-header .qmark .q-body{fill:none;stroke:var(--primary);stroke-width:23}
header.mrl-header .qmark .lk{fill:none;stroke:var(--orange);stroke-width:10}
header.mrl-header .qmark .clr{fill:none;stroke:var(--bg)}
header.mrl-header .brand .hat{transform-box:fill-box;transform-origin:50% 100%;transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
header.mrl-header .brand:hover .hat{transform:rotate(-14deg) translateY(-3px)}
header.mrl-header nav.links{display:flex;gap:22px;margin-inline-start:auto;font-weight:500;font-size:15px}
header.mrl-header nav.links a{text-decoration:none;color:var(--text-2)}
header.mrl-header nav.links a:hover{color:var(--text)}
header.mrl-header .lang{display:flex;border:1px solid var(--border);border-radius:999px;padding:3px;gap:2px;background:var(--surface);margin:0}
header.mrl-header .lang a{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--text-2);text-decoration:none;padding:6px 10px;border-radius:999px;min-width:38px;min-height:32px;background:none}
header.mrl-header .lang a[aria-current="true"]{background:var(--primary);color:#fff}
header.mrl-header .signin{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-weight:600;font-size:15px;color:var(--primary);text-decoration:none}
header.mrl-header .signin:hover{text-decoration:underline;text-underline-offset:3px}
header.mrl-header .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;position:relative;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;border:0;border-radius:8px 16px 8px 8px;background:var(--primary);color:#fff;box-shadow:0 3px 0 var(--edge)}
header.mrl-header .btn:hover{background:var(--primary-pressed)}
header.mrl-header .btn--small{min-height:44px;padding:0 16px;font-size:15px}
header.mrl-header .btn--primary::after{content:"";position:absolute;top:7px;inset-inline-end:7px;width:9px;height:9px;border-top:2px solid var(--orange);border-inline-end:2px solid var(--orange);border-start-end-radius:2px}
/* Compact one-row header: layout rules live in brand-polish.css; keep these to the same row. */
header.mrl-header .bar{min-height:56px;flex-wrap:nowrap;gap:10px}
header.mrl-header .signin{padding:0 2px;font-size:14px;white-space:nowrap}
@media(max-width:1279px){header.mrl-header nav.links,header.mrl-header .bar .btn--small{display:none}}
@media(max-width:380px){header.mrl-header .lang a{min-width:34px;padding-inline:6px}}

/* ---------- Footer ---------- */
footer.mrl-footer{
  margin:0;padding:48px 0 calc(40px + env(safe-area-inset-bottom,0px));border-top:1px solid #D5DDD9;
  background:#EDF4F2;color:#596461;font-size:15px;line-height:1.5;text-align:start;
}
footer.mrl-footer .mrl-footer__inner{display:grid;gap:32px;width:min(1280px,calc(100% - 32px));margin-inline:auto}
footer.mrl-footer a{color:#25302E;text-decoration:none}
footer.mrl-footer a:hover{color:#28545D;text-decoration:underline;text-underline-offset:3px}
footer.mrl-footer .mrl-footer__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 32px;align-items:start}
footer.mrl-footer .mrl-footer__brand{grid-column:1/-1;display:grid;gap:10px;align-content:start}
footer.mrl-footer .mrl-footer__group{grid-column:span 2}
footer.mrl-footer .mrl-footer__logo{font-weight:700;font-size:23px;direction:ltr;justify-self:start;min-height:44px;display:inline-flex;align-items:center}
footer.mrl-footer .mrl-footer__logo .mr{color:#356C76}
footer.mrl-footer .mrl-footer__brand p{margin:0;overflow-wrap:anywhere}
footer.mrl-footer .mrl-footer__brand p a{color:#28545D;font-weight:600;display:inline-flex;align-items:center;min-height:44px}
footer.mrl-footer h2{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#28545D;font-family:inherit}
html[lang="ar"] footer.mrl-footer h2{letter-spacing:0}
footer.mrl-footer ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,auto);grid-auto-flow:column;gap:0 24px}
footer.mrl-footer li{display:block;margin:0;padding:0}
footer.mrl-footer li::before{content:none!important;display:none!important}
footer.mrl-footer li a{display:flex;align-items:center;min-height:44px;padding-block:6px;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
footer.mrl-footer .mrl-footer__meta{display:grid;gap:14px;padding-top:24px;border-top:1px solid #C7D5CF}
footer.mrl-footer .mrl-footer__badges .store-badges{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
footer.mrl-footer .mrl-footer__badges .store-badges>a{padding:0;flex:none}
footer.mrl-footer .mrl-footer__badges img{height:44px!important;width:auto!important;max-width:none}
footer.mrl-footer .mrl-footer__badges .appstore-badge img{width:calc(44px * 2.0104)!important}
footer.mrl-footer .mrl-footer__langs,footer.mrl-footer .mrl-footer__countries{display:flex;flex-wrap:wrap;gap:4px;margin:0;font-size:14px}
footer.mrl-footer .mrl-footer__langs a,footer.mrl-footer .mrl-footer__countries a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border-radius:999px;font-weight:600;color:#596461}
footer.mrl-footer .mrl-footer__langs a[aria-current],footer.mrl-footer .mrl-footer__countries a[aria-current]{background:#356C76;color:#fff;text-decoration:none}
footer.mrl-footer .mrl-footer__sub,footer.mrl-footer .mrl-footer__disc{margin:0;max-width:72ch;font-size:13px}
footer.mrl-footer .mrl-footer__copy{margin:0;font-size:13px;font-weight:600;color:#25302E}
@media(max-width:767px){
  footer.mrl-footer .mrl-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
  footer.mrl-footer .mrl-footer__group{grid-column:span 1}
  footer.mrl-footer ul{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}
}
@media(max-width:360px){
  footer.mrl-footer .mrl-footer__badges img{height:40px!important}
  footer.mrl-footer .mrl-footer__badges .appstore-badge img{width:calc(40px * 2.0104)!important}
}
