/* Shared article metadata and contextual links on service pages. */
.article-page .publication-hero .hero-text > h1 {
  margin-bottom: 0;
}

.article-page .publication-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(1.5rem, 3vw, 3rem);
  margin: 1.75rem 0 0;
  color: #f8f2de;
}

.article-meta > div {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.article-meta dt {
  color: rgb(248 242 222 / 78%);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-page .publication-hero .hero-buttons-layout {
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .article-page .publication-hero .article-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    max-width: 34rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 359px) {
  .article-page .publication-hero .article-meta {
    grid-template-columns: 1fr;
  }
}

.blog-card-image,
.article-related-image {
  position: relative;
}

.blog-card-image > .card-image-link > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-image-link > img {
  transform: scale(1.035);
}

.blog-card-topic {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.85rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background-color: #ffda62;
  color: #2a004e;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.25;
  pointer-events: none;
}

.blog-card-labels {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 1.7rem);
  pointer-events: none;
}

.blog-card-labels > .blog-card-topic {
  position: static;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.blog-card-new {
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background-color: #2a004e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.page-content > .blog-section {
  padding-bottom: 0;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(3rem, 4vw, 4rem);
}

.blog-card .blog-card-meta,
.article-related-card .blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0 0 0.75rem;
  color: #65586c;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.5;
}

.blog-card-meta time,
.blog-card-reading-time {
  white-space: nowrap;
}

.publication-related-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgb(42 0 78 / 16%);
  background-color: rgb(42 0 78 / 3%);
}

.publication-related-heading {
  min-width: 0;
}

.publication-related-heading > p {
  margin: 0 0 0.5rem;
  color: #65586c;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.publication-related-heading > h3 {
  margin: 0;
  color: #2a004e;
  font-family: "PPNeueGstaad", sans-serif;
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
}

.publication-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-related-links-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-related-links > li {
  min-width: 0;
}

.publication-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgb(42 0 78 / 16%);
  background-color: rgb(255 247 235 / 75%);
  color: #2a004e;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.publication-related-link-title {
  display: block;
  font-family: "PPNeueGstaad", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.publication-related-link-description {
  display: block;
  margin-top: 0.35rem;
  color: #65586c;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
}

.publication-related-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(42 0 78 / 16%);
  border-radius: 50%;
}

.publication-related-arrow img {
  display: block;
  width: 10px;
  height: 10px;
}

.publication-related-links a:hover {
  border-color: #2a004e;
  background-color: #ffda62;
}

.publication-related-links a:focus-visible {
  outline: 2px solid #2a004e;
  outline-offset: 3px;
}

@media (max-width: 1199px) {
  .publication-related-services {
    grid-template-columns: 1fr;
  }
}

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

  .publication-related-services {
    gap: 1rem;
  }

  .blog-card-topic,
  .blog-card-labels {
    top: 0.65rem;
    left: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-related-links a,
  .blog-card-image > .card-image-link > img {
    transition: none;
  }
}
