@charset "utf-8";

/* ════════════════════════════════════════════════════════════════════
   신세계 게시판 스킨 — 라이트 테마 (ISSUE LIST 스타일)
   ════════════════════════════════════════════════════════════════════ */

/* ── 페이지 타이틀 / 탑비주얼 / 브레드크럼 숨김 ─────────────────────
   이 스킨은 ISSUE LIST 배너로 대체하므로 기본 제목 요소를 모두 숨김  */
#container_title                    { display: none !important; }
#rb_topvisual                       { display: none !important; }
.main_wording                       { display: none !important; }
.sub_wording                        { display: none !important; }
.rb_bo_top.rb_sub_module            { display: none !important; }
[data-layout^="rb_bo_top_"]        { display: none !important; }
[data-layout="rb_bo_top"]          { display: none !important; }
/* ssg-wrap 외부의 bbs 위젯 잔재 숨김 (.ssg-wrap 안은 영향 없음) */
body > * .rb_layout_box.rb_bbs_box  { visibility: hidden; height: 0; overflow: hidden; }
.bbs_main_wrap_tit                  { display: none !important; }

/* ── CSS 변수 ──────────────────────────────────────────────────────── */
.ssg-wrap {
    --bg:           #ffffff;
    --bg-sub:       #f7f7f7;
    --border:       #e8e8e8;
    --border-str:   #d0d0d0;
    --text:         #1a1a1a;
    --text-sec:     #555555;
    --text-light:   #999999;
    --link:         #1a1a1a;
    --link-hover:   #0f62fe;
    --accent:       #2d3748;
    --hot-bg:       #fff8f0;
    --hot-border:   #ffe0b2;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic',
                 '맑은 고딕', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.ssg-wrap *, .ssg-wrap *::before, .ssg-wrap *::after {
    box-sizing: border-box;
}

/* ── ISSUE LIST 배너 (숨김) ─────────────────────────────────────────── */
.ssg-banner { display: none !important; }

/* ── 툴바 ───────────────────────────────────────────────────────────── */
.ssg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    flex-wrap: wrap;
}

.ssg-toolbar-left,
.ssg-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ssg-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border-str);
    background: #fff;
    color: var(--text-sec);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.ssg-toolbar-btn:hover {
    background: var(--bg-sub);
    border-color: #aaa;
    color: var(--text);
}

.ssg-toolbar-btn-refresh {
    color: #4a6fa5;
    border-color: #4a6fa5;
}

.ssg-toolbar-btn-refresh:hover {
    background: #eef3fb;
    border-color: #0f62fe;
    color: #0f62fe;
}

.ssg-toolbar-btn-primary {
    background: #2d3748;
    color: #fff;
    border-color: #2d3748;
}

.ssg-toolbar-btn-primary:hover {
    background: #1a202c;
    border-color: #1a202c;
    color: #fff;
}

/* 포인트 팝업 */
.ssg-point-popup {
    display: none;
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--border-str);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
}

.ssg-point-popup h6 {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-sec);
}

.ssg-point-popup dl {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    color: var(--text);
}

/* ── 화제 이슈 섹션 ─────────────────────────────────────────────────── */
.ssg-hot-section {
    background: var(--hot-bg);
    border: 1px solid var(--hot-border);
    border-radius: 6px;
    margin: 10px 0;
    padding: 12px 14px;
}

