/* Cool-Teens Community Hub v3.1; intentionally scoped to hub-* */
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#173d2b;background:#f3f9f5}*{box-sizing:border-box}body{margin:0}a{color:#0a6b43;text-decoration:none}a:hover{text-decoration:underline}.hub-wrap{max-width:1480px;margin:auto;padding:16px 22px}.hub-banner{background:linear-gradient(115deg,#075b3b,#12764e);border-radius:15px;color:#fff;padding:32px 38px;min-height:230px;display:flex;align-items:center}.hub-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#bce6ce}.hub-banner h1{font-size:clamp(28px,3.3vw,43px);line-height:1.13;margin:10px 0}.hub-banner p{font-size:15px;max-width:550px;line-height:1.5}.hub-banner-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hub-btn{padding:11px 16px;border-radius:9px;font-weight:750;font-size:13px}.hub-btn-light{background:#fff;color:#075b3b}.hub-btn-outline{border:1px solid #d6f2e2;color:#fff}.hub-columns{display:grid;grid-template-columns:250px minmax(0,1fr)340px;gap:16px;align-items:start;margin-top:16px}.hub-center,.hub-left,.hub-right{min-width:0}.hub-panel,.hub-post{background:#fff;border:1px solid #d9e9df;border-radius:13px;padding:18px;margin-bottom:14px;box-shadow:0 2px 6px rgba(14,65,37,.03)}.hub-panel h2,.hub-section-title h2{font-size:18px;margin:0}.hub-welcome,.hub-compose-row,.hub-post-top{display:flex;gap:12px;align-items:center}.hub-welcome strong{display:block;font-size:14px}.hub-welcome small{display:block;color:#678171;font-size:12px;margin-top:4px}.hub-avatar{width:43px;height:43px;flex:0 0 43px;border-radius:50%;background:#dcefe5;color:#086540;display:grid;place-items:center;font-size:18px;font-weight:800}.hub-avatar-lg{width:46px;height:46px;flex-basis:46px}.hub-side-links{border-top:1px solid #e4eee7;margin-top:15px;padding-top:10px}.hub-side-links a{display:block;padding:11px 10px;border-radius:8px;color:#175338;font-size:14px;font-weight:650}.hub-side-links a.active,.hub-side-links a:hover{background:#e6f5ec}.hub-muted{font-size:12px;color:#607568;line-height:1.6}.hub-compose-prompt{display:block;flex:1;border:1px solid #dce8df;border-radius:25px;background:#f5faf7;color:#5b7565;padding:13px 17px;font-size:13px}.hub-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.hub-post h3{font-size:17px;line-height:1.4;margin:15px 0 6px;overflow-wrap:anywhere}.hub-post h3 a{color:#173d2b}.hub-post-info{min-width:0;font-size:13px}.hub-post-info strong{display:block}.hub-preview{font-size:13px;color:#536e5d;line-height:1.65;margin:6px 0 15px;overflow-wrap:anywhere}.hub-post-bottom{border-top:1px solid #e7efe9;padding-top:12px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:12px;color:#607568}.hub-post-bottom a{margin-left:auto;font-weight:700}.hub-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hub-community{background:#f2f9f4;border:1px solid #dcebe0;border-radius:11px;padding:14px;min-width:0}.hub-community strong,.hub-community small{display:block;overflow-wrap:anywhere}.hub-community strong{color:#173d2b;font-size:14px;margin:8px 0}.hub-community small{font-size:11px;color:#61796b}.hub-community-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:9px;background:#dcefe5}.hub-pulse{display:flex;justify-content:space-around;text-align:center;margin:17px 0}.hub-pulse strong{display:block;color:#075b3b;font-size:24px}.hub-pulse small{color:#607568;font-size:11px}.hub-popular{display:block;border-top:1px solid #e7efe9;padding:12px 0}.hub-popular strong{font-size:13px;display:block;color:#173d2b;overflow-wrap:anywhere}.hub-popular small{display:block;color:#607568;margin-top:5px}.hub-empty{color:#607568;font-size:13px}@media(max-width:1100px){.hub-columns{grid-template-columns:210px minmax(0,1fr)270px}}@media(max-width:900px){.hub-columns{grid-template-columns:minmax(0,1fr)270px}.hub-left{display:none}}@media(max-width:767px){.hub-wrap{padding:12px 14px}.hub-columns{display:block}.hub-right{margin-top:14px}.hub-banner{min-height:220px;padding:24px 20px}.hub-banner h1{font-size:29px}.hub-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:400px){.hub-wrap{padding:10px}.hub-community-grid{grid-template-columns:1fr}.hub-post-bottom a{margin-left:0}}

