/* Atlas v6.19.9 — keep search sidebar aligned with Atlas AI and merge CSE spelling rows */

/* v6.19.8 added the meta/sort toolbar above Atlas AI. The historical -27px
   sidebar offset now pulls widgets one toolbar-height too high. Align the
   first widget with the top edge of the AI card on desktop. */
@media (min-width:1181px){
  .a18-search-page .a18-sidebar{
    margin-top:27px!important;
  }
}

/* On the compact two-column search layout keep the same visual relationship
   without forcing desktop geometry. */
@media (min-width:861px) and (max-width:1180px){
  .a18-search-page .a18-sidebar{
    margin-top:26px!important;
  }
}

/* Google may emit two separate spelling rows. JS merges them into the first
   Atlas card; the remaining service row must occupy no layout space. */
.a18-search-page .a18-results-panel .atlas-spelling-duplicate,
.a18-search-page .a18-results-panel [data-atlas-spelling-duplicate="1"]{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

.a18-search-page .atlas-spell-card--merged{
  min-height:52px!important;
  padding:10px 12px!important;
  border-color:#e3e8f1!important;
  background:#fbfcff!important;
  box-shadow:none!important;
}
.a18-search-page .atlas-spell-card--merged .atlas-spell-line{
  font-size:11px!important;
  color:#5b687d!important;
}
.a18-search-page .atlas-spell-card--merged .atlas-spell-query{
  color:#4d61df!important;
  font-weight:700!important;
}
.a18-search-page .atlas-spell-card--merged .atlas-spell-copy small{
  color:#9aa5b6!important;
  font-size:9px!important;
}
.a18-search-page .atlas-spell-card--merged .atlas-spell-original{
  height:32px!important;
  min-height:32px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:9.5px!important;
}

@media (max-width:860px){
  .a18-search-page .atlas-spell-card--merged{
    align-items:flex-start!important;
  }
}
