main:has(#research-view:not([hidden])) { padding-block: clamp(6px, 3vh, 42px) 8vh }
#section:has(#research-view:not([hidden])) { width: 100% }
#section:has(#research-view:not([hidden])) > h1 {
  font-size: clamp(32px, 4.3vw, 76px);
  max-width: 23ch;
  text-wrap: balance;
}
#research-view { margin-top: clamp(30px, 5vh, 68px) }
.research-index, .case-index { display: grid; gap: clamp(32px, 6vh, 75px) clamp(24px, 4vw, 80px) }
/* The title stays near Back. The directory occupies the remaining viewport. */
.sheet:has(#research-view:not([hidden]) > .research-index) {
  display: flex;
  flex-direction: column;
}
main:has(#research-view:not([hidden]) > .research-index),
#section:has(#research-view:not([hidden]) > .research-index) {
  display: flex;
  flex: 1;
  flex-direction: column;
}
#research-view:has(> .research-index) {
  container-type: inline-size;
  display: grid;
  align-items: center;
  flex: 1;
  margin-top: clamp(2rem, 6svh, 5rem);
}
.research-index {
  display: flex;
  justify-content: space-between;
  align-items: start;
  column-gap: clamp(1rem, 3vw, 4rem);
}
.research-index a { max-width: 100% }
.case-index { grid-template-columns: minmax(0, 1fr) }
.research-index a, .case-index a {
  display: block;
  font-size: clamp(22px, 2.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.link-ending { white-space: nowrap }
#research-view .link-ending > span {
  display: inline-block;
  margin-inline-start: .38em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: no-preference) {
  #research-view .link-ending > span { transition: transform 150ms ease-out }
  #research-view a:is(:hover, :focus-visible) .link-ending > span { transform: translate(.10em, -.10em) }
}
.research-status { font-size: clamp(17px, 1.45vw, 23px) }
@container (max-width: 42rem) {
  .research-index { flex-direction: column; row-gap: clamp(1.5rem, 4.5svh, 3.25rem) }
}
@media (orientation: landscape) and (max-height: 32rem) {
  @container (min-width: 32rem) and (max-width: 42rem) {
    .research-index { flex-direction: row }
    .research-index a { font-size: clamp(1.1rem, 2.7vw, 1.35rem) }
  }
}

.case-index a {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: .15em .3em;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.case-index small { display: block; margin-bottom: .18em; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.5; letter-spacing: 0 }
.case-index a:is(:hover, :focus-visible) { text-decoration: none }
.case-index a:is(:hover, :focus-visible) > span:first-of-type {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
