.blog-community{font:var(--m3e-type-body-medium);color:var(--on-surface);border-top:1px solid var(--outline-variant);margin-top:1rem;padding-top:.75rem;text-align:start;min-width:0}
.community-tools{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.blog-community .community-button{cursor:pointer;padding:.45rem .85rem;border-radius:var(--shape-corner-m);background:var(--surface-container-low);color:var(--on-surface);border:1px solid var(--outline-variant);font:inherit}
.blog-community .community-button[aria-pressed=true]{background:var(--primary-container);color:var(--on-primary-container)}.blog-community .community-button:disabled{opacity:.55;cursor:default}.blog-community :focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.blog-community form{display:grid;gap:.75rem;padding-block:1rem}.blog-community label{display:grid;gap:.35rem}.blog-community input,.blog-community textarea{font:inherit;color:var(--on-surface);background:var(--surface-container-lowest);border:1px solid var(--outline-variant);border-radius:var(--shape-corner-m);padding:.7rem;max-width:100%;width:100%;box-sizing:border-box}.blog-community textarea{resize:vertical}.community-floor p,.community-highlight p,.community-status,.community-dialog form p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.6rem 0}.blog-community small,.community-comment-head time{color:var(--on-surface-variant);font:var(--m3e-type-body-small)}.community-status:empty{display:none}
.community-views{color:var(--on-surface-variant)}
.community-featured:empty{display:none}.community-featured{margin-top:.85rem;padding:.75rem 1rem;border-radius:var(--shape-corner-m);background:var(--surface-container-low)}.community-featured>small{color:var(--primary)}.community-highlight p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.community-comment-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:.6rem}.community-comment-head time{margin-left:auto}.community-comment-head strong{overflow-wrap:anywhere}
.community-dialog{width:min(900px,calc(100vw - 32px));height:calc(100dvh - 48px);max-width:none;max-height:none;box-sizing:border-box;padding:0;margin:auto;border:1px solid var(--outline-variant);border-radius:var(--shape-corner-l);background:var(--card-bg,var(--surface-container-lowest));overflow:hidden}
.community-dialog[open]{display:flex;flex-direction:column}.community-dialog::backdrop{background:color-mix(in oklab,var(--on-surface) 45%,transparent)}.community-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:12px 24px;border-bottom:1px solid var(--outline-variant);flex:none}.community-dialog-bar h2{font:var(--m3e-type-title-large);margin:0}.community-dialog-content{overflow:auto;overscroll-behavior:contain;padding:24px;min-height:0}.community-dialog .community-original{padding:0;border:0;margin:0;box-shadow:none;transform:none;opacity:1}.community-dialog-content>h3{margin:1.5rem 0 0;padding-bottom:.75rem;border-bottom:1px solid var(--outline-variant)}.community-floor{padding:1rem 0;border-bottom:1px solid var(--outline-variant)}.community-floor>.community-tools{font:var(--m3e-type-body-small)}.community-pages{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1rem}.community-reply-target{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.6rem;background:var(--surface-container-low);border-radius:var(--shape-corner-m)}.community-reply-target[hidden]{display:none}body:has(.community-dialog[open]){overflow:hidden}
@media(max-width:600px){.community-dialog{width:100%;height:100dvh;border-radius:0}.community-dialog-content{padding:16px}.community-dialog-bar{padding:12px 16px}.community-comment-head time{width:100%;margin:0}.community-tools{gap:.4rem}.community-tools button{padding:.45rem .65rem}}

