@media (max-width: 767.98px) {
    main.community-homepage {
        padding: var(--fm-space-4);
    }

    /* 커뮤니티는 기존 게시글 표의 데이터와 링크를 유지하며 세로 목록으로 표시합니다. */
    #communityPage[data-page="list"] {
        min-width: 0;
        padding: var(--fm-space-4);
    }

    #communityPage[data-page="list"] .community-feature {
        display: block;
        margin: calc(-1 * var(--fm-space-4)) calc(-1 * var(--fm-space-4)) var(--fm-space-4);
        padding: var(--fm-space-4);
    }

    #communityPage[data-page="list"] .community-feature-image,
    #communityPage[data-page="list"] .community-eyebrow {
        display: none;
    }

    #communityPage[data-page="list"] .community-feature h2 {
        margin-bottom: var(--fm-space-2);
        font-size: 22px;
    }

    #communityPage[data-page="list"] .community-feature-copy > p {
        margin-bottom: 0;
    }

    #communityPage[data-page="list"] .community-list-controls {
        gap: var(--fm-space-3);
        min-width: 0;
    }

    /* 모바일 목록의 검색창과 내 활동 버튼을 같은 행에 배치합니다. */
    #communityPage[data-page="list"] #communityHeader {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    #communityPage[data-page="list"] #communityMy {
        width: auto;
        min-height: 44px;
    }

    #communityPage[data-page="list"] .community-search {
        flex: 1 1 0;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-tabs {
        flex: 1 0 100%;
        min-width: 0;
        gap: var(--fm-space-4);
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-tabs .btn-freemode {
        width: auto;
        min-height: 44px;
    }

    #communityPage[data-page="list"] .community-search,
    #communityPage[data-page="list"] .community-search-input {
        width: 100%;
        min-width: 0;
    }

    #communityPage[data-page="list"] .community-search input {
        min-height: 44px;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table-scroll {
        overflow-x: visible;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table,
    #communityPage:is([data-page="list"], [data-page="my"]) .community-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table colgroup,
    #communityPage:is([data-page="list"], [data-page="my"]) .community-table thead {
        display: none;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: var(--fm-space-2) var(--fm-space-3);
        padding: var(--fm-space-4);
        border-bottom: var(--k-border-light);
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table-title,
    #communityPage:is([data-page="list"], [data-page="my"]) .community-empty {
        grid-column: 1 / -1;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-title-line {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--fm-space-1);
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-title-line .community-category {
        flex: 0 0 auto;
    }

    #communityPage[data-page="list"] .community-table-author {
        justify-content: flex-start;
    }

    #communityPage:is([data-page="list"], [data-page="my"]) [data-comment-count]::before {
        content: '댓글 ';
    }

    #communityPage:is([data-page="list"], [data-page="my"]) [data-like-count]::before {
        content: '좋아요 ';
    }

    #communityPage:is([data-page="list"], [data-page="my"]) .community-table-date {
        grid-column: 1 / -1;
    }

    /* 내 활동은 작은 프로필과 실제 집계, 가로 활동 탭 및 공통 모바일 목록을 사용합니다. */
    #communityPage[data-page="my"] .community-profile {
        margin: 0 0 var(--fm-space-5);
        border: 1px solid var(--fm-color-border);
        border-radius: var(--fm-radius-medium);
        overflow: hidden;
    }

    #communityPage[data-page="my"] .community-profile-cover {
        height: 80px;
    }

    #communityPage[data-page="my"] .community-profile-info {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: var(--fm-space-4);
        padding: 0 var(--fm-space-4) var(--fm-space-4);
    }

    #communityPage[data-page="my"] .community-profile-avatar {
        width: 64px;
        height: 64px;
        margin-top: -24px;
        font-size: 24px;
    }

    #communityPage[data-page="my"] .community-profile-identity {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--fm-space-3);
        min-width: 0;
        padding-top: var(--fm-space-2);
    }

    #communityPage[data-page="my"] .community-profile-identity h1 {
        display: block;
        flex: 1;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 20px;
    }

    #communityPage[data-page="my"] #communityProfileEdit {
        flex: 0 0 auto;
        width: auto;
        min-height: 36px;
    }

    #communityPage[data-page="my"] .community-profile-stats {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
        padding-top: var(--fm-space-4);
        border-top: 1px solid var(--fm-color-border);
    }

    #communityPage[data-page="my"] .community-profile-stats > div {
        min-width: 0;
        padding: 0 var(--fm-space-2);
    }

    #communityPage[data-page="my"] .community-profile-stats dd {
        margin-bottom: var(--fm-space-1);
        font-size: 20px;
    }

    #communityPage[data-page="my"] .community-table tbody tr {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #communityPage[data-page="my"] .community-table-actions {
        display: none !important;
    }

    #communityPage[data-page="my"] .community-category {
        text-align: left;
    }

    /* 상세 작성자 정보와 반응 영역을 분리하고 좋아요·댓글을 같은 행에 표시합니다. */
    #communityPage[data-page="post"] .community-author {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: var(--fm-space-3);
    }

    #communityPage[data-page="post"] .community-author > div:not(.community-reactions) {
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--fm-space-1);
    }

    #communityPage[data-page="post"] .community-author .community-reactions {
        grid-column: 1 / -1;
        width: auto;
        margin: 0;
        align-items: center;
        gap: var(--fm-space-4);
    }

    #communityPage[data-page="post"] .community-reactions .community-reaction,
    #communityPage[data-page="post"] .community-reactions .btn-freemode {
        display: inline-flex;
        width: auto;
        min-height: 44px;
        align-items: center;
        padding: 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .coop-mobile-only {
        display: block;
    }

}
/* 커뮤니티 목록과 작성 화면에 기존 공통 토큰과 버튼을 적용합니다. */
.community-homepage {
    width: 100%;
    max-width: var(--container-width);
    min-width: 0;
    margin: 0 auto;
    padding: 32px 24px;
}

