/* Shared identity and reading styles across the homepage, archive and team. */
:root { --page-max: 1760px; --page-gutter: 32px; --control-height: 44px; --control-radius: 6px; --meta-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif; }
body:has(.publication-archive),body:has(.team-page) { --page-max: 1440px; }
body:has(.member-page) { --page-max: 1220px; }
body:has(.research-detail) { --page-max: 1120px; }
body { --ink: #203840; --text: #43545a; --muted: #616f72; --accent: #007a49; --line: #dce4e6; --cream: #f7f9fa; --design-review-height: 0px; color: var(--ink); background: var(--cream); }
html { scroll-padding-top: 108px; }
.site-header,body[class*="design-"] .site-header { top: var(--design-review-height); border-top: 0; border-bottom: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(14px); }
.header-inner { width: min(var(--page-max),calc(100% - 2 * var(--page-gutter))); min-height: 104px; gap: 28px; }
.brand { min-width: 0; gap: 18px; }
.brand .brand-mcsip { width: 200px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.brand .brand-wordmark { display: grid; gap: 2px; min-width: 0; padding-left: 18px; border-left: 1px solid #dce1e2; }
.brand .brand-university { display: block; color: var(--muted); font: 400 13px/1.5 var(--sans); letter-spacing: .1em; }
.brand .brand-title { font-size: 19px; color: var(--ink); line-height: 1.5; font-weight: 600; letter-spacing: .015em; }
.brand .brand-english { display: block; max-width: none; color: var(--muted); font: 400 14px/1.55 var(--sans); letter-spacing: .01em; }
.site-nav { position: static; display: flex; align-self: stretch; align-items: stretch; gap: 32px; flex-shrink: 0; padding: 0; border: 0; box-shadow: none; font-size: 16px; }
.site-nav a { display: flex; align-items: center; padding-block: 0; border-bottom: 3px solid transparent; }
.site-nav a[aria-current="page"],.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; }
.text-link,.publication-links { color: var(--accent); }
.publication-archive { width: min(var(--page-max),calc(100% - 2 * var(--page-gutter))); padding-top: 32px; }
.archive-heading { align-items: end; margin-bottom: 24px; }
.archive-heading h1 { font-size: 32px; line-height: 1.4; letter-spacing: .01em; }
.archive-heading > p { margin-bottom: 4px; font-size: 15px; }
.publication-search { gap: 16px; padding: 20px; border-radius: 10px; background: #f0f4f4; }
.publication-search > div { min-width: 0; }
.publication-search label { margin-bottom: 8px; line-height: 24px; }
.publication-search input,.publication-search select,.publication-search .button {
  height: var(--control-height); min-height: var(--control-height); margin: 0;
  padding: 9px 12px; border-radius: var(--control-radius); font-size: 16px; line-height: 24px;
}
.publication-search input,.publication-search select { border-color: #c5ced0; }
.publication-search select {
  appearance: none; padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2368777c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.publication-search .button { padding-inline: 20px; gap: 12px; }
.publication-search input:focus,.publication-search select:focus { border-color: var(--accent); }
.search-results-heading { margin: 20px 0 12px; font-size: 15px; }
.publication-list { border-top-color: #d1d8d9; }
.publication-archive .publication-row { padding-block: 20px; align-items: start; }
.publication-archive .publication-meta time { font: 600 18px/1.65 var(--sans); font-variant-numeric: tabular-nums; }
.publication-archive .publication-links { gap: 4px; }
.publication-archive .publication-links a { min-height: 30px; font-size: 15px; line-height: 1.8; }
.publication-archive .publication-links .code-link { color: var(--accent); }
.publication-archive .publication-body h3 { margin-bottom: 8px; font-weight: 600; }
.publication-archive .paper-abstract { margin-top: 8px; }
.publication-archive .paper-abstract > summary { line-height: 26px; padding-block: 4px; }
.publication-archive .paper-abstract > p { border-radius: 6px; padding: 14px 16px; background: #f0f4f4; }
.publication-body h3 { font-size: 18px; line-height: 1.65; }
.publication-body .authors { font-size: 15px; line-height: 1.6; color: var(--muted); }
.publication-meta { font: 400 14px/24px var(--meta-font); }
.publication-links { font-size: 15px; }
.paper-abstract > summary { font-size: 15px; color: var(--accent); min-height: 36px; padding-top: 5px; }
.paper-abstract > p { max-width: 52em; font-size: 16px; color: var(--text); line-height: 1.8; }
.publication-search label { font-size: 15px; }
.publication-search input,.publication-search select,.publication-search button { font-size: 16px; }
.member-page { width: min(1220px,calc(100% - 64px)); }
.profile-copy > p { max-width: 52em; font-size: 17px; line-height: 1.8; }
.profile-links { font-size: 16px; }
.profile-honors h3 { font-size: 17px; }
.profile-honors .honors-source { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.research-detail { width: min(1120px,calc(100% - 64px)); margin-block: 36px 48px; }
.research-detail-venue { margin-bottom: 13px; color: var(--muted); font-size: 16px; }
.research-detail h1 { max-width: 1050px; margin: 0 0 18px; color: var(--ink); font-size: clamp(25px,2.5vw,37px); line-height: 1.4; }
.research-detail-authors { margin: 0 0 6px; color: var(--muted); font-size: 18px; }
.research-detail-affiliation { margin: 0 0 23px; color: var(--muted); font-size: 16px; }
.research-detail-contribution { padding: 18px 23px; border-left: 3px solid #4d6063; background: #eff2f2; color: var(--text); font-size: 18px; line-height: 1.9; }
.research-detail-figure { margin: 28px 0; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.research-detail-figure img { width: 100%; height: auto; }
.research-detail-figure figcaption { padding-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.research-detail-figure figcaption a { color: var(--accent); text-decoration: underline; }
.research-detail section { margin-top: 28px; }
.research-detail section h2 { margin-bottom: 10px; font-size: 22px; }
.research-detail section p { font-size: 17px; line-height: 1.85; color: var(--text); }
.research-detail-reference { margin-block: 28px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.research-detail-reference p { margin-block: 6px; }
.paper-status,
.publication-meta .paper-status,
.work-venue .paper-status,
.research-detail-venue .paper-status {
  display: inline-block; max-width: 100%; margin: 0; padding: 1px 7px;
  border: 1px solid #d2dadc; border-radius: 4px;
  color: var(--text); background: #ebefef;
  font: 500 14px/24px var(--meta-font); white-space: nowrap; vertical-align: baseline;
}
.team-page { width: min(1440px,calc(100% - 64px)); margin: 34px auto 44px; }
.team-page > .container { width: 100%; margin-inline: 0; }
.team-page-heading { margin-bottom: 28px; display: flex; gap: 18px; align-items: baseline; }
.team-page-heading h1 { margin: 0; font-size: 32px; font-weight: 600; }
.team-page-heading > p { margin: 0; color: var(--muted); font-size: 16px; }
.team-page .faculty-directory-section { padding: 0; }
.faculty-directory { display: grid; gap: 18px; }
.faculty-directory-card { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 27px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.faculty-directory-portrait { width: 128px; height: 168px; overflow: hidden; border-radius: 6px; background: #e8edee; }
.faculty-directory-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.faculty-directory-copy { min-width: 0; }
.faculty-directory-copy h3 { margin: 0 0 5px; font-size: 27px; line-height: 1.4; }
.faculty-directory-copy .faculty-role { margin: 0 0 10px; color: var(--muted); font-size: 16px; min-height: 0; }
.faculty-directory-bio { max-width: 50em; margin: 0 0 12px; color: var(--text); font-size: 17px; line-height: 1.8; }
.faculty-directory-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 15px; list-style: none; }
.faculty-directory-topics li { padding: 3px 10px; background: #f1f4f4; color: var(--muted); border-radius: 4px; font-size: 14px; }
.faculty-directory-copy .faculty-links,.faculty-directory-copy .faculty-email { font-size: 15px; }
.team-page .student-section { padding: 0; margin-top: 35px; }
.team-page .student-degree-group { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.student-degree-group h3 { margin: 0; font-size: 20px; }
.student-degree-group h3 span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.team-page .student-degree-group > h3 { display: block; white-space: nowrap; }
.team-page .student-roster { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 26px; }
.student-roster-entry { display: flex; flex-direction: column; min-width: 0; }
.student-roster-entry strong { font-size: 17px; font-weight: 600; }
.student-roster-entry > span { font-size: 15px; color: var(--muted); }
.team-page .participation-section { padding: 0; margin-top: 35px; }
.team-page .contact-copy { max-width: none; text-wrap: pretty; }
.contact-copy p { color: var(--text); font-size: 17px; line-height: 1.8; }
.section-caption { font-size: 14px; color: var(--muted); }
footer { padding-block: 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { width: min(var(--page-max),calc(100% - 2 * var(--page-gutter))); padding-block: 24px; gap: 12px 30px; font-size: 14px; }
.footer-inner p { color: var(--muted); }
@media(max-width:1200px) { :root { --page-gutter: 24px; } }
@media(max-width:980px) {
  :root { --page-gutter: 20px; }
  .header-inner { width: calc(100% - 40px); gap: 18px; }
  .brand .brand-title { font-size: 19px; }
  .site-nav { gap: 22px; font-size: 15px; }
  .team-page { width: calc(100% - 40px); }
  .team-page .student-degree-group { grid-template-columns: 125px 1fr; gap: 20px; }
  .team-page .student-roster { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:860px) {
  html { scroll-padding-top: 148px; }
  .header-inner { position: relative; width: calc(100% - 28px); min-height: 120px; gap: 12px; }
  .brand { display: grid; grid-template-columns: 140px minmax(0,1fr); flex: 1 1 auto; width: 100%; gap: 2px 12px; padding: 10px 0; }
  .brand .brand-mcsip { grid-column: 1; grid-row: 1; width: 140px; height: 28px; }
  .brand .brand-wordmark { display: contents; padding: 0; border: 0; }
  .brand .brand-title { grid-column: 1 / -1; grid-row: 2; font-size: 17px; letter-spacing: 0; line-height: 1.5; text-wrap: pretty; }
  .brand .brand-university { grid-column: 2; grid-row: 1; margin-right: 52px; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
  .brand .brand-english { grid-column: 1 / -1; grid-row: 3; font-size: 14px; line-height: 1.6; letter-spacing: 0; white-space: normal; text-wrap: pretty; }
  .nav-toggle { position: absolute; top: 12px; right: 0; display: grid; flex-shrink: 0; place-content: center; gap: 6px; width: 40px; min-width: 40px; min-height: 44px; padding: 8px; color: var(--ink); background: none; border: 0; }
  .nav-toggle span { display: block; width: 23px; height: 2px; background: currentColor; }
  .site-nav { position: absolute; inset: 100% -14px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 12px 18px #2038400b; font-size: 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid #e6eaeb; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); font-weight: 600; }
}
@media(max-width:640px) { :root { --page-gutter: 14px; } }
@media(max-width:760px) {
  .publication-archive,.member-page { width: calc(100% - 32px); }
  .research-detail { width: calc(100% - 32px); margin-top: 25px; }
  .research-detail-figure { padding: 10px; }
  .research-detail-authors { font-size: 16px; }
  .research-detail-contribution { padding: 15px 18px; font-size: 17px; }
  .publication-body h3 { font-size: 17px; }
  .team-page { width: calc(100% - 28px); margin-top: 24px; }
  .team-page-heading { display: block; margin-bottom: 24px; }
  .team-page-heading h1 { font-size: 28px; }
  .team-page-heading > p { margin-top: 5px; font-size: 15px; }
  .faculty-directory-card { grid-template-columns: 95px minmax(0,1fr); gap: 17px; padding: 18px; }
  .faculty-directory-portrait { width: 95px; height: 125px; }
  .faculty-directory-copy h3 { font-size: 25px; }
  .faculty-directory-bio { font-size: 16px; line-height: 1.85; }
  .faculty-directory-copy .faculty-role { font-size: 14px; }
  .faculty-directory-topics { gap: 6px; }
  .faculty-directory-topics li { padding: 2px 7px; font-size: 13px; }
  .faculty-directory-copy .faculty-links,.faculty-directory-copy .faculty-email { font-size: 14px; }
  .team-page .student-degree-group { grid-template-columns: 1fr; gap: 17px; }
  .team-page .student-roster { gap: 17px; }
  .footer-inner { width: calc(100% - 32px); flex-wrap: wrap; font-size: 13px; }
}
@media(max-width:360px) {
  .brand { grid-template-columns: 128px minmax(0,1fr); gap: 2px 10px; }
  .brand .brand-mcsip { width: 128px; height: 25.6px; }
  .brand .brand-title { font-size: 17px; }
  .brand .brand-university { font-size: 13px; }
  .header-inner { gap: 6px; }
  .faculty-directory-card { grid-template-columns: 80px minmax(0,1fr); padding: 14px; gap: 13px; }
  .faculty-directory-portrait { width: 80px; height: 106px; }
}

/* Keep the header, content and footer on the same page-specific rails. */
.header-inner,.footer-inner,.publication-archive,.team-page,.member-page,.research-detail {
  width: min(var(--page-max),calc(100% - 2 * var(--page-gutter)));
}
@media(max-width:860px) {
  .site-nav { left: calc(-1 * var(--page-gutter)); right: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
}
@media(max-width:600px) {
  .publication-search { padding: 16px; gap: 16px 12px; }
  .publication-archive .publication-links a { min-height: 44px; }
  .publication-archive .publication-row { gap: 8px; }
}

/* Match the text baseline, rather than centering a badge against a font x-height. */
.academic-home .work-venue,.work-venue,.research-detail-venue {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  font-family: var(--meta-font); font-size: 14px; line-height: 24px;
}
.venue-citation { min-width: 0; }
.publication-meta > .paper-status { margin-top: 6px; }
.publication-archive .publication-row,.member-page .publication-row {
  grid-template-columns: 180px minmax(0,1fr) 96px; gap: 24px; align-items: first baseline;
}
.member-page .publication-meta time { font: 600 18px/1.65 var(--sans); }
.member-page .publication-links a { font-size: 15px; }
.student-degree-group h3 { line-height: 1.5; }
.student-roster-entry strong { line-height: 1.5; }
.student-roster-entry > span { line-height: 1.6; }
@media(max-width:900px) {
  .publication-archive .publication-row,.member-page .publication-row { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .publication-archive .publication-meta,.member-page .publication-meta {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; grid-column: 1 / -1;
  }
  .publication-archive .publication-meta > span,.member-page .publication-meta > span { margin-top: 0; }
  .publication-archive .publication-links,.member-page .publication-links { grid-column: 1 / -1; justify-self: start; flex-direction: row; gap: 20px; }
  .publication-archive .publication-links a,.member-page .publication-links a { min-height: 44px; }
}
@media(max-width:760px) {
  .publication-search { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .publication-search .search-field,.publication-search .button { grid-column: 1 / -1; }
}

.publication-links .code-link { color: var(--accent); }

/* Normalize the displayed portrait crop while retaining every source image. */
.portrait-frame[data-faculty] { --portrait-position: 50% 0%; --portrait-scale: 1; }
.portrait-frame[data-faculty="王春桃"] { --portrait-position: 50% 40%; }
.portrait-frame[data-faculty="边山"] { --portrait-scale: 1.04; }
.portrait-frame[data-faculty="汤毅超"] { --portrait-scale: 1.015; }
.portrait-frame[data-faculty] > img {
  object-position: var(--portrait-position); transform: scale(var(--portrait-scale)); transform-origin: 50% 0%;
}

/* Fill the available rail with the actual number of selected papers. */
.profile-paper-shortcuts { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
@media(max-width:640px) { .profile-paper-shortcuts { grid-template-columns: minmax(0,1fr); } }

/* Wide team pages use three equal cards; the homepage faculty rail is unchanged. */
@media(min-width:1200px) {
  .team-page .faculty-directory { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
  .team-page .faculty-directory-card { grid-template-columns: 112px minmax(0,1fr); grid-template-rows: auto 1fr auto auto; gap: 16px; padding: 24px; }
  .team-page .faculty-directory-portrait { grid-column: 1; grid-row: 1; width: 112px; height: 147px; }
  .team-page .faculty-directory-copy { display: contents; }
  .team-page .faculty-directory-identity { grid-column: 2; grid-row: 1; align-self: start; padding-top: 5px; }
  .team-page .faculty-directory-identity h3 { font-size: 26px; }
  .team-page .faculty-directory-identity .faculty-role { margin-bottom: 0; font-size: 15px; line-height: 1.7; }
  .team-page .faculty-directory-bio { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 16px; line-height: 1.8; }
  .team-page .faculty-directory-copy .faculty-links { grid-column: 1 / -1; grid-row: 3; align-self: end; gap: 4px 16px; }
  .team-page .faculty-directory-copy .faculty-email { grid-column: 1 / -1; grid-row: 4; margin: -10px 0 0; align-self: start; }
}
@media(min-width:1440px) {
  .team-page .faculty-directory-card { grid-template-columns: 128px minmax(0,1fr); }
  .team-page .faculty-directory-portrait { width: 128px; height: 168px; }
}

/* The paper image viewer keeps original links usable without JavaScript. */
.paper-image-link { cursor: zoom-in; }
.paper-image-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 6px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 14px; line-height: 24px; cursor: pointer; }
.paper-image-open:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.paper-image-tools { display: flex; justify-content: flex-end; margin-top: 4px; }
.paper-image-dialog { width: min(1320px,calc(100vw - 48px)); height: min(900px,calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid #c5ced0; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #20282a40; overflow: hidden; }
.paper-image-dialog[open] { display: flex; flex-direction: column; }
.paper-image-dialog::backdrop { background: #212a2cc9; backdrop-filter: blur(3px); }
.paper-image-toolbar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.paper-image-toolbar h2 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; }
.paper-image-actions { display: flex; align-items: center; gap: 10px; }
.paper-image-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border: 1px solid #c5ced0; border-radius: 6px; color: var(--text); background: white; font-size: 15px; cursor: pointer; }
.paper-image-actions button:hover:not(:disabled) { border-color: var(--accent); background: #f1f4f4; }
.paper-image-actions button:disabled { opacity: .45; cursor: default; }
.paper-image-actions .paper-image-close { width: 44px; padding: 0; font-size: 27px; }
.paper-image-caption { flex: 0 0 auto; max-height: 5em; overflow-y: auto; margin: 0; padding: 10px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.paper-image-viewport { display: grid; place-items: center; flex: 1 1 auto; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 18px; background: #f1f5f5; }
.paper-image-viewport:focus-visible { outline-offset: -4px; }
.paper-image-viewport > img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; background: white; }
.paper-image-viewport > [hidden] { display: none; }
.paper-image-viewport > p { max-width: 100%; margin: 0; font-size: 16px; }
.paper-image-viewport > p a { color: var(--accent); text-decoration: underline; }
.is-original-size .paper-image-viewport { display: block; }
.is-original-size .paper-image-viewport > img { max-width: none; max-height: none; }
@media(max-width:640px) {
  .paper-image-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 9px; }
  .paper-image-toolbar { gap: 8px; padding: 10px 12px; }
  .paper-image-toolbar h2 { font-size: 18px; }
  .paper-image-actions { gap: 8px; }
  .paper-image-actions button { padding-inline: 10px; }
  .paper-image-actions .paper-image-close { padding: 0; }
  .paper-image-caption { padding: 10px 12px; }
  .paper-image-viewport { padding: 12px; }
}
@media print { .paper-image-dialog,.paper-image-open,.paper-image-tools { display: none !important; } }

/* Topic controls use the same 44px rail as keyword, year and publication type. */
.publication-search { grid-template-columns: minmax(240px,1fr) minmax(210px,.65fr) 128px 128px auto; }
.home-venue[title] { text-decoration: none; border: 0; }
#paper-topic option { font-weight: 400; }
#paper-topic option.topic-parent-option { font-weight: 600; }
.research-task-copy h2 a,.research-task-list dt a,.intro-mobile-overview strong a { text-decoration: underline; text-decoration-color: #DCE4E6; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.research-task-copy h2 a:hover,.research-task-list dt a:hover,.intro-mobile-overview strong a:hover,.research-task-copy h2 a:focus-visible,.research-task-list dt a:focus-visible,.intro-mobile-overview strong a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
@media(max-width:1100px) {
  .publication-search { grid-template-columns: minmax(0,1fr) 128px 128px auto; }
  .publication-search .search-field { grid-column: 1 / -1; }
  .publication-search .button { grid-column: auto; }
}
@media(max-width:760px) {
  .publication-search { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .publication-search .search-field,.publication-search .topic-field,.publication-search .button { grid-column: 1 / -1; }
}

/* SCAU identity study v2: graphite typography, cool white and one institutional green. */
.brand-mark-link { display:flex; align-items:center; flex:0 0 auto; width:200px; }
.brand-mark-link picture { display:block; width:100%; }
.brand .brand-university { color: #007a49; font-weight:500; }
.brand .brand-university:hover { text-decoration:underline; text-underline-offset:3px; }
.brand .brand-title a { color:inherit; }
.site-footer .footer-inner { min-height:72px; display:flex; justify-content:space-between; align-items:center; padding-block:20px; gap:12px 28px; }
.site-footer .footer-inner p { margin:0; }
.site-footer .footer-inner p span { margin-inline:8px; color: #a3afb1; }
.site-footer .footer-inner a { color: var(--muted); }
.site-footer .footer-inner a:hover { color:var(--accent); }
.paper-image-open,.paper-image-tools { display:none; }
.paper-image-zoom { min-width:40px; font-size:14px; color: var(--muted); text-align:right; font-variant-numeric:tabular-nums; }
.paper-image-viewport { display:block; place-items:normal; padding:0; overflow:auto; scrollbar-gutter:stable; cursor:zoom-out; }
.paper-image-stage { position:relative; min-width:100%; min-height:100%; }
.paper-image-stage[hidden] { display:none; }
.paper-image-stage img { position:absolute; max-width:none; max-height:none; object-fit:contain; background:white; user-select:none; -webkit-user-drag:none; }
.paper-image-viewport > p { display:grid; align-content:center; justify-content:center; min-height:100%; padding:20px; }
.paper-image-viewport > p[hidden] { display:none; }
@media(max-width:860px) { .brand-mark-link { grid-column:1; grid-row:1; width:140px; } }
@media(max-width:360px) { .brand-mark-link { width:128px; } }

/* Official university lettering is a subordinate affiliation cue, not a second logo block. */
.brand .brand-university { width:104px; line-height:0; }
.brand .brand-university img { display:block; width:104px; height:auto; }
.brand .brand-university:focus-visible { outline-offset:4px; }
@media(max-width:860px) {
  .brand .brand-university { width:96px; align-self:center; }
  .brand .brand-university img { width:96px; }
}

/* Cross-page audit: one secondary-label family and a consistent heading hierarchy. */
.student-degree-group h3 span { font-family:var(--sans); font-size:14px; line-height:1.6; }
.profile-copy > p { color:var(--text); }
.profile-copy h2,.profile-paper-shortcuts > a > span { color:var(--muted); }
.profile-selected > h2,.profile-honors > h2,.member-page .section-heading h2 { font-size:22px; line-height:1.45; }
.team-page .contact-copy p + p { font-size:15px; line-height:1.7; color:var(--muted); }
.publication-links a:focus-visible,.work-links a:focus-visible,.paper-abstract > summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

@media(max-width:760px) { .archive-heading h1 { font-size:28px; } }

/* Classifications and the first student row share a text baseline, not a group midpoint. */
.team-page .student-degree-group { align-items:first baseline; }
.team-page .student-degree-group + .student-degree-group { margin-top:0; }
.team-page .student-roster { align-items:first baseline; }
.team-page .student-roster-entry { align-items:stretch; padding:0; gap:4px; border-bottom:0; }
.team-page .student-section .compact-heading { align-items:baseline; }
.archive-heading { align-items:baseline; }
.archive-heading > p { margin:0; }

/* Expanded paper content follows a single readable rail; paper titles keep the full column. */
.publication-body .paper-abstract { width:100%; max-width:56rem; }
.publication-body .paper-abstract > p { width:100%; max-width:none; }
.paper-abstract .archive-paper-figure { width:100%; margin:14px 0 0; padding:12px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.paper-abstract .archive-paper-figure > a { display:flex; align-items:center; justify-content:center; width:100%; max-width:100%; }
.paper-abstract .archive-paper-figure img { display:block; width:auto; height:auto; max-width:100%; max-height:420px; margin:0; object-fit:contain; }
@media(max-width:600px) { .paper-abstract .archive-paper-figure { padding:8px; } }
