/* /research and /research/<slug> — long-form research articles.
   Self-contained styles. Brand-token-driven, mobile-responsive. */

.research-page {
  background: var(--stone, #F2F0EB);
  min-height: 100vh;
  padding: 32px 0 80px;
}
.research-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.research-article__head { margin-bottom: 36px; }
.research-article__head .eyebrow,
.research-card .eyebrow,
.research-toc .eyebrow,
.research-section .eyebrow,
.research-next .eyebrow {
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--green, #1D9E75);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.research-article__head h1 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  color: var(--navy, #0D2340);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
}
.research-article__lede {
  font-size: 18px;
  color: #2a3a4d;
  line-height: 1.5;
  margin: 0 0 18px;
}
.research-article__byline {
  font-size: 13px;
  color: var(--mid, #7A8796);
  margin: 0;
  border-top: 1px solid #d9d4ca;
  padding-top: 12px;
}
.research-article__byline strong { color: var(--navy, #0D2340); }

.research-article__hero-lede {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--navy, #0D2340);
  border-left: 3px solid var(--green, #1D9E75);
  padding-left: 18px;
  margin: 0 0 36px;
}

.research-toc {
  background: #fff;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 0 0 36px;
  box-shadow: 0 1px 3px rgba(13, 35, 64, 0.05);
}
.research-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  color: #2a3a4d;
}
.research-toc li { padding: 4px 0; }
.research-toc a { color: var(--navy, #0D2340); text-decoration: none; }
.research-toc a:hover { color: var(--green, #1D9E75); text-decoration: underline; }

.research-section { margin-bottom: 32px; }
.research-section h2 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  color: var(--navy, #0D2340);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}
.research-section__body { font-size: 16px; line-height: 1.7; color: #2a3a4d; }
.research-section__body p { margin: 0 0 16px; }
.research-section__body ul,
.research-section__body ol { margin: 0 0 16px; padding-left: 22px; }
.research-section__body li { margin-bottom: 8px; }
.research-section__body strong { color: var(--navy, #0D2340); font-weight: 600; }
.research-section__body em { font-style: normal; color: var(--green, #1D9E75); font-weight: 600; }
.research-section__body a { color: var(--green, #1D9E75); }

.research-stages { padding-left: 22px; }
.research-stages li {
  background: #fff;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 8px;
  list-style: decimal;
  list-style-position: outside;
  margin-left: 4px;
  font-size: 15px;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 18px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(13, 35, 64, 0.05);
}
.research-table th,
.research-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--stone, #F2F0EB);
  vertical-align: top;
}
.research-table thead th {
  background: var(--stone, #F2F0EB);
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--navy, #0D2340);
  text-transform: uppercase;
  font-weight: 600;
}
.research-table tbody tr:last-child td { border-bottom: 0; }

.research-formula {
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 13.5px;
  background: var(--navy, #0D2340);
  color: #fff;
  padding: 14px 18px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0 0 16px;
  white-space: nowrap;
}

.research-glossary { margin: 0; }
.research-glossary dt {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy, #0D2340);
  margin-top: 14px;
}
.research-glossary dd {
  margin: 4px 0 0 0;
  font-size: 14.5px;
  color: #2a3a4d;
  line-height: 1.55;
}

.research-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 36px;
}
.research-card {
  background: #fff;
  border-radius: 4px;
  border-left: 3px solid var(--green, #1D9E75);
  box-shadow: 0 1px 3px rgba(13, 35, 64, 0.05);
  transition: box-shadow 120ms ease, transform 120ms ease;
}
.research-card:hover { box-shadow: 0 3px 10px rgba(13, 35, 64, 0.10); transform: translateY(-1px); }
.research-card__link {
  display: block;
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
}
.research-card h2 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  color: var(--navy, #0D2340);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
}
.research-card__sub { color: #2a3a4d; font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.research-card__more {
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 12px;
  color: var(--green, #1D9E75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.research-cta {
  background: var(--navy, #0D2340);
  color: #fff;
  border-radius: 6px;
  padding: 32px 32px;
  text-align: center;
  margin: 32px 0 0;
}
.research-cta--inline { margin-top: 28px; }
.research-cta h2 {
  color: #fff;
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 24px;
  margin: 0 0 10px;
}
.research-cta p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 18px; max-width: 540px; }
.research-cta__row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.research-cta .button {
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.research-cta .button--dark { background: var(--green, #1D9E75); }
.research-cta .button:hover { opacity: 0.92; }

.research-next {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #d9d4ca;
}
.research-next__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 18px 22px;
  border-radius: 4px;
  border-left: 3px solid var(--green, #1D9E75);
  box-shadow: 0 1px 3px rgba(13, 35, 64, 0.05);
}
.research-next__link h3 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy, #0D2340);
  margin: 0 0 6px;
}
.research-next__link p { color: #2a3a4d; font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.research-next__link span {
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--green, #1D9E75);
  text-transform: uppercase;
}

.research-article__return {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
}
.research-article__return a {
  color: var(--mid, #7A8796);
  text-decoration: none;
}
.research-article__return a:hover { color: var(--navy, #0D2340); text-decoration: underline; }

@media (max-width: 720px) {
  .research-article { padding: 0 18px; }
  .research-article__head h1 { font-size: 28px; }
  .research-article__lede { font-size: 16px; }
  .research-article__hero-lede { font-size: 16.5px; padding-left: 14px; }
  .research-section h2 { font-size: 21px; }
  .research-formula { white-space: normal; word-break: break-word; }
}
