.community-post{position:relative;min-width:0;width:100%;max-width:720px;margin:0 auto;background:#fff;border:1px solid #e2eafb;border-radius:22px;box-shadow:0 5px 22px #12204406;overflow:hidden;color:#142743;font-family:inherit;text-align:left}
.community-post *, .community-panel *{box-sizing:border-box}.community-post [hidden],.community-panel [hidden]{display:none!important}
.community-header{display:flex;align-items:center;gap:10px;padding:18px 20px 10px}.community-avatar{width:40px;height:40px;border-radius:50%;flex:0 0 40px;background:#edf3ff;color:#3468be;display:grid;place-items:center;font-weight:700;overflow:hidden;text-decoration:none}.community-avatar img{width:100%;height:100%;object-fit:cover}.community-author{min-width:0;flex:1}.community-author>a{font-size:16px;line-height:1.35;font-weight:700;color:inherit;text-decoration:none;overflow-wrap:anywhere}.community-author>div{display:flex;flex-wrap:wrap;gap:5px 8px;font-size:14px;color:#7183a0}.community-verified{color:#0755ff;margin-left:5px}.community-positive{color:#8b6a1a;font-size:13px;white-space:nowrap}.community-header-actions{display:flex;align-items:center;gap:3px;align-self:flex-start}.community-header-actions button{border:0;background:none;color:#0755ff;font-size:14px;font-weight:600;min-height:44px;padding:8px;cursor:pointer}.community-menu-toggle{font-size:27px!important;min-width:44px}.community-menu{position:absolute;z-index:5;right:16px;top:62px;display:grid;min-width:170px;padding:7px;background:#fff;border:1px solid #e0e8f8;border-radius:14px;box-shadow:0 8px 30px #17385a24}.community-menu>button,.community-menu>a{font:inherit;font-size:16px;min-height:44px;padding:8px 12px;background:none;border:0;color:#17385a;text-align:left;text-decoration:none;border-radius:8px;cursor:pointer}.community-menu>*:hover{background:#f3f6ff}
.community-copy{padding:6px 20px 14px}.community-copy h2{font-size:19px;line-height:1.45;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.community-excerpt{margin:0;font-size:17px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.community-copy.text-only{padding-bottom:22px}.community-copy.text-only .community-excerpt{font-size:18px;-webkit-line-clamp:10}.community-more{font:inherit;font-weight:600;color:#0755ff;background:none;border:0;min-height:44px;padding:9px 0 0;cursor:pointer}
.community-gallery{position:relative;aspect-ratio:var(--community-aspect,1.33);max-height:58svh;min-height:0;background:#f7f8fa;touch-action:pan-y;overflow:hidden}.community-photo-open{padding:0;border:0;background:transparent;display:block;width:100%;height:100%;cursor:zoom-in}.community-photo-open img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}.community-photo-count{position:absolute;right:12px;bottom:12px;border-radius:20px;background:#1a263cbd;color:#fff;padding:3px 10px;font-size:14px;pointer-events:none}.community-photo-prev,.community-photo-next{position:absolute;top:calc(50% - 22px);min-width:44px;min-height:44px;border:0;border-radius:50%;background:#fffdfbdb;color:#14345c;font-size:30px;cursor:pointer}.community-photo-prev{left:8px}.community-photo-next{right:8px}.community-photo-error{position:absolute;inset:0;background:#f5f7fa;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}.community-photo-error button{min-height:44px;background:#fff;border:1px solid #ccd8ef;border-radius:8px;padding:8px 12px;color:#0755ff}
.community-footer{padding:7px 16px 8px;border-top:1px solid #eaf0f9}.community-footer-actions{display:flex;align-items:center;gap:12px}.community-footer button{min-height:44px;border:0;background:none;font:inherit;cursor:pointer}.community-like{display:flex;align-items:center;gap:7px;color:#526d90;padding:8px}.community-like>span:first-child{font-size:25px;line-height:1}.community-like[aria-pressed=true]{color:#0755ff}.community-comment-open{flex:1;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;color:#617794;padding:9px 4px}.community-comment-preview{margin:5px 4px 0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#526681}.community-comment-preview a{color:#17385a;text-decoration:none;font-weight:600}.community-card-error{margin:8px 20px 16px;color:#bd2c37;font-size:15px}.community-post button:focus-visible,.community-post a:focus-visible,.community-panel button:focus-visible{outline:2px solid #739fff;outline-offset:2px}.community-post button:disabled{opacity:.55;cursor:wait}
.community-panel{--community-view-height:100dvh;--community-keyboard-gap:0px;position:fixed;inset:24px 24px 24px auto;width:420px;max-width:calc(100vw - 32px);height:calc(var(--community-view-height) - 48px);max-height:none;border:1px solid #e0e8f8;border-radius:20px;padding:0;background:#fff;color:#152844;box-shadow:0 12px 70px #14304d2b;overflow:hidden;margin:0;font:inherit}.community-panel[open]{display:flex;flex-direction:column}.community-panel::backdrop,.community-action-dialog::backdrop{background:#14233c35}.community-panel>header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 20px;border-bottom:1px solid #e8eef9}.community-panel h2{font-size:20px;margin:0}.community-panel-close{font-size:30px;background:none;border:0;color:#526d90;width:44px;height:44px;cursor:pointer}.community-panel-status{padding:0 16px;font-size:15px;flex-shrink:0}.community-panel-status:empty{display:none}.community-panel-status button{min-height:44px;background:#eef4ff;color:#0755ff;border:0;border-radius:8px;padding:8px 12px}.community-detail-copy{flex:0 0 auto;min-height:0;border-bottom:1px solid #eaf0f9;padding:0 16px}.community-detail-copy>summary{cursor:pointer;min-height:44px;padding:10px 0;color:#526d90;font-size:15px}.community-detail-copy>div{max-height:35dvh;overflow:auto;overscroll-behavior:contain;padding-bottom:12px}.community-detail-copy a{color:#17385a;font-weight:700;text-decoration:none}.community-detail-copy h3{font-size:20px;line-height:1.5;margin:12px 0}.community-detail-copy p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.6;margin:10px 0}.community-panel-comments{display:flex;flex:1;min-height:0;padding:0 14px}.community-panel .p4m-comments{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.community-panel .comments-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 0}.community-panel .comments-composer{order:20;flex:0 0 auto;margin:0 -14px;padding:10px 14px max(12px,env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid #e5ecfa;max-height:45dvh;overflow:auto;background:#f9fbff}.community-panel .comments-input{min-height:58px;max-height:110px;font-size:16px}.community-panel .comments-image-hint{display:none}.community-panel .comments-notice:empty{display:none}.community-panel .comments-more,.community-panel .comments-status,.community-panel .comments-auth{flex:0 0 auto}.community-panel .comments-notice{max-height:100px;overflow:auto}.community-panel .comments-compose-label{font-size:14px}.community-panel .comments-add-image,.community-panel .comments-submit{min-height:40px}.community-action-dialog{border:1px solid #dbe6f8;border-radius:18px;width:420px;max-width:calc(100vw - 28px);padding:22px;color:#152844;font:inherit}.community-action-dialog h2{margin-top:0;font-size:22px}.community-action-dialog textarea{display:block;width:100%;min-height:100px;padding:10px;border:1px solid #cbd8ef;border-radius:10px;font:inherit;margin:8px 0}.community-action-dialog form>div{display:flex;justify-content:flex-end;gap:12px}.community-action-dialog button{min-height:44px;padding:8px 18px;border-radius:9px;border:1px solid #cad8ee;background:#f6f9ff;color:#0755ff;font:inherit}.community-action-dialog [role=alert]{color:#b82b38}
.post-type-selector{display:flex;gap:6px;padding:14px 18px;border-bottom:1px solid #e3eafa;flex-wrap:wrap}.post-type-selector button{flex:1;min-height:44px;border:0;border-radius:11px;background:#f2f5fc;color:#627a9b;font:inherit;font-size:16px;font-weight:650;padding:8px}.post-type-selector button[aria-pressed=true]{color:#0755ff;background:#eaf1ff;box-shadow:inset 0 0 0 1px #baceff}.post-type-selector button:disabled{opacity:.7}.community-composer .community-fields{padding:22px 24px}.community-composer textarea{width:100%;min-height:160px;padding:14px;border:1px solid #ccd9f0;border-radius:12px;font:inherit;font-size:17px;line-height:1.6;resize:vertical}.community-character-count{text-align:right;color:#7185a5;font-size:14px;margin:5px 0 12px}.community-title summary{padding:10px 0;min-height:44px;color:#617796;font-size:15px;cursor:pointer}.community-title .pw-field{margin:8px 0}.community-upload.pw-upload{margin-top:14px;min-height:100px;padding:14px;cursor:pointer}.community-upload.pw-upload strong{font-size:17px}.community-upload.pw-upload small{font-size:14px}.community-composer .pw-fields>.pw-field{margin:12px 0 6px}.community-composer .pw-next{margin-left:auto}
.community-feed .deck-stack{height:auto;min-height:0;padding:0}.community-feed .stack-card{display:none}.community-feed .feed-deck{width:min(100%,720px);height:auto;min-height:0}.community-feed .feed-main{height:auto;min-height:calc(100svh - 90px);overflow:visible;justify-content:flex-start}.community-feed #story-card[hidden],.community-feed .deck-actions[hidden]{display:none!important}.community-post-navigation{display:flex;justify-content:space-between;gap:10px;margin:12px 0 16px;width:100%}.community-post-navigation button{min-height:44px;background:#fff;border:1px solid #dce6f7;border-radius:10px;padding:8px 14px;font:inherit;font-size:15px;color:#526e96;cursor:pointer}.post-type-filter{display:flex;gap:7px;align-self:center;justify-content:center;flex-wrap:wrap;padding:0 0 12px}.post-type-filter button{min-height:44px;background:transparent;border:0;border-radius:22px;padding:8px 15px;font:inherit;font-size:15px;color:#617895;cursor:pointer}.post-type-filter button[aria-pressed=true]{background:#e9f0ff;color:#0755ff;font-weight:700}
@media(max-width:1199px) and (min-width:768px){.community-panel{right:16px;top:16px;bottom:16px;height:calc(var(--community-view-height) - 32px)}}
@media(max-width:767px){.community-post{border-radius:17px}.community-header{padding:13px 14px 8px;gap:8px}.community-header-actions{gap:0}.community-header-actions button{font-size:13px;padding:5px}.community-header-actions .community-menu-toggle{min-width:44px}.community-author>a{font-size:16px}.community-author>div{font-size:13px}.community-copy{padding:5px 15px 12px}.community-copy.text-only{padding-bottom:18px}.community-footer{padding:6px 10px 8px}.community-gallery{max-height:54svh}.community-panel{inset:auto 0 var(--community-keyboard-gap) 0;width:100%;max-width:100%;height:calc(var(--community-view-height) * .84);border-radius:20px 20px 0 0;max-height:var(--community-view-height)}.community-panel .comments-composer{max-height:calc(var(--community-view-height) * .48)}.community-detail-copy>div{max-height:calc(var(--community-view-height) * .34)}.community-feed .feed-main{padding:12px 14px max(22px,env(safe-area-inset-bottom));height:auto}.post-type-selector{padding:12px;gap:5px}.post-type-selector button{font-size:15px}.community-composer .community-fields{padding:16px}.community-post-navigation{margin-bottom:12px}}
@media(max-height:620px){.community-panel{height:calc(var(--community-view-height) - 8px);top:auto;bottom:var(--community-keyboard-gap)}.community-panel .comments-input{min-height:44px;max-height:70px}.community-panel .comments-compose-label{font-size:13px}.community-detail-copy>div{max-height:24dvh}}
@media(prefers-reduced-motion:reduce){.community-post *,.community-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.community-feed .feed-deck,.community-feed .deck-stack{flex:0 0 auto;width:100%;max-width:720px;margin-left:auto;margin-right:auto}
.community-feed .feed-main{container-type:normal;align-items:center}
.community-gallery{width:100%}
.community-global-menu{align-self:flex-start;min-height:44px;margin:0 0 8px;padding:8px 13px;border:0;border-radius:12px;background:#eaf1ff;color:#0755ff;font:inherit;font-size:16px;cursor:pointer}
.community-global-menu[hidden],.community-post-navigation[hidden]{display:none!important}
.community-panel .comments-composer{padding:10px 14px max(12px,env(safe-area-inset-bottom));margin:0 -14px;border-radius:0;border:0;border-top:1px solid #e5ecfa}
@media(min-width:768px){.community-global-menu{display:none}}

/* Keep the composer actions inside its viewport; only the form fields scroll. */
.pw-wizard.community-composer{display:flex;flex-direction:column;min-height:0}
.pw-wizard.community-composer>.post-type-selector,.pw-wizard.community-composer>.pw-footer{flex:0 0 auto}
.pw-wizard.community-composer>.community-form-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding:16px;touch-action:pan-y pinch-zoom}
.community-composer .community-fields{min-width:0}
.community-composer>.pw-footer{padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;position:relative;z-index:1}
.community-composer .pw-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.community-composer .pw-actions button{min-height:44px;white-space:nowrap}
.community-composer .pw-next{margin-left:0}

/* Shared post card, matching the compact photo and four-action layout. */
.community-post{border-color:#e5ecfa;background:linear-gradient(135deg,#fff,#fbfcff);border-radius:20px}
.community-post svg{width:22px;height:22px;flex:0 0 auto;display:block}
.community-header{padding:14px 14px 9px;gap:10px}
.community-avatar{width:44px;height:44px;flex-basis:44px}
.community-author>a{font-weight:750}
.community-author>div{gap:3px 7px;line-height:1.5}
.community-verified{display:inline-flex;width:17px;height:17px;vertical-align:-3px;margin-left:4px;color:#0755ff}
.community-verified svg{width:17px;height:17px}
.community-header-actions{align-self:center;gap:5px}
.community-header-actions .community-follow{display:flex;align-items:center;justify-content:center;gap:4px;min-height:36px;border:1px solid #c5d6ff;border-radius:22px;background:#edf3ff;padding:6px 10px;white-space:nowrap;font-size:14px;line-height:1.2}
.community-follow svg{width:17px;height:17px}
.community-follow[aria-pressed=true] svg{display:none}
.community-header-actions .community-menu-toggle{color:#617795;min-width:36px;padding:4px}
.community-copy{padding:3px 14px 14px}
.community-copy h2{font-size:21px;line-height:1.35;margin-bottom:6px;font-weight:750}
.community-excerpt{line-height:1.5}
.community-gallery{width:calc(100% - 20px);aspect-ratio:1.22;margin:0 10px 16px;border-radius:15px;background:#dfe7f3}
.community-photo-prev,.community-photo-next{display:grid;place-items:center;background:#ffffffdf;box-shadow:0 1px 5px #293b5310}
.community-photo-prev svg,.community-photo-next svg{width:22px;height:22px}
.community-footer{padding:8px 12px;border-top:1px solid #e4ecfa;border-radius:18px 18px 0 0;background:#ffffff80}
.community-footer-actions{display:grid;grid-template-columns:auto minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr);gap:5px}
.community-footer-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:7px 3px;color:#233b60;font-size:14px;line-height:1.3;white-space:nowrap}
.community-footer-actions>.community-like{padding-left:5px;padding-right:7px}
.community-footer-actions>button[aria-pressed=true]{color:#0755ff}
.community-like[aria-pressed=true] svg,.community-save[aria-pressed=true] svg{fill:currentColor}
.community-comment-open{flex:initial;text-align:center}
.community-comment-preview{margin:0 4px 5px}
@media(max-width:400px){.community-header{padding:12px 10px 9px;gap:8px}.community-avatar{width:38px;height:38px;flex-basis:38px}.community-header-actions{gap:0}.community-header-actions .community-follow{font-size:13px;padding:6px 8px}.community-author>div{font-size:12px}.community-footer{padding:7px 7px}.community-footer-actions{gap:3px}.community-footer-actions>button{font-size:13px;gap:5px}.community-footer-actions svg{width:20px;height:20px}}

/* Image first, followed by the author and a single story body. */
.community-post{border-radius:24px;box-shadow:0 12px 32px #264b7c12}
.community-gallery{width:calc(100% - 32px);margin:16px 16px 0;border-radius:20px}
.community-header{position:relative;padding:18px 18px 10px}
.community-menu{top:calc(100% - 2px);right:18px}
.community-copy{padding:4px 18px 20px}
.community-copy.text-only{padding-bottom:20px}
.community-copy:has(>.community-more[hidden]):not(:has(>.community-excerpt)){padding-top:0;padding-bottom:8px}
.community-footer{margin:0 18px 12px;padding:10px 0 2px;border-radius:0;background:transparent}
.community-feed .deck-actions{display:none!important}
@media(max-width:400px){.community-gallery{width:calc(100% - 24px);margin:12px 12px 0;border-radius:17px}.community-header{padding:15px 12px 9px}.community-copy{padding:3px 14px 17px}.community-footer{margin:0 12px 10px;padding-top:9px}.community-menu{right:12px}}

.community-copy.is-expanded .community-excerpt{display:block;-webkit-line-clamp:unset;overflow:visible}
.community-inline-comments{margin:0 18px 18px;padding-top:18px;border-top:1px solid #e4ecfa;scroll-margin-top:76px;min-height:160px;touch-action:pan-y pinch-zoom}
.community-inline-comments>h3{margin:0 0 14px;font-size:19px;line-height:1.4;color:#142743}
.community-inline-comments>h3:focus{outline:none}
.community-inline-status{font-size:16px;color:#657b9b;padding:8px 0}
.community-inline-status button{min-height:44px;border:1px solid #c5d6ff;background:#edf3ff;color:#0755ff;border-radius:10px;padding:8px 14px;font:inherit;cursor:pointer}
.community-inline-comments .p4m-comments,.community-inline-comments .comments-list{display:block;height:auto;max-height:none;overflow:visible;overscroll-behavior:auto}
.community-inline-comments .comments-composer{position:static;max-height:none;overflow:visible;margin:0 0 18px;padding:14px;border:1px solid #dfe7f7;border-radius:16px;background:#f8faff}
.community-inline-comments .comments-input{font-size:16px;min-height:82px;max-height:220px}
.community-inline-comments .comments-list{padding:0}
.community-inline-comments .comments-auth{font-size:16px;line-height:1.5;margin:0 0 16px}
.community-inline-comments .comments-more{width:100%;margin-top:12px;min-height:44px}
.community-inline-comments .comment-body{font-size:16px}
@media(max-width:400px){.community-inline-comments{margin:0 12px 14px;padding-top:14px}.community-inline-comments .comments-composer{padding:12px}}
