/* Community surfaces only. Behaviour, access rules and the shared dock live elsewhere. */
#community{
  --community-surface:#f8f5ef;
  --community-surface-low:#f0ece4;
  --community-rim:#c8c4ba;
  --community-ink:#20282d;
  --community-muted:#555f65;
  --community-accent:#167f8d;
  --community-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d5d0c7,0 10px 24px rgba(29,32,34,.11);
}

#community .community-featured::before{content:none}
#community .community-kicker{color:#58636a;font-size:11px;letter-spacing:.13em}
#community h2{line-height:1.05}
#community h3{line-height:1.14}
#community .community-lead{color:var(--community-muted);font-size:15px;line-height:1.5}
#community .community-preview-note{border-color:var(--community-rim);background:var(--community-surface-low);color:var(--community-muted);font-size:12px}

#community .community-setup-card,
#community .community-action-card,
#community .community-feed-state,
#community .community-composer,
#community .community-post-card,
#community .community-replies,
#community .community-event-form,
#community .community-event-card,
#community .community-event-review,
#community .community-owner-panel,
#community .community-member-profile,
#community .community-safety-panel,
#community .community-moderation-status,
#community .community-notification-state,
#community .community-sheet{
  border:1px solid var(--community-rim);
  border-top-color:#fffdf8;
  border-left-color:#fffdf8;
  border-radius:20px;
  background:var(--community-surface);
  color:var(--community-ink);
  box-shadow:var(--community-shadow);
}
#community .community-setup-card,
#community .community-action-card,
#community .community-composer,
#community .community-event-form{padding:clamp(18px,4vw,26px)}
#community .community-setup-card p,
#community .community-action-card p,
#community .community-composer p,
#community .community-event-form p,
#community .community-owner-panel>p,
#community .community-safety-panel>p{color:var(--community-muted);font-size:14px;line-height:1.5}

#community .community-primary,
#community .community-secondary,
#community .community-event-submit-wide,
#community .community-account-link{
  min-height:48px;
  border-radius:13px;
  font-size:12px;
  letter-spacing:.04em;
}
#community .community-primary{border:1px solid #10191f;background:#20282d;box-shadow:inset 1px 1px #5c6467,0 5px 12px rgba(25,30,33,.15);color:#fffdf8}
#community .community-secondary,#community .community-account-link{border:1px solid #b7b9b3;background:#f7f4ee;box-shadow:inset 1px 1px #fff,0 4px 11px rgba(25,30,33,.08);color:#273238}
#community button:disabled{cursor:not-allowed}
#community button:focus-visible,
#community a:focus-visible,
#community input:focus-visible,
#community textarea:focus-visible,
#community select:focus-visible{outline:3px solid #106d80;outline-offset:3px;box-shadow:0 0 0 5px #f8f5ef}

