.studies-hero,
.study-article__header {
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--ng-secondary) 16%, transparent), transparent 34%),
    var(--ng-surface-hero);
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
}

.studies-hero__content,
.study-article__header-inner {
  display: grid;
  gap: clamp(.75rem, 1.5vw, 1.15rem);
  justify-items: start;
}

.studies-hero__grid {
  align-items: center;
}

.studies-hero__content {
  max-width: 40rem;
}

.study-article__header-inner {
  max-width: 58rem;
}

.study-article__header-inner .page-lead {
  margin: 0;
  max-width: 48rem;
}

.studies-hero__copy {
  color: var(--ng-text-secondary);
  display: grid;
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
  gap: clamp(.9rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.studies-hero__copy p {
  margin: 0;
}

.studies-hero__visual {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.studies-hero__image {
  aspect-ratio: 3 / 2;
}

.study-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.study-card {
  background: var(--ng-surface-solid);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-lg);
  box-shadow: var(--ng-shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.study-card__image {
  aspect-ratio: 16 / 10;
  background: var(--ng-surface-soft);
  display: block;
  overflow: hidden;
}

.study-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.study-card:hover .study-card__image img {
  transform: scale(1.025);
}

.study-card__placeholder {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ng-secondary) 18%, var(--ng-surface-solid)), var(--ng-surface-soft));
  display: block;
  height: 100%;
}

.study-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.2rem, 2vw, 1.65rem);
}

.study-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin: .75rem 0;
}

.study-card h2 a {
  color: var(--ng-text-primary);
  text-decoration: none;
}

.study-card__body > p:not(.study-meta) {
  color: var(--ng-text-secondary);
  margin: 0 0 1.25rem;
}

.study-card .card__link {
  margin-top: auto;
}

.study-meta {
  align-items: center;
  color: var(--ng-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .86rem;
  font-weight: 600;
  gap: .45rem 1rem;
  margin: 0;
}

.study-meta time::before {
  content: "•";
  margin-right: 1rem;
}

.study-meta--single {
  margin-top: .35rem;
}

.study-pagination {
  margin-top: 2.5rem;
}

.study-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.study-pagination a,
.study-pagination span {
  align-items: center;
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-sm);
  display: inline-flex;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  text-decoration: none;
}

.study-pagination .current {
  background: var(--ng-primary);
  border-color: var(--ng-primary);
  color: #fff;
}

.study-empty {
  background: var(--ng-surface-soft);
  border: 1px dashed var(--ng-border);
  border-radius: var(--ng-radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.study-article__cover {
  margin-top: clamp(-2rem, -2vw, -1rem);
  position: relative;
  width: min(calc(100% - (2 * var(--ng-space-5))), 60rem);
}

.study-article__cover img {
  aspect-ratio: 16 / 9;
  border-radius: var(--ng-radius-lg);
  box-shadow: var(--ng-shadow-md);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.study-article__body-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.study-article__body {
  width: min(calc(100% - (2 * var(--ng-space-5))), 68rem);
}

.study-article__panel {
  background: var(--ng-surface-solid);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.study-content {
  margin-inline: auto;
  max-width: 58rem;
  overflow-wrap: anywhere;
}

.study-content h2,
.study-content h3,
.study-content h4,
.study-content h5,
.study-content h6 {
  scroll-margin-top: 7rem;
}

.study-content img {
  border-radius: var(--ng-radius-md);
  height: auto;
  max-width: 100%;
}

.study-content figure {
  margin: 2rem 0;
}

.study-content figcaption {
  color: var(--ng-text-muted);
  font-size: .9rem;
  margin-top: .6rem;
  text-align: center;
}

.study-content table {
  border-collapse: collapse;
  display: block;
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
  width: max-content;
}

.study-content th,
.study-content td {
  border: 1px solid var(--ng-border);
  min-width: 8rem;
  padding: .75rem .9rem;
  vertical-align: top;
}

.study-content th {
  background: var(--ng-surface-soft);
  color: var(--ng-text-primary);
}

.study-content blockquote {
  border-left: 4px solid var(--ng-secondary);
  margin: 2rem 0;
  padding: .5rem 0 .5rem 1.25rem;
}

.study-article__footer {
  border-top: 1px solid var(--ng-border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

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

@media (min-width: 981px) and (max-width: 75rem) {
  .studies-hero__grid {
    gap: clamp(2rem, 3.5vw, 3rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  }

  .studies-hero__title {
    font-size: clamp(2.5rem, 3.8vw, 2.8rem);
  }
}

@media (max-width: 640px) {
  .studies-hero,
  .study-article__header {
    padding-block: clamp(2.75rem, 12vw, 3.75rem);
  }

  .study-grid {
    grid-template-columns: 1fr;
  }

  .studies-hero__copy {
    font-size: 1.02rem;
  }

  .study-article__cover img {
    aspect-ratio: 4 / 3;
  }

  .study-article__panel {
    padding: 1.25rem;
  }

  .study-content table {
    font-size: .92rem;
  }
}
