/* Slidin header hover menus. Added on top of the live home pages (see README.md).
   Uses the page's own colour variables; the fallbacks are the Slidin palette. */
.mm-on .nav-shell .nav .nav-links{display:none !important}
.mm-nav{display:flex;align-items:center;gap:6px;font-family:var(--font,"DM Sans",system-ui,sans-serif);font-size:15px;font-weight:500;color:var(--ink,#2F4156)}
.mm-item{position:relative}
.mm-btn,.mm-top{appearance:none;background:none;border:0;margin:0;font:inherit;color:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .16s}
.mm-btn:hover,.mm-top:hover,.mm-item.mm-open>.mm-btn,.mm-btn:focus-visible,.mm-top:focus-visible{background:var(--bg-soft,#F5EFEB)}
.mm-btn:focus-visible,.mm-top:focus-visible,.mm-link:focus-visible{outline:2px solid var(--ink,#2F4156);outline-offset:2px}
.mm-btn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.mm-item.mm-open>.mm-btn svg{transform:rotate(180deg)}
/* keeps the menu open while the pointer travels from the tab down to the panel */
.mm-item.mm-open::after{content:"";position:absolute;left:0;right:0;top:100%;height:44px}

/* Full-width panel. Left, width and top are set by the script so it spans the
   window (24px from each side) just under the header, whatever the layout. */
.mm-panel{display:none;position:absolute;left:0;right:auto;top:100%;z-index:1100;box-sizing:border-box;padding:30px 36px 34px;background:var(--surface,#fff);color:var(--ink,#2F4156);border:1px solid rgba(47,65,86,.18);border-radius:12px;box-shadow:0 24px 48px -8px rgba(47,65,86,.18),0 2px 6px rgba(47,65,86,.06);text-align:start}
.mm-item.mm-open>.mm-panel{display:block}
.mm-cols{display:flex;max-width:1120px;margin:0 auto}
.mm-col{flex:1 1 0;min-width:0}
.mm-col+.mm-col{border-inline-start:1px solid rgba(47,65,86,.14);margin-inline-start:36px;padding-inline-start:36px}
.mm-links{display:grid;gap:6px 28px}
.mm-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-3,#567C8D);padding:0 12px 14px}
.mm-link{display:flex;align-items:flex-start;gap:14px;padding:12px;border-radius:10px;color:inherit;text-decoration:none}
.mm-link:hover{background:var(--bg-soft,#F5EFEB)}
.mm-ic{flex:none;width:40px;height:40px;border-radius:10px;background:var(--bg-soft,#F5EFEB);display:grid;place-items:center;color:var(--ink,#2F4156);transition:background .15s}
.mm-link:hover .mm-ic{background:#C8D9E6}
.mm-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mm-tx{display:block;min-width:0}
.mm-tx b{display:block;font-weight:600;font-size:16px;line-height:1.25}
.mm-tx small{display:block;margin-top:4px;font-size:13.5px;font-weight:400;line-height:1.4;color:var(--ink-3,#567C8D)}
html[lang="ar"] .mm-nav,html[lang="ar"] .mm-panel{font-family:"Cairo","DM Sans",system-ui,sans-serif}

html[data-theme="dark"] .mm-panel{border-color:rgba(255,255,255,.18);box-shadow:0 24px 48px -8px rgba(0,0,0,.5)}
html[data-theme="dark"] .mm-col+.mm-col{border-inline-start-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .mm-link:hover .mm-ic{background:var(--ink-3,#567C8D);color:#fff}

/* the page hides its own links at this width and uses the burger menu instead */
@media (max-width:1040px){.mm-nav{display:none !important}}
@media (prefers-reduced-motion:reduce){.mm-btn,.mm-top,.mm-btn svg,.mm-ic{transition:none}}

/* For menu: the use-cases showcase */
.mm-uc{display:flex;gap:40px;align-items:flex-start;padding:0 12px}
.mm-uc-l{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:18px}
.mm-uc-tabs{display:inline-flex;gap:6px;padding:4px;border-radius:12px;background:var(--bg-soft,#F5EFEB);align-self:flex-start}
.mm-uc-tab{font:inherit;font-size:14px;font-weight:600;color:var(--ink-3,#567C8D);background:transparent;border:0;border-radius:9px;padding:8px 14px;cursor:pointer;transition:background .15s,color .15s}
.mm-uc-tab.on{background:#fff;color:var(--ink,#2F4156);box-shadow:0 1px 4px rgba(47,65,86,.14)}
.mm-uc-body h3{margin:0 0 8px;font-size:24px;line-height:1.2;letter-spacing:-.02em;font-weight:700;color:var(--ink,#2F4156)}
.mm-uc-body p{margin:0 0 14px;font-size:15px;line-height:1.55;color:var(--ink-3,#567C8D);max-width:520px}
.mm-uc-body ul{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}
.mm-uc-body li{position:relative;padding-inline-start:22px;font-size:14.5px;font-weight:500;color:var(--ink,#2F4156)}
.mm-uc-body li:before{content:"";position:absolute;inset-inline-start:2px;top:.45em;width:9px;height:5px;border-left:2px solid #567C8D;border-bottom:2px solid #567C8D;transform:rotate(-45deg)}
.mm-uc-more{font-size:14px;font-weight:600;color:var(--ink,#2F4156);text-decoration:none;border-bottom:1px solid currentColor}
.mm-uc-r{flex:none;width:280px}
.mm-uc-card{background:var(--bg-soft,#F5EFEB);border:1px solid rgba(47,65,86,.14);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.mm-uc-top{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink,#2F4156)}
.mm-uc-top i{margin-inline-start:auto;font-style:normal;font-size:11px;color:var(--ink-3,#567C8D)}
.mm-uc-av{flex:none;width:26px;height:26px;border-radius:50%;background:var(--ink,#2F4156);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700}
.mm-uc-av.s{width:22px;height:22px;font-size:10px;background:#C8D9E6;color:var(--ink,#2F4156)}
.mm-uc-cap{border-radius:12px;background:linear-gradient(135deg,#2F4156,#567C8D);color:#fff;font-size:14px;font-weight:700;line-height:1.3;padding:26px 16px;text-align:center}
.mm-uc-cm{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--ink,#2F4156)}
.mm-uc-cm b{display:block;font-size:12px}
.mm-uc-cm span:not(.mm-uc-av){color:var(--ink-3,#567C8D)}
.mm-uc-add{font-size:12px;color:var(--ink-3,#567C8D);border:1px solid rgba(47,65,86,.16);background:#fff;border-radius:999px;padding:7px 12px}
html[data-theme="dark"] .mm-uc-tab.on{background:var(--ink-3,#567C8D);color:#fff}
