.ns-c-card,
.ns-c-path-card,
.ns-c-topic-card,
.ns-c-article-card,
.ns-c-fact-card,
.is-style-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--ns-color-border-default);
  border-radius: var(--ns-radius-default);
  box-shadow: var(--ns-shadow-card);
  min-height: 176px;
  padding: clamp(20px, 3vw, 28px);
  transition:
    box-shadow var(--ns-motion-standard) var(--ns-motion-easing),
    transform var(--ns-motion-standard) var(--ns-motion-easing),
    border-color var(--ns-motion-standard) var(--ns-motion-easing);
}

.ns-c-card:hover,
.ns-c-path-card:hover,
.ns-c-topic-card:hover,
.ns-c-article-card:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--deep-medical-blue) 34%, transparent);
  box-shadow: var(--ns-shadow-card-hover);
  transform: translateY(-2px);
}

.ns-c-path-grid,
.ns-pathway-grid,
.ns-c-fact-grid {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ns-c-path-grid > .wp-block-group,
.ns-pathway-grid > .wp-block-group {
  align-self: stretch;
  display: flex;
  height: 100%;
  margin-block-start: 0;
  min-width: 0;
}

.ns-c-path-grid > .ns-c-path-card,
.ns-pathway-grid > .ns-c-path-card {
  margin-block-start: 0;
}

.ns-c-fact-grid > * {
  margin-block-start: 0;
}

.ns-c-path-grid > .wp-block-group > .ns-c-path-card,
.ns-pathway-grid > .wp-block-group > .ns-c-path-card {
  width: 100%;
}

.ns-c-path-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
}

.ns-c-path-card > * {
  margin-block: 0;
}

.ns-c-path-card > p:last-child {
  margin-block-start: auto;
}

.ns-c-path-card > p:last-child a {
  display: inline-flex;
  min-height: 44px;
}

.ns-c-path-card__marker,
.ns-card-marker {
  align-items: center;
  align-self: flex-start;
  background: var(--wp--preset--color--blue-050);
  border-radius: var(--ns-radius-default);
  color: var(--wp--preset--color--deep-medical-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 800;
  height: 48px;
  justify-content: center;
  min-width: 48px;
  width: 48px;
}

.ns-step-number {
  align-items: center;
  background: var(--wp--preset--color--blue-050);
  border-radius: 999px;
  color: var(--wp--preset--color--deep-medical-blue);
  display: inline-flex;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 800;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.ns-c-fact-card .ns-c-card__metric {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--metric);
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 959px) {
  .ns-c-path-grid,
  .ns-pathway-grid,
  .ns-c-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .ns-c-path-grid,
  .ns-pathway-grid,
  .ns-c-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-c-path-grid > *,
  .ns-pathway-grid > *,
  .ns-c-fact-grid > * {
    box-sizing: border-box;
    justify-self: stretch;
    margin-inline: 0;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .ns-c-path-grid .ns-c-path-card,
  .ns-pathway-grid .ns-c-path-card,
  .ns-c-fact-grid .ns-c-fact-card {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
  }
}
