@charset "utf-8";

/* === IGE Landing Editorial Theme ===
   컬러: 틸 #0d7680, 앰버 #e57a00
   폰트: Noto Sans KR (사이트 기본 로드)
*/

:root {
    --ige-teal: #0d7680;
    --ige-teal-light: rgba(13, 118, 128, 0.08);
    --ige-teal-mid: rgba(13, 118, 128, 0.15);
    --ige-amber: #e57a00;
    --ige-amber-light: rgba(229, 122, 0, 0.08);
    --ige-text: #2c3340;
    --ige-text-dim: rgba(44, 51, 64, 0.5);
    --ige-text-light: rgba(44, 51, 64, 0.35);
    --ige-border: rgba(44, 51, 64, 0.08);
    --ige-radius: 8px;
}

/* ===== 목록 페이지 ===== */

#bo_list { position: relative; margin-bottom: 20px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }

/* 에디토리얼 헤더 */
/* 게시판 제목 숨김 — 헤더에 통합 */
#container #container_title { display: none !important; }

.ige-landing-header {
    padding: 16px 0 12px;
    border-bottom: 2px solid var(--ige-teal);
    margin-bottom: 8px;
}
.ige-landing-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ige-text);
    line-height: 1.4;
}

/* 카드 컨테이너 */
.ige-landing-cards { padding: 8px 0 40px; overflow: hidden; }

/* 카드 */
.ige-landing-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ige-border);
    transition: background 0.2s;
    align-items: flex-start;
}
.ige-landing-card:hover {
    background: var(--ige-teal-light);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--ige-radius);
}
.ige-landing-card:last-child { border-bottom: none; }

/* STEP CSS 제거 (2026-04-14) — 카테고리·주 뱃지로 대체 */

/* 섬네일 */
.ige-card-img {
    flex-shrink: 0;
    width: 160px;
    height: 110px;
    border-radius: var(--ige-radius);
    overflow: hidden;
    background: #f0ede8;
}
.ige-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 카드 본문 */
.ige-card-body { flex: 1; min-width: 0; }
/* 기본 .ige-card-cat은 아래 "카드 뱃지" 섹션에서 오버라이드됨 (2026-04-14) */
.ige-card-link { color: inherit; text-decoration: none; display: block; }
.ige-card-link:hover { text-decoration: none; }
.ige-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ige-text);
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ige-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ige-text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
}
.ige-card-meta {
    font-size: 11px;
    color: var(--ige-text-light);
    display: flex;
    gap: 12px;
}
.ige-card-meta i { margin-right: 3px; }

/* ===== 본문 페이지 ===== */

/* STEP 배지 제거 (2026-04-14) — ige-view-badges로 대체 */

/* 제목 */
.ige-editorial #bo_v_title .bo_v_tit {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--ige-text);
    line-height: 1.3;
    margin-top: 4px;
    word-break: break-all;
}

/* 메타 정보 */
.ige-art-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--ige-text-dim);
    padding: 12px 0 16px;
    border-bottom: 2px solid var(--ige-teal);
    margin-bottom: 20px;
}
.ige-art-meta i { margin-right: 4px; }
.ige-art-meta a { color: var(--ige-text-dim); }

/* === 본문 콘텐츠 자동 스타일링 === */
.ige-content-body { line-height: 1.7; color: var(--ige-text); }

/* 소제목 pill: MsoNormal 내 볼드, 또는 p > b 첫 번째 자식 */
.ige-content-body p.MsoNormal > b:first-child,
.ige-content-body p.MsoNormal > span > b:first-child {
    display: inline-block;
    background: var(--ige-teal) !important;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px !important;
    margin: 20px 0 8px;
    line-height: 1.5;
}

/* 리스트 항목 정리 */
.ige-content-body .MsoListParagraphCxSpFirst,
.ige-content-body .MsoListParagraphCxSpMiddle,
.ige-content-body .MsoListParagraphCxSpLast,
.ige-content-body .MsoListParagraph {
    margin-left: 20px !important;
    text-indent: 0 !important;
    padding: 3px 0;
    line-height: 1.7;
    font-size: 14px !important;
    color: var(--ige-text);
}

