/* Page content only; shared theme components remain owned by al-folio. */
.tps-study {
  --tps-accent: #286953;
  line-height: 1.7;
}
html[data-theme="dark"] .tps-study {
  --tps-accent: #93cbb4;
}
.tps-study h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--global-divider-color);
  scroll-margin-top: 6rem;
}
.tps-study h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.8rem;
  scroll-margin-top: 6rem;
}
.tps-study h4 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  scroll-margin-top: 6rem;
}
.tps-project-nav,
.tps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0 0 1.7rem;
  font-size: 0.9rem;
}
.tps-project-nav [aria-current] {
  font-weight: 600;
  border-bottom: 2px solid var(--tps-accent);
}
.tps-eyebrow {
  color: var(--tps-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}
.tps-figure {
  min-width: 0;
  margin: 1.7rem 0;
}
.tps-figure > a {
  display: block;
  border: 1px solid var(--global-divider-color);
  background: #fff;
}
.tps-figure > a:hover,
.tps-figure > a:focus-visible {
  outline: 2px solid var(--tps-accent);
  outline-offset: 3px;
}
.tps-figure img,
.tps-figure video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.tps-figure video {
  max-height: 560px;
  background: #fff;
  border: 1px solid var(--global-divider-color);
}
.tps-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.tps-geometry {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.tps-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.tps-details {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--global-divider-color);
  border-radius: 4px;
}
.tps-details summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}
.tps-details[open] summary {
  margin-bottom: 1rem;
}
.tps-study table {
  width: 100%;
  font-size: 0.88rem;
}
.tps-study th,
.tps-study td {
  padding: 0.6rem;
  vertical-align: top;
  border-bottom: 1px solid var(--global-divider-color);
}
@media (max-width: 640px) {
  .tps-figure-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tps-details {
    padding: 0.9rem;
  }
  .tps-study table {
    font-size: 0.78rem;
  }
  .tps-study th,
  .tps-study td {
    padding: 0.4rem 0.2rem;
    overflow-wrap: anywhere;
  }
}
