/* Editorial II — publication margins and the research catalogue.
   Load after the frozen relational layers and editorial-v2.css.
   All rules belong to interiors; shared navigation and colophon stay intact. */
body:is(.research-detail, .research-index) main {
  --publication-bronze: #82704e;
}

body:is(.research-detail, .research-index) .page-hero {
  padding-block: 24px 56px;
}
body:is(.research-detail, .research-index) .breadcrumbs {
  margin-bottom: 12px;
}
body.research-detail .page-hero > .shell {
  align-items: start;
  row-gap: 28px;
}
body.research-detail .publication-heading {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
body.research-detail .page-hero .eyebrow {
  margin: 0 0 20px;
  color: var(--publication-bronze);
  letter-spacing: .08em;
}
body.research-detail .page-hero .signal-dot {
  background: currentColor;
}
body.research-detail .page-hero h1 {
  max-width: 21ch;
  margin: 0 0 28px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
body:is(.research-detail, .research-index) .page-summary {
  max-width: 60ch;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.65;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: pretty;
}

/* One compact publication passport: a small plate, then real publication facts.
   The original reading order remains title → introduction → status. */
body.research-detail .publication-passport {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
body.research-detail .publication-plate {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--ar-wisdom-paper, #eeeae0);
  margin-bottom: 18px;
}
body.research-detail .publication-art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--plate-position);
}
/* Knowledge: the shared strata. Agents: the connected cluster to the right. */
body.research-detail .publication-plate[data-topic="public-knowledge-layer"] { --plate-position: 25% 55%; }
body.research-detail .publication-plate[data-topic="evolving-agent-collective"] { --plate-position: 88% 55%; }
/* The exchange junction; the constrained passage and its bronze alternative. */
body.research-detail .publication-plate[data-topic="gnk-tokenomics"] { --plate-position: 50% 48%; }
body.research-detail .publication-plate[data-topic="ai-accelerator-map"] { --plate-position: 62% 62%; }
/* Retain the complete, flat glass threshold — no distortion or viewer. */
body.research-detail .publication-plate[data-topic="machine-wisdom"] { --plate-position: 58% 46%; }
body.research-detail .publication-plate[data-topic="method"] { --plate-position: 54% 52%; }
body.research-detail .page-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--publication-bronze);
}
body.research-detail .page-meta-grid > div {
  min-width: 0;
  padding-block: 10px 12px;
  border-bottom: 1px solid var(--line);
}
body.research-detail .page-meta-grid dt {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .07em;
}
body.research-detail .page-meta-grid dd {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
body.research-detail .page-meta-grid > div:first-child dd {
  font-weight: 500;
  color: var(--ar-interactive, #546447);
}

/* Reading hierarchy rather than alternating panels. */
body.research-detail .content-grid {
  padding-block: 46px 52px;
}
body.research-detail .content-label {
  color: var(--publication-bronze);
}
body.research-detail .prose h2 {
  max-width: 30ch;
  margin-bottom: 25px;
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1.18;
  letter-spacing: -.032em;
}
body.research-detail .prose p,
body.research-detail .prose li {
  line-height: 1.8;
}
body.research-detail .page-hero + .content-section .prose > p:first-of-type {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.75;
}
body.research-detail .prose a {
  color: var(--ar-interactive, #546447);
  font-weight: 500;
  text-decoration-color: var(--publication-bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
  text-decoration-skip-ink: auto;
  overflow-wrap: break-word;
}
body.research-detail .prose a:hover,
body.research-detail .prose a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* A typographic catalogue: existing groups, summaries and links only. */
body.research-index .page-hero h1 {
  max-width: 18ch;
  font-size: clamp(48px, 4.8vw, 70px);
  line-height: 1.07;
  letter-spacing: -.045em;
  text-wrap: balance;
}
body.research-index .page-hero .eyebrow,
body.research-index .research-group-head h2 {
  color: var(--publication-bronze);
  letter-spacing: .08em;
}
body.research-index .research-group-head {
  border-top-color: var(--publication-bronze);
  padding-top: 28px;
  margin-bottom: 30px;
}
body.research-index .research-group-head > p {
  color: var(--ink);
  line-height: 1.65;
  max-width: 59ch;
}
body.research-index .research-module h3 {
  max-width: 30ch;
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1.18;
  letter-spacing: -.032em;
  margin-bottom: 16px;
}
body.research-index .research-module p {
  max-width: 65ch;
  line-height: 1.75;
}
body.research-index .research-module .module-meta {
  gap: 9px;
}
body.research-index .research-module .state {
  color: var(--ar-interactive, #546447);
  letter-spacing: .015em;
  text-transform: none;
  font-size: 13px;
}
body.research-index .research-module .module-link {
  color: var(--ar-interactive, #546447);
  margin-top: 16px;
  text-decoration: underline;
  text-decoration-color: var(--publication-bronze);
  text-underline-offset: 5px;
}

@media (max-width: 900px) {
  body.research-detail .publication-heading {
    margin-bottom: 32px;
  }
  body.research-detail .publication-passport {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
  body.research-detail .publication-plate {
    margin-bottom: 0;
  }
  body.research-detail .page-meta-grid {
    /* Reset the frozen layer's masthead coordinates in this nested grid. */
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 22px;
  }
  body.research-detail .page-meta-grid > div:last-child {
    grid-column: 1 / -1;
    max-width: none;
  }
  body.research-detail .page-hero h1 {
    font-size: clamp(42px, 6.2vw, 56px);
    max-width: 23ch;
  }
}

@media (max-width: 640px) {
  body:is(.research-detail, .research-index) .page-hero {
    padding-block: 18px 36px;
  }
  body:is(.research-detail, .research-index) .breadcrumbs {
    margin-bottom: 22px;
  }
  body.research-detail .page-hero .eyebrow {
    margin-bottom: 16px;
  }
  body:is(.research-detail, .research-index) .page-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1.09;
    letter-spacing: -.04em;
    margin-bottom: 22px;
  }
  body:is(.research-detail, .research-index) .page-summary {
    font-size: 18px;
    line-height: 1.7;
  }
  body.research-detail .publication-heading {
    margin-bottom: 28px;
  }
  body.research-detail .publication-passport {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
  }
  body.research-detail .publication-plate {
    aspect-ratio: 1;
  }
  body.research-detail .page-meta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body.research-detail .page-meta-grid > div {
    padding-block: 8px 10px;
  }
  body.research-detail .content-grid {
    padding-block: 32px 38px;
  }
  body.research-detail .content-label {
    margin-bottom: 18px;
  }
  body.research-detail .prose h2,
  body.research-index .research-module h3 {
    font-size: 30px;
  }
  body.research-detail .page-hero + .content-section .prose > p:first-of-type {
    font-size: 17px;
  }
  body.research-index .research-group-head h2 {
    margin-bottom: 16px;
  }
}
