.study-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 24rem),
    var(--paper);
}

.study-page main {
  min-height: 70vh;
}

.study-hero {
  padding: 150px clamp(20px, 6vw, 88px) 72px;
  border-bottom: 1px solid var(--line);
}

.study-hero-inner,
.study-section,
.study-footer-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.study-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.study-hero .lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.study-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.study-chip,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.study-chip {
  padding: 8px 13px;
  color: var(--muted);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  font-size: 12px;
}

.study-section {
  padding: 72px clamp(20px, 4vw, 48px);
}

.study-section + .study-section {
  border-top: 1px solid var(--line);
}

.study-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.study-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.study-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.study-card,
.study-panel,
.study-table-wrap,
.study-callout {
  background: color-mix(in srgb, var(--paper-strong) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgb(34 25 52 / 6%);
}

.study-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
}

.study-card h2,
.study-card h3,
.study-panel h2,
.study-panel h3 {
  margin: 14px 0 10px;
  letter-spacing: -0.035em;
}

.study-card p,
.study-panel p,
.study-panel li,
.study-callout p {
  color: var(--muted);
  line-height: 1.75;
}

.study-card .card-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.study-card .card-link:hover,
.study-card .card-link:focus-visible {
  text-decoration: underline;
}

.status {
  align-self: flex-start;
  padding: 6px 10px;
  font-size: 11px;
}

.status-active {
  color: #0f634f;
  background: #dff4ea;
}

.status-recorded {
  color: #694d10;
  background: #f7ebc9;
}

.status-pending {
  color: #625b70;
  background: #eeeaf3;
}

.study-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.study-panel {
  padding: 28px;
}

.study-panel ul,
.study-panel ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.study-panel li + li {
  margin-top: 10px;
}

.study-table-wrap {
  overflow-x: auto;
  padding: 10px;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 14px;
}

.study-table th,
.study-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.study-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.study-table tbody tr:last-child td {
  border-bottom: 0;
}

.study-callout {
  margin-top: 24px;
  padding: 24px 28px;
  border-left: 5px solid var(--accent);
}

.study-callout strong {
  display: block;
  margin-bottom: 6px;
}

.study-callout p {
  margin: 0;
}

.study-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.study-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.study-action.secondary {
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.study-footer {
  padding: 36px clamp(20px, 6vw, 88px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.study-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.study-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.study-page .nav-studies > summary {
  color: var(--ink);
}

.studies-menu a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 860px) {
  .study-grid,
  .study-columns,
  .study-heading {
    grid-template-columns: 1fr;
  }

  .study-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .study-hero {
    padding-top: 120px;
  }

  .study-section {
    padding-block: 52px;
  }

  .study-card,
  .study-panel {
    padding: 22px;
  }
}
