/* Compact social controls. Scoped to Community; shared site surfaces stay intact. */
.community-page {
 --community-premium-background:var(--profile-surface);
 --community-premium-border:var(--profile-border);
 --community-premium-shadow:var(--profile-green-glow);
 --community-premium-focus-border:var(--profile-action-hover-border);
 --community-premium-focus-shadow:var(--profile-green-glow);
 --community-quiet-border:var(--profile-border);
 --community-edge-shadow:var(--profile-green-glow);
 --community-quiet-shadow:var(--profile-green-glow);
 --community-surface-transition:.24s;
}
.community-page .community-avatar-link { display:inline-flex; flex:none; border-radius:50%; vertical-align:middle; }
.community-avatar-link:hover .community-avatar { border-color:var(--community-accent); }
.community-post-author strong a:hover,.community-author strong a:hover,.community-comment header strong a:hover { color:var(--community-accent); }
.community-comment header strong { min-width:0; max-width:65%; }
.community-page .community-inline-composer { margin-bottom:28px; border:1px solid var(--community-line); border-radius:14px; background:var(--profile-surface); transition:background .24s,border-color .24s,box-shadow .24s; }
.community-page .community-inline-composer[open] { background:var(--community-premium-background); border-color:var(--community-premium-border); box-shadow:var(--community-premium-shadow); }
.community-page .community-inline-composer[open]:focus-within { border-color:var(--community-premium-focus-border); box-shadow:var(--community-premium-focus-shadow); }
.community-page .community-inline-composer > .community-composer { align-items:center; padding:14px 18px; margin:0; }
.community-page .community-inline-composer[open] > summary { border-bottom-color:color-mix(in srgb,var(--community-accent) 10%,transparent); }
.community-page .community-compose-heading { display:flex; align-items:center; gap:11px; margin:0 0 20px; }
.community-compose-heading > span { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; color:var(--community-accent); background:color-mix(in srgb,var(--community-accent) 7%,transparent); }
.community-compose-heading svg { width:19px; height:19px; }
.community-page .community-compose-heading h2 { margin:0; font-size:15px; line-height:1.5; }
.community-page .community-compose-heading p { margin:3px 0 0; color:var(--text-soft); font-size:11px; }
.community-page .community-compose-status:empty { display:none; }
.community-page .community-compose-status:not(:empty) { margin:-10px 0 24px; padding:10px 12px; border-left:2px solid var(--community-accent); color:var(--community-accent); font-size:12px; }
.community-page .community-composer-summary { display:flex; align-items:center; gap:12px; }
.community-page .community-composer-prompt { flex:1; min-width:0; padding:0; border:0; font-size:13px; }
.community-page .community-composer-shortcuts { flex:none; padding:0; gap:10px; }
.community-page .community-composer-shortcuts .community-button { min-height:36px; padding:7px 13px; }
.community-page .community-composer-media { display:inline-grid; place-items:center; min-width:36px; min-height:36px; }
.community-page .community-compose-panel { padding:20px 18px 18px; }
.community-page .community-inline-layout .community-editor { gap:10px; margin:0; }
.community-page .community-inline-layout .community-editor { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); }
.community-inline-layout .community-editor > * { grid-column:1/-1; }
.community-inline-layout .community-editor > label:nth-of-type(1) { grid-column:1; grid-row:1; }
.community-inline-layout .community-editor > label:nth-of-type(2) { grid-column:2; grid-row:1; }
.community-inline-layout .community-editor > [data-field-error=title] { grid-column:1; grid-row:2; }
.community-inline-layout .community-editor > [data-field-error=category_id] { grid-column:2; grid-row:2; }
.community-inline-layout .community-editor > label { gap:4px; font-size:11px; }
.community-inline-layout .community-editor :is(input,select) { padding:7px 10px; min-height:36px; font-size:12px; }
.community-inline-layout .community-editor .community-help { margin:0; font-size:10px; }
.community-inline-layout .community-editor-tools { padding:3px; }
.community-inline-layout .community-editor-tools button { min-height:30px; padding:4px 8px; font-size:11px; }
.community-page .community-writing-surface textarea { min-height:96px; max-height:220px; padding:10px 12px; resize:vertical; overflow:auto; }
.community-page .community-inline-layout .community-editor > .community-actions { justify-content:flex-end; gap:6px; }
.community-page .community-inline-layout .community-editor > .community-actions { margin-top:4px; padding-top:14px; border-top:1px solid var(--community-line); flex-wrap:wrap; }
.community-page .community-inline-layout [type=submit]::before { content:""; width:15px; height:15px; flex:none; background:currentColor; clip-path:polygon(0 0,100% 50%,0 100%,20% 57%,63% 50%,20% 43%); }
.community-page .community-inline-layout [aria-busy=true] [type=submit]::before { border:2px solid currentColor; border-right-color:transparent; border-radius:50%; background:none; clip-path:none; animation:community-compose-spin .8s linear infinite; }
.community-page .community-inline-layout [type=submit]:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 3px 12px color-mix(in srgb,var(--community-accent) 14%,transparent); }
@keyframes community-compose-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce){ .community-page .community-inline-composer { transition:none; } .community-page .community-inline-layout [aria-busy=true] [type=submit]::before { animation:none; } }
.community-page .community-inline-layout .community-editor > .community-actions > .community-button { flex:0 1 auto; min-height:38px; padding:7px 10px; font-size:11px; }
.community-page .community-drop { position:relative; display:flex; align-items:center; gap:10px; padding:0; border:0; border-radius:0; background:transparent; }
.community-page .community-drop.is-dragging { outline:1px solid var(--community-accent); outline-offset:4px; }
.community-page .community-drop .community-file-input { position:absolute; inset:0 auto auto 0; width:1px; min-width:0; height:1px; padding:0; margin:0; clip-path:inset(50%); overflow:hidden; border:0; }
.community-media-hint { font-size:10px; color:var(--text-soft); }
.community-page .community-media-picker { min-width:40px; min-height:40px; padding:8px; border-color:transparent; background:transparent; color:var(--community-accent); }
.community-page .community-file-preview { display:flex; flex-wrap:nowrap; gap:10px; max-width:100%; overflow-x:auto; padding:4px 0; margin:8px 0; overscroll-behavior-inline:contain; }
.community-page .community-file-preview:empty { display:none; }
.community-page .community-file-preview > div { position:relative; flex:0 0 86px; width:86px; gap:2px; }
.community-page .community-file-preview img { height:64px; border-radius:5px; }
.community-page .community-file-preview button { min-height:28px; min-width:28px; padding:2px 6px; }
.community-page .community-file-preview [data-media-action=remove] { position:absolute; top:2px; right:2px; width:28px; height:28px; border-radius:50%; background:rgb(0 0 0 / .85); color:white; font-size:19px; }
.community-page .community-comment-compose { align-items:flex-start; gap:10px; margin:16px 0; }
.community-page .community-comment-compose > .community-avatar-link { display:inline-flex; margin-top:4px; }
.community-comment-compose .community-avatar { width:32px; height:32px; }
.community-page .community-comment-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; margin:0; }
.community-page .community-comment-form textarea { min-height:42px; max-height:180px; padding:9px 0; resize:none; overflow-y:auto; border:0; border-bottom:1px solid var(--community-line); border-radius:0; background:transparent; }
.community-page .community-comment-submit { display:flex; align-items:center; gap:5px; }
.community-page .community-comment-submit .community-button { min-height:38px; padding:7px 10px; font-size:11px; }
.community-page .community-reply-context { grid-column:1/-1; margin:0; color:var(--text-soft); font-size:11px; }
.community-reply-context a { color:var(--community-accent); }
.community-page .community-comment.is-replying { border-left-color:var(--community-accent); background:color-mix(in srgb,var(--community-accent) 3%,transparent); }
.community-page .community-comment [data-community-reply] { margin-top:4px; }
.community-page .community-comment [data-community-reply] > summary { display:inline-flex; align-items:center; min-height:34px; margin:0; list-style:none; }
.community-page .community-comment [data-community-reply] > summary::-webkit-details-marker { display:none; }
.community-page .community-comment { display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; padding-block:16px; }
.community-page .community-comment > :is(header,.community-rich,.community-muted) { flex:1 1 100%; }
.community-page .community-comment > header { margin-bottom:8px; }
.community-page .community-comment .community-actions { margin:0; }
.community-page .community-comment > details { margin:0; }
.community-page .community-comment > details[open] { flex:1 1 100%; }
.community-page .community-comment > [data-thread-toggle] { border:0; background:transparent; color:var(--text-soft); font-size:11px; }
.community-writing-options > summary { font-size:11px; }
.community-writing-options[open] { display:grid; gap:8px; }
.community-page [data-compose-media]:focus-visible { outline:2px solid var(--community-accent); outline-offset:2px; border-radius:4px; }
.community-page .community-profile-layout { grid-template-columns:184px minmax(0,800px); }
.community-public-profile { display:flex; align-items:center; gap:18px; padding:8px 0 24px; margin-bottom:24px; border-bottom:1px solid var(--community-line); }
.community-public-profile > div { min-width:0; }
.community-public-profile .community-avatar { width:64px; height:64px; font-size:24px; }
.community-public-profile h1 { margin:4px 0; font-size:26px; overflow-wrap:anywhere; }
.community-profile-back { margin-bottom:20px; color:var(--text-soft); font-size:13px; }
.community-public-profile p { margin:0; color:var(--text-soft); font-size:12px; }
@media(max-width:800px){.community-page .community-profile-layout { grid-template-columns:minmax(0,1fr); }}
@media(max-width:600px){
 .community-page .community-inline-composer { margin-bottom:24px; border-radius:12px; }
 .community-page .community-inline-composer > .community-composer { padding:12px; }
 .community-page .community-compose-panel { padding:16px 12px 12px; }
 .community-page .community-inline-layout .community-editor { grid-template-columns:minmax(0,1fr); }
 .community-page .community-inline-layout .community-editor > :is(label,[data-field-error]) { grid-column:1; grid-row:auto; }
 .community-page .community-composer { gap:8px; }
 .community-page .community-composer-summary { gap:4px; }
 .community-page .community-composer-shortcuts { gap:2px; }
 .community-page .community-composer-prompt { font-size:12px; }
 .community-page .community-composer-shortcuts .community-button { padding:7px 9px; }
 .community-page .community-inline-layout .community-editor > .community-actions > .community-button { min-height:44px; }
 .community-page .community-comment-form { grid-template-columns:minmax(0,1fr); }
 .community-page .community-comment-submit { justify-content:flex-end; }
 .community-page .community-comment-submit .community-button,.community-page .community-media-picker { min-height:44px; }
 .community-page .community-file-preview [data-media-action=remove] { min-width:34px; min-height:34px; }
 .community-page .community-comment [data-community-reply] > summary { min-height:44px; }
 .community-public-profile { gap:12px; }
 .community-public-profile .community-avatar { width:48px; height:48px; }
 .community-public-profile h1 { font-size:22px; }
}

