/* =====================================================================
   SHARED SHELL  --  header / red nav / sub nav / footer
   This block is identical on every page. If you change a shell color
   or spacing, update the same block in every css/*.css file.
   Brand red: #b00c14
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --brand-red: #b00c14;
  --brand-red-dark: #8e0a10;
  --ink: #1c1c1c;
  --ink-soft: #444;
  --line: #e2e0d4;
  --paper: #fbfbf3;        /* light parchment page background */
  --panel: #ffffff;
  --link: #2a5b8c;
  --link-hover: #b00c14;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.shell { max-width: var(--maxw); margin: 0 auto; }

/* ---- University header ---- */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  padding: 22px 24px;
}
.site-header .logo {
  height: 74px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ---- Top red nav (university-wide) ---- */
.top-nav { background: var(--brand-red); }
.top-nav .shell {
  display: flex;
  flex-wrap: wrap;
}
.top-nav a {
  flex: 1 1 auto;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 16px 14px;
  border-left: 1px solid rgba(255,255,255,0.14);
  transition: background 0.18s ease;
}
.top-nav a:first-child { border-left: none; }
.top-nav a:hover { background: var(--brand-red-dark); text-decoration: none; }
.top-nav a.active { background: var(--brand-red-dark); }

/* ---- Personal sub nav ---- */
.sub-nav {
  background: #f3f1e4;
  border-bottom: 1px solid var(--line);
}
.sub-nav .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 20px;
}
.sub-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 18px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sub-nav a:hover { color: var(--brand-red); text-decoration: none; }
.sub-nav a.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* ---- Generic content shell ---- */
main { padding: 38px 24px 60px; }
.content { max-width: var(--maxw); margin: 0 auto; }

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 6px;
  position: relative;
}
.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--brand-red);
  margin-top: 12px;
  border-radius: 2px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.site-footer .shell {
  padding: 20px 24px;
  font-size: 0.82rem;
  color: #8a8a82;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Back-to-top ---- */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6aa39a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.to-top:hover { background: #588a82; color: #fff; text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .top-nav .shell { flex-direction: column; }
  .top-nav a { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
  .top-nav a:first-child { border-top: none; }
  .sub-nav .shell { overflow-x: auto; }
  .sub-nav a { white-space: nowrap; }
  .site-header .logo { height: 54px; }
}

/* =====================================================================
   PAGE-SPECIFIC  --  Alumni (RA cards + graduate projects table)
   ===================================================================== */

.al-section { margin-bottom: 42px; }

.al-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-red);
}

.al-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: -6px 0 18px;
}

.al-list {
  margin: 0 0 8px;
  padding-left: 26px;
  display: grid;
  gap: 10px;
}
.al-list li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.al-list li strong { color: var(--ink); }

/* ---- Past RA cards (same .person pattern as Current Students) ---- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}
.person {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 15px 18px;
  transition: box-shadow 0.18s ease;
}
.person:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.person-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 5px;
}
.person-degree {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.person-proj {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}
.person-proj em {
  color: var(--brand-red);
  font-style: italic;
  font-weight: 600;
}

/* ---- Graduate projects table ---- */
.proj-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.97rem;
  
}
.proj-table thead th {
  background: var(--brand-red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.proj-table thead th.col-student {
  color:white;
}
.proj-table tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.5;
}
.proj-table tbody tr:nth-child(even) { background: #f7f5ea; }
.proj-table tbody tr:hover { background: #f1eede; }
.col-student { width: 22%; font-weight: 600;color: var(--ink); }
.col-project { width: 60%; }
.col-date { width: 18%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.proj-table .col-student { color: var(--ink); }
.proj-table tbody .col-project,
.proj-table tbody .col-date { font-weight: 400; }

.top-wrap { text-align: right; margin-top: 8px; }

/* ---- Mobile: stack table rows into labeled blocks ---- */
@media (max-width: 640px) {
  .proj-table, .proj-table thead, .proj-table tbody,
  .proj-table th, .proj-table td, .proj-table tr { display: block; }
  .proj-table thead { display: none; }
  .proj-table tbody tr {
    border-top: 1px solid var(--line);
    padding: 6px 0;
  }
  .proj-table tbody tr:first-child { border-top: none; }
  .proj-table tbody td {
    border: none;
    padding: 5px 16px;
    display: flex;
    gap: 10px;
  }
  .proj-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 110px;
    font-weight: 600;
    color: var(--brand-red);
  }
  .col-student, .col-project, .col-date { width: auto; }
}