/* Concrete research tasks beside faculty, followed by aligned research columns. */
body.design-integrated { --design-review-height: 0px; }
body.design-integrated:has(.design-review-bar) { --design-review-height: 48px; }
.academic-home {
  display: grid; --home-columns: minmax(0,1.8fr) minmax(400px,1fr); grid-template-columns: var(--home-columns);
  align-items: stretch; gap: 32px 28px;
  width: min(var(--page-max),calc(100% - 2 * var(--page-gutter))); margin: 28px auto 40px;
}
.academic-home > .container { width: 100%; min-width: 0; margin: 0; }
.academic-home > section:not(.group-intro):not(.faculty-section),
.academic-home > .home-contact { grid-column: 1 / -1; }
.academic-home .group-intro {
  display: flex; align-items: stretch; min-width: 0; padding: 48px 30px;
  container-name: lab-intro; container-type: inline-size;
  border: 1px solid #dce4e6; border-radius: 12px;
  background: linear-gradient(135deg,#fbfcfc,#f1f5f5);
}
.academic-home .group-intro::before { content: none; }
.intro-copy { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.academic-home .group-intro h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .06em .24em; margin: 0 0 24px; color: var(--ink); font-size: clamp(34px,2.8vw,44px); font-weight: 700; line-height: 1.3; letter-spacing: .015em; }
.academic-home .group-intro h1 .theme-word { display: inline-block; white-space: nowrap; }
.academic-home .group-intro h1 .theme-tail { display: inline-flex; align-items: baseline; gap: .24em; white-space: nowrap; color: var(--ink); }
.academic-home .group-intro h1 .theme-cross { position: relative; top: -.06em; color: #007a49; font-size: .7em; font-weight: 400; letter-spacing: 0; }
.academic-home .faculty-section { display: flex; flex-direction: column; padding: 0; min-width: 0; }
.compact-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 57px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.compact-heading h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.45; }
.compact-heading h2 span { margin-left: 10px; color: var(--muted); font: 14px/1.6 var(--sans); }
.compact-heading h2 span span { margin-left: 0; }
.faculty-section .compact-heading { margin-bottom: 16px; }
.academic-home .faculty-strip { display: grid; flex: 1; grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(3,minmax(min-content,1fr)); gap: 10px; }
.academic-home .faculty-entry { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 3px 18px #20384003; }
.academic-home .faculty-portrait { width: 100px; height: 132px; border-radius: 5px; overflow: hidden; background: #ebeeef; }
.academic-home .faculty-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.academic-home .faculty-summary { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.academic-home .faculty-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; }
.academic-home .faculty-heading .faculty-role { margin: 0; }
.academic-home .faculty-summary h3 { margin: 0; font-size: 24px; line-height: 1.4; color: var(--ink); }
.academic-home .faculty-role { margin: 0 0 6px; min-height: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.academic-home .faculty-interests { margin: 0 0 6px; font-size: 16px; color: var(--text); line-height: 1.7; }
.faculty-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--accent); }
.faculty-links a { display: inline-flex; align-items: center; min-height: 28px; line-height: 24px; text-underline-offset: 4px; }
.faculty-links a:hover,.faculty-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.faculty-email { display: inline-block; max-width: 100%; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.research-task-overview { display: grid; flex: 1; grid-template-rows: repeat(2,minmax(min-content,1fr)); gap: 20px; }
.research-task { display: grid; grid-template-columns: clamp(248px,28cqi,280px) minmax(0,1fr); gap: 20px; align-items: center; }
.research-task + .research-task { border-top: 1px solid #dae0e1; padding-top: 20px; }
.research-task-illustration { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; min-width: 0; }
.research-task-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.research-task-copy { min-width: 0; }
.research-task-copy h2 { margin: 0 0 8px; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.5; }
.research-task-copy .research-task-goal { margin: 0 0 12px; color: var(--text); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.research-task-list { margin: 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.research-task-list > div + div { margin-top: 7px; }
.research-task-list dt,.research-task-list dd { display: inline; margin: 0; }
.research-task-list dt { color: var(--text); font-weight: 600; }
.research-task-list dt::after { content: "："; }
.perception-task h2 { color: var(--ink); }
.perception-task .research-task-list dt { color: var(--text); }
.home-news { min-width: 0; padding: 0; }
.home-news .compact-heading { margin-bottom: 16px; }
.news-window { overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; scrollbar-width: thin; scrollbar-color: #a6b4b7 #f0f3f3; }
.news-list { padding: 1px 21px; }
.news-entry { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: baseline; gap: 16px; min-height: 56px; padding: 12px 0; }
.news-entry[hidden],.news-controls[hidden] { display: none; }
.news-entry + .news-entry { border-top: 1px solid #e8eced; }
.news-date { color: var(--muted); font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-controls { display: flex; gap: 8px; margin-block: 0; }
.news-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d0d9db; border-radius: 6px; color: var(--text); background: white; cursor: pointer; font-size: 19px; }
.news-controls button:hover:not(:disabled) { background: #f1f4f4; border-color: #4c5f62; }
.news-controls button:disabled { opacity: .35; cursor: default; }
.news-celebration { display: inline-block; margin-right: 3px; font-size: 16px; }
.news-copy { margin: 0; min-width: 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.news-copy a { color: inherit; text-decoration-color: #b9c6c8; text-underline-offset: 4px; }
.news-copy a:hover { color: var(--accent); text-decoration-line: underline; }
.news-arrow { color: var(--accent); white-space: nowrap; }
.academic-home .featured-section,.academic-home .recent-publications { min-width: 0; padding: 0; }
.research-desk { grid-column: 1 / -1; display: grid; grid-template-columns: var(--home-columns); gap: 28px; align-items: stretch; min-width: 0; }
.research-desk > .container { width: 100%; margin: 0; min-width: 0; }
.academic-home .featured-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-auto-rows: max-content; align-content: start; gap: 16px; }
.academic-home .featured-work { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 18px #20384003; }
.academic-home .work-figure { display: flex; align-items: center; margin: 0; padding: 12px; border: 0; border-right: 1px solid #e8eced; background: #f1f5f5; }
.academic-home .work-figure > a { display: block; width: 100%; height: auto; border-radius: 4px; overflow: hidden; background: white; }
.academic-home .work-figure img { width: 100%; height: auto; max-height: 320px; max-width: 100%; object-fit: contain; object-position: center; }
.academic-home .work-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px; }
.academic-home .work-venue { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.academic-home .work-content h3 { margin: 0 0 12px; color: var(--ink); font-size: 22px; line-height: 1.45; font-weight: 600; }
.academic-home .work-summary { margin: 0 0 16px; color: var(--text); font-size: 16px; line-height: 1.75; }
.academic-home .work-citation { margin: 0 0 16px; padding-top: 0; border-top: 0; }
.academic-home .work-paper-title { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.academic-home .work-authors { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.academic-home .work-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.academic-home .work-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 65px; min-height: 44px; padding: 5px 12px; border: 1px solid #c3ccce; border-radius: 6px; color: var(--accent); font-size: 15px; }
.academic-home .work-links .code-link { color: var(--accent); border-color: #cad3d5; }
.academic-home .work-links a:hover { background: #f1f4f4; border-color: #4c5f62; }
.academic-home .recent-publications { position: static; align-self: stretch; display: flex; flex-direction: column; height: auto; min-height: 0; }
.academic-home .recent-publications .compact-heading { flex: 0 0 auto; }
.academic-home .recent-scroll { flex: 1 1 0; height: 0; min-height: 0; max-height: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior: auto; padding: 0 12px 0 0; scrollbar-width: thin; scrollbar-color: #a6b4b7 #f0f3f3; }
.academic-home .recent-grid { display: block; }
.academic-home .recent-paper { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.academic-home .recent-paper[hidden],.recent-browse-controls[hidden] { display: none; }
.academic-home .recent-paper:first-child { padding-top: 4px; }
.academic-home .recent-paper .publication-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 14px; }
.academic-home .recent-paper .publication-meta time { font-size: 15px; color: var(--text); }
.academic-home .recent-paper h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.academic-home .recent-paper .authors { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.academic-home .recent-paper .publication-links { display: flex; align-self: start; flex-direction: row; gap: 20px; margin-top: 0; padding-top: 3px; font-size: 15px; color: var(--accent); }
.academic-home .recent-paper .publication-links a { min-height: 36px; font-size: 15px; text-underline-offset: 4px; }
.recent-browse-controls { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.recent-browse-controls > div { display: flex; gap: 8px; }
.recent-browse-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d0d9db; border-radius: 6px; color: var(--text); background: white; cursor: pointer; font-size: 19px; }
.recent-browse-controls button:not(:disabled):hover { background: #f1f4f4; border-color: #4c5f62; }
.recent-browse-controls button:disabled { opacity: .35; cursor: default; }
.archive-entry { display: flex; justify-content: center; flex: 0 0 auto; padding-top: 16px; }
.archive-entry .button { width: 100%; font-size: 15px; }
.home-contact { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 22px; padding: 21px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.home-contact p { margin: 0; color: var(--muted); }
.home-contact a { color: var(--accent); }

@media(max-width:1200px) {
  .intro-copy { display: block; }
  .research-task-overview { flex: initial; grid-template-rows: none; }
  .academic-home .group-intro { align-items: center; }
  .academic-home { --home-columns: minmax(0,1.45fr) minmax(370px,1fr); grid-template-columns: var(--home-columns); gap: 30px 24px; width: calc(100% - 48px); }
  .academic-home .group-intro { padding: 25px; }
  .research-task-list { font-size: 16px; }
  .academic-home .faculty-entry { grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 15px; }
  .academic-home .faculty-portrait { width: 92px; height: 122px; }
}
@media(max-width:1100px) {
  .research-desk { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .academic-home .recent-publications { position: static; height: auto; min-height: 0; }
  .academic-home .recent-scroll { flex: none; height: auto; overflow: visible; padding: 0; overscroll-behavior: auto; }
  .academic-home .recent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
  .academic-home .recent-paper:first-child { padding-top: 17px; }
  .archive-entry .button { width: auto; }
}
@media(max-width:980px) {
  .academic-home { grid-template-columns: minmax(0,1fr); width: calc(100% - 40px); gap: 28px; margin-top: 22px; }
  .academic-home .faculty-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .academic-home .faculty-entry { display: block; }
  .academic-home .faculty-portrait { float: left; margin: 0 15px 10px 0; }
  .academic-home .faculty-summary h3 { font-size: 23px; }
  .academic-home .faculty-strip { grid-template-columns: minmax(0,1fr); }
  .academic-home .faculty-entry { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 19px; }
  .academic-home .faculty-portrait { float: none; width: 104px; height: 137px; margin: 0; }
  .academic-home .work-content { padding: 19px 20px 22px; }
  .academic-home .work-figure > a { height: auto; }
}
@media(max-width:640px) {
  .academic-home { width: calc(100% - 28px); margin-top: 16px; gap: 28px; }
  .academic-home .group-intro { padding: 24px 20px; border-radius: 9px; }
  .research-task-overview { gap: 21px; }
  .research-task-copy h2 { font-size: 20px; }
  .research-task-copy .research-task-goal { font-size: 16px; }
  .research-task-list { font-size: 16px; }
  .research-task-list > div + div { margin-top: 9px; }
  .academic-home .group-intro h1 { font-size: clamp(27px,6.5vw,36px); }
  .news-list { padding-inline: 15px; }
  .news-entry { grid-template-columns: minmax(0,1fr); gap: 3px; padding-block: 12px; }
  .news-date { font-size: 14px; }
  .news-copy { grid-column: 1 / -1; font-size: 16px; line-height: 1.75; }
  .news-controls button { width: 44px; height: 44px; }
  .academic-home .faculty-entry { grid-template-columns: 88px minmax(0,1fr); padding: 15px; gap: 14px; }
  .academic-home .faculty-portrait { width: 88px; height: 116px; }
  .academic-home .faculty-summary h3 { font-size: 23px; }
  .academic-home .faculty-interests { font-size: 16px; }
  .academic-home .faculty-role { font-size: 14px; }
  .academic-home .faculty-email { font-size: 15px; }
  .faculty-links { font-size: 15px; }
  .faculty-links a { min-height: 36px; }
  .compact-heading h2 { font-size: 20px; }
  .compact-heading h2 span { font-size: 13px; margin-left: 7px; }
  .academic-home .featured-grid,.academic-home .recent-grid { grid-template-columns: minmax(0,1fr); }
  .academic-home .featured-work { display: flex; flex-direction: column; }
  .academic-home .work-figure { padding: 13px; border-right: 0; border-bottom: 1px solid #e8eced; }
  .academic-home .work-figure > a { height: 180px; }
  .academic-home .work-figure img { height: 100%; max-height: 100%; }
  .academic-home .work-content { padding: 20px; }
  .academic-home .work-content h3 { font-size: 21px; }
  .academic-home .work-summary { font-size: 16px; }
  .home-contact { display: block; }
  .home-contact a { display: inline-block; margin-top: 10px; }
}

@media(max-width:480px) {
  .academic-home .recent-paper .publication-links a { min-height: 44px; }
}

/* Follow the actual intro-column width, including narrow desktop columns. */
@container lab-intro (max-width:619px) {
  .research-task { grid-template-columns: 232px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; gap: 8px 16px; align-items: start; }
  .research-task-copy { display: contents; }
  .research-task-illustration { grid-column: 1; grid-row: 1 / span 2; }
  .research-task-copy h2 { grid-column: 2; grid-row: 1; margin: 0; }
  .research-task-copy .research-task-goal { grid-column: 2; grid-row: 2; margin: 0; text-wrap: pretty; }
  .research-task-list { grid-column: 1 / -1; grid-row: 3; margin-top: 7px; }
}
@container lab-intro (max-width:459px) {
  .research-task { grid-template-columns: minmax(0,1fr); grid-template-rows: none; gap: 10px; }
  .research-task-copy h2 { grid-column: 1; grid-row: 1; }
  .research-task-copy .research-task-goal { grid-column: 1; grid-row: 2; text-wrap: pretty; }
  .research-task-illustration { grid-column: 1; grid-row: 3; width: min(100%,300px); justify-self: center; margin: 4px 0 2px; }
  .research-task-list { grid-column: 1; grid-row: 4; }
}

/* One title rail and one 44px control size for all research sections. */
.academic-home .compact-heading > h2 { flex: 0 1 auto; }
.academic-home .recent-browse-controls { margin: 0; gap: 12px; font-size: 14px; }
.academic-home .recent-browse-controls > div { gap: 8px; }
.academic-home .faculty-summary > .faculty-links { margin-top: auto; padding-top: 0; }
.academic-home .faculty-summary > .faculty-email { align-self: flex-start; }
@media(max-width:640px) {
  .academic-home .work-content { padding: 20px; }
  .compact-heading { gap: 12px; }
  .academic-home .recent-browse-controls { gap: 8px; }
}

/* Chinese section names and English subtitles share the first text baseline. */
.compact-heading h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.compact-heading h2 span { margin-left: 0; }
.academic-home .recent-paper .publication-meta { font-family: var(--meta-font); line-height: 24px; }
.academic-home .recent-paper .publication-meta > span { margin-top: 0; }
.academic-home .recent-paper .publication-meta .paper-status { margin: 0; }

/* A single research overview moves after faculty only on narrow screens. */
.intro-mobile-overview[hidden],.home-research-details[hidden] { display: none; }
.intro-mobile-overview { display: grid; gap: 12px; }
.intro-mobile-overview p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.intro-mobile-overview strong { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 600; }
.intro-mobile-overview span { display: block; text-wrap: pretty; }
.intro-mobile-overview .intro-work-link { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-height: 44px; color: var(--accent); font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.intro-work-link:hover { text-decoration: underline; }
.intro-mobile-overview .intro-work-link span { font-weight: 400; }
.academic-home .home-research-details { padding: 0; min-width: 0; container-name: lab-intro; container-type: inline-size; }
@media(max-width:980px) {
  .home-research-details .research-task-overview { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #f1f5f5; }
}
@media(max-width:640px) {
  .home-research-details .research-task-overview { padding: 18px; }
}

/* Stacked faculty cards follow their own content instead of equal-height desktop rows. */
@media(max-width:980px) {
  .academic-home .faculty-strip { grid-template-rows:none; grid-auto-rows:auto; }
  .academic-home .faculty-summary > .faculty-links { margin-top:0; }
}
