:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #dfe5eb;
  --line-strong: #c8d3dc;
  --text: #1f2a36;
  --muted: #5a6978;
  --navy: #173a5e;
  --teal: #2d7b76;
  --accent-soft: rgba(45, 123, 118, 0.08);
  --shadow: 0 18px 40px rgba(18, 42, 66, 0.06);
  --radius: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  line-height: 1.65;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 235, 0.9);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark {
  overflow: hidden;
  padding: 0;
  background: #ffffff;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.24s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

.section {
  padding: 5.5rem 0;
}

.section-first {
  padding: 4.5rem 0 4.5rem;
}

.alt-bg {
  background: var(--bg-soft);
  border-top: 1px solid rgba(223, 229, 235, 0.7);
  border-bottom: 1px solid rgba(223, 229, 235, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  max-width: 12ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: #2b3948;
  max-width: 55ch;
}

.hero-body {
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.22s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #0f2e4b;
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--navy);
  background: #fff;
}

.btn-secondary:hover {
  background: #f6f9fc;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.hero-meta li {
  color: var(--muted);
}

.panel-card,
.stat-card,
.highlight-card,
.info-card,
.research-card,
.mini-card,
.contact-card,
.pub-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-panel {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.7rem;
  margin-bottom: 1rem;
}

.panel-line {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.panel-label {
  margin: 0 0 0.5rem 0.8rem;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

.main-panel h2 {
  margin: 0 0 0.7rem 0.8rem;
  color: var(--navy);
  font-size: 1.5rem;
}

.main-panel p {
  margin: 0 0 0 0.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 62ch;
}

#publications .section-heading {
  max-width: 78rem;
}

#publications .section-heading h2 {
  white-space: nowrap;
}

#publications .section-heading p {
  max-width: 70ch;
}

.section-heading.compact {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.highlight-grid,
.research-grid,
.member-subgrid {
  display: grid;
  gap: 1.2rem;
}

.highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-card {
  padding: 1.35rem;
}

.highlight-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight-card h3,
.info-card h3,
.research-card h3,
.mini-card h3,
.pub-item h3,
.news-item h3,
.contact-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.info-stack {
  display: grid;
  gap: 1rem;
}

.info-card,
.mini-card {
  padding: 1.35rem;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card {
  padding: 1.4rem;
}

.card-topline {
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  margin-bottom: 1rem;
}

.research-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.member-feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.member-avatar {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #f5f8fb, #e8f0f7);
  box-shadow: var(--shadow);
}

.member-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.member-content h3 {
  margin-top: 0;
  color: var(--navy);
}

.member-role {
  margin-top: -0.1rem;
  color: var(--teal);
  font-weight: 600;
}

.member-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.member-meta-grid > div {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f9fbfc;
  border: 1px solid var(--line);
}

.meta-label,
.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.member-subgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pub-filter {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
}

.pub-filter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.pub-item {
  padding: 1.2rem 1.3rem;
}

.pub-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
}

.pub-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--teal);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  padding: 1.35rem;
}

.contact-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-grid,
  .contact-grid,
  .member-feature {
    grid-template-columns: 1fr;
  }

  .highlight-grid,
  .research-grid,
  .member-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-avatar {
    width: 120px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero h1 {
    max-width: none;
  }

  .stats-grid,
  .highlight-grid,
  .research-grid,
  .member-subgrid,
  .member-meta-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
  }

  .section,
  .section-first {
    padding: 4.2rem 0;
  }
}
.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px; /* square round */
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #d9e2ec;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-section {
  padding: 5.5rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.contact-info-card,
.contact-map-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.06);
}

.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-info-card p {
  margin: 0 0 10px;
}

.contact-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e6edf5;
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #publications .section-heading h2 {
    white-space: normal;
  }

  #publications .section-heading p {
    max-width: 100%;
  }
}

.pub-filter {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
  white-space: nowrap;
}

.grants-list {
  display: grid;
  gap: 1rem;
}

.grant-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}

.grant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.grant-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

.grant-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.35;
}

.grant-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.grant-meta > div {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f9fbfc;
  border: 1px solid var(--line);
}

.grant-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grant-description {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .grant-meta {
    grid-template-columns: 1fr;
  }
}

