.members-page,.edit-profile-page,.profile-page{max-width:1120px;margin:0 auto;padding:48px 28px 80px}.directory-heading{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:25px}.directory-heading h1,.edit-profile-heading h1{font:800 clamp(34px,4vw,46px)/1.15 Manrope,sans-serif;letter-spacing:-1.8px;color:var(--navy);margin:12px 0 8px}.directory-heading h1 span,.edit-profile-heading h1 span{color:var(--green)}.directory-heading p,.edit-profile-heading p{font-size:14px;color:var(--muted);margin:0;line-height:1.7}.member-search{display:flex;gap:10px;margin-bottom:24px}.member-search input{flex:1;min-width:0;border:1px solid #dce6df;border-radius:11px;padding:13px 15px;font:13px "DM Sans",sans-serif;outline:none}.member-search input:focus{border-color:var(--green);box-shadow:0 0 0 3px #087f3d12}.member-search .button{border:0;cursor:pointer;font-family:inherit}.clear-search{align-self:center;color:var(--green);font-size:12px;font-weight:700}.member-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.directory-card{background:white;border:1px solid var(--line);border-radius:17px;padding:19px;box-shadow:0 5px 20px #123c2508;min-width:0}.directory-person{display:flex;align-items:center;gap:11px}.directory-avatar{width:47px;height:47px;object-fit:cover;border-radius:15px;flex-shrink:0}.directory-avatar-fallback{display:grid;place-items:center;background:var(--green-soft);color:var(--green);font:800 18px Manrope}.directory-person-text{display:flex;flex-direction:column;gap:5px;min-width:0}.directory-person-text strong{font-size:13px;color:var(--navy);overflow-wrap:anywhere}.directory-person-text small{font-size:10px;color:var(--muted)}.directory-bio{font-size:12px;line-height:1.65;color:#647269;min-height:40px;margin:16px 0}.directory-bottom{border-top:1px solid #edf1ee;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.directory-bottom>span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.directory-bottom form{margin:0}.follow-button{border:1px solid var(--green);border-radius:9px;background:var(--green);color:white;padding:8px 11px;font:700 10px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap}.follow-button.following{background:white;color:var(--green)}.edit-profile-heading{margin-bottom:25px}.edit-profile-card{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}.upload-section{padding:25px 28px;background:#fbfdfb;border-bottom:1px solid var(--line);display:grid;gap:22px}.upload-preview-row,.cover-preview-row{display:flex;align-items:center;gap:16px}.edit-avatar-preview{width:76px;height:76px;border-radius:22px;object-fit:cover;flex-shrink:0}.edit-avatar-fallback{display:grid;place-items:center;background:var(--green-soft);color:var(--green);font:800 28px Manrope}.upload-preview-row strong,.cover-preview-row strong{font-size:13px;color:var(--navy)}.upload-preview-row p,.cover-preview-row p{font-size:11px;color:var(--muted);margin:5px 0 9px}.file-button{display:inline-block;border:1px solid #d9e5dd;border-radius:8px;background:white;padding:8px 10px;font-size:10px;font-weight:800;color:var(--green);cursor:pointer}.file-input{display:block;font-size:10px;margin-top:7px;max-width:100%}.cover-preview{width:130px;height:72px;border-radius:10px;background:linear-gradient(135deg,#d9eee0,#e7edf4);display:grid;place-items:center;overflow:hidden;flex-shrink:0}.cover-preview img{width:100%;height:100%;object-fit:cover}.cover-preview span{font-size:10px;font-weight:700;color:#668174}.edit-fields{padding:26px 28px;display:flex;flex-direction:column}.edit-fields>label,.edit-field-pair label{font-size:12px;font-weight:700;color:#33473b;margin:12px 0 7px}.edit-fields input,.edit-fields textarea{width:100%;border:1px solid #dce6df;border-radius:10px;padding:12px 13px;font:13px "DM Sans",sans-serif;color:var(--ink);outline:none}.edit-fields input:focus,.edit-fields textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #087f3d12}.edit-fields textarea{resize:vertical;line-height:1.6}.edit-fields>small{font-size:10px;color:var(--muted);margin-top:6px}.edit-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.edit-field-pair>div{display:flex;flex-direction:column}.edit-profile-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--line);background:#fbfdfb}.edit-profile-actions button{border:0;cursor:pointer;font-family:inherit}.profile-cover{height:220px;background:linear-gradient(120deg,#0b7540,#123557 75%,#f1b334);border-radius:20px;position:relative;overflow:hidden}.profile-cover:before,.profile-cover:after{content:"";position:absolute;border:1px solid #ffffff40;border-radius:50%;width:300px;height:300px;right:12%;top:-170px}.profile-cover:after{width:220px;height:220px;right:27%;top:-105px}.profile-cover-image{position:absolute;width:100%;height:100%;object-fit:cover}.profile-cover-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#062d20a8,transparent 75%)}.profile-cover-label{position:absolute;bottom:20px;left:24px;font-size:10px;letter-spacing:1.5px;font-weight:800;color:white}.profile-summary{display:flex;align-items:center;gap:18px;padding:0 24px 22px;border-bottom:1px solid var(--line);position:relative}.profile-avatar{width:108px;height:108px;border:5px solid var(--paper);border-radius:28px;object-fit:cover;margin-top:-44px;z-index:2;background:white;flex-shrink:0}.profile-avatar-fallback{display:grid;place-items:center;background:var(--green-soft);color:var(--green);font:800 40px Manrope}.profile-summary-main{min-width:0;flex:1;padding-top:12px}.profile-summary-main h1{font:800 26px Manrope,sans-serif;letter-spacing:-.8px;color:var(--navy);margin:0 0 5px;overflow-wrap:anywhere}.profile-handle,.profile-location{font-size:11px;color:var(--muted);margin:0 0 5px}.profile-summary-actions{padding-top:10px}.profile-summary-actions form{margin:0}.profile-summary-actions button{border:0;cursor:pointer;font-family:inherit}.profile-stats{display:flex;gap:35px;padding:20px 24px;border-bottom:1px solid var(--line)}.profile-stats>div{display:flex;align-items:baseline;gap:7px}.profile-stats strong{font:800 17px Manrope;color:var(--navy)}.profile-stats span{font-size:11px;color:var(--muted)}.profile-content{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;padding-top:22px}.profile-about{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;height:max-content}.profile-about p{font-size:12px;line-height:1.75;color:#56665d;overflow-wrap:anywhere}.profile-about>a{display:block;font-size:11px;color:var(--green);overflow-wrap:anywhere;margin:12px 0}.profile-about>small{display:block;border-top:1px solid #edf1ee;padding-top:12px;color:#8a968f;font-size:10px}.profile-posts-heading{display:flex;align-items:center;justify-content:space-between;margin:2px 0 13px}.profile-posts-heading h2{font:800 19px Manrope;color:var(--navy);margin:0}.profile-posts-heading span{font-size:10px;color:var(--muted)}.profile-post-card{background:white;border:1px solid var(--line);border-radius:15px;padding:18px;margin-bottom:12px}.profile-post-date{font-size:10px;color:#89958d}.profile-post-body{font-size:13px;line-height:1.8;color:#33453b;padding:12px 0;overflow-wrap:anywhere}.profile-post-card>a{font-size:10px;font-weight:800;color:var(--green)}@media(max-width:900px){.member-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-content{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:680px){.members-page,.edit-profile-page,.profile-page{padding:35px 20px 60px}.directory-heading{align-items:flex-start;flex-direction:column}.directory-heading h1,.edit-profile-heading h1{font-size:36px}.member-directory-grid{grid-template-columns:1fr}.profile-cover{height:170px}.profile-summary{padding:0 12px 18px;gap:12px;flex-wrap:wrap}.profile-avatar{width:82px;height:82px;border-radius:22px;margin-top:-33px}.profile-summary-main h1{font-size:21px}.profile-summary-actions{margin-left:auto}.profile-summary-actions .button{padding:10px 12px;font-size:11px}.profile-stats{padding:16px 12px;gap:22px}.profile-content{grid-template-columns:1fr}.upload-section,.edit-fields{padding:21px 18px}.edit-profile-actions{padding:16px 18px}.edit-field-pair{grid-template-columns:1fr;gap:0}.cover-preview{width:95px;height:65px}.upload-preview-row,.cover-preview-row{align-items:flex-start}.member-search{flex-wrap:wrap}.member-search input{flex-basis:100%}}


/* Ekolinkup profile refinements */
.profile-page{padding-top:38px}
.profile-cover{box-shadow:0 10px 28px #123c2510}
.profile-summary{background:linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%);border:1px solid var(--line);border-top:0;border-radius:0 0 18px 18px}
.profile-summary-actions .button{white-space:nowrap}
.profile-stats{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px}
.profile-stats>div{min-width:74px}
.profile-about{box-shadow:0 5px 18px #123c2506}
.profile-posts-heading{padding:0 2px}
.profile-post-card{box-shadow:0 5px 18px #123c2506;transition:transform .18s ease,box-shadow .18s ease}
.profile-post-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #123c2510}
.profile-post-card .post-media-image{display:block;width:100%;max-height:520px;object-fit:contain;border-radius:12px;background:#f4f7f5;margin:8px 0 14px}
.profile-post-card>a{display:inline-block;margin-top:8px;text-decoration:none}
.profile-post-card>a:hover{text-decoration:underline}
.profile-about>a{word-break:break-word}
.profile-summary-main{overflow-wrap:anywhere}
@media(max-width:680px){
  .profile-page{padding:24px 14px 42px}
  .profile-cover{height:150px;border-radius:15px}
  .profile-cover-label{left:16px;bottom:15px;font-size:9px}
  .profile-summary{padding:0 12px 16px;gap:10px}
  .profile-summary-main{flex:1 1 calc(100% - 100px);padding-top:8px}
  .profile-summary-actions{padding-top:0;margin:0 0 0 94px}
  .profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 10px}
  .profile-stats>div{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px;background:#f7faf8;border-radius:10px}
  .profile-stats strong{font-size:16px}
  .profile-stats span{font-size:10px}
  .profile-content{gap:14px;padding-top:15px}
  .profile-about{padding:16px}
  .profile-post-card{padding:14px}
  .profile-post-card .post-media-image{max-height:420px}
}
@media(prefers-reduced-motion:reduce){.profile-post-card{transition:none}.profile-post-card:hover{transform:none}}

/* Final profile polish: keep the cover label clear of the overlapping avatar */
.profile-cover-label{left:150px;bottom:22px;z-index:2;text-shadow:0 1px 4px #062d2066}
.profile-summary{z-index:1}
.profile-about{line-height:1.65}
.profile-about .sidebar-kicker{display:inline-block;margin-bottom:4px}
.profile-posts .empty-feed{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 22px;background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);border:1px solid var(--line);border-radius:18px}
.profile-posts .empty-feed h2{margin:14px 0 6px;color:var(--navy);font:800 20px Manrope,sans-serif}
.profile-posts .empty-feed p{max-width:360px;margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.7}
.profile-posts .empty-feed .button{white-space:nowrap}
@media(max-width:680px){
  .profile-cover-label{left:108px;bottom:17px;font-size:8px;letter-spacing:1.1px}
  .profile-posts .empty-feed{min-height:200px;padding:24px 16px}
  .profile-posts .empty-feed h2{font-size:18px}
}
