:root {
    --main: #FF6D01;
    --error-color: #FF5757;
    --success-color: #10b981;
}

#base_wrap {
    min-height: 100dvh;
    color: #202124;
    font-family: "Noto Sans KR", sans-serif;
}

main {
    min-height: calc(100dvh - 112px);
}

.inner {
    width: 100%;
    max-width: 1164px;
    padding: 0 16px;
    margin: 0 auto;
}

.empty_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty_title {
    font-size: 14px;
    font-weight: 400;
    color: #5E5E5E;
    text-align: center;
}

/* 웹접근성 컨텐츠 숨김 */
.sr_only {
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    z-index: -1;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
}

.hide {
    display: none !important;
}

.s_logo_wrap {
    display: flex;
}

.s_logo_wrap.center {
    margin: 0 auto;
}

.btn_group {
    display: flex;
    gap: 8px;
}

.btn_group.column {
    flex-direction: column;
}

.btn_default {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 6px;
    border: 1px solid #E5E8EC;
    background-color: #fff;
    color: #5C6573;
}

.btn_round {
    border-radius: 50px;
}

.full {
    width: 100%;
}

.fill_main {
    border-color: var(--main);
    background-color: var(--main);
    color: #fff;
}

.border_main {
    border-color: var(--main);
    color: var(--main);
}

.border_red {
    border-color: var(--error-color);
    color: var(--error-color);
}


.fill_black_gradient {
    border: 0;
    background: linear-gradient(135deg, #2B2420, #191310);
    color: #fff;
}

/* ==================================== 게시글 리스트 (app_www 공용) ==================================== */
.cmt_list {
    list-style: none;
}

.cmt_post_link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.cmt_post_top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.cmt_post_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 카테고리 태그 */
.cmt_tag {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.77px;
    line-height: 1;
}

.cmt_tag.notice {
    background-color: #fff8e1;
    color: #ff6d01;
}

.cmt_tag.qa {
    background-color: #fdf2f8;
    color: #db2777;
}

.cmt_tag.free {
    background-color: #f5f3ff;
    color: #6d28d9;
}

.cmt_tag.case {
    background-color: #dcfce7;
    color: #166534;
}

/* 제목 (한 줄 말줄임) */
.cmt_post_title {
    overflow: hidden;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    color: #222;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmt_post_desc {
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 400;
    color: #5E5E5E;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.cmt_post_title color,
.cmt_post_desc color {
    font-weight: 700;
    color: var(--main);
}

/* 썸네일 */
.cmt_post_thumb {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f2f2f2;
}

.cmt_post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 메타 (작성자 / 좋아요·댓글) */
.cmt_post_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmt_meta_author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cmt_author {
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    color: #5e5e5e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmt_dot {
    width: 1px;
    height: 8px;
    background-color: #d9d9d9;
}

.cmt_time {
    flex-shrink: 0;
    font-size: 12px;
    color: #5e5e5e;
}

.cmt_meta_stat {
    display: flex;
    gap: 8px;
}

.cmt_stat {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #5e5e5e;
}

.cmt_stat i {
    font-size: 16px;
    line-height: 1;
}

/* ==================================== 페이지네이션 (app_www 공용) ==================================== */
.cmt_paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 50px;
}

.cmt_page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    transition: background-color 0.15s;
}

.cmt_page:hover {
    background-color: #f2f2f2;
}

.cmt_page.active {
    background-color: #ebebeb;
}

.cmt_page.arrow {
    font-size: 24px;
    color: #222;
}

/* 더블 화살표(맨앞·맨끝) — remixicon v2.5.0 미지원분 SVG 대체 */
.cmt_page_dbl {
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 767px) {
    .cmt_post_top {
        gap: 14px;
    }

    .cmt_post_thumb {
        width: 46px;
        height: 46px;
    }

    .cmt_paging {
        margin-top: 32px;
    }

    .cmt_page {
        min-width: 34px;
        height: 38px;
        font-size: 14px;
    }

    .cmt_page.arrow {
        font-size: 20px;
    }
}