.kh-community-page{background:#f0f2f5}.kh-community-layout{grid-template-columns:250px minmax(0,680px) 270px}.kh-community-brand{font-size:18px;color:#1877f2;margin:0 0 13px;display:flex;align-items:center;gap:9px}.kh-community-nav{display:grid;gap:4px}.kh-community-nav a{display:flex;align-items:center;gap:12px;min-height:44px;border-radius:9px;padding:0 12px;color:#30333a;text-decoration:none;font-weight:750}.kh-community-nav a i{width:23px;color:#1877f2;text-align:center;font-size:17px}.kh-community-nav a:hover,.kh-community-nav a.active{background:#e7f3ff;color:#1877f2}.kh-community-account{margin-bottom:12px}.kh-community-account-main{display:flex;align-items:center;gap:11px;text-decoration:none}.kh-community-account-main img,.kh-community-initial{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#e7f3ff;display:grid;place-items:center;color:#1877f2;font-size:20px}.kh-community-account-main span:last-child{display:grid;min-width:0}.kh-community-account-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kh-community-account-main small,.kh-community-stats small{color:#65676b}.kh-community-stats{display:flex;gap:8px;margin-top:13px;border-top:1px solid #e4e6eb;padding-top:12px}.kh-community-stats a{flex:1;display:flex;gap:5px;align-items:center;justify-content:center;background:#f0f2f5;padding:7px;border-radius:9px;text-decoration:none}.kh-community-stats b{color:#1877f2}.kh-community-welcome{display:flex;gap:13px;align-items:center;background:linear-gradient(120deg,#fff,#eef6ff);border:1px solid #d7e8ff;border-radius:14px;padding:17px;margin-bottom:12px}.kh-community-welcome-icon{width:48px;height:48px;border-radius:50%;background:#1877f2;color:#fff;display:grid;place-items:center;font-size:20px;flex:none}.kh-community-welcome h1{font-size:21px;margin:0 0 4px}.kh-community-welcome p{margin:0;color:#65676b;font-size:13px;line-height:1.6}.kh-community-feed-tabs{position:sticky;top:112px;z-index:3;display:flex;gap:3px;background:#fff;border:1px solid #e4e6eb;border-radius:11px;margin:0 0 12px;padding:4px}.kh-community-feed-tabs a{flex:1;min-height:42px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;color:#65676b;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}.kh-community-feed-tabs a.active,.kh-community-feed-tabs a:hover{color:#1877f2;background:#e7f3ff}.kh-community-right .ks-side-card h2{font-size:16px;display:flex;gap:8px;align-items:center}.kh-community-right .ks-side-card h2 i{color:#1877f2}.kh-community-actions{display:grid;gap:6px;margin-top:12px}.kh-community-actions a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:9px;background:#f0f2f5;text-decoration:none;font-weight:750;font-size:13px}.kh-community-actions a:hover{background:#e7f3ff;color:#1877f2}.kh-community-actions a i{width:20px;color:#1877f2;text-align:center}.kh-community-actions .kh-community-join{background:#1877f2;color:#fff}.kh-community-actions .kh-community-join i{color:#fff}
@media(max-width:1050px){.kh-community-layout{grid-template-columns:220px minmax(0,1fr);max-width:900px}.kh-community-right{display:none!important}}
@media(max-width:767px){.kh-community-layout{display:block;padding:12px 10px 82px}.kh-community-left{display:none!important}.kh-community-welcome{padding:13px}.kh-community-welcome h1{font-size:18px}.kh-community-welcome p{font-size:12px}.kh-community-feed-tabs{top:70px}.kh-community-feed-tabs a{font-size:11px;gap:4px}.kh-community-feed-tabs a i{font-size:12px}}

.kh-community-posts{margin:0 0 14px}.kh-community-subhead{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#fff;border:1px solid #e4e6eb;border-radius:12px 12px 0 0}.kh-community-subhead h2{margin:0;font-size:16px}.kh-community-subhead h2 i{color:#1877f2}.kh-community-subhead>a{color:#1877f2;font-size:13px;font-weight:750}.kh-community-post{background:#fff;border:1px solid #e4e6eb;border-top:0;padding:14px 16px}.kh-community-post:last-of-type{border-radius:0 0 12px 12px}.kh-community-post header{display:flex;gap:10px;align-items:center;margin-bottom:10px}.kh-community-post-avatar{width:40px;height:40px;border-radius:50%;background:#e7f3ff;color:#1877f2;display:grid;place-items:center;overflow:hidden}.kh-community-post-avatar img{width:100%;height:100%;object-fit:cover}.kh-community-post header>div{display:grid;gap:3px}.kh-community-post-name{font-weight:800}.kh-community-post time{font-size:11px;color:#65676b}.kh-community-post-link{color:inherit;text-decoration:none}.kh-community-post-link p{font-size:14px;line-height:1.8;white-space:pre-line;margin:8px 0 12px;overflow-wrap:anywhere}.kh-community-post-image{display:block;max-height:440px;width:100%;object-fit:cover;border-radius:9px;background:#f0f2f5}.kh-community-post footer{display:flex;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid #e4e6eb}.kh-community-post footer a{flex:1;text-align:center;padding:8px;border-radius:8px;color:#65676b;font-size:12px;font-weight:750}.kh-community-post footer a:hover{background:#f0f2f5;color:#1877f2}.kh-community-post-empty{background:#fff;padding:20px;color:#65676b;border-radius:0 0 12px 12px;margin:0}

.kh-community-ad{background:#fff;border:1px solid #d8dce2;border-radius:12px;padding:15px;margin:12px 0;box-shadow:0 1px 2px #00000012}.kh-community-ad header{display:flex;align-items:center;gap:10px}.kh-community-ad header>span{width:40px;height:40px;border-radius:50%;background:#fff3cd;color:#996500;display:grid;place-items:center}.kh-community-ad header>div{display:grid;gap:3px}.kh-community-ad header small{font-size:11px;color:#8a6d1d}.kh-community-ad p{font-size:14px;line-height:1.7;white-space:pre-line;margin:10px 0}.kh-community-ad>img,.kh-community-ad>video{width:100%;max-height:440px;object-fit:contain;background:#f0f2f5;border-radius:9px}.kh-community-ad-action{margin-top:10px;display:flex;justify-content:center;gap:8px;align-items:center;background:#1877f2;color:white!important;text-decoration:none;padding:11px;border-radius:8px;font-weight:800;font-size:13px}

/* Community feed: top navigation, fair author mix, compact feed and engagement sort */
.kh-community-page [hidden]{display:none!important}
.kh-community-sort{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:8px 10px;background:#fff;border:1px solid #e4e6eb;border-radius:11px;color:#65676b;font-size:12px}
.kh-community-sort>a{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:8px;color:#4d5662;text-decoration:none;font-weight:750}
.kh-community-sort>a:hover,.kh-community-sort>a.active{background:#e7f3ff;color:#1877f2}
.kh-community-post-stats{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:8px 18px;color:#65676b;font-size:12px}
.kh-community-post-stats span{display:inline-flex;align-items:center;gap:5px}
.kh-community-more,.kh-community-older{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:10px 0;padding:11px 14px;border:1px solid #d8e2ed;border-radius:10px;background:#fff;color:#1877f2;text-decoration:none;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.kh-community-more:hover,.kh-community-older:hover{background:#e7f3ff}
@media(max-width:767px){
  .kh-community-feed-tabs{top:70px}
  .kh-community-feed-tabs a{min-height:44px;font-size:11px}
  .kh-community-sort{margin:0 10px 12px;padding:7px 8px;gap:5px}
  .kh-community-sort>a{padding:7px 8px;font-size:11px}
  .kh-community-post-stats{padding:8px 14px}
}

/* Keep community feed excerpts compact; the post detail page retains the full text. */
.kh-community-post-link .kh-community-post-preview{display:block;margin:8px 0 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.7}
