/* Atlas v6.18.2 — scroll/search/images hotfix
   Loaded LAST after the visual reference lock. */

/* 1) The page must scroll. Old modal classes may lock body only while a modal
      is really open; the normal Atlas pages are always document-scrollable. */
html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;}
body.home:not(.atlas-modal-open):not(.atlas-lightbox-open),
body.search-results:not(.atlas-modal-open):not(.atlas-lightbox-open){
  height:auto!important;min-height:100%!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;position:relative!important;
}
body.home .a18-frame,body.search-results .a18-frame{
  height:auto!important;max-height:none!important;min-height:calc(100vh - 28px)!important;
  overflow:visible!important;
}
body.search-results .a18-frame{min-height:calc(100vh - 14px)!important;}

/* 2) Search submit buttons are explicit UI controls — never hidden. */
.a18-home-search input[name="q"]{right:205px!important;width:calc(100% - 268px)!important;}
.a18-home-search .a18-voice{right:143px!important;}
.a18-search-submit{
  position:absolute!important;right:9px!important;top:50%!important;transform:translateY(-50%)!important;
  width:122px!important;height:54px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#2f6cf5,#6d53ef)!important;color:#fff!important;
  box-shadow:0 8px 20px rgba(64,84,230,.22)!important;font-weight:680!important;font-size:14px!important;cursor:pointer!important;
}
.a18-search-submit svg{display:none;width:19px;height:19px;}
.a18-search-submit:hover{filter:brightness(1.03);transform:translateY(-50%) scale(1.01)!important;}
.a18-search-submit:active{transform:translateY(-50%) scale(.985)!important;}

.a18-results-form input[name="q"]{right:154px!important;width:calc(100% - 203px)!important;}
.a18-results-form .a18-voice{right:119px!important;}
.a18-results-form .a18-image-shortcut{right:86px!important;}
.a18-results-form .a18-ai-shortcut{right:53px!important;}
.a18-results-submit{
  position:absolute!important;right:6px!important;top:50%!important;transform:translateY(-50%)!important;
  width:40px!important;height:34px!important;display:grid!important;place-items:center!important;padding:0!important;
  border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#3a72f5,#7556ef)!important;color:#fff!important;
  box-shadow:0 5px 13px rgba(64,84,230,.20)!important;cursor:pointer!important;
}
.a18-results-submit svg{width:17px;height:17px;display:block;}

/* 3) Widget art is real IMG markup, not fragile pseudo-elements/backgrounds. */
.a18-weather-art,.a18-side-weather-art,.a18-moon-art{display:none!important;}
.a18-ai-home::before,.a18-ai-answer::after,.a18-side-today::before{display:none!important;content:none!important;}

.a18-weather-art-img,.a18-side-weather-art-img,.a18-moon-art-img,.a18-side-moon-art-img,.a18-ai-home-art,.a18-ai-answer-art{
  position:absolute!important;display:block!important;pointer-events:none!important;user-select:none!important;object-fit:cover!important;
}
.a18-weather-art-img{z-index:0;right:-43px;top:0;width:82%;height:72%;border:0;filter:saturate(.98) contrast(.98);opacity:1;}
.a18-weather::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(33,107,224,.36) 0%,rgba(33,107,224,.12) 38%,rgba(33,107,224,0) 75%);pointer-events:none;}
.a18-weather>.a18-card-head,.a18-weather>.a18-weather-main,.a18-weather>.a18-weather-stats,.a18-weather>.a18-card-foot{z-index:4;}

.a18-moon-art-img{z-index:1;right:-4px;top:13px;width:50%;height:76%;border-radius:50%;opacity:.96;object-fit:cover!important;}
.a18-today::after{content:"";position:absolute;z-index:2;right:0;top:0;width:58%;height:80%;background:linear-gradient(90deg,rgba(51,48,165,.82),rgba(51,48,165,0) 45%);pointer-events:none;}
.a18-today>.a18-card-head,.a18-today>.a18-date-main,.a18-today>.a18-moon-meta,.a18-today>.a18-card-foot{z-index:5;}

.a18-ai-home-art{z-index:1;right:-8px;top:35px;width:54%;height:76%;border-radius:50%;opacity:.56;object-fit:cover!important;}
.a18-ai-home::after{content:"";position:absolute;z-index:2;right:0;top:0;width:60%;height:100%;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.48) 25%,rgba(255,255,255,0) 72%);pointer-events:none;}
.a18-ai-home>.a18-card-head,.a18-ai-home>.a18-ai-home-copy,.a18-ai-home>.a18-card-foot{z-index:5;}

.a18-ai-answer-art{z-index:1;right:18px;top:34px;width:250px;height:190px;border-radius:50%;opacity:.95;object-fit:cover!important;}
.a18-ai-answer>.a18-ai-head,.a18-ai-answer>.a18-ai-body,.a18-ai-answer>.a18-ai-footer{z-index:4;}

.a18-side-weather-art-img{z-index:0;right:-36px;top:0;width:82%;height:79%;object-fit:cover!important;opacity:1;}
.a18-side-weather::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(38,110,225,.52) 0%,rgba(38,110,225,.16) 48%,rgba(38,110,225,0) 82%);pointer-events:none;}
.a18-side-weather>.a18-side-head,.a18-side-weather>.a18-side-weather-main,.a18-side-weather>.a18-side-weather-stats,.a18-side-weather>.a18-side-foot{z-index:4;}

.a18-side-moon-art-img{z-index:1;right:5px;top:13px;width:48%;height:73%;border-radius:50%;opacity:.96;object-fit:cover!important;}
.a18-side-today::after{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,rgba(57,52,168,.92) 0%,rgba(57,52,168,.52) 47%,rgba(57,52,168,.06) 85%);pointer-events:none;}
.a18-side-today>.a18-side-head,.a18-side-today>.a18-side-date,.a18-side-today>.a18-side-moon,.a18-side-today>.a18-side-foot{z-index:4;}

/* Preserve clean frame corners on large screens without locking page scroll. */
@media(min-width:1181px){
  .a18-frame{border-radius:20px!important;}
}

@media(max-width:860px){
  body.home .a18-frame,body.search-results .a18-frame{min-height:100vh!important;}
  .a18-home-search input[name="q"]{right:154px!important;width:calc(100% - 202px)!important;}
  .a18-home-search .a18-voice{right:111px!important;}
  .a18-search-submit{right:7px!important;width:98px!important;height:46px!important;border-radius:13px!important;}
  .a18-ai-answer-art{right:6px;top:52px;width:180px;height:145px;opacity:.35;}
}
@media(max-width:560px){
  .a18-home-search input[name="q"]{left:48px!important;right:112px!important;width:calc(100% - 160px)!important;}
  .a18-home-search .a18-voice{display:none!important;}
  .a18-search-submit{right:6px!important;width:96px!important;height:44px!important;font-size:13px!important;}
  .a18-search-submit span{display:block;}
  .a18-results-form input[name="q"]{right:50px!important;width:calc(100% - 99px)!important;}
  .a18-results-form .a18-voice,.a18-results-form .a18-image-shortcut,.a18-results-form .a18-ai-shortcut{display:none!important;}
  .a18-results-submit{right:5px!important;width:39px!important;height:34px!important;}
  .a18-weather-art-img{right:-58px;width:96%;}
  .a18-moon-art-img{right:-12px;width:59%;}
  .a18-ai-home-art{right:-25px;width:66%;opacity:.44;}
}
