/* defines the common content width and introductory spacing for research pages. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #dde2eb;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-left,
.lang-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  color: #1d2433;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.home-link {
  color: #5b6370;
  font-size: 0.92rem;
  text-decoration: none;
}

.lang-links a {
  padding: 6px 12px;
  border: 1px solid #dde2eb;
  border-radius: 999px;
  background: #fff;
  color: #1d2433;
  font-size: 0.84rem;
  text-decoration: none;
}

.lang-links a.active {
  border-color: #3772ff;
  background: rgba(55, 114, 255, 0.1);
  font-weight: 700;
  pointer-events: none;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 36px 22px 52px;
}

.wrap > h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}

.lead {
  max-width: 100%;
  margin: 0 0 30px;
  color: #5b6370;
  font-size: 1rem;
}

/* presents the two research destinations as equal, responsive navigation cards. */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.research-card {
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #dde2eb;
  border-radius: 16px;
  background: #fff;
  color: #1d2433;
  box-shadow: 0 14px 34px rgba(11, 20, 35, 0.08);
  text-decoration: none;
}

.research-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 35%;
}

.research-card-copy {
  display: block;
  padding: 22px;
}

.research-card h2 {
  margin: 0 0 8px;
  color: #1d2433;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.research-card .summary {
  display: block;
  margin-bottom: 14px;
  color: #5b6370;
}

.research-card .cta {
  color: #d96f1b;
  font-weight: 700;
}

/* matches benchmark entries to the existing image-left paper card layout. */
.benchmark-list {
  display: grid;
  gap: 16px;
}

.benchmark-card {
  display: grid;
  grid-template-columns: 285px 1fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #dde2eb;
  border-radius: 16px;
  background: #fff;
  color: #1d2433;
  box-shadow: 0 14px 34px rgba(11, 20, 35, 0.08);
  text-decoration: none;
}

.benchmark-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 12px;
  overflow: hidden;
  background: #e6ebf4;
}

.benchmark-preview img {
  display: block;
  width: 100%;
  height: 336px;
  object-fit: contain;
}

.benchmark-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.benchmark-copy h2 {
  margin: 0 0 10px;
  color: #1d2433;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.benchmark-copy .summary {
  margin: 0 0 14px;
  color: #5b6370;
}

.benchmark-copy .cta {
  color: #d96f1b;
  font-weight: 700;
}

/* frames the literal benchmark narrative and media on a readable white surface. */
.benchmark-article {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid #dde2eb;
  border-radius: 18px;
  background: #fff;
  color: #1d2433;
  box-shadow: 0 20px 48px rgba(8, 24, 44, 0.28);
}

.benchmark-article h1 {
  margin: 0 0 24px;
  color: #102033;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.benchmark-article p {
  margin: 0 0 1.25em;
  color: #1d2433;
  text-align: justify;
}

.benchmark-figure {
  margin: 30px 0;
}

.benchmark-figure img,
.benchmark-figure video {
  display: block;
  width: 100%;
  max-height: 720px;
  margin: 0 auto;
  border-radius: 10px;
  background: #eef2f8;
  object-fit: contain;
}

.benchmark-figure.figure-experiment img {
  width: auto;
  max-width: 100%;
}

.benchmark-figure figcaption {
  margin-top: 10px;
  color: #5b6370;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

/* stacks cards and preserves usable media dimensions on narrow screens. */
@media (max-width: 760px) {
  .research-grid,
  .benchmark-card {
    grid-template-columns: 1fr;
  }

  .benchmark-preview {
    min-height: 320px;
  }

  .benchmark-preview img {
    height: 296px;
  }

  .topbar-inner {
    align-items: flex-start;
  }
}