.freemode-ui.community-page {
    width: 100%;
    margin: 0 auto;
    padding: 32px;
    border: 0;
    border-radius: var(--k-radius-md);
    background: var(--k-bg-white);
    color: var(--k-text-body);
    font-family: var(--fm-font-family);
}
.community-page [hidden] {
    display: none !important;
}
.community-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.community-toolbar .btn-freemode {
    min-height: 36px;
}
.community-toolbar [aria-current="page"] {
    font-weight: 700;
    border-bottom: 2px solid currentColor;
}
.community-toolbar input {
    flex: 1;
    min-width: 160px;
}
.community-toolbar select {
    width: auto;
}
.community-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: var(--k-border-light);
    overflow-wrap: anywhere;
}
.community-row h3 {
    margin: 0 0 6px;
}
.community-meta {
    color: var(--k-text-subtle);
    font-size: 13px;
}
.community-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
    padding: 20px 0;
}
.community-form {
    display: grid;
    gap: 16px;
}
.community-form label {
    display: grid;
    gap: var(--k-space-form-label);
}
.community-form textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
}
.community-form input:not([type="file"]), .community-form select {
    width: 100%;
}
.community-page .community-form input[type="file"].sr-only {
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
}
.community-images {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}
.community-images figure {
    max-width: 260px;
    margin: 0;
}
.community-images img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}
/* 회원 목록은 밑줄 탭과 제목 중심 행으로 구성합니다. */
.community-page .list-header-freemode {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.community-page .list-header-freemode p {
    margin: 8px 0 0;
    color: var(--k-text-subtle);
    font-size: 14px;
}
.community-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    border-bottom: var(--k-border-light);
    margin-bottom: 16px;
}
.community-page .community-tabs .btn-freemode {
    width: auto;
    flex-shrink: 0;
    padding: 0 0 14px;
    height: auto;
    min-height: 40px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--k-text-subtle);
}
.community-page .community-tabs [aria-current="page"] {
    color: var(--k-text-body);
    border-bottom-color: var(--k-text-body);
    font-weight: 600;
}
.community-page .community-tabs .btn-freemode:hover:not(:disabled) {
    background: none;
    border-color: transparent;
    color: var(--fm-color-primary);
}
.community-page .community-tabs .btn-freemode[aria-current="page"]:hover:not(:disabled) {
    border-bottom-color: var(--k-text-body);
}
.community-search {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    justify-content: flex-end;
}
.community-page .community-search select.input-freemode,
.community-page .community-search > .select-arrow-wrapper {
    width: 132px;
    flex-shrink: 0;
}
.community-page .community-search-input {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 320px;
}
.community-search-input .input-freemode {
    width: 100%;
    padding-right: 40px;
}
.community-category {
    display: inline-block;
    margin: 0;
    padding: 3px 8px;
    border: 0;
    border-radius: var(--k-radius-sm);
    font-size: 12px;
    color: var(--k-text-subtle);
    white-space: nowrap;
    background: var(--k-bg-gray-light);
    text-align: center;
}
.community-row-summary {
    flex: 1;
    min-width: 0;
}
.community-page .community-row h3 .btn-freemode {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    white-space: normal;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}
.community-excerpt {
    margin: 4px 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--k-text-subtle);
    font-size: 13px;
}
.community-meta {
    margin: 4px 0 0;
}
.community-counts {
    align-self: flex-end;
    font-size: 12px;
    color: var(--k-text-subtle);
    white-space: nowrap;
}
.community-row.is-pinned {
    background: var(--k-bg-gray-light);
    padding: 14px 12px;
    border-radius: var(--k-radius-md);
}
/* 상세 본문과 댓글의 행동을 구분선과 여백으로 구분합니다. */
.community-page .community-author-actions .btn-freemode,
.community-page .community-comment .btn-freemode,
.community-page .btn-freemode.community-report {
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-text-subtle);
}
.community-back {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fm-color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}
.community-back img {
    width: 14px;
    height: 14px;
}
.community-post-heading {
    padding-bottom: 24px;
    border-bottom: var(--k-border-light);
}
.community-post-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 12px 0 20px;
}
.community-post-heading h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.community-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.community-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--k-radius-pill);
    background: var(--k-bg-gray-light);
}
.community-author-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    margin-left: auto;
}
.community-post-body {
    padding: 32px 0;
    min-height: 180px;
}
.community-reactions {
    margin: 0 0 0 auto;
    gap: 16px;
}
.community-reaction {
    padding: 0;
    font-size: 14px;
}
.community-report {
    margin-left: auto;
    order: 2;
}
.community-comments-title {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 8px;
}
.community-comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: var(--k-border-light);
}
.community-comment .community-body {
    padding: 10px 0;
    font-size: 14px;
}
.community-comment .community-toolbar {
    margin: 0;
}
.community-comment-form {
    margin: 20px 0 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.community-comment-form button[type="submit"] {
    justify-self: end;
}
/* 댓글 로그인 안내 버튼의 내용을 가운데 정렬하고 위쪽 댓글 영역과 간격을 둡니다. */
.community-page .community-comment-login {
    align-content: center;
    margin-top: 14px;
}
/* 작성 화면은 공통 입력과 간결한 에디터 도구를 사용합니다. */
.community-compose {
    gap: 24px;
}
.community-compose h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.community-compose label {
    font-size: 14px;
    color: var(--k-text-subtle);
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: start;
    line-height: 1.6;
}
.community-form-actions {
    justify-content: flex-end;
    margin-bottom: 0;
}
.community-compose .note-editor.note-frame {
    border: var(--k-border-light);
    border-radius: var(--k-radius-md);
    overflow: hidden;
}
.community-compose .note-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 8px;
    border-bottom: var(--k-border-light);
    background: var(--k-bg-white);
}
.community-compose .note-toolbar > .note-btn-group {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.community-compose .note-toolbar > .note-btn-group + .note-btn-group {
    position: relative;
    margin-left: 10px;
    padding-left: 11px;
}
.community-compose .note-toolbar > .note-btn-group + .note-btn-group::before {
    content: '|';
    position: absolute;
    left: 0;
    color: var(--fm-color-border-strong);
    font-size: 14px;
}
.community-compose .note-btn {
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--k-text-body);
    font-family: var(--fm-font-family);
}
.community-compose .note-toolbar .note-btn {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 28px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: var(--k-radius-sm);
    font-size: 14px;
    line-height: 20px;
}
.community-compose .note-toolbar .note-btn:hover,
.community-compose .note-toolbar .note-btn.active {
    background: var(--k-bg-gray-light);
}
.community-page .community-compose .note-editor .note-editable {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--k-text-body);
    background: var(--k-bg-white);
}
.community-compose .note-editable img {
    max-width: 100%;
    height: auto;
}
.community-compose .note-statusbar {
    display: none;
}
.community-images:empty {
    display: none;
}
.community-page dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border: var(--k-border-black);
    border-radius: 12px;
    background: var(--k-bg-white);
    color: var(--k-text-body);
    box-shadow: var(--k-shadow-modal);
}
.community-page dialog::backdrop {
    background: var(--k-overlay-dark-25);
}
/* 홈페이지 여백 초기화와 관계없이 마이페이지 모달을 화면 가운데에 배치합니다. */
.community-page[data-page="my"] dialog {
    position: fixed;
    inset: 0;
    margin: auto;
}
/* 목록과 내 활동의 표 및 첫 페이지 공지 행을 구성합니다. */
.community-table-scroll {
    overflow-x: auto;
}
.community-table {
    width: 100%;
    min-width: 620px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}
