:root {
  --paper: #f7f8f5;
  --surface: #fff;
  --media: #edf0ea;
  --ink: #101413;
  --muted: #4c5550;
  --line: #d9dfd8;
  --accent: #20483a;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: var(--type-body); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img, video { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
sup { line-height: 0; }

.research-wrap { width: min(76rem, calc(100% - clamp(2rem, 6vw, 6rem))); margin-inline: auto; }
main.research-wrap { padding-bottom: clamp(3rem, 7vw, 5rem); }
.research-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.45rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
}
.research-nav a { font-weight: 640; text-decoration: none; }
.research-nav a:first-child { margin-right: auto; }
.research-nav a:hover { text-decoration: underline; }

.research-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 3vw, 2.25rem); }
.research-hero h1 {
  max-width: 34ch;
  margin-bottom: .9rem;
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.research-authors, .research-affiliations { max-width: 78ch; color: var(--muted); }
.research-authors strong { color: var(--ink); }
.research-affiliations { margin-top: .2rem; }
.research-hero > p:last-child:not(.research-affiliations, .research-authors) { max-width: 75ch; margin-top: .8rem; }
.research-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.research-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 640;
  text-decoration: none;
}
.research-links a:hover { background: var(--media); }

.research-section {
  margin-top: clamp(2.25rem, 5vw, 4rem);
  padding-top: clamp(.9rem, 2vw, 1.55rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.research-section h2 { font-size: var(--type-section); line-height: 1.2; letter-spacing: -.02em; }
.research-section h3 { font-size: var(--type-subhead); line-height: 1.3; }
.research-section :is(p, ul, ol) { max-width: 75ch; }
.research-section > * + *, .research-grid > :is(div, article) > * + * { margin-top: .75rem; }
.research-section li + li { margin-top: .35rem; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }

.research-figure { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.research-figure > a { display: block; }
.research-figure > a:focus-visible { outline-offset: -4px; }
.research-figure figcaption { padding: .65rem .95rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-support); }
.research-takeaway { padding: .65rem .85rem; border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; background: var(--media); }
.research-takeaway strong:first-child { margin-right: .35em; color: var(--accent); }
.research-table { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.research-wrap table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.research-wrap caption { padding: .55rem .8rem; color: var(--muted); text-align: left; }
.research-wrap :is(th, td) { padding: .55rem .8rem; text-align: left; }
.research-wrap thead { background: var(--media); }
.research-wrap :is(tbody tr + tr, thead + tbody) { border-top: 1px solid var(--line); }
.research-wrap summary { width: fit-content; cursor: pointer; color: var(--accent); font-weight: 640; }
.research-wrap details > :not(summary) { margin-top: .75rem; }
.research-wrap pre { overflow: auto; padding: .85rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

@media (max-width: 700px) {
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .research-wrap :is(th, td) { padding-inline: .55rem; }
}
