/* Research and development: the researcher's desk, then the projects on it. */
.research-hero { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border: 1px solid #52616a; background: linear-gradient(130deg, #15212a, #0e1920);
  box-shadow: 0 28px 70px #0006; }
.research-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px;
  background: linear-gradient(90deg, #da6328, #ffc170 40%, transparent); }
.research-hero-text { align-self: center; min-width: 0; padding: clamp(1.4rem, 4vw, 3rem); }
.research-hero h1 { margin: .35rem 0 .9rem; font: 500 clamp(2.2rem, 4vw, 3.5rem)/1 "Arial Narrow", Bahnschrift, sans-serif;
  text-transform: uppercase; letter-spacing: .04em; }
.research-intro { margin: 0; color: #c6d0d2; font-size: clamp(.95rem, 1.4vw, 1.05rem); }
.research-art { position: relative; margin: 0; min-height: 100%; border-left: 1px solid #52616a; }
.research-art::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0e1920 0%, #0e192000 22%); }
.research-art img, .research-art video { display: block; width: 100%; height: 100%; object-fit: cover; }
.research-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  margin: 2.5rem 0 1.5rem; }
.research-project { position: relative; min-width: 0; display: flex; flex-direction: column;
  min-height: 14rem; padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid #40505a; background: linear-gradient(145deg, #1b2932, #111c23);
  box-shadow: inset 0 1px #ffffff0b, 0 12px 25px #0003; }
.research-project::after { content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 14px 14px; border-color: transparent transparent var(--bg) transparent; }
.research-project-top { display: flex; justify-content: space-between; gap: .8rem; align-items: center;
  flex-wrap: wrap; }
.research-status { padding: .15rem .55rem; border: 1px solid #5ea9b7; color: #9fdbe5;
  background: #0f2a31; font: 700 .7rem/1.4 "Arial Narrow", Bahnschrift, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; }
.research-project h2 { margin: auto 0 .5rem; padding-top: 1.6rem;
  font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 "Arial Narrow", Bahnschrift, sans-serif;
  text-transform: uppercase; letter-spacing: .03em; }
.research-project p { margin: 0; max-width: 28rem; color: #c6d0d2; }
.research-link { align-self: start; margin-top: .9rem; color: var(--gold-2); font-weight: 700;
  text-decoration: none; border-bottom: 1px solid #eaa04a75; }
.research-link:hover { color: #ffce90; border-bottom-color: currentColor; }
.research-note { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 800px) {
  .research-projects { grid-template-columns: 1fr; }
  .research-project { min-height: 11rem; }
  .research-hero { grid-template-columns: 1fr; }
  .research-art { order: -1; border-left: 0; border-bottom: 1px solid #52616a; }
  .research-art::before { display: none; }
}
/* Live feed (#31): statuses come from Discord thread titles. */
.research-status[data-status="in-testing"] { border-color: #e0a457; color: #ffd39b; background: #33250f; }
.research-status[data-status="in-development"] { border-color: #a98ad8; color: #d8c5f5; background: #261a3a; }
.research-status[data-status="released"] { border-color: #6fbf8f; color: #a9e8c2; background: #12301f; }
.research-body { white-space: pre-line; overflow-wrap: anywhere; }
.research-updated { display: block; margin-top: .8rem; color: var(--muted); font-size: .82rem; }
.research-replies { margin-top: .9rem; border-top: 1px solid #40505a; padding-top: .7rem; }
.research-replies summary { cursor: pointer; color: var(--gold-2); font-weight: 700; }
.research-replies summary:hover { color: #ffce90; }
.research-replies ol { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .7rem;
  max-height: 22rem; overflow-y: auto; }
.research-replies li { padding: .55rem .75rem; background: #0e1920; border-left: 2px solid #52616a; }
.research-reply-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.research-reply-meta strong { color: var(--text); overflow-wrap: anywhere; }
.research-reply-text { margin: .2rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
/* Released projects (#35): one closed bar under the grid. */
.research-released { margin: -.5rem 0 1.5rem; border: 1px solid #40505a; background: #111c23; }
.research-released summary { cursor: pointer; padding: .9rem 1.3rem; color: #a9e8c2;
  font: 700 .82rem/1.4 "Arial Narrow", Bahnschrift, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.research-released summary:hover { color: #d4f5e1; }
.research-released[open] summary { border-bottom: 1px solid #40505a; }
.research-released-grid { margin: 0; padding: 1rem; }
.research-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
