/* Styles of the page /research/ */
/* Research page: the site's own components, with small additions */
.rp-title{font-size:1.5em;font-weight:600;margin:0 0 .5em}
.rp-open{margin-bottom:.5em}
.archive img,.archive video{background:#fff}
.archive video.rp-video{background:#0d1117;border-radius:4px;height:auto;display:block}
.archive .research-section .rp-center{display:block;margin-left:auto;margin-right:auto}
.rp-eq{text-align:center;font-size:1.25em;margin:.4em 0 .8em}
/* a display equation wider than a small screen scrolls inside its own line */
.archive mjx-container[display="true"]{max-width:100%;min-width:0 !important;overflow-x:auto;overflow-y:hidden;padding:.1em 0}
.research-section .img-full,.rp-open .img-full,.research-section .img-wide,.research-section .img-small{margin:.6em 0 .2em}

/* schematics of the reconstruction section */
.rp-schema{position:relative;margin:1.2em 0 .5em;padding:1.1em 1.1em 1em;background:#161b22;border:1px solid #30363d;border-radius:8px}
.rp-schema svg.rp-links{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.rp-flow{display:flex;align-items:center;justify-content:center;gap:.7em}
.rp-flow + .rp-flow,.rp-step + .rp-flow{margin-top:.2em}
.rp-flow--sub{margin-top:1.1em !important;padding-top:1em;border-top:1px dashed #30363d}
.rp-flow--cubes{margin-top:1.6em !important;padding-top:1.2em;border-top:1px dashed #30363d;align-items:flex-start}
.rp-flow--cubes .rp-op{align-self:center}
.rp-lead{flex:none;font-size:.9em;color:#e6edf3;font-weight:600}
.rp-panel{margin:0;flex:0 1 270px;min-width:0;text-align:center}
.archive .rp-panel img{display:block;width:100%;height:auto;margin:0;border-radius:4px;border:1px solid #30363d;background:#fff}
.rp-panel figcaption{margin:0 0 .4em;font-family:inherit;font-size:.82em;line-height:1.3;color:#e6edf3}
.rp-panel figcaption strong{display:block;font-weight:600}
.rp-panel figcaption span{display:block;color:#8b949e}
.archive .rp-panel--hl img{border-color:#e6edf3}
.archive .rp-panel--blue img{border-color:#58a6ff;box-shadow:0 0 0 1px #58a6ff}
.rp-op{flex:none;font-size:1.7em;font-weight:600;line-height:1;color:#e6edf3}
.rp-term{flex:0 1 11em;min-width:0;text-align:center;font-size:1.25em}
.rp-term span{display:block;margin-top:.3em;font-size:.62em;line-height:1.3;color:#8b949e}
.rp-step{margin:1.3em 0 .6em;font-size:.88em;line-height:1.4;color:#c5ccd3}
.rp-step:first-of-type{margin-top:0}
.rp-step b{color:#e6edf3}
.rp-bispec{display:flex;align-items:center;justify-content:center;gap:2em;margin:.2em 0 0}
.rp-bispec .rp-eq{margin:0;font-size:1.2em}
/* a long equation scrolls inside its own box instead of widening the page */
.rp-schema .rp-eq{max-width:100%;min-width:0;padding:.15em 0;overflow-x:auto;overflow-y:hidden}
.rp-triangle{flex:none;width:280px;height:auto;background:transparent}
.rp-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.2em;margin-top:3.4em}
.rp-card{padding:.75em .95em;border:1px solid;border-radius:6px;font-size:.86em;line-height:1.5}
.rp-card h4{margin:0 0 .3em;font-size:1.02em}
.rp-card--blue{border-color:#388bfd;background:rgba(56,139,253,.08)}
.rp-card--blue h4{color:#58a6ff}
.rp-card--red{border-color:#f85149;background:rgba(248,81,73,.08)}
.rp-card--red h4{color:#ff7b72}
.rp-eq--big{font-size:1.35em;margin:.2em 0 0}
.rp-cols{display:grid;grid-template-columns:1.25fr 1fr;gap:1.6em;align-items:start;margin-top:3.6em}
.rp-col{text-align:center}
.archive .rp-col img{display:block;width:100%;height:auto;margin:0;border-radius:4px;background:#fff}
.rp-col__title{margin:0 0 .5em !important;font-size:.9em;font-weight:600}
.rp-col__note{margin:.25em 0 .7em !important;font-size:.8em;line-height:1.35;color:#8b949e}
@media (max-width:900px){
  .rp-bispec{flex-direction:column;gap:.6em}
  .rp-triangle{max-width:100%}
}
@media (max-width:700px){
  .rp-flow{flex-direction:column;gap:.35em}
  .rp-flow .rp-panel{width:100%;flex:none}
  .rp-bispec .rp-eq{font-size:1em}
  .rp-eq--big{font-size:1.1em}
  .rp-cards,.rp-cols{grid-template-columns:1fr;margin-top:1em}
  .rp-schema svg.rp-links{display:none}
}

/* the measurements section: paper headers, lists of what each analysis added, and a row of three links */
.rp-hl{color:#20c997;font-weight:600}
.archive .research-section h3{margin:2.2em 0 .6em;padding-top:1.1em;border-top:1px solid #21262d;font-size:1.12em;color:#e6edf3}
.rp-paper{margin:0 0 .9em;padding:.6em .9em;background:#161b22;border:1px solid #30363d;border-left:3px solid #20c997;border-radius:4px;line-height:1.4}
.rp-paper__title{display:block;font-size:.95em;font-weight:600}
.rp-paper__meta{display:block;margin-top:.2em;font-size:.8em;color:#8b949e}
.archive ul.rp-points{margin:.6em 0 1.1em;padding-left:1.2em}
.archive ul.rp-points li{margin:0 0 .5em;line-height:1.55}
.rp-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8em;margin:1.2em 0 .4em}
.rp-trio a{display:block;padding:.7em .85em;background:#161b22;border:1px solid #30363d;border-radius:6px;text-decoration:none !important;line-height:1.35}
.rp-trio a:hover{border-color:#20c997}
.rp-trio b{display:block;font-size:.78em;color:#20c997;letter-spacing:.06em}
.rp-trio span{display:block;margin:.15em 0 .3em;font-weight:600;color:#e6edf3}
.rp-trio em{display:block;font-size:.84em;font-style:normal;color:#8b949e}
@media (max-width:700px){.rp-trio{grid-template-columns:1fr}}

/* uniform figure grid: every plot sits in a white cell of one common height, two to a row; wide figures take
   the whole row at the same height; white space fills what the plot does not */
.rp-plots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:1.1em 0 .6em;container-type:inline-size}
.archive figure.rp-plot{display:block;margin:0;min-width:0}
.rp-plot--span2{grid-column:1 / -1}
.archive .rp-plot > a{display:flex;align-items:center;justify-content:center;width:100%;height:calc((100cqi - 12px) / 3.3);padding:10px 12px;box-sizing:border-box;background:#fff;border-radius:4px;cursor:zoom-in}
.archive .rp-plot img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;margin:0;border-radius:0;background:#fff}
.rp-plot figcaption{margin:.45em 0 .5em;font-family:inherit;font-size:.75em;line-height:1.4;color:#8b949e;text-align:left}
.rp-plot figcaption strong{color:#c5ccd3;font-weight:600}
@media (max-width:700px){
  .rp-plots{grid-template-columns:1fr}
  .archive .rp-plot > a{height:auto;padding:8px}
  .archive .rp-plot img{max-height:none;width:100%}
}
