/* Atlas Search v6.7 — OpenWeather vivid weather card */

/* Hide legacy icon box; the main illustration owns the weather visual. */
.atlas-widget-card--weather [data-weather-icon]{
  display:none!important;
}

/* HOME weather card — inspired by premium colourful widgets, Atlas-specific */
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather{
  position:relative!important;
  min-height:330px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e1e7f2!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 20px 55px rgba(64,79,123,.10)!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather::before,
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather::after{
  display:none!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-head{
  position:relative!important;
  z-index:5!important;
  min-height:50px!important;
  padding:16px 17px 0!important;
  gap:0!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-title{
  display:flex!important;
  align-items:baseline!important;
  gap:5px!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-title h3{
  color:#344158!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:690!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-title h3::after{
  content:" в"!important;
  color:#344158!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather [data-weather-city]{
  color:#5472f4!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:710!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-settings{
  margin-left:auto!important;
  width:30px!important;
  height:30px!important;
  background:#f5f7fb!important;
  color:#8995a7!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-settings:hover{
  background:#eef1ff!important;
  color:#5969e4!important;
}

.atlas-weather-visual-v67{
  position:absolute!important;
  z-index:1!important;
  top:46px!important;
  left:14px!important;
  width:116px!important;
  height:96px!important;
  pointer-events:none!important;
}
.atlas-weather-cute-svg{
  width:100%!important;
  height:100%!important;
  display:block!important;
  filter:drop-shadow(0 10px 16px rgba(57,71,112,.10))!important;
}

.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-body{
  position:relative!important;
  z-index:3!important;
  width:auto!important;
  margin:12px 18px 0 124px!important;
  min-height:74px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-body strong{
  color:#343b4d!important;
  font-size:54px!important;
  line-height:.88!important;
  font-weight:720!important;
  letter-spacing:-.07em!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-body span{
  max-width:150px!important;
  padding:0!important;
  color:#7f8b9f!important;
  font-size:9px!important;
  line-height:1.3!important;
  font-weight:560!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-feels{
  position:relative!important;
  z-index:3!important;
  margin:4px 18px 0 126px!important;
  color:#a0a9b7!important;
  font-size:8px!important;
}

/* Two clear day-part cells */
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-forecast{
  position:relative!important;
  z-index:4!important;
  margin:18px 18px 0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.atlas-weather-daypart-v67{
  min-height:68px!important;
  padding:8px 10px!important;
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:8px!important;
  border:1px solid #edf0f5!important;
  border-radius:14px!important;
  background:#fafbfe!important;
}
.atlas-weather-daypart-v67>span{
  grid-column:2!important;
  grid-row:1!important;
  color:#969fac!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:590!important;
  text-transform:lowercase!important;
}
.atlas-weather-daypart-icon-v67{
  grid-column:1!important;
  grid-row:1/3!important;
  width:30px!important;
  height:30px!important;
}
.atlas-weather-daypart-icon-v67 svg{
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.atlas-weather-daypart-v67>b{
  grid-column:2/4!important;
  grid-row:2!important;
  color:#465269!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:700!important;
}

/* Vibrant lower panel, like the reference composition but Atlas-branded. */
.atlas-weather-advice-v67{
  position:relative!important;
  z-index:4!important;
  min-height:84px!important;
  margin-top:12px!important;
  padding:15px 18px 36px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:6px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 84% 18%,rgba(255,255,255,.25),transparent 25%),
    linear-gradient(135deg,#627af7 0%,#7b6ff3 48%,#a77bf6 100%)!important;
  color:#fff!important;
}
.atlas-weather-advice-v67::before,
.atlas-weather-advice-v67::after{
  content:""!important;
  position:absolute!important;
  top:-18px!important;
  width:86px!important;
  height:38px!important;
  border-radius:50%!important;
  background:#fff!important;
}
.atlas-weather-advice-v67::before{left:22px!important}
.atlas-weather-advice-v67::after{left:82px!important}
.atlas-weather-advice-v67>span{
  position:relative!important;
  z-index:2!important;
  max-width:245px!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:1.45!important;
  font-weight:610!important;
}
.atlas-weather-advice-v67>b{
  position:relative!important;
  z-index:2!important;
  color:rgba(255,255,255,.78)!important;
  font-size:8.5px!important;
  line-height:1.2!important;
  font-weight:590!important;
}

/* Fold CTA into the colourful footer */
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-week-cta-v66{
  left:18px!important;
  right:18px!important;
  bottom:8px!important;
  min-height:26px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  backdrop-filter:none!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-week-cta-v66>span{
  display:none!important;
}
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-week-cta-v66>b{
  color:#fff!important;
  font-size:9px!important;
  font-weight:690!important;
}

/* Source is deliberately quiet on the card */
.atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-meta{
  position:absolute!important;
  left:18px!important;
  top:142px!important;
  z-index:4!important;
  width:160px!important;
  margin:0 0 0 108px!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  color:#b0b8c5!important;
  font-size:7px!important;
}

/* tone-specific lower gradients */
.atlas-widget-card--weather.weather-tone-rain .atlas-weather-advice-v67{
  background:linear-gradient(135deg,#4d75d8,#6179de 48%,#7f77e9)!important;
}
.atlas-widget-card--weather.weather-tone-storm .atlas-weather-advice-v67{
  background:linear-gradient(135deg,#46507e,#5b56a5 50%,#7a5cc2)!important;
}
.atlas-widget-card--weather.weather-tone-snow .atlas-weather-advice-v67{
  background:linear-gradient(135deg,#70a0e9,#829cf0 50%,#a48fea)!important;
}
.atlas-widget-card--weather.weather-tone-fog .atlas-weather-advice-v67{
  background:linear-gradient(135deg,#71839c,#8691aa 48%,#9a8fbd)!important;
}

/* Search sidebar: same design language, more compact */
.atlas-results-side .atlas-widget-card--weather{
  min-height:260px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:19px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-widget-card-head{
  padding:13px 13px 0!important;
}
.atlas-results-side .atlas-weather-visual-v67{
  top:42px!important;
  left:7px!important;
  width:92px!important;
  height:76px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-weather-body{
  width:auto!important;
  margin:10px 13px 0 91px!important;
  min-height:65px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-weather-body strong{
  font-size:41px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-weather-feels{
  margin:2px 13px 0 94px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-weather-forecast{
  margin:12px 13px 0!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.atlas-results-side .atlas-weather-daypart-v67{
  min-height:54px!important;
  padding:6px!important;
  grid-template-columns:24px minmax(0,1fr)!important;
}
.atlas-results-side .atlas-weather-daypart-icon-v67{
  width:24px!important;
  height:24px!important;
}
.atlas-results-side .atlas-weather-daypart-v67>b{
  font-size:14px!important;
}
.atlas-results-side .atlas-weather-advice-v67{
  min-height:68px!important;
  margin-top:10px!important;
  padding:13px 13px 31px!important;
}
.atlas-results-side .atlas-weather-advice-v67>span{
  font-size:8.5px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-weather-week-cta-v66{
  left:13px!important;
  right:13px!important;
  bottom:6px!important;
}
.atlas-results-side .atlas-widget-card--weather .atlas-widget-card-meta{
  display:none!important;
}

/* Weekly modal now feels like the same product */
.atlas-weather-dialog-v64{
  border:0!important;
  background:#fff!important;
}
.atlas-weather-hero-v64{
  min-height:250px!important;
  background:
    radial-gradient(circle at 76% 13%,rgba(255,255,255,.78),transparent 25%),
    linear-gradient(135deg,#eaf2ff 0%,#eef0ff 48%,#f3eaff 100%)!important;
}
.atlas-weather-hero-scene-v64 .atlas-weather-cute-svg,
.atlas-weather-hero-scene-v64 .atlas-weather-art-svg{
  filter:drop-shadow(0 18px 28px rgba(54,74,128,.14))!important;
}
.atlas-weather-week-v64{
  gap:9px!important;
}
.atlas-week-day-v64{
  border-color:#e7ebf3!important;
  background:#fbfcfe!important;
}
.atlas-week-day-v64:first-child{
  background:linear-gradient(180deg,#f0f3ff,#fbfcff)!important;
  border-color:#d9e0ff!important;
}
.atlas-weather-source-v64{
  color:#a0a9b7!important;
}

/* Loading is visually compatible with the final card */
.atlas-widget-card--weather.is-weather-loading .atlas-weather-visual-v67,
.atlas-widget-card--weather.is-weather-loading .atlas-weather-advice-v67{
  opacity:.42!important;
}
.atlas-widget-card--weather.is-weather-loading::after{
  left:18px!important;
  right:18px!important;
  bottom:10px!important;
  width:auto!important;
  height:3px!important;
}

/* Mobile */
@media(max-width:680px){
  .atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather{
    min-height:324px!important;
  }
  .atlas-weather-visual-v67{
    left:10px!important;
    width:108px!important;
  }
  .atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-body{
    margin-left:117px!important;
  }
  .atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-weather-feels{
    margin-left:119px!important;
  }
  .atlas-widgets-grid[data-widget-grid="home"] .atlas-widget-card--weather .atlas-widget-card-meta{
    display:none!important;
  }
}