/* v3.1: Instagram-meets-Reddit feed, medium images and mobile-first spacing */
.hub-wrap{max-width:1540px}.hub-banner{min-height:175px;padding:24px 32px}.hub-banner h1{font-size:clamp(27px,3vw,38px)}
.hub-communities{margin-bottom:15px}.hub-community-grid{display:flex;gap:10px;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x proximity}.hub-community{flex:0 0 165px;scroll-snap-align:start}.hub-community-icon{font-size:22px}
.hub-feed-tabs{display:flex;gap:5px;background:#eaf4ed;padding:4px;border-radius:12px}.hub-feed-tabs a{padding:8px 13px;border-radius:9px;font-size:13px;font-weight:750;color:#356b50}.hub-feed-tabs a.active{background:#075b3b;color:#fff}
.hub-post{padding:18px}.hub-post-info strong a{color:#173d2b}.hub-post h3{font-size:19px;margin:13px 0 6px}.hub-preview{font-size:14px;line-height:1.55}.hub-media{display:flex;justify-content:center;align-items:center;overflow:hidden;background:#f3f9f5;border:1px solid #e3eee7;border-radius:11px;margin:12px 0 15px;max-height:310px}.hub-media img{display:block;max-width:100%;width:auto;height:auto;max-height:310px;object-fit:contain}
.hub-post-actions{display:flex;gap:8px;margin-left:auto}.hub-post-bottom .hub-action{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font:700 12px system-ui,-apple-system,"Segoe UI",sans-serif;border-radius:8px;padding:9px 12px;border:1px solid #cfe5d7;color:#075b3b;background:#f2f9f5;text-decoration:none;margin:0}.hub-post-bottom .hub-reply{background:#075b3b;color:white;border-color:#075b3b}.hub-action:hover{filter:brightness(.95)}
@media(max-width:767px){.hub-banner{min-height:0;padding:17px 18px}.hub-banner h1{font-size:25px;line-height:1.15;margin:6px 0}.hub-banner p{font-size:12px;margin:7px 0}.hub-banner-actions{margin-top:11px}.hub-btn{padding:9px 11px;font-size:12px}.hub-community{flex-basis:142px;padding:11px}.hub-communities{padding:13px}.hub-post{padding:13px}.hub-post h3{font-size:17px}.hub-media,.hub-media img{max-height:260px}.hub-post-bottom{gap:8px}.hub-post-actions{width:100%;margin-left:0}.hub-post-bottom .hub-action{flex:1}.hub-feed-tabs a{font-size:12px;padding:7px 10px}}
@media(max-width:400px){.hub-community-grid{display:flex}.hub-post-actions{flex-wrap:wrap}}

/* v3.2: homepage-matched spacious desktop, photographic banner, richer social cards */
.hub-wrap{max-width:1480px;width:100%;margin-inline:auto;padding:16px 22px}
.hub-columns{grid-template-columns:250px minmax(0,1fr)320px;gap:16px}
.hub-banner{position:relative;isolation:isolate;overflow:hidden;min-height:245px;align-items:center;background:#075b3b url('/assets/teens-hero.webp') center right/cover no-repeat;padding:30px 36px}
.hub-banner:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#075b3b 0%,rgba(7,91,59,.97) 30%,rgba(7,91,59,.75) 52%,rgba(7,91,59,.08) 100%)}
.hub-banner>div{max-width:630px}.hub-banner h1{font-size:clamp(30px,3vw,43px)}
.hub-center{min-width:0}.hub-feed{min-width:0}.hub-feed .hub-section-title{margin:18px 0 14px}
.hub-post{padding:20px 22px;border-radius:14px;box-shadow:0 3px 12px rgba(14,65,37,.045)}
.hub-post-top{align-items:center}.hub-post-info strong{font-size:14px}.hub-post h3{font-size:19px;margin:16px 0 8px}.hub-preview{font-size:14px;line-height:1.65;color:#4b6857}
.hub-media{width:100%;max-height:none;min-height:180px;aspect-ratio:16/9;background:#edf6f0;margin:14px 0 17px;border-radius:12px}
.hub-media img{width:100%;height:100%;max-height:360px;object-fit:contain}
.hub-post-bottom{gap:12px}.hub-post-actions{gap:7px}.hub-post-bottom .hub-action{white-space:nowrap}
.hub-post-bottom .hub-open{background:white;color:#075b3b}.hub-post-bottom .hub-open:hover{background:#eaf4ed}
.hub-community{flex-basis:190px;min-height:112px}.hub-community-grid{scrollbar-width:thin}
.hub-compose-prompt:hover{background:#eaf5ee;text-decoration:none}.hub-post h3 a:hover{text-decoration:underline}
@media(max-width:1150px){.hub-columns{grid-template-columns:210px minmax(0,1fr)265px}.hub-post-bottom .hub-action{padding:8px 9px}}
@media(max-width:950px){.hub-columns{grid-template-columns:minmax(0,1fr)265px}.hub-left{display:none}}
@media(max-width:767px){.hub-wrap{padding:12px 14px}.hub-columns{display:block}.hub-banner{min-height:0;padding:19px 20px;background-position:65% center}.hub-banner:before{background:linear-gradient(90deg,rgba(7,91,59,.98),rgba(7,91,59,.85))}.hub-banner h1{font-size:26px}.hub-post{padding:15px}.hub-media{min-height:140px;aspect-ratio:16/10}.hub-media img{max-height:280px}.hub-community{flex-basis:154px;min-height:100px}.hub-post-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hub-post-bottom .hub-action{padding:10px 5px;font-size:11px}.hub-right{margin-top:14px}}
@media(max-width:400px){.hub-wrap{padding:10px}.hub-banner{padding:17px}.hub-media img{max-height:240px}.hub-post-bottom{gap:8px}.hub-post-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
