/* The membership flow shares Peitho's existing editorial palette. */
.member-narrow {max-width:920px;margin:0 auto}
.member-narrow .page-head>div{min-width:0;overflow-wrap:anywhere}
.member-join>.page-head {max-width:750px}
.member-preline {white-space:pre-line;overflow-wrap:anywhere}
.member-duration-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:30px 0}
.member-duration {padding:25px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.member-duration h2 {font-family:var(--serif);font-weight:500;font-size:27px;margin:18px 0 12px}
.member-duration p {font-size:13px;color:var(--muted);margin:0;line-height:1.75}
.member-contact {display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:38px;align-items:center;padding:38px}
.member-contact h1,.member-contact h2,.member-status h2,.member-summary h2,.member-renew h2,.member-terms h2 {font-family:var(--serif);font-weight:500;font-size:clamp(23px,3vw,30px);line-height:1.45}
.member-contact p {color:var(--muted);line-height:1.85}
.member-contact .member-label {margin-top:27px;margin-bottom:6px;font-size:12px}
.member-wechat {font-size:28px;letter-spacing:.04em;font-weight:500;overflow-wrap:anywhere}
.member-qr {text-align:center;min-width:0}
.member-qr img {display:block;width:100%;height:auto;object-fit:contain;background:white;border:1px solid var(--line);border-radius:12px}
.member-qr .btn {width:100%;margin-top:16px}
.member-qr small {display:block;line-height:1.65;color:var(--muted);font-size:11px;margin-top:12px}
.member-qr p {font-size:12px;margin:10px 0 0}
.member-benefits {padding-left:19px;color:var(--muted);font-size:13px;line-height:1.9;margin-top:28px}
.member-terms {margin-top:24px}
.member-terms .muted {font-size:13px;line-height:1.8}
.member-already {display:flex;align-items:center;justify-content:center;gap:18px;margin:34px 0;color:var(--muted);font-size:13px}
.member-form {max-width:580px;margin:28px auto}
.member-form h1 {font-family:var(--serif);font-weight:500;font-size:clamp(27px,4vw,36px)}
.member-form>p {line-height:1.85;color:var(--muted)}
.member-form form {display:grid;gap:19px;margin-top:25px}
.member-form label {display:grid;gap:8px;font-weight:500;font-size:14px}
.member-form input:not([type=checkbox]),.member-renew input {min-height:48px;width:100%;border:1px solid var(--line);background:var(--bg);border-radius:9px;padding:12px 14px;color:var(--ink);min-width:0}
.member-form input:focus-visible,.member-renew input:focus-visible {outline-offset:2px}
.member-form input[type=checkbox] {width:18px;height:18px;accent-color:var(--accent);margin:2px 0;flex-shrink:0}
.member-form .member-check {display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:13px}
.member-form label small,.member-small {font-size:12px;font-weight:400;color:var(--muted);line-height:1.7}
.member-form .btn[type=submit] {justify-self:start;min-height:48px}
.member-form-error {margin:0;color:var(--accent-hover);white-space:pre-line;font-size:13px;line-height:1.75}
.member-form-error:empty {display:none}
.member-login-tabs {display:flex;gap:8px;border-bottom:1px solid var(--line);margin:22px 0}
.member-login-tabs a {padding:12px 15px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}
.member-login-tabs a[aria-current=page] {color:var(--accent);border-bottom-color:var(--accent)}
.member-account-links {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:25px;padding-top:20px;font-size:13px}
.member-account-links a {color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.member-form hr {height:1px;border:0;background:var(--line);margin:28px 0}
.member-form>.link-arrow {display:block;margin-top:25px}
.member-recovery {display:block;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:16px;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all;margin:25px 0}
.member-loading,.member-error {padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);margin:24px 0;color:var(--muted);line-height:1.8}
.member-error {background:var(--soft)}
.member-summary {display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 24px}
.member-summary h2 {font-size:23px;margin:10px 0}
.member-summary p {margin:0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.member-summary .button-row {flex-shrink:0;flex-wrap:wrap}
.member-status {margin-bottom:24px}
.member-status h2 {margin-top:20px}
.member-status p {color:var(--muted);overflow-wrap:anywhere;line-height:1.8}
.member-badge {display:inline-block;padding:4px 11px;border:1px solid var(--line);border-radius:30px;color:var(--muted);font-size:12px;background:var(--soft)}
.member-badge.is-active {color:var(--success);border-color:#b9c6b6}
.member-renew-row {display:flex;gap:12px;margin:10px 0}
.member-renew-row input {flex:1}
.member-renew-row .btn {flex-shrink:0}
.member-renew label {font-size:13px}
.member-history {display:grid;gap:12px;margin-top:20px}
.member-history article {padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.member-history article>div {display:flex;align-items:center;justify-content:space-between;gap:16px}
.member-history p {color:var(--muted);font-size:13px;line-height:1.8;margin:12px 0 0;overflow-wrap:anywhere}
.member-history small {display:block;font-size:11px}
.member-gate h2 {font-family:var(--serif);font-weight:500}
.member-gate>p {color:var(--muted);line-height:1.8}
.member-header-login {font-size:12px;color:var(--accent);white-space:nowrap;text-decoration:none;border:1px solid var(--line);border-radius:7px;padding:8px 10px}
@media(max-width:1000px){.member-duration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.member-contact{grid-template-columns:minmax(0,1fr) 230px;gap:25px;padding:28px}}
@media(max-width:760px){.member-contact{grid-template-columns:1fr;padding:24px}.member-qr{width:min(280px,100%);margin:0 auto}.member-duration-grid{gap:12px}.member-duration{padding:19px 16px}.member-duration h2{font-size:24px}.member-form{margin:20px 0}.member-form .btn[type=submit]{width:100%}.member-summary{align-items:flex-start;flex-direction:column;gap:18px}.member-summary .button-row{width:100%;margin:0}.member-summary .btn{flex:1}.member-renew-row{flex-direction:column}.member-status .button-row{gap:10px}.member-recovery{padding:15px;font-size:14px}.member-already{flex-wrap:wrap}.member-header-login{font-size:11px;padding:7px 8px}}

.member-kind-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.member-kind-grid .panel{min-width:0;margin-bottom:0}
.member-kind-grid h2{font-family:var(--serif);font-weight:500;margin:0 0 16px}
.member-kind-grid p{color:var(--muted);line-height:1.8;overflow-wrap:anywhere}
.member-kind-grid small{display:block;font-size:11px}
.member-actions{margin:24px 0;flex-wrap:wrap}
.member-kind-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.member-kind-options a{display:flex;flex-direction:column;gap:7px;min-width:0;padding:16px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-decoration:none;color:var(--ink)}
.member-kind-options a[aria-current=page]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--soft)}
.member-kind-options a:hover{border-color:var(--accent)}
.member-kind-options a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.member-kind-options span{font-size:12px;color:var(--control-muted);line-height:1.6;overflow-wrap:anywhere}
@media(max-width:640px){.member-kind-grid{grid-template-columns:1fr;gap:16px}}
@media(max-width:400px){.member-kind-options{grid-template-columns:1fr}.member-actions .btn{flex:1}}

.member-opening-steps{list-style:none;padding:0;margin:28px 0;display:grid;gap:18px}
.member-opening-steps li{display:flex;align-items:flex-start;gap:14px}
.member-opening-steps li>span{font:400 18px/1.6 Georgia,serif;color:var(--accent);border-bottom:1px solid var(--line);min-width:29px;padding-bottom:3px}
.member-opening-steps strong{display:block;font-size:14px;font-weight:500;margin-bottom:4px}
.member-opening-steps small{display:block;font-size:13px;line-height:1.8;color:var(--muted)}
.member-reading-links{display:flex;gap:12px 24px;flex-wrap:wrap;align-items:center}
.member-reading-links a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.member-join .member-terms{max-width:none}
.membership-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}.membership-plan{display:flex;flex-direction:column;min-width:0;padding:24px 18px}.membership-plan h2{font-size:20px;line-height:1.4;margin:12px 0}.membership-plan>p:not(.member-plan-price){line-height:1.8;color:var(--muted);font-size:14px;flex:1}.member-plan-kicker{font-size:11px;letter-spacing:.1em;color:var(--muted)}.member-plan-price{display:flex;align-items:baseline;gap:5px;margin:8px 0 14px;white-space:nowrap}.member-plan-price strong{font-size:36px;font-weight:500;letter-spacing:-.04em}.member-plan-price span{font-size:12px;color:var(--muted)}.membership-plan .btn{padding:11px 8px;text-align:center;font-size:13px}.membership-plan.is-super{border-color:#8b694d;background:linear-gradient(145deg,rgba(175,141,102,.12),rgba(175,141,102,.03))}.membership-plan.is-selected{outline:2px solid #aa5433;outline-offset:2px}.membership-scope-note{margin-bottom:26px;line-height:1.8}.membership-scope-note p{margin:8px 0 0}
.membership-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.membership-plan-grid .membership-plan{min-width:0}
.membership-plan-grid .membership-plan h2{overflow-wrap:anywhere}
.member-kind-grid article:last-child{grid-column:auto}
.member-legacy{margin-top:20px}.member-legacy h2{font-size:19px}.member-legacy ul{padding-inline-start:20px;color:var(--muted);line-height:1.9}
.member-faq{border-top:1px solid var(--line);padding:17px 0}
.member-faq:last-child{padding-bottom:0}
.member-faq summary{font-size:15px;font-weight:500;line-height:1.8;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
.member-faq summary::after{content:'+';font-size:22px;font-weight:400;color:var(--accent)}
.member-faq[open] summary::after{content:'−'}
.member-faq summary::-webkit-details-marker{display:none}
.member-faq p{font-size:14px;line-height:1.95;color:var(--muted);margin:14px 0 0}
@media(max-width:1100px){.membership-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:760px){
 .membership-plan-grid{grid-template-columns:1fr;gap:14px}
 .membership-plan{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;padding:22px;margin-bottom:0}
 .membership-plan .member-plan-kicker{grid-column:1;margin:0}
 .membership-plan h2{grid-column:1;margin:0;font-size:21px;line-height:1.5}
 .membership-plan .member-plan-price{grid-column:2;grid-row:1/3;align-self:center;margin:0;gap:4px}
 .member-plan-price strong{font-size:34px}
 .membership-plan>p:not(.member-plan-price){grid-column:1/-1;margin:2px 0 6px;font-size:13px;line-height:1.8}
 .membership-plan .btn{grid-column:1/-1;margin-top:2px;min-height:44px}
}
@media(max-width:360px){.membership-plan{padding:18px;column-gap:10px}.membership-plan h2{font-size:19px}.member-plan-price strong{font-size:30px}}

.member-join-links{margin-top:12px}
.member-join .member-contact{margin-bottom:22px}
