/* MGP site-wide search overlay (staging prototype). Full-screen, glassy, keyboard-driven. */
.mgp-search{position:fixed;inset:0;z-index:400;display:none;flex-direction:column;align-items:center;
  background:rgba(6,10,8,.82);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  padding:min(14vh,120px) 20px 40px;opacity:0;transition:opacity .22s ease,padding-top .42s cubic-bezier(.22,1,.36,1)}
.mgp-search.open{display:flex;opacity:1}
/* EMPTY (just opened, nothing typed): the box sits in the vertical middle — horizontally it is
   already centred (max-width box, align-items:center). The first keystroke removes .empty and the
   box glides to the top position to make room for results. */
.mgp-search.empty{padding-top:calc(50dvh - 50px)}
/* 1st letter: a SLOW, gentle lift a little way up (results only appear at 2 chars, so this is a
   "getting ready" cue). The slow duration lives on .nudge, so ENTERING it (empty→nudge) is slow but
   LEAVING it (nudge→top, the 2nd letter) uses the base transition and slides at the normal speed. */
.mgp-search.nudge{padding-top:calc(42dvh - 50px);transition:opacity .22s ease,padding-top .85s ease}
.mgp-search-box{width:100%;max-width:720px;display:flex;align-items:center;gap:14px;
  background:rgba(0,0,0,.5);border:1px solid rgba(228,228,216,.22);border-radius:18px;padding:14px 20px}
.mgp-search-mag{flex:0 0 auto;width:34px;height:34px;color:var(--orange,#F39200)}
.mgp-search-mag svg{width:100%;height:100%;display:block}
/* MGP ⟷ MMCC gentle cross-fade, sat just left of the magnifier — matches the console header. The
   MGP wordmark keeps the container's width so nothing reflows as the square crest fades in over it. */
.mgp-search-brand{position:relative;flex:0 0 auto;height:30px;display:inline-flex;align-items:center}
.mgp-search-brand img{display:block;width:auto}
.msb-mgp{height:30px;animation:msbMgp 13s ease-in-out infinite}
.msb-mmcc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:30px;opacity:0;animation:msbMmcc 13s ease-in-out infinite}
@keyframes msbMgp{0%,38%{opacity:1}50%,88%{opacity:0}100%{opacity:1}}
@keyframes msbMmcc{0%,38%{opacity:0}50%,88%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.msb-mgp,.msb-mmcc{animation:none}.msb-mmcc{opacity:0}}
.mgp-search input{flex:1 1 auto;min-width:0;background:none;border:0;outline:none;color:var(--cream,#E4E4D8);
  font-family:var(--disp,sans-serif);font-size:clamp(20px,3.4vw,30px);letter-spacing:.5px}
.mgp-search input::placeholder{color:var(--cream,#E4E4D8);opacity:.4}
.mgp-search-close{flex:0 0 auto;appearance:none;background:none;border:0;cursor:pointer;color:var(--cream,#E4E4D8);
  opacity:.7;font-size:26px;line-height:1;padding:4px 8px}
.mgp-search-close:hover{opacity:1;color:var(--orange,#F39200)}
.mgp-search-hint{max-width:720px;width:100%;margin:8px 4px 0;font-family:var(--data,sans-serif);
  font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--cream,#E4E4D8);opacity:.4}
.mgp-search-results{width:100%;max-width:720px;margin-top:18px;overflow-y:auto;flex:1 1 auto}
.mgp-sgroup{margin-bottom:18px}
.mgp-sgroup-h{font-family:var(--data,sans-serif);font-weight:700;text-transform:uppercase;letter-spacing:1.5px;
  font-size:12px;color:var(--leaf,#289851);margin:0 0 8px;padding:0 4px}
.mgp-sitem{display:flex;align-items:baseline;gap:12px;text-decoration:none;padding:11px 14px;border-radius:12px;
  color:var(--cream,#E4E4D8);border:1px solid transparent}
.mgp-sitem:hover,.mgp-sitem.sel{background:rgba(228,228,216,.08);border-color:rgba(40,152,81,.4)}
.mgp-sitem .n{font-family:var(--disp,sans-serif);font-size:16px;flex:1 1 auto;min-width:0}
.mgp-sitem .m{font-family:var(--data,sans-serif);font-size:13px;opacity:.6;flex:0 0 auto;white-space:nowrap}
.mgp-sempty{text-align:center;opacity:.5;font-family:var(--body,sans-serif);font-size:15px;padding:40px 0}

/* the site-wide SEARCH pill (a 3rd button beside Account | cart on the mini pill).
   It is a <button>, so reset the UA chrome — the .mp-btn rule only ever dressed <a>s. */
.mgp-minipill .mp-search{appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;
  font:inherit;line-height:0;color:var(--orange,#F39200)}
/* stays ORANGE on hover — mirrors the Account control (the leaf-green hover is only for other pills) */
.mgp-minipill .mp-search:hover{color:var(--orange,#F39200)}
.mgp-minipill .mp-search svg{width:20px;height:20px}

/* type="search" draws its own clear "x" in WebKit, which sat right next to our close button and
   read as two close buttons. The overlay has Esc and a close control already. */
.mgp-search input::-webkit-search-cancel-button,
.mgp-search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
