/* Member layout: presentation only. Keep profile text, images, and links unchanged. */
#container {
  box-sizing: border-box;
}
#contents {
  box-sizing: border-box;
}
#main_nonsub.member-layout-root {
  box-sizing: border-box;
  width: 100%;
  float: none;
  padding: 26px 16px 32px;
}
#main_nonsub.member-layout-root .member-section {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 32px;
}
#main_nonsub.member-layout-root .member-section-title {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 10px 15px;
  overflow: visible;
  border-left: 5px solid #32b6cb;
  border-radius: 4px;
  background: #123b64;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
/* Students: two profiles per row, with the two-card group centered. */
#main_nonsub.member-layout-root .member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}
/* Faculty: one profile per row. */
#main_nonsub.member-layout-root .member-section-faculty .member-list {
  grid-template-columns: minmax(0, 1fr);
}
#main_nonsub.member-layout-root .member-card {
  box-sizing: border-box;
  min-width: 0;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #dfe6ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 53, 82, .05);
}
#main_nonsub.member-layout-root .member-section-faculty .member-card {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}
#main_nonsub.member-layout-root .member-card-profile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Same photo frame size aligns photos vertically from one row to the next. */
#main_nonsub.member-layout-root .member-photo-wrap {
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 7px;
  background: #f1f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main_nonsub.member-layout-root .member-section-faculty .member-photo-wrap {
  height: 190px;
}
#main_nonsub.member-layout-root img.member-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
}
#main_nonsub.member-layout-root .member-photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f4f7fa, #e7edf3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}
#main_nonsub.member-layout-root .member-placeholder-head {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #c3ced8;
}
#main_nonsub.member-layout-root .member-placeholder-body {
  display: block;
  width: 95px;
  height: 48px;
  border-radius: 55px 55px 0 0;
  background: #c3ced8;
}
#main_nonsub.member-layout-root .member-name {
  margin: 10px 0 0;
  padding: 0;
  color: #183e63;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}
#main_nonsub.member-layout-root .member-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#main_nonsub.member-layout-root .member-description {
  color: #303b46;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
#main_nonsub.member-layout-root .member-description br + br {
  content: "";
  display: block;
  margin-top: .4em;
}
#main_nonsub.member-layout-root .member-attribution {
  margin: auto 0 0;
  padding: 10px 0 0;
  color: #637487;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  border-top: 1px solid #e6ebf0;
}
#main_nonsub.member-layout-root .member-section:not(.member-section-faculty) .member-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 9px);
}
#main_nonsub.member-layout-root .member-backtop {
  max-width: 920px;
  margin: 8px auto 0;
  text-align: right;
}
#main_nonsub.member-layout-root .member-backtop a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #d7e1eb;
  border-radius: 5px;
  color: #183e63;
  text-decoration: none;
}
#main_nonsub.member-layout-root .member-backtop a:hover {
  background: #eef5fa;
}
@media (max-width: 960px) {
  #container { box-sizing: border-box; width: 100%; }
  #contents { box-sizing: border-box; width: 100%; padding: 0 8px; }
  ul#menu { display: flex; flex-wrap: wrap; width: 100%; height: auto; }
  ul#menu li { float: none; flex: 1 1 16%; height: auto; }
  ul#menu li a { box-sizing: border-box; width: 100%; min-height: 34px; height: auto; padding: 8px 4px; font-size: 12px; }
  #header { box-sizing: border-box; min-height: 62px; height: auto; padding: 8px; }
  #header h1 { position: static; line-height: 1.5; text-align: right; }
}
@media (max-width: 680px) {
  #main_nonsub.member-layout-root { padding: 18px 4px 24px; }
  #main_nonsub.member-layout-root .member-section-title { font-size: 17px; }
  #main_nonsub.member-layout-root .member-list { gap: 10px; }
  #main_nonsub.member-layout-root .member-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }
  #main_nonsub.member-layout-root .member-section-faculty .member-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
  }
  #main_nonsub.member-layout-root .member-photo-wrap { height: 112px; }
  #main_nonsub.member-layout-root .member-section-faculty .member-photo-wrap { height: 145px; }
  #main_nonsub.member-layout-root .member-name { font-size: 12px; }
  #main_nonsub.member-layout-root .member-description { font-size: 12px; line-height: 1.7; }
  #main_nonsub.member-layout-root .member-attribution { font-size: 11px; }
  #main_nonsub.member-layout-root .member-section:not(.member-section-faculty) .member-card:only-child { width: calc(50% - 5px); }
  ul#menu li { flex-basis: 33.333%; }
}
@media (max-width: 420px) {
  #main_nonsub.member-layout-root .member-list { grid-template-columns: minmax(0, 1fr); }
  #main_nonsub.member-layout-root .member-card,
  #main_nonsub.member-layout-root .member-section-faculty .member-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  #main_nonsub.member-layout-root .member-photo-wrap,
  #main_nonsub.member-layout-root .member-section-faculty .member-photo-wrap { height: 128px; }
  #main_nonsub.member-layout-root .member-section:not(.member-section-faculty) .member-card:only-child {
    grid-column: auto;
    width: 100%;
  }
}
