/* Size the member dashboard against the working area beside its account menu. */
#main:has(#history.member-overview:not([hidden])) {
  background: linear-gradient(140deg, #ede5f4, #f7f2fa 42rem, #fcfafd 70rem);
}

#main #history.member-overview {
  width: min(72rem, calc(100% - clamp(2rem, 6%, 6rem)));
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(1.45rem, 4vw, 3.4rem);
}

#history.member-overview .dashboard-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin: 0 0 1.25rem;
}

#history.member-overview .dashboard-heading h1 {
  margin: 0;
  color: #34203d;
  font-weight: 740;
  letter-spacing: -.045em;
  text-wrap: balance;
}

#history.member-overview .dashboard-progress-links {
  display: flex;
  gap: 0 1rem;
}

#history.member-overview .dashboard-progress-links a,
#history.member-overview .dashboard-brief-path {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #5a3669;
  font: 650 .875rem/1.35 var(--practice-title);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #bc9cc8;
  text-underline-offset: .24em;
}

#main #history.member-overview .dashboard-practice-paths .practice-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 1.6cqi, 1.15rem);
  background: transparent;
  border-radius: 0;
  padding: 0;
}

#main #history.member-overview .practice-path-grid .path-card {
  grid-template-columns: clamp(4.75rem, 22%, 7.75rem) minmax(0, 1fr);
  gap: clamp(.7rem, 1.6cqi, 1.4rem);
  padding: clamp(1rem, 2.2cqi, 1.65rem);
  min-height: 10.7rem;
  height: auto;
  border: 1px solid #dfd3e7;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 3px 0 #50325c0b, 0 7px 24px -21px #52315d80;
}

#main #history.member-overview .practice-path-grid .path-card::after { content: none; }

#main #history.member-overview .path-title {
  font-size: clamp(1.28rem, 2.9cqi, 1.7rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}

#main #history.member-overview .path-label {
  color: #73587d;
  font-size: .8125rem;
  letter-spacing: .055em;
}

#main #history.member-overview .path-description {
  max-width: 42ch;
  margin: .42rem 0 0;
  line-height: 1.45;
}

#main #history.member-overview .path-detail {
  margin-top: .65rem;
  color: #6b3b7b;
  font-size: .9rem;
}

#main #history.member-overview .path-card:hover,
#main #history.member-overview .path-card:focus-visible {
  border-color: #a179b0;
  box-shadow: 0 3px 0 #63377b21, 0 8px 22px -18px #62307491;
}

#history.member-overview .dashboard-focus.dashboard-practice-paths { margin-bottom: 1rem; }
#history.member-overview .dashboard-brief-path { margin-top: .35rem; }

#history.member-overview .dashboard-resume {
  justify-content: flex-start;
  gap: .65rem 1rem;
  padding: .7rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid #cbb2d8;
  background: #f9f5fc;
}

#history.member-overview .dashboard-resume > div { flex: 1 1 11rem; min-width: 0; }
#history.member-overview .dashboard-resume > strong { flex: 1 1 12rem; }
#history.member-overview .dashboard-resume strong { color: #452c50; overflow-wrap: anywhere; }
#history.member-overview .dashboard-resume .eyebrow { font-size: .8125rem; color: #694d73; }
#history.member-overview .dashboard-resume .case-thumb {
  display: block;
  width: 3.85rem;
  height: 3.3rem;
  border-radius: .65rem;
  object-fit: cover;
}

#history.member-overview .dashboard-seasonal-feature.monthly-member-feature,
#history.member-overview .dashboard-records .monthly-saved,
#history.member-overview .dashboard-records .history-row {
  border-radius: 1.1rem;
}

#history.member-overview .dashboard-records .history-row { border-color: #ded4e2; }

#history.member-overview .dashboard-record-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.75rem), 1fr));
  gap: .65rem;
  margin: .7rem 0 .4rem;
}

#history.member-overview .dashboard-record-choices a {
  display: flex;
  gap: .75rem;
  padding: .65rem .85rem;
  border: 1px solid #ded4e2;
  border-radius: .88rem;
  color: #51315e;
  background: #fff;
  text-decoration: none;
}

#history.member-overview .dashboard-record-choices a:hover { border-color: #a179b0; }
#history.member-overview .dashboard-record-choices img { width: 2.8rem; height: 2.8rem; object-fit: contain; }

@container member-home (max-width: 47rem) {
  #main #history.member-overview .dashboard-practice-paths .practice-path-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #main #history.member-overview .practice-path-grid .path-card {
    min-height: 0;
    grid-template-columns: clamp(4.2rem, 21cqi, 7rem) minmax(0, 1fr);
  }
}

@container member-home (max-width: 22rem) {
  #main #history.member-overview .practice-path-grid .path-card {
    grid-template-columns: clamp(3.35rem, 18cqi, 4rem) minmax(0, 1fr);
    gap: .65rem;
    padding: 1rem .82rem;
  }
  #history.member-overview .dashboard-heading { gap: .1rem; }
  #history.member-overview .dashboard-resume .case-thumb { width: 3.1rem; height: 3.1rem; }
}

@media (forced-colors: active) {
  #main #history.member-overview .practice-path-grid .path-card { border: 1px solid LinkText; }
  #history.member-overview :is(.dashboard-progress-links a, .dashboard-brief-path) { text-decoration-color: LinkText; }
}
