/* =====================================================
   ★ 죽은 코드 제거 (2026-07): single_page 스킨(skin/board/single_page)
   공통 스타일 — 이제 사용 안 하는 폐기된 스킨. 지금은 skin/board/basic만
   사용하며, basic의 view.skin.php는 이 .sp-*가 아니라 .bl-view-*를 씀.
   ===================================================== */

   .cms-wrap {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 48px;
    background: #fff;
    border-top: 5px solid #0B5B66;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.cms-header {
    font-weight: 700;
    color: #222;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}
.cms-group {
    margin-bottom: 28px;
}
.cms-group label {
    display: block;

    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
.cms-group input.frm_input {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}
.cms-group input.frm_input:focus {
    border-color: #0B5B66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11,91,102,0.1);
}

/* 에디터 영역 */
.cms-editor-area { width: 100%; }
.cms-editor-area .wr_content { width: 100%; }
.cms-editor-area textarea {
    width: 100%;
    min-height: 500px;
    padding: 16px;

    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    resize: vertical;
}

/* 파일첨부 */
.cms-file-box {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px dashed #ccc;
    margin-bottom: 10px;
}
.cms-file-box input[type=file] { }
.cms-file-del {
    margin-top: 10px;
    color: #c0392b;
}

/* 버튼 */
.cms-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}
.cms-btn-submit {
    background: #0B5B66;
    color: #fff;
    padding: 14px 56px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.cms-btn-submit:hover { background: #084f59; }
.cms-btn-cancel {
    display: inline-flex;
    align-items: center;
    background: #888;
    color: #fff;
    padding: 14px 40px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}
.cms-btn-cancel:hover { background: #666; color: #fff; }


/* ============================================================
   게시판 목록 (gnuboard5 basic 기반, 커스텀 클래스)
   ============================================================ */
.bl-wrap { max-width: 1440px; margin: 0 auto; padding: 20px 0 60px; }

/* ── 타이틀 ── */
.bl-title-wrap { text-align: center; padding-top: 20px; }
.bl-title {
    font-family: var(--t-pre-md-40-font) !important;
    font-size: var(--t-pre-md-40-size);
    font-weight: var(--t-pre-md-40-weight);
    color: var(--text-dark, #222);
    margin: 0 0 20px;
    text-align: center;
}
.bl-title-line {
    width: 66px; height: 4px; margin: 0 auto 70px;
    background: linear-gradient(to right, #666666 0%, #666666 50%, #666666 50%, #666666 100%);
}
.bl-title-line.sp-theme-foundation {
    background: linear-gradient(to right, var(--mega-orange) 0%, var(--mega-orange) 50%, #666666 50%, #666666 100%);
}
.bl-title-line.sp-theme-town,
.bl-title-line.sp-theme-new,
.bl-title-line.sp-theme-work {
    background: linear-gradient(to right, var(--mega-green) 0%, var(--mega-green) 50%, #666666 50%, #666666 100%);
}

/* ── 카테고리 ── */
.bl-cate { margin: 0 0 24px; text-align: center; }
.bl-cate ul { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.bl-cate li { display: inline-block; }
.bl-cate a {
    display: block; padding: 8px 18px; border-radius: 30px; border: 1px solid #d0d1d2;
    color: var(--text-gray); transition: all .15s;
}
.bl-cate a:hover { border-color: var(--point-color); color: var(--point-color); }
.bl-cate.sp-theme-foundation #bo_cate_on {
    background: var(--mega-orange); border-color: var(--mega-orange); color: #fff; font-weight: 700;
}
.bl-cate.sp-theme-town #bo_cate_on,
.bl-cate.sp-theme-new #bo_cate_on,
.bl-cate.sp-theme-work #bo_cate_on {
    background: var(--mega-green); border-color: var(--mega-green); color: #fff; font-weight: 700;
}

/* ── 검색 ── */
.bl-search { display: flex; justify-content: center; margin-bottom: 30px; }
.bl-search form { display: flex; align-items: center; }
.bl-sfl {
    height: 44px; padding: 0 14px; border: 1px solid #d0d1d2; border-right: none;
    border-radius: 4px 0 0 4px; color: var(--text-dark); background: #fff;
}
.bl-stx {
    width: 280px; height: 44px; padding: 0 16px; border: 1px solid #d0d1d2;
    border-left: none; border-right: none;
}
.bl-stx:focus { outline: none; }
.bl-sch-btn {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid #d0d1d2; border-radius: 0 4px 4px 0; background: #fff; color: #888; cursor: pointer;
    transition: background .15s, color .15s;
}
.bl-sch-btn svg { width: 18px; height: 18px; }
.bl-sch-btn:hover { background: var(--bg-light); color: var(--text-dark); }

/* ── 상단 정보 ── */
.bl-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.bl-total { color: var(--text-dark); font-weight: 600; }
.bl-top-btns { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; position: relative; }
.bl-mini-link {
    display: inline-block; color: #999; font-weight: 400;
    border: 1px solid #d0d1d2; border-radius: 4px; padding: 4px 10px; cursor: pointer;
    background: #fff; transition: color .15s, border-color .15s;
}
.bl-mini-link:hover { color: var(--text-dark); border-color: #999; }

.bl-more-opt {
    display: none; position: absolute; top: 34px; right: 0; z-index: 20;
    background: #fff; border: 1px solid #d0d1d2; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
    list-style: none; margin: 0; padding: 0; min-width: 100px;
}
.bl-more-opt li { border-bottom: 1px solid #f0f0f0; }
.bl-more-opt li:last-child { border-bottom: none; }
.bl-more-opt button { width: 100%; padding: 10px 14px; text-align: left; color: var(--text-gray); background: none; border: none; cursor: pointer; }
.bl-more-opt button:hover { color: var(--text-dark); background: var(--bg-light); }

/* ── 테이블 ── */
.bl-table-wrap { overflow-x: auto; }
.bl-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bl-table th {
    padding: 14px 8px; font-weight: 700; color: var(--text-dark);
    border-top: 2px solid var(--text-dark); border-bottom: 1px solid #dedede;
    background: #fff; text-align: center; white-space: nowrap;
}
.bl-table th a { color: inherit; }

.bl-table tbody tr { border-bottom: 1px solid #dedede; transition: background .15s; }
.bl-table tbody tr:hover { background: var(--bg-light); }
.bl-table td { padding: 16px 8px; color: var(--text-gray); text-align: center; vertical-align: middle; }

.bl-th-chk, .bl-td-chk { width: 30px; }
.bl-th-num, .bl-td-num { width: 76px; }
.bl-th-name, .bl-td-name { width: 120px; }
.bl-th-hit, .bl-td-hit { width: 70px; }
.bl-th-date, .bl-td-date { width: 110px; }

.bl-chk-input { width: 16px; height: 16px; cursor: pointer; }

.bl-notice-row { background: var(--bg-light); }
.bl-notice-badge {
    display: inline-block; padding: 4px 12px; background: var(--point-color); color: #fff;
    border-radius: 30px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.bl-notice-badge.sp-theme-foundation { background: var(--mega-orange); }
.bl-notice-badge.sp-theme-town,
.bl-notice-badge.sp-theme-new,
.bl-notice-badge.sp-theme-work { background: var(--mega-green); }

.bl-current { color: var(--point-color); font-weight: 700; }

.bl-td-subject { text-align: left; }
.bl-table td.bl-td-subject { text-align: left; } /* .bl-table td(center)보다 명세를 높여서 확실히 이기게 함 */

/* .bl-tit: 제목 링크 + 아이콘류(N뱃지/hot/file/link/댓글수)가 폭이 좁을 때
   서로 다른 줄로 떨어지던 문제 - inline-flex로 묶어서 한 줄 고정,
   제목이 길면 ellipsis로 말줄임 처리 (아이콘은 항상 보이도록 flex:0 0 auto)
   ※ text-align은 여기(.bl-tit) 자신이 아니라 부모 td에서 결정됨 - 위 .bl-td-subject 규칙 참고 */
.bl-tit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}
.bl-tit a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: var(--text-dark); transition: color .15s;
}
.bl-tit a:hover { color: var(--point-color); }
body.gr-foundation .bl-tit a:hover { color: var(--mega-orange); }
body.gr-town .bl-tit a:hover,
body.gr-new .bl-tit a:hover,
body.gr-work .bl-tit a:hover { color: var(--mega-green); }
.bl-tit i {
    flex: 0 0 auto;
    vertical-align: middle;
}
.bl-cate-tag {
    display: inline-block; margin-right: 6px; padding: 2px 8px; background: var(--bg-light);
    border-radius: 4px; font-size: 12px; color: #999;
}
.bl-new-badge {
    display: inline-block; margin-left: 4px; padding: 1px 5px; background: #eafaf0; color: #23c26f;
    border-radius: 3px; font-size: 10px; font-weight: 700; vertical-align: middle;
    flex: 0 0 auto;
}
.bl-comment-cnt {
    display: inline-block; margin-left: 4px; padding: 0 6px; background: var(--bg-light);
    color: #999; border-radius: 10px; font-size: 11px;
    flex: 0 0 auto;
}
.bl-tit img { vertical-align: middle; margin-left: 4px; height: 13px; width: auto; flex: 0 0 auto; }

.bl-empty { padding: 100px 0 !important; text-align: center; color: #999; }

/* ── 하단 버튼(글쓰기) ── */
.bl-bottom-btns { display: flex; justify-content: flex-end; margin: 20px 4px; }
.bl-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px;
    border-radius: 4px; font-weight: 600; transition: background .2s, color .2s, opacity .2s;
}
.bl-btn-outline { border: 1px solid #d0d1d2; color: var(--text-gray); }
.bl-btn-outline:hover { border-color: var(--text-dark); color: var(--text-dark); }
.bl-btn-fill { color: #fff; background: var(--point-color); }
.bl-btn-fill.sp-theme-foundation { background: var(--mega-orange); }
.bl-btn-fill.sp-theme-town,
.bl-btn-fill.sp-theme-new,
.bl-btn-fill.sp-theme-work { background: var(--mega-green); }
.bl-btn-fill:hover { opacity: .88; color: #fff; }

/* ── 페이지네이션 (그누보드5 표준 클래스 pg_current / pg_page / pg_start / pg_prev / pg_next / pg_end 기준) ── */
.board_page { display: flex; justify-content: center; margin: 44px 0; }
.board_page .pg_wrap,
.board_page nav,
.board_page .pg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.board_page .pg_page,
.board_page .pg_current,
.board_page .pg_start,
.board_page .pg_prev,
.board_page .pg_next,
.board_page .pg_end {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 4px; box-sizing: border-box; transition: background .15s, color .15s, border-color .15s;
    vertical-align: middle; /* 부모가 flex가 아니라 inline span(.pg)이라 baseline 정렬이 적용되던 것 - 텍스트 있는 버튼과 없는(font-size:0) 버튼끼리 기준점이 달라 어긋나 보이던 문제 */
}

/* 페이지 번호 (현재 페이지 아님) - 회색 사각형 */
.board_page .pg_page {
    background: #d9d9d9; color: #888;
}
.board_page .pg_page:hover { background: #c4c4c4; color: #555; }

/* 현재 페이지 - 테마컬러 사각형 */
.board_page .pg_current { color: #fff; background: var(--point-color); font-weight: 700; }
.board_page.sp-theme-foundation .pg_current { background: var(--mega-orange); }
.board_page.sp-theme-town .pg_current,
.board_page.sp-theme-new .pg_current,
.board_page.sp-theme-work .pg_current { background: var(--mega-green); }

/* 처음/이전/다음/끝 - 흰 배경 + 연회색 보더 사각형
   ★ 2026-07: 유니코드 문자(«/‹/›/») 대신 인라인 SVG 마스크 아이콘으로 교체.
   폰트(Pretendard/Paperlogy)에 해당 글리프가 없거나 깨져 보이는 문제 방지.
   히어로 슬라이더 이전/다음 버튼(main.php)과 동일한 chevron 모양 사용. */
.board_page .pg_start,
.board_page .pg_prev,
.board_page .pg_next,
.board_page .pg_end {
    position: relative;
    background: #fff; border: 1px solid #d9d9d9; color: transparent;
    font-size: 0; line-height: 0; overflow: hidden; /* 코어가 넣는 기본 텍스트/아이콘의 줄높이 때문에 박스가 삐져나오던 문제 방지 */
}
.board_page .pg_start::before,
.board_page .pg_prev::before,
.board_page .pg_next::before,
.board_page .pg_end::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: block;
    width: 14px; height: 14px;
    background-color: #999;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
.board_page .pg_prev::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'><path d='M7 1L1 7L7 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'><path d='M7 1L1 7L7 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.board_page .pg_next::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'><path d='M1 1L7 7L1 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'><path d='M1 1L7 7L1 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.board_page .pg_start::before {
    width: 18px;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'><path d='M7 1L1 7L7 13M12 1L6 7L12 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'><path d='M7 1L1 7L7 13M12 1L6 7L12 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.board_page .pg_end::before {
    width: 18px;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'><path d='M1 1L7 7L1 13M6 1L12 7L6 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 14'><path d='M1 1L7 7L1 13M6 1L12 7L6 13' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.board_page .pg_start:hover,
.board_page .pg_prev:hover,
.board_page .pg_next:hover,
.board_page .pg_end:hover { background: #f5f5f5; }

.sound_only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 반응형 ── */

/* ============================================================
   view 스킨 (게시글 읽기) - .bl-view-*
   ============================================================ */

.bl-view-wrap { max-width: 1440px; margin: 0 auto; padding: 20px 0 60px; }

/* 상단 타이틀 영역: .bl-title/.bl-title-line은 list와 공용 재사용 */
.bl-view-cate { text-align: center; padding-top: 20px; margin-bottom: 40px; }

/* 글 제목 */
.bl-view-post-title {
    padding: 20px 0;
    border-top: 2px solid var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

/* 작성자 정보 + 버튼 바 */
.bl-view-meta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; padding-top: 20px; padding-bottom: 20px; margin-bottom: 30px;
    border-top: 1px solid #dedede; border-bottom: 1px solid #dedede;
}
.bl-view-meta-left { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; width: 100%; }
.bl-view-meta-info { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--text-gray); flex: 1 1 auto; }
.bl-view-meta-info strong { font-weight: 700; color: var(--text-dark); }
.bl-view-meta-info span { display: inline-flex; align-items: center; gap: 4px; }
.bl-view-meta-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bl-view-meta-info a { color: var(--text-gray); }
.bl-view-meta-info a:hover { color: var(--point-color); }

/* 본문 */
#bo_v_img { margin-bottom: 20px; }
.bl-view-content {
    min-height: 160px; padding: 10px 0 40px;
    line-height: 1.8; color: #333;
}
.bl-view-content img { max-width: 100%; height: auto; }
.bl-view-content table { max-width: 100%; border-collapse: collapse; }

/* 추천/비추천 */
#bo_v_act { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bo_v_good, .bo_v_nogood {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border: 1px solid #d0d1d2; border-radius: 4px;
    color: var(--text-gray); text-decoration: none; transition: border-color .15s, color .15s;
}
.bo_v_good:hover, .bo_v_nogood:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* 첨부파일 / 관련링크 */
.bl-view-files {
    list-style: none; margin: 0; padding: 16px 20px; background: var(--bg-light); border-radius: 6px;
}
.bl-view-files li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid #e5e5e5; color: var(--text-gray);
}
.bl-view-files li:last-child { border-bottom: none; }
.bl-view-files a { color: var(--text-dark); text-decoration: none; }
.bl-view-files a:hover { color: var(--point-color); }
.bl-view-file-cnt { color: #999; }

/* ★ 2026-07: 이전글/다음글 + 관리버튼(목록/글쓰기/수정/삭제/복사/이동)을
   한 줄에 배치 (좌: 이전/다음글, 우: 관리버튼). 댓글/답글/스크랩/옵션드롭다운 제거. */
.bl-view-bottom-bar {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #dedede;
}
.bl-view-nb { flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; }
.bl-view-nb li {
    display: flex; align-items: center; gap: 16px; padding: 10px 0;
}
.bl-view-nb-tit { flex: 0 0 auto; font-weight: 600; color: var(--text-dark); }
.bl-view-nb li a {
    flex: 1; color: var(--text-gray); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bl-view-nb li a:hover { color: var(--point-color); }
.bl-view-nb-date { flex: 0 0 auto; color: #999; }

.bl-view-actions {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.bl-view-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #d0d1d2;
    border-radius: 4px;
    color: var(--text-gray); background: #fff; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.bl-view-action-btn:hover { background: var(--bg-light); color: var(--text-dark); border-color: #999; }


/* ============================================================
   write 스킨 - 누락 3종 보강
   ============================================================ */

.cms-page-wrap { max-width: 1440px; margin: 0 auto; padding: 20px 0 60px; }
.cms-title-wrap { text-align: center; padding-top: 20px; margin-bottom: 30px; }
.cms-option-list {
    display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
    list-style: none; margin: 0; padding: 0;
}
.cms-option-list li label {
    display: flex; align-items: center; gap: 6px; color: var(--text-gray); cursor: pointer;
}

/* ── 팝업존 노출 on/off 슬라이드 스위치 (2026-07 수정: 텍스트뱃지 → 슬라이드 스위치) ── */
.bl-popup-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}
.bl-popup-switch-label {
    font-size: 16px;
    color: var(--text-gray);
}
.bl-popup-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    border-radius: 999px;
    background: #d0d1d2;
    transition: background .2s;
    vertical-align: middle;
}
.bl-popup-switch.is-on { background: #119b71; }
.bl-popup-switch-knob {
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: left .2s;
}
.bl-popup-switch.is-on .bl-popup-switch-knob { left: 22px; }

/* ── 반응형 ── */