/* 커뮤니티 공통·목록 */
/* 커뮤니티 본문 */
.page-community .community-main { padding-bottom: var(--page-bottom); }
.page-community .community-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: var(--layout-gap); padding-top: var(--page-top); }
.page-community .community-content, .page-community .community-aside { min-width: 0; }
.page-community .community-intro h1 { font-size: max(min(14px, var(--font-page)), calc(var(--font-page) - var(--font-size-step, 0px))); line-height: var(--line-heading); letter-spacing: -0.04em; }
.page-community .community-intro p { margin-top: 6px; color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community .community-arrow { display: inline-grid; flex: 0 0 16px; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--main-color1); color: var(--color-bg); line-height: 0; }
.page-community .community-arrow svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 이야기 카드 */
.page-community .community-stories { margin-top: 18px; border-top: var(--divider-width) solid var(--main-color1); }
.page-community .community-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 28px; }
.page-community .community-card { border: 1px solid var(--color-line); }
.page-community .community-card > img { display: block; width: 100%; height: auto; aspect-ratio: 599 / 341; object-fit: cover; }
.page-community .card-content { padding: var(--card-padding); }
.page-community .card-content p { margin-top: 15px; color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community .card-content p span { color: var(--accent-color); }
/* 게시판 */
.page-community .community-board { margin-top: 40px; border-top: var(--divider-width) solid var(--main-color1); }
.page-community .board-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 8px 20px; }
.page-community .board-heading h2 { font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); }
.page-community .write-button { display: inline-flex; align-items: center; gap: 8px; padding: var(--control-padding-y) var(--control-padding-x); background: var(--main-color1); color: var(--color-bg); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
.page-community .write-button:focus-visible { color: var(--color-bg); }
.page-community .write-button img { width: 16px; height: 16px; object-fit: contain; }
.page-community .community-filters { display: flex; align-items: center; overflow-x: auto; padding: 4px 0 10px; }
.page-community .community-filters button { flex-shrink: 0; padding: 0 16px; color: var(--color-muted); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); line-height: 1.1; }
.page-community .community-filters button + button { border-left: 1px solid var(--color-line); }
.page-community .community-filters button[aria-pressed='true'] { color: var(--accent-color); font-weight: var(--weight-control); }
.page-community .community-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
.page-community .community-table .col-number { width: clamp(36px, 3.75vw, 54px); }
.page-community .community-table .col-category { width: clamp(44px, 3.75vw, 54px); }
.page-community .community-table .col-author { width: 96px; }
.page-community .community-table .col-date { width: clamp(80px, 7vw, 104px); }
.page-community .community-table .col-views { width: clamp(40px, 4vw, 58px); }
.page-community .community-table th, .page-community .community-table td { border-bottom: 1px solid var(--color-line); padding: 15px 6px; text-align: center; }
.page-community .community-table th { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); border-top: 1px solid var(--color-line); padding-block: 12px; }
.page-community .community-table td { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); height: 54px; }
.page-community .community-table td:nth-child(3) { color: var(--color-text); text-align: left; }
.page-community .community-table th:last-child, .page-community .community-table td:last-child, .page-community .community-table tr:has(.best) td:first-child { color: var(--accent-color); }
.page-community .post-title { display: flex; align-items: center; width: 100%; min-width: 0; padding: 0; text-align: left; font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); }
@media (max-width: 1024px) { .page-community .post-title:hover .post-text { text-decoration: underline; } }
.page-community .post-text { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-community .post-comments { flex-shrink: 0; color: var(--accent-color); margin-left: 5px; font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
.page-community .community-table .board-empty td { padding: 0; color: var(--color-muted); background: #fff; text-align: center; vertical-align: middle; }
.page-community .community-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community .community-pagination button { min-width: 34px; min-height: 34px; padding: 6px; color: var(--color-muted); }
.page-community .community-pagination button[aria-current='page'] { background: var(--main-color1); color: var(--color-bg); font-weight: var(--weight-control); }
.page-community .community-pagination button:disabled { opacity: var(--disabled-opacity); }
.page-community .page-numbers { display: flex; gap: 8px; }
.page-community .community-search { display: flex; justify-content: center; gap: 10px; padding-bottom: 18px; }
.page-community .search-select { position: relative; flex: 0 0 108px; min-width: 0; font-size: max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))); }
.page-community .select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 100%; min-height: var(--control-height); padding: var(--control-padding-y) var(--control-padding-x); border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-text); font-size: max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))); text-align: left; white-space: nowrap; }
.page-community .select-trigger svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: var(--color-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-community .select-trigger[aria-expanded='true'] { border-color: var(--main-color1); }
.page-community .select-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.page-community .select-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: max-content; min-width: 100%; max-height: 260px; overflow-y: auto; padding: var(--control-padding-y) var(--control-padding-x); border: 1px solid var(--color-line); border-radius: var(--radius-mobile-6, 0px); background: var(--color-bg); box-shadow: 0 4px 16px color-mix(in srgb, var(--color-text) 7.84%, transparent); }
.page-community .select-options [role='option'] { padding: var(--control-padding-y) var(--control-padding-x); border-radius: var(--radius-mobile-3, 0px); cursor: pointer; white-space: nowrap; line-height: 1.5; }
.page-community .select-options [aria-selected='true'] { color: var(--main-color1); font-weight: var(--weight-heading); }
.page-community .select-options .is-active { background: var(--color-soft); }
@media (max-width: 1024px) { .page-community .select-options [role='option']:hover { background: var(--color-soft); } }
.page-community .select-options .is-active { outline: 1px solid var(--color-line); outline-offset: -1px; }
.page-community .search-input { display: flex; align-items: center; gap: 10px; width: 300px; min-width: 0; border: 1px solid var(--color-line); padding: var(--control-padding-y) var(--control-padding-x); }
.page-community .search-input img { width: 14px; height: 14px; object-fit: contain; }
.page-community .search-input input { min-width: 0; width: 100%; border: 0; font: var(--weight-body) max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))) / 1.5 var(--font-family); font-size: max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))); background: transparent; }
.page-community .community-search > button { flex-shrink: 0; white-space: nowrap; background: var(--color-text); color: var(--color-bg); padding: 8px 22px; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
/* 로그인·투표·토론 */
.page-community .community-login { --login-card-radius: var(--radius-mobile-16, 0px); --login-button-radius: var(--radius-mobile-8, 0px); --login-card-padding: 32px 14px 28px; --login-copy-size: 18px; --login-copy-line: 28px; --login-button-size: 16px; border-radius: var(--login-card-radius); border: 1px solid var(--color-line); padding: 22px 14px 16px; text-align: center; }
.page-community .community-login p { font-size: var(--login-copy-size); line-height: var(--login-copy-line); }
.page-community .login-tooltip { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; width: max-content; margin: 16px auto 12px; padding: 4px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-mobile-20, 0px); background: var(--color-bg); box-shadow: 0 2px 4px color-mix(in srgb, var(--color-text) 13.33%, transparent); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); line-height: 1.5; }
.page-community .login-tooltip::after { content: ''; position: absolute; bottom: -4px; left: calc(50% - 3px); width: 6px; height: 6px; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: var(--color-bg); transform: rotate(45deg); }
.page-community .login-tooltip svg { width: 14px; height: 19px; fill: #ffbf35; flex-shrink: 0; }
.page-community .login-tooltip em { color: var(--accent-color); font-style: normal; }
.page-community .social-login { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: var(--control-padding-y) var(--control-padding-x); border-radius: var(--radius-mobile-6, 0px); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
.page-community .social-login img { width: 19px; height: 19px; object-fit: contain; }
.page-community .social-login.kakao { background: #ffe500; color: var(--color-text); }
.page-community .social-login.naver { margin-top: 8px; background: #20b800; color: var(--color-bg); }
.page-community .aside-section { border-top: var(--divider-width) solid var(--main-color2); padding-top: 8px; margin-top: 16px; }
.page-community .aside-section h2 { font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); }
.page-community .community-poll label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 9px; background: var(--color-soft); font-size: max(min(14px, var(--font-label)), calc(var(--font-label) - var(--font-size-step, 0px))); }
.page-community .community-poll label:has(input:checked) { background: var(--badge-best-bg); }
.page-community .community-poll input { flex-shrink: 0; accent-color: var(--accent-color); width: 17px; height: 17px; margin: 0; }
.page-community .poll-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.page-community .poll-actions > * { text-align: center; padding: 7px; border: 1px solid var(--color-line); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); }
.page-community .poll-actions > :first-child { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.page-community .community-alert { margin-top: 16px; background: var(--badge-best-bg); text-align: center; }
.page-community .community-alert > img { display: block; width: 100%; height: auto; }
.page-community .community-alert > div { padding: 16px 10px; }
.page-community .community-alert h2 { font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); line-height: var(--line-heading); }
.page-community .community-alert button { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 24px; background: var(--main-color1); color: var(--color-bg); border-radius: 0; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
.page-community .community-alert .community-arrow { background: var(--color-bg); color: var(--main-color1); }
/* 서버 연결 안내 */
.page-community .community-dialog { width: min(var(--dialog-width-notice), calc(100% - 32px)); border: 1px solid var(--color-line); padding: var(--dialog-padding); color: var(--color-text); }
.page-community .community-dialog::backdrop { background: var(--dialog-backdrop); }
.page-community .community-dialog p { margin: 16px 0 24px; }
.page-community .community-dialog form { text-align: right; }
.page-community .community-dialog button { padding: 8px 24px; color: var(--color-bg); background: var(--main-color1); }
/* 공통 투표 표시 */
.page-community .community-poll .poll-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 8px; }
.page-community .community-poll .category { color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); }
.page-community .community-poll .poll-heading small { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community .community-poll #poll-total { color: var(--accent-color); margin-inline: 3px; }
.page-community .community-poll .poll-question { position: relative; padding-left: 26px; margin: 0 8px 18px; font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); line-height: 1.4; }
.page-community .community-poll .poll-question > span { position: absolute; left: 0; top: 2px; width: 18px; line-height: 20px; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); text-align: center; color: var(--color-bg); background: var(--color-muted); }
.page-community .community-poll .poll-options { display: grid; gap: 8px; }
.page-community .community-poll .poll-result { flex-shrink: 0; margin-left: auto; color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); white-space: nowrap; }
.page-community .community-poll #poll-feedback { margin-top: 10px; color: var(--color-muted); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
/* 비교·토론 */
.page-community .debate-board .community-table .col-author { width: 96px; }
.page-community .debate-board .community-table td:nth-child(4), .page-community .debate-board .community-table td:nth-child(2) { white-space: nowrap; }
.page-community .debate-board .community-table th:last-child { color: var(--color-text); }
.page-community .debate-board .community-table td:last-child { color: var(--color-muted); }
.page-community .debate-board .community-table th:nth-child(2), .page-community .debate-board .community-table .vote-count { color: var(--accent-color); }
/* 통합 커뮤니티: 추천 카드와 전체 게시판 */
.page-community .card-placeholder { display: grid; place-items: center; aspect-ratio: 599/341; background: var(--color-line); }
.page-community .card-placeholder img { width: 42%; height: auto; opacity: 0.3; }
/* 커뮤니티 검색 결과와 빈 상태 */
.page-community .community-search-summary { margin: 24px 8px; font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); overflow-wrap: anywhere; }
.page-community .community-search-summary strong, .page-community .community-table mark { color: var(--main-color1); background: none; }
.page-community .community-search .community-search-reset { background: var(--color-bg); color: var(--color-muted); border: 1px solid var(--color-line); }
.page-community .community-search .community-search-reset[hidden], .page-community .community-search-summary[hidden] { display: none; }
@media (max-width: 1024px) {
  .page-community .community-search .community-search-reset { grid-column: 1 / -1; grid-row: 3; }
  .page-community .community-search-summary { margin: 20px 0; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
  .page-community .community-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .page-community .community-intro h1 { font-size: max(min(14px, var(--font-page)), calc(var(--font-page) - var(--font-size-step, 0px))); }
  .page-community .community-intro p { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
  .page-community .community-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; }
  .page-community .card-content { padding: var(--card-padding); }
  .page-community .card-content p { margin-top: 15px; }
  .page-community .community-filters button { padding-inline: 12px; }
  .page-community .community-table .col-number, .page-community .community-table .col-author, .page-community .community-table .col-date, .page-community .community-table .col-views { display: none; }
  .page-community .community-table .col-category { width: 44px; }
  .page-community .debate-board .community-table .col-category { width: 56px; }
  .page-community .community-table th:first-child, .page-community .community-table td:first-child:not([colspan]), .page-community .community-table th:nth-child(n + 4), .page-community .community-table td:nth-child(n + 4) { display: none; }
  .page-community .community-table th, .page-community .community-table td { padding-inline: 4px; }
  .page-community .post-title { font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); }
  .page-community .community-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .page-community .search-select { width: 100%; }
  .page-community .search-input { grid-column: 1 / 3; width: auto; }
  .page-community .community-search > button { grid-column: 3; grid-row: 2; padding-inline: 18px; }
  .page-community .community-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-community .aside-section, .page-community .community-alert { margin-top: 0; }
  .page-community .community-login { padding: 24px 16px 18px; }
  .page-community .community-main { padding-bottom: 60px; }
}
/* 모바일·태블릿 커뮤니티 배치 */
.page-community .community-mobile-toolbar, .page-community .community-mobile-chat, .page-community .community-mobile-extras, .page-community .community-filters [data-filter='popular'] { display: none; }
@media (max-width: 1024px) {
  .page-community.community-unified { --community-gutter: 32px; }
  .page-community.community-unified .community-main { width: calc(100% - var(--community-gutter) - var(--community-gutter)); }
  .page-community.community-unified .community-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: var(--page-top); }
  .page-community.community-unified .community-intro { padding-bottom: 16px; border-bottom: var(--divider-width) solid var(--main-color2); }
  .page-community.community-unified .community-title-desktop { display: none; }
  .page-community.community-unified .community-stories { margin-top: 32px; border: 0; }
  .page-community.community-unified .community-mobile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
  .page-community.community-unified .community-hot-label { padding: 4px 10px; border-radius: 4px; background: var(--main-color1); color: #fff; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); line-height: 1.4; }
  .page-community.community-unified .community-story-controls { display: flex; align-items: center; gap: 12px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-story-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #f5f5f5; color: var(--color-text); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
  .page-community.community-unified :is(.community-story-controls, .community-extras-heading) button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .page-community.community-unified .community-story-controls button:disabled { color: #aaa; }
  .page-community.community-unified .community-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 0; }
  .page-community.community-unified .community-card { min-width: 0; overflow: hidden; border-radius: 8px; }
  .page-community.community-unified .community-card[hidden] { display: none; }
  .page-community.community-unified .card-content { padding: 16px; }
  .page-community.community-unified .card-content h3 { font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); line-height: 1.5; }
  .page-community.community-unified .card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
  .page-community.community-unified .card-meta p { margin: 0; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .card-link { flex-shrink: 0; padding: 4px 10px; border: 1px solid var(--main-color1); border-radius: 24px; color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
  .page-community.community-unified .write-button { border-radius: 8px; }
  .page-community.community-unified .community-pagination { gap: 4px; }
  .page-community.community-unified .community-pagination button { border-radius: 4px; }
  .page-community.community-unified .community-mobile-chat { display: block; width: 100%; max-width: 700px; margin: 32px auto 0; padding: 0; border-radius: 8px; overflow: hidden; background: transparent; }
  .page-community.community-unified :is(.community-mobile-chat, .community-lotto-banner) img { display: block; width: 100%; height: auto; }
  .page-community.community-unified .community-aside { display: block; }
  .page-community.community-unified .community-aside > :is(.community-login, .member-profile, .community-alert, .lotto-entry-link) { display: none; }
  .page-community.community-unified .community-poll { margin: 0 calc(-1 * var(--community-gutter)); padding: 24px var(--community-gutter); border: 0; background: var(--main-color2); color: #fff; }
  .page-community.community-unified .community-poll .poll-heading { margin: 20px 0 16px; }
  .page-community.community-unified .community-poll .category { color: #fff; }
  .page-community.community-unified .community-poll .poll-heading small { color: #ddd; }
  .page-community.community-unified .community-poll .poll-question { margin: 0 0 20px; font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-poll label { min-height: 48px; border-radius: 8px; background: #fff; color: var(--color-muted); }
  .page-community.community-unified .community-poll input:not(:disabled) ~ .poll-result { display: none; }
  .page-community.community-unified .community-poll .poll-actions > * { min-height: 44px; padding: 10px 8px; border-radius: 8px; background: #f5f5f5; color: var(--color-text); }
  .page-community.community-unified .community-poll .poll-actions > :first-child { border-color: var(--main-color1); background: var(--main-color1); color: #fff; }
  .page-community.community-unified .community-poll #poll-feedback { color: #fff; }
  .page-community.community-unified .community-mobile-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; min-width: 0; }
  .page-community.community-unified .community-mobile-extras > * { min-width: 0; }
  .page-community.community-unified .community-extras-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
  .page-community.community-unified .community-extras-heading h2, .page-community.community-unified .type-interest h2 { font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-extras-heading > div { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-extras-heading button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--color-muted); }
  .page-community.community-unified .community-extras-heading button svg { width: 28px; height: 28px; }
  .page-community.community-unified .community-discussion-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-community.community-unified .community-discussion-list li { min-width: 0; }
  .page-community.community-unified .community-discussion-list img { display: block; width: 100%; aspect-ratio: 1.6; margin-bottom: 12px; border-radius: 8px; object-fit: cover; }
  .page-community.community-unified .community-discussion-list h3 { font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); line-height: 1.5; }
  .page-community.community-unified .community-extra-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 8px 12px; border-radius: 8px; background: #f2f2f2; color: var(--color-text); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); }
  .page-community.community-unified .type-interest { border-top: var(--divider-width) solid var(--main-color2); padding-top: 16px; }
  .page-community.community-unified .type-interest h2 { margin-bottom: 20px; }
  .page-community.community-unified .type-interest .category { margin-bottom: 8px; color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); }
  .page-community.community-unified .interest-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
  .page-community.community-unified .interest-values strong { font-size: max(min(14px, 30px), calc(30px - var(--font-size-step, 0px))); line-height: 1.3; }
  .page-community.community-unified .interest-values small { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); }
  .page-community.community-unified .interest-summary { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .interest-summary em { color: var(--main-color1); font-style: normal; }
  .page-community.community-unified .interest-chart { margin: 24px 0; }
  .page-community.community-unified .interest-chart svg { display: block; width: 100%; height: auto; fill: var(--main-color1); }
  .page-community.community-unified .interest-area { fill: var(--badge-best-bg); }
  .page-community.community-unified .interest-grid { fill: none; stroke: var(--color-line); }
  .page-community.community-unified .interest-marker { stroke: var(--color-muted); stroke-dasharray: 4 4; }
  .page-community.community-unified .interest-line { fill: none; stroke: var(--main-color1); stroke-width: 2; }
  .page-community.community-unified .interest-dates { display: flex; justify-content: space-between; padding-top: 8px; color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .interest-breakdown { border-top: 1px solid var(--color-line); padding-top: 12px; }
  .page-community.community-unified .interest-breakdown h3 { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-body); }
  .page-community.community-unified .interest-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .interest-types p { display: flex; justify-content: space-between; gap: 8px; }
  .page-community.community-unified .interest-track { height: 4px; margin-top: 8px; background: var(--color-line); }
  .page-community.community-unified .interest-track span { display: block; height: 100%; background: var(--main-color1); }
  .page-community.community-unified .community-lotto-banner { display: block; grid-column: 1 / -1; width: 100%; max-width: 700px; margin-inline: auto; overflow: hidden; border-radius: 8px; }
  .page-community.community-unified { --community-gutter: 20px; }
  .page-community.community-unified .community-cards { grid-template-columns: minmax(0, 1fr); }
  .page-community.community-unified .community-board { margin-top: 32px; }
  .page-community.community-unified .board-heading { padding: 16px 0; }
  .page-community.community-unified .write-button { min-height: 40px; padding: 8px 14px; }
  .page-community.community-unified .community-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin-bottom: 16px; }
  .page-community.community-unified .community-filters button { min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid var(--color-line); border-radius: 4px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-filters [data-filter='popular'] { display: block; }
  .page-community.community-unified .community-filters [aria-pressed='true'] { outline: 1px solid var(--main-color1); outline-offset: -1px; background: var(--badge-best-bg); color: var(--main-color1); }
  .page-community.community-unified .community-table, .page-community.community-unified .community-table tbody { display: block; }
  .page-community.community-unified .community-table :is(colgroup, thead) { display: none; }
  .page-community.community-unified .community-table tr:not([hidden]) { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
  .page-community.community-unified .community-table td { min-width: 0; height: auto; padding: 0; border: 0; }
  .page-community.community-unified .community-table td:first-child:not([colspan]), .page-community.community-unified .community-table td:nth-child(3) { display: block; }
  .page-community.community-unified .community-table td:nth-child(2), .page-community.community-unified .community-table td:nth-child(n + 4) { display: none; }
  .page-community.community-unified .community-table td:first-child { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); text-align: left; }
  .page-community.community-unified .post-title { gap: 4px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .post-text { flex: 1; min-width: 0; }
  .page-community.community-unified .post-comments { margin-left: auto; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-table .board-empty { grid-template-columns: minmax(0, 1fr); }
  .page-community.community-unified .community-pagination { padding: 20px 0; }
  .page-community.community-unified .community-pagination button { min-width: 36px; min-height: 40px; }
  .page-community.community-unified .page-numbers { gap: 4px; }
  .page-community.community-unified .community-search { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 0; }
  .page-community.community-unified .community-search .search-select { flex: 0 0 calc(50% - 4px); min-width: 0; }
  .page-community.community-unified .community-search .search-input { flex: 1 1 calc(100% - 72px); width: auto; min-height: var(--control-height); padding: 0 12px; border-radius: 8px; }
  .page-community.community-unified .community-search .search-input input { min-height: 0; padding: 0; }
  .page-community.community-unified .community-search .search-input img { width: 20px; height: 20px; }
  .page-community.community-unified .select-trigger { padding: 8px 12px; border-radius: 8px; font-weight: var(--weight-body); }
  .page-community.community-unified .select-trigger svg { width: 20px; height: 20px; }
  .page-community.community-unified .community-search > button { flex: 0 0 64px; min-height: var(--control-height); padding: 8px; border-radius: 8px; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
  .page-community.community-unified .community-search .community-search-reset { flex-basis: 100%; }
  .page-community.community-unified .community-mobile-extras { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
/* 커뮤니티 게시글·댓글 */
/* 이웃 이야기 게시글 상세 */
.page-community-post .neighbor-post { border-top: var(--divider-width) solid var(--main-color2); }
.page-community-post .post-header { padding: 22px 0 18px; border-bottom: 1px solid var(--color-line); }
.page-community-post .post-category { color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); margin-bottom: 10px; }
.page-community-post .post-header h1 { font-size: max(min(14px, var(--font-page)), calc(var(--font-page) - var(--font-size-step, 0px))); line-height: var(--line-heading); letter-spacing: -0.025em; }
.page-community-post .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .post-meta strong { color: var(--color-text); }
.page-community-post .post-meta em { color: var(--accent-color); font-style: normal; }
.page-community-post .post-body { padding: 24px 0 28px; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); line-height: 1.8; overflow-wrap: anywhere; }
.page-community-post .post-body p + p { margin-top: 16px; }
.page-community-post .post-actions { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .post-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.page-community-post .post-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-community-post .post-actions :is(#post-like, #post-save)[aria-pressed='true'] { color: var(--accent-color); }
.page-community-post .post-actions :is(#post-like, #post-save)[aria-pressed='true'] svg { fill: currentColor; }
.page-community-post #post-like-count { color: inherit; }
.page-community-post #post-share { margin-left: auto; }
.page-community-post .post-action-status { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .post-action-status:empty { display: none; }
.page-community-post .post-share-fallback { padding-bottom: 16px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .post-share-fallback input { width: 100%; padding: var(--control-padding-y) var(--control-padding-x); margin-top: 6px; border: 1px solid var(--color-line); font: var(--weight-body) max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))) / 1.5 var(--font-family); }
.page-community-post .post-comments-section { border-top: 1px solid var(--color-muted); }
.page-community-post .post-comments-section > h2 { padding: 24px 0 18px; border-bottom: 1px solid var(--color-line); }
.page-community-post #comment-total { color: var(--accent-color); }
.page-community-post .comment-preview { padding: 24px 0; border-bottom: 1px solid var(--color-line); }
.page-community-post .comment-heading { display: flex; justify-content: space-between; gap: 16px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .comment-heading time { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .comment-preview > p { margin-top: 8px; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .comment-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
.page-community-post .comment-actions button { padding: 0; color: var(--color-muted); }
.page-community-post #comment-like { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-color); }
.page-community-post #comment-like > span:first-child { font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); }
.page-community-post .comment-access { position: relative; padding: 115px 0 40px; }
.page-community-post .comment-teaser { display: flex; gap: 16px; position: absolute; inset: 28px 16px auto; color: var(--color-muted); opacity: 0.28; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); pointer-events: none; }
.page-community-post .comment-teaser small { border: 1px solid var(--badge-new-bg); color: var(--color-blue); padding: 2px 5px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); margin-left: 5px; }
.page-community-post .comment-teaser p { color: var(--badge-new-bg); margin-top: 8px; }
.page-community-post .comment-placeholder { width: 260px; max-width: 100%; height: 12px; margin-top: 10px; background: linear-gradient(var(--color-placeholder), var(--color-bg)); }
.page-community-post .comment-login-box { --login-card-radius: var(--radius-mobile-8, 0px); --login-button-radius: var(--radius-mobile-8, 0px); --login-card-padding: 40px; --login-card-border: 0; --login-card-background: var(--badge-best-bg); --login-heading-size: 20px; --login-heading-line: 28px; --login-heading-margin: 0; --login-heading-color: #222; --login-button-size: 16px; --login-button-height: 44px; position: relative; width: min(480px, 100%); padding: var(--login-card-padding); margin-inline: auto; background: var(--login-card-background); border: 0; border-radius: var(--login-card-radius); text-align: center; }
.page-community-post .comment-login-box h3 { font-size: var(--login-heading-size); line-height: var(--login-heading-line); }
.page-community-post .comment-login-box h3 em { color: #ff1725; font-style: normal; }
.page-community-post .comment-login-box .login-tooltip { margin: 24px auto 16px; }
.page-community-post .comment-login-box .social-login { width: 100%; }
.page-community-post .comment-login-box .login-tooltip svg { fill: #ffbf35; }
.page-community-post .comment-login-box [hidden] { display: none !important; }
.page-community-post .post-list-link { display: inline-flex; align-items: center; gap: 6px; background: var(--color-muted); color: var(--color-bg); padding: 6px 16px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-heading); }
@media (max-width: 1024px) { .page-community-post .post-list-link:hover { background: var(--color-muted); } }
.page-community-post .member-preview-button { display: block; width: 100%; margin-top: 8px; padding: var(--control-padding-y) var(--control-padding-x); border: 1px solid var(--color-line); border-radius: var(--radius-mobile-6, 0px); background: var(--color-soft); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); text-align: center; }
.page-community-post .member-preview-button span { color: var(--color-muted); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
@media (max-width: 1024px) { .page-community-post .member-preview-button:hover { border-color: var(--main-color1); } }
/* 로그인 후 화면 */
.page-community-post .member-profile { border: 1px solid var(--color-line); }
.page-community-post .member-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 4px; }
.page-community-post .member-profile-heading strong { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-post .member-profile-heading button { border: 1px solid var(--color-line); border-radius: 0; color: var(--color-muted); font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); padding: 2px 10px; }
.page-community-post .member-profile > p { color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); padding: 0 16px 18px; }
.page-community-post .member-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; background: var(--color-soft); border-top: 1px solid var(--color-line); text-align: center; font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .member-stats > span + span { border-left: 1px solid var(--color-line); }
.page-community-post .member-stats b { color: var(--accent-color); }
.page-community-post .post-attachment { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .post-attachment a { max-width: 100%; display: inline-flex; gap: 12px; align-items: center; border: 1px solid var(--color-line); padding: 6px 15px; }
.page-community-post .post-attachment .attachment-icon { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.page-community-post .post-attachment .attachment-name { min-width: 0; overflow-wrap: anywhere; }
.page-community-post .post-photo { margin: 24px 0 0; }
.page-community-post .post-photo img { display: block; width: 100%; height: auto; }
.page-community-post .member-comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-line); padding: 22px 0; }
.page-community-post .member-comments-heading h2 span { color: var(--accent-color); }
.page-community-post .comment-sort { display: flex; gap: 12px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .comment-sort button { color: var(--color-muted); padding: 0; }
.page-community-post .comment-sort button + button { padding-left: 12px; border-left: 1px solid var(--color-line); }
.page-community-post .comment-sort button[aria-pressed='true'] { color: var(--color-text); font-weight: var(--weight-control); }
.page-community-post .member-comment { padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.page-community-post .member-comment.is-reply { position: relative; padding: 22px 20px 22px 42px; background: var(--color-soft); }
.page-community-post .member-comment.is-reply::before { content: '↳'; position: absolute; left: 16px; color: var(--color-muted); }
.page-community-post .member-comment-text { margin-top: 8px; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); color: var(--color-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.page-community-post .author-badge { margin-left: 6px; padding: 2px 5px; border: 1px solid var(--color-blue); border-radius: var(--radius-mobile-3, 0px); color: var(--color-blue); background: var(--badge-new-bg); font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); }
.page-community-post .comment-mention { color: var(--color-blue); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); margin-top: 8px; }
.page-community-post .member-comment [data-comment-heart][aria-pressed='true'] { color: var(--accent-color); }
.page-community-post .comment-composer { border: 1px solid var(--color-line); border-radius: var(--radius-mobile-3, 0px); padding: 18px; margin: 18px 0 24px; }
.page-community-post .composer-heading { display: flex; justify-content: space-between; gap: 16px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .composer-heading > span { font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .comment-composer textarea { display: block; resize: vertical; width: 100%; min-height: 65px; max-height: 400px; border: 0; padding: var(--control-padding-y) var(--control-padding-x); font: var(--weight-body) max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))) / 1.5 var(--font-family); font-size: max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))); color: var(--color-text); }
.page-community-post .comment-composer textarea::placeholder { color: var(--color-muted); }
.page-community-post .comment-composer textarea:focus-visible { outline: 1px solid var(--color-line); outline-offset: 3px; }
.page-community-post .composer-actions { display: flex; align-items: center; gap: 14px; color: var(--color-muted); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
.page-community-post .composer-actions [data-cancel-comment] { margin-left: auto; }
.page-community-post .composer-actions button { padding: 2px 4px; }
.page-community-post .composer-actions button[type='submit'] { color: var(--accent-color); font-weight: var(--weight-control); }
.desktop-layout-wrapper.page-community-post .composer-heading { margin-bottom: 12px; }
.desktop-layout-wrapper.page-community-post .composer-actions { margin-top: 12px; }
.desktop-layout-wrapper.page-community-post .composer-actions :is(.attach-control, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}
.page-community-post .attach-control { position: relative; cursor: pointer; display: inline-flex; }
.page-community-post .attach-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.page-community-post .attach-control input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.page-community-post .attach-control:focus-within { outline: 2px solid var(--main-color1); outline-offset: 4px; }
.page-community-post .reply-target { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-blue); margin-top: 8px; }
.page-community-post .comment-files { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.page-community-post .comment-files li { display: flex; gap: 8px; align-items: center; max-width: 100%; padding: 5px 8px; background: var(--color-soft); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); overflow-wrap: anywhere; }
.page-community-post .comment-files button { padding: 0; }
.page-community-post .composer-status { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .composer-status:empty { display: none; }
.page-community-post .comment-attachments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.page-community-post .comment-attachments a { max-width: 100%; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-blue); overflow-wrap: anywhere; }
.page-community-post .comment-attachments img { display: block; max-width: 180px; max-height: 140px; object-fit: contain; }
.page-community-post .inline-reply-area { padding: 14px 24px 20px; background: var(--color-soft); border-bottom: 1px solid var(--color-line); }
.page-community-post .inline-reply-area .comment-composer { margin: 0; background: var(--color-bg); padding: 20px; }
.page-community-post .reply-composer .composer-heading strong { color: var(--color-blue); }
.page-community-post .reply-composer textarea { min-height: 76px; }
.page-community-post .reply-composer .composer-actions button[type='submit']:not(:disabled) { color: var(--accent-color); }
.page-community-post .post-vote { margin: 28px 20px 0; border: 1px solid var(--border-color, var(--color-line)); }
.page-community-post .post-vote header { display: flex; align-items: center; gap: 28px; padding: 24px 30px 16px; background: var(--color-soft); }
.page-community-post .post-vote .vote-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--main-color1); color: var(--color-bg); font-size: max(min(14px, 26px), calc(26px - var(--font-size-step, 0px))); }
.page-community-post .post-vote .vote-symbol img { display: block; width: 24px; height: auto; object-fit: contain; }
.page-community-post .post-vote h2 { font-size: max(min(14px, var(--font-title)), calc(var(--font-title) - var(--font-size-step, 0px))); margin: 0; }
.page-community-post .post-vote em { color: var(--accent-color); font-style: normal; }
.page-community-post .post-body .post-vote header p { margin: 6px 0 0; color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-post .post-vote form { padding: 20px 34px 24px; }
.page-community-post .post-vote fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.page-community-post .post-vote label { display: flex; align-items: center; gap: 12px; padding: 18px 18px; background: var(--color-soft); cursor: pointer; }
.page-community-post .post-vote label:has(input:checked) { background: var(--badge-best-bg); }
.page-community-post .post-vote input { accent-color: var(--accent-color); width: 17px; height: 17px; }
.page-community-post .post-vote label strong { margin-left: auto; color: var(--accent-color); font-size: max(min(14px, var(--font-label)), calc(var(--font-label) - var(--font-size-step, 0px))); }
.page-community-post .post-vote button { margin-top: 18px; width: 100%; padding: 16px; background: var(--color-text); color: var(--color-bg); border: 0; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); cursor: pointer; }
.page-community-post .post-vote button:disabled { cursor: default; }
.page-community-post .post-vote .vote-feedback { margin: 10px 0 0; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-post .post-vote .vote-feedback:empty { display: none; }
.page-community-post .post-vote.has-results label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border: 1px solid transparent; padding: 16px 18px; cursor: default; }
.page-community-post .post-vote.has-results input { display: none; }
.page-community-post .post-vote.has-results label > span:first-of-type, .page-community-post .post-vote.has-results label strong { font-weight: var(--weight-control); color: inherit; }
.page-community-post .post-vote.has-results label:has(input:checked) { border-color: var(--accent-color); background: var(--badge-best-bg); }
.page-community-post .post-vote .vote-bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: var(--radius-mobile-4, 0px); background: var(--color-line); overflow: hidden; }
.page-community-post .post-vote .vote-bar > span { display: block; height: 100%; background: var(--color-muted); border-radius: inherit; }
.page-community-post .post-vote label:has(input:checked) .vote-bar > span { background: var(--main-color1); }
.page-community-post .post-vote.has-results button { background: var(--color-muted); }
.page-community-post .post-vote-question { margin-bottom: 18px; font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); }
.page-community-post .post-owner-actions { display: flex; gap: 8px; margin-left: auto; }
.page-community-post .post-owner-actions a, .page-community-post .post-owner-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 8px 16px; border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-text); font-weight: var(--weight-control); cursor: pointer; }
.page-community-post .post-owner-actions a { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-post .post-owner-actions button { font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
.page-community-post .post-owner-actions .post-delete-button { color: var(--accent-color); }
@media (max-width: 1024px) { .page-community-post .post-owner-actions a:hover, .page-community-post .post-owner-actions button:hover { border-color: var(--main-color1); } }
@media (max-width: 1024px) {
  .page-community-post .post-vote { margin: 20px 0 0; }
  .page-community-post .post-vote header { padding: 20px 16px 12px; gap: 14px; }
  .page-community-post .post-vote form { padding: 16px; }
  .page-community-post .post-vote label { padding: 16px 12px; flex-wrap: wrap; }
  .page-community-post .inline-reply-area { padding: 12px; }
  .page-community-post .inline-reply-area .comment-composer { padding: 14px; }
  .page-community-post .post-attachment { margin-top: 14px; }
  .page-community-post .member-comment.is-reply { padding-left: 30px; }
  .page-community-post .member-comment.is-reply::before { left: 10px; }
  .page-community-post .comment-composer { padding: 14px; }
  .page-community-post .post-header h1 { font-size: max(min(14px, var(--font-page)), calc(var(--font-page) - var(--font-size-step, 0px))); }
  .page-community-post .post-header { padding-top: 18px; }
  .page-community-post .post-meta { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
  .page-community-post .post-body { padding-block: 22px; }
  .page-community-post .comment-access { padding-top: 100px; }
  .page-community-post .comment-login-box { --login-card-padding: 32px 20px; --login-heading-size: clamp(18px, 5.12vw, 20px); padding: var(--login-card-padding); }
  .page-community-post .community-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-community-post .community-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .page-community-post .community-aside > :is(.community-login, .member-profile) { display: none; }
  .page-community-post :is( .post-photo img, .post-attachment a, .comment-composer, .post-list-link, .post-owner-actions > *, .comment-attachments img, .post-vote, .post-vote label, .social-login, .community-alert ) { border-radius: 8px; }
  .page-community-post .community-alert { overflow: hidden; }
  .page-community-post .post-actions { gap: 12px; }
  .page-community-post .post-actions button { justify-content: center; min-height: 44px; }
  .page-community-post .comment-actions { flex-wrap: wrap; }
  .page-community-post .comment-teaser > div { flex: 1; min-width: 0; }
  .page-community-post .comment-actions button { min-height: 40px; }
  .page-community-post .member-comments-heading { flex-wrap: wrap; gap: 12px; }
  .page-community-post .composer-actions { flex-wrap: wrap; gap: 8px; }
  .page-community-post .composer-actions button { min-height: 40px; padding-inline: 8px; }
  .page-community-post .community-search .search-input { min-height: var(--control-height); border-radius: 8px; padding-block: 0; }
  .page-community-post .community-search .search-input input { min-height: 0; padding: 0; }
  .page-community-post .community-search :is(.select-trigger, button) { border-radius: 8px; }
  .page-community-post .community-search .select-trigger { font-weight: var(--weight-body); }
  .page-community-post .community-search :is(.select-trigger svg, .search-input img) { width: 20px; height: 20px; }
  .page-community-post .community-aside { grid-template-columns: minmax(0, 1fr); }
  .page-community-post .community-poll { padding: 20px; background: var(--main-color2); color: white; border-radius: 8px; }
  .page-community-post .community-poll :is(.category, .poll-heading small) { color: inherit; }
  .page-community-post .community-poll label { background: white; color: var(--color-muted); }
  .page-community-post .community-filters { flex-wrap: wrap; gap: 8px; overflow: visible; }
  .page-community-post .community-filters button { flex: 1 1 calc(33.3% - 8px); min-height: 44px; padding: 8px 4px; border: 1px solid var(--color-line); border-radius: 4px; }
  .page-community-post .community-filters button[aria-pressed='true'] { border-color: var(--main-color1); background: var(--badge-best-bg); }
  .page-community-post .community-search { display: flex; flex-wrap: wrap; gap: 8px; }
  .page-community-post .community-search .search-select { flex: 0 0 calc(50% - 4px); }
  .page-community-post .community-search .search-input { flex: 1 1 calc(100% - 72px); width: auto; }
  .page-community-post .community-search > button { flex: 0 0 64px; min-height: 44px; padding: 8px; }
  .page-community-post .community-search .community-search-reset { flex-basis: 100%; }
  .page-community-post .comment-heading { flex-wrap: wrap; gap: 4px 12px; }
}
/* 커뮤니티 글쓰기 */
.page-community-write .write-main { padding-top: 32px; padding-bottom: 64px; }
.page-community-write .write-intro { padding-bottom: 28px; border-bottom: var(--divider-width) solid var(--main-color1); }
.page-community-write .write-intro h1 { font-size: max(min(14px, var(--font-page)), calc(var(--font-page) - var(--font-size-step, 0px))); margin-bottom: 8px; padding-bottom: 0; }
.page-community-write .write-intro > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-community-write .write-intro p { color: var(--color-muted); font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-write .upload-help, .page-community-write .upload-zone p { color: var(--color-muted); }
.page-community-write .upload-zone p { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-write .write-list { background: var(--color-muted); color: var(--color-bg); padding: 8px 18px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
@media (max-width: 1024px) { .page-community-write .write-list:hover { background: var(--color-muted); } }
.page-community-write .write-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 30px 0 24px; border-bottom: 1px solid var(--color-line); }
.page-community-write .write-label { font-weight: var(--weight-control); padding-top: 10px; }
.page-community-write .write-label small { font-size: max(min(14px, var(--font-label)), calc(var(--font-label) - var(--font-size-step, 0px))); color: var(--accent-color); margin-left: 6px; font-weight: var(--weight-control); }
.page-community-write .write-label .optional { color: var(--color-muted); }
.page-community-write .write-categories { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.page-community-write .write-categories label { position: relative; cursor: pointer; }
.page-community-write .write-categories input { cursor: pointer; position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.page-community-write .write-categories span { display: block; padding: 8px 20px; border: 1px solid var(--color-line); color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .write-categories input:checked + span { border-color: var(--main-color1); background: var(--badge-best-bg); color: var(--main-color1); font-weight: var(--weight-control); }
.page-community-write .write-categories input:focus-visible + span { outline: 2px solid var(--main-color1); outline-offset: 3px; }
.page-community-write #write-title, .page-community-write #write-body { width: 100%; border: 1px solid var(--color-line); padding: 14px 18px; font: inherit; color: inherit; background: var(--color-bg); border-radius: 0; }
.page-community-write #write-title::placeholder, .page-community-write #write-body::placeholder { color: var(--color-muted); }
.page-community-write #write-title:focus, .page-community-write #write-body:focus { outline: 1px solid var(--main-color1); }
.page-community-write #write-body { display: block; min-height: 275px; resize: vertical; }
.page-community-write .write-count { text-align: right; font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); color: var(--color-muted); margin-top: 8px; }
.page-community-write .upload-help { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); margin-bottom: 10px; }
.page-community-write .upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--color-line); background: var(--color-soft); padding: 16px; min-height: 172px; gap: 6px; }
.page-community-write .upload-zone.is-over { background: var(--badge-best-bg); border-color: var(--main-color1); }
.page-community-write .upload-plus { font-size: max(min(14px, 32px), calc(32px - var(--font-size-step, 0px))); line-height: 1; color: var(--color-muted); font-weight: 300; }
.page-community-write .upload-zone button { background: var(--main-color1); border-radius: 0; color: var(--color-bg); padding: 8px 14px; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
.page-community-write .file-help { margin-top: 10px; margin-bottom: 0; }
.page-community-write .write-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 26px; }
.page-community-write .write-actions button { border: 1px solid var(--color-line); padding: 8px 20px; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
.page-community-write #write-submit { background: var(--main-color1); color: var(--color-bg); border-color: var(--main-color1); }
.page-community-write #write-submit:disabled { background: var(--color-soft); color: var(--color-muted); border-color: var(--color-soft); }
.page-community-write #write-status { color: var(--main-color1); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); margin-top: 12px; }
.page-community-write .upload-zone[hidden], .page-community-write .file-summary[hidden], .page-community-write .attachment-add[hidden] { display: none; }
.page-community-write .photo-previews { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.page-community-write .photo-card { position: relative; min-width: 0; border: 1px solid var(--color-line); background: var(--color-bg); }
.page-community-write .photo-card.is-cover { border-color: var(--accent-color); }
.page-community-write .photo-card.is-dragging { opacity: 0.5; }
.page-community-write .photo-card img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.page-community-write .photo-caption { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 10px; gap: 4px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); color: var(--color-muted); font-weight: var(--weight-control); }
.page-community-write .is-cover .photo-caption > span { color: var(--main-color1); }
.page-community-write .photo-remove { position: absolute; top: 8px; right: 8px; padding: 5px 8px; border: 1px solid var(--color-line); border-radius: 0; background: var(--color-bg); color: var(--main-color1); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); line-height: 1.4; }
.page-community-write .photo-drag-handle { color: var(--color-muted); cursor: grab; font-size: max(min(14px, var(--font-card)), calc(var(--font-card) - var(--font-size-step, 0px))); padding: 0 2px; line-height: 1; }
.page-community-write .photo-drag-handle:active { cursor: grabbing; }
.page-community-write .photo-add-card { min-width: 0; border: 1px dashed var(--color-line); background: var(--color-soft); }
.page-community-write .photo-add-card > button { width: 100%; height: 100%; min-height: 160px; padding: 12px 6px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.page-community-write .photo-add-card strong { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-write .photo-add-card small { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .upload-error { margin-top: 12px; color: var(--accent-color); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .upload-error:empty { display: none; }
.page-community-write .file-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-control); }
.page-community-write .file-summary strong { color: var(--main-color1); }
.page-community-write .file-summary > span:last-child { color: var(--color-muted); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); font-weight: var(--weight-body); }
.page-community-write .file-previews li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-line); margin-top: 8px; background: var(--color-bg); }
.page-community-write .file-name { min-width: 0; overflow-wrap: anywhere; font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-write .file-name small { color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .file-attachment-icon { display: flex; flex-shrink: 0; color: var(--color-muted); }
.page-community-write .file-attachment-icon img { display: block; width: 16px; height: 16px; object-fit: contain; }
.page-community-write .file-remove { margin-left: auto; flex-shrink: 0; color: var(--main-color1); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); }
.page-community-write .attachment-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 12px; }
.page-community-write .attachment-actions .upload-error { margin-top: 0; }
.page-community-write .attachment-add { margin-left: auto; flex-shrink: 0; padding: 8px 16px; border: 1px solid var(--color-line); border-radius: 0; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); font-weight: var(--weight-control); background: var(--color-bg); }
.page-community-write .write-categories input:checked + span::before { content: '✓ '; }
.page-community-write .write-poll-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--color-muted); }
.page-community-write .write-poll-heading p { font-size: max(min(14px, var(--font-body)), calc(var(--font-body) - var(--font-size-step, 0px))); }
.page-community-write .write-poll-heading button { white-space: nowrap; font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
.page-community-write .write-poll-heading[hidden], .page-community-write #write-poll-fields[hidden] { display: none; }
.page-community-write .poll-field { position: relative; display: block; min-width: 0; flex: 1; }
.page-community-write .poll-field input { width: 100%; padding: var(--control-padding-y) var(--control-padding-x); border: 1px solid var(--color-line); font: var(--weight-body) max(min(14px, var(--font-input)), calc(var(--font-input) - var(--font-size-step, 0px))) / 1.5 var(--font-family); color: inherit; border-radius: 0; background: var(--color-bg); }
.page-community-write .poll-field input::placeholder { color: var(--color-muted); }
.page-community-write .poll-field input:focus { outline: 1px solid var(--main-color1); }
.page-community-write .poll-field-count { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--color-muted); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); pointer-events: none; }
.page-community-write .poll-option-row { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.page-community-write .poll-option-row > button { font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); color: var(--color-muted); }
.page-community-write .poll-add-row { display: flex; justify-content: flex-end; margin-top: 20px; }
.page-community-write .poll-add-row button, .page-community-write #restore-write-poll { padding: 7px 18px; border: 1px solid var(--color-line); font-weight: var(--weight-control); border-radius: 0; }
.page-community-write .poll-add-row button { font-size: max(min(14px, var(--font-button)), calc(var(--font-button) - var(--font-size-step, 0px))); }
.page-community-write #restore-write-poll { font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .poll-add-row button:disabled { opacity: var(--disabled-opacity); }
.page-community-write .write-poll-heading .poll-locked-notice { color: var(--accent-color); }
.page-community-write .poll-field input:disabled { background: var(--color-soft); color: var(--color-muted); cursor: not-allowed; }
.page-community-write .attachment-add:disabled { opacity: var(--disabled-opacity); cursor: not-allowed; }
.page-community-write .file-previews .attachment-failed, .page-community-write .attachment-failed { border-color: var(--accent-color); }
.page-community-write .photo-failure-preview { aspect-ratio: 1.55; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 12px; background: var(--badge-best-bg); text-align: center; overflow-wrap: anywhere; font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
.page-community-write .photo-failure-preview > span { color: var(--color-muted); }
.page-community-write .attachment-state { display: block; color: var(--accent-color); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); margin-top: 4px; }
.page-community-write .attachment-failure-actions { display: flex; gap: 12px; }
.page-community-write .attachment-failure-actions .photo-remove { position: static; padding: 0; border: 0; background: transparent; }
.page-community-write .attachment-retry { color: var(--accent-color); font-size: max(min(14px, var(--font-caption)), calc(var(--font-caption) - var(--font-size-step, 0px))); white-space: nowrap; margin-left: auto; }
.page-community-write .attachment-failure-actions .attachment-retry, .page-community-write .file-previews .attachment-failed .file-remove { margin-left: 0; }
.page-community-write .attachment-pending .attachment-state { color: var(--color-muted); }
@media (max-width: 1024px) {
  .page-community-write .write-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .page-community-write .write-label { padding: 0; }
  .page-community-write .write-categories { gap: 8px; }
  .page-community-write .write-categories span { padding: 8px 12px; }
  .page-community-write .write-intro > div { align-items: flex-start; }
  .page-community-write .write-list { white-space: nowrap; }
  .page-community-write .photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-community-write .file-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .page-community-write .file-previews li { padding: 12px 10px; gap: 8px; }
  .page-community-write .write-main { padding-top: 24px; }
  .page-community-write :is( #write-title, #write-body, .poll-field input, .upload-zone, .photo-card, .file-previews li, .write-actions button, .upload-zone button, .write-list, .attachment-add, #restore-write-poll, .poll-add-row button, .write-categories span ) { border-radius: 8px; }
  .page-community-write .write-actions button { min-height: 44px; }
  .page-community-write .photo-card { overflow: hidden; }
  .page-community-write .write-intro > div { flex-wrap: wrap; gap: 12px; }
  .page-community-write .write-list { margin-left: auto; }
  .page-community-write .write-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-community-write .write-categories span { min-height: 44px; display: grid; place-items: center; padding: 8px; }
  .page-community-write #write-title { padding: 10px 12px; }
  .page-community-write #write-body { min-height: 240px; padding: 12px; }
  .page-community-write .write-actions button { flex: 1; }
  .page-community-write .write-poll-heading { flex-wrap: wrap; gap: 12px; }
}
/* 커뮤니티 메인 알림 신청 아래 행운번호 */
.lotto-entry-link { display: none; }
.community-unified .lotto-entry-link { display: flex; justify-content: space-between; gap: 10px; padding: 12px; margin-top: 12px; border: 1px solid var(--color-line); background: var(--badge-best-bg); font-weight: var(--weight-control); font-size: max(min(14px, var(--font-small)), calc(var(--font-small) - var(--font-size-step, 0px))); }
/* PC 페이지 제목·카드 간격 */
@media (min-width: 1025px) {
  .page-community .community-stories { margin-top: 24px; border-top-color: var(--main-color2); }
  .page-community .community-cards { padding-top: 24px; gap: 24px; }
  .page-community .community-board { margin-top: 32px; border-top-color: var(--main-color2); }
  .page-community .board-heading { padding: 16px 0; }
}
/* 모바일 커뮤니티 목록·상세 */
@media (max-width: 1024px) {
  html body.page-community-post .post-header h1 { font-size: 22px; line-height: 32px; font-weight: 700; }
  html body.page-community-post .post-body { font-size: 16px; line-height: 26px; }
  html body.page-community-post .post-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
  html body.page-community-post .comment-login-box { padding: var(--login-card-padding); background: var(--login-card-background); border: var(--login-card-border); border-radius: var(--login-card-radius); }
  html body.page-community-post .comment-login-box h3 { font-size: var(--login-heading-size); line-height: var(--login-heading-line); font-weight: 700; }
  html body.page-community-post .comment-login-box .social-login { min-height: 44px; font-size: 16px; border-radius: 8px; }
  html body.page-community-post:not([data-member-preview]) .post-body { max-height: 78px; padding: 0; margin: 24px 0 0; overflow: hidden; mask-image: linear-gradient(#000 26px,transparent 78px); }
  html body.page-community-post:not([data-member-preview]) .post-body > :not(p), html body.page-community-post:not([data-member-preview]) .post-comments-section > h2, html body.page-community-post:not([data-member-preview]) .comment-preview, html body.page-community-post:not([data-member-preview]) .comment-teaser { display: none; }
  html body.page-community-post:not([data-member-preview]) .post-comments-section { border: 0; padding-top: 0; }
  html body.page-community-post:not([data-member-preview]) .comment-access { padding: 0 0 24px; margin-top: -12px; }
  html body.page-community-post[data-member-preview] .post-comments-section[hidden] { display: none; }
}
.community-detail-back { display: none; }
@media (max-width: 1024px) {
  .community-detail-back { display: flex; align-items: center; height: 56px; padding: 0 16px; border-bottom: 1px solid #eceef2; background: #fff; }
  .community-detail-back a { font-size: 16px; font-weight: 700; }
  html body.page-community-post:not([data-member-preview]) .post-body p + p { margin-top: 0; }
}
/* 모바일 글쓰기 */
@media (max-width: 1024px) {
  html body.page-community-write :is(.site-header,.site-footer,.floating-chat,.write-intro,.write-actions) { display: none !important; }
  html body.page-community-write .write-main { padding: 16px; max-width: 640px; margin: auto; }
  .write-mobile-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 20px; }
  .write-mobile-top>button:first-child { border: 0; background: none; font-size: 30px; color: #59616c; padding: 0 8px 0 0; }
  html body.page-community-write #write-submit { min-width: 62px; min-height: 36px; padding: 8px 16px; border: 1px solid var(--responsive-color-f41a21); background: var(--responsive-color-f41a21); color: white; border-radius: 9px; font-size: 16px; font-weight: 700; }
  html body.page-community-write #write-submit:disabled { background: white; border-color: #dce0e7; color: #777; }
  html body.page-community-write .write-row { display: block; padding: 0; border: 0; margin: 0 0 8px; }
  html body.page-community-write .write-label { display: none; }
  html body.page-community-write .write-categories { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .write-topic { background: white; border: 1px solid #ddd; border-radius: 24px; padding: 7px 14px; font-size: 16px; font-weight: 700; }
  html body.page-community-write #write-title { border: 0; border-radius: 0; padding: 12px 0 20px; font-size: 22px; line-height: 32px; font-weight: 700; background: white; width: 100%; color: var(--responsive-color-181c25); }
  html body.page-community-write #write-title::placeholder { color: var(--responsive-color-181c25); }
  html body.page-community-write .write-title-row { border-bottom: 1px solid #e5e5e5; margin-bottom: 0; }
  html body.page-community-write #title-count { text-align: right; color: #777; }
  .write-mobile-toolbar { position: relative; display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
  .write-mobile-toolbar>button { width: 28px; height: 28px; border: 0; padding: 0; background: none; color: #111; }
  .write-mobile-toolbar svg { width: 24px; height: 24px; }
  .write-mobile-toolbar>button.is-active { color: var(--responsive-color-f41a21); }
  .write-camera-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: 196px; border-radius: 16px; background: white; box-shadow: 0 8px 24px #0002; overflow: hidden; }
  .write-camera-menu button { display: block; width: 100%; padding: 16px; border: 0; border-bottom: 1px solid #eee; text-align: left; background: white; font-size: 16px; }
  html body.page-community-write #write-body { border: 0; border-radius: 0; padding: 0; font-size: 16px; line-height: 26px; background: white; resize: vertical; }
  html body.page-community-write .write-count { color: #777; font-size: 12px; text-align: right; margin: 16px 0; }
  html body.page-community-write .upload-zone, html body.page-community-write :is(.write-photo-row,.write-file-row):not(:has(li)) { display: none; }
  html body.page-community-write .photo-previews { display: flex; flex-direction: column; gap: 8px; }
  html body.page-community-write .photo-card { position: relative; border: 0; border-radius: 16px; overflow: hidden; padding: 0; }
  html body.page-community-write .photo-card>img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
  html body.page-community-write .photo-remove { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #181c25aa; color: white; font-size: 0; }
  .page-community-write .photo-remove::after { content: '×'; font-size: 28px; line-height: 28px; }
  html body.page-community-write .photo-caption { position: absolute; bottom: 10px; left: 10px; background: var(--responsive-color-181c25); color: white; border-radius: 4px; padding: 4px 8px; font-size: 12px; }
  html body.page-community-write .photo-card:not(.is-cover) .photo-caption, html body.page-community-write .photo-drag-handle { display: none; }
  html body.page-community-write .file-previews li { border: 1px solid #dce0e7; background: #f5f6f8; border-radius: 10px; padding: 14px; gap: 12px; }
  html body.page-community-write .file-summary { font-size: 12px; margin-bottom: 8px; }
  html body.page-community-write .write-poll-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
  html body.page-community-write .write-poll-heading>p:not(.poll-locked-notice) { display: none; }
  html body.page-community-write .write-poll-heading .poll-locked-notice { order: 3; flex-basis: 100%; color: var(--responsive-color-f41a21); font-size: 14px; }
  .write-duration { background: none; border: 0; padding: 0; font-size: 16px; color: var(--responsive-color-181c25); }
  .write-duration:disabled { color: #aaa; }
  html body.page-community-write #remove-write-poll { border: 0; background: none; color: #777; padding: 0; font-size: 14px; }
  html body.page-community-write .poll-field { display: flex; align-items: center; background: #f5f6f8; border-radius: 10px; padding: 12px; gap: 8px; }
  html body.page-community-write .poll-field input { padding: 0; border: 0; background: none; font-size: 16px; min-width: 0; flex: 1; }
  html body.page-community-write .poll-field-count { position: static; white-space: nowrap; font-size: 12px; color: #777; }
  html body.page-community-write .poll-option-row { margin-bottom: 8px; }
  html body.page-community-write .poll-add-row button { width: 100%; border: 1px dashed #e1e5ec; background: white; border-radius: 10px; padding: 12px; font-size: 16px; font-weight: 700; }
  html body.page-community-write #restore-write-poll { display: none; }
  html body.page-community-write .upload-error { color: var(--responsive-color-f41a21); font-size: 14px; margin: 8px 0; }
  .write-choice-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 640px; max-height: 85dvh; overflow: auto; box-sizing: border-box; border: 0; border-radius: 24px 24px 0 0; padding: 32px 20px 24px; background: white; }
  .write-choice-sheet::before { content: ''; position: absolute; top: 12px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 4px; background: #e5e5e5; }
  .write-choice-sheet::backdrop { background: #0006; }
  .write-choice-sheet h2 { font-size: 20px; line-height: 28px; margin: 0 32px 16px 0; }
  .write-sheet-close { position: absolute; right: 20px; top: 28px; border: 0; background: none; font-size: 28px; color: #777; }
  .write-choice { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: white; padding: 14px 0; font-size: 18px; color: var(--responsive-color-181c25); text-align: left; }
  .write-choice::after { content: ''; box-sizing: border-box; width: 20px; height: 20px; border: 1px solid #888; border-radius: 50%; }
  .write-choice[aria-pressed=true]::after { content: '✓'; display: grid; place-items: center; background: var(--responsive-color-f41a21); border-color: var(--responsive-color-f41a21); color: white; font-size: 14px; }
  .write-choice[aria-pressed=true] { font-weight: 700; }
}
@media (max-width: 1024px) {
  html body.page-community-write :is(.write-vote-row,.poll-field,.write-poll-heading,.write-camera-menu)[hidden] { display: none !important; }
  html body.page-community-post .post-vote { border: 0; padding: 0; background: white; margin: 24px 0 0; }
  html body.page-community-post .post-vote fieldset { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; }
  html body.page-community-post .post-vote label { position: relative; display: flex; align-items: center; min-height: 46px; border: 0; border-radius: 11px; overflow: hidden; padding: 12px; background: #f1f3f5; font-size: 16px; }
  html body.page-community-post .post-vote.has-results label>span:not(.vote-bar) { position: relative; z-index: 1; flex: 1; }
  html body.page-community-post .post-vote.has-results label>strong { position: relative; z-index: 1; margin-left: auto; font-size: 16px; color: #555d66; }
  html body.page-community-post .post-vote.has-results input { display: none; }
  html body.page-community-post .post-vote.has-results .vote-bar { position: absolute; inset: 0; height: 100%; width: 100%; margin: 0; border-radius: 0; background: transparent; z-index: 0; }
  html body.page-community-post .post-vote.has-results .vote-bar>span { display: block; height: 100%; background: #e3e6e9; }
  html body.page-community-post .post-vote.has-results .is-selected .vote-bar>span { background: var(--responsive-color-f41a21); }
  html body.page-community-post .post-vote.has-results .is-selected>span:not(.vote-bar) { font-weight: 700; color: var(--responsive-color-181c25); }
  html body.page-community-post .post-vote.has-results button[type=submit] { background: none; border: 0; color: #59616c; text-decoration: underline; padding: 0; font-size: 14px; }
  html body.page-community-write .write-main { width: 100%; box-sizing: border-box; }
  html body.page-community-write #write-body { min-height: 240px; resize: none; }
  html body.page-community-write #neighbor-write-form:not(:has(.write-photo-row li)):has(.write-vote-row[hidden]) #write-body { min-height: calc(100dvh - 340px); }
  html body.page-community-write .write-title-row>div { position: relative; }
  html body.page-community-write #title-count { position: absolute; bottom: 0; right: 0; margin: 0; font-size: 12px; }
  html body.page-community-write #write-title { padding-bottom: 26px; }
  html body.page-community-write .photo-add-card { height: auto; min-height: 0; border: 0; margin-top: 8px; }
  html body.page-community-write .photo-add-card button { border: 1px solid #ddd; border-radius: 8px; padding: 10px 16px; display: inline-block; width: auto; background: white; color: var(--responsive-color-f41a21); }
  html body.page-community-write .photo-add-card :is(.upload-plus,small) { display: none; }
  html body.page-community-write .attachment-pending .photo-failure-preview { min-height: 240px; background: #f1f3f5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; border-radius: 16px; }
  html body.page-community-write .attachment-pending .attachment-state { color: var(--responsive-color-f41a21); font-size: 20px; }
  html body.page-community-write .attachment-pending .attachment-state::after { content: ''; display: block; width: 200px; max-width: 70vw; height: 4px; background: linear-gradient(to right,var(--responsive-color-f41a21) 25%,#dde1e7 25%); margin-top: 20px; border-radius: 4px; }
  html body.page-community-write .attachment-pending .photo-remove { position: static; width: auto; height: auto; font-size: 16px; padding: 12px 28px; background: white; color: var(--responsive-color-181c25); border: 1px solid #dce0e7; }
  html body.page-community-write .attachment-pending .photo-remove::after { display: none; }
}
.community-row-copy,.community-row-thumb,.community-load-more { display: none; }
@media (max-width: 1024px) {
  html body.page-community.community-unified .community-unified .community-header { display: none; }
  html body.page-community.community-unified .community-stories { border: 0; padding-top: 16px; margin-top: 0; }
  html body.page-community.community-unified .community-hot-label { color: var(--responsive-color-181c25); background: none; font-size: 20px; font-weight: 700; padding: 0; }
  html body.page-community.community-unified .community-story-controls { display: none; }
  html body.page-community.community-unified .community-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; padding: 16px 0; }
  html body.page-community.community-unified .community-card { display: block !important; flex: 0 0 66%; min-width: 0; scroll-snap-align: start; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
  html body.page-community.community-unified .community-card>img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; }
  html body.page-community.community-unified .community-card .card-content { padding: 12px; }
  html body.page-community.community-unified .community-card h3 { font-size: 16px; line-height: 23px; }
  html body.page-community.community-unified .community-card .card-link { font-size: 0; border: 0; padding: 0; position: absolute; inset: 0; }
  html body.page-community.community-unified .community-card { position: relative; }
  html body.page-community.community-unified .community-board { border-top: 8px solid #eaedf2; margin-top: 8px; padding-top: 24px; }
  html body.page-community.community-unified .community-filters { display: flex; overflow: auto; gap: 8px; border: 0; margin: 20px 0 16px; scrollbar-width: none; }
  html body.page-community.community-unified .community-filters button { flex: none; border: 1px solid #ddd; border-radius: 22px; padding: 8px 12px; background: white; color: #666; font-size: 14px; white-space: nowrap; }
  html body.page-community.community-unified .community-filters button[aria-pressed=true] { color: white; border-color: var(--responsive-color-f41a21); background: var(--responsive-color-f41a21); }
  html body.page-community.community-unified [data-filter=popular] { display: none; }
  html body.page-community.community-unified .community-table tbody tr:not([hidden]):not(.board-empty) { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; border-bottom: 1px solid #eee; padding: 16px 0; }
  html body.page-community.community-unified .community-table td { padding: 0; border: 0; }
  html body.page-community.community-unified .community-table td:first-child { display: block; font-size: 14px; color: var(--responsive-color-181c25); }
  html body.page-community.community-unified .community-table td:not(:first-child):not(:nth-child(3)) { display: none; }
  html body.page-community.community-unified .community-table td:nth-child(3) { display: block; position: relative; min-width: 0; }
  html body.page-community.community-unified .community-table .post-title { display: block; white-space: normal; padding: 0; margin: 0; }
  html body.page-community.community-unified .community-table .post-text { font-size: 16px; line-height: 24px; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html body.page-community.community-unified .community-table .post-comments { display: none; }
  html body.page-community.community-unified .community-row-copy { display: block; }
  .community-row-excerpt { font-size: 14px; line-height: 21px; color: #666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0; }
  .community-row-meta { display: flex; justify-content: space-between; font-size: 12px; color: #777; }
  .community-row-meta strong { color: #333; }
  html body.page-community.community-unified .community-row-thumb { display: block; position: absolute; right: 0; top: 0; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; object-fit: cover; }
.community-row-thumb > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
  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: 80px; }
  html body.page-community.community-unified .community-load-more { display: block; border: 1px solid #ddd; border-radius: 24px; background: white; padding: 9px 22px; margin: 24px auto; font-size: 14px; }
  html body.page-community.community-unified .community-load-more[hidden] { display: none; }
  html body.page-community.community-unified :is(.community-pagination,.community-search,.community-mobile-extras,.community-interest-slot,.community-login,.community-alert) { display: none !important; }
  html body.page-community.community-unified .community-poll { background: #eaedf2; padding: 20px 16px; border: 0; }
  html body.page-community.community-unified .community-mobile-chat { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0; }
  html body.page-community.community-unified .community-mobile-chat img { width: 100%; height: auto; display: block; }
  html body.page-community.community-unified .community-intro { display: none; }
  html body.page-community.community-unified .community-filters button[data-filter=popular] { display: none; }
  html body.page-community.community-unified .community-poll :is(h2,h3,p,small,b,.category) { color: var(--responsive-color-181c25); }
  html body.page-community.community-unified .community-poll .section-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
  html body.page-community.community-unified .community-poll .poll-heading { border: 1px solid #e1e5ec; border-bottom: 0; background: white; border-radius: 12px 12px 0 0; padding: 16px 16px 0; margin: 0; font-size: 12px; }
  html body.page-community.community-unified .community-poll .poll-question { margin: 0; padding: 16px; background: white; border-inline: 1px solid #e1e5ec; font-size: 16px; }
  html body.page-community.community-unified #local-poll { background: white; padding: 0 16px 16px; border: 1px solid #e1e5ec; border-top: 0; border-radius: 0 0 12px 12px; }
  html body.page-community.community-unified .poll-options label { background: #f5f6f8; color: #59616c; border-radius: 8px; border: 1px solid transparent; }
  html body.page-community.community-unified .poll-options label:has(input:checked) { border-color: var(--responsive-color-f41a21); background: #fff2f3; color: var(--responsive-color-f41a21); }
  html body .community-related { padding: 24px 16px 32px; background: #fff; border-top: 8px solid #eaedf2; }
  html body .community-related h2 { margin: 0 0 20px; font-size: 20px; }
  html body .community-related-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #eee; color: var(--responsive-color-181c25); text-decoration: none; }
  html body .community-related-row[hidden], html body.post-page .community-board[hidden] { display: none !important; }
  html body .community-related-row div { flex: 1; }
  html body .community-related-row strong { font-size: 16px; line-height: 1.5; }
  html body .community-related-row small { display: block; margin-top: 8px; color: #777; font-size: 12px; }
  html body .community-related-row img { width: 88px; height: 64px; object-fit: cover; border-radius: 8px; }
  html body .community-related > button { display: block; margin: 24px auto 0; padding: 8px 20px; border: 1px solid #ddd; border-radius: 24px; background: #fff; }
}
/* 모바일 커뮤니티 글자·간격 */
@media (max-width: 1024px) {
  html body.page-community.community-unified .community-main { padding-inline: 0; }
  html body.page-community.community-unified .community-stories { padding: 20px 16px 24px; }
  html body.page-community.community-unified .community-mobile-toolbar { margin: 0 0 16px; }
  html body.page-community.community-unified .community-cards { padding: 0; gap: 10px; }
  html body.page-community.community-unified .community-card { flex-basis: 64%; }
  html body.page-community.community-unified .community-card h3 { font-size: calc(18px - var(--font-size-step,0px)); line-height: 24px; margin: 0 0 12px; }
  html body.page-community.community-unified .community-card h3 br { display: none; }
  html body.page-community.community-unified .community-card .card-meta p { font-size: 14px; line-height: 20px; color: var(--responsive-color-181c25); margin: 0; }
  html body.page-community.community-unified .community-board { margin: 0; padding: 28px 16px 24px; border-top: 10px solid #eaedf2; }
  html body.page-community.community-unified .community-header { margin: 0; }
  html body.page-community.community-unified .community-header h2, html body.page-community.community-unified .community-hot-label, html body.page-community.community-unified .community-poll .section-title { font-size: calc(20px - var(--font-size-step,0px)); line-height: 28px; }
  html body.page-community.community-unified .community-header .write-button { display: none; }
  html body.page-community.community-unified .community-filters { margin: 20px 0 16px; }
  html body.page-community.community-unified .community-filters button { padding: 6px 12px; line-height: 22px; color: var(--responsive-color-181c25); }
  html body.page-community.community-unified .community-table tbody tr:not([hidden]):not(.board-empty) { align-items: start; padding: 16px 0; }
  html body.page-community.community-unified .community-table td:first-child { padding-top: 0; line-height: 24px; font-weight: 700; align-self: start; }
  html body.page-community.community-unified .community-table .post-title { display: flex; align-items: flex-start; gap: 8px; }
  html body.page-community.community-unified .community-table .post-text { flex: 1; min-width: 0; font-size: 16px; }
  html body.page-community.community-unified .post-badge { order: 2; flex-shrink: 0; margin: 2px 0 0; padding: 1px 4px; font-size: 10px; line-height: 14px; border: 1px solid currentColor; border-radius: 3px; }
  html body.page-community.community-unified .post-badge.best { color: #be0012; background: #fff5f6; }
  html body.page-community.community-unified .post-badge.new { color: #007aff; background: #f0f6ff; }
  html body.page-community.community-unified .community-row-excerpt { color: #303038; line-height: 22px; margin: 4px 0 8px; }
  html body.page-community.community-unified .community-row-meta { font-size: 14px; line-height: 20px; }
  .community-comment-count { display: inline-flex; align-items: center; gap: 4px; }
  .community-comment-count::before { content: ''; width: 11px; height: 10px; border: 1px solid #777; border-radius: 50%; }
  html body.page-community.community-unified .community-load-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px auto 0; padding: 6px 24px; font-size: 16px; line-height: 22px; font-weight: 600; }
  html body.page-community.community-unified .community-load-more::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
  html body.page-community.community-unified .community-poll { margin: 0; width: 100%; box-sizing: border-box; padding: 28px 16px 20px; }
  html body.page-community.community-unified .community-poll .section-title > span { color: var(--responsive-color-ff1725); }
  html body.page-community.community-unified .community-poll .poll-question > span { display: none; }
  html body.page-community.community-unified .community-poll .poll-heading { font-size: 14px; }
  html body.page-community.community-unified .poll-options label { font-size: 14px; line-height: 22px; color: var(--responsive-color-181c25); display: flex; align-items: center; gap: 8px; padding: 10px; }
  html body.page-community.community-unified .poll-options input { order: 2; margin-left: auto; flex-shrink: 0; accent-color: var(--responsive-color-ff1725); }
  html body.page-community.community-unified .poll-options label:has(input:checked) { color: #be0012; font-weight: 600; border-color: var(--responsive-color-ff1725); }
  html body.page-community.community-unified .community-mobile-chat, html body.page-community.community-unified .community-mobile-chat img { border-radius: 0; margin: 0; max-width: none; width: 100%; }
  html body.page-community.community-unified main.community-main { width: 100%; max-width: none; margin: 0; padding: 0; }
  html body.page-community.community-unified .board-heading { margin: 0; }
  html body.page-community.community-unified .board-heading h2 { font-size: calc(20px - var(--font-size-step,0px)); line-height: 28px; }
  html body.page-community.community-unified .board-heading .write-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 6px 12px; border-radius: 16px; background: var(--responsive-color-ff1725); color: #fff; font-size: 14px; line-height: 20px; white-space: nowrap; }
  html body.page-community.community-unified .community-content { padding: 0; }
  html body.page-community.community-unified .community-mobile-chat { margin-bottom: 0; }
  .community-comment-count::before { border: 0; width: 14px; height: 14px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15 15l1 4-5-2a7 7 0 1 1 4-2Z' fill='none' stroke='%23777' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  html body.page-community.community-unified .community-layout { gap: 0; padding-top: 0; }
  html body.page-community.community-unified .community-aside { width: 100%; margin: 0; }
  html body.page-community.community-unified main.community-main { overflow-x: clip; }
}
/* 게시글 상세 뒤로가기 헤더 */
@media (max-width: 1024px) {
  html body.page-community-post > :is(.site-header,.top-strip,.mobile-header-anchor,.mobile-header-space) { display: none !important; }
}
body .community-tool-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.write-validation-toast { position: fixed; z-index: 10000; bottom: var(--toast-bottom); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--radius-mobile-10, 0px); background: #24262bed; color: #fff; font-size: 14px; line-height: 22px; text-align: center; box-shadow: 0 4px 16px #0002; }
.write-validation-toast[hidden] { display: none; }
.page-community-post .post-vote-question { display: none; }
.page-community-write #write-body[hidden] { display: none !important; }
.page-community-write #write-rich-body { min-height: 180px; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 26px; font-weight: 400; }
.page-community-write #write-rich-body.is-empty::before { content: attr(data-placeholder); position: absolute; color: #60636e; pointer-events: none; }
.page-community-write .write-inline-photo { display: block; margin: 16px 0; white-space: normal; }
.page-community-write .write-inline-photo .photo-card { list-style: none; }
.page-community-write #write-rich-body > div { min-height: 26px; }
.page-community-write #write-rich-body { position: relative; }
/* 사진 업로드 대기 표시: 미리보기 크기 유지 */
html body.page-community-write .photo-loading-preview { position: relative; overflow: hidden; border-radius: var(--radius-mobile-12, 0px); min-height: 160px; }
html body.page-community-write .photo-loading-preview img { display: block; width: 100%; }
html body.page-community-write .photo-loading-skeleton { position: absolute; inset: 0; background: #edf0f3; pointer-events: none; overflow: hidden; }
html body.page-community-write .photo-loading-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 20%,#ffffffb3 50%,transparent 80%); transform: translateX(-100%); animation: photo-skeleton-shimmer 1.3s ease-in-out infinite; }
@keyframes photo-skeleton-shimmer {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion:reduce) {
  html body.page-community-write .photo-loading-skeleton::after { animation: none; }
}
/* 커뮤니티 투표 VS 배지 */
html body.page-community :is(.community-vs-tag,.post-poll-badge,.community-related-vs) { display: inline-flex; align-items: center; justify-content: center; flex: none; width: auto; height: auto; min-width: 0; margin: 0; padding: 1px 6px; border: 1px solid var(--responsive-color-ff1725); border-radius: var(--radius-mobile-4, 0px); background: #fff0f3; color: var(--responsive-color-ff1725); font-size: 12px; line-height: 16px; font-weight: 700; }
html body.page-community :is(.community-vs-tag,.post-poll-badge,.community-related-vs)::before, html body.page-community :is(.community-vs-tag,.post-poll-badge,.community-related-vs)::after { content: none; }
@media (max-width: 1024px) {
  html body.page-community-write .write-choice-sheet { max-width: 640px; padding: 30px 16px 14px; border-radius: 18px 18px 0 0; }
  html body.page-community-write .write-choice-sheet h2 { font-size: 20px; line-height: 28px; margin: 0 32px 16px 4px; }
  html body.page-community-write .write-choice { min-height: 52px; padding: 14px 4px; border-bottom: 1px solid #e6e6e6; font-size: 16px; line-height: 24px; }
  html body.page-community-write .write-choice:last-child { border-bottom: 0; }
  html body.page-community-write .write-choice::after { display: none; }
  html body.page-community-write .write-choice[aria-pressed=true] { color: var(--responsive-color-ff1725); font-weight: 700; }
  html body.page-community-write .write-sheet-close { top: 28px; right: 18px; width: 24px; height: 24px; padding: 0; line-height: 22px; color: #181c25; font-size: 28px; }
  html body.page-community-write .write-duration-sheet { padding-top: 64px; }
  html body.page-community-write .write-duration-sheet h2 { display: none; }
}
/* PC 커뮤니티 메인: 추천 3열과 게시판·사이드 영역 */
@media (min-width: 1025px) {
  html body.community-unified .community-layout { grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); gap: 46px; }
  html body.community-unified .community-intro h1 { font-size: 32px; line-height: 1.4; }
  html body.community-unified .community-stories { margin-top: 44px; border: 0; }
  html body.community-unified .community-cards { padding-top: 0; gap: 20px; }
  html body.community-unified .community-card { display: flex; flex-direction: column; }
  html body.community-unified .card-placeholder { background: #f5f5f5; }
  html body.community-unified .card-content { display: flex; flex-direction: column; flex: 1; padding: 18px 16px; }
  html body.community-unified .card-content h3 { font-size: 18px; line-height: 1.5; min-height: 54px; }
  html body.community-unified .card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
  html body.community-unified .card-meta p { margin: 0; font-size: 14px; color: var(--color-text); }
  html body.community-unified .card-link { flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--accent-color); border-radius: 0; color: var(--accent-color); font-size: 12px; font-weight: 700; }
  html body.community-unified .community-board { margin-top: 40px; border-top: 3px solid var(--main-color1); }
  html body.community-unified .board-heading { padding: 18px 8px 32px; }
  html body.community-unified .community-filters { padding-bottom: 16px; }
  html body.community-unified .community-table td { height: 54px; }
  html body.community-unified .community-login { padding: 28px 16px 18px; }
  html body.community-unified .community-poll { margin-top: 32px; border-top-width: 3px; }
  html body.community-unified .community-poll .section-title { font-size: 24px; }
  html body.community-unified .community-poll .poll-heading { margin: 28px 8px; }
  html body.community-unified .community-poll .poll-question { padding-left: 0; margin-bottom: 22px; text-align: left; }
  html body.community-unified .community-poll .poll-question > span { display: none; }
  html body.community-unified .community-poll label { min-height: 46px; }
  html body.community-unified .community-alert { margin-top: 32px; }
  html body.community-unified .lotto-entry-link, html body.community-unified .quick-menu { display: none; }
  html body.community-unified .community-main { padding-bottom: 40px; }
}
/* PC 상세: 공통 헤더, 관련 글 3개, 토론 사이드바 */
.post-related-desktop[hidden], .page-community-post .community-board[hidden] { display: none !important; }
.post-discussions { display: none; }
@media (min-width: 1025px) {
  .page-community-post .community-detail-back { display: none; }
  .page-community-post .post-discussions { display: block; margin-top: 24px; border-top: 2px solid var(--color-text); }
  .post-discussions-heading, .post-discussions-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .post-discussions-heading { padding: 12px 8px; }
  .post-discussions-heading h2 { font-size: 22px; }
  .post-discussions-heading button { padding: 4px; font-size: 22px; }
  .post-discussions .community-discussion-list a { display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--color-line); }
  .post-discussions .community-discussion-list img { width: 78px; height: 60px; object-fit: cover; flex: none; }
  .post-discussions .community-discussion-list h3 { flex: 1; font-size: 18px; line-height: 1.5; }
  .post-discussion-write { display: block; padding: 14px; background: var(--color-soft); text-align: center; font-weight: 700; }
  .page-community-post .community-alert { margin-top: 24px; }
  .post-related-desktop { margin-top: 24px; border-top: 3px solid var(--color-text); }
  .post-related-actions { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
  .post-related-desktop .community-table { table-layout: fixed; }
  .post-related-desktop .community-table th:first-child { width: auto; }
  .post-related-desktop .community-table th:nth-child(2) { width: 100px; }
  .post-related-desktop .community-table th:nth-child(3) { width: 110px; }
  .post-related-desktop .community-table th:nth-child(4) { width: 70px; }
  .post-related-desktop .community-table td:first-child { text-align: left; }
  .post-related-desktop .community-table td:last-child { color: var(--accent-color); }
  .post-related-desktop .post-title { white-space: normal; overflow-wrap: anywhere; }
}
@media (min-width: 1025px) {
  html body.page-community-post .post-related-desktop .community-table td:first-child { color: var(--color-text); }
  html body.page-community-post .post-related-desktop .community-table :is(td, .post-title) { font-size: 14px; }
}
@media (min-width: 1025px) {
  .poll-question { display: none !important; }
}
/* 편집·작성자 메뉴는 폭 변경 시에도 같은 요소와 입력 상태를 유지 */
@media (min-width: 1025px) {
  .write-mobile-top, .write-mobile-toolbar, .write-topic, .write-duration { display: none !important; }
  .page-community-post .post-owner-menu { display: contents; }
  .page-community-post .post-owner-menu > summary { display: none; }
  .page-community-post .post-owner-menu > .post-owner-actions { display: flex; }
}
/* PC 검색 도구: 중복 입력 여백 제거, 높이와 간격 통일 */
@media (min-width: 1025px) {
  html body.page-community .community-search { align-items: stretch; flex-wrap: wrap; gap: 12px; max-width: 760px; margin-inline: auto; padding: 4px 16px 24px; }
  html body.page-community .community-search .search-select { flex: 0 0 120px; }
  html body.page-community .community-search .select-trigger { height: 48px; min-height: 48px; padding: 0 14px; font-size: 14px; font-weight: 400; }
  html body.page-community .community-search .search-input { flex: 1 1 240px; width: auto; height: 48px; min-height: 48px; padding: 0 14px; gap: 10px; }
  html body.page-community .community-search .search-input input { min-height: 0; height: 100%; padding: 0; font-size: 14px; }
  html body.page-community .community-search > button { height: 48px; min-height: 48px; padding: 0 22px; font-size: 14px; }
  html body.page-community .community-search .community-search-reset { flex-basis: 100%; }
  html body.page-community :is(.post-poll-badge,.community-vs-tag,.community-related-vs) { padding: 2px 4px; border: 1px solid currentColor; border-radius: 0; background: var(--badge-best-bg); color: var(--accent-color); font-size: max(min(14px, 12px), calc(12px - var(--font-size-step, 0px))); font-weight: var(--weight-body); line-height: 1.1; }
  html body.page-community .post-title > .post-poll-badge { margin-left: 6px; }
}
