/* ------------------ HERO: instructors horizontal + 3 TAs row ------------------ */
/* Keep existing vars; provide fallbacks */

:root {
  --page-max: 1100px;
  --hero-gutter: 1rem;
  --divider: rgba(0,0,0,0.08);
  --profile-size: 120px; /* smaller portrait size requested */
}

/* Ensure site bg unaffected */
body,
.site,
.main-wrapper,
.quarto-body {
  background: #ffffff !important;
  color: #111;
}

/* Hero container (unchanged alignment) */
.hero {
  display: flex;
  gap: 0;
  align-items: stretch;
  max-width: var(--page-max);
  margin: 2rem auto 6rem;
  padding: 0 var(--hero-gutter);
  box-sizing: border-box;
}

/* Left column stays flat colored; keep as you previously set */
.hero-left {
  flex: 2;
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Text sizing inside left column (unchanged) */
.hero-left h1 {
  background: var(--bg);
  color: var(--fg);
  font-size: 2.5rem;
  margin: 0 0 2rem 0;
  line-height: 1.05;
}

.hero-left p {
  background: var(--bg);
  color: var(--fg);
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Right column with vertical divider */
.hero-right {
  flex: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* align children to left so grids start at same left edge */
  justify-content: center;
  gap: 1rem;
  border-left: 1px solid var(--divider);
  padding-left: 2rem;
  box-sizing: border-box;
}

/* PROFILE (shared by instructors and TAs) */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Portrait sizing and look */
.profile img {
  width: var(--profile-size);
  height: var(--profile-size);
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 0.35rem;
  border: 3px solid rgba(0,0,0,0.06);
}

/* Bold name and role lines */
.profile strong {
  display: block;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.05rem;
  color: #111;
  font-size: 0.98rem;
}

.profile .role {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* Instructors: 2 across, left-aligned */
.instructors {
  display: grid;
  grid-template-columns: repeat(2, auto);   /* exactly two columns */
  gap: 1.25rem;
  justify-content: center;                  /* whole grid centred */
  align-items: start;
  margin-top: 2.5rem;
}

/* force the 3rd card to sit underneath the 1st one */
.instructors .profile:nth-child(3) {
  grid-column: 1 / 2;                       /* same column as 1st profile */
}

/* Ensure the right column's grids don't overflow and stay tidy */
.instructors .profile,
.tas .profile {
  width: calc(var(--profile-size) + 8px); /* image + small border space for consistent column widths */
}

/* horizontal TA row */
.tas {
  display: flex;          /* row instead of column */
  justify-content: flex-start;
  gap: 1.5rem;            /* space between cards */
  flex-wrap: wrap;        /* allows wrapping on very small screens */
}

/* SYLLABUS TABLE */
.syllabus-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;           /* space between rows */
  font-size: 0.95rem;
  line-height: 1.45;
}

.syllabus-table th {
  text-align: left;
  background: #00539B;             /* Duke Blue */
  color: #fff;
  padding: 0.6rem 0.8rem;
}

.syllabus-table td {
  background: #f9f9f9;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.syllabus-table tr:nth-child(2n) td {
  background: #f3f3f3;
}

.syllabus-table td:nth-child(1),
.syllabus-table td:nth-child(2) {
  font-weight: 600;
  width: 6rem;
}

.syllabus-table td:nth-child(3) {
  font-weight: 600;
  color: #00539B;
}

.syllabus-table td:nth-child(4) {
  white-space: normal;
  word-break: break-word;
}