/* Conversation: one main writing row, lightweight threaded replies. */
.community-page .community-card { position:relative; padding:20px; margin-bottom:18px; border:1px solid var(--community-line); border-radius:12px; background:var(--community-surface); }
.community-page .community-card .community-post-more { display:none; }
.community-page .community-card > h2 { font-size:18px; line-height:1.45; letter-spacing:-.02em; margin:0 0 10px; }
.community-page .community-card .community-post-author { margin-bottom:14px; }
.community-page .community-card .community-social-actions { margin-top:16px; padding-block:10px; border-block:1px solid var(--community-line); gap:4px 14px; }
.community-page .community-card .community-social-actions .community-button { background:transparent; border-color:transparent; padding:5px 0; min-height:34px; }
.community-page .community-card-conversation { min-width:0; }
.community-page .community-post { border:1px solid var(--community-line); border-radius:12px; background:var(--community-surface); padding:22px; }
.community-page .community-post > #community-comments { margin:18px 0 0; padding:16px 0 0; border-top:1px solid var(--community-line); }
.community-page .community-post > #community-comments .community-section-header h2 { font-size:14px; }
.community-page .community-post > #community-comments .community-comment-compose.is-root-editor { border-bottom:0; padding-bottom:8px; }
.community-page .community-post > h2 { font-size:22px; line-height:1.4; }
.community-page .community-media-management > summary { cursor:pointer; color:var(--text-soft); font-size:12px; }
.community-page .community-media-management[open] > summary { margin-bottom:16px; }
.community-page .community-card-conversation .community-comment-compose.is-root-editor { border:0; margin:10px 0 2px; padding:0; }
.community-page .community-card-conversation .community-comment-form textarea { background:var(--community-inset); border:1px solid var(--community-line); border-radius:18px; padding:9px 12px; }
.community-page .community-comments-toggle { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 0; border:0; background:transparent; color:var(--text-soft); font:500 11px/1.5 Inter,sans-serif; cursor:pointer; }
.community-page .community-comments-toggle:hover { color:var(--community-accent); }
.community-page .community-comments-toggle:focus-visible { outline:2px solid var(--community-accent); outline-offset:3px; border-radius:3px; }
.community-page .community-comments-toggle[aria-busy=true] { opacity:.5; cursor:progress; }
.community-page [data-comments-feedback]:empty { display:none; }
.community-page .community-card .community-comment:last-child { border-bottom:0; }
.community-page .community-card .community-comment-content > header { flex-wrap:wrap; }
.community-page .community-card .community-comment-content > header time { font-size:10px; }
.community-page .community-card .community-comment-content > .community-rich > :last-child { margin-bottom:2px; }
.community-page .community-card .community-comment-toolbar > form { padding:0; }
@media(max-width:600px){
 .community-page .community-card { padding:14px 12px; border-radius:10px; }
 .community-page .community-card > h2 { font-size:16px; }
 .community-page .community-post { padding:16px 12px; }
 .community-page .community-card .community-social-actions { gap:2px 12px; }
 .community-page .community-card .community-social-actions .community-button,.community-page .community-comments-toggle { min-height:40px; }
}
.community-page #community-comments { background:transparent; border:0; border-radius:0; padding-inline:0; }
.community-page .community-comment-compose.is-root-editor { padding:12px 0 18px; margin:12px 0 0; border-bottom:1px solid var(--community-line); }
.community-page .community-comment-form { grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:6px 10px; }
.community-page .community-comment-form textarea { min-height:42px; max-height:144px; border:0; padding:9px 0; background:transparent; }
.community-page .community-comment-submit .community-comment-send { display:grid; place-items:center; width:40px; height:40px; min-height:40px; padding:8px; border:0; border-radius:50%; color:var(--community-accent); background:transparent; }
.community-page .community-comment-submit .community-comment-send:hover { background:var(--community-tint); }
.community-page .community-comment-submit .community-comment-send:disabled { opacity:.3; cursor:default; }
.community-page .community-comment { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:start; gap:8px 10px; padding-block:16px; border-top:0; border-bottom:1px solid var(--community-line); }
.community-page .community-comment > .community-avatar-link { grid-column:1; margin-top:1px; }
.community-page .community-comment > .community-avatar-link .community-avatar { width:30px; height:30px; font-size:11px; }
.community-comment-content { min-width:0; grid-column:2; }
.community-page .community-comment-content > header { margin:0 0 4px; gap:6px; }
.community-page .community-comment-content > .community-rich { padding:0; font-size:13px; line-height:1.75; }
.community-page .community-comment-content > .community-rich p { margin:0 0 8px; }
.community-page .community-comment-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; margin-top:2px; }
.community-page .community-comment-toolbar > form { display:block; margin:0; }
.community-page .community-comment-toolbar .community-button,.community-page .community-comment-toolbar > details > summary { min-height:32px; margin:0; padding:4px 0; border:0; border-radius:0; background:transparent; color:var(--text-soft); font:500 11px/1.5 Inter,sans-serif; }
.community-page .community-comment-toolbar .community-button[aria-pressed=true],.community-page .community-comment-toolbar :is(button,summary):hover { color:var(--community-accent); }
.community-page .community-comment-toolbar > details { margin:0; }
.community-page .community-comment .community-comment-toolbar > details { margin:0; }
.community-page .community-comment .community-comment-toolbar > details > summary { margin:0; min-height:32px; }
.community-page .community-comment-toolbar .community-comment-submit .community-comment-send { display:grid; place-items:center; width:40px; height:40px; min-height:40px; padding:8px; border-radius:50%; color:var(--community-accent); }
.community-page .community-comment-toolbar > details[open] { flex:1 1 100%; }
.community-page .community-comment-toolbar > details > summary { display:inline-flex; align-items:center; list-style:none; }
.community-page .community-comment-toolbar > details > summary::-webkit-details-marker { display:none; }
.community-page .community-comment-toolbar .community-comment-compose.is-reply-editor { margin:4px 0 8px; padding:8px 0 0 10px; border-left:2px solid var(--border-green); }
.community-page .is-reply-editor > .community-avatar-link { display:none; }
.community-page .is-reply-editor textarea { max-height:120px; }
.community-page .community-reply-context { color:var(--community-accent); font-size:11px; }
.community-page .community-reply-target { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--text-soft); font-size:11px; }
.community-page .community-comment.is-replying { background:color-mix(in srgb,var(--community-accent) 2%,transparent); }
.community-page .community-comment.depth-1 { margin-left:20px; padding-left:12px; border-left:1px solid var(--community-line); }
.community-page .community-comment.depth-2 { margin-left:40px; padding-left:12px; border-left:1px solid var(--community-line); }
.community-page .community-comment > [data-thread-toggle] { grid-column:2; justify-self:start; min-height:32px; padding:2px 0; margin:0; }
.community-page .community-comment-edit textarea { min-height:64px; max-height:144px; overflow:auto; }
@media(max-width:600px){
 .community-page .community-comment { grid-template-columns:26px minmax(0,1fr); gap:6px 8px; }
 .community-page .community-comment > .community-avatar-link .community-avatar { width:26px; height:26px; }
 .community-page .community-comment.depth-1 { margin-left:10px; padding-left:8px; }
 .community-page .community-comment.depth-2 { margin-left:20px; padding-left:8px; }
 .community-page .community-comment-toolbar { gap:0 10px; }
 .community-page .community-comment-toolbar .community-button,.community-page .community-comment-toolbar > details > summary,.community-page .community-comment > [data-thread-toggle] { min-height:44px; }
 .community-page .community-comment-submit .community-comment-send { width:44px; height:44px; min-height:44px; }
 .community-page .is-reply-editor .community-comment-form { grid-template-columns:minmax(0,1fr); }
 .community-page .is-root-editor .community-comment-submit { align-self:end; }
}

/* Profile cover geometry; dialog and social controls live in community-social-ui.css. */
.community-cover-preview{width:100%;max-height:130px;object-fit:cover;border-radius:8px}
.community-profile-cover{position:relative;height:180px!important}
.community-profile-cover>img{width:100%;height:100%;object-fit:cover}
.community-profile-cover>img[hidden]{display:none}
.community-profile-name p{white-space:pre-wrap;overflow-wrap:anywhere}
.community-writing-surface .community-editor-tools{display:none}
@media(max-width:600px){.community-profile-cover{height:130px!important}.community-profile-identity{flex-wrap:wrap}}