/* 이미지 반응형 */
.ige-content-body img { max-width: 100%; height: auto; }

/* === 삽입 테이블 (ige-info-table) === */
.ige-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 24px;
    font-size: 13px;
    border: 1px solid var(--ige-teal-mid);
    border-radius: var(--ige-radius);
    overflow: hidden;
}
.ige-info-table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 12px;
    background: var(--ige-teal-mid);
    color: var(--ige-text);
    border: 1px solid rgba(13, 118, 128, 0.2);
}
.ige-info-table td {
    padding: 10px 14px;
    border: 1px solid #eee;
    color: var(--ige-text);
    line-height: 1.5;
}
.ige-info-table tr:nth-child(even) td {
    background: var(--ige-teal-light);
}

/* 콜아웃 박스 */
.ige-callout {
    padding: 16px 20px;
    border-radius: var(--ige-radius);
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
    background: var(--ige-amber-light);
    border-left: 4px solid var(--ige-amber);
    color: var(--ige-text);
}
.ige-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--ige-amber);
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ===== 공통 (mt_story 기반 유지) ===== */

/* 목록 버튼 */
#bo_btn_top { margin: 10px 0; }
#bo_btn_top:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_list_total { float: left; line-height: 34px; font-size: 0.92em; color: #4e546f; }
.btn_bo_user { display: flex; align-items: center; gap: 4px; float: right; margin: 0; padding: 0; list-style: none; }
.btn_bo_user li { width: auto; text-align: center; }
.btn_bo_user > li:first-child { flex: 1; min-width: 200px; }
.btn_bo_user > li { position: relative; }
.bo_fx { margin-bottom: 5px; float: right; zoom: 1; }
.bo_fx:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_fx ul { margin: 0; padding: 0; list-style: none; }