.ssg-hot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.ssg-hot-icon { color: #e65100; font-size: 10px; }
.ssg-hot-label { font-weight: 700; color: #bf360c; }
.ssg-hot-desc  { font-size: 12px; color: var(--text-light); }

.ssg-hot-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.ssg-hot-list::-webkit-scrollbar { display: none; }

.ssg-hot-item {
    display: block;
    min-width: 180px;
    max-width: 220px;
    background: #fff;
    border: 1px solid #ffd0a0;
    border-radius: 6px;
    padding: 10px 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ssg-hot-item:hover {
    border-color: #ff6d00;
    box-shadow: 0 2px 8px rgba(255,109,0,0.15);
}

.ssg-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

.ssg-hot-title {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.ssg-hot-meta {
    font-size: 11px;
    color: #e65100;
}

/* ── 필터 바 ────────────────────────────────────────────────────────── */
.ssg-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 2px solid var(--border-str);
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-sec);
}

.ssg-filterbar-stats strong { color: var(--text); }

.ssg-filterbar-controls {
    display: flex;
    gap: 6px;
}

.ssg-select {
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border-str);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.ssg-select:focus { outline: 2px solid #4a6fa5; }

.ssg-check-all {
    font-size: 12px;
    color: var(--text-sec);
    cursor: pointer;
}

/* ── 썸네일 목록 ────────────────────────────────────────────────────── */
.ssg-list {
    margin: 0;
    padding: 0;
}

.ssg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.ssg-item:hover {
    background: #fafafa;
}

.ssg-item-notice {
    background: #fffdf5;
}

.ssg-item-multi {
    border-left: 3px solid #e65100;
    padding-left: 9px;
}

/* 체크박스 */
.ssg-item-chk {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* 썸네일 */
.ssg-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.ssg-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssg-item-nothumb {
    width: 80px;
    height: 60px;
    background: #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

/* 본문 영역 */
.ssg-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ssg-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.ssg-item-title:hover { color: var(--link-hover); }

.ssg-reply-icon {
    color: var(--text-light);
    margin-right: 3px;
    font-size: 12px;
}

.ssg-comment-cnt {
    color: #0f62fe;
    font-size: 12px;
    margin-left: 3px;
}

.ssg-item-preview {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
    margin-top: 3px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ssg-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
}

.ssg-meta-sep { color: #ccc; }

/* 커뮤니티 태그 (메타 인라인) */
.ssg-item-cat {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.6;
}

/* 시간 */
.ssg-item-time {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
    white-space: nowrap;
    margin-left: 4px;
    min-width: 50px;
    text-align: right;
}

/* 빈 목록 */
.ssg-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

/* ── 커뮤니티 태그 색상 ────────────────────────────────────────────── */
.ssg-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.7;
    white-space: nowrap;
    text-decoration: none;
}

.ssg-tag-green   { background: #e8f5e9; color: #2e7d32; }
.ssg-tag-blue    { background: #e3f2fd; color: #1565c0; }
.ssg-tag-orange  { background: #fff3e0; color: #e65100; }
.ssg-tag-purple  { background: #f3e5f5; color: #6a1b9a; }
.ssg-tag-teal    { background: #e0f2f1; color: #00695c; }
.ssg-tag-red     { background: #ffebee; color: #c62828; }
.ssg-tag-violet  { background: #ede7f6; color: #4527a0; }
.ssg-tag-magenta { background: #fce4ec; color: #880e4f; }
.ssg-tag-cyan    { background: #e0f7fa; color: #006064; }
.ssg-tag-warm    { background: #fbe9e7; color: #bf360c; }
.ssg-tag-gray    { background: #f5f5f5; color: #616161; }
.ssg-tag-notice  { background: #fff9c4; color: #f57f17; }

/* 인라인 태그 (메타 영역) */
.ssg-item-cat.ssg-tag-green   { background: #e8f5e9; color: #2e7d32; }
.ssg-item-cat.ssg-tag-blue    { background: #e3f2fd; color: #1565c0; }
.ssg-item-cat.ssg-tag-orange  { background: #fff3e0; color: #e65100; }
.ssg-item-cat.ssg-tag-purple  { background: #f3e5f5; color: #6a1b9a; }
.ssg-item-cat.ssg-tag-teal    { background: #e0f2f1; color: #00695c; }
.ssg-item-cat.ssg-tag-red     { background: #ffebee; color: #c62828; }
.ssg-item-cat.ssg-tag-violet  { background: #ede7f6; color: #4527a0; }
.ssg-item-cat.ssg-tag-magenta { background: #fce4ec; color: #880e4f; }
.ssg-item-cat.ssg-tag-cyan    { background: #e0f7fa; color: #006064; }
.ssg-item-cat.ssg-tag-warm    { background: #fbe9e7; color: #bf360c; }
.ssg-item-cat.ssg-tag-gray    { background: #f5f5f5; color: #616161; }

/* ── 뱃지 ───────────────────────────────────────────────────────────── */
.ssg-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 3px;
    line-height: 1.5;
}

.ssg-badge-new   { background: #0f62fe; color: #fff; }
.ssg-badge-hot   { background: #da1e28; color: #fff; }
.ssg-badge-multi { background: #ff6d00; color: #fff; }

/* ── 페이지네이션 ───────────────────────────────────────────────────── */
.ssg-pagination {
    padding: 16px 0;
    text-align: center;
    position: relative; /* sound_only 스팬의 위치 기준점 고정 */
}

/* sound_only는 스타일 적용 제외 — 절대위치 은닉 요소를 그대로 유지 */
.ssg-pagination .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    display: block !important;
}

.ssg-pagination a,
.ssg-pagination strong,
.ssg-pagination span:not(.sound_only) {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 0 2px;
    font-size: 13px;
    color: var(--text-sec);
    text-decoration: none;
    background: #fff;
}

.ssg-pagination a:hover {
    background: var(--bg-sub);
    border-color: #aaa;
    color: var(--text);
}

.ssg-pagination strong {
    background: #2d3748;
    color: #fff;
    border-color: #2d3748;
    font-weight: 700;
}

/* ── 하단 버튼 바 ───────────────────────────────────────────────────── */
.ssg-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    gap: 8px;
    flex-wrap: wrap;
}

.ssg-bottom-left,
.ssg-bottom-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── 검색 오버레이 ─────────────────────────────────────────────────── */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9000;
}

.bo_sch_bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border-str);
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.bo_sch h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
}

.bo_sch legend { display: none; }

.sch_bar {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.sch_bar .input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-str);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
}

.sch_bar .input:focus { outline: 2px solid #4a6fa5; }

.sch_btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-str);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sch_btn:hover { background: var(--bg-sub); }
.sch_btn img   { width: 16px; height: 16px; }

.bo_sch_cls {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
}

.bo_sch_cls:hover { opacity: 1; }
.bo_sch_cls img   { width: 14px; height: 14px; }

/* ── View 페이지 / rb_bbs_wrap 공통 (Rebuilder 기본 화이트) ──────────── */
.rb_bbs_wrap .btns_gr_wrap {
    position: fixed;
    top: 128px;
    left: 0;
    width: 100%;
    z-index: 0;
    height: 0;
}

.rb_bbs_wrap .btns_gr_wrap .sub { padding: 0; height: 0; min-height: 0; }

.rb_bbs_wrap .btns_gr_wrap .btns_gr {
    float: right;
    width: 50px;
    margin-right: -100px;
}

.rb_bbs_wrap .btns_gr_wrap .btns_gr .fl_btns {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    display: block;
    line-height: 45px;
    color: #555;
    font-size: 13px;
}

.rb_bbs_wrap .btns_gr_wrap .btns_gr .fl_btns:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.rb_bbs_wrap .btm_btns .fl_btns {
    line-height: 35px;
    display: inline-block;
    height: 35px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    color: #555;
    padding: 0 15px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.rb_bbs_wrap .btm_btns .fl_btns:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.rb_bbs_wrap .rb_bbs_file_for {
    padding: 17px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
    color: #888;
    background-color: #fff;
}

.rb_bbs_wrap .rb_bbs_file_for a { color: #4589ff; word-break: break-all; }
.rb_bbs_wrap .rb_bbs_file_for a:hover { text-decoration: underline; }

.rb_bbs_wrap .prevnext .prevnext_title {
    color: #333;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.rb_bbs_wrap .prevnext .prevnext_title a { color: #333; }
.rb_bbs_wrap .prevnext .prevnext_title a:hover { color: #0f62fe; }

/* ── 반응형 ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ssg-wrap { font-size: 15px; line-height: 1.65; }

    .ssg-banner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
    .ssg-banner-desc { font-size: 13px; }

    .ssg-item-thumb { width: 72px; height: 54px; }
    .ssg-item-nothumb { width: 72px; height: 54px; font-size: 12px; }

    .ssg-item        { gap: 10px; padding: 12px 0; }
    .ssg-item-title  { font-size: 15px; letter-spacing: -0.2px; }
    .ssg-item-preview { font-size: 13px; color: var(--text-sec); }
    .ssg-item-meta   { font-size: 12px; gap: 5px; }
    .ssg-item-time   { font-size: 12px; min-width: 46px; }

    .ssg-hot-item  { min-width: 160px; }
    .ssg-hot-title { font-size: 12px; line-height: 1.5; }

    .ssg-filterbar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ssg-toolbar   { gap: 4px; }
    .ssg-toolbar-btn { height: 32px; padding: 0 12px; font-size: 12px; }

    /* 페이지네이션 탭 간격 확대 (손가락 터치 영역) */
    .ssg-pagination a,
    .ssg-pagination strong,
    .ssg-pagination span:not(.sound_only) {
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .ssg-wrap { font-size: 15px; line-height: 1.7; }

    .ssg-item-thumb,
    .ssg-item-nothumb { display: none; }

    .ssg-hot-section { padding: 10px 12px; }
    .ssg-item        { padding: 10px 0; }
    .ssg-item-title  {
        font-size: 15px;
        font-weight: 600;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        letter-spacing: -0.2px;
    }
    .ssg-item-preview { font-size: 13px; line-height: 1.6; -webkit-line-clamp: 2; }
    .ssg-item-meta    { font-size: 12px; }
    .ssg-item-time    { font-size: 12px; }

    /* 본문 글자 크기 · 줄간격 */
    #bo_v_con,
    .view_content,
    .ar_txt,
    .xe_content {
        font-size: 16px !important;
        line-height: 1.9 !important;
        letter-spacing: -0.1px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 본문 내 제목 태그 */
    #bo_v_con h1, #bo_v_con h2, #bo_v_con h3,
    #bo_v_con h4, #bo_v_con h5, #bo_v_con h6 {
        line-height: 1.5;
        letter-spacing: -0.3px;
        word-break: keep-all;
    }

    /* 본문 단락 */
    #bo_v_con p, .view_content p, .ar_txt p {
        margin-bottom: 1em;
        word-break: keep-all;
    }
}

/* ── 모바일 본문 가독성 (768px 이하) ────────────────────────────────── */
@media (max-width: 768px) {
    #bo_v_con,
    .view_content,
    .ar_txt,
    .xe_content {
        font-size: 15px;
        line-height: 1.85;
        letter-spacing: -0.1px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 본문 내 폰트 크기 강제 오버라이드 방지 */
    #bo_v_con *,
    .view_content *,
    .ar_txt * {
        max-width: 100%;
    }

    /* 글 제목 (view 페이지) */
    #bo_v_tit { font-size: 18px !important; line-height: 1.5; letter-spacing: -0.3px; word-break: keep-all; }

    /* 글 메타 (작성자, 날짜 등) */
    #bo_v_info { font-size: 13px; }
}

/* ── 게시글 본문 미디어 (이미지 · 동영상) ─────────────────────────────── */
#bo_v_con img,
#bo_v_con video,
.view_content img,
.view_content video,
.ar_txt img,
.ar_txt video,
.xe_content img,
.xe_content video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 8px auto;
    border-radius: 4px;
}

/* HTML5 video 플레이어 */
#bo_v_con video,
.view_content video,
.ar_txt video,
.content_video {
    width: 100% !important;
    max-width: 100% !important;
    background: #000;
}

/* YouTube / Vimeo iframe 반응형 래퍼 */
#bo_v_con iframe,
.view_content iframe,
.ar_txt iframe,
.xe_content iframe {
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 8px auto;
    border: none;
    border-radius: 4px;
}

/* ── View 페이지 불필요 요소 숨김 ────────────────────────────────────
   글쓰기/목록 버튼, 이전글/다음글, 댓글 영역 전체 제거              */

/* 우상단 floating 버튼 (목록, 글쓰기) */
.rb_bbs_wrap .btns_gr_wrap          { display: none !important; }

/* 하단 버튼 바 (목록, 스크랩, 글쓰기, 수정/삭제) */
.rb_bbs_wrap .btm_btns              { display: none !important; }
.rb_bbs_wrap #bo_v_btns             { display: none !important; }

/* 추천/비추천 버튼 */
.rb_bbs_wrap #bo_v_act              { display: none !important; }

/* 이전글 / 다음글 */
.rb_bbs_wrap .bo_v_nb               { display: none !important; }

/* 댓글 섹션 전체 (댓글 수, 댓글목록, 등록된 댓글이 없습니다, 0글자, 입력폼) */
#bo_v_com                           { display: none !important; }

/* bo_v_nb + 댓글을 감싼 ul 래퍼 여백 제거 */
.rb_bbs_wrap > ul:has(.bo_v_nb)     { padding: 0 !important; margin: 0 !important; }

/* ── 유사 게시글 목록 ───────────────────────────────────────────────── */
#similar_posts_wrap {
    margin: 18px 0 8px;
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-sub, #f7f7f7);
}
.similar_posts_head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sec, #555);
    background: var(--bg-sub, #f0f0f0);
    border-bottom: 1px solid transparent;
    letter-spacing: -0.3px;
    cursor: pointer;
    user-select: none;
}
.similar_posts_head:hover { background: var(--border, #e8e8e8); }
.sp_count {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light, #999);
}
.sp_arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-light, #999);
    transition: transform 0.2s;
}
/* 기본: 닫힌 상태 */
.similar_posts_list {
    display: none;
}
/* sp_open 클래스가 붙으면 열림 */
#similar_posts_wrap.sp_open .similar_posts_list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border, #e8e8e8);
}
.similar_post_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    border-bottom: 1px solid var(--border, #e8e8e8);
    transition: background 0.15s;
    font-size: 13px;
    line-height: 1.4;
}
.similar_post_item:last-child { border-bottom: none; }
.similar_post_item:hover      { background: var(--bg, #fff); }
.sp_badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.sp_title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text, #1a1a1a);
}
.similar_post_item:hover .sp_title { color: var(--link-hover, #0f62fe); }
.sp_meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light, #999);
    white-space: nowrap;
}
.sp_comment { color: var(--text-sec, #555); font-weight: 600; }

@media (max-width: 600px) {
    .similar_post_item { flex-wrap: wrap; gap: 4px; }
    .sp_title          { flex-basis: 100%; }
    .sp_meta           { flex-basis: 100%; justify-content: flex-end; }
}
