/* Shared static website styles based on the selected MAVIS typographic concept. */
:root {
  --navy: #142439;
  --paper: #faf9f6;
  --ink: #17283c;
  --muted: #5d6570;
  --accent: #b94e34;
  --line: #d8d7d2;
  --width: 1280px;
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { color: white; background: var(--accent); }
.container { width: min(calc(100% - 96px), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 10px; left: 10px; padding: 10px 18px; color: var(--ink); background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navy masthead, full laboratory name and orange rule from concept 03. */
.masthead { color: var(--paper); background: var(--navy); }
.topbar { min-height: 100px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 24px; padding-block: 18px; }
.institution { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.institution img { width: 80px; height: auto; }
.institution > span { font-size: 14px; line-height: 1.4; }
.header-navigation { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 20px; min-width: 0; width: 100%; justify-self: end; }
.navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 26px; }
.navigation a { padding-block: 8px; font-size: 14px; text-decoration: none; border-bottom: 1px solid transparent; }
.navigation a:hover, .navigation a:focus-visible, .navigation a[aria-current="page"] { border-bottom-color: var(--accent); }
.navigation a span { padding-left: 5px; color: #e19378; }
.language-switcher { display: flex; flex: 0 0 auto; justify-self: end; align-self: start; gap: 2px; align-items: center; padding: 3px; border: 1px solid #405065; border-radius: 5px; }
.language-switcher a { display: grid; place-items: center; min-width: 34px; min-height: 36px; border-radius: 2px; color: #c5cdd7; font-size: 11px; font-weight: 500; text-decoration: none; }
.language-switcher a[aria-current="true"] { color: var(--navy); background: var(--paper); }
.language-switcher a:hover:not([aria-current="true"]) { color: var(--paper); background: #26394e; }
.identity { padding-top: 19px; padding-bottom: 34px; }

/* A short introduction followed directly by news. */
.section { display: grid; grid-template-columns: 23% minmax(0, 1fr); gap: 36px; padding: 60px 0; scroll-margin-top: 20px; }
.section-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 17px; line-height: 1.6; }
.section-number { color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.section-content { min-width: 0; }
.about-section { border-bottom: 1px solid var(--line); }
.about-section .section-label { border-right: 1px solid var(--line); }
h2, h3, p { margin-top: 0; }
.about-section h2 { margin-bottom: 26px; font-size: clamp(2rem, 3.35vw, 3.1rem); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.introduction { max-width: 65ch; margin-bottom: 14px; font-size: 19px; line-height: 1.65; }
.about-detail { max-width: 72ch; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.research-topics { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 27px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.research-topics li { padding-top: 8px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.section-note { color: var(--muted); font-size: 12px; }
.news-empty { display: flex; gap: 24px; padding: 34px 0 20px; }
.news-empty-mark { color: var(--accent); line-height: 1.4; }
.news-empty h3 { margin-bottom: 5px; font-size: 18px; font-weight: 500; }
.news-empty p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-category { color: var(--accent); font-size: 13px; }
.news-item > div { min-width: 0; }
.news-figure { margin: 22px 0 0; }
.news-figure > a { display: block; }
.news-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.news-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.news-section .news-figure { max-width: 520px; }
.news-item h3 { margin-bottom: 6px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.news-item p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.news-item .news-project-details { margin-top: 12px; }
.news-item a:hover { color: var(--accent); }

.contact-section { border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: baseline; gap: .22em; font-size: 33px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.footer-brand > span:first-child { font-weight: 400; }
.footer-brand .back-to-top { padding-left: 20px; font-size: 20px; font-weight: 400; color: var(--accent); }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 20px 0 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.photo-credit { max-width: 270px; text-align: right; text-decoration: none; }
.photo-credit:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .topbar { min-height: 90px; gap: 18px; }
  .institution { gap: 8px; }
  .institution img { width: 62px; }
  .institution > span { font-size: 11px; }
  .navigation { gap: 18px; }
  .navigation a { font-size: 12px; }
  .identity { padding-top: 24px; padding-bottom: 25px; }
  .section { grid-template-columns: 1fr; gap: 23px; padding-block: 38px; }
  .section-label { flex-direction: row; align-items: baseline; gap: 12px; font-size: 14px; }
  .section-number { font-size: 16px; }
  .about-section .section-label { border-right: 0; }
  .about-section h2 { margin-bottom: 20px; font-size: 36px; }
  .introduction { font-size: 17px; }
  .about-detail { font-size: 15px; }
  .research-topics { gap: 10px 16px; margin-top: 22px; font-size: 11px; }
  .section-heading { gap: 12px; padding-bottom: 18px; }
  .section-note { max-width: 12ch; text-align: right; font-size: 11px; }
  .news-empty { gap: 14px; padding-top: 26px; }
  .footer-brand { font-size: 27px; }
  .footer-brand .back-to-top { padding-left: 8px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  .photo-credit { max-width: none; text-align: left; }
}
@media (max-width: 420px) {
  .topbar { flex-wrap: wrap; justify-content: space-between; gap: 2px; padding-top: 12px; padding-bottom: 7px; }
  .institution img { width: 53px; }
  .institution > span { font-size: 10px; }
  .navigation { gap: 13px; }
  .navigation a { font-size: 11px; }
  .navigation a span { display: none; }
  .about-section h2 { font-size: 32px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared inner pages: all content is written directly in the HTML files. */
.page-identity { padding: 30px 0 48px; }
.page-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 23px; color: #c5cdd7; font-size: 13px; }
.page-kicker a { color: var(--paper); text-decoration: none; }
.page-kicker a:hover { text-decoration: underline; }
.page-kicker > span { color: #e19378; }
.page-identity h1 { margin: 0; padding-bottom: 22px; border-bottom: 2px solid var(--accent); font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -.05em; }
.page-introduction { max-width: 66ch; margin: 20px 0 0; color: #d1d7df; font-size: 18px; line-height: 1.65; }
.content-section { border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.research-area { scroll-margin-top: 24px; }
.research-area + .research-area { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.content-title, .group-title { margin: 0 0 22px; font-size: clamp(1.6rem, 2.7vw, 2.25rem); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.method-list { display: grid; gap: 8px; margin: 26px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent); list-style: none; color: var(--muted); font-size: 14px; }
.research-topics a { text-decoration: none; }
.research-topics a:hover { color: var(--accent); text-decoration: underline; }
.section-link { text-decoration: none; }
.section-link:hover { color: var(--accent); text-decoration: underline; }
.project-item { padding: 22px 0; border-top: 1px solid var(--line); }
.project-item h3 { margin-bottom: 12px; font-size: 24px; font-weight: 500; }
.project-item p { color: var(--muted); }
.project-item, .news-item, .publication, .dataset-entry { scroll-margin-top: 24px; }
.list-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.list-pagination .pagination-status { margin: 0; color: var(--muted); font-size: 13px; }
.pagination-actions { display: flex; gap: 10px; }
.pagination-actions button { min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.pagination-actions button:hover:not(:disabled) { border-color: var(--ink); background: #eeede9; }
.pagination-actions button:disabled { color: #777d83; cursor: default; opacity: .6; }

/* Add or remove complete .person articles in people.html. */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
.person { display: flex; align-items: flex-start; gap: 18px; padding: 26px 0 14px; border-top: 1px solid var(--line); min-width: 0; scroll-margin-top: 24px; }
.person:only-child { grid-column: 1 / -1; }
.person-initials, .person-photo { display: grid; place-items: center; flex: 0 0 80px; width: 80px; height: 80px; background: #ecece7; color: var(--ink); font-size: 27px; line-height: 1; font-weight: 500; object-fit: cover; }
.person-details { min-width: 0; }
.person h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.person-role { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.person-bio { max-width: 60ch; margin: 12px 0 0; font-size: 15px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 13px; font-size: 13px; }
.profile-links a:hover { color: var(--accent); }
.profile-links--icons { gap: 8px; margin-top: 17px; }
.profile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); text-decoration: none; }
.profile-icon:hover { border-color: var(--accent); background: #f1ece6; }
.profile-icon--itu { overflow: hidden; border-color: transparent; }
.profile-icon--itu img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.profile-icon--itu:hover { border-color: var(--accent); }
.profile-icon--scholar img { width: 25px; height: 25px; object-fit: contain; }

/* People directory: section links and full-width profiles, with room for biographies. */
.people-navigation { display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.people-navigation a { display: inline-flex; align-items: center; gap: 16px; min-height: 32px; font-size: 14px; text-decoration: none; }
.people-navigation a span { color: var(--accent); }
.people-navigation a:hover { color: var(--accent); text-decoration: underline; }
.people-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.people-page .person { gap: 30px; padding-block: 28px 8px; }
.people-page .person-initials, .people-page .person-photo { flex-basis: 144px; width: 144px; height: 168px; font-size: 42px; }
.people-page .person h3 { font-size: 28px; }
.people-page .person-role { color: var(--accent); font-size: 15px; }
.person-affiliation { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.student-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
.people-page .student-list .person { gap: 18px; padding-block: 22px 8px; }
.people-page .student-list .person-initials, .people-page .student-list .person-photo { flex: 0 0 64px; width: 64px; height: 76px; font-size: 25px; }
.people-page .student-list .person h3 { font-size: 22px; }
.faculty-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.people-page .faculty-list .person { flex-direction: column; align-items: stretch; gap: 20px; }
.faculty-list .person-details { display: flex; flex-direction: column; flex: 1; }
.faculty-list .profile-links--icons { margin-top: auto; padding-top: 17px; }
.people-page .faculty-list .person-initials, .people-page .faculty-list .person-photo { flex: 0 0 auto; width: 100px; height: 116px; font-size: 32px; }
.people-page .faculty-list .person h3 { font-size: 24px; }
.faculty-list .person-bio { overflow-wrap: anywhere; }

.empty-title { margin: 0 0 8px; font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.publication { padding: 28px 0; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.35; font-weight: 500; }
.publication p { margin-bottom: 8px; }
.publication-meta { color: var(--muted); font-size: 14px; }
.citation { margin-top: 14px; font-size: 14px; }
.citation summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.citation summary:hover { color: var(--accent); }
.citation pre { overflow-x: auto; max-width: 100%; padding: 18px; background: #eeede9; font-size: 12px; }
.news-item h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; font-weight: 500; }
.draft-note { border-left: 2px solid var(--accent); padding: 20px 24px; background: #f0efea; }
.draft-note p { margin: 0; color: var(--muted); font-size: 15px; }
.entry-status { margin: 0 0 16px; color: var(--accent); font-size: 12px; letter-spacing: .05em; }
.dataset-meta { display: grid; gap: 0; margin: 26px 0 0; }
.dataset-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.dataset-meta dt { color: var(--muted); font-size: 13px; }
.dataset-meta dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .navigation { gap: 6px 19px; }
  .navigation a { font-size: 13px; }
  .people-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .topbar { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .header-navigation { gap: 18px; }
  .header-navigation .navigation { min-width: 0; }
  .navigation { flex-basis: 100%; justify-content: flex-start; gap: 4px 22px; }
  .navigation a { font-size: 13px; }
}
@media (max-width: 760px) {
  .topbar { padding-top: 18px; padding-bottom: 12px; gap: 14px; }
  .navigation { gap: 4px 19px; }
  .navigation a { font-size: 13px; }
  .page-identity { padding: 23px 0 32px; }
  .page-kicker { margin-bottom: 17px; font-size: 12px; }
  .page-introduction { font-size: 16px; }
  .content-title, .group-title { margin-bottom: 20px; }
  .person { padding-top: 22px; }
  .person h3 { font-size: 22px; }
  .person-initials, .person-photo { flex-basis: 68px; width: 68px; height: 68px; font-size: 23px; }
  .people-navigation { gap: 8px 24px; padding-block: 18px; }
  .people-navigation a { font-size: 13px; }
  .people-page .person { gap: 22px; padding-top: 22px; }
  .people-page .person-initials, .people-page .person-photo { flex-basis: 100px; width: 100px; height: 120px; font-size: 32px; }
  .people-page .person h3 { font-size: 24px; }
  .student-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faculty-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .navigation { gap: 3px 16px; }
  .navigation a { font-size: 12px; }
  .person { gap: 14px; }
  .person h3 { font-size: 20px; }
  .person-initials, .person-photo { flex-basis: 54px; width: 54px; height: 54px; font-size: 20px; }
  .people-page .person { flex-direction: column; gap: 20px; }
  .people-page .student-list .person { flex-direction: row; }
  .people-page .person-initials, .people-page .person-photo { flex: 0 0 auto; }
  .dataset-meta > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Full identity and institution affiliation. */
.institution > span { font-size: 12px; line-height: 1.5; }
.institution strong { display: block; font-weight: 500; font-size: 14px; }
.lab-title { margin: 0; padding: 14px 0 28px; border-bottom: 2px solid var(--accent); font-size: clamp(2rem, 5.1vw, 4.7rem); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.lab-title > span { display: block; }
.lab-subtitle { margin: 16px 0 0; color: #d1d7df; font-size: 14px; line-height: 1.6; letter-spacing: .025em; }
.lab-subtitle > span { padding-inline: 8px; color: #e19378; }

/* A scroll-snap banner also works with touch or horizontal scrolling without JS. */
[hidden] { display: none !important; }
.feature-carousel { color: var(--paper); background: var(--navy); }
.carousel-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid #e19378; outline-offset: -4px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; height: clamp(320px, 29vw, 430px); margin: 0; position: relative; scroll-snap-align: start; scroll-snap-stop: always; background: #142439; }
.carousel-slide > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.carousel-slide--itu > img { object-position: center 52%; }
.carousel-slide--pathology > img { object-position: center 68%; }
.carousel-slide--genetics { background: #000; }
.carousel-slide--genetics > img { object-fit: contain; object-position: 83% center; }
.slide-caption { position: absolute; left: max(48px, calc((100% - var(--width)) / 2)); bottom: 30px; max-width: min(650px, calc(100% - 96px)); margin: 0; padding: 20px 26px; background: rgb(20 36 57 / 95%); border-left: 2px solid var(--accent); }
.slide-eyebrow { display: block; margin-bottom: 9px; color: #cbd3dd; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.slide-caption h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.slide-caption p { margin: 0; font-size: 14px; line-height: 1.6; color: #d6dce3; }
.slide-credit { position: absolute; right: max(48px, calc((100% - var(--width)) / 2)); top: 14px; max-width: calc(100% - 48px); margin: 0; padding: 5px 9px; color: #ecedf0; background: rgb(20 36 57 / 92%); font-size: 10px; line-height: 1.5; }
.slide-credit a { text-decoration: none; }
.slide-credit a:hover { text-decoration: underline; }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.carousel-tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.carousel-tabs button { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid transparent; color: #cbd3dd; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.carousel-tabs button > span { margin-right: 6px; color: #cbd3dd; font-size: 11px; }
.carousel-tabs button[aria-pressed="true"] { color: white; border-bottom-color: #e19378; }
.carousel-tabs button[aria-pressed="true"] > span { color: #e19378; }
.carousel-tabs button:hover { color: white; }
.carousel-actions { display: flex; align-items: center; gap: 10px; }
.carousel-status { min-width: 62px; margin: 0 6px 0 0; color: #cbd3dd; font-size: 12px; font-variant-numeric: tabular-nums; }
.carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #526074; color: white; background: transparent; font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
.carousel-arrow:hover { background: #26394e; border-color: #e19378; }
.carousel-no-script { padding-block: 16px; margin-block: 0; color: #d1d7df; font-size: 13px; }

@media (max-width: 760px) {
  .institution > span { font-size: 10px; }
  .institution strong { font-size: 12px; }
  .lab-title { padding-top: 2px; padding-bottom: 21px; font-size: clamp(2rem, 6vw, 2.8rem); }
  .lab-subtitle { font-size: 12px; }
  .carousel-slide { height: 330px; }
  .slide-caption { left: 24px; bottom: 20px; max-width: calc(100% - 48px); padding: 17px 18px; }
  .slide-caption h2 { font-size: 27px; }
  .slide-caption p { font-size: 13px; }
  .slide-credit { right: 24px; top: 12px; max-width: calc(100% - 48px); font-size: 9px; }
  .carousel-controls { gap: 10px; padding-block: 10px 14px; }
  .carousel-tabs { flex-basis: 100%; justify-content: space-between; gap: 6px; }
  .carousel-tabs button { font-size: 12px; }
  .carousel-actions { width: 100%; padding-top: 10px; border-top: 1px solid #39495e; }
  .carousel-status { margin-right: auto; }
}
@media (max-width: 420px) {
  .lab-title { font-size: 32px; }
  .slide-caption h2 { font-size: 24px; }
  .carousel-tabs button { font-size: 11px; }
  .carousel-tabs button > span { margin-right: 4px; font-size: 10px; }
}

/* Contact and location: a complete section shared by every static page. */
.contact-section { padding-top: 60px; color: var(--paper); background: var(--navy); border-top: 2px solid var(--accent); }
.contact-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid #3a4b5e; }
.contact-eyebrow { margin: 0 0 12px; color: #e19378; font-size: 12px; letter-spacing: .06em; }
.contact-heading h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.contact-lab-name { max-width: 38ch; margin: 0 0 3px; color: #cbd3dd; font-size: 15px; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 56px; padding-bottom: 48px; }
.contact-information { min-width: 0; padding-top: 10px; }
.contact-label { display: block; margin: 0 0 12px; color: #b8c5d2; font-size: 12px; line-height: 1.5; }
.contact-information h3 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.contact-information h3 a { text-decoration: none; }
.contact-information h3 a:hover { text-decoration: underline; }
.contact-information h3 a span { padding-left: 7px; color: #e19378; font-size: 20px; }
.contact-university { margin-bottom: 18px; color: #d1d9e1; font-size: 16px; }
.contact-information address { color: #c3cdda; font-size: 15px; font-style: normal; line-height: 1.8; }
.contact-email { margin-top: 30px; }
.contact-email .contact-label { margin-bottom: 7px; }
.contact-email > a { display: block; width: fit-content; max-width: 100%; color: white; font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.5; letter-spacing: -.025em; text-decoration: none; overflow-wrap: anywhere; }
.contact-email > a span { padding-left: 8px; color: #e19378; }
.contact-email > a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 11px 15px; border: 1px solid var(--accent); color: white; background: var(--accent); font-size: 12px; line-height: 1.5; text-decoration: none; }
.contact-button:hover { background: #963d29; border-color: #e19378; }
.contact-button--outline { background: transparent; border-color: #65778a; }
.contact-button--outline:hover { background: #26394e; }
.contact-map { min-width: 0; overflow: hidden; align-self: start; border: 1px solid #405368; background: #1a2f45; }
.map-heading { display: flex; align-items: center; gap: 14px; padding: 17px 18px; }
.map-pin { color: #e19378; line-height: 0; }
.map-heading p { margin: 0; font-size: 14px; line-height: 1.5; }
.map-heading p > span { display: block; color: #bbc8d5; font-size: 11px; }
.map-heading > a { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; margin-left: auto; border: 1px solid #52677e; color: white; font-size: 20px; text-decoration: none; }
.map-heading > a:hover { background: #31465c; }
.map-frame { display: block; width: 100%; height: 330px; border: 0; background: #e5e9e5; }
.map-caption { margin: 0; padding: 12px 18px; color: #c2ceda; font-size: 11px; line-height: 1.6; }
.contact-section .footer-bottom { gap: 28px; padding-top: 25px; border-color: #3a4b5e; color: #bac6d3; align-items: center; }
.contact-section .footer-brand { color: var(--paper); }
.contact-section .footer-brand .back-to-top { color: #e19378; }
.contact-section .photo-credit { margin-left: auto; }
.contact-section .photo-credit:hover { color: white; }

@media (max-width: 1000px) {
  .contact-grid { gap: 32px; }
  .contact-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 760px) {
  .contact-section { padding-top: 38px; }
  .contact-heading { margin-bottom: 26px; padding-bottom: 25px; }
  .contact-lab-name { font-size: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .contact-information { padding-top: 0; }
  .contact-information h3 { font-size: 26px; }
  .contact-email > a { font-size: 23px; }
  .contact-actions { gap: 10px; margin-top: 23px; }
  .contact-button { padding-inline: 12px; gap: 12px; }
  .map-heading { padding: 15px; gap: 10px; }
  .map-heading p { font-size: 13px; }
  .map-frame { height: 300px; }
  .map-caption { padding-inline: 15px; }
  .contact-section .footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
  .contact-section .footer-bottom > p { margin-left: auto; text-align: right; }
  .contact-section .photo-credit { flex-basis: 100%; margin-left: 0; text-align: left; }
}
@media (max-width: 360px) {
  .contact-actions { flex-direction: column; align-items: stretch; }
  .map-heading { padding: 12px; gap: 8px; }
  .map-heading > a { flex-basis: 36px; width: 36px; height: 40px; }
  .contact-section .footer-bottom { flex-direction: column; }
  .contact-section .footer-bottom > p { margin-left: 0; text-align: left; }
}


/* Compact shared footer. The full contact area lives on contact.html. */
.site-footer { color: var(--paper); background: var(--navy); border-top: 2px solid var(--accent); }
.compact-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 25px; }
.footer-summary .footer-brand { font-size: 27px; }
.footer-summary p { margin: 5px 0 0; color: #bbc8d5; font-size: 12px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .footer-contact-link { color: #d1d9e1; font-size: 12px; }
.footer-contact-link span { margin-left: 6px; color: #e19378; }
.footer-credit { flex-basis: 100%; margin: -8px 0 0; color: #bbc8d5; font-size: 10px; }
.footer-credit a { text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .compact-footer { align-items: flex-start; gap: 16px; padding-block: 22px; }
  .footer-contact { align-items: flex-start; }
  .footer-credit { margin-top: 0; }
}
