/* Compact homepage previews; full articles keep their original content. */
.home-membership-summary{max-width:1480px;margin:28px auto 0;padding:0 24px}
.home-membership-summary .buttons{display:block;width:100%;max-width:none;overflow:visible;padding:0;margin:0}
.home-membership-summary .member-stats-container{max-width:none;margin-bottom:24px}
.home-community-grid{max-width:1480px;margin:0 auto 32px;padding:0 24px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'b b' 'a c';gap:32px 24px;align-items:start}
.home-community-grid>.grid_left_div,.home-community-grid>.grid_center_div,.home-community-grid>.grid_right_div{padding:0;min-width:0}
.home-community-grid .head_item3{min-height:46px;margin:0 0 18px;align-items:center}
.home-community-grid .head_item3 span{margin:0;font-size:18px;line-height:1.5;padding:8px 16px}
.home-community-grid .activity-home{margin:0!important}
.home-community-grid .activity-home-feed{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-community-grid .activity-card{display:flex;flex-direction:column;min-width:0;border-radius:12px}
.home-community-grid .activity-cover img{height:160px;aspect-ratio:auto;object-fit:contain}
.home-community-grid .activity-card-body{display:flex;flex-direction:column;flex:1;padding:16px}
.home-community-grid .activity-meta{font-size:11px;gap:4px 10px;margin-bottom:8px}
.home-community-grid .activity-card h3{font-size:18px;line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-community-grid .activity-city{font-size:12px;margin-bottom:8px}
.home-community-grid .activity-excerpt{font-size:14px;line-height:1.7;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-community-grid .activity-card-actions{margin-top:auto;padding-top:12px;gap:8px}
.home-community-grid .activity-read{font-size:12px}.home-community-grid .activity-read span{margin-left:5px}
.home-community-grid .activity-share-button{font-size:12px;padding:7px 9px;gap:5px}
.home-community-grid .activity-all-button,.home-community-grid .activity-empty{grid-column:1/-1}
.home-community-grid .activity-all-button{margin-top:2px;padding:10px 18px}
.home-community-grid .member_slider{padding:10px;margin:0;box-shadow:0 4px 16px #20355012;border:1px solid #dfe6ef;border-radius:12px}
.home-community-grid .member_slider .carousel-inner .card{padding:10px}
.home-community-grid .member_slider .carousel-inner .card .card-img-top{width:100%;height:190px;object-fit:contain}
.home-community-grid .member_slider .carousel-inner .card .card-body{min-height:94px;display:flex;flex-direction:column;justify-content:center;padding:6px;box-sizing:border-box}
.home-community-grid .member_slider .carousel-inner .card h5{font-size:16px;line-height:1.5;margin:0}
.home-community-grid .view_all_btn{margin:16px auto 22px;font-size:14px}
.home-community-grid .content{margin-top:18px;max-width:none;border-radius:10px}
.home-community-grid .content img{aspect-ratio:16/10;object-fit:cover;display:block}
.home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:20px;background:#fff;border:1px solid #dfe6ef;border-radius:14px}
.home-community-grid .right_content_1,.home-community-grid .left_content_1,.home-community-grid .right_content_1>div,.home-community-grid .left_content_1>div{display:contents}
.home-community-grid>.grid_left_div .head_item3,.home-community-grid>.grid_right_div .head_item3{grid-column:1/-1;margin:0}
.home-community-grid .member_slider{grid-column:1;grid-row:2/4;align-self:stretch}
.home-community-grid .view_all_btn{grid-column:1/-1;grid-row:4;margin:0 auto;font-size:14px}
.home-community-grid .content{grid-column:2;margin:0;align-self:stretch}
.home-community-grid .content img{height:150px;aspect-ratio:auto}
@media(max-width:1000px){.home-community-grid{padding:0 18px;gap:24px 18px}.home-community-grid .activity-home-feed{gap:16px}.home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{padding:14px;gap:12px}.home-community-grid .head_item3 span{font-size:16px;padding:8px 10px}.home-membership-summary{padding:0 18px}.home-community-grid .member_slider .carousel-inner .card{padding:4px}.home-community-grid .member_slider .carousel-inner .card h5{font-size:14px}}
@media(max-width:760px){.home-community-grid{grid-template-areas:'b b' 'a a' 'c c'}.home-community-grid .activity-home-feed{grid-template-columns:repeat(2,minmax(0,1fr))}.home-community-grid .member_slider .carousel-inner .card .card-img-top{height:190px}}
@media(max-width:560px){.home-community-grid{padding:0 14px;gap:24px 14px}.home-community-grid .activity-home-feed{gap:14px;grid-template-columns:1fr}.home-community-grid .member_slider{padding:6px}.home-community-grid .member_slider .carousel-inner .card .card-img-top{height:170px}.home-community-grid .member_slider .carousel-inner .card .card-body{min-height:94px}.home-membership-summary{padding:0 14px}.home-membership-summary .member-stats-container{padding:0}}

/* Team panels contain profiles only; banners have their own separate row. */
.home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{display:block}
.home-community-grid .right_content_1,.home-community-grid .left_content_1,.home-community-grid .right_content_1>div,.home-community-grid .left_content_1>div{display:block}
.home-community-grid>.grid_left_div .head_item3,.home-community-grid>.grid_right_div .head_item3{margin-bottom:18px}
.home-community-grid .member_slider .carousel-inner .card{display:flex;flex-direction:row;align-items:center;gap:18px;padding:12px}
.home-community-grid .member_slider .carousel-inner .card .card-img-top{width:44%;height:220px;flex-shrink:0}
.home-community-grid .member_slider .carousel-inner .card .card-body{flex:1;margin:0;padding:16px 8px;background:transparent}
.home-community-grid .member_slider .carousel-inner .card h5{font-size:18px}
.home-community-grid .view_all_btn{margin:18px auto 0}
.home-banner-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;max-width:1480px;margin:0 auto 36px;padding:0 24px}
.home-banner-strip .content{margin:0;max-width:none;border-radius:10px}
.home-banner-strip .content img{height:140px;object-fit:contain;background:#edf2f7;display:block}
@media(max-width:1000px){.home-community-grid .member_slider .carousel-inner .card{gap:10px;padding:6px}.home-community-grid .member_slider .carousel-inner .card h5{font-size:15px}.home-banner-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 18px}}
@media(max-width:560px){.home-community-grid .member_slider .carousel-inner .card .card-img-top{height:180px}.home-banner-strip{padding:0 14px;gap:14px}.home-banner-strip .content img{height:110px}}
/* Larger activity photographs and quieter, readable community profile cards. */
.home-community-grid .activity-cover img{height:240px;object-fit:contain}
.home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{padding:18px;border-radius:18px;box-shadow:0 8px 28px #243a5406}
.home-community-grid>.grid_left_div .head_item3,.home-community-grid>.grid_right_div .head_item3{justify-content:flex-start;margin-bottom:12px;min-height:32px}
.home-community-grid>.grid_left_div .head_item3 span,.home-community-grid>.grid_right_div .head_item3 span{background:transparent!important;border:0!important;box-shadow:none!important;color:#233e59;padding:0;font-size:23px;font-weight:700;text-align:left}
.home-community-grid .member_slider{position:relative;padding:0 0 36px;background:#f5f8fb;border:1px solid #e3eaf1;box-shadow:none;border-radius:13px;overflow:hidden}
.home-community-grid .member_slider .carousel-inner .card{background:transparent!important;border:0!important;box-shadow:none!important;display:flex;flex-direction:row;align-items:center;gap:24px;padding:14px 18px;min-height:0}
.home-community-grid .member_slider .carousel-inner .card .card-img-top{width:180px;height:230px;margin:0;border:5px solid #fff;border-radius:12px;background:#e6edf4;box-shadow:0 5px 18px #213e5912;object-fit:contain!important}
.home-community-grid .member_slider .carousel-inner .card .card-body{min-width:0;padding:0;margin:0;min-height:0;align-items:flex-start;background:transparent!important}
.home-community-grid .member_slider .carousel-inner .card h5{color:#253e58;font-size:24px;line-height:1.5;text-align:left!important;font-weight:700;margin:0 0 10px;overflow-wrap:anywhere}
.home-community-grid .member_slider .carousel-inner .card h5:nth-child(2){font-size:16px;font-weight:400;color:#63758b;margin:0;line-height:1.8}
.home-community-grid .member_slider .carousel-indicators{left:18px;right:auto;bottom:15px;margin:0;justify-content:flex-start;gap:5px;max-width:calc(100% - 140px);flex-wrap:wrap}
.home-community-grid .member_slider .carousel-indicators li{background-color:#91a8be;width:18px;height:4px;border:0;border-radius:4px;margin:0;opacity:.55}
.home-community-grid .member_slider .carousel-indicators li.active{background-color:#23649c;opacity:1}
.home-community-grid .member_slider .carousel-control-prev,.home-community-grid .member_slider .carousel-control-next{top:auto;bottom:7px;width:28px;height:28px;left:auto;border-radius:50%;background:#23649c;opacity:1;z-index:5}
.home-community-grid .member_slider .carousel-control-prev{right:48px}.home-community-grid .member_slider .carousel-control-next{right:14px}
.home-community-grid .member_slider .carousel-control-prev-icon,.home-community-grid .member_slider .carousel-control-next-icon{width:13px;height:13px;background-size:13px}
.home-community-grid .view_all_btn{background:transparent;border:0;border-radius:0;color:#23649c;box-shadow:none;margin:12px 0 0;padding:0;font-weight:600;font-size:14px;text-decoration:none}
.home-community-grid .view_all_btn::after{content:' →';margin-left:10px}
.home-community-grid .view_all_btn:hover{text-decoration:underline}
@media(max-width:1100px) and (min-width:761px){.home-community-grid .member_slider .carousel-inner .card{gap:18px;padding:14px;min-height:0}.home-community-grid .member_slider .carousel-inner .card .card-img-top{width:135px;height:200px}.home-community-grid .member_slider .carousel-inner .card h5{font-size:20px}.home-community-grid .member_slider .carousel-inner .card h5:nth-child(2){font-size:14px}}
@media(max-width:560px){.home-community-grid .activity-cover img{height:220px}.home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{padding:18px}.home-community-grid .member_slider .carousel-inner .card{padding:14px;gap:18px;min-height:0}.home-community-grid .member_slider .carousel-inner .card .card-img-top{width:120px;height:180px}.home-community-grid .member_slider .carousel-inner .card h5{font-size:20px}.home-community-grid .member_slider .carousel-inner .card h5:nth-child(2){font-size:14px}}

/* Phone layouts: keep portraits and names aligned without the old slider minimum. */
@media(max-width:560px){
 .home-community-grid{row-gap:20px}
 .home-community-grid>.grid_left_div,.home-community-grid>.grid_right_div{padding:14px}
 .home-community-grid>.grid_left_div .head_item3,.home-community-grid>.grid_right_div .head_item3{min-height:28px;margin-bottom:10px}
 .home-community-grid>.grid_left_div .head_item3 span,.home-community-grid>.grid_right_div .head_item3 span{font-size:20px;line-height:1.4}
 .home-community-grid .member_slider{min-height:0;padding-bottom:44px}
 .home-community-grid .member_slider .carousel-inner .card{flex-direction:row;gap:14px;padding:12px;min-height:180px}
 .home-community-grid .member_slider .carousel-inner .card .card-img-top{width:104px;height:156px;border-width:4px}
 .home-community-grid .member_slider .carousel-inner .card .card-body{width:auto;flex:1}
 .home-community-grid .member_slider .carousel-inner .card h5{font-size:19px;margin-bottom:6px;line-height:1.45}
 .home-community-grid .member_slider .carousel-inner .card h5:nth-child(2){font-size:14px;line-height:1.65;margin:0}
 .home-community-grid .member_slider .carousel-control-prev,.home-community-grid .member_slider .carousel-control-next{width:36px;height:36px;bottom:5px}
 .home-community-grid .member_slider .carousel-control-prev{right:54px}
 .home-community-grid .member_slider .carousel-control-next{right:10px}
 .home-community-grid .member_slider .carousel-indicators{left:12px;bottom:20px}
 .home-community-grid .view_all_btn{display:inline-flex;align-items:center;min-height:40px;margin-top:4px}
 .home-community-grid .activity-card-body{padding:14px}
 .home-community-grid .activity-card-actions{gap:12px;padding-top:8px}
 .home-community-grid .activity-read,.home-community-grid .activity-share-button{min-height:40px;display:inline-flex;align-items:center}
 .home-community-grid .activity-all-button{margin-top:0;min-height:44px}
}
@media(max-width:360px){
 .home-community-grid .member_slider .carousel-inner .card{gap:12px;min-height:158px}
 .home-community-grid .member_slider .carousel-inner .card .card-img-top{width:88px;height:132px}
 .home-community-grid .member_slider .carousel-inner .card h5{font-size:18px}
 .home-community-grid .member_slider .carousel-inner .card h5:nth-child(2){font-size:13px}
}
/* Override legacy ID-based fixed slider widths on narrow screens. */
.home-community-grid #member_slider_indicators,.home-community-grid #management_slider_indicators{width:100%;min-width:0;max-width:100%}
.home-community-grid .member_slider .carousel-inner .card h5{max-width:100%;white-space:normal}