.community-col-author {
    width: 132px;
}
.community-col-count {
    width: 56px;
}
.community-col-date {
    width: 108px;
}
.community-col-actions {
    width: 64px;
}
.community-table th,
.community-table td {
    padding: 12px 8px;
    border-bottom: var(--k-border-light);
    text-align: center;
    vertical-align: middle;
}
.community-table th {
    text-align: center;
    color: var(--k-text-subtle);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.community-table th:first-child,
.community-table td:first-child {
    padding-left: 4px;
}
.community-table tbody tr:hover {
    background: var(--k-bg-hover);
}
.community-table .community-notice-row {
    background: var(--k-bg-gray-light);
}
.community-page .community-notice-row .community-title-line .btn-freemode {
    font-weight: 600;
}
.community-table-title {
    overflow-wrap: anywhere;
}
.community-title-line,
.community-table-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.community-table-author {
	justify-content: center;
    white-space: nowrap;
}
.community-table-author > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.community-table-author .community-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
}
.community-page .community-title-line .btn-freemode {
    display: block;
    height: auto;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.community-table .community-table-count {
    min-width: 56px;
    text-align: center;
    color: var(--k-text-subtle);
    font-variant-numeric: tabular-nums;
}
.community-table-date {
    color: var(--k-text-subtle);
    white-space: nowrap;
    font-size: 12px;
}
.community-page .community-table-actions .btn-freemode {
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-text-subtle);
    font-size: 12px;
}
.community-table .community-empty {
    padding: 64px 16px;
    text-align: center;
    color: var(--k-text-subtle);
}
.community-category[data-board-code="QNA"] {
    background: var(--k-bg-hover);
}
.community-category[data-board-code="INFO"] {
    background: var(--k-bg-indigo-soft);
}
.community-category[data-board-code="FREE"] {
    background: var(--k-bg-request);
}
/* 상세의 반응 버튼과 댓글은 본문 내부에만 적용합니다. */
.community-page .community-reactions .btn-freemode {
    min-height: 30px;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    color: var(--k-text-subtle);
}
.community-page .community-reactions [aria-pressed="true"] {
    color: var(--k-text-body);
    font-weight: 700;
}
.community-comment-content {
    flex: 1;
    min-width: 0;
}
.community-comment-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.community-comment-author .community-meta {
    margin: 0;
}
.community-comment-form label {
    gap: 8px;
    font-size: 13px;
    color: var(--k-text-subtle);
}
.community-page .community-comment-form textarea.input-freemode {
    min-height: 44px;
    height: 44px;
    padding: 10px 12px;
}
/* 작성 폼은 상단 행동과 좌측 라벨, 우측 입력 영역으로 정렬합니다. */
.community-compose-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: var(--k-border-light);
}
.community-compose-field {
    min-width: 0;
}
.community-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.community-page .community-category-options .btn-freemode {
    min-height: 34px;
    height: 34px;
    padding: 0 20px;
    font-size: 13px;
    border-radius: var(--k-radius-md);
}
.community-page .community-category-options [aria-pressed="true"] {
    border-color: var(--k-text-subtle);
    background: var(--k-bg-gray-light);
    color: var(--k-text-body);
}
.community-compose .note-editor {
    min-width: 0;
}
.community-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 128px;
    padding: 20px;
    border: var(--k-border-light);
    border-style: dashed;
    border-radius: var(--k-radius-md);
    background: var(--k-bg-hover);
    text-align: center;
}
.community-upload > i {
    font-size: 24px;
}
.community-upload p {
    margin: 0;
    font-size: 12px;
}
.community-compose > .community-images {
    margin: 0 0 0 144px;
    font-size: 13px;
}
/* 화면별 시안은 공통 헤더와 메인 버튼 모양을 제외한 본문에만 적용합니다. */
.freemode-ui.community-page[data-page="list"],
.freemode-ui.community-page[data-page="my"] {
    overflow: hidden;
}
.community-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 40px;
    margin: -32px -40px 28px;
    padding: 32px 40px;
    background: var(--ref-bg-doc);
}
.community-feature-copy .community-eyebrow {
    margin: 0 0 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
}
.community-feature h2,
.community-page[data-page="post"] .community-post-heading h2,
.community-profile-identity h1 {
    font-family: var(--fm-font-family);
    font-weight: 500;
}
.community-feature h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.45;
    letter-spacing: -0.04em;
}
.community-feature-copy > p {
    max-width: 380px;
    margin: 0 0 20px;
    color: var(--k-text-subtle);
    font-size: 13px;
    line-height: 1.8;
}
.community-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--k-text-body);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.community-feature-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.4;
    object-fit: cover;
    filter: grayscale(1);
}
.community-list-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 12px;
    border-bottom: var(--k-border-light);
    padding-bottom: 16px;
}
.community-list-controls .community-tabs {
    flex: 1;
    gap: 20px;
    margin: 0;
    border: 0;
}
.community-list-controls .community-tabs .btn-freemode {
    padding-bottom: 6px;
    min-height: 36px;
    font-size: 13px;
}
.community-list-controls #communityHeader {
    order: 3;
    margin: 0;
}
.community-list-controls .community-search {
    order: 2;
    margin: 0;
}
.community-list-controls .community-search-input {
    width: 208px;
}
/* 공통 페이지 번호는 가운데에 두고 목록 글쓰기는 오른쪽 끝에 배치합니다. */
.community-page[data-page="list"] .list-pagination-footer > .community-write {
    grid-column: 3;
    justify-self: end;
}
.community-page[data-page="list"] .community-table th,
.community-page[data-page="my"] .community-table th {
    background: none;
}
.community-page[data-page="list"] .community-table td,
.community-page[data-page="my"] .community-table td {
    padding-top: 18px;
    padding-bottom: 18px;
}
.community-page[data-page="list"] .community-table th:first-child,
.community-page[data-page="my"] .community-table th:first-child {
    text-align: center;
}
.community-page[data-page="list"] .community-table-author .community-avatar {
    display: none;
}
.community-page[data-page="list"] .community-title-line,
.community-page[data-page="my"] .community-title-line {
    flex-wrap: wrap;
    gap: 6px 14px;
    text-align: left;
}
/* 게시글 목록의 카테고리 너비를 고정하여 제목 시작 위치를 맞춥니다. */
.community-page[data-page="list"] .community-title-line,
.community-page[data-page="my"] .community-title-line {
    flex-wrap: nowrap;
}
.community-page[data-page="list"] .community-title-line > .community-category,
.community-page[data-page="my"] .community-title-line > .community-category {
    box-sizing: border-box;
    flex: 0 0 72px;
}
.community-page[data-page="my"] .community-title-line > .community-category {
    text-align: center;
}
.community-page[data-page="list"] .community-category:not([data-board-code="NOTICE"]),
.community-page[data-page="my"] .community-category {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 12px;
}
.community-page[data-page="list"] .community-col-author {
    width: 108px;
}
/* 상세는 시안의 읽기 폭과 가로 작성자 정보, 구분선 중심 댓글을 사용합니다. */
.freemode-ui.community-page[data-page="post"] {
    padding: 0px 0px 56px;
}
.community-page[data-page="post"] .community-back {
    margin-bottom: 16px;
}
.community-page[data-page="post"] .community-post-heading {
    padding-bottom: 16px;
}
.community-page[data-page="post"] .community-post-heading > .community-category {
    padding: 0;
    background: none;
}
.community-page[data-page="post"] .community-post-title-row {
    margin: 12px 0 20px;
}
.community-page[data-page="post"] .community-post-heading h2 {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: -0.03em;
}
.community-page[data-page="post"] .community-author {
    gap: 12px;
    font-size: 13px;
}
.community-page[data-page="post"] .community-author > .community-avatar {
    width: 32px;
    height: 32px;
}
.community-page[data-page="post"] .community-author > div:not(.community-reactions) {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.community-page[data-page="post"] .community-author .community-meta {
    margin: 0;
    font-size: 12px;
}
.community-page[data-page="post"] .community-post-body {
    padding: 24px 0 32px;
}
.community-page[data-page="post"] .community-comments-title {
    padding-top: 20px;
    border-top: var(--k-border-light);
    font-size: 15px;
}
.community-page[data-page="post"] .community-comment {
    gap: 14px;
    padding: 20px 0;
}
.community-page[data-page="post"] .community-comment-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}
.community-page[data-page="post"] .community-comment-content > .community-body {
    grid-column: 1 / -1;
    grid-row: 2;
}
.community-page[data-page="post"] .community-comment-content > .community-toolbar {
    gap: 12px;
}
/* 마이페이지는 실제 로그인 이름과 기존 API 집계를 사진 커버 아래 배치합니다. */
.community-profile {
    margin: -32px -40px 28px;
}
.community-profile-cover {
    height: 144px;
    background: var(--ref-bg-doc) url("../../images/cooperation/community-workspace.png") center 46% / cover;
    filter: grayscale(1);
}
.community-profile-info {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 40px 8px;
}
.community-profile-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    margin-top: -32px;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--k-bg-white);
    border-radius: var(--k-radius-pill);
    background: var(--k-bg-gray-light);
    color: var(--k-text-subtle);
    font-size: 36px;
}
.community-profile-identity {
    flex: 1;
    padding-top: 20px;
}
/* 공유 프로필 사진은 원형 영역에 맞추고 모달 입력은 공통 라벨 간격을 사용합니다. */
.community-profile-avatar > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.community-profile-preview {
    width: 104px;
    height: 104px;
    border-radius: var(--k-radius-pill);
    object-fit: cover;
}
.community-page .community-form .community-profile-field {
    display: flex;
    flex-direction: column;
    gap: var(--k-space-form-label);
}
.community-page[data-page="my"] .community-profile-field > input[type="file"] {
    align-content: center;
    text-align: center;
}
.community-profile-identity h1 {
    display: inline;
    margin: 0 16px 0 0;
    font-size: 26px;
    overflow-wrap: anywhere;
}
.community-profile-identity a,
.community-profile-identity p {
    color: var(--k-text-subtle);
    font-size: 13px;
}
.community-profile-identity p {
    margin: 12px 0 0;
}
.community-profile-stats {
    display: flex;
    margin: 20px 0 0;
}
.community-profile-stats > div {
    display: flex;
    flex-direction: column;
    min-width: 88px;
    padding: 0 16px;
    text-align: center;
}
.community-profile-stats > div + div {
    border-left: var(--k-border-light);
}
.community-profile-stats dd {
    order: -1;
    margin: 0 0 8px;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}
