/* Public research notes: four independent directions, not four finished studies. */
.research-statement { padding-block: 2rem; margin-bottom: 2rem; }
.research-statement > p:last-child,
:root:lang(zh-CN) .research-statement > p:last-child {
  max-width: 52ch;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -.02em;
}
.research-projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.research-card,
.research-card--director {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  border-radius: .5rem;
  box-shadow: 0 .375rem 1.25rem rgba(61, 37, 25, .055);
}
.research-cover,
.research-card--director .research-cover {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: .5rem .5rem 0 0;
}
.research-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1.25rem, 2vw, 2rem) 0;
}
.research-card h3 { line-height: 1.2; overflow-wrap: anywhere; }
.research-card h3 small { line-height: 1.6; }
.research-card .research-status { min-height: 3.4em; }
.research-card dl { margin-top: auto; padding-top: 1.25rem; }
.research-card dl > div:last-child { background: transparent; padding: .875rem 0 0; border-top: 1px solid rgba(17,17,15,.12); }
.research-card:is(:hover, :focus-within) dl > div:last-child { background: transparent; border-top: 1px solid rgba(17,17,15,.12); }
.research-card .research-open { min-height: 44px; margin-top: .75rem; align-self: flex-start; line-height: 1.5; }
.research-type-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.75rem clamp(1.4rem, 3vw, 3rem) 1.5rem;
  color: #29392e;
  background: #dce2d5;
}
.research-type-cover > span { font: 650 .6875rem/1.4 var(--mono); letter-spacing: .12em; margin-bottom: 1rem; }
.research-type-cover > strong { font: 500 clamp(1.75rem, 3.6vw, 3.75rem)/1.12 var(--sans); letter-spacing: -.035em; }
.research-type-cover > small { margin-top: 1.125rem; font: 550 .625rem/1.5 var(--mono); letter-spacing: .1em; }
.research-card--director .research-type-cover { background: #e7ddd1; color: #573b32; }
.research-card--director .research-type-cover > strong { font-size: clamp(1.6rem, 3vw, 3.25rem); }
.research-card--proposal .research-type-cover { background: #dce0e6; color: #344153; }
.research-idx { background: rgba(248,244,236,.95); border-radius: 2px; color: #27241e; font-size: .75rem; top: .75rem; left: .75rem; }
.research-cover--type .research-idx { top: .75rem; right: .75rem; left: auto; background: transparent; padding: 0; }
.research-image-note { position: absolute; right: .75rem; bottom: .75rem; padding: .4rem .6rem; background: #f6f1e8; color: #29251f; font: 650 .6875rem/1.5 var(--mono); letter-spacing: .06em; }
.research-disclosure { max-width: 70ch; margin: 2rem 0 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.8; }
.detail[data-entry-kind="research"] .detail-main { max-width: 68ch; }
.detail[data-entry-kind="research"] .detail-title { overflow-wrap: break-word; word-break: normal; text-wrap: balance; }
.detail[data-entry-kind="research"] .detail-para:first-child { margin-top: 0; }
.detail[data-entry-kind="research"] .detail-award { max-width: 72ch; }
@media (max-width: 820px) {
  .research-projects { grid-template-columns: 1fr; }
  .research-card, .research-card--director { border-radius: .5rem; }
  .research-type-cover { padding: 2rem 1.5rem 1.25rem; }
  .research-type-cover > strong { font-size: clamp(1.7rem, 6vw, 3.5rem); }
  .research-card--director .research-type-cover > strong { font-size: clamp(1.6rem, 5.4vw, 3.15rem); }
  .research-type-cover > span { margin-bottom: .6rem; }
  .research-type-cover > small { margin-top: .75rem; font-size: .5625rem; }
  .research-card .research-status { min-height: 0; }
}
@media (max-width: 380px) {
  .detail[data-entry-kind="research"] .detail-title { font-size: 2.125rem; line-height: 1.12; }
  .research-cover, .research-card--director .research-cover { aspect-ratio: 4 / 3; }
  .research-type-cover > strong { font-size: 1.65rem; }
  .research-card--director .research-type-cover > strong { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .research-card.on:hover, .research-card.on:focus-visible { transform: none; }
  .research-card.on:hover .research-cover img,
  .research-card.on:focus-visible .research-cover img { transform: none; }
}

/* V21: quiet research placeholders; existing project styles remain unchanged. */
.research-card--ainpc .research-type-cover { background: #e9e0d3; color: #513b2e; }
.research-card .research-open { margin-top: auto; padding-top: 1.25rem; }
.research-body > p:not(.research-status) { margin-bottom: 1.25rem; }
.detail[data-entry-kind="research"] .research-focus {
  margin: 2rem 0 0; padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgba(81,59,46,.2); border-radius: .75rem;
  background: #f2ede3; color: #29251f;
}
.detail[data-entry-kind="research"] .research-focus > figcaption {
  margin-bottom: 1rem; font: 600 .875rem/1.6 var(--mono); letter-spacing: .02em;
}
.detail[data-entry-kind="research"] .research-focus-nodes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
  margin: 0; padding: 0; list-style: none;
}
.detail[data-entry-kind="research"] .research-focus-nodes > li {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  padding: 1.25rem .75rem; border: 1px solid rgba(81,59,46,.18); border-radius: .5rem;
  background: #faf8f1; text-align: center; font-size: 1rem; line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail[data-entry-kind="research"] .research-focus-caption {
  margin: 1rem 0 0; color: #5d584f; font-size: .875rem; line-height: 1.7;
}
@media (max-width: 560px) {
  .detail[data-entry-kind="research"] .research-focus-nodes { grid-template-columns: 1fr; }
  .detail[data-entry-kind="research"] .research-focus-nodes > li { padding: .875rem; }
}

/* AINPC only: size the reading measure using the actual paragraph font. */
.detail[data-project-id="ainpc"] .detail-cols {
  grid-template-columns: minmax(13rem, .8fr) minmax(0, 2.8fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}
.detail[data-project-id="ainpc"] .detail-aside { grid-column: 1; }
.detail[data-project-id="ainpc"] .detail-main { grid-column: 2; max-width: none; }
.detail[data-project-id="ainpc"] .detail-meta div {
  grid-template-columns: 1fr; gap: .35rem; padding-block: .9rem;
}
.detail[data-project-id="ainpc"] .detail-para {
  max-width: 72ch; font-size: clamp(1.125rem, 1.25vw, 1.3125rem);
  line-height: 1.8; margin-bottom: 1.3em; color: var(--ink);
}
.detail[data-project-id="ainpc"] .detail-para:first-of-type {
  max-width: 46ch; font-size: clamp(1.5rem, 1.85vw, 1.875rem); line-height: 1.5;
}
.detail[data-project-id="ainpc"] .ainpc-section-heading {
  margin: 2.25rem 0 .8rem; font: 600 clamp(1.25rem, 1.6vw, 1.65rem)/1.4 var(--sans);
  color: var(--ink); letter-spacing: -.015em;
}
.detail[data-project-id="ainpc"] .ainpc-overview { margin: 2rem 0 2.75rem; }
.detail[data-project-id="ainpc"] .ainpc-overview img {
  display: block; width: 100%; max-width: 65rem; height: auto; object-fit: contain;
}
.detail[data-project-id="ainpc"] .ainpc-overview figcaption {
  margin-top: .875rem; max-width: 76ch; font-size: 1rem; line-height: 1.7; color: var(--ink-soft);
}
.detail[data-project-id="ainpc"] .detail-media .media-label { font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
@media (max-width: 820px) {
  .detail[data-project-id="ainpc"] .detail-cols { display: block; }
  .detail[data-project-id="ainpc"] .detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .detail[data-project-id="ainpc"] .detail-meta div { min-width: 0; overflow-wrap: anywhere; }
  .detail[data-project-id="ainpc"] .detail-meta div:last-child { grid-column: 1 / -1; }
  .detail[data-project-id="ainpc"] .detail-para { font-size: 1.125rem; }
  .detail[data-project-id="ainpc"] .ainpc-overview figcaption { font-size: .9375rem; }
}
