/* Article cards: the blog hub (blog.html) and the "Insights & Resources" sections on service pages.
   Generated from blog-cards.js markup. Each card sets --t, its topic colour; text stays in the ink colour. */
.bh-grid {
  --dl-purple: #a349a4;
  --dl-purple-dark: #7d3480;
  --dl-ink: #303d4e;
  --dl-muted: #5f6b7a;
  --dl-line: #e3e6ea;
}

.bh-card-link:focus-visible {
  outline: 3px solid var(--dl-purple);
  outline-offset: 3px;
}

.bh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bh-card {
  --t: var(--dl-purple);
  min-width: 0;
}

.bh-card[hidden] {
  display: none;
}

.bh-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--dl-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(48, 61, 78, 0.06);
  color: var(--dl-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bh-card-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 4px;
  background: var(--t);
}

.bh-card-link:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--t) 40%, #fff);
  box-shadow: 0 18px 36px rgba(48, 61, 78, 0.12);
  color: var(--dl-ink);
}

.bh-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 45%, #fff 0%, color-mix(in srgb, var(--t) 9%, #fff) 70%);
}

.bh-art img {
  /* placed inside the panel, so the panel keeps its shape whatever the image size */
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bh-card-link:hover .bh-art img {
  transform: scale(1.04);
}

.bh-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 20px 18px;
}

.bh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.bh-tag,
.bh-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.bh-tag {
  background: color-mix(in srgb, var(--t) 11%, #fff);
  color: var(--dl-ink);
}

.bh-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t);
}

.bh-kind {
  background: var(--dl-ink);
  color: #fff;
}

.bh-title {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dl-ink);
}

.bh-excerpt {
  flex: 1;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dl-muted);
}

.bh-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--dl-muted);
}

.bh-go {
  margin-left: auto;
  font-weight: 700;
  color: var(--dl-purple);
}

.bh-go i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bh-card-link:hover .bh-go i {
  transform: translateX(3px);
}

@media (max-width: 1199px) {
  .bh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bh-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-card-link,
  .bh-art img,
  .bh-go i {
    transition: none;
  }
}

/* "More on <topic>" under the cards on service pages */
.bh-more {
  margin: 22px 0 0;
  text-align: center;
}

.bh-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  background: #fff;
  color: #7d3480;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bh-more a:hover {
  border-color: #d8b6d9;
  box-shadow: 0 8px 20px rgba(48, 61, 78, 0.08);
  color: #7d3480;
}

.bh-more a:focus-visible {
  outline: 3px solid #a349a4;
  outline-offset: 3px;
}
