/* =========================================================
   RESEARCH PAGE
   ========================================================= */


/* ---------- Common colours ---------- */

:root {
  --card-bg: rgba(255, 255, 255, 0.3);
  --border-color: rgba(0, 0, 0, 0.12);
}


/* ---------- Section labels ---------- */

.section-label {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}


/* ---------- Research introduction ---------- */

.research-intro {
  max-width: 900px;
}

.research-intro h1 {
  max-width: 850px;
  margin-bottom: 1.2rem;
}

.research-intro .lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
}

.research-intro > p:not(.lead):not(.section-label) {
  max-width: 760px;
}

.research-intro img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
}

/* ---------- Publication button ---------- */

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  margin-top: 1rem;
  padding: 0.65rem 1rem;

  border-radius: 4px;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-link:active {
  transform: translateY(0);
}

/* Prevent browser focus flash after clicking */

.button-link:focus {
  outline: none;
}

.button-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


/* ---------- Research overview ---------- */

.research-overview {
  margin-top: 3rem;
}

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

  margin-top: 1.5rem;
}

.research-card {
  padding: 1.5rem;

  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.research-number {
  display: block;
  margin-bottom: 1rem;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.research-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.research-card p {
  margin: 0;
  line-height: 1.6;
}


/* ---------- Research themes ---------- */

.research-theme {
  max-width: 900px;
  padding-top: 3rem;
  padding-bottom: 3rem;

  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.theme-number {
  flex: 0 0 auto;

  padding-top: 0.25rem;

  font-size: 1rem;
  font-weight: 600;
  opacity: 0.55;
}

.theme-header .section-label {
  margin-bottom: 0.35rem;
}

.theme-header h2 {
  margin: 0;
}

.theme-lead {
  max-width: 760px;
  margin: 1.25rem auto 1rem;
  line-height: 1.7;
}

.research-scheme {
  display: block;
  /* width: 150%; */
  max-width: none !important; 
  height: auto;
  margin: 1.25rem auto 1rem;
}

.theme-note {
  max-width: 760px;
  margin: 0.75rem auto 1.25rem;

  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.75;
  font-style: italic;
}


/* ---------- Selected work ---------- */

.selected-work {
  max-width: 760px;
  margin: 0 auto;

  font-size: 0.95rem;
  line-height: 1.7;
}

.selected-work strong {
  margin-right: 0.25rem;
}

.selected-work span {
  margin: 0 0.25rem;
  opacity: 0.65;
}

.selected-work a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ---------- Looking forward ---------- */

.looking-forward {
  max-width: 900px;
  padding-top: 4rem;
}

.looking-forward h2 {
  max-width: 800px;
}

.looking-forward .lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}


/* ---------- Research communication ---------- */

.research-communication {
  max-width: 900px;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.research-communication h2 {
  margin-bottom: 2.5rem;
}


/* one item per row */
/* .communication-list {
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 1rem;
} */
/* 2 column grids */
.communication-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 800px) {
  .communication-list {
    grid-template-columns: 1fr;
  }
}
.communication-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;

  padding: 1.5rem;

  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.communication-year {
  padding-top: 0.15rem;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.communication-content {
  min-width: 0;
}

.communication-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.communication-item p {
  margin: 0;
  line-height: 1.6;
}

.communication-link {
  display: inline-block;
  margin-top: 0.75rem;

  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.communication-link i {
  margin-right: 0.3rem;
  font-size: 0.8em;
}


/* ---------- Responsive ---------- */

@media (max-width: 800px) {

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

  .research-card {
    padding: 1.25rem;
  }

  .theme-header {
    gap: 0.75rem;
  }

}


@media (max-width: 700px) {

  .communication-item {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
    padding: 1.25rem;
  }

  .communication-year {
    padding-top: 0;
  }

}


@media (max-width: 500px) {

  .research-intro .lead,
  .looking-forward .lead {
    font-size: 1.05rem;
  }

  .research-theme {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

}