.community-profile-stats dt {
    color: var(--k-text-subtle);
    font-size: 12px;
    font-weight: 400;
}
/* 글작성과 수정은 같은 안내 영역과 가로 기본 정보, 전체 폭 본문을 적용합니다. */
.freemode-ui.community-page:is([data-page="write"], [data-page="edit"]) {
    padding: 0px 0px 40px;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose {
    margin: 0 auto;
    gap: 24px;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose > .community-back {
    justify-self: start;
    margin: 0 0 0 -24px;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose-heading {
    display: block;
    padding: 0 0 4px;
    border: 0;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose-heading h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose-heading p {
    margin: 0;
    color: var(--k-text-subtle);
    font-size: 14px;
    line-height: 1.7;
}
.community-compose-basics {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 48px;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose label {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 36px;
    row-gap: 8px;
    align-items: center;
    color: var(--k-text-body);
    font-weight: 600;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose label > * {
    font-weight: 400;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose label.community-compose-body {
    grid-template-columns: minmax(0, 1fr);
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose .select-arrow-wrapper {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose .note-editor.note-frame {
    border-radius: 0;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-upload {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-upload > p {
    margin-left: auto;
    color: var(--k-text-gray);
    font-family: var(--fm-font-family);
    font-size: var(--fm-font-size-caption);
    font-weight: 400;
    line-height: 1.5;
}
.community-upload-empty {
    color: var(--k-text-subtle);
    font-size: 13px;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-compose > .community-images {
    margin: 0;
}
.community-page:is([data-page="write"], [data-page="edit"]) .community-form-actions {
    margin-top: 4px;
    justify-content: flex-end;
}
@media (max-width: 1279px) {
    .community-list-controls .community-tabs {
        flex-basis: 100%;
    }
    .community-list-controls .community-search {
        flex: 1;
        justify-content: flex-start;
    }
    .community-profile-info {
        flex-wrap: wrap;
    }
    .community-profile-stats {
        margin-left: auto;
    }
}
@media (max-width: 1023px) {
    .community-page .community-write {
        display: none !important;
    }
    .freemode-ui.community-page {
        padding: 16px;
    }
    .community-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .community-counts {
        width: 100%;
        text-align: right;
    }
    .community-tabs {
        gap: 16px;
    }
    .community-post-heading h2 {
        font-size: 20px;
    }
    .community-search {
        flex-wrap: wrap;
    }
    .community-table {
        min-width: 620px;
    }
    .community-author .community-reactions {
        width: 100%;
        margin-left: 52px;
    }
    .community-compose label {
        grid-template-columns: 1fr;
    }
    .community-compose-heading {
        flex-wrap: wrap;
    }
    .community-compose > .community-images {
        margin-left: 0;
    }
    .freemode-ui.community-page[data-page="list"],
    .freemode-ui.community-page[data-page="my"],
    .freemode-ui.community-page[data-page="post"] {
        padding: 0px;
    }
    .community-feature {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: -20px -20px 24px;
        padding: 28px 20px;
    }
    .community-feature-image {
        max-height: 240px;
    }
    .community-list-controls .community-search {
        flex-basis: 100%;
    }
    .community-page[data-page="post"] .community-post-heading h2 {
        font-size: 26px;
    }
    .community-profile {
        margin: -20px -20px 24px;
    }
    .community-profile-info {
        gap: 16px;
        padding: 0 20px;
    }
    .community-profile-stats {
        flex-basis: 100%;
        justify-content: space-around;
    }
}
