/* ============================================================
   Medical Alumni Association — Student Chapter
   An overlay on the parent design system (/css/styles.css).
   Same navy and gold, but warmer, louder and younger: the
   chapter crest is #0d1260 navy with #efbe21 gold, so the
   accent here is the brighter gold, used for energy only.
   ============================================================ */

:root {
  --sc-accent: #efbe21;       /* chapter gold, decorative only - never as text on white */
  --sc-accent-ink: #7a5c00;   /* the same hue made legible on light ground */
  --sc-navy: #0d1260;         /* chapter crest navy */
}

/* ---------- Section bar ----------
   The Chapter is a section of the Association's site, not a separate one: the
   site header above this is identical on every page, and this bar carries the
   section's own name and navigation, the way a department sits under a masthead. */
.sc-subnav {
  background: var(--sc-navy);
  border-bottom: 3px solid var(--sc-accent);
}
.sc-subnav-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.sc-subnav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.sc-subnav-brand:hover { text-decoration: none; color: var(--sc-accent); }
.sc-subnav-brand img { width: 30px; height: 30px; border-radius: 4px; }
.sc-subnav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  margin-right: auto;
}
.sc-subnav-links::-webkit-scrollbar { display: none; }
.sc-subnav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}
.sc-subnav-links a:hover { color: var(--white); text-decoration: none; }
.sc-subnav-links a.on { color: var(--white); border-bottom-color: var(--sc-accent); font-weight: 600; }
.sc-subnav-social {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-subnav-social:hover { color: var(--sc-accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero--photo .hero-bg img { object-position: center 42%; }
.hero.hero--photo .hero-eyebrow { color: var(--sc-accent); }

/* ---------- Faculty chips ---------- */
.sc-faculties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1.6rem;
}
.sc-faculties li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}
.section-navy .sc-faculties li {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Pillars ---------- */
.sc-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sc-pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sc-accent);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.sc-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.sc-pillar p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.sc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.sc-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.sc-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 0.5s ease; }
.sc-gallery figure:hover img { transform: scale(1.04); }
.sc-gallery .wide { grid-column: span 2; }

/* ---------- Event feature ---------- */
.sc-event {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.6rem;
  align-items: center;
}
.sc-event + .sc-event { margin-top: 3.4rem; }
.sc-event.flip .sc-event-media { order: 2; }
.sc-event-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  /* height:auto matters: the width/height attributes on the <img> are a
     presentational hint, and setting only the width in CSS leaves the
     attribute height in force, which stretches the photo. */
  height: auto;
}
.sc-event-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sc-accent-ink);
  margin-bottom: 0.7rem;
  display: block;
}
.sc-event h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 0.8rem; }
.sc-event p { color: var(--ink-soft); margin-bottom: 0.9rem; }

/* ---------- Roll of partners ---------- */
.sc-list { list-style: none; display: grid; gap: 0.7rem; }
.sc-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-accent);
}
.sc-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Small print ---------- */
.sc-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sc-accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.sc-note p + p { margin-top: 0.7rem; }

/* ---------- Year labels on people ---------- */
.person .sc-school { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.45; }

@media (max-width: 900px) {
  .sc-subnav-inner { gap: 1rem; }
  .sc-subnav-brand span { display: none; }
  .sc-subnav-social { display: none; }
  .sc-pillars { grid-template-columns: 1fr; }
  .sc-event { grid-template-columns: 1fr; gap: 1.6rem; }
  .sc-event.flip .sc-event-media { order: 0; }
  .sc-gallery { grid-template-columns: repeat(2, 1fr); }
  .sc-gallery .wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .sc-gallery { grid-template-columns: 1fr; }
  .sc-gallery .wide { grid-column: span 1; }
}

/* ---------- Layout tweaks for this section only ---------- */
/* The committee and the project directors are five to a row, not four. */
@media (min-width: 1100px) {
  .people-grid { grid-template-columns: repeat(5, 1fr); }
}
/* On the join page the form leads, so it takes the wider column
   (the parent contact page has the navy card first, hence 0.9/1.1). */
.contact-grid { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
