/* File: public/community.css */
.community-page { padding-bottom: 70px; }
.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin: 20px 0 48px; }
.community-heading h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -2px; line-height: 1.35; margin: 18px 0; }
.community-heading p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.community-heading-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 160px; width: 160px; height: 160px; background: #edf1e5; border: 1px solid #d7e0cc; border-radius: 50%; transform: rotate(10deg); }
.community-heading-mark > span { color: #8ca576; font-size: 57px; line-height: 1; }
.community-heading-mark > small { font-size: 8px; letter-spacing: 1.1px; line-height: 1.7; text-align: center; margin-top: 12px; color: #667e56; }
.community-mobile-break { display: none; }
.community-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #c8d5be; }
.community-list-label { display: flex; align-items: baseline; gap: 14px; }
.community-list-label h2 { font-size: 20px; font-weight: 600; letter-spacing: -.7px; margin: 0; }
.community-list-label > span { font-size: 12px; color: var(--muted); }
.community-write-button { min-width: 110px; }
.community-write-button > span { font-size: 21px; font-weight: 400; line-height: 1; }
.community-list-item { border-bottom: 1px solid var(--line); }
.community-post-link { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 29px 14px; transition: background .15s; }
.community-post-link:hover { background: #eff2e9; }
.community-list-copy { min-width: 0; }
.community-list-copy h2 { font-size: 21px; font-weight: 600; letter-spacing: -.6px; line-height: 1.5; margin: 0 0 10px; }
.community-list-copy > p { color: #667661; font-size: 13px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 19px; white-space: pre-wrap; }
.community-list-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #718269; line-height: 1.8; }
.community-list-nickname { color: #53694d; font-weight: 600; }
.community-meta-dot { color: #adb9a5; }
.community-avatar { display: inline-grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; background: #e4ecd7; border: 1px solid #d1dec2; color: #5d7948; font-size: 17px; font-weight: 600; }
.community-avatar-small { width: 30px; height: 30px; font-size: 12px; }
.community-list-meta .community-avatar-small { width: 24px; height: 24px; font-size: 10px; margin-right: 3px; }
.community-comment-count { min-width: 60px; width: 60px; min-height: 77px; border: 1px solid #dce3d4; border-radius: 10px; display: flex; align-items: center; flex-direction: column; justify-content: center; color: #668058; background: #f1f4eb; }
.community-comment-count svg { width: 21px; height: 21px; margin-bottom: 5px; }
.community-comment-count strong { font-size: 15px; font-weight: 600; }
.community-comment-count small { display: none; }
.community-empty { border: 1px dashed #cbd7be; border-radius: 13px; margin-top: 22px; padding: 55px 24px; text-align: center; background: #f0f3e8; }
.community-empty-symbol { display: block; color: #92a77b; font-size: 40px; margin-bottom: 18px; }
.community-empty .kicker { font-size: 9px; letter-spacing: 1.7px; }
.community-empty h2 { font-size: 25px; font-weight: 500; letter-spacing: -.8px; line-height: 1.5; margin: 17px 0 13px; }
.community-empty > p:not(.kicker) { font-size: 14px; color: #6a7a62; line-height: 1.9; }
.community-empty .member-button { margin-top: 18px; }
.community-house-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 30px; color: #7b8972; }
.community-house-note > span { font-size: 18px; }
.community-house-note p { font-size: 11px; line-height: 1.85; margin: 0; }
.community-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 25px; font-size: 12px; color: #66795d; }
.community-pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 70px; padding: 8px 14px; border: 1px solid #cbd8bf; border-radius: 7px; }
.community-pagination a:hover { background: #e8efde; }
.community-pagination > span { min-width: 40px; text-align: center; }
.community-pagination strong { color: var(--ink); font-weight: 600; }
.community-message { border: 1px solid #d3dec8; background: #edf3e6; padding: 14px 17px; color: #415c39; font-size: 13px; line-height: 1.8; border-radius: 8px; margin: 17px 0; }
.community-message.is-error { border-color: #e8c4ba; background: #fff3ee; color: #9c3c30; }
.community-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 370px); gap: 44px; align-items: start; }
.community-article { min-width: 0; }
.community-article > .kicker { margin: 3px 0 17px; }
.community-article > h1 { font-size: 35px; line-height: 1.5; font-weight: 600; letter-spacing: -1.3px; margin: 0 0 25px; }
.community-author { display: flex; align-items: center; gap: 12px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.community-author > div > strong { font-size: 13px; font-weight: 600; }
.community-author > div > div { font-size: 11px; color: #74826c; line-height: 1.8; margin-top: 3px; }
.community-author-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.community-author-actions a, .community-author-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 7px; border: 0; background: none; font-size: 12px; color: #64765a; text-decoration: underline; text-underline-offset: 3px; }
.community-article-body { padding: 30px 0 40px; min-height: 250px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; font-size: 16px; color: #3d5140; }
.community-article-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 17px; font-size: 12px; }
.community-article-foot > a { min-height: 44px; display: inline-flex; align-items: center; }
.community-copy-link { margin-left: auto; border: 1px solid #ccd8c3; border-radius: 7px; background: none; color: #506749; min-height: 44px; padding: 9px 13px; font-size: 12px; }
.community-copy-status { width: 100%; font-size: 11px; color: var(--muted); text-align: right; }
.community-comments-panel { background: #fffefb; border: 1px solid var(--line); border-radius: 15px; padding: 25px 23px; min-width: 0; scroll-margin-top: 110px; }
.community-comments-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.community-comments-heading h2 { font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.5px; margin: 0 0 7px; }
.community-comments-heading h2 span { color: #82956b; font-size: 15px; margin-left: 5px; }
.community-comments-heading p { font-size: 11px; line-height: 1.8; color: #738169; margin: 0; }
.community-comments { margin: 0; padding: 0; list-style: none; }
.community-comment { display: flex; align-items: flex-start; gap: 10px; padding: 22px 0; border-bottom: 1px solid #e4e9de; }
.community-comment-avatar { padding-top: 1px; }
.community-comment-content { flex: 1; min-width: 0; }
.community-comment-header { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 25px; }
.community-comment-header strong { font-size: 12px; font-weight: 600; line-height: 1.6; }
.community-own-badge { font-size: 9px; color: #6b8059; border: 1px solid #d5dec9; background: #f3f5ed; border-radius: 4px; padding: 1px 4px; }
.community-comment-body { font-size: 13px; line-height: 1.9; color: #4a5f46; white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 6px; }
.community-comment-footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10px; color: #7d8976; }
.community-edited { font-size: 10px; color: #87927e; }
.community-inline-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.community-inline-actions button { border: 0; background: none; color: #677b5c; font-size: 10px; min-height: 44px; min-width: 44px; padding: 8px 3px; text-decoration: underline; text-underline-offset: 3px; }
.community-no-comments { text-align: center; font-size: 13px; color: #7a886f; line-height: 2; margin: 29px 0; }
.community-comment-composer { margin-top: 24px; }
.community-comment-composer label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 10px; }
.community-comment-composer textarea, .community-inline-editor textarea { display: block; resize: vertical; min-height: 125px; width: 100%; padding: 13px; border: 1px solid #cbd7c1; border-radius: 8px; background: #fbfcf8; color: var(--ink); font-size: 13px; line-height: 1.8; }
.community-comment-composer textarea::placeholder, .community-inline-editor textarea::placeholder { color: #7e8a75; font-size: 12px; }
.community-comment-composer textarea[aria-invalid="true"], .community-inline-editor textarea[aria-invalid="true"] { border-color: var(--member-error); }
.community-composer-meta { display: flex; gap: 8px; align-items: start; justify-content: space-between; min-height: 29px; }
.community-composer-meta > span { margin: 8px 0 0 auto; white-space: nowrap; color: #87927c; font-size: 10px; }
.community-comment-composer .member-button { width: 100%; margin-top: 6px; font-size: 12px; }
.community-login-prompt { text-align: center; background: #f0f4e8; border-radius: 9px; padding: 18px 13px 11px; }
.community-login-prompt p { font-size: 12px; color: #6d7d63; line-height: 1.8; margin: 0 0 12px; }
.community-login-prompt .member-button { background: #fffefb; font-size: 11px; }
.community-signup-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 10px; color: #718266; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.community-inline-editor { margin-top: 12px; }
.community-inline-editor > div { display: flex; gap: 8px; justify-content: flex-end; margin-top: 9px; }
.community-inline-editor .member-button { min-height: 44px; padding: 8px 11px; font-size: 11px; }
.community-inline-editor .field-feedback { font-size: 11px; }
.community-confirm { border: 1px solid #d7dfcf; border-radius: 15px; padding: 28px; color: var(--ink); background: #fffefb; width: 390px; max-width: calc(100vw - 40px); }
.community-confirm::backdrop { background: #18372670; backdrop-filter: blur(3px); }
.community-confirm h2 { font-size: 22px; font-weight: 600; letter-spacing: -.7px; margin: 0 0 14px; }
.community-confirm p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.community-confirm-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.community-confirm-buttons .member-button { min-width: 85px; }
.community-editor-page { max-width: 940px; }
.community-editor-heading { margin-bottom: 30px; }
.community-editor-heading h1 { font-size: 33px; line-height: 1.5; font-weight: 600; letter-spacing: -1px; margin: 15px 0 12px; }
.community-editor-heading > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }
.community-editor { border: 1px solid var(--line); background: #fffefb; padding: 30px; border-radius: 14px; }
.community-editor-byline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #718166; margin-bottom: 29px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.community-editor-byline strong { font-weight: 600; color: #46623d; }
.community-editor-field { margin-bottom: 24px; }
.community-editor-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 11px; }
.community-editor-field input, .community-editor-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #cbd6c3; border-radius: 8px; padding: 15px; color: var(--ink); background: white; font-size: 15px; line-height: 1.8; }
.community-editor-field input { min-height: 54px; }
.community-editor-field textarea { resize: vertical; min-height: 340px; }
.community-editor-field input::placeholder, .community-editor-field textarea::placeholder { color: #85907c; font-size: 13px; }
.community-editor-field input[aria-invalid="true"], .community-editor-field textarea[aria-invalid="true"] { border-color: var(--member-error); }
.community-editor-meta { display: flex; align-items: start; gap: 12px; justify-content: space-between; min-height: 28px; }
.community-editor-meta > span { margin: 8px 0 0 auto; color: #7d8d70; font-size: 11px; white-space: nowrap; }
.community-editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.community-editor-bottom > p { font-size: 11px; color: #7a876f; line-height: 1.8; margin: 0; }
.community-editor-bottom > div { display: flex; gap: 9px; }
.community-editor-bottom .member-button { min-width: 85px; }
.moderation-setup { padding: 24px; border: 1px solid #d3dec8; border-radius: 12px; background: #edf3e5; margin: 24px 0; font-size: 13px; line-height: 1.9; }
.moderation-setup h2 { font-size: 20px; letter-spacing: -.5px; margin: 0 0 12px; }
.moderation-setup ul { padding-left: 20px; }
.moderation-setup code { font-size: 12px; overflow-wrap: anywhere; }
.moderation-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0; }
.moderation-filters a, .moderation-filters button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #cad6c0; border-radius: 7px; background: #fffefb; color: var(--ink); font-size: 12px; }
.moderation-filters [aria-current="page"], .moderation-filters .is-active { background: var(--ink); color: white; border-color: var(--ink); }
.moderation-list { display: grid; gap: 15px; }
.moderation-card { background: #fffefb; border: 1px solid var(--line); border-radius: 12px; padding: 23px; font-size: 13px; line-height: 1.8; }
.moderation-card h2, .moderation-card h3 { font-size: 18px; margin: 9px 0; }
.moderation-card .muted, .moderation-card small { font-size: 11px; color: var(--muted); }
.moderation-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #52674c; margin: 15px 0; max-height: 250px; overflow-y: auto; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 17px; }
.moderation-actions button, .moderation-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 7px; border: 1px solid #cbd7c1; color: var(--ink); background: #eef3e6; font-size: 12px; }
.moderation-actions button:disabled { cursor: progress; }
@media (max-width: 1000px) {
  .community-detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
  .community-comments-panel { padding: 22px 18px; }
  .community-article > h1 { font-size: 30px; }
}
@media (max-width: 820px) {
  .community-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .community-comments-panel { padding: 25px; }
  .community-article-body { min-height: 200px; }
}
@media (max-width: 600px) {
  .community-heading { margin: 7px 0 30px; gap: 15px; }
  .community-heading h1 { font-size: 34px; letter-spacing: -1.5px; margin: 14px 0; }
  .community-heading p:not(.kicker) { font-size: 12px; line-height: 1.9; }
  .community-heading-mark { display: none; }
  .community-mobile-break { display: initial; }
  .community-toolbar { gap: 10px; padding-bottom: 16px; }
  .community-list-label { gap: 8px; flex-wrap: wrap; }
  .community-list-label h2 { font-size: 17px; }
  .community-list-label > span { font-size: 10px; }
  .community-write-button { min-width: 90px; min-height: 44px; padding: 10px 14px; font-size: 12px; }
  .community-post-link { gap: 16px; padding: 23px 2px; }
  .community-list-copy h2 { font-size: 18px; line-height: 1.6; }
  .community-list-copy > p { font-size: 12px; margin-bottom: 14px; }
  .community-list-meta { font-size: 10px; gap: 6px; }
  .community-comment-count { min-width: 45px; width: 45px; min-height: 64px; border-radius: 8px; }
  .community-comment-count svg { width: 18px; height: 18px; }
  .community-comment-count strong { font-size: 13px; }
  .community-empty { margin-top: 17px; padding: 35px 18px; }
  .community-empty h2 { font-size: 21px; }
  .community-empty > p:not(.kicker) { font-size: 12px; }
  .community-empty .member-button { font-size: 12px; }
  .community-house-note { align-items: flex-start; gap: 8px; }
  .community-house-note p { font-size: 10px; }
  .community-house-note > span { font-size: 16px; margin-top: 1px; }
  .community-article > h1 { font-size: 28px; letter-spacing: -.9px; }
  .community-article > .kicker { font-size: 9px; }
  .community-author { gap: 10px; padding-bottom: 20px; }
  .community-author > div > strong { font-size: 12px; }
  .community-author > div > div { font-size: 10px; }
  .community-author-actions { gap: 3px; }
  .community-author-actions a, .community-author-actions button { font-size: 11px; padding: 5px; }
  .community-article-body { font-size: 15px; line-height: 2; padding: 25px 0 32px; }
  .community-comments-panel { padding: 23px 18px; border-radius: 12px; }
  .community-comments-heading h2 { font-size: 17px; }
  .community-comment-body { font-size: 13px; }
  .community-comment-composer textarea, .community-inline-editor textarea { font-size: 16px; }
  .community-editor-heading h1 { font-size: 27px; }
  .community-editor-heading > p:last-child { font-size: 12px; }
  .community-editor { padding: 22px 17px; border-radius: 12px; }
  .community-editor-field input, .community-editor-field textarea { font-size: 16px; padding: 12px; }
  .community-editor-field input::placeholder, .community-editor-field textarea::placeholder { font-size: 12px; }
  .community-editor-field textarea { min-height: 300px; }
  .community-editor-bottom { align-items: stretch; flex-direction: column; gap: 17px; }
  .community-editor-bottom > div { justify-content: flex-end; }
  .community-editor-bottom .member-button { flex: 1; }
}
