﻿/*
 * Gu Lab shared theme
 * A light-weight, responsive visual layer for every public page.
 */
:root {
  --bg: #06111f;
  --bg-deep: #030914;
  --panel: #0a1b2f;
  --panel-raised: #0e2741;
  --line: rgba(129, 210, 255, 0.22);
  --text: #eaf7ff;
  --muted: #a9c7d8;
  --accent: #78d8ff;
  --accent-strong: #b9edff;
  --max-content: 72rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(50, 145, 211, 0.18), transparent 31rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 58%, #08192b);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.12vw, 1.08rem);
  line-height: 1.7;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(120, 216, 255, 0.45);
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

/* Header: a fixed centre column keeps the title centred independently of the logo. */
.header {
  display: grid !important;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 56rem) minmax(8rem, 1fr);
  align-items: center;
  width: 100% !important;
  min-height: 8.5rem;
  margin: 0;
  padding: 1.35rem clamp(1rem, 4vw, 3rem);
  color: var(--text);
  background: rgba(3, 12, 24, 0.78);
  border-bottom: 1px solid var(--line);
  text-align: center !important;
  text-shadow: none !important;
}

#header_img {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
  grid-column: 1;
  width: min(100%, 10.5rem);
  height: 4.25rem;
  margin: 0;
  justify-self: start;
  float: none !important;
  transform: none !important;
  background: url("../images/Westlake_Logo_1.png") left center / contain no-repeat;
}

.header > text,
.header > .header-text {
  display: block !important;
  grid-column: 2;
  width: 100% !important;
  margin: 0 !important;
}

#header1,
#header2,
#headerPara,
.header h1,
.header p {
  display: block !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  color: var(--text);
  text-align: center !important;
  text-shadow: none !important;
  white-space: normal !important;
}

#header1 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

#header1 span {
  color: var(--accent) !important;
}

#header2:empty {
  display: none !important;
}

