/* MDN Ask AI - mdniamul.com colours */
:root{--mdnai-blue:#2B42ED;--mdnai-purple:#9728FF;--mdnai-ink:#0F1438;--mdnai-muted:#5B6185;--mdnai-lav:#DDE1FF;--mdnai-strip-h:38px}
html body .mdnai-strip,html body .mdnai-strip *,html body .mdnai-modal,html body .mdnai-modal *,html body .mdnai-foot,html body .mdnai-foot *,html body .mdnai-hbtn,html body .mdnai-hbtn *{box-sizing:border-box}

/* ---------- Top strip ---------- */
html body .mdnai-strip{position:fixed;left:0;right:0;top:var(--mdnai-top,0px);height:var(--mdnai-strip-h);z-index:99990;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 44px 0 14px;background:linear-gradient(90deg,#fff 0%,var(--mdnai-lav) 100%);border-bottom:1px solid #E3E6FA;font-family:Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
html body .mdnai-strip .mdnai-lbl{font:600 13.5px/1 Poppins,system-ui,sans-serif;color:var(--mdnai-ink);white-space:nowrap}
html body .mdnai-strip .mdnai-lbl b{color:var(--mdnai-purple);font-weight:600}
html body .mdnai-m{display:none}
html body .mdnai-chips{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;min-width:0}
html body .mdnai-chips::-webkit-scrollbar{display:none}
html body .mdnai-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 3px;background:#fff;border:1px solid #E3E6FA;border-radius:30px;font:500 12.5px/1 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--mdnai-ink)!important;text-decoration:none!important;transition:border-color .15s,box-shadow .15s,transform .15s;cursor:pointer}
html body .mdnai-chip img{width:22px;height:22px;border-radius:50%;object-fit:cover;display:block}
html body .mdnai-chip:hover,html body .mdnai-chip:focus-visible{border-color:var(--mdnai-blue);box-shadow:0 4px 12px rgba(43,66,237,.15);transform:translateY(-1px);outline:none}
html body .mdnai-chip.mdnai-more{padding:0 12px;background:var(--mdnai-blue);border-color:var(--mdnai-blue);color:#fff!important;font-weight:600}
html body .mdnai-x{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:var(--mdnai-muted);font:400 20px/26px system-ui;cursor:pointer;padding:0}
html body .mdnai-x:hover{background:rgba(15,20,56,.07)}
html body.mdnai-has-strip{padding-top:var(--mdnai-strip-h)!important}
html body.mdnai-has-strip .elementor-location-header [data-settings*='"sticky":"top"']{top:calc(var(--mdnai-top,0px) + var(--mdnai-strip-h))!important}

/* ---------- Header button ---------- */
html body .mdnai-hbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;height:40px;padding:0 7px;margin-right:8px;background:#fff;border:1.5px solid var(--mdnai-blue);border-radius:3px;cursor:pointer;flex:0 0 auto;align-self:center}
html body .mdnai-hbtn:hover{box-shadow:0 6px 16px rgba(43,66,237,.18)}
html body .mdnai-stack{display:flex}
html body .mdnai-stack img{width:24px;height:24px;border-radius:50%;border:2px solid #fff;margin-left:-9px;object-fit:cover;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}
html body .mdnai-stack img:first-child{margin-left:0}
html body .mdnai-new{position:absolute;top:-8px;right:-8px;background:#FFC400;color:var(--mdnai-ink);font:700 9.5px/1 Poppins,system-ui,sans-serif;border-radius:10px;padding:3px 6px;letter-spacing:.3px}

html body.mdnai-hbtn-on .elementor-location-header .elementor-button-text{white-space:nowrap}

/* ---------- Modal ---------- */
html body .mdnai-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,20,56,.45)}
html body .mdnai-modal.mdnai-open{display:flex}
html body .mdnai-box{position:relative;width:100%;max-width:560px;max-height:88vh;overflow:auto;background:#fff;border-radius:16px;padding:22px 22px 18px;box-shadow:0 24px 60px rgba(15,20,56,.3);font-family:Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--mdnai-ink)}
html body .mdnai-box h3{margin:0 0 4px;font:700 20px/1.25 Poppins,system-ui,sans-serif;color:var(--mdnai-ink)}
html body .mdnai-box h3 b{color:var(--mdnai-purple)}
html body .mdnai-sub{margin:0 0 14px;font-size:13.5px;line-height:1.55;color:var(--mdnai-muted)}
html body .mdnai-g{font:600 12px/1 Poppins,system-ui,sans-serif;color:var(--mdnai-purple);margin:14px 0 8px}
html body .mdnai-g:first-of-type{margin-top:4px}
html body .mdnai-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html body .mdnai-ai{display:flex;flex-direction:column;align-items:center;gap:6px;padding:11px 4px 9px;border:1px solid #ECEEFB;border-radius:11px;background:#FBFBFF;color:var(--mdnai-ink)!important;text-decoration:none!important;font:500 12.5px/1.2 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;text-align:center;transition:.15s}
html body .mdnai-ai img{width:32px;height:32px;border-radius:8px;object-fit:cover}
html body .mdnai-ai:hover,html body .mdnai-ai:focus-visible{border-color:var(--mdnai-blue);background:#fff;box-shadow:0 6px 16px rgba(43,66,237,.14);transform:translateY(-2px);outline:none}
html body .mdnai-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:#F1F2FA;color:var(--mdnai-ink);font:400 22px/32px system-ui;cursor:pointer;padding:0}
html body .mdnai-note{margin:14px 0 0;font-size:12px;color:var(--mdnai-muted);line-height:1.5}

/* ---------- Footer row ---------- */
html body .mdnai-foot{padding:26px 16px 70px;text-align:center;background:linear-gradient(180deg,rgba(221,225,255,0) 0%,rgba(221,225,255,.55) 100%);font-family:Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
html body .mdnai-foot-in{max-width:1140px;margin:0 auto;border-top:1px solid #D5DAFA;padding-top:24px}
html body .mdnai-foot-h{margin:0 0 6px;font:500 15px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--mdnai-muted)}
html body .mdnai-foot-h span{color:var(--mdnai-purple)}
html body .mdnai-foot-s{margin:0 0 16px;font-size:13px;color:var(--mdnai-muted)}
html body .mdnai-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:780px;margin:0 auto}
html body .mdnai-tile{position:relative;width:56px;height:56px;border-radius:14px;background:#fff;border:1px solid #E3E6FA;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(43,66,237,.06);transition:.15s}
html body .mdnai-tile img{width:30px;height:30px;border-radius:7px;object-fit:cover}
html body .mdnai-tile:hover,html body .mdnai-tile:focus-visible{border-color:var(--mdnai-blue);transform:translateY(-3px);box-shadow:0 10px 22px rgba(43,66,237,.18);outline:none}
html body .mdnai-tip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--mdnai-ink);color:#fff;font:500 12px/1 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;padding:6px 9px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
html body .mdnai-tile:hover .mdnai-tip,html body .mdnai-tile:focus-visible .mdnai-tip{opacity:1}
html body .mdnai-copy{margin:22px 0 0;font:400 13.5px/1.5 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--mdnai-muted)}
html body .mdnai-copy a{color:var(--mdnai-blue)!important}

/* ---------- Toast ---------- */
html body .mdnai-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);opacity:0;z-index:2147483001;max-width:92vw;background:var(--mdnai-ink);color:#fff;padding:12px 18px;border-radius:10px;font:500 14px/1.45 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;text-align:center;transition:.25s;pointer-events:none}
html body .mdnai-toast.mdnai-show{opacity:1;transform:translate(-50%,0)}

@media (max-width:1024px){html body .mdnai-hbtn{display:none!important}}
@media (max-width:767px){
 :root{--mdnai-strip-h:40px}
 html body .mdnai-strip{justify-content:flex-start;padding:0 38px 0 10px;gap:8px}
 html body .mdnai-strip .mdnai-lbl{font-size:12.5px}
 html body .mdnai-d{display:none}html body .mdnai-m{display:inline}
 html body .mdnai-modal{align-items:flex-end;padding:0}
 html body .mdnai-box{max-width:none;border-radius:18px 18px 0 0;max-height:85vh;padding:20px 16px 16px}
 html body .mdnai-grid{gap:7px}
 html body .mdnai-ai{font-size:11.5px;padding:10px 2px 8px}
 html body .mdnai-tile{width:48px;height:48px;border-radius:12px}
 html body .mdnai-tile img{width:26px;height:26px}
 html body .mdnai-row{gap:8px}
 html body .mdnai-foot{padding-bottom:110px}
}
@media (prefers-reduced-motion:reduce){html body .mdnai-chip,html body .mdnai-ai,html body .mdnai-tile,html body .mdnai-toast{transition:none}}

/* Theme button styles must not leak in */
html body .mdnai-close{background:#F1F2FA!important;color:#0F1438!important;border:0!important;box-shadow:none!important;min-height:0!important;line-height:32px!important}
html body .mdnai-close:hover{background:#E4E6F7!important}
html body .mdnai-x{background:transparent!important;color:#5B6185!important;border:0!important;box-shadow:none!important;min-height:0!important}
html body .mdnai-x:hover{background:rgba(15,20,56,.07)!important}
html body .mdnai-hbtn{background:#fff!important;color:#2B42ED!important;border:1.5px solid #2B42ED!important;min-height:0!important;text-transform:none!important}
html body .mdnai-chip.mdnai-more{background:#2B42ED!important;color:#fff!important;border:1px solid #2B42ED!important;min-height:0!important;box-shadow:none!important;text-transform:none!important}

/* ---------- Language switcher ---------- */
html body .mdnai-lang{position:relative;flex:0 0 auto;font-family:Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
html body .mdnai-lang-btn{display:inline-flex!important;align-items:center;gap:5px;height:28px!important;padding:0 9px!important;margin:0!important;border:1px solid #E3E6FA!important;border-radius:30px!important;background:#fff!important;color:#0F1438!important;font:600 12px/1 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif!important;cursor:pointer;box-shadow:none!important;min-height:0!important;text-transform:none!important;letter-spacing:0!important}
html body .mdnai-lang-btn:hover,html body .mdnai-lang.open .mdnai-lang-btn{border-color:#2B42ED!important;color:#2B42ED!important}
html body .mdnai-lang-btn svg{color:#2B42ED;display:block}
html body .mdnai-lang-btn i{width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg) translateY(-2px);margin-left:2px}
html body .mdnai-lang-list{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:2147482000;margin:0!important;padding:6px!important;list-style:none!important;background:#fff;border:1px solid #E3E6FA;border-radius:12px;box-shadow:0 14px 34px rgba(15,20,56,.18);max-height:min(60vh,380px);overflow:auto;min-width:190px;text-align:left}
html body .mdnai-lang.open .mdnai-lang-list{display:block}
html body .mdnai-lang.up .mdnai-lang-list{top:auto;bottom:calc(100% + 6px);right:auto;left:50%;transform:translateX(-50%)}
html body .mdnai-lang-list li{margin:0!important;padding:8px 10px!important;border-radius:8px;font:500 13.5px/1.2 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#0F1438;cursor:pointer;white-space:nowrap;list-style:none!important}
html body .mdnai-lang-list li:before{display:none!important}
html body .mdnai-lang-list li b{display:inline-block;width:30px;color:#5B6185;font-weight:600;font-size:11.5px}
html body .mdnai-lang-list li:hover,html body .mdnai-lang-list li:focus{background:#EEF0FF;outline:none}
html body .mdnai-lang-list li.on{background:#2B42ED;color:#fff}
html body .mdnai-lang-list li.on b{color:#DDE1FF}
html body .mdnai-strip.mdnai-has-lang{padding-right:40px}
html body .mdnai-lang-foot{margin:18px 0 0;font:500 13.5px/1 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#5B6185;display:flex;align-items:center;justify-content:center;gap:8px}
html body .mdnai-lang-note{margin:0 auto 18px;max-width:560px;padding:9px 14px;border-radius:10px;background:#fff;border:1px solid #E3E6FA;font:500 13px/1.5 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#5B6185}
html body .mdnai-lang-note button{background:none!important;border:0!important;padding:0!important;color:#2B42ED!important;font:600 13px/1.5 Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif!important;text-decoration:underline;cursor:pointer;min-height:0!important;box-shadow:none!important}
/* Hide Google's own bar and pop-ups so the site looks the same */
html.mdnai-translated body{top:0!important;position:static!important}
html body .goog-te-banner-frame,html body iframe.skiptranslate,html body .skiptranslate>iframe,html body #goog-gt-tt,html body .goog-te-balloon-frame,html body .VIpgJd-ZVi9od-ORHb-OEVmcd,html body .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,html body .VIpgJd-yAWNEb-L7lbkb{display:none!important;visibility:hidden!important}
html body .goog-text-highlight,html body font[style]{background:none!important;box-shadow:none!important}
@media (max-width:767px){html body .mdnai-lang-btn{padding:0 7px!important}html body .mdnai-lang-btn span{font-size:11px}html body .mdnai-strip.mdnai-has-lang{padding-right:36px}}

/* When the page is translated, longer words need room in the header */
html.mdnai-translated body .mdnai-hbtn{display:none!important}
html.mdnai-translated body.mdnai-hbtn-on .elementor-location-header .elementor-button-text{white-space:normal}
html.mdnai-translated body .elementor-location-header .elementor-nav-menu--main .elementor-item{font-size:14px!important;padding-left:7px!important;padding-right:7px!important}

html.mdnai-translated body .mdnai-strip .mdnai-lbl b{margin-left:.3em}

/* Flags in the language menu */
html body .mdnai-flag{display:inline-block!important;width:20px!important;height:15px!important;object-fit:cover;border-radius:3px!important;box-shadow:0 0 0 1px rgba(15,20,56,.12)!important;vertical-align:middle;flex:0 0 auto;margin:0!important;max-width:none!important}
html body .mdnai-lang-list li{display:flex!important;align-items:center;gap:8px}
html body .mdnai-lang-list li b{width:26px}
html body .mdnai-lang-note .mdnai-flag{margin-right:4px!important;vertical-align:-2px}