/* The home invites one contribution and then gets out of the conversation's way. */
#community .community-avatar-choice{min-height:92px;border-color:#c1c3bd;background:#f5f2eb;box-shadow:inset 1px 1px #fff,0 4px 10px rgba(27,31,34,.06)}
#community .community-avatar-choice[aria-pressed="true"]{border-color:#283238;box-shadow:inset 0 0 0 2px #283238,0 6px 14px rgba(27,31,34,.12)}
#community .community-avatar-choice small{font-size:10px;line-height:1.2}
#community .community-home-head .community-lead{margin:17px 0 0;color:#354249;font-size:16px;line-height:1.5}
#community .community-connection{margin:25px 0 0}
#community .community-connection-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-bottom:13px}
#community .community-connection-heading .community-kicker{margin:0;color:#167f8d;font-size:12px;letter-spacing:.13em}
#community .community-connection-heading h2{font-size:clamp(23px,5vw,29px);line-height:1.1;letter-spacing:-.035em}
#community .community-share-prompt{
  width:100%;min-height:96px;padding:16px;
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;
  border:1px solid #c5c3bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:18px;
  background:#f8f5ef;color:#20282d;text-align:left;
  box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d6d1c7,0 9px 20px rgba(28,32,34,.11);
}
#community .community-share-avatar{width:48px;height:48px;display:grid;place-items:center;border:1px solid #bcc7c5;border-radius:50%;background:#e7eeeb;color:#1c7180}
#community .community-share-avatar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9}
#community .community-share-copy{min-width:0;display:grid;gap:4px}
#community .community-share-copy strong{font-size:18px;line-height:1.18;letter-spacing:-.015em;overflow-wrap:anywhere}
#community .community-share-copy small{color:#526068;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#community .community-share-label{padding:9px 10px;border:1px solid #20343a;border-radius:8px;background:#24343a;color:#fffdf8;font-size:11px;font-weight:900;letter-spacing:.06em;white-space:nowrap}
#community .community-share-prompt:hover,#community .community-share-prompt:focus-visible{border-color:#859e9f;background:#fffdf8}
#community .community-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:9px;border-top:1px solid #cbd0ca;border-bottom:1px solid #cbd0ca}
#community .community-quick-action{--quick-accent:#167f8d;min-width:0;min-height:58px;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 5px;border:0;border-right:1px solid #cbd0ca;border-radius:0;background:transparent;color:#28343b;text-align:center}
#community .community-quick-action:last-child{border-right:0}
#community .community-quick-action[data-compose="win"]{--quick-accent:#20282d}
#community .community-quick-action[data-compose="tough"]{--quick-accent:#a14959}
#community .community-quick-action[data-compose="ask"]{--quick-accent:#695494}
#community .community-quick-mark{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--quick-accent)}
#community .community-quick-action b{font-size:12px;line-height:1.25;letter-spacing:.02em;overflow-wrap:anywhere}
#community .community-quick-action:hover,#community .community-quick-action:focus-visible{background:#e9eee9}
#community .community-conversations{margin-top:24px}
#community .community-section-head h2{min-width:0;font-size:22px;line-height:1.15;letter-spacing:-.025em}
#community .community-conversations .community-section-head{margin-top:0}
#community .community-events-home .community-section-head button{min-height:44px;font-size:12px}
#community .community-owner-tools{margin:26px 0 0;justify-content:flex-start}
#community .community-support-link{display:inline-flex;align-items:center;width:auto;min-height:44px;margin:7px 0 0;padding:9px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#854452;font-size:12px;line-height:1.35;text-decoration:underline;text-underline-offset:3px}
#community .community-support-link:hover,#community .community-support-link:focus-visible{background:transparent;color:#56303b;filter:none}
/* Feed: one calm material, with colour limited to post identity. */
#community .community-section-head{border-bottom:1px solid #aeb4b0;padding-bottom:11px}
#community .community-section-head span{font-size:12px;letter-spacing:.1em}
#community .community-section-head button,#community .community-owner-tools button{min-height:44px;font-size:11px}
#community .community-owner-tools button[data-overlay="announcement"]{border-color:#b8afa0;background:#eee9df;color:#283238}
#community .community-filter{min-height:44px;border-color:#bfc3bf;background:#edeae3;color:#354047;font-size:11px}
#community .community-filter[aria-pressed="true"]{border-color:#20282d;background:#20282d;box-shadow:inset 0 -3px #77bec4;color:#fff}
#community .community-feed-post{
  min-width:0;
  border:1px solid var(--community-rim);
  border-top-color:#fffdf8;
  border-left-color:#fffdf8;
  border-radius:18px;
  background:var(--community-surface);
  box-shadow:var(--community-shadow);
}
#community .community-feed-post::before{content:none}
#community .community-feed-post:hover,#community .community-feed-post:focus-visible{border-color:#93a6a5;box-shadow:inset 1px 1px #fff,0 14px 26px rgba(29,32,34,.14)}
#community .community-feed-avatar{border-color:#69767a;background:#20282d;box-shadow:inset 1px 1px #5a656b;color:var(--post-accent)}
#community .community-post-type{border-color:#c2c6c2;background:#eeebe4;color:#243036;font-size:10px;white-space:normal;text-align:center}
#community .community-post-message{margin:14px 0;padding:14px 0;border:0;border-top:1px solid #d4d5cf;border-bottom:1px solid #d4d5cf;border-radius:0;background:transparent;box-shadow:none}
#community .community-post-message::before{content:none}
#community .community-post-message .community-post-copy{font-size:15px;font-weight:650;line-height:1.5}
#community .community-post-footer>small,#community .community-post-footer>small b{font-size:11px}
#community .community-feed-post .community-pref{border-color:#c4c9c5;background:#f0eee8;color:#35434a}
#community .community-feed-post.is-announcement{border-color:#b9ad8f;box-shadow:var(--community-shadow)}
#community .community-feed-post.is-pinned{border-top:3px solid #b79a5c}
#community .community-empty-icon{border-color:#87979a;color:#8ccbd1}

