.research-page {
  --research-surface: color-mix(in srgb, var(--card, #212936) 93%, transparent);
  --research-line: color-mix(in srgb, var(--accent, #3fd0bf) 26%, var(--line, #354156));
  --research-accent-text: var(--accent-text, #3fd0bf);
  max-width: 1080px;
  padding-bottom: max(6rem, calc(4.5rem + env(safe-area-inset-bottom)));
}

.research-page h1,
.research-page h2,
.research-page h3 {
  text-wrap: balance;
}

.research-hero,
.research-featured-card,
.research-guide-card,
.research-standard-grid article,
.research-next {
  background: var(--research-surface);
  border: 1px solid var(--research-line);
  border-radius: 1.35rem;
}

.research-report-page .research-hero h1 {
  max-width: 16ch;
}

.research-boundary {
  background: color-mix(in srgb, var(--accent, #3fd0bf) 10%, transparent);
  border-left: .3rem solid var(--accent, #3fd0bf);
  margin-top: 1.2rem;
  padding: .85rem 1rem;
}

.research-visual,
.research-timeline,
.research-report-copy {
  background: var(--research-surface);
  border: 1px solid var(--research-line);
  border-radius: 1.35rem;
}

.research-visual {
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.research-visual img {
  background: #fff;
  border-radius: .8rem;
  display: block;
  height: auto;
  width: 100%;
}

.research-visual figcaption {
  color: var(--ink-soft, #a5aec0);
  margin-top: .75rem;
}

.research-report-copy {
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.5rem);
}

.research-report-copy > h2:first-child {
  margin-top: 0;
}

.research-report-copy h2 {
  border-top: 1px solid var(--research-line);
  margin-top: 2.8rem;
  padding-top: 2rem;
}

.research-report-copy h3 {
  margin-top: 2rem;
}

.research-report-copy p,
.research-report-copy li {
  line-height: 1.7;
}

.research-report-copy code {
  overflow-wrap: anywhere;
}

.research-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.research-table-wrap table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.research-table-wrap th,
.research-table-wrap td {
  border-bottom: 1px solid var(--research-line);
  padding: .75rem;
  text-align: left;
  vertical-align: top;
}

.research-table-wrap thead th {
  color: var(--accent, #3fd0bf);
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.research-timeline {
  margin-top: 1.5rem;
  padding: 1rem;
}

.research-timeline summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: .65rem;
}

.research-lab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-hero {
  align-items: end;
  background:
    radial-gradient(circle at 88% 5%, color-mix(in srgb, var(--accent, #3fd0bf) 20%, transparent), transparent 36%),
    linear-gradient(145deg, var(--research-surface), color-mix(in srgb, var(--card, #212936) 82%, var(--bg, #10131a)));
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
  margin-top: 1rem;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.research-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: .98;
  margin: .35rem 0 .8rem;
  max-width: 12ch;
}

.research-dek {
  color: var(--ink-soft, #a5aec0);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  margin: 0;
  max-width: 55ch;
}

.research-overview,
.research-facts {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.research-overview div,
.research-facts div {
  background: color-mix(in srgb, var(--bg, #10131a) 56%, transparent);
  border: 1px solid var(--line, #354156);
  border-radius: 1rem;
  display: grid;
  gap: .2rem;
  padding: 1rem;
}

.research-overview dt,
.research-facts dt {
  color: var(--ink-soft, #a5aec0);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.research-overview dd,
.research-facts dd {
  color: var(--accent, #3fd0bf);
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0;
}

.research-section {
  margin-top: clamp(2.5rem, 6vw, 4.75rem) !important;
}

.research-section-heading {
  margin-bottom: 1.15rem;
  max-width: 68ch;
}

.research-section-heading h2,
.research-next h2 {
  font-size: clamp(1.65rem, 3.8vw, 2.55rem);
  margin: .3rem 0 .45rem;
}

.research-section-heading > p:last-child,
.research-next > div > p:last-child {
  color: var(--ink-soft, #a5aec0);
  margin: 0;
}

.research-featured-card {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, .5fr);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.research-card-kicker,
.research-scope {
  color: var(--ink-soft, #a5aec0);
  font-size: .9rem;
}

.research-featured-card h3,
.research-guide-card h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: .45rem 0 .65rem;
}

.research-featured-card h3 a,
.research-guide-card h3 a {
  color: var(--ink, #edeef2);
  text-decoration-color: color-mix(in srgb, var(--accent, #3fd0bf) 70%, transparent);
  text-decoration-thickness: .09em;
  text-underline-offset: .15em;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.1rem;
}

.research-actions a,
.research-text-link,
.research-standard-grid a {
  align-items: center;
  border: 1px solid var(--research-line);
  border-radius: 999px;
  color: var(--research-accent-text);
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: .62rem 1rem;
  text-decoration: none;
}

.research-actions a:first-child {
  background: var(--accent, #3fd0bf);
  color: var(--accent-on, #10131a);
}

.research-actions a:hover,
.research-actions a:focus-visible,
.research-text-link:hover,
.research-text-link:focus-visible,
.research-standard-grid a:hover,
.research-standard-grid a:focus-visible {
  border-color: var(--accent, #3fd0bf);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #3fd0bf) 18%, transparent);
}

.research-guide-card {
  align-items: center;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.15rem, 3vw, 1.8rem);
}

.research-guide-card p {
  color: var(--ink-soft, #a5aec0);
  margin-bottom: 0;
}

.research-standard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-standard-grid article {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.research-standard-grid h3 {
  font-size: 1.25rem;
  margin: 0 0 .45rem;
}

.research-standard-grid p {
  color: var(--ink-soft, #a5aec0);
  flex: 1;
}

.research-standard-grid a {
  align-self: flex-start;
}

.research-next {
  align-items: center;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: clamp(2.5rem, 6vw, 4.75rem) !important;
  padding: clamp(1.2rem, 3vw, 2rem);
}

@media (max-width: 800px) {
  .research-hero,
  .research-featured-card,
  .research-guide-card,
  .research-next {
    grid-template-columns: 1fr;
  }

  .research-standard-grid {
    grid-template-columns: 1fr;
  }

  .research-text-link {
    justify-self: start;
  }
}

@media (forced-colors: active) {
  .research-hero,
  .research-featured-card,
  .research-guide-card,
  .research-standard-grid article,
  .research-next {
    background: Canvas;
    border-color: CanvasText;
  }
}
