@charset "utf-8";
/* =========================================================
 * 서브 페이지 공통 상단(헤드) 이미지 — theme/custom/inc/sub_head.php 의 cs_sub_head()
 * 이미지 : img/sub_head_pc.webp 1920x200 / sub_head_mo.webp 750x240 (사이트 전체 한 장)
 * 높이 PC 197(레퍼런스와 같음) / 1023px 이하 120 고정 — 이미지가 없어도 같은 높이의 어두운 바탕 유지
 * PC : 이미지 원본 크기 그대로(cover, 위쪽 가운데 기준). 화면이 이미지보다 좁으면 양옆만 잘리고, 넓을 때만 커짐. 덮는 흐림 없음
 *      권장 원본 2560x197 → 2560 이하 모든 화면에서 확대 없음
 * 색은 tokens.css 변수만 사용
 * ========================================================= */
/* ▼ 1023px 이하(모바일) 이미지 띠 켜기/끄기 — 이 두 값만 바꾸면 모든 서브 페이지에 반영
 *   켜기(지금) : --sub-head-mo-h: 120px;                  --sub-head-mo-img: block;
 *   끄기(레퍼런스와 같음, 헤더 50px 바로 아래 본문) : --sub-head-mo-h: var(--gh-mo-h, 50px); --sub-head-mo-img: none; */
:root { --sub-head-mo-h: var(--gh-mo-h, 50px); --sub-head-mo-img: none; } /* 2026-11-06 사용자 결정: 끔(공식과 동일) */

.cs-sub-head { position: relative; display: block; height: 197px; background: var(--c-bg-panel, #171717); overflow: hidden; }
.cs-sub-head .lc-visual-slot { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
.cs-sub-head .lc-visual-slot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cs-sub-head::after { content: none; }
.cs-sub-head .slot.is-empty { background: color-mix(in srgb, var(--c-bg-panel, #171717), #fff 4%); }
.cs-sub-head .slot.is-empty::after { align-items: flex-end; padding: 0 16px 22px; z-index: 1; }

/* 게시판 스킨 밖의 일반 서브 페이지(통합검색·새 글·FAQ·1:1 문의·내용 등) : #sub_wrap 바로 아래에 둠
   → 헤더 뒤로 들어가게 위 여백 제거, #sub_wrap 좌우 여백(20px)만큼 꽉 채움 */
#sub_wrap:has(> .cs-sub-head) { padding-top: 0; }
#sub_wrap > .cs-sub-head { margin: 0 -20px 55px; }
/* 내용(content) 페이지 관리자 '내용 수정' 버튼 : 상단 이미지를 밀어내지 않게 이미지 위 오른쪽에 띄움 */
#sub_wrap:has(> .cs-sub-head) { position: relative; }
#sub_wrap:has(> .cs-sub-head) > .ctt_admin { position: absolute; top: calc(var(--gh-top-h, 57px) + var(--gh-bar-h, 58px) + 12px); right: 20px; z-index: 3; margin: 0; }

@media (max-width: 1023px) {
    .lc-visual.cs-sub-head { height: var(--sub-head-mo-h, 120px); }
    .lc-visual.cs-sub-head .lc-visual-slot { display: var(--sub-head-mo-img, block); }
    .cs-sub-head .lc-visual-slot img { object-position: center; }
    .lc-visual.cs-sub-head::after { display: var(--sub-head-mo-img, block); content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(180deg, transparent, var(--c-bg-panel, #171717)); pointer-events: none; }
    .cs-sub-head .slot.is-empty::after { padding-bottom: 14px; font-size: 10px; }
    #sub_wrap > .cs-sub-head { margin-bottom: 30px; }
    #sub_wrap:has(> .cs-sub-head) > .ctt_admin { top: calc(var(--gh-mo-h, 50px) + 8px); right: 16px; }
}
