/* ==========================================================================
   Board member profile (2026 redesign, BoardMember.dc.html):
   single-board_member.php. Left: label, name (Sora), title, the short
   description as the opening line, the LinkedIn pill, bio, "On the Board"
   (what the role involves, with a link to the contact form) and the
   credentials box. Right: the portrait over soft brand blurs. Below: Back to
   the Board and previous / next members, then the closing panel (Volunteer /
   Contact the Chapter). Stacked from 1000px down; phones follow the mobile
   prototype (portrait first, square).
   ========================================================================== */
.member-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px; /* Foot: every hero's 96px (was 88px; uniform heroes, 2026-10-27). */
  background: var(--surface-soft);
  color: var(--ink-strong);
  font-family: var(--font-ui);
}

.member-hero-inner,
.member-nav-inner {
  width: min(var(--max-wide), calc(100% - 42px));
}

.member-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.member-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.member-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-label {
  color: var(--purple);
  font-size: var(--text-ui-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.member-head h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

/* The Title as a subtitle (UI/UX review: a second uppercase label under the term label competed with it), and the
   LinkedIn button beside it. */
.member-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 2px;
}

/* Under the Title, one quiet line: a volunteer's university / organization and service dates (single-volunteer.php),
   a Student Board member's university. */
.member-meta {
  margin: 0;
  color: var(--muted-ui);
  font-size: var(--text-ui);
  line-height: 1.5;
}

.member-role {
  color: var(--cyan-ink-strong);
  font-family: var(--font-display);
  font-size: var(--text-ui-step);
  font-weight: 700;
  line-height: 1.3;
}

/* The short description: the profile's opening line, at the design system's intro size. */
.member-lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-strong);
  font-size: var(--text-ui-xl);
  font-weight: 500;
  line-height: 1.55;
}

.member-linkedin {
  height: var(--ds-button-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--purple-wash);
  color: var(--purple);
  font-size: var(--text-ui);
  font-weight: 700;
}

.member-linkedin:hover {
  background: var(--purple-tint-ui);
  color: var(--purple-press);
}

.member-linkedin svg {
  width: 16px;
  height: 16px;
}

.member-bio {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--muted-ui);
  font-size: var(--text-ui-lead);
  line-height: 1.75;
}

.member-bio p {
  margin: 0;
}

.member-bio a {
  color: var(--purple);
  text-decoration: underline;
}

/* "On the Board" (what the role involves, and the contact form on its topic) and the credentials: two boxes at the
   column's width. */
.member-duty,
.member-facts {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: #fff;
}

.member-duty {
  border-color: var(--purple-tint-ui);
  background: var(--purple-wash-hover);
}

.member-duty h2,
.member-facts h2 {
  margin: 0;
  color: var(--purple);
  font-family: var(--font-ui);
  font-size: var(--text-ui-2xs);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-duty p {
  margin: 0;
  color: var(--ink-strong);
  font-size: var(--text-ui-md);
  line-height: 1.6;
}

/* A quiet text link (the role's contact route, never the person's own address). */
.member-duty a {
  align-self: flex-start;
  color: var(--purple);
  font-size: var(--text-ui);
  font-weight: 700;
  transition: color .15s ease;
}

.member-duty a:hover {
  color: var(--ink-strong);
}

.member-creds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-creds li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--text-ui);
  line-height: 1.5;
}

.member-creds li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--join);
  transform: translateY(-1px);
}

/* Portrait */
.member-photo {
  position: relative;
}

.member-blur {
  position: absolute;
  border-radius: var(--radius-round);
  filter: blur(70px);
  pointer-events: none;
}

.member-blur.is-violet {
  left: -40px;
  top: -30px;
  width: 260px;
  height: 260px;
  background: var(--violet);
  opacity: .45;
}

.member-blur.is-orange {
  right: -30px;
  top: 200px;
  width: 220px;
  height: 220px;
  background: var(--join);
  opacity: .35;
}

.member-blur.is-cyan {
  left: 80px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  background: var(--highlight);
  opacity: .35;
}

.member-portrait {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 8px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-menu);
}

.member-portrait--initials {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-figure);
  font-weight: 700;
}

/* Board navigation */
.member-nav {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  font-family: var(--font-ui);
}

.member-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.member-back {
  flex-shrink: 0;
  padding: 0 26px;
}

.member-back svg {
  width: 16px;
  height: 16px;
}

.member-steps {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-step {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink-strong);
  transition: border-color .15s ease;
}

.member-step:hover {
  border-color: var(--line-control);
}

.member-step:hover .member-step-name {
  color: var(--purple);
}

.member-step--next {
  flex-direction: row-reverse;
}

.member-step-photo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  object-fit: cover;
  object-position: center top;
  background: var(--purple-wash-hover);
}

.member-step-initials {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: var(--text-ui-sm);
  font-weight: 700;
}

