article:has(.research-home) { max-width: none; margin-top: clamp(1.6rem, 4vw, 3.75rem); }
.home-intro, .research-home figcaption, .copy-row, .diagram-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.home-intro { flex-wrap: wrap; align-items: start; gap: 1.4rem 3rem; }
.home-intro h1 { margin: 0; letter-spacing: -.035em; }
.home-intro p { margin: .6rem 0 0; color: #465d54; }
.endpoint { max-width: 100%; }
.endpoint label { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 650; }
.copy-row { gap: .4rem; }
.copy-row input { width: 38ch; min-width: 0; font-size: .86rem; font-family: "IBM Plex Mono", monospace; }
.copy-row button { flex: none; background: #1b594c; color: white; border-color: #1b594c; }
.copy-row button:hover { background: #134639; }
#copy-status { display: block; min-height: 1.3em; margin-top: .25rem; color: #335444; font-size: .82rem; }
.research-home figure { margin: 1.1rem 0 2.2rem; }
.research-home figcaption { padding: .8rem 0; border-top: 1px solid #b9c8bd; }
.research-home figcaption h2, .current-question h2 { font-size: 1.12rem; margin: 0; }
.research-home figcaption a, .current-question > a { font-size: .9rem; }
.diagram { position: relative; background: white; box-shadow: 0 0 0 1px #c4cfc5; }
.diagram img { display: block; width: 100%; height: auto; }
.hotspot { display: block; position: absolute; padding: 0; border: 0; border-radius: .5rem; background: transparent; cursor: pointer; }
.hotspot:hover, .hotspot:focus-visible { background: rgb(10 121 89 / 12%); box-shadow: inset 0 0 0 3px #147058; }
.hotspot:focus-visible { outline-offset: -3px; }
/* Panel coordinates in the 1536 × 780 overview. */
.spot-frontier { left: 16.8%; top: 50%; width: 31.6%; height: 11.2%; }
.spot-copy    { left: 49.8%; top: 50%; width: 32.8%; height: 11.2%; }
.spot-finding { left: 35.2%; top: 69.4%; width: 19.1%; height: 12.5%; }
.spot-review  { left: 80.7%; top: 69.4%; width: 18.5%; height: 12.5%; }
.spot-layout  { left: 78.4%; top: 30.2%; width: 20%; height: 3.7%; }
.spot-snapshot-frontier { left: 78.4%; top: 26.1%; width: 20%; height: 4.1%; }
.results-fold { margin: 0; padding: 0; border: 1px solid #b6c6bb; border-top: 0; }
.results-fold summary { padding: .8rem 1rem; min-height: 44px; color: #1b594c; }
.results-fold summary span { float: right; color: #465d54; font-size: .9rem; font-weight: normal; }
.results-fold[open] .result-strip {
  display: block; aspect-ratio: 1536 / 244;
  background: url('/research-layout-results.webp') center / contain no-repeat;
}
.results-fold p { padding: .45rem 1rem .7rem; margin: 0; font-size: .9rem; }
.diagram-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; margin-top: .7rem; }
.diagram-links a { min-height: 44px; padding: .55rem .85rem; border: 1px solid #b6c6bb; border-radius: 5px; text-decoration: none; font-size: .92rem; }
.diagram-links a:hover { background: #e6eee5; text-decoration: underline; }
.current-question { padding-top: 1rem; border-top: 1px solid #b9c8bd; }
.current-question p { margin: .6rem 0; }
@media (max-width: 650px) {
  .home-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.1rem; }
  .copy-row input { flex: 1; width: 0; font-size: .8rem; padding: 9px 8px; }
  .copy-row button { min-height: 44px; }
  .diagram-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-home figure { margin-top: .65rem; }
}
@media (max-width: 450px) {
  .endpoint { display: grid; grid-template-columns: 1fr auto; gap: .25rem; align-items: center; }
  .endpoint label { grid-area: 1 / 1; margin: 0; }
  .copy-row { display: contents; }
  .copy-row input { grid-area: 2 / 1 / 3 / -1; width: 100%; }
  .copy-row button { grid-area: 1 / 2; }
  #copy-status { grid-column: 1 / -1; }
}
