:root{--navy:#183b68;--blue:#2898d2;--sky:#64c9ee;--mint:#a0e5d0;--bg:#f4fbff;--ink:#1a3c62;--border:#d8edf6}*{box-sizing:border-box}body{margin:0;background:linear-gradient(150deg,#fff 0%,#f1faff 60%,#edf9f3 100%);font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:16px;line-height:1.6}a{color:#0c80bb;text-decoration:none}a:hover{text-decoration:underline}.m-head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:10px max(4vw,20px);background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;box-shadow:0 5px 22px #276b9110}.m-brand img{width:190px;max-height:84px;object-fit:contain}.m-head nav{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:14px;font-weight:700}.m-wrap{max-width:1200px;margin:0 auto;padding:55px 24px 85px;min-height:72vh}.m-foot{text-align:center;background:#173c65;color:#d7f7ff;padding:26px 16px}.m-h1{font-size:clamp(32px,4.5vw,62px);letter-spacing:-2px;margin:0 0 12px;line-height:1.15}.m-lead{font-size:19px;color:#59758e;max-width:760px;margin:8px 0 32px}.m-pill{display:inline-block;background:#dffaf0;color:#146b6d;font-weight:800;border-radius:60px;padding:6px 13px;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:18px}.m-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.m-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:26px;box-shadow:0 10px 35px #0a5e9a0d}.m-card h2,.m-card h3{line-height:1.25;margin:10px 0}.m-card img.portrait{width:100%;height:220px;object-fit:cover;border-radius:17px}.m-muted{color:#637c90}.m-btn,button.m-btn{display:inline-block;border:0;background:#249bd2;color:#fff;border-radius:50px;padding:13px 24px;font:700 15px inherit;cursor:pointer;font-weight:700;text-decoration:none}.m-btn:hover{background:#157fbc;text-decoration:none}.m-btn-light{background:#e6f8ff;color:#17638d}.m-form{max-width:750px;background:#fff;border:1px solid var(--border);border-radius:24px;padding:30px;box-shadow:0 15px 45px #0a5e9a12}.m-form label{display:block;font-weight:700;font-size:14px;margin:0 0 18px}.m-form input,.m-form textarea,.m-form select{display:block;width:100%;margin-top:7px;padding:13px;border-radius:12px;border:1px solid #bfdce9;background:#fcfeff;font:inherit;color:var(--ink)}.m-form textarea{min-height:140px}.m-form input:focus,.m-form textarea:focus{outline:2px solid #65c5ec}.m-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.m-alert{padding:13px 18px;background:#e0f9ed;border:1px solid #9cdec1;border-radius:14px;margin:18px 0}.m-danger{background:#fff0ee;border-color:#f4b8aa}.m-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 28px}.m-toolbar a{background:white;border:1px solid var(--border);border-radius:30px;padding:9px 18px;font-weight:700}.m-thread{border:1px solid var(--border);border-radius:18px;background:white;margin:15px 0;padding:22px}.m-bubble{padding:12px 16px;border-radius:16px;background:#e9f7ff;margin:9px 0;max-width:85%}.m-bubble.mine{margin-left:auto;background:#ddf9ea}.m-profile{display:grid;grid-template-columns:300px 1fr;gap:40px;align-items:start}.m-profile img{width:100%;border-radius:28px;max-height:400px;object-fit:cover}.m-tag{font-size:13px;background:#e7f9ff;border-radius:18px;padding:5px 10px;display:inline-block;margin:4px}.m-small{font-size:13px}.m-sep{border:0;border-top:1px solid var(--border);margin:27px 0}@media(max-width:900px){.m-head{flex-direction:column}.m-head nav{justify-content:center}.m-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.m-wrap{padding:34px 16px}.m-grid,.m-row,.m-profile{grid-template-columns:1fr}.m-form{padding:20px}.m-head nav{gap:12px;font-size:12px}.m-brand img{width:150px}}

.m-bio{line-height:1.8;overflow-wrap:anywhere}.m-bio ul,.m-bio ol{padding-left:1.6rem}.m-bio h2,.m-bio h3{margin:1rem 0 .5rem}.m-profile .m-card img{object-fit:contain!important;background:#effaff}.m-toolbar{flex-wrap:wrap}select{border:1px solid #bfe1ee;border-radius:12px;padding:13px;width:100%;background:white}

/* Coach directory: preserve full portrait without cropping */
.m-grid{grid-template-columns:repeat(auto-fit,minmax(275px,340px));align-items:start;justify-content:start}.m-card.cg-directory-card{width:100%;min-width:0}.m-card.cg-directory-card img.portrait{display:block;width:100%;height:320px;object-fit:contain;object-position:center;background:#eef8fc;border-radius:16px}.cg-directory-card h2{margin-top:8px}@media(max-width:650px){.m-grid{grid-template-columns:minmax(0,1fr)}.cg-directory-card img.portrait{height:340px}}

/* Coach dashboard refresh - logo-aligned blue and mint */
.cg-dashboard-hero{background:linear-gradient(120deg,#e8f7ff,#f1fcf9);border:1px solid #cdebf7;border-radius:28px;padding:clamp(24px,4vw,42px);display:flex;justify-content:space-between;align-items:center;gap:24px;box-shadow:0 18px 50px #1c73a010;margin-bottom:26px}.cg-dashboard-hero .m-h1{font-size:clamp(26px,3.4vw,46px);letter-spacing:-1.5px}.cg-dashboard-hero .m-pill{margin:0 0 14px}.cg-hero-note{color:#52718a;margin:4px 0 0}.cg-hero-cta{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}.cg-signout{border:1px solid #b9dfe9;background:#fff;padding:12px 20px;border-radius:999px;font-weight:700}.cg-dashboard-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:7px;background:#e9f6fc;border:1px solid #d2ebf4;border-radius:18px;margin:0 0 25px}.cg-dashboard-tabs a{flex:1;text-align:center;min-width:125px;border-radius:13px;padding:13px 15px;font-weight:750;color:#235a7f;transition:background .2s ease}.cg-dashboard-tabs a.active{background:#fff;color:#116a9e;box-shadow:0 4px 16px #1e789d18}.cg-count{background:#d8f3f9;padding:2px 8px;border-radius:999px}.cg-profile-form{max-width:920px;margin:auto;padding:clamp(22px,4vw,42px)}.cg-profile-form h2{font-size:28px;margin:0 0 8px}.cg-profile-form fieldset{margin:28px 0;border:1px solid #d3e9f4}.cg-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;background:#eaf7fe;border:1px solid #bfdce9;border-radius:14px 14px 0 0;padding:12px;margin-top:8px}.cg-editor-toolbar button,.cg-editor-toolbar select{border:1px solid #b9dfee;border-radius:8px;background:#fff;color:#245678;padding:8px 11px;font-size:13px;font-weight:700;cursor:pointer;width:auto;min-height:36px;margin:0}.cg-editor-toolbar button:hover{background:#d6f0fb}.cg-content-editor{min-height:270px;padding:22px;background:#fff;border:1px solid #bfdce9;border-top:0;border-radius:0 0 14px 14px;line-height:1.75;overflow-wrap:anywhere;outline-offset:2px}.cg-content-editor:focus{outline:2px solid #2898d2}.cg-content-editor p{margin:.5em 0}.cg-editor-count{font-size:12px;color:#547389;text-align:right;margin:7px 2px 0}.cg-editor-count.invalid{color:#bf4436;font-weight:700}.cg-field-hint{color:#5f7b91;font-size:13px;margin:8px 0 22px}.cg-form-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:24px}.cg-align-center{text-align:center}.cg-align-right{text-align:right}.cg-align-justify{text-align:justify}.cg-font-serif{font-family:Georgia,'Times New Roman',serif}.cg-font-sans{font-family:Arial,'Segoe UI',sans-serif}.cg-font-mono{font-family:ui-monospace,Consolas,monospace}.cg-account-nav{border:1px solid #d5edf4;background:#effaff;padding:8px 14px;border-radius:14px}.m-bio p{margin:0 0 1em}
@media(max-width:700px){.cg-dashboard-hero{flex-direction:column;align-items:stretch}.cg-hero-cta{justify-content:flex-start}.cg-dashboard-tabs a{min-width:calc(50% - 8px)}.cg-editor-toolbar{gap:5px}.cg-editor-toolbar button,.cg-editor-toolbar select{font-size:12px;padding:7px}}

/* Editor fix v6: never reveal the HTML transport textarea. */
.m-form textarea.cg-rich[hidden],.m-form textarea#cg-editor[hidden],
.cg-editor-source{display:none!important;visibility:hidden!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important}
.cg-content-editor{font-weight:400;white-space:normal;min-height:300px;overflow:auto;max-height:70vh;scrollbar-gutter:stable}
.cg-content-editor p,.cg-content-editor div,.cg-content-editor li{font-weight:400}
.cg-content-editor strong,.cg-content-editor b{font-weight:700}
.cg-content-editor h2,.cg-content-editor h3{font-weight:700;line-height:1.35}
.cg-editor-toolbar button[aria-pressed="true"]{background:#ccecfb;border-color:#2898d2;color:#173c65}
.cg-tags-counter{display:block;color:#637c90;font-size:12px;font-weight:500;margin:-12px 0 16px}
.cg-tags-counter.invalid{color:#b42318;font-weight:700}
.cg-editor-help{font-size:12px;color:#526f86;margin:6px 0}

/* Editor v7: block formatting must override inherited site styles. */
.cg-content-editor .cg-align-left{text-align:left!important}
.cg-content-editor .cg-align-center{text-align:center!important}
.cg-content-editor .cg-align-right{text-align:right!important}
.cg-content-editor .cg-align-justify{text-align:justify!important;text-justify:inter-word!important}
.cg-content-editor .cg-font-serif{font-family:Georgia,'Times New Roman',serif!important}
.cg-content-editor .cg-font-sans{font-family:Arial,'Segoe UI',sans-serif!important}
.cg-content-editor .cg-font-mono{font-family:Consolas,monospace!important}
.cg-content-editor p{margin:0 0 1em;font-weight:400}
.cg-content-editor h2,.cg-content-editor h3{display:block;margin:.8em 0 .45em;font-weight:700}
.cg-content-editor strong,.cg-content-editor b{font-weight:700!important}
.cg-content-editor ul,.cg-content-editor ol{padding-left:1.8em;margin:.7em 0}
.cg-content-editor li{display:list-item}
.cg-editor-help[role=status]{padding:7px 0;min-height:34px;color:#356a85}

/* CoachGurukul v8 editor visual isolation: never show HTML transport alongside content. */
.cg-dashboard-body .cg-content-editor {font-weight:400!important; font-family:Inter,'Segoe UI',Arial,sans-serif; font-size:15px; line-height:1.72; background:#fff; min-height:320px; padding:22px; color:#173C65; border:1px solid #c7e2f0; border-radius:0 0 14px 14px; text-align:left;}
.cg-dashboard-body .cg-content-editor p,.cg-dashboard-body .cg-content-editor div,.cg-dashboard-body .cg-content-editor li {font-weight:400!important;}
.cg-dashboard-body .cg-content-editor strong,.cg-dashboard-body .cg-content-editor b {font-weight:700!important;}
.cg-dashboard-body .cg-content-editor h2,.cg-dashboard-body .cg-content-editor h3{font-weight:700!important;}
.cg-dashboard-body .cg-editor-source,.cg-dashboard-body textarea.cg-editor-source{display:none!important;position:absolute!important;visibility:hidden!important;}
.cg-dashboard-body .cg-editor-count,.cg-dashboard-body .cg-editor-help,.cg-dashboard-body .cg-separate-note{display:block;clear:both;font-weight:400!important;font-size:12px;line-height:1.5;color:#5b758a;background:#f4faff;border:1px solid #e0eff7;border-radius:9px;padding:7px 11px;margin:8px 0;}
.cg-dashboard-body .cg-editor-count{text-align:right;background:none;border:0;margin:5px 0;}
.cg-dashboard-body .cg-editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;background:#eaf7fc;border:1px solid #c7e2f0;border-radius:12px 12px 0 0;padding:11px;}
.cg-dashboard-body .cg-editor-toolbar button,.cg-dashboard-body .cg-editor-toolbar select{width:auto!important;max-width:100%;font-weight:600!important;margin:0!important;padding:8px 10px!important;white-space:nowrap;}
.cg-dashboard-body .cg-content-editor strong p,.cg-dashboard-body .cg-content-editor b p{font-weight:inherit;}
.cg-password-box{position:relative;display:block;}
.cg-password-box input{padding-right:76px!important;}
.cg-password-visibility{position:absolute;right:8px;top:50%;transform:translateY(-42%);background:#eaf7fc;border:1px solid #c2dfea;border-radius:8px;cursor:pointer;color:#174d74;font-weight:700;font-size:12px;padding:7px 9px;min-width:53px;line-height:1.2;}
.cg-password-visibility:hover,.cg-password-visibility:focus-visible{background:#d7f1f8;outline-color:#268fce;}
@media(max-width:620px){.cg-dashboard-body .cg-content-editor{padding:14px;min-height:250px}.cg-dashboard-body .cg-editor-toolbar{gap:4px}.cg-dashboard-body .cg-editor-toolbar button{font-size:12px}}