/* Focused post detail: narrow reading column, inline composer, conversation rows. */
.community-dialog{width:min(640px,calc(100vw - 32px));height:calc(100dvh - 32px)}
.community-dialog-bar{justify-content:flex-start;padding:8px 16px;gap:18px}
.community-dialog-bar .community-button{border:0;background:transparent;padding:8px 10px;font-size:1.4rem;line-height:1}
.community-dialog-bar h2{font-weight:700}
.community-dialog-content{padding:0}
.community-dialog .community-original{padding:20px 20px 0;border-radius:0}
.community-dialog .community-original .moment-card__content{font-size:1.05rem;line-height:1.7}
.community-detail-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 20px 0;padding-bottom:16px;color:var(--on-surface-variant);font:var(--m3e-type-body-small);border-bottom:1px solid var(--outline-variant)}
.community-detail-meta .moment-card__time{margin:0}
.community-detail-tools{display:flex;justify-content:space-between;gap:12px;margin:0 20px;padding:8px 0;border-bottom:1px solid var(--outline-variant)}
.community-detail-tools .community-button,.community-floor .community-button{border:0;background:transparent;color:var(--on-surface-variant);padding:6px 8px}
.community-dialog .community-composer{margin:0;padding:16px 20px;border-bottom:1px solid var(--outline-variant);grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
.community-composer>label{grid-column:1/-1;font-size:0;gap:0}
.community-composer>label:has(input){grid-column:1;max-width:240px}
.community-composer input{font:var(--m3e-type-body-small);padding:6px 0;background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--outline-variant)}
.community-composer textarea{font:var(--m3e-type-body-medium);padding:8px 0;min-height:64px;max-height:240px;field-sizing:content;background:transparent;border:0;border-radius:0}
.community-dialog .community-composer>button{grid-column:2;background:var(--primary);color:var(--on-primary);border:0;align-self:center}
.community-composer .community-reply-target{grid-column:1/-1}
.community-composer [role=status]{grid-column:1/-1;margin:0}.community-composer [role=status]:empty{display:none}
.community-privacy{grid-column:1;font:var(--m3e-type-body-small);color:var(--on-surface-variant);align-self:center}.community-privacy summary{cursor:pointer}.community-privacy small{display:block;margin-top:8px;line-height:1.6}
.community-floor{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:16px 20px;margin:0}
.community-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--primary-container);color:var(--on-primary-container);font-weight:650;font-size:1rem}
.community-comment-body{min-width:0}.community-floor .community-comment-head{gap:6px;line-height:1.4}.community-floor .community-comment-head time{margin-left:0}.community-floor .community-comment-head small{margin-left:auto}
.community-floor p{margin:.4rem 0 .5rem}.community-floor .community-tools{gap:20px}
.community-floor.is-reply{margin-left:36px;padding-left:16px;border-left:2px solid var(--outline-variant)}
.community-floors>p{padding:20px;color:var(--on-surface-variant)}
.community-pages{padding:0 16px 16px}
@media(max-width:600px){.community-dialog{width:100%;height:100dvh}.community-dialog .community-original{padding:16px 16px 0}.community-detail-meta,.community-detail-tools{margin-inline:16px}.community-dialog .community-composer,.community-floor{padding:14px 16px}.community-floor .community-comment-head time{width:auto}.community-floor.is-reply{margin-left:28px}}

.blog-community .community-button svg{width:20px;height:20px;fill:currentColor;flex:none}
.community-detail-tools .community-button,.community-floor .community-button,.community-dialog-bar .community-button{display:inline-flex;align-items:center;gap:8px}
.community-dialog .community-button:hover{background:var(--surface-container-high)}
.community-dialog .community-button[aria-pressed=true]{color:var(--primary);background:var(--primary-container)}

.blog-community>.community-tools .community-button{display:inline-flex;align-items:center;gap:8px}

/* Quiet inline actions; the hit area remains larger than the visible icon. */
.blog-community>.community-tools,.community-detail-tools{justify-content:space-between;flex-wrap:nowrap;gap:16px}
.blog-community>.community-tools .community-button,.community-detail-tools .community-button{border:0;background:transparent;box-shadow:none;color:var(--on-surface-variant);padding:8px 4px;min-height:36px;border-radius:var(--shape-corner-s);font:var(--m3e-type-body-small)}
.blog-community>.community-tools .community-button:hover,.community-detail-tools .community-button:hover{background:transparent;color:var(--primary)}
.blog-community>.community-tools .community-button[aria-pressed=true],.community-detail-tools .community-button[aria-pressed=true]{background:transparent;color:var(--primary)}
.community-views{display:inline-flex;align-items:center;gap:8px;font:var(--m3e-type-body-small);padding:8px 4px}
.community-views svg{width:18px;height:18px;flex:none}
.blog-community>.community-tools .community-button svg,.community-detail-tools .community-button svg{width:18px;height:18px}
.community-button:not([aria-pressed=true]) .community-icon-like path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}

/* Reserve the existing scrollbar space while the modal locks page scrolling. */
html:has(.community-dialog[open]){scrollbar-gutter:stable}

/* Each comment owns its collapsible conversation and inline reply composer. */
.community-floor .community-comment-body>.community-composer{padding:12px 0;margin-top:8px;border-top:1px solid var(--outline-variant);border-bottom:0}
.community-replies{margin-top:12px;border-left:1px solid var(--outline-variant)}
.community-replies>.community-floor.is-reply{margin:0;padding:12px 0 0 12px;border:0}
.community-replies .community-replies{margin-left:-12px;border-left:0}
.community-replies .community-replies>.community-floor.is-reply{margin-left:-48px}

.community-replies>summary{cursor:pointer;color:var(--on-surface-variant);font:var(--m3e-type-body-small);padding:8px 12px;list-style-position:inside}
.community-replies>summary:hover{color:var(--primary)}
[data-friend-apply]{display:flex;align-items:center;width:max-content;max-width:100%;margin:0 0 16px auto;padding:10px 20px;border-radius:var(--shape-corner-m);background:var(--primary-container);color:var(--on-primary-container);font:var(--m3e-type-label-large);text-decoration:none}[data-friend-apply]:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
