/* Kartverket's suggestions under a place box (places.js), over what follows it. */
.hits {
  position: absolute;
  top: calc(100% + 4px);
  left: 10px;
  right: 10px;
  z-index: 1;
}

.hits.up {
  top: auto;
  bottom: calc(100% + 4px);
}

.hits ul {
  position: relative;
  padding: 4px;
  list-style: none;
  transition: opacity .1s;
}

/* A list for text that has been typed over dims only if the next is slow to come. The words dim,
   and not the ground, through which the page would show. */
.hits.old ul {
  opacity: .55;
  transition: opacity .15s .3s;
}

.hits li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-height: 40px;
  padding: 8px 11px;
  box-sizing: border-box;
  cursor: pointer;
  outline: 0;
}

.hits li .line {
  stroke: transparent;
}

.hits li:hover .line {
  stroke: var(--hover);
}

.hits li.at .line {
  stroke: var(--edge);
  stroke-width: 1.8;
}

.hits li > span {
  position: relative;
}

.hmain {
  font-size: var(--size-body);
  font-weight: 800;
}

.hrest {
  color: var(--muted);
  font-size: var(--size-fine);
  font-weight: 700;
}
