.member-header { border-color: var(--edge); }
.member-header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(14px, 3.4vw, 44px);
}
.member-nav { display: flex; gap: clamp(12px, 2.2vw, 32px); overflow-x: auto; scrollbar-width: thin; }
.member-nav a {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 4px;
  min-height: 69px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 730;
  color: var(--muted);
}
.member-nav a:hover, .member-nav a[aria-current] { color: var(--accent); }
.member-nav a[aria-current] { border-color: var(--accent); }
.member-nav a:focus-visible { outline-offset: -4px; }
.member-area { min-height: min(730px, 80vh); background: var(--surface); padding-block: clamp(27px, 5vw, 58px) 76px; }
.member-layout { display: grid; grid-template-columns: minmax(168px, 224px) minmax(0, 1fr); grid-template-areas: "profile content"; align-items: start; gap: clamp(20px, 3.5vw, 42px); }
.member-sidebar { grid-area: profile; min-width: 0; border: 1px solid var(--edge); border-radius: 14px; background: #fff; padding: 18px; }
.member-profile { display: flex; align-items: center; gap: 12px; }
.member-profile > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
  font-weight: 780;
}
.member-profile > div { min-width: 0; }
.member-profile strong, .member-profile small { display: block; overflow-wrap: anywhere; }
.member-profile small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.member-side-links { margin-top: 14px; padding-top: 3px; border-top: 1px solid var(--edge); }
.member-side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  gap: 8px;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 710;
}
.member-side-links a:hover { text-decoration: underline; }
.member-side-links .icon { width: 16px; height: 16px; }
.member-content { grid-area: content; min-width: 0; }
.member-title { margin-bottom: 22px; }
.member-title h1 { font-size: clamp(30px, 5vw, 43px); }
.member-title p { margin-top: 7px; color: var(--muted); }
.member-spotlight {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  min-height: 230px;
  border: 1px solid #ced9f3;
  border-radius: 16px;
  background: var(--tint);
}
.member-spotlight-copy { padding: clamp(18px, 3vw, 32px); align-self: center; min-width: 0; }
.member-spotlight-copy .eyebrow { margin-bottom: 6px; }
.member-spotlight h2 { font-size: clamp(21px, 3.5vw, 29px); word-break: keep-all; }
.member-spotlight h2 + p { margin-top: 7px; font-size: 15px; color: #465773; }
.member-spotlight .button { margin-top: 15px; }
.member-spotlight .progress-line { margin-top: 12px; max-width: 360px; }
.member-spotlight img { height: 100%; width: 100%; object-fit: cover; }
.member-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 30px; }
.member-metrics div { display: grid; gap: 6px; padding: clamp(10px, 2vw, 17px); background: white; border: 1px solid var(--edge); border-radius: 12px; }
.member-metrics dt { color: var(--muted); font-weight: 670; font-size: 13px; word-break: keep-all; }
.member-metrics dd { display: flex; align-items: baseline; gap: 4px; margin: 0; font-size: clamp(23px, 3vw, 31px); font-weight: 790; }
.member-metrics dd span { font-size: 13px; font-weight: 620; color: var(--muted); }
.member-library > h2 { font-size: clamp(23px, 4vw, 30px); }
.member-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px; }
.member-filters a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 13px;
  min-height: 42px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 720;
}
.member-filters a span { font-size: 12px; opacity: .85; }
.member-filters a:hover, .member-filters a[aria-current] { border-color: #bdcaf0; background: var(--tint); color: var(--accent); }
.member-course-list { display: grid; gap: 9px; }
.member-course {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: white;
}
.member-course img { width: 100%; height: auto; border-radius: 8px; }
.member-course-status { color: var(--accent); font-size: 12px; font-weight: 750; }
.member-course h3 { margin-block: 3px 7px; font-size: 17px; }
.member-course h3 a:hover { color: var(--accent); text-decoration: underline; }
.member-course .progress-line { margin: 0; max-width: 365px; }
.member-empty { padding: 24px; border: 1px dashed #cbd6ea; border-radius: 12px; background: white; color: var(--muted); }
.member-empty h2 { margin-bottom: 11px; font-size: 20px; }

.study-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.study-heading .eyebrow { margin-bottom: 5px; }
.study-heading .study-outline-link { display: none; margin-bottom: 14px; }
.player-page .study-sidebar { scroll-margin-top: 15px; }

@media (max-width: 800px) {
  .member-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "profile"; gap: 16px; }
  .member-sidebar { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .member-side-links { margin: 0; padding: 0; border: 0; flex: none; }
  .member-header-inner { grid-template-columns: minmax(0, 1fr) max-content; gap: 0 10px; min-height: 0; }
  .member-header-inner .wordmark, .member-header-inner button { margin-block: 8px; }
  .member-nav { grid-column: 1/-1; grid-row: 2; }
  .member-nav a { min-height: 43px; }
}
@media (max-width: 720px) {
  .study-heading .study-outline-link { display: inline-flex; }
}
@media (max-width: 480px) {
  .member-spotlight { grid-template-columns: minmax(0, 1fr); }
  .member-spotlight img { height: 109px; object-position: 50% 44%; }
  .member-metrics { gap: 5px; }
  .member-metrics div { min-width: 0; }
  .member-course { grid-template-columns: minmax(48px, 22%) minmax(0, 1fr); gap: 10px; }
  .member-course .button { grid-column: 2; justify-self: start; }
  .member-course .progress-line { align-items: start; flex-wrap: wrap; gap: 3px 6px; }
}
