/* Layout for new content. Shared colours, type and components come from editorial.css. */
:root .hero-actions { gap: 12px; flex-wrap: wrap; }
:root .hero-actions .btn { min-height: 44px; }
:root .collaborate-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
:root .collaborate-band p:not(.label) { margin-top: 16px; color: var(--body); }
:root .collaborate-band .btn { flex-shrink: 0; }
:root .profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
:root .profile-actions .btn { min-height: 44px; font-size: 14px; text-decoration: none; }
:root .signature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
:root .signature { border: 1px solid var(--line); padding: 18px; border-radius: 4px; background: var(--surface); text-decoration: none; }
:root .signature h3 { font-family: var(--f-display); font-size: 20px; line-height: 1.4; margin: 0 0 10px; color: var(--ink); }
:root .signature p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--body); }
:root .signature:hover { border-color: var(--accent); }
:root .leadership-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
:root .leadership-case { padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
:root .leadership-case h3 { font-size: 24px; line-height: 1.25; margin: 0 0 18px; }
:root .leadership-case p { font-size: 16px; margin: 14px 0; }
:root .leadership-case strong { color: var(--accent); font-size: 14px; }
:root .leadership-case .mod-link { margin-top: 8px; font-size: 15px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
:root .kim .kall summary { min-height: 44px; line-height: 1.5; gap: 14px; }
:root .kim .kall { scroll-margin-top: 100px; }
:root .collaboration-card { display: flex; flex-direction: column; }
:root .collaboration-card figure { margin: 0 0 24px; }
:root .collaboration-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
:root .collaboration-card figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
:root .collaboration-card h2 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; margin-bottom: 16px; }
:root .collaboration-subtitle { color: var(--accent); font-weight: 600; }
:root .collaboration-card p:last-child { margin-top: auto; padding-top: 22px; }
:root .collaboration-card .mod-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
:root .collaboration-heading { margin: 56px 0 28px; }
:root .collaboration-contact { margin-top: 44px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
:root .collaboration-contact h2 { font-size: 30px; margin-bottom: 18px; }
:root .collaboration-contact > p { max-width: 78ch; }
:root .collaboration-contact .hub-note { margin-bottom: 0; }
:root .research-references { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  :root .signature-grid { grid-template-columns: 1fr; }
  :root .signature h3 { margin-bottom: 6px; }
  :root .leadership-cases { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root .collaborate-band .wrap { flex-direction: column; align-items: flex-start; }
  :root .collaboration-routes { grid-template-columns: 1fr; }
  :root .collaboration-card img { max-height: 300px; object-fit: contain; background: var(--bg-2); }
}
@media (max-width: 600px) {
  :root .leadership-case { padding: 20px; }
  :root .profile-actions { flex-direction: column; align-items: flex-start; }
  :root .profile-actions .btn { max-width: 100%; white-space: normal; }
}
/* Keep primary actions legible inside the prose link colour rules. */
:root .prose .profile-actions a.btn-primary,
:root .prose .collaboration-contact a.btn-primary { color: var(--on-accent); }
:root .cv-source-link { font-size: 15px; }


/* Keep bilingual names intact when profile headings wrap on narrow screens. */
:root .h1 .zh-name { display: inline-block; white-space: nowrap; }

/* A real field photograph remains visible when WebGL cannot initialize. */
:root #hero-canvas:not(.on) + .hero-fallback {
  background: var(--figure) url("../img/research/muography.webp") center / contain no-repeat;
}
:root #hero-canvas:not(.on) + .hero-fallback::after {
  content: "Muon detector testing during a tunnel survey";
}
:root[data-lang="zh"] #hero-canvas:not(.on) + .hero-fallback::after {
  content: "隧道勘测中的缪子探测器测试";
}

/* Let programme cards shrink below their desktop minimum on small phones. */
:root .hub-progs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

/* Keep the original panel and active-link treatment with room around the contents. */
@media (min-width: 861px) {
  :root .side :is(.toc, .chap) { padding: 16px 18px; }
}
