.member-plans {
  padding-block: clamp(25px, 4vw, 58px) clamp(36px, 6vw, 72px);
  max-width: 1140px;
}
.plan-page-heading {
  border-top: 3px solid var(--jade);
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.plan-page-heading h1 {
  font: 700 clamp(32px, 3.7vw, 52px) / 1.25 var(--serif);
  margin: 0;
  color: var(--ink);
}
.plan-page-heading p {
  color: var(--muted);
  margin: 8px 0 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
  align-items: stretch;
}
.plan-grid:has(> .membership-plan:only-child) {
  max-width: 720px;
  grid-template-columns: 1fr;
}
.membership-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd7d3;
  background: #fff;
  min-width: 0;
  scroll-margin-top: 20px;
}
.membership-plan > header {
  padding: clamp(18px, 2.5vw, 32px);
  color: #164d48;
  background: #e4f1ea;
  border-top: 4px solid #268b71;
}
.membership-plan[data-plan="SVIP"] > header {
  background: #173849;
  color: #e4f7f0;
  border-top-color: #65b597;
}
.plan-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.plan-type span {
  border: 1px solid currentColor;
  padding: 1px 7px;
  font-size: 12px;
  border-radius: 3px;
}
.membership-plan h2 {
  margin: 0;
  font: 700 clamp(24px, 3vw, 36px) / 1.32 var(--serif);
}
.membership-plan > header p {
  margin: 7px 0 0;
  line-height: 1.65;
  opacity: 0.93;
}
.plan-price {
  margin-top: 17px;
  font-variant-numeric: tabular-nums;
}
.plan-price strong {
  font-size: clamp(22px, 2.3vw, 28px);
}
.plan-price span,
.membership-plan > header small {
  font-size: 14px;
}
.plan-contents {
  padding: clamp(18px, 2.3vw, 28px) clamp(18px, 2.5vw, 32px);
  flex: 1;
}
.plan-contents h3 {
  margin: 15px 0 6px;
  font-size: 17px;
}
.plan-intro,
.plan-benefits p,
.plan-topic-list p {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.plan-intro {
  font-size: 15px;
  margin: 0 0 14px;
}
.plan-benefits,
.plan-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-benefits li,
.plan-topic-list li {
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.plan-benefits li:last-child,
.plan-topic-list li:last-child {
  border: 0;
}
.plan-benefits strong,
.plan-topic-list strong {
  font-size: 15px;
  color: var(--ink);
}
.plan-benefits p,
.plan-topic-list p {
  margin: 3px 0 0;
  font-size: 14px;
}
.plan-topics {
  border-block: 1px solid var(--line);
  margin: 15px 0 0;
}
.plan-topics summary,
.current-plan details > summary {
  cursor: pointer;
  min-height: 41px;
  color: #126651;
  font-size: 14px;
  font-weight: 650;
}
.plan-topics summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan-topics summary span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 450;
}
.plan-topics[open] summary .icon {
  transform: rotate(180deg);
}
.membership-plan > footer {
  padding: 0 clamp(18px, 2.5vw, 32px) 24px;
}
.membership-plan > footer .btn {
  min-height: 43px;
}
.plan-empty {
  padding: 26px;
  border: 1px solid var(--line);
}
.plan-empty p {
  color: var(--muted);
  margin: 7px 0 14px;
}
.current-plan {
  padding: clamp(17px, 2vw, 25px);
  background: #f0f6f2;
  border: 1px solid #cadfd3;
  border-top: 3px solid #418b76;
  margin: 0 0 20px;
}
.current-plan > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.current-plan-label,
.current-plan > p {
  color: #4e665e;
  font-size: 14px;
}
.current-plan-label {
  font-size: 12px;
}
.current-plan h2 {
  font-family: inherit;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
  color: #173c36;
  margin: 1px 0 4px;
}
.current-plan-status {
  color: #255b49;
  background: #e0eae3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.current-plan > p {
  margin: 5px 0 0;
}
.current-plan details {
  border-top: 1px solid #c6d8cf;
  margin-top: 13px;
  padding-top: 8px;
}
.current-plan details summary {
  line-height: 37px;
}
.current-plan footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.activity-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 5px 0 16px;
}
.profile-service-links .member-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 690px) {
  .member-plans {
    padding-top: 22px;
  }
  .plan-page-heading {
    align-items: start;
    margin-bottom: 17px;
  }
  .plan-page-heading h1 {
    font-size: 31px;
  }
  .plan-page-heading .btn {
    font-size: 12px;
    padding: 7px 8px;
    min-height: 38px;
    white-space: nowrap;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-type {
    margin-bottom: 7px;
  }
  .plan-price {
    margin-top: 11px;
  }
  .plan-contents {
    padding-top: 15px;
  }
  .plan-benefits li {
    padding: 8px 0;
  }
  .membership-plan > footer .btn {
    width: 100%;
  }
  .activity-tabs .chip {
    font-size: 13px;
  }
  .current-plan {
    margin-bottom: 15px;
  }
}

.plan-index {
  display: none;
}
.current-entitlements {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
}
.current-entitlements li {
  color: #235548;
  font-size: 13px;
  background: #fff;
  border: 1px solid #c8dbd1;
  padding: 3px 8px;
  border-radius: 3px;
}
@media (max-width: 690px) {
  .plan-index {
    display: flex;
    gap: 8px;
    position: sticky;
    z-index: 2;
    top: 0;
    background: #fff;
    border-block: 1px solid var(--line);
    margin: 0 0 15px;
    padding: 5px 0;
  }
  .plan-index a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 5px;
    min-height: 38px;
    font-size: 13px;
    color: #174e46;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 3px;
  }
  .membership-plan {
    scroll-margin-top: 60px;
  }
}
.plan-page-heading h1 {
  font-family: inherit;
  font-size: clamp(29px, 3.1vw, 36px);
  font-weight: 720;
  letter-spacing: -0.03em;
}
.membership-plan h2 {
  font-family: inherit;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.plan-description {
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.5vw, 32px) 0;
}
.plan-description:empty {
  padding: 0;
}
.plan-description .plan-intro {
  margin: 0;
}
.plan-contents {
  padding-top: 8px;
}
.plan-contents h3 {
  margin: 8px 0 6px;
}
@media (min-width: 691px) {
  .plan-grid {
    row-gap: 0;
  }
  .membership-plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
  }
  .membership-plan > header {
    display: grid;
    grid-template-rows: auto auto minmax(3.25em, auto) auto auto;
    align-content: start;
  }
  .membership-plan .plan-type {
    grid-row: 1;
  }
  .membership-plan > header h2 {
    grid-row: 2;
  }
  .membership-plan > header > p {
    grid-row: 3;
  }
  .membership-plan .plan-price {
    grid-row: 4;
  }
  .membership-plan > header > small {
    grid-row: 5;
  }
  .membership-plan > footer {
    align-self: end;
  }
}
.member-profile .profile-mast {
  background: #f1f5f4;
  color: var(--ink);
  border: 1px solid #d3dfda;
  border-left: 3px solid #247e68;
  padding: 15px 20px;
  margin-bottom: 16px;
}
.member-profile .profile-mast h1 {
  font-weight: 700;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}
.member-profile .profile-mast p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #29433e;
  font-size: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.profile-mast p span {
  color: #51675e;
  border-left: 1px solid #bacac3;
  padding-left: 12px;
  font-size: 13px;
}
.member-profile .profile-mast .btn.ghost {
  color: var(--ink);
  border-color: #b5c8bf;
}
.profile-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.profile-quick a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1c4941;
  padding: 13px 10px;
  font-size: 14px;
}
.profile-quick a:hover {
  background: #edf5ef;
}
.profile-quick a .icon:last-child {
  margin-left: auto;
}
.profile-quick a + a {
  border-left: 1px solid var(--line);
}
@media (max-width: 690px) {
  .member-profile .profile-mast {
    padding: 10px 13px;
    margin-bottom: 9px;
  }
  .member-profile .profile-mast h1 {
    font-size: 21px;
  }
  .member-profile .profile-mast p {
    gap: 7px;
    margin-top: 2px;
  }
  .member-profile .profile-mast p span {
    padding-left: 7px;
  }
  .profile-quick a {
    flex-direction: column;
    padding: 10px 4px;
    font-size: 13px;
    gap: 4px;
    min-height: 49px;
  }
  .profile-quick a .icon:last-child {
    display: none;
  }
}