/* 체크박스 */
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden; }
.chk_box { position: relative; }
.chk_box input[type="checkbox"] + label { position: relative; color: #676e70; }
.chk_box input[type="checkbox"] + label span { float: left; width: 15px; height: 15px; display: block; background: #fff; border: 1px solid #d0d4df; border-radius: 3px; }
.chk_box input[type="checkbox"]:checked + label span { background: url(./img/chk.png) no-repeat 50% 50% var(--ige-teal); border-color: var(--ige-teal); border-radius: 3px; }

/* 카테고리 */
#bo_cate { margin: 25px 0; }
#bo_cate h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_cate ul { zoom: 1; }
#bo_cate ul:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_cate li { display: inline-block; padding: 2px; }
#bo_cate a { display: block; line-height: 28px; padding: 5px 15px; border-radius: 30px; border: 1px solid #d6e9ff; color: #6794d3; }
#bo_cate a:focus, #bo_cate a:hover { text-decoration: none; background: var(--ige-teal); color: #fff; }
#bo_cate #bo_cate_on { background: var(--ige-teal); color: #fff; font-weight: bold; border: 1px solid var(--ige-teal); }

/* 더보기 옵션 */
.more_opt { display: none; position: absolute; top: 45px; right: 0; background: #fff; border: 1px solid #b8bfc4; z-index: 999; }
.more_opt:before { content: ""; position: absolute; top: -8px; right: 13px; width: 0; height: 0; border-style: solid; border-width: 0 6px 8px 6px; border-color: transparent transparent #b8bfc4 transparent; }
.more_opt:after { content: ""; position: absolute; top: -6px; right: 13px; width: 0; height: 0; border-style: solid; border-width: 0 6px 8px 6px; border-color: transparent transparent #fff transparent; }
.more_opt li { border-bottom: 1px solid #f1f1f1; padding: 10px; float: inherit; width: 90px; margin: 0; color: #6b757c; text-align: left; }
.more_opt li:last-child { border-bottom: 0; }
.more_opt li button, .more_opt li a { width: 100%; border: 0; background: #fff; color: #6b757c; }
.more_opt li:hover a, .more_opt li:hover button { color: #000; }
.more_opt li i { float: right; line-height: 20px; }

/* 검색 */
.bo_sch_wrap { display: none; width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 999; }
.bo_sch { position: absolute; top: 50%; left: 50%; background: #fff; text-align: left; width: 330px; max-height: 300px; margin-left: -125px; margin-top: -180px; overflow-y: auto; border-radius: 5px; box-shadow: 1px 1px 18px rgba(0,0,0,0.2); border: 1px solid #dde7e9; }
.bo_sch:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_sch h3 { padding: 15px; border-bottom: 1px solid #e8e8e8; }
.bo_sch form { padding: 15px; display: block; }
.bo_sch select { border: 0; width: 100%; height: 40px; border: 1px solid #d0d3db; border-radius: 2px; }
.bo_sch .sch_bar { display: inline-block; width: 100%; clear: both; margin-top: 15px; border: 1px solid #d0d3db; border-radius: 2px; }
.bo_sch .sch_input { width: 250px; height: 38px; border: 0; padding: 0; background-color: transparent; float: left; }
.bo_sch .sch_btn { height: 38px; float: right; color: #656565; background: none; border: 0; width: 40px; font-size: 15px; }
.bo_sch .bo_sch_cls { position: absolute; right: 0; top: 0; color: #b5b8bb; border: 0; padding: 12px 15px; font-size: 16px; background: #fff; }
.bo_sch_bg { background: #000; background: rgba(0,0,0,0.1); width: 100%; height: 100%; }

/* 본문 공통 */
#bo_v { margin-bottom: 20px; background: #fff; box-sizing: border-box; }
#bo_v_title { }
.bo_v_cate { display: inline-block; line-height: 20px; background: var(--ige-teal-light); color: var(--ige-teal); padding: 0 10px; border-radius: 3px; }
#bo_v_info { margin: 0; border-bottom: 1px solid #f1f1f1; color: #666; }
#bo_v_info:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_info h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }

#bo_v_atc { min-height: 200px; }
#bo_v_atc_title { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_v_img { width: 100%; overflow: hidden; }
#bo_v_img img { margin-bottom: 20px; max-width: 100%; height: auto; }
#bo_v_con { margin: 10px 0 30px; width: 100%; line-height: 1.7em; min-height: 200px; word-break: break-all; overflow: hidden; }
#bo_v_con a { color: #000; text-decoration: underline; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 추천 */
#bo_v_act { margin-bottom: 30px; text-align: center; }
#bo_v_act .bo_v_act_gng { position: relative; }
#bo_v_act a { margin-right: 5px; vertical-align: middle; color: #4a5158; }
.bo_v_good, .bo_v_nogood { display: inline-block; border: 1px solid #dedede; width: 70px; line-height: 46px; border-radius: 30px; }
#bo_v_act_good, #bo_v_act_nogood { display: none; position: absolute; top: 30px; left: 0; z-index: 9999; padding: 10px 0; width: 165px; background: #ff3061; color: #fff; text-align: center; }

/* 이전/다음글 */
.bo_v_nb { position: relative; margin: 20px 0; clear: both; text-align: left; list-style: none; padding: 0; }
.bo_v_nb:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_v_nb li { border-top: 1px solid #f1f1f1; padding: 13px; }
.bo_v_nb li:last-child { border-bottom: 1px solid #f1f1f1; }
.bo_v_nb li:hover { background: #f6f6f6; }
.bo_v_nb li i { font-size: 13px; color: #b3b3b3; }
.bo_v_nb .nb_tit { display: inline-block; padding-right: 20px; color: #b3b3b3; }
.bo_v_nb .nb_date { float: right; color: #b3b3b3; }

/* 첨부/링크 */
.board-view-filelink ul { margin: 0; list-style: none; padding: 0; }
.board-view-filelink li { padding: 15px; position: relative; margin: 10px 0; border: 1px solid #dfdfdf; border-radius: 5px; box-shadow: 1px 1px 5px 0px hsl(232, 36%, 96%); }
.board-view-filelink a { text-decoration: none; color: #000; }
.board-view-filelink a:hover { text-decoration: underline; color: var(--ige-teal); }

/* SNS */
#bo_v_share { padding: 20px 0; }
#bo_v_share:after { display: block; visibility: hidden; clear: both; content: ""; }

/* board-like */
.board-like { text-align: center; margin: 20px 0; padding: 20px 0; border-top: 1px solid #f1f1f1; }

/* 버튼 */
.bo_v_com { padding: 0; list-style: none; float: right; margin: 0; }
.bo_v_com > li { float: left; margin-left: 5px; position: relative; }
.btn_b01 { display: inline-block; border: 1px solid #d0d4df; border-radius: 3px; height: 34px; line-height: 34px; width: 34px; text-align: center; color: #6b757c; }
.btn_b01:hover { border-color: var(--ige-teal); color: var(--ige-teal); text-decoration: none; }

/* 댓글 */
.cmt_btn { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; font-weight: bold; margin: 30px 0 0; padding: 0 0 15px; }
.cmt_btn span.total { position: relative; display: inline-block; margin-right: 5px; font-size: 1em; color: var(--ige-teal); }
.cmt_btn span.total:after { position: absolute; bottom: -17px; left: 0; display: inline-block; background: var(--ige-teal); content: ""; width: 100%; height: 2px; }
#bo_vc { }
#bo_vc h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_vc article { margin: 20px 0; position: relative; border-bottom: 1px solid #f0f0f0; }
#bo_vc article:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_vc article .pf_img { float: left; margin-right: 10px; }
#bo_vc article .pf_img img { border-radius: 50%; width: 50px; height: 50px; }
#bo_vc article .cm_wrap { float: left; max-width: 870px; width: 90%; }
#bo_vc header { position: relative; width: 100%; }
#bo_vc .cmt_contents { line-height: 1.8em; padding: 0 0 20px; }
#bo_vc_empty { margin: 0; padding: 80px 0 !important; color: #777; text-align: center; }

.bo_vc_w { position: relative; margin: 10px 0; display: block; }
.bo_vc_w:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_vc_w h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.bo_vc_w textarea { border: 1px solid #ccc; background: #fff; color: #000; border-radius: 3px; padding: 5px; width: 100%; height: 120px; }
.bo_vc_w .btn_submit { height: 45px; padding: 0 20px; border-radius: 3px; font-weight: bold; font-size: 1.083em; }

/* 빈 데이터 */
.empty_data { padding: 80px 0; text-align: center; color: #777; }

/* form-box — 스킨 재정의 삭제 (2026-04-11). 테마 공통 CSS 적용 */

/* 공지 */
.bo_notice td { background: #fff6fa !important; border-bottom: 1px solid #f8e6ee; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .ige-landing-header { padding: 20px 0 16px; }
    .ige-landing-title { font-size: 20px; }

    .ige-landing-card { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
    /* STEP 모바일 CSS 제거 (2026-04-14) */
    .ige-card-img { width: 100%; height: 180px; }
    .ige-card-body h3 { font-size: 15px; }

    .ige-editorial #bo_v_title .bo_v_tit { font-size: 20px; }
    .ige-art-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; }

    .ige-info-table { font-size: 12px; }
    .ige-info-table th, .ige-info-table td { padding: 8px 10px; }

    .form-box-group { flex-direction: column; }
}

@media (max-width: 480px) {
    .ige-landing-title { font-size: 18px; }
    .ige-card-img { height: 140px; }
    .ige-info-table { font-size: 11px; display: block; overflow-x: auto; }
    .ige-info-table th, .ige-info-table td { padding: 6px 8px; white-space: nowrap; }
}

/* ===== 2026-04-14: 카테고리·주 필터 칩 + 뱃지 (Option D) ===== */

/* 신규 추가 변수만 선언 (기존 --ige-teal, --ige-teal-light, --ige-teal-mid, --ige-amber, --ige-amber-light는 재사용) */
:root {
    --ige-green:       #2d7d4f;
    --ige-green-soft:  rgba(45,125,79,0.08);
    --ige-ink-700:     #2a3038;
    --ige-ink-500:     #4a5560;
    --ige-ink-300:     #8892a0;
    --ige-ink-100:     #e5e8ec;
    --ige-bc-bg:       rgba(13,118,128,0.15);
    --ige-bc-fg:       #0d7680;
    --ige-on-bg:       rgba(120,81,169,0.15);
    --ige-on-fg:       #785aa9;
    --ige-common-bg:   rgba(74,85,96,0.1);
    --ige-common-fg:   #4a5560;
}

/* 필터 영역 */
.ige-landing-filters {
    margin: 16px 0 24px;
}
.ige-filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 8px;
    scrollbar-width: thin;
}
.ige-filter-row::-webkit-scrollbar { height: 4px; }
.ige-filter-row::-webkit-scrollbar-thumb { background: var(--ige-ink-300); border-radius: 2px; }
.ige-filter-cat   { margin-bottom: 8px; }
.ige-filter-state { border-top: 1px solid var(--ige-ink-100); padding-top: 8px; }

/* 칩 기본 */
.ige-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--ige-ink-100);
    border-radius: 999px;
    background: #fff;
    color: var(--ige-ink-500);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}
.ige-chip:hover { border-color: var(--ige-teal); color: var(--ige-teal); text-decoration: none; }
.ige-chip.is-active {
    background: var(--ige-teal);
    border-color: var(--ige-teal);
    color: #fff;
}
.ige-chip .chip-count {
    font-size: 11px;
    background: rgba(255,255,255,0.25);
    padding: 1px 6px;
    border-radius: 999px;
    color: inherit;
}
.ige-chip:not(.is-active) .chip-count {
    background: var(--ige-ink-100);
    color: var(--ige-ink-500);
}

/* 카테고리별 활성 색상 */
.ige-chip-amber.is-active   { background: var(--ige-amber);   border-color: var(--ige-amber); color: #fff; }
.ige-chip-green.is-active   { background: var(--ige-green);   border-color: var(--ige-green); color: #fff; }
.ige-chip-ink-700.is-active { background: var(--ige-ink-700); border-color: var(--ige-ink-700); color: #fff; }

/* 주별 활성 색상 */
.ige-chip-bc.is-active     { background: var(--ige-bc-fg);     border-color: var(--ige-bc-fg); color: #fff; }
.ige-chip-on.is-active     { background: var(--ige-on-fg);     border-color: var(--ige-on-fg); color: #fff; }
.ige-chip-common.is-active { background: var(--ige-common-fg); border-color: var(--ige-common-fg); color: #fff; }

/* 빈 결과 안내 */
.ige-filter-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ige-ink-500);
    background: var(--ige-ink-100);
    border-radius: 8px;
    margin: 16px 0;
}

/* ===== 카드 뱃지 (list) ===== */
.ige-card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ige-card-cat,
.ige-card-state {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* 카테고리 뱃지 (soft 배경) — 기존 변수 재사용 */
.ige-card-cat.ige-chip-teal    { background: var(--ige-teal-light);  color: var(--ige-teal); }
.ige-card-cat.ige-chip-amber   { background: var(--ige-amber-light); color: var(--ige-amber); }
.ige-card-cat.ige-chip-green   { background: var(--ige-green-soft);  color: var(--ige-green); }
.ige-card-cat.ige-chip-ink-700 { background: rgba(42,48,56,0.08);    color: var(--ige-ink-700); }

/* 주 뱃지 */
.ige-card-state.ige-chip-bc     { background: var(--ige-bc-bg);     color: var(--ige-bc-fg); }
.ige-card-state.ige-chip-on     { background: var(--ige-on-bg);     color: var(--ige-on-fg); }
.ige-card-state.ige-chip-common { background: var(--ige-common-bg); color: var(--ige-common-fg); }

/* ===== view 페이지 뱃지 ===== */
.ige-view-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ige-view-badges .ige-card-cat,
.ige-view-badges .ige-card-state {
    padding: 4px 14px;
    font-size: 13px;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 767px) {
    .ige-landing-filters { margin: 12px 0 16px; }
    .ige-filter-row { padding-bottom: 12px; }
    .ige-chip { padding: 5px 12px; font-size: 12px; }
    .ige-card-badges { flex-wrap: wrap; }
}
