/* Homepage only. Case pages and the library keep their existing layout. */
.home-screen-inner {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(32px, 5.5svh, 64px) 24px;
  display: flex;
  flex-direction: column;
}

.home-page .head {
  padding-bottom: 0;
}

.home-page .htitle {
  max-width: none;
  margin-top: 12px;
  font-size: clamp(34px, 3.6vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.3;
  text-wrap: balance;
}

.home-page .hone {
  margin-top: 10px;
  font-size: 16px;
}

.home-page .hero-actions {
  margin-top: 18px;
}

.home-page #studies {
  margin-top: 24px;
}

.home-page .section-head-simple {
  padding-inline: 0;
}

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

.home-page .study-list li {
  min-width: 0;
}

.home-page .study-list a {
  height: 100%;
  min-height: 0;
  padding: 16px 18px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  align-items: start;
  background: #fff;
}

.home-page .study-list li + li {
  margin-top: 0;
}

.home-page .study-title {
  font-size: 16px;
  line-height: 1.4;
}

.home-page .study-scope,
.home-page .study-label,
.home-page .study-metric dt {
  font-size: 11px;
}

.home-page .study-sum {
  margin-top: 0;
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .study-label {
  display: none;
}

.home-page .study-metrics {
  padding-top: 8px;
  border-top: 1px solid var(--z100);
}

.home-page .study-metric dt {
  line-height: 1.4;
}

.home-page .study-metric dd {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.3;
}

.home-page .study-metric small {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
}

.home-next {
  min-height: 44px;
  margin-top: clamp(24px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--z600);
  font-size: 14px;
  text-decoration: none;
}

.home-next:hover {
  color: var(--brand);
}

.home-next:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.home-next > span:last-child {
  font-size: 20px;
  line-height: 1;
}

.home-screen--learn {
  background: var(--z50);
  box-shadow: inset 0 1px var(--z200);
  scroll-margin-top: 0;
}

.home-screen--learn .home-screen-inner {
  padding-top: clamp(40px, 8svh, 88px);
}

.home-page #downloads {
  margin-top: 0;
}

.home-page .self-research-head {
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: 0;
}

.home-page .self-research-head .sec-h {
  margin-top: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.home-page .discovery {
  min-height: 112px;
  padding-block: 22px;
}

.home-page .workflow-section {
  margin-top: 28px;
}

.home-page .workflow-section-head {
  padding-inline: 0;
}

.home-page .workflow-card {
  min-height: 246px;
  padding: 26px;
}

.workflow-result {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--z200);
}

.workflow-result h3 {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 650;
}

.workflow-result h3 + p {
  margin-top: 4px;
  color: var(--z500);
  font-size: 12px;
}

.workflow-result > a {
  flex-shrink: 0;
  padding-block: 12px;
  font-size: 12px;
}

.home-page .foot {
  margin-top: 24px;
  padding-top: 18px;
}

@media (min-width: 761px) {
  .home-screen-inner {
    min-height: 100vh;
    min-height: 100svh;
  }

  .home-screen--learn #downloads,
  .home-screen--learn .workflow-section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }

  .home-screen--learn .workflow-grid {
    flex: 1 0 auto;
  }

  /* Keep the hero at its content height; only the case area can grow. */
  .home-screen--cases .head {
    flex: 0 0 auto;
  }

  .home-page #studies {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }

  .home-page .study-list {
    flex: 1 0 auto;
  }
}

@media (min-width: 761px) and (min-height: 801px) {
  .home-page .study-list a {
    grid-template-rows: auto auto auto;
    align-content: space-between;
  }

  .home-page .study-title {
    font-size: 17px;
  }

  .home-page .study-scope,
  .home-page .study-metric dt {
    font-size: 12px;
  }

  .home-page .study-sum {
    font-size: 14px;
  }

  .home-page .study-metric dd {
    font-size: 18px;
  }

  .home-page .study-metric small {
    font-size: 11px;
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  .home-screen-inner {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .home-page .hero-actions {
    margin-top: 14px;
  }

  .home-page .hone {
    font-size: 15px;
  }

  .home-page #studies {
    margin-top: 18px;
  }

  .home-page #studies .section-head {
    padding-bottom: 8px;
  }

  .home-page .study-list {
    margin-top: 12px;
  }

  .home-page .study-list a {
    padding-block: 11px;
  }

  .home-screen--learn .home-screen-inner {
    padding-top: 32px;
  }

  .home-page .self-research-head {
    margin-bottom: 24px;
  }

  .home-page .workflow-card {
    min-height: 228px;
  }
}

@media (max-width: 760px) {
  .home-screen-inner {
    min-height: 0;
    padding-block: 40px 28px;
  }

  .home-next {
    margin-top: 24px;
  }

  .home-screen--learn .home-screen-inner {
    padding-top: 40px;
  }

}

@media (max-width: 760px) {
  .home-screen-inner {
    width: calc(100% - 32px);
    padding-top: 32px;
  }

  .home-page .head .eyebrow {
    display: block;
  }

  .home-page .htitle {
    font-size: clamp(29px, 5.4vw, 38px);
    letter-spacing: -0.025em;
  }

  .home-page .hone {
    font-size: 15px;
  }

  .home-page .study-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .study-list a {
    min-height: 0;
    padding: 18px;
    gap: 12px;
  }

  .home-page .self-research-head .sec-h {
    font-size: 28px;
  }

  .home-page .discovery,
  .home-page .workflow-card {
    padding: 20px;
  }

  .home-page .workflow-card {
    min-height: 220px;
  }

  .home-page .study-title {
    font-size: 16px;
  }

  .workflow-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
