.lab-page .content { max-width: 1260px; padding: 24px 24px 92px; }
.lab-page .content > .lab-hero {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  padding: clamp(36px, 5vw, 70px);
  color: white;
  border: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255,255,255,.14), transparent 25%), linear-gradient(130deg, #5d1128, #93223b 68%, #bd4353);
  box-shadow: 0 24px 60px rgba(93, 24, 42, .17);
}
.lab-hero::after {
  content: "OV³";
  position: absolute;
  right: -25px;
  top: 12px;
  color: rgba(255,255,255,.075);
  font: 700 clamp(180px, 25vw, 360px)/1 Georgia, serif;
  letter-spacing: -.12em;
  pointer-events: none;
}
.lab-hero-content { position: relative; z-index: 1; max-width: 700px; }
.lab-hero-kicker { color: #f0cbd0; font-size: clamp(14px, 1.3vw, 17px); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lab-hero h1 { margin: 20px 0 15px; color: white; font: 700 clamp(43px, 5vw, 62px)/1.08 Georgia, serif; letter-spacing: -.05em; }
.lab-hero-motto { color: #f9e0e2; font: 500 clamp(20px, 2.2vw, 26px)/1.4 Georgia, serif; }
.lab-hero-description { max-width: 600px; margin: 22px 0 0; color: #f2d8dc; font-size: 16px; }
.lab-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.lab-hero-actions a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 17px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; color: white; font-size: 14px; font-weight: 750; text-decoration: none !important; }
.lab-hero-actions a:first-child { color: #541a29; border-color: white; background: white; }
.lab-hero-actions a:hover { background: rgba(255,255,255,.14); color: white; }
.lab-hero-actions a:first-child:hover { color: #541a29; background: #f5e9ea; }
.lab-page .navbar .lab-link { display: inline-flex; }
.lab-page .perpic > p { margin: 30px 0 15px !important; padding: 7px 0 7px 15px; border-left: 3px solid var(--wine); color: var(--wine-deep); font: 700 22px/1.3 Georgia, "Noto Serif SC", serif !important; letter-spacing: -.02em; }
.lab-page .part1 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.lab-page .w18 { width: auto; height: auto; min-height: 0; margin: 0; padding: 10px 10px 16px; overflow: visible; border: 1px solid #e9dfdd; border-radius: 13px; background: #fff; transition: transform .23s ease, box-shadow .23s ease; }
.lab-page .w18:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(91,35,47,.08); }
.lab-page .perpic .w18 img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; border-radius: 8px; cursor: default; transition: none; }
.lab-page .perpic .w18:hover img { transform: none; }
.lab-page .w18 > p { margin: 12px 0 3px; color: #3a2c33; font-size: 17px; font-weight: 750; line-height: 1.35; }
.lab-page .w18 .mark { display: none !important; }
.lab-page .member-time { display: block; margin-top: 3px; color: #786b71; font-size: 15px; line-height: 1.4; }
.lab-page .member-link { display: inline-block; margin-top: 6px; color: var(--wine); font-size: 15px; font-weight: 750; text-decoration: none; }
.lab-page .member-link:hover { text-decoration: underline; }
.lab-page .layouter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.lab-page .layout { width: auto; margin: 0; padding: 9px 9px 12px; border: 1px solid #e9dfdd; border-radius: 13px; background: #fff; text-align: left; transition: transform .23s ease, box-shadow .23s ease; }
.lab-page .layout:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(91,35,47,.08); }
.lab-page .layout img { display: block; width: 100%; height: 145px; max-height: none; object-fit: cover; border-radius: 8px; }
.lab-page .layout-number { margin-top: 9px; color: #5f555b; font-size: 12px; line-height: 1.5; }
.lab-page .lives-enhanced > p, .lab-page .lives-enhanced > .layouter { display: none !important; }
.lab-page .lives-rings { display: grid; gap: 24px; }
.lab-page .lives-ring-heading { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--wine); color: var(--wine-deep); font: 700 22px/1.3 Georgia, "Noto Serif SC", serif; }
.lab-page .lives-stage { --orbit-radius: clamp(260px, 31vw, 390px); position: relative; height: 325px; overflow: hidden; isolation: isolate; border: 1px solid #e7d4d3; border-radius: 18px; background: radial-gradient(circle at center, rgba(171,54,73,.09), transparent 30%), linear-gradient(115deg, #fff, #f9efee); perspective: 1050px; }
.lab-page .lives-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; border: 1px solid rgba(149,48,65,.17); border-radius: 50%; box-shadow: 0 0 0 35px rgba(149,48,65,.025), 0 0 0 75px rgba(149,48,65,.018); transform: translate(-50%, -50%) rotateX(72deg); pointer-events: none; }
.lab-page .lives-centre { position: absolute; z-index: 0; top: 50%; left: 50%; width: 260px; color: #ae7f87; font: 700 28px/1.2 Georgia, serif; letter-spacing: -.03em; text-align: center; transform: translate(-50%, -50%); pointer-events: none; opacity: .45; }
.lab-page .lives-ring { --ring-duration: 92s; --ring-direction: normal; }
.lab-page .lives-ring:nth-child(2) { --ring-duration: 112s; --ring-direction: reverse; }
.lab-page .lives-ring:nth-child(3) { --ring-duration: 124s; }
.lab-page .lives-orbit { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; animation: lab-orbit-spin var(--ring-duration) linear infinite var(--ring-direction); }
.lab-page .lives-orbit-card { position: absolute; top: 50%; left: 50%; width: 154px; min-height: 200px; margin: -100px 0 0 -77px; padding: 7px 7px 10px; overflow: hidden; border: 1px solid #e9d9d7; border-radius: 12px; background: #fff; box-shadow: 0 14px 32px rgba(78, 30, 43, .15); backface-visibility: hidden; animation: lab-face-spin var(--ring-duration) linear infinite var(--ring-direction); }
.lab-page .lives-orbit-card--duplicate { display: none; }
.lab-page .lives-orbit-card img { display: block; width: 100%; height: 128px; object-fit: cover; border-radius: 7px; }
.lab-page .lives-orbit-card p { margin: 8px 2px 0; color: #483b42; font-size: 13px; font-weight: 650; line-height: 1.4; }
@keyframes lab-orbit-spin { to { transform: rotateY(-360deg); } }
@keyframes lab-face-spin {
  from { transform: rotateY(var(--angle)) translateZ(var(--orbit-radius)) rotateY(var(--counter-angle)); }
  to { transform: rotateY(var(--angle)) translateZ(var(--orbit-radius)) rotateY(calc(var(--counter-angle) + 360deg)); }
}
@keyframes lab-album-scroll { to { transform: translateX(-50%); } }
.lab-page .content a:not(.paper-resource):hover { color: #8d3443; }
@media (max-width: 950px) {
  .lab-page .part1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-page .layouter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .lab-page .navbar .lab-link { display: none; }
  .lab-page .lives-stage { --orbit-radius: clamp(82px, 25vw, 150px); height: clamp(225px, 53vw, 300px); padding: 0; perspective: 700px; }
  .lab-page .lives-stage::before { width: min(78%, 420px); height: auto; aspect-ratio: 1; }
  .lab-page .lives-centre { display: none; }
  .lab-page .lives-orbit { position: absolute; inset: 0; display: block; width: auto; height: auto; transform-style: preserve-3d; animation: lab-orbit-spin var(--ring-duration) linear infinite var(--ring-direction); }
  .lab-page .lives-orbit-card { position: absolute; top: 50%; left: 50%; display: block; width: clamp(76px, 20vw, 110px); min-height: 0; margin: 0; padding: 5px; translate: -50% -50%; animation: lab-face-spin var(--ring-duration) linear infinite var(--ring-direction); backface-visibility: hidden; }
  .lab-page .lives-orbit-card--duplicate { display: none; }
  .lab-page .lives-orbit-card img { height: clamp(66px, 17vw, 98px); }
  .lab-page .lives-orbit-card p { margin: 5px 1px 0; font-size: 10px; line-height: 1.25; }
}
@media (max-width: 700px) {
  .lab-page .content { padding: 14px 14px 60px; }
  .lab-page .content > .lab-hero { padding: 37px 25px; min-height: 0; }
  .lab-page .part1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-page .layouter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .lab-page .layout img { height: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-page .lives-stage { height: auto; padding: 20px; overflow: auto; perspective: none; }
  .lab-page .lives-stage::before, .lab-page .lives-centre { display: none; }
  .lab-page .lives-orbit { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; width: 100%; height: auto; animation: none; transform: none; }
  .lab-page .lives-orbit-card { position: relative; top: auto; left: auto; width: 100%; min-height: 0; margin: 0; animation: none; transform: none !important; backface-visibility: visible; }
  .lab-page .lives-orbit-card--duplicate { display: none; }
}

/* Six member portraits per desktop row, without shrinking the accompanying text. */
.lab-page .part1 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.lab-page .w18 { padding: 8px 8px 13px; }
.lab-page .perpic .w18 img { aspect-ratio: 3 / 4; }
.lab-page .w18 > p { font-size: 16px; }
.lab-page .member-time, .lab-page .member-link { font-size: 14px; }
.lab-page .perpic > p { font-size: 22px !important; }
@media (max-width: 1100px) { .lab-page .part1 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lab-page .part1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The People page can grow with desktop monitors without breaking small screens. */
.lab-page .content { width: 100%; max-width: 1680px; padding-left: clamp(14px, 3vw, 52px); padding-right: clamp(14px, 3vw, 52px); }
.lab-page #news, .lab-page #news + section { display: none !important; }
.lab-page .lives-stage { --orbit-radius: clamp(200px, 27vw, 500px); width: 100%; }
.lab-page .lives-stage::before { width: min(75%, 930px); height: auto; aspect-ratio: 1; }
.lab-page .alumni-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #ebdcda; border-radius: 13px; }
.lab-page .alumni-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 15px; }
.lab-page .alumni-table th { padding: 14px 17px; background: #8f1932; color: #fff; font-weight: 800; text-align: left; }
.lab-page .alumni-table td { padding: 12px 17px; border-bottom: 1px solid #f2e7e5; color: #4d4448; line-height: 1.4; }
.lab-page .alumni-table tr:nth-child(even) td { background: #fbf2f1; }
.lab-page .alumni-table tr:hover td { background: #f7e6e4; }
.lab-page .alumni-table tr:last-child td { border-bottom: 0; }
.lab-page #honors + section > h3 { text-align: center; }
.lab-page #honors + section > h3::after { margin-left: auto; margin-right: auto; }
@media (max-width: 780px) {
  .lab-page .lives-stage { --orbit-radius: clamp(82px, 25vw, 150px); }
  .lab-page .lives-stage::before { width: min(78%, 420px); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 780px) {
  .lab-page .lives-stage { height: auto; min-height: 0; padding: 18px; }
  .lab-page .lives-orbit { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; animation: none; }
  .lab-page .lives-orbit-card { position: relative; top: auto; left: auto; width: 100%; translate: none; animation: none; }
}

/* Keep all People section headings consistent with the centered homepage headings. */
.lab-page #member + section > h3 { text-align: center; }
.lab-page #member + section > h3::after { margin-left: auto; margin-right: auto; }
.lab-page .perpic > p {
  margin: 34px 0 18px !important;
  padding: 0;
  border-left: 0;
  text-align: center;
}
.lab-page .perpic > p::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin: 11px auto 0;
  border-radius: 2px;
  background: var(--wine);
}

/* Member groups, honours, alumni, and the non-animated Lab Lives timeline. */
.lab-page .lab-hero-kicker { font-size: clamp(15px, 1.45vw, 19px); }
.lab-page .part1 { justify-items: center; }
.lab-page .w18 { width: 100%; max-width: 245px; text-align: center; }
.lab-page .perpic .w18 img { object-position: center top; }
.lab-page .alumni-table { min-width: 760px; }
.lab-page .alumni-table th { text-align: center; white-space: nowrap; }
.lab-page .alumni-table td { font-size: 14px; }
.lab-page .honors-table td:first-child { color: var(--wine); font-weight: 750; }
.lab-page .honors-table td:nth-child(3) { white-space: nowrap; }
.lab-page .member-note { display: block; margin-top: 4px; color: #6e5b63; font-size: 13px; line-height: 1.4; }
.lab-page .alumni-table tr { height: 62px; }
.lab-page .alumni-table th, .lab-page .alumni-table td { padding: 12px 15px; vertical-align: middle; line-height: 1.45; }
.lab-page #Lives + section > h3 { text-align: center; }
.lab-page #Lives + section > h3::after { margin-left: auto; margin-right: auto; }
.lab-page .lives-timeline { display: grid; gap: 13px; width: min(100%, 780px); margin: 0 auto 25px; text-align: center; }
.lab-page .lives-timeline output { color: var(--wine); font-size: 16px; font-weight: 800; }
.lab-page .lives-timeline input[type=range] { display: block; width: 100%; margin: 0; accent-color: var(--wine); cursor: pointer; }
.lab-page .lives-timeline-labels { display: flex; justify-content: space-between; gap: 6px; }
.lab-page .lives-timeline-labels button { min-width: 40px; padding: 5px 8px; border: 1px solid #e8d4d5; border-radius: 7px; background: #fff; color: #806e74; font-size: 13px; font-weight: 700; }
.lab-page .lives-timeline-labels button.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.lab-page .lives-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; width: 100%; }
.lab-page .lives-photo { min-width: 0; margin: 0; padding: 8px; border: 1px solid #e8dada; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(72,30,37,.045); }
.lab-page .lives-photo[hidden] { display: none !important; }
.lab-page .lives-photo img { display: block; width: 100%; height: clamp(135px, 16vw, 225px); object-fit: cover; border-radius: 7px; }
.lab-page .lives-photo figcaption { margin-top: 7px; color: #64595e; font-size: 13px; line-height: 1.45; }
@media (max-width: 1050px) { .lab-page .lives-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lab-page .lives-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .lab-page .lives-photo img { height: clamp(110px, 30vw, 180px); } }
@media (max-width: 420px) { .lab-page .lives-gallery { grid-template-columns: 1fr; } .lab-page .lives-timeline-labels button { min-width: 0; font-size: 11px; padding: 4px; } }

/* Center each complete member group, including groups with only one portrait. */
.lab-page .perpic > .part1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 13px;
  width: 100%;
}
.lab-page .perpic > .part1 > .w18 {
  flex: 0 1 calc((100% - 65px) / 6);
  width: calc((100% - 65px) / 6);
  max-width: 245px;
  min-width: 0;
  margin: 0;
}
@media (max-width: 1100px) {
  .lab-page .perpic > .part1 > .w18 { flex-basis: calc((100% - 39px) / 4); width: calc((100% - 39px) / 4); }
}
@media (max-width: 700px) {
  .lab-page .perpic > .part1 > .w18 { flex-basis: calc((100% - 13px) / 2); width: calc((100% - 13px) / 2); }
}

/* Align Members, Alumni, Honors and Lab Lives within the same content edges. */
.lab-page #member + section,
.lab-page .content > .honors-panel,
.lab-page #Lives + section {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-inline: clamp(28px, 4vw, 50px);
}
.lab-page .perpic,
.lab-page #honors-record,
.lab-page .alumni-table-wrap,
.lab-page .lives-gallery {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
@media (max-width: 700px) {
  .lab-page #member + section,
  .lab-page .content > .honors-panel,
  .lab-page #Lives + section { padding-inline: 19px; }
}

/* Alumni: full-width table with centered headings and left-aligned text blocks. */
.lab-page #member + section .perpic > .alumni-table-wrap { width: 100%; margin: 0; }
.lab-page #member + section .alumni-table { width: 100%; table-layout: fixed; min-width: 850px; }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(1) { width: 6%; }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(2) { width: 15%; --alumni-text-width: var(--alumni-text-2); }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(3) { width: 18%; --alumni-text-width: var(--alumni-text-3); }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(4) { width: 37%; --alumni-text-width: var(--alumni-text-4); }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(5) { width: 12%; --alumni-text-width: var(--alumni-text-5); }
.lab-page #member + section .members-alumni-table :is(th, td):nth-child(6) { width: 12%; --alumni-text-width: var(--alumni-text-6); }
.lab-page #member + section .alumni-table th { text-align: center !important; padding: 15px 14px; }
.lab-page #member + section .alumni-table td { text-align: left; padding: 14px; font: 15px/1.5 Arial, sans-serif; vertical-align: middle; }
.lab-page #member + section .members-alumni-table td:first-child { color: #8f1932; font: 800 14px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.lab-page #member + section .alumni-cell-text { display: block; width: var(--alumni-text-width); max-width: 100%; margin-inline: auto; text-align: left; overflow-wrap: break-word; }
.lab-page #member + section .members-alumni-table tbody tr[hidden] { display: none; }
.lab-page .alumni-table-controls { width: min(100%, 1100px); margin: 18px auto 0; text-align: center; }
.lab-page .alumni-table-toggle { padding: 0; border: 0; background: transparent; color: var(--wine); font-size: 13px; font-weight: 750; cursor: pointer; }
.lab-page .alumni-table-toggle:hover { text-decoration: underline; }

/* Honors follows Alumni: full width and centered blocks of left-aligned text. */
.lab-page #honors-record .honors-table-wrap { width: 100%; margin: 0; }
.lab-page #honors-record .honors-table { width: 100%; table-layout: fixed; min-width: 760px; }
.lab-page #honors-record .honors-table :is(th, td):nth-child(1) { width: 66%; --honors-text-width: var(--honors-text-1); }
.lab-page #honors-record .honors-table :is(th, td):nth-child(2) { width: 19%; --honors-text-width: var(--honors-text-2); }
.lab-page #honors-record .honors-table :is(th, td):nth-child(3) { width: 15%; --honors-text-width: var(--honors-text-3); }
.lab-page #honors-record .honors-table th { text-align: center !important; padding: 15px 18px; }
.lab-page #honors-record .honors-table td { padding: 14px 18px; font-size: 15px; line-height: 1.5; text-align: left; vertical-align: middle; white-space: normal; }
.lab-page #honors-record .honors-cell-text { display: block; width: var(--honors-text-width); max-width: 100%; margin-inline: auto; text-align: left; overflow-wrap: break-word; }

/* Reduce the inset of Honors content while keeping column headings centered. */
.lab-page #honors-record .honors-cell-text {
  margin-left: max(0px, calc((100% - var(--honors-text-width)) / 2 - 28px));
  margin-right: auto;
}

/* Shift only award descriptions; restore Student and Year content positions. */
.lab-page #honors-record .honors-cell-text {
  margin-inline: auto;
}
.lab-page #honors-record .honors-table td:first-child .honors-cell-text {
  margin-left: max(0px, calc((100% - var(--honors-text-width)) / 2 - 88px));
  margin-right: auto;
}