/* Conversation, composer and notifications. */
#community .community-screen-head{gap:12px;margin-bottom:18px}
#community .community-screen-head div{min-width:0}
#community .community-screen-head h3{font-size:clamp(17px,4.8vw,23px);overflow-wrap:anywhere}
#community .community-screen-head small{color:#5e6970;font-size:11px;line-height:1.25}
#community .community-back,#community .community-close{min-width:44px;min-height:44px;border-color:#b7bbb6;background:#f7f4ee;box-shadow:inset 1px 1px #fff,0 4px 10px rgba(25,30,33,.08)}
#community .community-composer .community-field label,
#community .community-composer .community-support-pref label,
#community .community-event-form>label{color:#36444b;font-size:12px;line-height:1.35}
#community .community-field input,#community .community-field textarea,
#community .community-support-pref select,
#community .community-event-form input,#community .community-event-form select,#community .community-event-form textarea{box-sizing:border-box;max-width:100%;border-color:#adb5b1;background:#fffdf9;color:#20282d;font-size:16px;line-height:1.4}
#community .community-event-form label small{color:#5d686d;font-size:12px}
#community .community-event-form input[type="checkbox"]{width:22px;height:22px;flex:0 0 22px;padding:0;accent-color:#20282d}
#community .community-event-rules{border-color:#c1c6c1;background:#efede6;color:#354047;font-size:13px}
#community .community-urgent-question{border-color:#768389;background:#20282d;box-shadow:inset 1px 1px #68747a,0 12px 26px rgba(29,32,34,.15)}
#community .community-urgent-question h2{color:#fffdf8}
#community .community-urgent-question p{color:#dce4e5;font-size:14px}
#community .community-post-meta b{color:#20282d;font-size:14px}
#community .community-post-meta small{color:#59656b;font-size:11px}
#community .community-post-copy{color:#263239;font-size:15px}
#community .community-pref{font-size:11px}
#community .community-menu,#community .community-reply-head .community-menu{min-width:44px;min-height:44px}
#community .community-reaction{min-height:44px;border-color:#bdc4c0;background:#f3f0e9;color:#28363e;font-size:12px;box-shadow:none}
#community .community-reaction:nth-child(n){box-shadow:none}
#community .community-reaction[aria-pressed="true"]{border-color:#20282d;background:#20282d;color:#fff}
#community .community-reply-preview,#community .community-replies .community-reply-preview{border:1px solid #d0d2cc;border-radius:13px;background:#f0ede6}
#community .community-notification{min-height:82px;border:1px solid var(--community-rim);border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:16px;background:var(--community-surface);box-shadow:var(--community-shadow)}
#community .community-notification.is-unread{border-color:#8fb7b9;background:#f4f8f6;box-shadow:var(--community-shadow)}
#community .community-notification b{font-size:14px}
#community .community-notification small{font-size:12px}
#community .community-notification time{font-size:11px}
#community .community-notification i{color:#167f8d}
#community .community-mark-read{min-height:44px;font-size:11px}

