:root {
  --research-border: rgba(127, 127, 127, 0.18);
  --research-soft: rgba(127, 127, 127, 0.08);
  --research-glow: rgba(0, 188, 212, 0.16);
}

.md-grid {
  max-width: 1500px;
}

.md-main__inner {
  margin-top: 1rem;
}

.md-content__inner {
  padding-bottom: 4rem;
}

.md-typeset {
  font-size: 0.76rem;
  line-height: 1.7;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  letter-spacing: -0.02em;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border: 1px solid var(--research-border);
  border-radius: 10px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  font-weight: 700;
  white-space: nowrap;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.65rem 0.8rem;
}

.research-hero,
.section-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  padding: 2.2rem 2.35rem;
  border: 1px solid var(--research-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, var(--research-glow), transparent 36%),
    linear-gradient(145deg, var(--research-soft), transparent 68%);
}

.research-hero::after,
.section-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid var(--research-border);
  border-radius: 50%;
  opacity: 0.45;
}

.research-hero h1,
.section-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0.2rem 0 0.65rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 760;
  line-height: 1.05;
}

.section-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.research-hero p,
.section-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.78;
}

.research-kicker,
.research-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--research-border);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.research-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 1.25rem;
  font-size: 0.64rem;
  opacity: 0.66;
}

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

.research-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 1rem 1.05rem;
  border: 1px solid var(--research-border);
  border-radius: 14px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.research-card:hover {
  transform: translateY(-2px);
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.research-card h2 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.05rem;
}

.research-card p {
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.68;
}

.research-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.62rem;
  opacity: 0.62;
}

.research-latest {
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--research-border);
  font-size: 0.64rem;
  line-height: 1.45;
  opacity: 0.82;
}

.recent-list,
.archive-list {
  overflow: hidden;
  border: 1px solid var(--research-border);
  border-radius: 12px;
}

.recent-item,
.archive-item,
.latest-report {
  display: grid;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--research-border);
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  transition: background 120ms ease;
}

.recent-item {
  grid-template-columns: 105px minmax(0, 1fr) 145px;
}

.archive-item {
  grid-template-columns: 155px minmax(0, 1fr);
}

.recent-item:last-child,
.archive-item:last-child {
  border-bottom: 0;
}

.recent-item:hover,
.archive-item:hover,
.latest-report:hover {
  background: var(--research-soft);
}

.recent-section {
  font-size: 0.61rem;
  font-weight: 700;
  opacity: 0.65;
}

.recent-title,
.archive-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.69rem;
}

.recent-item time,
.archive-item time,
.latest-report time {
  text-align: right;
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.latest-report {
  grid-template-columns: 55px minmax(0, 1fr) 155px;
  margin-bottom: 1.4rem;
  border: 1px solid var(--research-border);
  border-radius: 12px;
}

.latest-report > span {
  display: inline-flex;
  justify-content: center;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: var(--research-soft);
  font-size: 0.58rem;
  font-weight: 800;
}

.latest-report strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.empty-state {
  padding: 1.4rem;
  text-align: center;
  opacity: 0.55;
}

.md-nav__link,
.md-tabs__link {
  font-weight: 600;
}

@media screen and (max-width: 960px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 720px) {
  .research-hero,
  .section-hero {
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
  }

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

  .research-card {
    min-height: 180px;
  }

  .recent-item,
  .archive-item,
  .latest-report {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .recent-item time,
  .archive-item time,
  .latest-report time {
    text-align: left;
  }

  .recent-title,
  .archive-item span,
  .latest-report strong {
    white-space: normal;
  }
}