.member-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-step--next .member-step-text {
  align-items: flex-end;
  text-align: right;
}

.member-step-dir {
  color: var(--muted-strong);
  font-size: var(--text-ui-2xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.member-step-name {
  font-family: var(--font-display);
  font-size: var(--text-ui-md);
  font-weight: 700;
  transition: color .15s ease;
}

.member-pos {
  color: var(--muted-strong);
  font-size: var(--text-ui-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* Closing panel (UI/UX review: the page ended with no next step): the About page's soft violet panel, with its
   wording; Volunteer / Contact the Chapter. */
.member-close {
  padding: 0 0 96px;
  background: #fff;
  color: var(--ink-strong);
  font-family: var(--font-ui);
}

.member-close-inner {
  width: min(var(--max-wide), calc(100% - 42px));
}

.member-close-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 64px;
  border-radius: var(--radius-card);
  background: var(--purple-wash-hover);
}

.member-close-panel .member-blur {
  filter: blur(80px);
}

.member-close-panel .member-blur.is-violet {
  left: -40px;
  top: -60px;
  width: 320px;
  height: 320px;
}

.member-close-panel .member-blur.is-orange {
  left: auto;
  right: 120px;
  top: auto;
  bottom: -120px;
  width: 320px;
  height: 320px;
}

.member-close-panel .member-blur.is-cyan {
  display: block;
  left: auto;
  right: -60px;
  top: -40px;
  bottom: auto;
}

.member-close-text {
  position: relative;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-close-text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-cta);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.member-close-text p {
  margin: 0;
  color: var(--muted-ui);
  font-size: var(--text-ui-md);
  line-height: 1.6;
}

.member-close-actions {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.member-close-actions .pill-button {
  justify-content: center;
}

.member-hero :focus-visible,
.member-nav :focus-visible,
.member-close :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}

/* Stacked: text, then the portrait (narrower). */
@media (max-width: 1000px) {
  .member-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .member-photo {
    max-width: 440px;
  }

  .member-nav-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .member-steps {
    justify-content: space-between;
  }

  .member-back {
    align-self: flex-start;
  }

  .member-close-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 48px;
  }

  .member-close-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
}

/* Phones (mobile prototype): portrait first and square; bio and box full width. */
@media (max-width: 767px) {
  .member-hero {
    padding: 24px 0 36px; /* Foot: every hero's 36px on phones (was 32px). */
  }

  .member-hero-inner {
    gap: 18px;
  }

  .member-grid {
    gap: 18px;
  }

  .member-photo {
    order: -1;
    max-width: none;
  }

  .member-portrait {
    aspect-ratio: 1 / 1;
    border-width: 6px;
    border-radius: var(--radius-xl);
  }

  .member-blur {
    filter: blur(55px);
  }

  .member-blur.is-violet {
    left: -30px;
    top: 0;
    width: 200px;
    height: 200px;
  }

  .member-blur.is-orange {
    right: -40px;
    top: 160px;
    width: 180px;
    height: 180px;
  }

  .member-blur.is-cyan {
    display: none;
  }

  .member-main {
    gap: 18px;
  }

  .member-head {
    gap: 8px;
  }

  .member-label {
    font-size: var(--text-ui-3xs);
  }

  .member-head h1 {
    line-height: 1.08;
    letter-spacing: -.03em;
  }

  .member-role-row {
    gap: 10px 16px;
  }

  .member-role {
    font-size: var(--text-ui-lead);
  }

  .member-lead {
    font-size: var(--text-ui-md);
  }

  .member-bio {
    gap: 16px;
    font-size: var(--text-ui-md);
    line-height: 1.7;
  }

  .member-duty {
    padding: 18px 20px;
    border-radius: var(--ds-radius-sm);
  }

  .member-duty p {
    font-size: var(--text-ui);
  }

  /* The credentials become a plain block with a rule above. */
  .member-facts {
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    background: none;
  }

  .member-creds li {
    gap: 10px;
    font-size: var(--text-ui-sm);
  }

  .member-nav {
    padding: 8px 0 40px;
    border-top: 0;
  }

  .member-nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .member-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .member-pos,
  .member-step-photo {
    display: none;
  }

  .member-step {
    min-height: 72px;
    padding: 12px;
  }

  .member-step--next {
    flex-direction: row;
    justify-content: flex-end;
  }

  .member-step-dir {
    font-size: var(--text-ui-3xs);
  }

  .member-step-name {
    font-size: var(--text-ui-sm);
  }

  .member-back {
    align-self: stretch;
    height: var(--ds-button-md); /* One of the three button heights (was 52px; uniformity review, 2026-10-29). */
    justify-content: center;
  }

  .member-close {
    padding: 0 0 40px;
  }

  .member-close-panel {
    padding: 28px 22px;
    border-radius: var(--radius-xl);
  }

  .member-close-actions {
    flex-direction: column;
    align-self: stretch;
  }
}
