/**
 * In-page nav cards (D45). Loaded with nav_items runtimeAssets.
 * Themes may override .db-nav-cards in dropbits-site.css.
 */
.db-nav-cards {
  margin: 0;
}

.db-nav-cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-nav-cards__item {
  margin: 0;
}

.db-nav-cards__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border, #d2d8e0);
  border-radius: var(--radius, 4px);
  background: var(--color-surface, #fff);
  overflow: hidden;
}

.db-nav-cards__link:hover,
.db-nav-cards__link.is-active {
  border-color: var(--color-accent, #1f6b8a);
}

.db-nav-cards__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.db-nav-cards__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1rem;
}

.db-nav-cards__title {
  font-family: var(--font-ui, system-ui, sans-serif);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--color-content-heading, inherit);
}

.db-nav-cards__text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--color-muted, #5a6574);
}