#grants .section-heading {
  max-width: 80rem;
}

#grants .section-heading p {
  max-width: 78ch;
}

@media (max-width: 760px) {
  #grants .section-heading {
    max-width: 100%;
  }

  #grants .section-heading p {
    max-width: 100%;
  }
}

.grant-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.grant-filter {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
  white-space: nowrap;
}

.grant-filter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.grants-list {
  display: grid;
  gap: 1rem;
}

.grant-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}

.grant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.grant-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

.grant-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.35;
}

.grant-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.grant-meta > div {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f9fbfc;
  border: 1px solid var(--line);
}

.grant-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .grant-meta {
    grid-template-columns: 1fr;
  }
}

.pub-link {
  margin-top: 0.75rem;
}

.pub-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
}

.pub-link a:hover {
  text-decoration: underline;
}

.pub-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.pub-link:hover {
  text-decoration: underline;
}

.detail-wrapper {
  text-align: center;
  margin-top: 28px;
}

.detail-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #0b3a66;
  border-radius: 999px;
  color: #0b3a66;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease;
}

.detail-btn:hover {
  background: #0b3a66;
  color: white;
}

.pub-inventors {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-number.currency {
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 760px) {
  .stat-number.currency {
    font-size: 1.15rem;
  }
}

.academic-profile {
  margin-top: 1.4rem;
}

.academic-profile h4 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.academic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.academic-card {
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
}

.academic-degree {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.academic-card h5 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.academic-card p {
  margin: 0 0 0.6rem;
  color: var(--text);
  line-height: 1.6;
}

.academic-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .academic-cards {
    grid-template-columns: 1fr;
  }
}

.profile-link {
  color: #0b5ed7;
  text-decoration: none;
}

.profile-link:hover {
  text-decoration: underline;
}

.pub-authors,
.pub-inventors {
  margin: 0.55rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.publication-more-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.pub-more-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}

.pub-more-btn:hover {
  background: #f6f9fc;
}
/* People subpages: collaborators, students, alumni */
.site-nav a.is-current {
  color: var(--teal);
  font-weight: 700;
}

.subpage-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  border-bottom: 1px solid rgba(223, 229, 235, 0.75);
}

.subpage-hero h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.12;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 80ch;
  margin: 0;
  color: #2b3948;
  font-size: 1.06rem;
}

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.people-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.people-tabs a:hover {
  text-decoration: none;
  background: #f6f9fc;
}

.people-tabs a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.profile-card,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 1.35rem;
}

.profile-top {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-photo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8fb, #e8f0f7);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card h2 {
  margin: 0.45rem 0 0.1rem;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.3;
}

.profile-subtitle {
  margin: 0;
  color: var(--muted);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.profile-meta-grid > div {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f9fbfc;
  border: 1px solid var(--line);
}

.profile-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
}

.profile-note strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.profile-note p {
  margin: 0;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-weight: 600;
  background: #fff;
}

.profile-links a:hover {
  text-decoration: none;
  background: #f6f9fc;
}

.empty-state {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.2rem;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.empty-state p {
  margin: 0 auto 1.2rem;
  max-width: 62ch;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-top,
  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 76px;
    height: 76px;
  }

  .empty-state {
    padding: 1.5rem;
  }
}


/* Student/Alumni self-submission portal */
.people-portal-action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.people-portal-action span {
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.portal-card {
  width: min(720px, calc(100% - 2rem));
  margin: 3.5rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.portal-card.narrow {
  width: min(480px, calc(100% - 2rem));
}

.portal-card h1 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  line-height: 1.2;
}

.portal-card p {
  color: var(--muted);
}

.portal-alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin: 1rem 0;
  border: 1px solid #bde5cd;
  background: #e9f7ef;
  color: #14532d;
}

.portal-alert.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-form-grid .full {
  grid-column: 1 / -1;
}

.portal-form-grid label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
}

.portal-form-grid input,
.portal-form-grid textarea,
.portal-form-grid select,
.portal-card input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.portal-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.portal-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .portal-form-grid {
    grid-template-columns: 1fr;
  }
  .portal-card {
    padding: 1.35rem;
    margin-top: 2rem;
  }
}
