/* 커뮤니티 목록 전용 레이아웃 */
.community-section-nav, .community-popular-line, .community-row-badges, .community-reference-discussions, .community-unified .community-view-count { display: none; }
@media (max-width: 1024px) {
  html body.page-community.community-unified { --community-red: var(--responsive-color-ff1725); }
  html body.page-community.community-unified :is(h2,h3) { opacity: 1; transform: none; animation: none; }
  html body.page-community.community-unified > .floating-chat { display: none; }
  html body.page-community.community-unified .community-section-nav { position: sticky; top: 88px; z-index: 49; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 24px; min-height: 38px; background: var(--community-red); color: #fff; }
  .community-section-nav > a { color: #ffb9bd; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
  .community-section-nav > a[aria-current] { color: #fff; font-weight: 700; }
  html body .community-section-nav .community-nav-write { display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 24px; color: var(--community-red); background: #fff; font-weight: 700; }
  .community-nav-write span { font-size: 22px; line-height: 22px; }
  html body.page-community.community-unified .community-stories { margin: 0; border: 0; padding: 20px 16px; }
  html body.page-community.community-unified .community-hot-label { font-size: 20px; line-height: 28px; font-weight: 700; }
  html body.page-community.community-unified .community-mobile-toolbar { margin: 0 0 16px; }
  html body.page-community.community-unified :is(.community-cards,.community-story-controls,.community-mobile-chat,.board-heading .write-button) { display: none !important; }
  html body.page-community.community-unified .community-popular-line { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--community-red); border-radius: 12px; box-sizing: border-box; color: var(--responsive-color-181c25); }
  .community-popular-line strong { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .community-popular-flame { flex-shrink: 0; }
  .community-popular-viewport { display: block; flex: 1; min-width: 0; height: 24px; overflow: hidden; }
  .community-popular-track { display: block; transform: translateY(0); }
  .community-popular-track.is-sliding { transform: translateY(-24px); transition: transform 650ms cubic-bezier(.22,.61,.36,1); }
  .community-popular-track strong { display: block; height: 24px; line-height: 24px; }
  html body.page-community.community-unified .community-board { padding: 28px 16px 24px; }
  html body.page-community.community-unified .community-filters { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 24px 0 18px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html body.page-community.community-unified .community-filters button { flex-shrink: 0; padding: 6px 13px; font-size: 14px; line-height: 22px; border: 1px solid #dedede; border-radius: 24px; background: #fff; }
  html body.page-community.community-unified .community-filters button[aria-pressed=true] { border-color: var(--community-red); background: var(--community-red); color: white; }
  html body.page-community.community-unified .community-table tbody tr:not([hidden]):not(.board-empty) { display: block; padding: 16px 0; border-bottom: 1px solid #e5e5e5; }
  html body.page-community.community-unified .community-table td:not(:nth-child(3)) { display: none; }
  html body.page-community.community-unified .community-table td:first-child:not([colspan]) { display: none !important; }
  html body.page-community.community-unified .board-heading h2 { color: var(--responsive-color-181c25); font-size: 20px; line-height: 28px; }
  html body.page-community.community-unified .board-heading { padding: 0; }
  html body.page-community.community-unified .community-filters button { min-height: 36px; height: 36px; box-sizing: border-box; padding-inline: 16px; white-space: nowrap; }
  html body.page-community.community-unified .community-table td:nth-child(3) { display: block; padding: 0; width: auto; }
  html body.page-community.community-unified .community-row-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; min-height: 20px; }
  .community-category-tag, .community-vs-tag { display: inline-block; border-radius: 4px; padding: 2px 6px; font-size: 12px; line-height: 16px; font-weight: 700; color: #59616c; background: #eef0f4; }
  html body.page-community.community-unified .community-row-badges .post-badge { margin: 0; font-size: 12px; padding: 1px 5px; line-height: 16px; }
  html body.page-community.community-unified .community-row-badges .community-category-tag { color: #525c68; background: #eff1f4; }
  html body.page-community.community-unified .community-row-badges .post-badge.best { color: #a81822; background: #fff3f4; border-color: #a81822; }
  html body.page-community.community-unified .community-row-badges .post-badge.new { color: #007aff; background: #f0f6ff; border-color: #007aff; }
  html body.page-community.community-unified .post-title > :is(.post-badge,.post-poll-badge,.post-picture) { display: none; }
  html body.page-community.community-unified .community-table .post-text { font-size: 16px; line-height: 24px; font-weight: 700; -webkit-line-clamp: 1; }
  html body.page-community.community-unified .community-row-excerpt { font-size: 14px; line-height: 21px; color: #30343d; margin: 4px 0 10px; -webkit-line-clamp: 2; }
  html body.page-community.community-unified .community-row-thumb { width: 74px; height: 74px; right: 0; top: 28px; border-radius: 9px; }
  html body.page-community.community-unified td:has(.community-row-thumb) > .post-title, html body.page-community.community-unified td:has(.community-row-thumb) .community-row-excerpt { padding-right: 88px; }
  html body.page-community.community-unified .community-row-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: #777; }
  .community-row-meta strong { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; font-weight: 500; }
  .community-row-meta strong::before, .community-poll-author::before { content: ''; display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #eef0f3 url('../../img/common/profile-default.png') center/cover; }
  html body.page-community.community-unified .community-view-count, .community-vote-count { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .community-view-count::before { content: ''; width: 13px; height: 11px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M1 8Q10-4 19 8' fill='none' stroke='%23666' stroke-width='2'/%3E%3Ccircle cx='10' cy='8' r='4' fill='%23666'/%3E%3Ccircle cx='12' cy='6' r='1.5' fill='white'/%3E%3C/svg%3E"); }
  html body.page-community.community-unified .community-load-more { margin: 28px auto 0; }
  html body.page-community.community-unified .community-poll { padding: 22px 16px 20px; }
  html body.page-community.community-unified .community-poll .poll-heading { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 18px 16px 0; }
  html body.page-community.community-unified .community-poll .poll-heading .category { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
  html body.page-community.community-unified .community-poll .poll-heading small { font-size: 14px; color: #777; }
  html body.page-community.community-unified .community-poll .poll-question { padding: 18px 16px 16px; line-height: 24px; }
  html body.page-community.community-unified .poll-options label { padding: 12px 10px; border-radius: 12px; }
  html body.page-community.community-unified .poll-options .poll-result { display: none; }
  html body.page-community.community-unified .poll-options input { appearance: none; width: 18px; height: 18px; border: 1px solid #999; border-radius: 50%; background: #fff; }
  html body.page-community.community-unified .poll-options input:checked { background: var(--community-red); border-color: var(--community-red); }
  html body.page-community.community-unified .poll-options input:checked::after { content: '✓'; display: block; text-align: center; color: #fff; font-size: 14px; line-height: 16px; }
  html body.page-community.community-unified .poll-actions { display: flex; gap: 8px; margin-top: 16px; }
  html body.page-community.community-unified .community-poll .poll-actions > * { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 8px; font-size: 16px; font-weight: 700; }
  html body.page-community.community-unified .poll-actions button { background: var(--community-red); color: #fff; border: 0; }
  html body.page-community.community-unified .community-poll .poll-actions a { border: 1px solid #dce0e7; background: #fff; color: var(--responsive-color-181c25); }
  html body.page-community.community-unified .community-reference-discussions { display: block; padding: 20px 16px 24px; background: #fff; }
  .community-discussion-card { padding: 18px 0; border-bottom: 1px solid #ddd; }
  .community-discussion-card:last-child { border: 0; }
  .community-discussion-link { display: block; position: relative; color: var(--responsive-color-181c25); }
  .community-vs-tag { color: var(--responsive-color-ff1725); background: #fff0f3; border: 1px solid var(--responsive-color-ff1725); padding: 1px 6px; }
  .community-discussion-link h3 { font-size: 16px; line-height: 24px; }
  .community-discussion-link:has(img) h3, .community-discussion-link:has(img) .community-row-excerpt { padding-right: 88px; }
  .community-vote-count::before { content: ''; width: 16px; height: 16px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='M3 3h10a3 3 0 0 1 0 6H3zm0 6h16a3 3 0 0 1 0 6H3zm0 6h10a3 3 0 0 1 0 6H3z'/%3E%3C/g%3E%3C/svg%3E"); }
}
@media (prefers-reduced-motion:reduce) {
  .community-popular-track.is-sliding { transition: none; }
}
@media (max-width: 1024px) {
  html body.page-community.community-unified .footer-cookie-settings { display: none; }
}
/* 모바일 커뮤니티 목록 */
@media (max-width: 1024px) {
  html:root body.page-community.community-unified[class] > button.floating-chat { display: none !important; }
  html body.page-community.community-unified .community-section-nav { padding: 0; gap: 0; height: 38px; justify-content: flex-start; }
  html body.page-community.community-unified .community-section-nav > a { flex: 1; text-align: center; font-size: 14px; font-weight: 700; }
  html body.page-community.community-unified .community-nav-chat { display: flex; align-items: center; justify-content: center; gap: 5px; position: relative; align-self: stretch; flex: 0 0 100px; padding: 0 10px; border: 0; border-radius: 0 10px 0 0; background: white; color: #202020; font-size: 14px; font-weight: 700; }
  html body.page-community.community-unified .community-nav-chat img { width: 21px; height: 21px; object-fit: contain; }
  html body.page-community.community-unified .community-filters { gap: 8px; margin: 24px 0 18px; }
  html body.page-community.community-unified .community-filters button { padding-inline: 12px; }
  html body.page-community.community-unified .community-table .post-text, html body.page-community.community-unified .community-discussion-link h3 { font-size: 16px; line-height: 24px; }
  html body.page-community.community-unified .community-row-excerpt { font-size: 14px; line-height: 21px; margin: 4px 0 10px; }
  html body.page-community.community-unified .community-row-meta { font-size: 14px; line-height: 20px; }
  html body.page-community.community-unified .community-row-meta strong { font-size: 14px; font-weight: 500; color: #181c25; }
  html body.page-community.community-unified .community-table tbody tr:not([hidden]):not(.board-empty) { padding: 16px 0; }
  html body.page-community.community-unified .community-discussion-card { padding: 18px 0; }
  html body.page-community.community-unified .community-poll .poll-question { font-size: 16px; font-weight: 700; }
  html body.page-community.community-unified .poll-options label { font-size: 14px; line-height: 22px; }
  html body.page-community.community-unified .community-poll .poll-heading .category, html body.page-community.community-unified .community-poll .poll-heading small { font-size: 14px; }
  html body.page-community.community-unified .community-filters button { flex: 1 1 auto; min-width: 0; padding-inline: 8px; }
  html body.page-community.community-unified .community-nav-chat { margin-right: 6px; border-radius: 0 10px 0 0; }
  html body.page-community.community-unified .community-nav-chat::after { content: ''; position: absolute; top: 0; bottom: 0; right: -6px; width: 12px; background: white; transform: skewX(14deg); border-radius: 0 7px 0 0; }
  html body.page-community.community-unified .community-nav-chat > * { position: relative; z-index: 1; }
  html body.page-community.community-unified .community-poll #poll-total { color: inherit; font: inherit; }
}
/* 예외 375px: 작은 모바일의 글자·버튼·접힌 영역 높이 보정 */
@media (max-width: 375px) {
  html body.page-community.community-unified .community-filters button { font-size: 14px; padding-inline: 6px; }
}
@media (max-width: 1024px) {
  html body.page-community.community-unified .community-nav-chat { margin-right: 20px; border-radius: 0; flex-basis: 94px; padding-right: 4px; }
  html body.page-community.community-unified .community-nav-chat::after { right: -24px; width: 24px; transform: none; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 38' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0C9 0 10 2 12 10L17 29C19 37 20 38 24 38H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; pointer-events: none; }
  html:root body.page-community.community-unified[class] > button.floating-chat.floating-compose { display: inline-flex !important; }
}
