/* Chess Suite v2.1 — member self-service profile */
.cfs-member-chess-profile{margin-top:30px;padding:26px;border:1px solid var(--cfs-border);border-radius:10px;background:#fff;box-shadow:var(--cfs-shadow)}
.cfs-member-chess-profile .cfs-account-section-heading>span{display:block;color:var(--cfs-blue-dark);font:800 9px Montserrat,Inter,sans-serif;letter-spacing:.8px}.cfs-member-chess-profile .cfs-account-section-heading h2{margin:5px 0 8px;color:var(--cfs-navy);font:700 24px Montserrat,Inter,sans-serif}.cfs-member-chess-profile .cfs-account-section-heading p{max-width:720px;margin:0 0 20px;color:var(--cfs-muted);font-size:12px;line-height:1.6}
.cfs-profile-notice{margin-bottom:18px;padding:11px 13px;border-left:3px solid #16803f;background:#edf9f1;color:#116431;font-size:12px}.cfs-member-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cfs-member-profile-form label{display:flex;min-width:0;flex-direction:column;gap:7px;color:var(--cfs-navy);font:700 10px Montserrat,Inter,sans-serif}.cfs-member-profile-form label:first-of-type{grid-column:1/-1}.cfs-member-profile-form label span{display:flex;align-items:center;gap:7px}.cfs-member-profile-form label em{padding:3px 6px;border-radius:999px;background:var(--cfs-ice);color:var(--cfs-blue-dark);font-size:7px;font-style:normal;letter-spacing:.5px}.cfs-member-profile-form input,.cfs-member-profile-form select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--cfs-border);border-radius:6px;background:#fff;color:#344054;font:400 13px Inter,sans-serif}.cfs-member-profile-form small{color:#667085;font:400 10px/1.5 Inter,sans-serif}.cfs-member-profile-actions{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding-top:4px}.cfs-member-profile-actions button{min-height:44px;padding:0 17px;border:0;border-radius:6px;background:var(--cfs-blue-dark);color:#fff;font:800 9px Montserrat,Inter,sans-serif;cursor:pointer}.cfs-member-profile-actions a{color:var(--cfs-blue-dark);font:800 9px Montserrat,Inter,sans-serif;text-decoration:none}
@media(max-width:650px){.cfs-member-chess-profile{padding:20px}.cfs-member-profile-form{grid-template-columns:1fr}.cfs-member-profile-form label:first-of-type,.cfs-member-profile-actions{grid-column:auto}.cfs-member-profile-actions{align-items:flex-start;flex-direction:column}}

/* v2.3 — complete Federation-native member portal */
.cfs-account-page{background:#f7f9fb;min-height:70vh}
.cfs-account-hero{padding:54px 0 42px;background:linear-gradient(135deg,#0f3656 0%,#163f63 62%,#215f8e 100%);color:#fff}
.cfs-account-hero span,.cfs-account-kicker{display:block;color:var(--cfs-yellow);font:800 10px Montserrat,Inter,sans-serif;letter-spacing:1.1px}
.cfs-account-hero h1{margin:8px 0 10px;color:#fff;font:700 clamp(32px,4vw,48px)/1.08 Montserrat,Inter,sans-serif}
.cfs-account-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.78);font-size:14px;line-height:1.65}
.cfs-account-main{padding:34px 0 58px}
.cfs-account-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.cfs-account-summary article{display:flex;min-width:0;min-height:132px;flex-direction:column;gap:7px;padding:20px;border:1px solid var(--cfs-border);border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(19,58,88,.04)}
.cfs-account-summary article>span{color:#667085;font:800 8px Montserrat,Inter,sans-serif;letter-spacing:.8px}
.cfs-account-summary article strong{overflow-wrap:anywhere;color:var(--cfs-navy);font:700 17px/1.3 Montserrat,Inter,sans-serif}
.cfs-account-summary article strong.is-active{color:#16734b}
.cfs-account-summary article small,.cfs-account-summary article a{margin-top:auto;color:#667085;font-size:10px;line-height:1.4;text-decoration:none}
.cfs-account-summary article a{color:var(--cfs-blue-dark);font-weight:700}
.cfs-account-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px;padding:12px;border:1px solid var(--cfs-border);border-radius:10px;background:#fff}
.cfs-account-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:7px;background:#eef5fa;color:var(--cfs-navy);font:800 9px Montserrat,Inter,sans-serif;text-decoration:none}
.cfs-account-actions a:hover{background:var(--cfs-blue-dark);color:#fff}
.cfs-account-auth{display:grid;place-items:center;min-height:440px}
.cfs-account-auth__card{width:min(100%,520px);padding:30px;border:1px solid var(--cfs-border);border-radius:14px;background:#fff;box-shadow:0 16px 42px rgba(19,58,88,.08)}
.cfs-account-auth__card h2{margin:7px 0 22px;color:var(--cfs-navy);font:700 28px Montserrat,Inter,sans-serif}
.cfs-account-auth__card .login-username,.cfs-account-auth__card .login-password{display:grid;gap:7px;margin:0 0 14px;color:var(--cfs-navy);font:700 10px Montserrat,Inter,sans-serif}
.cfs-account-auth__card input[type=text],.cfs-account-auth__card input[type=password]{width:100%;min-height:46px;padding:0 12px;border:1px solid var(--cfs-border);border-radius:7px}
.cfs-account-auth__card .login-remember{font-size:11px;color:#667085}
.cfs-account-auth__card .login-submit input{min-height:44px;padding:0 18px;border:0;border-radius:7px;background:var(--cfs-blue-dark);color:#fff;font:800 10px Montserrat,Inter,sans-serif;cursor:pointer}
.cfs-account-auth__join{margin:20px 0 0;color:#667085;font-size:12px}.cfs-account-auth__join a{color:var(--cfs-blue-dark);font-weight:700}
.cfs-account-page .cfs-member-chess-profile,.cfs-account-page .cfs-my-courses{scroll-margin-top:110px}
@media(max-width:1050px){.cfs-account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.cfs-account-hero{padding:40px 0 34px}.cfs-account-summary{grid-template-columns:1fr}.cfs-account-summary article{min-height:112px}.cfs-account-auth__card{padding:22px}}

/* v2.6 — membership period + full self-service Community profile */
.cfs-account-summary article{min-height:164px}
.cfs-membership-summary-card>small{margin-top:0!important}
.cfs-membership-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--cfs-border)}
.cfs-membership-period span{display:grid;gap:2px;color:#667085;font:500 9px/1.35 Inter,sans-serif}
.cfs-membership-period b{color:var(--cfs-navy);font:800 7px Montserrat,Inter,sans-serif;letter-spacing:.55px;text-transform:uppercase}
.cfs-profile-notice.is-error{border-left-color:#b42318;background:#fff1f0;color:#912018}
.cfs-member-profile-form{align-items:start}
.cfs-member-profile-subheading{grid-column:1/-1;margin:7px 0 0;padding:18px 0 3px;border-top:1px solid var(--cfs-border)}
.cfs-member-profile-subheading:first-of-type{margin-top:0;padding-top:0;border-top:0}
.cfs-member-profile-subheading>span{display:block;color:var(--cfs-blue-dark);font:800 8px Montserrat,Inter,sans-serif;letter-spacing:.8px}
.cfs-member-profile-subheading h3{margin:4px 0 0;color:var(--cfs-navy);font:700 18px Montserrat,Inter,sans-serif}
.cfs-profile-field--wide{grid-column:1/-1!important}
.cfs-member-profile-form textarea{width:100%;min-height:118px;padding:12px;border:1px solid var(--cfs-border);border-radius:6px;background:#fff;color:#344054;font:400 13px/1.6 Inter,sans-serif;resize:vertical}
.cfs-member-profile-form input:focus,.cfs-member-profile-form select:focus,.cfs-member-profile-form textarea:focus{outline:3px solid rgba(247,237,51,.7);outline-offset:2px;border-color:var(--cfs-blue-dark)}
.cfs-profile-photo-field{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;align-items:center;padding:14px;border:1px solid var(--cfs-border);border-radius:9px;background:#f9fbfd}
.cfs-profile-photo-preview{display:grid;width:82px;height:82px;place-items:center;overflow:hidden;border-radius:10px;background:var(--cfs-ice);color:var(--cfs-blue-dark);font-size:30px}
.cfs-profile-photo-preview img{width:100%;height:100%;object-fit:cover}
.cfs-profile-photo-field label{margin:0}.cfs-profile-photo-field input[type=file]{min-height:0;padding:8px;background:#fff}
.cfs-profile-remove-photo{display:flex!important;align-items:center!important;gap:7px!important;margin-top:3px;color:#667085!important;font:600 10px Inter,sans-serif!important}
.cfs-profile-remove-photo input{width:15px!important;min-height:15px!important;height:15px!important;margin:0}
.cfs-profile-fide-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.cfs-profile-fide-stats>div{display:grid;gap:5px;min-height:72px;padding:13px;border-radius:8px;background:var(--cfs-ice)}
.cfs-profile-fide-stats span{color:#667085;font:800 7px Montserrat,Inter,sans-serif;letter-spacing:.6px}
.cfs-profile-fide-stats strong{color:var(--cfs-navy);font:700 18px Montserrat,Inter,sans-serif}
@media(max-width:650px){.cfs-membership-period{grid-template-columns:1fr}.cfs-member-profile-subheading,.cfs-profile-field--wide{grid-column:auto!important}.cfs-profile-photo-field{grid-template-columns:70px minmax(0,1fr)}.cfs-profile-photo-preview{width:64px;height:64px}.cfs-profile-fide-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cfs-member-profile-form>label:first-of-type{grid-column:auto}

@media(max-width:620px){.cfs-account-summary article{min-height:132px}}

/* v2.9.0 — native Federation member login */
.cfs-member-login-page{background:#f4f8fb;min-height:62vh}.cfs-login-hero{background:#153f63;color:#fff;padding:58px 0 54px}.cfs-login-hero span{display:block;color:#fff33b;font-weight:800;letter-spacing:.14em;font-size:13px;margin-bottom:12px}.cfs-login-hero h1{color:#fff;font-size:clamp(38px,5vw,64px);line-height:1.04;margin:0 0 14px}.cfs-login-hero p{color:#dce8f2;font-size:18px;max-width:720px;margin:0}.cfs-login-main{padding:54px 0 72px}.cfs-login-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.75fr);gap:32px;align-items:start}.cfs-login-card,.cfs-login-help{background:#fff;border:1px solid #dce6ee;border-radius:18px;padding:34px;box-shadow:0 16px 40px rgba(17,54,84,.07)}.cfs-login-card h2,.cfs-login-help h2{margin:4px 0 8px;color:#153f63;font-size:30px}.cfs-login-intro{color:#66758c;margin:0 0 24px}.cfs-native-login-form{display:grid;gap:18px}.cfs-native-login-form label:not(.cfs-login-remember){display:grid;gap:8px;font-weight:700;color:#27364c}.cfs-native-login-form input[type=text],.cfs-native-login-form input[type=password]{width:100%;min-height:54px;border:1px solid #cdd9e4;border-radius:10px;padding:12px 14px;font-size:16px;background:#fff}.cfs-native-login-form input:focus{outline:3px solid rgba(255,243,59,.65);border-color:#174d75}.cfs-login-remember{display:flex;align-items:center;gap:9px;color:#536176;font-weight:600}.cfs-login-remember input{width:18px;height:18px}.cfs-native-login-form button,.cfs-login-primary{display:inline-flex;align-items:center;justify-content:center;min-height:52px;border:0;border-radius:9px;background:#236b98;color:#fff!important;font-weight:800;letter-spacing:.03em;text-decoration:none;padding:0 22px;cursor:pointer}.cfs-native-login-form button:hover,.cfs-login-primary:hover{background:#174d75}.cfs-login-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;font-weight:650}.cfs-login-links a,.cfs-login-secondary,.cfs-login-help a{color:#166494}.cfs-login-notice{padding:13px 15px;border-radius:9px;margin:0 0 18px;font-weight:650}.cfs-login-notice.is-error{background:#fff0f0;color:#912d2d;border:1px solid #f0cccc}.cfs-login-notice.is-success{background:#edf8f1;color:#237244;border:1px solid #c9ead5}.cfs-login-help>span{color:#236b98;font-size:12px;font-weight:800;letter-spacing:.14em}.cfs-login-help ul{padding-left:22px;color:#44556d;line-height:1.8}.cfs-login-card--signed-in{max-width:680px;margin:0 auto;text-align:center;display:grid;gap:16px}.cfs-login-secondary{text-decoration:none;font-weight:700}@media(max-width:820px){.cfs-login-layout{grid-template-columns:1fr}.cfs-login-hero{padding:42px 0}.cfs-login-main{padding:34px 0 54px}.cfs-login-card,.cfs-login-help{padding:24px}.cfs-login-links{display:grid}}
