@charset "utf-8";
/* ============================================================
   팝업레이어(관리자 > 팝업레이어관리) 전용 CSS
   ------------------------------------------------------------
   왜 별도 파일인가
     팝업 마크업(ikbbs/newwin.inc.php)의 스타일은 원래
     theme/basic/css/ik_reset.css 71~80행에만 있었다.
     그런데 ik_reset.css 는 #hd, #wrapper, #ft 에 min-width:1200px 을
     걸고 #hd_pop 폭도 1200px 로 고정해서, Tailwind 신규 화면
     (body.op-tw)에 로드하면 반응형이 통째로 깨진다.
     그래서 theme/basic/head.sub.php 에서 tw 페이지에는 ik_reset 을
     빼두었고, 그 결과 팝업만 무스타일로 노출됐다.
     → 팝업에 필요한 규칙만 여기 뽑아 반응형으로 다시 쓴다.

   tw.css 에 넣지 않은 이유
     tw.css 는 Tailwind 빌드 결과물이라 규칙을 추가하려면 매번
     standalone CLI 로 재빌드해야 한다. 팝업 CSS 는 유틸리티와
     무관한 고정 규칙이므로 평범한 CSS 파일로 분리했다.

   주의
     body.op-tw 의 스코프 리셋(:where(.op-tw) ...)은 명시도가 0 이라
     이 파일의 규칙이 항상 이긴다. 반대로 말하면 리셋이 지워버린
     h2/button/p 모양을 여기서 되살려 줘야 한다.
   ============================================================ */

/* 팝업 컨테이너 : 높이 0 으로 문서 흐름에서 빠져야 한다.
   (이게 없으면 팝업이 페이지 최상단을 차지해 헤더를 밀어낸다) */
#hd_pop {
    position: relative;
    z-index: 5000;
    width: 100%;
    height: 0;
    margin: 0 auto;
}

/* "팝업레이어 알림" 제목 - 스크린리더 전용 */
#hd_pop h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    font-size: 0;
    line-height: 0;
}

/* 개별 팝업 : 관리자가 지정한 top/left(px)가 인라인으로 붙는다 */
.hd_pops {
    position: absolute;
    max-width: 100%;
    border: 1px solid #e9e9e9;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.hd_pops img {
    max-width: 100%;
    height: auto;
}

/* 내용 영역 : width/height 가 인라인으로 붙는다 */
.hd_pops_con {
    max-width: 100%;
    overflow: auto;
}

/* op-tw 리셋이 지운 본문 태그 모양 되살리기
   (팝업 내용은 관리자가 에디터로 입력하므로 .editor-body 가 안 걸린다) */
.hd_pops_con p {
    margin: 0 0 8px;
}

.hd_pops_con ul {
    list-style: disc;
    margin: 0 0 8px;
    padding-left: 20px;
}

.hd_pops_con ol {
    list-style: decimal;
    margin: 0 0 8px;
    padding-left: 20px;
}

.hd_pops_con a {
    color: inherit;
    text-decoration: underline;
}

.hd_pops_con strong,
.hd_pops_con b {
    font-weight: 700;
}

/* 하단 버튼 바 */
.hd_pops_footer {
    position: relative;
    padding: 0;
    background: #000;
    color: #fff;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.hd_pops_footer:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

.hd_pops_footer button {
    padding: 10px;
    border: 0;
    color: #fff;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.hd_pops_footer .hd_pops_reject {
    background: #000;
    text-align: left;
}

.hd_pops_footer .hd_pops_close {
    position: absolute;
    top: 0;
    right: 0;
    background: #393939;
}

/* ------------------------------------------------------------
   좁은 화면 : 관리자가 넣은 left/width(px)를 그대로 쓰면
   화면 밖으로 밀려나므로 가운데 정렬 + 화면폭에 맞춰 축소한다.
   인라인 style 을 이기려면 !important 가 필요하다.
   ------------------------------------------------------------ */
@media (max-width: 640px) {
    .hd_pops {
        left: 50% !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        transform: translateX(-50%);
    }

    .hd_pops_con {
        width: 100% !important;
        max-height: 70vh !important;
        height: auto !important;
    }
}
