/* Atlas v6.19.11 — full-width web results + related queries as sidebar widget */

/* Google CSE carries its own width rules. Lock every web-results wrapper and
   result card to the same width as the Atlas AI card / main search column. */
.a18-search-page .a18-results-panel,
.a18-search-page .atlas-cse-host,
.a18-search-page .atlas-web-results .gsc-control-cse,
.a18-search-page .atlas-web-results .gsc-control-wrapper-cse,
.a18-search-page .atlas-web-results .gsc-results-wrapper-nooverlay,
.a18-search-page .atlas-web-results .gsc-resultsbox-visible,
.a18-search-page .atlas-web-results .gsc-results,
.a18-search-page .atlas-web-results .gsc-wrapper,
.a18-search-page .atlas-web-results .gsc-expansionArea,
.a18-search-page .atlas-web-results .gsc-webResult.gsc-result,
.a18-search-page .atlas-web-results .gsc-table-result,
.a18-search-page .atlas-web-results .gsc-table-cell-snippet-close,
.a18-search-page .atlas-web-results .gsc-table-cell-snippet-open{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

.a18-search-page .atlas-web-results .gsc-webResult.gsc-result{
  display:block!important;
  float:none!important;
  clear:both!important;
}

.a18-search-page .atlas-web-results .gsc-expansionArea{
  grid-template-columns:minmax(0,1fr)!important;
}

/* Never let an old related-query card remain under the main results after
   AJAX navigation from cached markup. */
.a18-search-page .a18-results-main > .a18-related{
  display:none!important;
}

/* Related searches are now a real sidebar widget, under the other widgets. */
.a18-search-page .a18-side-related{
  width:350px!important;
  min-height:224px!important;
  height:auto!important;
  padding:15px!important;
  overflow:hidden!important;
  border:1px solid rgba(91,83,204,.18)!important;
  border-radius:13px!important;
  background:
    radial-gradient(circle at 92% 10%,rgba(255,255,255,.18),transparent 28%),
    linear-gradient(145deg,#5d55d9 0%,#4144ae 58%,#30368f 100%)!important;
  box-shadow:0 8px 22px rgba(42,49,132,.12)!important;
  color:#fff!important;
}

.a18-search-page .a18-side-related::before{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  right:-48px;
  bottom:-58px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  pointer-events:none;
}

.a18-search-page .a18-side-related-head{
  position:relative;
  z-index:2;
  margin:0 0 10px;
}
.a18-search-page .a18-side-related-head > span{
  display:block;
  margin-bottom:2px;
  color:rgba(255,255,255,.68);
  font-size:7.5px;
  line-height:1.2;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.a18-search-page .a18-side-related-head h2{
  margin:0!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:720!important;
}

.a18-search-page .a18-side-related-list{
  position:relative;
  z-index:2;
  display:grid;
  gap:6px;
}
.a18-search-page .a18-side-related-list a,
.a18-search-page .a18-side-related-list a:link,
.a18-search-page .a18-side-related-list a:visited{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px 7px 10px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
  font-size:8.5px!important;
  line-height:1.28!important;
  font-weight:560!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
.a18-search-page .a18-side-related-list a span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.a18-search-page .a18-side-related-list a svg{
  flex:0 0 15px;
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.72;
}
@media (hover:hover) and (pointer:fine){
  .a18-search-page .a18-side-related-list a:hover{
    background:rgba(255,255,255,.16)!important;
    border-color:rgba(255,255,255,.24)!important;
    transform:translateY(-1px);
  }
}
.a18-search-page .a18-side-related-list a:focus-visible{
  outline:2px solid rgba(255,255,255,.82)!important;
  outline-offset:2px!important;
}

/* At tablet/mobile widths the existing sidebar becomes a grid. The related
   widget participates in it without carrying the desktop fixed width. */
@media (max-width:1180px){
  .a18-search-page .a18-side-related{
    width:100%!important;
    min-height:210px!important;
  }
}
@media (max-width:620px){
  .a18-search-page .a18-side-related{
    min-height:0!important;
    padding:14px!important;
  }
  .a18-search-page .a18-side-related-list a span{
    white-space:normal;
  }
}