/* Events and private owner controls share the same rims and readable labels. */
#community .community-event-card h3{font-size:20px}
#community .community-event-card b{color:#176e79;font-size:12px}
#community .community-event-card p{font-size:13px}
#community .community-event-card small{font-size:11px;line-height:1.35}
#community .community-event-card a{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
#community .community-event-note{font-size:12px}
#community .community-events-empty,#community .community-events-loading{border:1px solid var(--community-rim);background:var(--community-surface-low);font-size:13px}
#community .community-event-review button{min-height:44px;font-size:11px}
#community .community-owner-summary article,#community .community-priority-grid button{border-color:#59646a;background:#20282d;box-shadow:inset 1px 1px #657078,0 8px 18px rgba(29,32,34,.14)}
#community .community-owner-summary span,#community .community-priority-grid span{color:#c1d6d6;font-size:11px}
#community .community-priority-grid small,#community .community-priority-grid i{font-size:11px}
#community .community-owner-panel-head>button,#community .community-owner-panel-actions button,#community .community-owner-list button{min-height:44px;font-size:11px}
#community .community-owner-list article,#community .community-owner-history article,#community .community-member-activity article,#community .community-dashboard-links button,#community .community-safety-toggle{border:1px solid #c8c8c0;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:14px;background:#f0ede6;box-shadow:inset 1px 1px #fff,0 5px 12px rgba(25,30,33,.06)}
#community .community-owner-list b,#community .community-owner-history b,#community .community-member-activity b,#community .community-dashboard-links b,#community .community-safety-toggle b{font-size:13px}
#community .community-owner-list small,#community .community-owner-history small,#community .community-member-activity small,#community .community-dashboard-links small,#community .community-safety-toggle small{font-size:11px;line-height:1.4}
#community .community-member-open{min-height:44px}
#community .community-member-results,#community .community-safety-fields span,#community .community-member-tools span{font-size:11px!important}
#community .community-dashboard-links button{min-height:76px}

#community .community-sheet-backdrop{z-index:300}
#community .community-sheet{border-radius:24px 24px 18px 18px;max-width:100%;box-sizing:border-box}
#community .community-sheet p{font-size:14px;line-height:1.5}
#community .community-sheet-actions button,#community .community-sheet-actions a{font-size:12px;line-height:1.35}
#community .community-moderation-list article,#community .community-held-list article{border:1px solid #c9c9c1;border-radius:13px;background:#f0ede6}
#community .community-moderation-list article button,#community .community-held-list article button{min-height:44px;font-size:11px}
#community .community-moderation-list b{font-size:12px}
#community .community-moderation-list small,#community .community-report-heading span{font-size:11px}
#community .community-moderation-list dt{font-size:10px}
#community .community-moderation-list dd{font-size:12px}

@media(max-width:430px){
  #community .community-shell{min-width:0}
  #community .community-owner-tools{justify-content:flex-start}
  #community .community-event-card{grid-template-columns:38% minmax(0,1fr)}
  #community .community-event-card.is-featured{grid-template-columns:1fr}
  #community .community-event-card>div{min-width:0}
  #community .community-post-meta{flex-wrap:wrap}
  #community .community-post-author{flex:1}
  #community .community-post-type{margin-left:0}
  #community .community-sheet-backdrop{padding:12px}
}
@media(max-width:390px){
  #community .community-share-prompt{grid-template-columns:44px minmax(0,1fr);gap:11px}
  #community .community-share-avatar{width:44px;height:44px}
  #community .community-share-label{grid-column:2;justify-self:start;margin-top:3px}
  #community .community-event-actions{grid-template-columns:1fr}
  #community .community-owner-panel-head{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  #community .community-feed-post,#community .community-share-prompt,#community .community-quick-action{transition:none}
  #community .community-feed-post:hover{transform:none}
}
@media(forced-colors:active){
  #community .community-setup-card,#community .community-share-prompt,#community .community-quick-action,
  #community .community-feed-post,#community .community-event-card,#community .community-composer,
  #community .community-sheet,#community .community-owner-panel,#community .community-notification{border:2px solid CanvasText;box-shadow:none}
  #community .community-filter[aria-pressed="true"],#community .community-reaction[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:0}
  #community button:focus-visible,#community a:focus-visible,#community input:focus-visible,#community textarea:focus-visible,#community select:focus-visible{outline:3px solid Highlight;box-shadow:none}
}
