/* Research index and one-page notes. Uses the .landing-home tokens from home.css. */
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Index */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.research-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(20 45 64 / 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.research-card:hover {
  border-color: #b7c8d4;
  box-shadow: 0 14px 34px rgb(20 45 64 / 0.08);
}

.research-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.research-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.research-card time,
.note-meta {
  color: #6d7f8c;
  font: 400 0.74rem "DM Mono", monospace;
}

.research-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.research-card p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.research-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

/* Note */
.research-note { max-width: 820px; }

.note-hero { padding-bottom: 8px; }

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px !important;
}

.note-figure {
  margin: 28px 0 0;
}

.note-figure video,
.note-figure img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.note-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.note-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.note-stats strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.note-stats span {
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.note-body {
  padding-top: 12px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.72;
}

.note-body h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.note-body p,
.note-body ul,
.note-body ol { margin: 0 0 16px; }

.note-body ul,
.note-body ol { padding-left: 22px; }

.note-body li { margin-bottom: 8px; }
.note-body strong { color: var(--ink); }
.note-body a { color: var(--blue); }

.note-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.note-body th,
.note-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.note-body th {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: #b7c8d4;
}

.note-body td:not(:first-child),
.note-body th:not(:first-child) { text-align: right; }

.note-refs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin: 36px 0 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.note-refs h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.note-refs ol,
.note-refs ul {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.note-refs a { color: var(--blue); }

@media (max-width: 720px) {
  .note-stats { grid-template-columns: 1fr; }
  .note-refs { grid-template-columns: 1fr; gap: 20px; }
}

/* .page-hero p would otherwise restyle the eyebrow label as body text. */
.page-hero .eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Research titles run the full text width rather than balancing into a narrow column. */
.research-hero,
.note-hero { max-width: 820px; }

.research-hero h1,
.note-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  text-wrap: pretty;
}

/* Bullet summary at the top of a note. */
.note-summary {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.note-summary h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}

.note-summary li + li { margin-top: 8px; }

@media (max-width: 720px) {
  .note-summary { padding: 16px 18px; }
}
