/* research.css — the Research register (formerly Writings).
   Composition (TEMPLATES.md §5):
     SHELL:  SH-2RAIL-L — global rail, no local rail
     BODY:   MK-CAPS + NV-FILTER + REGISTER (Y253) ×N
     REF:    Y253 (index + tags + thumbnail strip), B949, G858

   Y253 is a text index that still shows its material: the reader can scan
   titles and dates, or read across to the tags, or look at the plates — three
   ways into the same row without the page turning into a gallery. */

.research { max-width: 100%; }
.marker--page { margin-bottom: var(--u2); }

/* A row whose piece has no page yet renders as text, not as a dead link. */
.reg__row[data-pending] .reg__title { color: var(--ink-soft); }

/* ── The feature entry ────────────────────────────────────────────────────
   One essay, given the page: its plates on the left in two columns at their
   own ratios (never cropped, C10), the record on the right — title in the
   heading face, the opening sentence, the five parts, and the way in. The
   whole entry is the link. */
.reg__row--feature {
  display: block;
  padding: var(--u2) 0 var(--u4);
  border-top: 0;
}
.reg__row--feature:last-child { border-bottom: 0; }
.reg__feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--u2) calc(var(--u2) * 1.5);
  align-items: center;
}
.reg__plates { columns: 2; column-gap: var(--u1); }
.reg__plates img {
  width: 100%;
  margin-bottom: var(--u1);
  break-inside: avoid;
  transition: opacity var(--fade) ease;
}
.reg__feature:hover .reg__plates img { opacity: .85; }

.reg__body { display: flex; flex-direction: column; gap: var(--u1); }
.reg__row--feature .reg__title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.reg__row--feature .reg__title [lang="zh"] {
  display: block;
  margin-top: var(--u-half);
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.reg__row--feature .reg__date:empty { display: none; }
.reg__row--feature .reg__meta { font-size: var(--t-caption); color: var(--ink-soft); }
.reg__row--feature .reg__desc {
  max-width: none;
  font-size: var(--t-thesis);
  line-height: var(--lh-thesis);
  color: var(--ink);
}
.reg__parts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--u1);
  border-top: var(--hair) solid var(--rule);
  font-size: var(--t-caption);
  color: var(--ink-soft);
}
.reg__read {
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.2);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.reg__feature:hover .reg__read { text-decoration-thickness: 2px; }

@media (max-width: 800px) {
  .reg__feature { grid-template-columns: minmax(0, 1fr); }
}

/* ── A video entry (C73) ──────────────────────────────────────────────────
   A vertical short in place of the plates, centred in their column, playing
   where it stands (video.js); the record beside it. Ruled from the entry above. */
.reg__row--feature + .reg__row--feature {
  padding-top: var(--u4);
  border-top: var(--hair) solid var(--rule);
}
.reg__film { margin: 0; display: flex; justify-content: center; }
.reg__row--video .reg__title,
.reg__row--video .reg__meta,
.reg__row--video .reg__read { margin: 0; }
.reg__row--video .reg__read { text-decoration: none; }
.reg__read a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.reg__read a:hover { text-decoration-thickness: 2px; }

/* Press (C73): one page as published in place of the plates, at its own ratio. */
.reg__plates--one { columns: 1; }
.reg__plates--one img { margin-bottom: 0; }
