/* Artikkeloversikt - erstatter WPBakery-rutenettet.
   Merk: temaet setter rot-font til 10px, derfor px overalt. Se gotchas.md */

.hg-artikler {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 34px 26px;
  margin: 8px 0 40px;
}

.hg-kort {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid #E2E6EA;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.hg-kort:hover,
.hg-kort:focus-visible {
  box-shadow: 0 6px 22px rgba(20, 26, 32, .1);
  transform: translateY(-2px);
}
.hg-kort:focus-visible { outline: 3px solid #1B3A6B; outline-offset: 2px; }

.hg-kort__bilde { aspect-ratio: 16 / 10; overflow: hidden; background: #F4F6F8; }
.hg-kort__bilde img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hg-kort__tekst {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.hg-kort__tittel {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #141A20 !important;
  letter-spacing: -.01em;
}

.hg-kort__utdrag {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #48525C !important;
  flex: 1;
}

.hg-kort__les {
  font-size: 15px;
  font-weight: 600;
  color: #C8102E;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .hg-artikler { grid-template-columns: 1fr; gap: 22px; }
}
