/* Community board (/community/ and post pages rendered by the Worker). Kept out of the site bundle, which is at its CSS budget. */
.community-shell, .community-post .article-shell { max-width: 820px; }
.community-write { margin: 0 0 1.6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.community-write summary { padding: .85rem 1rem; font-weight: 800; cursor: pointer; list-style: none; }
.community-write summary::-webkit-details-marker { display: none; }
.community-write summary::before { content: '+ '; color: var(--accent); }
.community-write[open] summary::before { content: '− '; }
.community-form { margin: 0; padding: 0 1rem 1rem; }
.community-form input[name="title"] { font-weight: 700; }
.community-form textarea { min-height: 10rem; }
.community-rules { margin: 0; color: var(--muted); font-size: .76rem; }
.community-total { margin: 0 0 .4rem; color: var(--muted); font-size: .85rem; }
.community-total strong { color: var(--accent); }
.community-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.community-row { display: grid; gap: .25rem; padding: .95rem .1rem; border-bottom: 1px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg) 85%, transparent); transition: padding .25s; }
.community-row:hover { padding-left: .45rem; }
.community-row:hover .community-title { color: var(--accent); }
.community-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.community-count { margin-left: .35rem; color: var(--accent); font-size: .85rem; }
.community-excerpt { color: var(--muted); font-size: .86rem; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.community-meta { display: flex; gap: .6rem; color: var(--muted); font-size: .76rem; }
.community-meta strong { color: var(--pen); }
.community-badge { display: inline-block; margin-right: .4rem; padding: .05rem .4rem; border-radius: 3px; background: #1fae7a; color: #fff; font-size: .68em; font-weight: 800; vertical-align: .15em; }
.community-pager { margin: 1.2rem 0 3rem; text-align: right; }
.community-body p { white-space: normal; overflow-wrap: anywhere; }
.community-tools { display: flex; align-items: center; gap: .8rem; padding: .4rem 0 1.4rem; }
.community-tools .sp { flex: 1; }
.community-tools .comment-delete { flex-basis: 100%; }