#headerPara {
  margin-top: 0.35rem !important;
  color: var(--muted);
  font-size: clamp(0.76rem, 0.68rem + 0.25vw, 0.95rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 0.25rem 0;
  background: rgba(7, 24, 43, 0.94) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar .container-fluid {
  width: min(100%, var(--max-content)) !important;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-brand,
.navbar-dark .navbar-brand {
  color: var(--accent-strong) !important;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.navbar-dark .navbar-nav .nav-link {
  padding: 0.55rem 0.75rem;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: none !important;
  transition: color 160ms ease, background-color 160ms ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus-visible {
  color: var(--accent-strong) !important;
  background: rgba(120, 216, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-strong) !important;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Shared content surfaces */
.main,
.research,
.lab,
.people,
.publications,
.contact {
  width: min(calc(100% - 2rem), var(--max-content)) !important;
  margin: clamp(1.25rem, 3vw, 2.75rem) auto !important;
  padding: clamp(1.25rem, 3vw, 2.75rem) !important;
  color: var(--text) !important;
  background: rgba(10, 27, 47, 0.86);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3.25rem rgba(0, 0, 0, 0.22);
}

.main h1,
.research h1,
.lab h1,
.people h1,
.publications h3,
.contact h3 {
  margin: 2.5rem 0 1.25rem !important;
  padding-bottom: 0.65rem;
  color: var(--accent-strong) !important;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 2rem) !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center !important;
  text-shadow: none !important;
  border-bottom: 1px solid var(--line);
}

.main > h1:first-of-type,
.research h1:first-child,
.lab h1:first-child,
.publications h3:first-child,
.contact h3:first-child {
  margin-top: 0 !important;
}

.main h2,
.lab h2 {
  margin: 1.75rem 0 0.35rem !important;
  padding: 0 !important;
  color: var(--accent) !important;
  font-size: 0.86rem !important;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: left !important;
  text-transform: uppercase;
  border: 0 !important;
}

.main p,
.research p,
.lab p,
.contact p,
.people p,
.publications,
.research,
.lab,
.contact {
  color: var(--text) !important;
  text-align: left !important;
  text-justify: auto !important;
}

.citation {
  color: var(--muted) !important;
  font-size: 0.92rem;
  text-align: center !important;
}

.main .welcome {
  margin: 0 auto 2.25rem !important;
  padding: 1.1rem 1.25rem;
  color: var(--accent-strong) !important;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem) !important;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  line-height: 1.65;
  text-align: center !important;
  border: 1px solid rgba(120, 216, 255, 0.38);
  border-radius: 0.7rem;
  background: linear-gradient(90deg, rgba(62, 159, 211, 0.11), rgba(62, 159, 211, 0.035));
}

.carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-deep);
}

.carousel img {
  max-height: 38rem;
  object-fit: contain;
}

.photo {
  margin: 1rem 0;
  text-align: center;
}

.photo img,
.research .photo img,
.lab .photo img,
.main .photo img {
  max-width: 100% !important;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

/* Members */
.people {
  max-width: 62rem;
}

.person {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  width: 100%;
  margin: 0 !important;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
}

.person[id] {
  scroll-margin-top: 5rem;
}

.person:first-child {
  display: block;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.person .photo,
.person .info {
  float: none !important;
  width: auto !important;
  margin: 0;
  padding: 0 !important;
}

.person .photo img,
.people img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.person .info > p:first-child {
  display: none;
}

.people .name {
  margin-bottom: 0.15rem;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.65rem);
  font-weight: 600;
  text-align: left;
}

.people .position,
.people .email {
  color: var(--accent) !important;
  text-align: left;
}

.people .position {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.people a {
  color: var(--accent) !important;
}

.people .btn {
  color: var(--accent-strong);
  border-color: rgba(120, 216, 255, 0.7);
  border-radius: 0.35rem;
}

.people .btn:hover {
  color: var(--bg-deep);
  background: var(--accent);
  border-color: var(--accent);
}

/* Publications */
.publications {
  max-width: 72rem;
}

.paper {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.8rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.paper .p-number,
.paper .p-title {
  float: none !important;
  width: auto !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

.paper .p-number {
  color: var(--accent);
  font-weight: 700 !important;
  text-align: right;
}

.paper .p-title,
.paper .p-title a {
  color: var(--text) !important;
}

.paper .p-title a:hover {
  color: var(--accent-strong) !important;
}

.paper .p-info {
  color: var(--muted) !important;
}

/* Gallery, replacing the externally loaded timeline styles. */
.timeline {
  width: min(calc(100% - 2rem), var(--max-content));
  margin: clamp(1.25rem, 3vw, 2.75rem) auto;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  color: var(--text);
}

.timeline-item {
  position: relative;
  margin: 0 auto;
  padding: 0 0 2.5rem 2rem;
  border-left: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  top: 0.4rem;
  left: -0.38rem;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item::after {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  content: attr(date-is);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.timeline-item h1 {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.timeline-item p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.timeline-item .photo {
  text-align: left;
}

.timeline-item .photo img {
  width: min(100%, 38rem) !important;
}

/* Footer */
.foot {
  width: 100% !important;
  height: auto !important;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(3, 12, 24, 0.9) !important;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  text-align: center !important;
}

@media (min-width: 42rem) {
  #brand {
    display: none;
  }
}

@media (max-width: 42rem) {
  .header {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.1rem 1rem;
  }

  #header_img {
    display: none !important;
  }

  .header > text,
  .header > .header-text {
    grid-column: 1;
  }

  #headerPara {
    letter-spacing: 0.08em;
  }

  .navbar .container-fluid {
    padding: 0 0.65rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
    text-align: left;
  }

  .main,
  .research,
  .lab,
  .people,
  .publications,
  .contact,
  .timeline {
    width: min(calc(100% - 1rem), var(--max-content)) !important;
    padding: 1.1rem !important;
    border-radius: 0.65rem;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person .photo {
    width: min(100%, 15rem) !important;
  }

  .paper {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .timeline-item {
    padding-left: 1.4rem;
  }
}

/* Blue-spectrum refinement and a dedicated event-archive treatment. */
:root {
  --bg: #e9f3fb;
  --panel: #f8fbff;
  --panel-raised: #edf6fc;
  --line: #c5ddec;
  --accent: #0876af;
  --accent-strong: #0b9dd0;
  --muted: #3e6278;
}

body {
  background:
    linear-gradient(rgba(8, 118, 175, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 118, 175, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 2rem 2rem, 2rem 2rem, auto;
}

.main:not(.home-main),
.research,
.lab,
.people,
.publications,
.contact {
  background: linear-gradient(145deg, #fbfdff, var(--panel-raised)) !important;
  border-color: var(--line) !important;
  box-shadow: 0 0.8rem 2.2rem rgba(7, 48, 77, 0.08);
}

.member-tabs {
  background: rgba(235, 247, 255, 0.86);
  border-color: #b9ddeb;
  box-shadow: 0 0.4rem 1rem rgba(7, 71, 110, 0.08);
}

.member-tab:hover,
.member-tab:focus-visible {
  color: #075d91 !important;
  background: rgba(52, 185, 235, 0.13);
}

.member-tab.active {
  color: #052a43 !important;
  background: linear-gradient(135deg, #bfeeff, #d7f3ff);
  border-color: #54bce4;
  box-shadow: inset 0 0 0 1px rgba(8, 118, 175, 0.14);
}

.people .advisor-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.35rem !important;
  background: linear-gradient(120deg, #e4f4ff, #fafdff 58%, #d5efff) !important;
  border-color: #9fd4eb !important;
  box-shadow: 0 0.9rem 2.1rem rgba(8, 93, 139, 0.12);
}

.people .advisor-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.32rem;
  background: linear-gradient(#38c9ed, #0876af);
  content: "";
}

.home-main .news::-webkit-scrollbar-track {
  background: #dceefa;
}

.home-main .news::-webkit-scrollbar-thumb {
  border-color: #dceefa;
  background: #0876af;
}

.event-archive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 62rem !important;
  padding: clamp(2rem, 5vw, 3.5rem) !important;
  color: #e9f8ff;
  background:
    radial-gradient(circle at 82% 0%, rgba(31, 177, 229, 0.22), transparent 28rem),
    linear-gradient(145deg, #06192b, #082d4a 56%, #0c4c6e) !important;
  border: 1px solid #1f668a !important;
  box-shadow: 0 1.6rem 4rem rgba(4, 34, 55, 0.24) !important;
}

.event-archive::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 224, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 224, 255, 0.065) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  pointer-events: none;
}

.event-archive .event-kicker {
  margin: 0 0 0.65rem !important;
  color: #70dfff !important;
  font-family: var(--font-code) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.event-archive h1 {
  position: relative;
  margin: 0 0 1.1rem !important;
  padding: 0 0 0.85rem 1rem !important;
  color: #f2fbff !important;
  font-size: clamp(1.3rem, 3vw, 2rem) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
  border-bottom: 1px solid rgba(114, 224, 255, 0.32);
}

.event-archive h1::before {
  position: absolute;
  top: 0.1em;
  bottom: 1.05rem;
  left: 0;
  width: 0.3rem;
  background: #39d3f2;
  content: "";
}

.event-archive .carousel {
  display: flex;
  flex-direction: column;
  width: min(100%, 52rem) !important;
  margin: 0 0 2.8rem !important;
  overflow: hidden;
  border: 1px solid rgba(112, 222, 255, 0.45);
  border-radius: 0.45rem;
  background: #061827;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.2);
}

.event-archive .carousel-inner {
  order: 1;
  background: #03111d;
}

.event-archive .carousel img {
  width: 100% !important;
  max-height: min(30rem, 62vh) !important;
  object-fit: contain;
  background: #03111d;
}

.event-archive .carousel-caption {
  position: static !important;
  display: block !important;
  min-height: 6.4rem;
  margin: 0 !important;
  padding: 1.1rem 1.25rem 1.2rem !important;
  color: #dff6ff !important;
  text-align: left !important;
  text-shadow: none !important;
  background: linear-gradient(115deg, rgba(5, 39, 62, 0.98), rgba(9, 75, 106, 0.96));
  border-top: 1px solid rgba(106, 220, 255, 0.35);
}

.event-archive .carousel-caption h5 {
  margin: 0 0 0.35rem !important;
  color: #72e1ff !important;
  font-family: var(--font-code) !important;
  font-size: 0.83rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-archive .carousel-caption p {
  max-width: 70ch;
  margin: 0 !important;
  color: #edfaff !important;
  font-size: 1rem !important;
  line-height: 1.65;
}

.event-archive .carousel-indicators {
  position: static;
  order: 2;
  justify-content: flex-end;
  width: auto;
  margin: 0;
  padding: 0.7rem 1.15rem;
  background: #082b44;
  border-top: 1px solid rgba(112, 222, 255, 0.2);
}

.event-archive .carousel-indicators button {
  width: 1.6rem;
  height: 0.2rem;
  margin: 0 0.18rem;
  background-color: #75e2ff;
  border: 0;
}

.event-archive .carousel-control-prev,
.event-archive .carousel-control-next {
  top: 0;
  bottom: auto;
  width: 3.8rem;
  height: min(30rem, 62vh);
  opacity: 0.76;
}

.event-archive .carousel-control-prev:hover,
.event-archive .carousel-control-next:hover {
  background: linear-gradient(90deg, rgba(3, 22, 35, 0.48), transparent);
  opacity: 1;
}

.event-archive > br {
  display: none;
}

@media (max-width: 42rem) {
  .event-archive {
    padding: 1.35rem !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  .event-archive .carousel {
    margin-bottom: 2.15rem !important;
  }

  .event-archive .carousel-caption {
    min-height: 0;
    padding: 1rem !important;
  }

  .event-archive .carousel-control-prev,
  .event-archive .carousel-control-next {
    width: 3rem;
    height: min(25rem, 58vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* PyQED-inspired research-software layer: ink, sea-glass, cyan, and clear evidence cards. */
:root {
  --bg: #eef1ec;
  --bg-deep: #071520;
  --panel: #ffffff;
  --panel-raised: #f6f9f7;
  --line: #c6e7e8;
  --text: #071520;
  --muted: #536369;
  --accent: #075f66;
  --accent-strong: #168d95;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

.header {
  min-height: 6.75rem;
  color: #eef1ec;
  background: #071520;
  border-bottom-color: rgba(198, 231, 232, 0.24);
}

#header_img {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.18rem;
  border: 1px solid rgba(198, 231, 232, 0.34);
  border-radius: 0.4rem;
  background-color: #ffffff;
}

#header1,
#header2,
#headerPara,
.header h1,
.header p {
  color: #eef1ec;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

#header1 {
  font-weight: 650 !important;
  letter-spacing: -0.025em;
}

#header1 span {
  color: #35d6e3 !important;
}

#headerPara {
  color: #b8c7cc;
}

.navbar {
  background: #071520 !important;
  border-bottom-color: rgba(198, 231, 232, 0.2);
  backdrop-filter: none;
}

.navbar-dark .navbar-nav .nav-link {
  color: #c7d3d7 !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus-visible,
.navbar-dark .navbar-nav .nav-link.active {
  color: #a8eef2 !important;
  background: rgba(53, 214, 227, 0.08);
}

.navbar-dark .navbar-nav .nav-link.active {
  box-shadow: inset 0 -2px 0 #35d6e3;
}

.navbar-brand,
.navbar-dark .navbar-brand {
  color: #eef1ec !important;
}

.main,
.research,
.lab,
.people,
.publications,
.contact {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 0.55rem;
  box-shadow: 0 1rem 2.75rem rgba(7, 21, 32, 0.08);
}

.main h1,
.research h1,
.lab h1,
.people h1,
.publications h3,
.contact h3,
.timeline-item h1,
.people .name {
  color: var(--text) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.main h2,
.lab h2,
.people .position,
.people .email {
  color: var(--accent) !important;
}

.main p,
.research p,
.lab p,
.contact p,
.people p,
.publications,
.research,
.lab,
.contact,
.paper .p-title,
.paper .p-title a {
  color: var(--text) !important;
}

.main .welcome {
  color: var(--text) !important;
  border-color: var(--line);
  background: #f6f9f7;
}

.carousel,
.photo img,
.research .photo img,
.lab .photo img,
.main .photo img,
.person .photo img,
.people img {
  border-color: var(--line);
}

.paper,
.person {
  border-top-color: var(--line);
}

.paper .p-number,
.paper .p-info,
.timeline-item::after,
.timeline-item p,
.foot p {
  color: var(--muted) !important;
}

.timeline-item {
  border-left-color: var(--line);
}

.timeline-item::before {
  border-color: var(--panel);
  background: #35d6e3;
  box-shadow: 0 0 0 1px #168d95;
}

.foot {
  background: #071520 !important;
  border-top-color: rgba(198, 231, 232, 0.22);
}

/* Homepage: a no-script PyQED-like hero plus an independently scrollable news reader. */
.home-main {
  position: relative;
  isolation: isolate;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero {
  display: grid;
  grid-template-areas: "copy visual";
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: min(calc(100% - 2rem), var(--max-content));
  min-height: 31rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5.5rem) 0;
}

.home-main::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 39rem;
  content: "";
  background-color: #071520;
  background-image:
    linear-gradient(rgba(198, 231, 232, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 231, 232, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 70% 38%, rgba(53, 214, 227, 0.17), transparent 24rem);
  background-size: 2rem 2rem, 2rem 2rem, auto;
}

.home-main > * {
  position: relative;
  z-index: 1;
}

.home-visual {
  grid-area: visual;
  border-color: rgba(198, 231, 232, 0.34);
  border-radius: 0.6rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.24);
}

.home-visual::after {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  padding: 0.28rem 0.55rem;
  color: #b8c7cc;
  content: "GU LAB \00B7\0020 WESTLAKE UNIVERSITY";
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(7, 21, 32, 0.78);
}

.home-main .welcome {
  grid-area: copy;
  margin: 0 !important;
  padding: 0 !important;
  color: #eef1ec !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.15rem, 1.03rem + 0.55vw, 1.55rem) !important;
  font-weight: 450;
  line-height: 1.55;
  text-align: left !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-main .welcome::before {
  display: block;
  margin-bottom: 1.1rem;
  color: #35d6e3;
  content: "RESEARCH GROUP \00B7\0020 CHEMICAL PHYSICS";
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.home-section-heading,
.home-main .news {
  width: min(calc(100% - 2rem), var(--max-content));
  margin-right: auto;
  margin-left: auto;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1.25rem;
}

.home-section-heading p {
  order: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.home-section-heading h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.55rem) !important;
  line-height: 1.05;
  text-align: left !important;
  border: 0;
}

.home-main .news {
  max-height: 42rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  padding: 0 clamp(1.1rem, 3vw, 2.4rem) 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  scrollbar-color: #168d95 #e3eeeb;
  scrollbar-width: thin;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 1rem 2.25rem rgba(7, 21, 32, 0.07);
}

.home-main .news::-webkit-scrollbar {
  width: 0.7rem;
}

.home-main .news::-webkit-scrollbar-track {
  background: #e3eeeb;
}

.home-main .news::-webkit-scrollbar-thumb {
  border: 0.18rem solid #e3eeeb;
  border-radius: 1rem;
  background: #168d95;
}

.home-main .news h2 {
  margin: 0 !important;
  padding: 1.45rem 0 0.35rem !important;
  color: var(--accent) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line) !important;
}

.home-main .news h2:first-child {
  border-top: 0 !important;
}

.home-main .news p {
  max-width: 72ch;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.7;
}

.home-main .news .photo {
  margin: 0.85rem 0 0;
  text-align: left;
}

.home-main .news .photo img {
  width: min(100%, 28rem) !important;
}

@media (max-width: 48rem) {
  .home-hero {
    grid-template-areas: "copy" "visual";
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .home-main::before {
    height: 52rem;
  }

  .home-section-heading {
    display: block;
  }

  .home-section-heading p {
    margin: 0.5rem 0 0;
  }

  .home-main .news {
    max-height: 36rem;
  }
}

/* Shared scale and quieter paper surfaces for every legacy page. */
:root {
  --bg: #e8efec;
  --panel: #f8fbfa;
  --panel-raised: #f2f7f5;
  --line: #c9dedb;
  --font-ui: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
  font-size: 16px !important;
  font-family: var(--font-ui) !important;
}

body {
  font-size: 1rem !important;
  font-family: var(--font-ui) !important;
  background:
    linear-gradient(rgba(7, 95, 102, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 95, 102, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 2rem 2rem, 2rem 2rem, auto;
}

button,
input,
select,
textarea {
  font-family: var(--font-ui) !important;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-code) !important;
}

#header1,
#header2,
#headerPara,
.main h1,
.research h1,
.lab h1,
.people h1,
.publications h3,
.contact h3,
.timeline-item h1,
.people .name {
  font-family: var(--font-ui) !important;
}

.main,
.research,
.lab,
.people,
.publications,
.contact {
  font-size: 1rem !important;
}

.main:not(.home-main),
.research,
.lab,
.people,
.publications,
.contact {
  background: linear-gradient(145deg, #fbfdfc, var(--panel-raised)) !important;
  border-color: var(--line) !important;
  box-shadow: 0 0.8rem 2.2rem rgba(7, 21, 32, 0.06);
}

/* Member-directory tabs make the current collection explicit. */
.member-tabs {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.62);
}

.member-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid transparent;
  border-radius: 0.3rem;
}

.member-tab:hover,
.member-tab:focus-visible {
  color: var(--accent) !important;
  background: rgba(53, 214, 227, 0.12);
}

.member-tab.active {
  color: #071520 !important;
  background: #a8eef2;
  border-color: #35d6e3;
  box-shadow: inset 0 0 0 1px rgba(7, 95, 102, 0.14);
}

.people .person {
  grid-template-columns: minmax(5.75rem, 7.75rem) minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.45rem);
  margin: 0 0 0.75rem !important;
  padding: clamp(1rem, 2.5vw, 1.35rem) !important;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.people .person:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.person .photo,
.person .photo img,
.people img {
  width: 100% !important;
  max-width: 7.75rem !important;
}

.carousel {
  width: min(100%, 50rem);
  margin-right: auto;
  margin-left: auto;
}

.carousel img {
  max-height: min(27rem, 58vh);
}

.photo img,
.research .photo img,
.lab .photo img,
.main .photo img {
  max-width: 26rem !important;
}

.timeline-item .photo img,
.home-main .news .photo img {
  width: min(100%, 26rem) !important;
}

@media (max-width: 42rem) {
  .member-tabs {
    display: flex;
    width: 100%;
  }

  .member-tab {
    flex: 1;
    justify-content: center;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .people .person {
    grid-template-columns: 1fr;
  }

  .person .photo,
  .person .photo img,
  .people img {
    width: min(100%, 8.5rem) !important;
    max-width: 8.5rem !important;
  }

  .photo img,
  .research .photo img,
  .lab .photo img,
  .main .photo img,
  .timeline-item .photo img,
  .home-main .news .photo img {
    max-width: 20rem !important;
  }
}

/* Final cascade: blue-grey paper, a self-contained home hero, and resource cards. */
:root {
  --bg: #eaf2fb;
  --bg-deep: #051827;
  --panel: #f9fcff;
  --panel-raised: #eef6fc;
  --line: #c5dced;
  --text: #092238;
  --muted: #426177;
  --accent: #0875ad;
  --accent-strong: #0a9bd0;
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(8, 117, 173, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 117, 173, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 2rem 2rem, 2rem 2rem, auto;
}

.header,
.navbar,
.foot {
  background: #051827 !important;
}

#header1,
#header2,
#headerPara,
.header h1,
.header p,
.navbar-brand,
.navbar-dark .navbar-brand {
  color: #f1f8ff !important;
}

.main:not(.home-main),
.research,
.lab,
.people,
.publications,
.contact {
  background: linear-gradient(145deg, #fbfdff, var(--panel-raised)) !important;
  border-color: var(--line) !important;
  box-shadow: 0 0.8rem 2.2rem rgba(5, 49, 79, 0.08);
}

.main h1,
.research h1,
.lab h1,
.people h1,
.publications h3,
.contact h3,
.timeline-item h1,
.people .name,
.main p,
.research p,
.lab p,
.contact p,
.people p,
.publications,
.research,
.lab,
.contact,
.paper .p-title,
.paper .p-title a {
  color: var(--text) !important;
}

.main h2,
.lab h2,
.people .position,
.people .email,
.people a,
a {
  color: var(--accent) !important;
}

.main .welcome {
  background: #f4f9fe;
}

.home-main .welcome {
  color: #f1f8ff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The dark home band owns only its own height, so the news heading cannot be covered. */
.home-main {
  overflow: visible !important;
}

.home-main::before {
  display: none;
}

.home-hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 38%, rgba(40, 191, 236, 0.2), transparent 24rem),
    #051827;
}

.home-hero-band::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 227, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 227, 255, 0.075) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  pointer-events: none;
}

.home-hero-band .home-hero {
  position: relative;
  z-index: 1;
}

.home-main .home-section-heading {
  margin-top: clamp(2.25rem, 6vw, 4.5rem);
}

.home-main .news {
  background: #f9fcff;
  border-color: var(--line);
  box-shadow: 0 1rem 2.25rem rgba(5, 49, 79, 0.09);
  scrollbar-color: #0875ad #dceefa;
}

.home-main .news::-webkit-scrollbar-track {
  background: #dceefa;
}

.home-main .news::-webkit-scrollbar-thumb {
  border-color: #dceefa;
  background: #0875ad;
}

/* Advisor remains a fixed horizontal card: copy on the left, a compact photo on the right. */
.people .advisor-card {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: 1.35rem !important;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  background: #f5faff !important;
  border-color: #bddbed !important;
  box-shadow: 0 0.8rem 2rem rgba(6, 79, 120, 0.1);
}

.people .advisor-card::before {
  display: none;
}

.people .advisor-card .info {
  order: 1 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.people .advisor-card .photo {
  order: 2 !important;
  flex: 0 0 10rem !important;
  width: 10rem !important;
  min-width: 10rem !important;
  max-width: 10rem !important;
  margin-left: auto !important;
}

.people .advisor-card .photo img {
  width: 10rem !important;
  height: 10rem !important;
  max-width: 10rem !important;
  aspect-ratio: 1;
  object-position: center 24%;
  border-color: #7bc7e6;
  border-radius: 0.55rem;
  box-shadow: 0 0.65rem 1.5rem rgba(5, 58, 91, 0.16);
}

/* Resource page: software is a decision card, not an inline hyperlink. */
.resource-library {
  max-width: 56rem !important;
  padding: clamp(1.25rem, 4vw, 2.5rem) !important;
}

.resource-software {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, #e5f5ff, #f9fcff 58%, #dff3ff);
  border: 1px solid #b9dceb;
  border-radius: 0.5rem;
}

.resource-kicker {
  margin: 0 0 0.65rem !important;
  color: #0875ad !important;
  font-family: var(--font-code) !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.resource-library h1,
.resource-library h2,
.resource-library p {
  text-align: left !important;
}

.resource-library h1 {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  line-height: 1;
  border: 0 !important;
}

.resource-software p:not(.resource-kicker) {
  max-width: 62ch;
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.7;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  color: #075680 !important;
  font-weight: 700;
  text-decoration: none !important;
  background: #f9fcff;
  border: 1px solid #8ec9e3;
  border-radius: 0.35rem;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.resource-action:hover,
.resource-action:focus-visible {
  color: #042b43 !important;
  background: #e6f6ff;
  box-shadow: 0 0.5rem 1.1rem rgba(5, 92, 137, 0.13);
  transform: translateY(-0.12rem);
}

.resource-action-primary {
  color: #f5fcff !important;
  background: #0875ad;
  border-color: #0875ad;
}

.resource-action-primary:hover,
.resource-action-primary:focus-visible {
  color: #ffffff !important;
  background: #075d8b;
}

.resource-section {
  margin-top: 1.25rem;
  padding: 1.2rem 1.35rem;
  background: rgba(249, 252, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.42rem;
}

.resource-section h2 {
  margin: 0 0 0.75rem !important;
  color: #0875ad !important;
  font-size: 1.1rem !important;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-text-link,
.resource-notes a {
  color: #075d8b !important;
  font-weight: 650;
}

.resource-notes ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.4rem;
}

.resource-notes li,
.resource-notes span {
  color: var(--text);
}

/* Keep the Events archive deep-blue after the shared light surface is applied. */
.event-archive {
  color: #e9f8ff;
  background:
    radial-gradient(circle at 82% 0%, rgba(31, 177, 229, 0.22), transparent 28rem),
    linear-gradient(145deg, #06192b, #082d4a 56%, #0c4c6e) !important;
  border-color: #1f668a !important;
}

.event-archive h1 {
  color: #f6fcff !important;
  text-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.24);
}

@media (max-width: 42rem) {
  .people .advisor-card {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start;
  }

  .people .advisor-card .photo {
    flex-basis: 7rem !important;
    width: 7rem !important;
    min-width: 7rem !important;
    max-width: 7rem !important;
  }

  .people .advisor-card .photo img {
    width: 7rem !important;
    height: 7rem !important;
    max-width: 7rem !important;
  }

  .resource-library {
    padding: 1.1rem !important;
  }

  .resource-actions {
    display: grid;
  }

  .resource-action {
    width: 100%;
  }
}

/* Treat the university mark and the lab name as one centred header lockup. */
.header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

#header_img {
  flex: 0 0 4rem;
  grid-column: auto !important;
  width: 4rem !important;
  height: 4rem !important;
  margin: 0 !important;
  justify-self: auto !important;
}

.header > .header-text {
  flex: 0 1 auto;
  grid-column: auto !important;
  width: auto !important;
  max-width: calc(100% - 4.8rem);
  margin: 0 !important;
}

#header1,
#header2,
#headerPara,
.header h1,
.header p {
  text-align: left !important;
}

@media (max-width: 42rem) {
  .header {
    gap: 0.55rem;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  #header_img {
    flex-basis: 3.15rem;
    width: 3.15rem !important;
    height: 3.15rem !important;
  }

  .header > .header-text {
    max-width: calc(100% - 3.7rem);
  }
}

/* One-time spectral sweep: a scientific signature without a persistent animation loop. */
@keyframes spectral-sweep {
  0% {
    opacity: 0;
    transform: translateX(-170%) skewX(-18deg);
  }

  12% {
    opacity: 0.72;
  }

  88% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translateX(720%) skewX(-18deg);
  }
}

.home-hero-band::after,
.event-archive::after {
  position: absolute;
  z-index: 1;
  top: -12%;
  bottom: -12%;
  left: -18%;
  width: 12%;
  background: linear-gradient(90deg, transparent, rgba(97, 226, 255, 0.06) 18%, rgba(156, 241, 255, 0.36) 50%, rgba(97, 226, 255, 0.06) 82%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-170%) skewX(-18deg);
  will-change: transform, opacity;
  animation: spectral-sweep 1.35s cubic-bezier(0.2, 0.7, 0.25, 1) 260ms both;
}

.home-hero-band .home-hero,
.event-archive > * {
  position: relative;
  z-index: 2;
}

.people .person,
.paper,
.resource-section {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  .people .person:hover,
  .paper:hover,
  .resource-section:hover {
    border-color: #74c9e8;
    box-shadow: 0 0.7rem 1.5rem rgba(5, 89, 130, 0.11);
    transform: translateY(-0.14rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-band::after,
  .event-archive::after {
    display: none;
    animation: none !important;
  }

  .people .person,
  .paper,
  .resource-section {
    transition: none !important;
  }
}

/* A faint molecular-orbital field gives the home thesis a subject-specific signature. */
.home-hero {
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  z-index: 0;
  inset: -1rem -2rem;
  background:
    repeating-radial-gradient(ellipse at 72% 50%, transparent 0 2.3rem, rgba(119, 224, 255, 0.1) 2.34rem 2.41rem, transparent 2.46rem 4.7rem),
    repeating-radial-gradient(ellipse at 53% 50%, transparent 0 3.25rem, rgba(119, 224, 255, 0.055) 3.29rem 3.35rem, transparent 3.4rem 6.55rem);
  content: "";
  opacity: 0.68;
  pointer-events: none;
  transition: transform 260ms ease;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .home-hero:hover::before {
    transform: translate3d(0.25rem, -0.15rem, 0);
  }
}

/* Papers read like laser-addressed records rather than a generic list. */
.paper {
  position: relative;
  overflow: hidden;
}

.paper::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  width: 0.2rem;
  background: #42cef2;
  content: "";
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (hover: hover) {
  .paper:hover::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .paper:hover .p-title,
  .paper:hover .p-title a {
    color: #076fa7 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .paper::before {
    transition: none !important;
  }
}

/* Contact becomes a clear point of entry: one strong signal card, then practical detail. */
.contact-hub {
  max-width: 66rem !important;
  padding: 0 !important;
  overflow: hidden;
  background: #eef6fc !important;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  color: #f3fbff;
  background:
    radial-gradient(circle at 84% 18%, rgba(58, 204, 241, 0.28), transparent 16rem),
    linear-gradient(135deg, #041827, #083752 62%, #0a5f84);
}

.contact-hero-copy {
  max-width: 54rem;
}

.contact-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 232, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 232, 255, 0.08) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
}

.contact-kicker,
.contact-card-label {
  margin: 0 !important;
  color: #62d8f5 !important;
  font-family: var(--font-code) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-hero h1 {
  margin: 0.55rem 0 0.8rem !important;
  color: #f5fcff !important;
  font-size: clamp(2.35rem, 5vw, 4.25rem) !important;
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-hero-copy > p:last-child {
  max-width: 48ch;
  margin: 0 !important;
  color: #c4e8f5 !important;
  font-size: 1.08rem !important;
  line-height: 1.65;
}

.contact-mail {
  display: grid;
  gap: 0.42rem;
  align-self: stretch;
  padding: 1.2rem 1.3rem;
  color: #e9faff !important;
  text-decoration: none !important;
  background: rgba(4, 31, 48, 0.5);
  border: 1px solid rgba(124, 225, 250, 0.64);
  border-radius: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 1rem 2.2rem rgba(0, 0, 0, 0.18);
  transition: transform 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.contact-mail-label {
  color: #65dbf6;
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-mail strong {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: anywhere;
}

.contact-mail > span:last-child {
  justify-self: end;
  color: #72e1ff;
  font-size: 1.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.contact-card,
.contact-signal {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #f9fcff;
  border: 1px solid #c5ddec;
  border-radius: 0.45rem;
  box-shadow: 0 0.65rem 1.4rem rgba(5, 64, 99, 0.07);
}

.contact-card h2 {
  margin: 0.5rem 0 0.7rem !important;
  color: #082a43 !important;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important;
  line-height: 1.15;
}

.contact-card p,
.contact-card address,
.contact-card li,
.contact-signal p {
  color: #163c56 !important;
  font-size: 0.98rem !important;
  line-height: 1.68;
}

.contact-address-card address {
  margin: 1rem 0;
  font-style: normal;
  border-top: 1px solid #d5e5f0;
  border-bottom: 1px solid #d5e5f0;
  padding: 0.8rem 0;
}

.contact-text-link {
  color: #076fa7 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.contact-opportunities-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.contact-status {
  flex: 0 0 auto;
  padding: 0.32rem 0.45rem;
  color: #075d88;
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #dff4ff;
  border: 1px solid #9ed8ec;
  border-radius: 0.2rem;
}

.contact-position {
  margin-top: 1rem;
  padding: 0.9rem 0 0.1rem 1rem;
  border-top: 1px solid #d5e5f0;
  border-left: 0.22rem solid #3fc8ee;
}

.contact-position h3 {
  margin: 0 0 0.3rem !important;
  color: #0875ad !important;
  font-size: 1rem !important;
  font-weight: 750;
}

.contact-position p {
  margin: 0 !important;
}

.contact-position ol {
  margin: 0.65rem 0 0.45rem;
  padding-left: 1.25rem;
}

.contact-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
  background: linear-gradient(105deg, #e1f4ff, #f9fcff 62%, #d5efff);
}

.contact-signal > div {
  max-width: 45ch;
}

.contact-signal p:last-child {
  margin: 0.45rem 0 0 !important;
}

.contact-signal a {
  color: #076fa7 !important;
  font-weight: 750;
  text-decoration-color: rgba(7, 111, 167, 0.35);
}

.contact-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.contact-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.38rem 0.58rem;
  color: #075d88 !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #abd8eb;
  border-radius: 0.28rem;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

@media (hover: hover) {
  .contact-quicklinks a:hover,
  .contact-quicklinks a:focus-visible {
    color: #043c5d !important;
    background: #dff4ff;
    border-color: #5ec5e7;
    transform: translateY(-0.1rem);
  }
}

.contact-signal img {
  width: clamp(6rem, 12vw, 9rem) !important;
  max-width: 9rem !important;
  margin: -0.35rem 0 -0.75rem;
  filter: drop-shadow(0 0.65rem 0.85rem rgba(5, 81, 120, 0.16));
}

@media (hover: hover) {
  .contact-mail:hover,
  .contact-mail:focus-visible {
    color: #ffffff !important;
    background: rgba(12, 87, 121, 0.58);
    box-shadow: inset 0 0 0 1px rgba(183, 244, 255, 0.2), 0 1.15rem 2.5rem rgba(0, 0, 0, 0.22);
    transform: translateY(-0.16rem);
  }
}

@media (max-width: 48rem) {
  .contact-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-mail {
    min-height: 8rem;
  }
}

@media (max-width: 42rem) {
  .contact-hero {
    padding: 1.5rem;
  }

  .contact-grid {
    padding: 0.85rem;
  }

  .contact-signal {
    align-items: flex-end;
    gap: 0.6rem;
    margin: 0 0.85rem 0.85rem;
    padding: 1rem;
  }

  .contact-signal img {
    width: 5.25rem !important;
    min-width: 5.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-mail {
    transition: none !important;
  }
}

/* Keep the navigation geometry identical on pages that still load public1.css. */
.navbar .container-fluid {
  width: min(100%, var(--max-content)) !important;
  max-width: var(--max-content) !important;
}

@media (min-width: 36rem) {
  .navbar .navbar-collapse {
    flex: 1 1 0;
    min-width: 0;
  }

  .navbar .navbar-nav.nav-fill {
    display: flex;
    width: 100% !important;
  }

  .navbar .navbar-nav.nav-fill > .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }
}