.tsemou-community-compact .tsemou-real-communities{padding:12px 0 24px;margin:0;color:#183d33}
.tsemou-community-compact .tsemou-real-communities>h2{font:700 19px/1.3 Inter,sans-serif;margin:0 0 12px}
.tsemou-community-compact .tsemou-real-communities>p{font-size:14px;line-height:1.5}
.tsemou-community-compact .tsemou-real-communities>p:empty{display:none}
.tsemou-community-compact .tsemou-real-communities__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tsemou-community-compact .tsemou-real-community{min-width:0;display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid #dfe7e2;border-radius:14px;background:#fff}
.tsemou-community-compact .tsemou-real-community__identity{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none;min-width:0}
.tsemou-community-compact .tsemou-real-community__avatar{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;overflow:hidden;background:#edf4ef;color:#34594a;font-size:19px;font-weight:700}
.tsemou-community-compact .tsemou-real-community__avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tsemou-community-compact .tsemou-real-community h3{margin:0;font:700 15px/1.3 Inter,sans-serif;overflow-wrap:anywhere}
.tsemou-community-compact .tsemou-real-community>p{margin:0;font:400 13px/1.45 Inter,sans-serif;color:#52665c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tsemou-community-compact .tsemou-real-community__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:12px;color:#657870;flex-wrap:wrap}
.tsemou-community-compact .tsemou-real-community__footer>a{margin-left:auto;display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border-radius:999px;background:#edf4ef;color:#214b3f;text-decoration:none;font-size:12px;font-weight:600}
.tsemou-community-compact .tsemou-real-communities button{min-height:40px;padding:8px 12px;border:1px solid #d2e1d8;border-radius:20px;background:#edf4ef;color:#214b3f;font-size:13px}
.tsemou-community-compact .tsemou-real-communities [hidden]{display:none!important}
@media(max-width:600px){.tsemou-community-compact .tsemou-real-communities__list{grid-template-columns:1fr}}

[data-community-discovery-root][data-real-communities="1"] :is([data-tsemou-community-search-results],[data-tsemou-community-search-empty],[data-tsemou-category-empty],[data-community-status]){display:none!important}

/* LAB2740 — category rails, two rows flowing horizontally. */
[data-community-discovery-root].tsemou-community-compact .tsemou-real-communities__list{display:flex!important;flex-direction:column!important;gap:24px!important}
.tsemou-community-compact .tsemou-community-rail-group{min-width:0;scroll-margin-top:16px}
.tsemou-community-compact .tsemou-community-rail-heading{margin:0 0 10px;font:700 18px/1.3 Inter,sans-serif;color:#183d33}
.tsemou-community-compact .tsemou-community-rail-heading>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;color:inherit;text-decoration:none}
.tsemou-community-compact .tsemou-community-rail-heading>a>span:last-child{font-size:26px}
.tsemou-community-compact .tsemou-community-rail{display:grid;grid-template-rows:repeat(2,132px);grid-auto-flow:column;grid-auto-columns:260px;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:0 0 8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community{box-sizing:border-box;min-width:0;height:132px;padding:10px;gap:5px;border-radius:12px;scroll-snap-align:start;overflow:hidden}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community__identity{gap:7px;min-height:34px}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community__avatar{width:32px;height:32px;flex-basis:32px;font-size:16px}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community h3{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community>p{font-size:12px;line-height:1.4;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community__footer{font-size:11px;flex-wrap:nowrap;gap:4px}
.tsemou-community-compact .tsemou-community-rail .tsemou-real-community__footer>a{font-size:11px;min-height:28px;padding:3px 7px;white-space:nowrap}
@media(max-width:600px){.tsemou-community-compact .tsemou-community-rail{grid-auto-columns:min(260px,calc(100vw - 72px))}}

/* LAB2741 — one row for 1–3 communities, two rows from four onward. */
[data-community-discovery-root].tsemou-community-compact .tsemou-community-rail{grid-template-rows:132px!important}
[data-community-discovery-root].tsemou-community-compact .tsemou-community-rail.has-two-rows{grid-template-rows:repeat(2,132px)!important}
