.community-web-page { min-height: 100vh; }
.community-web-page .member-header { width: min(1400px,calc(100% - 64px)); }
.community-web-page .member-nav { gap: 22px; }
.community-web-page .member-nav > a[aria-current="page"] { color: var(--purple); }
.community-account { display: inline-flex; align-items: center; gap: 8px; color: var(--purple-deep); font-size: 13px; font-weight: 750; }
.community-shell { width: min(1400px,calc(100% - 64px)); margin: 0 auto; padding: 37px 0 70px; }
.community-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.community-intro h1 { margin: 10px 0 7px; color: var(--purple-deep); font-family: Manrope,sans-serif; font-size: clamp(36px,4vw,52px); letter-spacing: -.06em; line-height: 1.07; }
.community-intro h1 span { color: var(--purple); background: linear-gradient(105deg,#7655c9 10%,#9675df 72%,#ef762f 140%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.community-intro p { margin: 0; color: #77727f; font-size: 15px; }
.community-intro .button { min-height: 46px; flex: 0 0 auto; padding-inline: 17px; font-size: 13px; }
.community-layout { display: grid; grid-template-columns: 238px minmax(0,660px) 280px; align-items: start; justify-content: center; gap: 22px; }
.community-sidebar,.community-discover { position: sticky; top: 18px; display: grid; gap: 14px; }
.community-search-card,.community-nav,.community-side-note,.community-discover .discover-card { border: 1px solid #ece8f0; border-radius: 18px; background: #fff; box-shadow: 0 7px 22px #32204809; }
.community-search-card { padding: 13px; }
.community-searchbox { height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #ebe7f0; border-radius: 12px; color: var(--purple); background: #faf9fc; }
.community-searchbox > span { font-size: 21px; }
.community-searchbox input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.community-searchbox input::placeholder { color: #96909d; }
.community-searchbox button { width: 24px; height: 24px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #776d82; background: #efedf3; cursor: pointer; font-size: 18px; line-height: 1; }
.community-search-card p { margin: 9px 3px 0; color: #928c98; font-size: 10px; line-height: 1.45; }
.community-nav { display: grid; gap: 4px; padding: 8px; }
.community-nav button { height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 12px; color: #716a7b; background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 700; }
.community-nav button i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--purple); background: #f1edfa; font-size: 16px; font-style: normal; }
.community-nav button.active { color: var(--purple-deep); background: #f3effa; }
.community-nav button.active i { color: white; background: var(--purple); }
.community-side-note { display: flex; gap: 11px; padding: 15px 13px; background: linear-gradient(145deg,#f4effb,#fff8f2); }
.community-side-note > span { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #bf6429; background: #fff0e4; font-size: 20px; }
.community-side-note b { display: block; color: var(--purple-deep); font-size: 12px; }
.community-side-note p { margin: 6px 0 8px; color: #81798b; font-size: 11px; line-height: 1.5; }
.community-side-note a,.ride-discover-card a { color: var(--purple); font-size: 11px; font-weight: 800; }
.community-main { min-width: 0; }
.community-mobile-tabs { display: none; }
.community-compose,.community-composer-panel,.community-post,.community-space-result,.community-person-result { margin-bottom: 13px; border: 1px solid #ece8f0; border-radius: 18px; background: white; box-shadow: 0 7px 22px #32204809; }
.community-compose { display: flex; align-items: center; gap: 11px; padding: 13px; }
.community-compose-avatar,.community-post-avatar,.community-space-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: white; background: linear-gradient(140deg,#9a74e9,#5838a0); font-size: 13px; font-weight: 800; }
.community-compose-avatar img,.community-post-avatar img,.community-space-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-compose > button { min-width: 0; height: 40px; flex: 1; border: 0; border-radius: 22px; padding: 0 14px; color: #7c7584; background: #f5f3f7; cursor: pointer; text-align: left; font-size: 13px; }
.community-compose > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--purple); }
.community-composer-panel { padding: 17px; }
.community-composer-panel label { display: block; margin-bottom: 10px; color: var(--purple-deep); font-size: 14px; font-weight: 800; }
.community-composer-panel textarea,.community-comment-list + form textarea,.community-comments form textarea { width: 100%; resize: vertical; border: 1px solid #e9e5ee; border-radius: 12px; padding: 12px; outline-color: var(--purple); color: var(--ink); background: #fcfbfd; font: inherit; font-size: 13px; line-height: 1.5; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.composer-actions small { color: #918a98; font-size: 10px; }
.composer-actions .button { min-height: 38px; padding-inline: 16px; border-radius: 11px; font-size: 12px; }
.community-state { margin-bottom: 13px; padding: 12px 14px; border-radius: 12px; color: #6f6877; background: #f1edf8; font-size: 12px; }
.community-state[hidden] { display: none; }
.community-state[data-kind="error"] { color: #8c4234; background: #fff0eb; }
.community-post { overflow: hidden; }
.community-post-head { display: flex; align-items: center; gap: 10px; padding: 15px 16px 9px; }
.community-post-meta { min-width: 0; flex: 1; }
.community-post-meta b,.community-post-meta small { display: block; }
.community-post-meta b { overflow: hidden; color: #302a3a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.community-post-meta small { margin-top: 3px; color: #928c98; font-size: 10px; }
.community-space-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--purple); font-size: 10px; font-weight: 750; }
.community-post-body { padding: 4px 16px 13px; color: #494350; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.community-post-body:empty { display: none; }
.community-post-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; overflow: hidden; }
.community-post-media img { width: 100%; max-height: 360px; aspect-ratio: 1.2; object-fit: cover; background: #eeeaf3; }
.community-post-media img:only-child { max-height: 440px; aspect-ratio: 1.5; }
.community-ride-preview { margin: 0 14px 13px; overflow: hidden; border: 1px solid #efecf2; border-radius: 14px; }
.community-ride-map { height: 148px; display: grid; place-items: center; background-color: #efedf2; background-image: linear-gradient(32deg,transparent 43%,#fff 43.5%,#fff 45.4%,transparent 45.9%),linear-gradient(142deg,transparent 31%,#dcd6e7 31.5%,#dcd6e7 33.5%,transparent 34%),linear-gradient(#e5e0e9 1px,transparent 1px),linear-gradient(90deg,#e5e0e9 1px,transparent 1px); background-size: auto,auto,36px 36px,36px 36px; }
.community-ride-map .route-svg { width: 100%; height: 100%; padding: 18px; }
.community-ride-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; }
.community-ride-info b,.community-ride-info small { display: block; }
.community-ride-info b { color: var(--purple-deep); font-size: 12px; }
.community-ride-info small { margin-top: 4px; color: #918a98; font-size: 10px; }
.community-ride-info .ride-distance { color: var(--purple); font-size: 12px; font-weight: 800; white-space: nowrap; }
.community-post-stats { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #f0edf3; color: #928c98; font-size: 10px; }
.community-post-actions { display: grid; grid-template-columns: repeat(2,1fr); padding: 3px 9px; }
.community-post-actions button { min-height: 38px; border: 0; border-radius: 9px; color: #746d7d; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.community-post-actions button:hover,.community-post-actions button.liked { color: var(--purple); background: #f5f1fb; }
.community-post-actions button:disabled { opacity: .5; cursor: wait; }
.community-load-more { width: 100%; min-height: 43px; margin: 2px 0 18px; border: 1px solid #e8e3ed; border-radius: 12px; color: var(--purple); background: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.community-discover .discover-card { padding: 16px; }
.discover-heading > span,.ride-discover-card > div > span { color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.discover-heading h2,.ride-discover-card h2 { margin: 6px 0 5px; color: var(--purple-deep); font-family: Manrope,sans-serif; font-size: 18px; letter-spacing: -.04em; }
.discover-heading p,.ride-discover-card p { margin: 0; color: #827b8b; font-size: 11px; line-height: 1.55; }
.featured-spaces { display: grid; gap: 9px; margin-top: 14px; }
.discover-loading { padding: 13px 0; color: #928c98; font-size: 11px; }
.featured-space { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 12px; background: #faf9fc; }
.featured-space .community-space-avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.featured-space-info { min-width: 0; flex: 1; }
.featured-space-info b,.featured-space-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-space-info b { color: #40394b; font-size: 11px; }
.featured-space-info small { margin-top: 3px; color: #97909e; font-size: 9px; }
.featured-space button { width: 27px; height: 27px; flex: 0 0 auto; border: 0; border-radius: 9px; color: var(--purple); background: #efeafa; cursor: pointer; font-weight: 800; }
.discover-link { width: 100%; display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1px solid #f0edf3; color: var(--purple); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.ride-discover-card { display: flex; align-items: flex-start; gap: 12px; background: linear-gradient(145deg,#f2edfa,#fff7ef) !important; }
.ride-discover-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #bc6128; background: #fff0e3; font-size: 23px; }
.ride-discover-card h2 { font-size: 15px; }
.ride-discover-card p { margin-bottom: 9px; }
.community-site-footnote { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 4px 5px; color: #98919f; font-size: 9px; }
.community-site-footnote a:hover { color: var(--purple); }
.community-space-result,.community-person-result { display: flex; align-items: center; gap: 12px; padding: 13px; }
.community-space-result .community-space-avatar { width: 46px; height: 46px; border-radius: 14px; }
.community-result-copy { min-width: 0; flex: 1; }
.community-result-copy b,.community-result-copy small { display: block; }
.community-result-copy b { color: var(--purple-deep); font-size: 13px; }
.community-result-copy small { margin-top: 4px; color: #898291; font-size: 10px; line-height: 1.45; }
.community-result-copy p { margin: 5px 0 0; color: #766f7d; font-size: 11px; line-height: 1.45; }
.community-space-result > button,.community-person-result > button { min-height: 32px; flex: 0 0 auto; border: 0; border-radius: 10px; padding: 0 11px; color: white; background: var(--purple); cursor: pointer; font-size: 10px; font-weight: 800; }
.community-result-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.community-result-actions button + button { color: var(--purple); background: #f0ebf9; }
.community-external-video { display: inline-flex; margin: 0 16px 12px; color: var(--purple); font-size: 11px; font-weight: 800; }
.community-person-result .community-space-avatar { width: 42px; height: 42px; }
.community-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: #21172e88; }
.community-modal[hidden],.community-composer-panel[hidden] { display: none; }
.community-comments { width: min(540px,100%); max-height: min(85vh,760px); position: relative; display: flex; flex-direction: column; padding: 25px; border-radius: 22px; background: white; box-shadow: 0 30px 90px #1b12264d; }
.community-modal-close { width: 34px; height: 34px; position: absolute; top: 14px; right: 14px; border: 0; border-radius: 10px; color: #625c69; background: #f2eff6; cursor: pointer; font-size: 23px; }
.community-comments h2 { margin: 7px 40px 14px 0; color: var(--purple-deep); font-family: Manrope,sans-serif; font-size: 25px; letter-spacing: -.04em; }
.community-comment-context { max-height: 120px; overflow: auto; margin: -5px 0 13px; padding: 10px 12px; border-radius: 11px; color: #655d6d; background: #f7f5f9; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.community-comment-list { min-height: 70px; flex: 1; overflow: auto; padding: 2px 2px 12px; }
.community-comment { display: flex; gap: 9px; margin-bottom: 11px; }
.community-comment .community-space-avatar { width: 31px; height: 31px; font-size: 10px; }
.community-comment-bubble { padding: 9px 11px; border-radius: 13px; background: #f5f3f7; }
.community-comment-bubble b { color: #3f3848; font-size: 11px; }
.community-comment-bubble p { margin: 4px 0 0; color: #655e6c; font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.community-comments form { display: flex; align-items: flex-end; gap: 9px; padding-top: 12px; border-top: 1px solid #eeeaf1; }
.community-comments form textarea { min-height: 44px; max-height: 130px; }
.community-comments form .button { min-height: 42px; padding-inline: 14px; border-radius: 11px; font-size: 11px; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media(max-width:1100px) { .community-layout { grid-template-columns: 205px minmax(0,650px); }.community-discover { display: none; } }
@media(max-width:720px) {
  .community-web-page .member-header { width: calc(100% - 38px); }
  .community-shell { width: min(100% - 26px,600px); padding-top: 25px; }
  .community-intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 16px; }
  .community-intro h1 { font-size: 38px; }
  .community-intro p { max-width: 450px; font-size: 13px; }
  .community-intro .button { width: 100%; }
  .community-layout { display: block; }
  .community-sidebar { position: static; display: block; margin-bottom: 12px; }
  .community-sidebar .community-nav,.community-sidebar .community-side-note { display: none; }
  .community-search-card { padding: 10px; }
  .community-search-card p { display: none; }
  .community-mobile-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-bottom: 11px; padding: 4px; border: 1px solid #ece8f0; border-radius: 13px; background: white; }
  .community-mobile-tabs button { min-height: 36px; border: 0; border-radius: 10px; color: #797282; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
  .community-mobile-tabs button.active { color: white; background: var(--purple); }
  .community-compose,.community-composer-panel,.community-post,.community-space-result,.community-person-result { border-radius: 15px; }
  .community-post-head { padding: 13px 13px 8px; }
  .community-post-body { padding-inline: 13px; }
  .community-post-media img { max-height: 270px; }
  .community-ride-preview { margin-inline: 10px; }
  .community-comments { max-height: 92vh; padding: 21px 17px; border-radius: 18px; }
}
@media(prefers-reduced-motion:reduce) { .community-web-page * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
