/* Visual knowledge cards: preserve the existing typography and link behavior. */
#isbat-home-refresh #faggrunnlag .mx-knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
#isbat-home-refresh #faggrunnlag a.mx-knowledge-card--visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: var(--home-white) !important;
  color: var(--home-ink) !important;
}
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__image {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--home-soft);
  border-bottom: 1px solid var(--home-line);
}
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  transition: transform .35s ease;
}
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 28px;
}
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__body .mx-card-label {
  display: block;
  color: var(--home-blue);
  font: 700 14px/1.5 var(--home-font);
}
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__body h3 { margin: 12px 0 18px; }
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__body p { padding-bottom: 24px; }
#isbat-home-refresh #faggrunnlag .mx-knowledge-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--home-line);
  color: var(--home-blue);
  font: 700 16px/1.5 var(--home-font);
}
#isbat-home-refresh #faggrunnlag a.mx-knowledge-card--visual:focus-visible {
  outline: 3px solid var(--home-blue);
  outline-offset: 4px;
  border-color: var(--home-blue);
}
@media (hover: hover) and (pointer: fine) {
  #isbat-home-refresh #faggrunnlag a.mx-knowledge-card--visual:hover {
    border-color: var(--home-blue);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--home-deep) 10%, transparent);
  }
  #isbat-home-refresh #faggrunnlag .mx-knowledge-card--visual:hover .mx-knowledge-card__image img {
    transform: scale(1.025);
  }
}
@media (max-width: 1000px) {
  #isbat-home-refresh #faggrunnlag .mx-knowledge-card__body { padding: 24px; }
}
@media (max-width: 900px) {
  #isbat-home-refresh #faggrunnlag .mx-knowledge-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 400px) {
  #isbat-home-refresh #faggrunnlag .mx-knowledge-card__body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #isbat-home-refresh #faggrunnlag a.mx-knowledge-card--visual,
  #isbat-home-refresh #faggrunnlag .mx-knowledge-card__image img {
    transform: none !important;
    transition: none !important;
  }
}
