/* V143.58 팝업 여러 개 한꺼번에 */
#homepagePopupLayer.hmp-on.hmp-pc{display:block;padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
#homepagePopupLayer.hmp-pc .hmp-slot{position:absolute;left:24px;top:100px;width:max-content;max-width:calc(100vw - 16px);pointer-events:auto;opacity:0;transition:opacity .18s ease}
#homepagePopupLayer.hmp-pc .hmp-slot.hmp-ready{opacity:1}
#homepagePopupLayer.hmp-pc .hmp-slot .home-popup-card{width:min(var(--popup-width,520px),calc(100vw - 16px));max-height:calc(100dvh - 16px)}
#homepagePopupLayer.hmp-on.hmp-mobile{display:flex;align-items:center;justify-content:center}
#homepagePopupLayer.hmp-mobile .hmp-slot{position:relative;width:100%;display:flex;flex-direction:column;align-items:center}
#homepagePopupLayer.hmp-mobile .hmp-slot:not(:first-child){display:none}
#homepagePopupLayer.hmp-mobile .hmp-slot .home-popup-card{width:min(var(--popup-width,520px),100%)}
.hmp-count{margin-top:10px;padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12.5px;font-weight:700}
.hmp-measure{position:fixed;left:-99999px;top:0;visibility:hidden;pointer-events:none}
.hmp-measure .hmp-slot{position:absolute;left:0;top:0;width:max-content}
.hmp-measure .home-popup-card{width:var(--popup-width,520px)}

/* 관리자 배치 화면 */
.hmp-board{margin:0 0 18px;border:1px solid #e3e1da;border-radius:12px;background:#fff;overflow:hidden}
.hmp-board>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;background:#faf9f6;font-size:15px}
.hmp-board>summary::-webkit-details-marker{display:none}
.hmp-board>summary:before{content:"▸";color:#999;transition:transform .15s}
.hmp-board[open]>summary:before{transform:rotate(90deg)}
.hmp-board>summary .hmp-cnt{padding:3px 10px;border-radius:999px;background:#1f1f1f;color:#fff;font-size:12px;font-weight:700}
.hmp-board>summary small{color:#888;font-size:12.5px;margin-left:auto}
.hmp-board-body{padding:16px 18px 18px}
.hmp-screen{position:relative;width:100%;max-width:900px;margin:0 auto;border:1px solid #d5d5d5;border-radius:8px;background:linear-gradient(#f3f3f0,#e9e8e3);overflow:hidden;touch-action:none;user-select:none}
.hmp-header{position:absolute;left:0;right:0;top:0;height:6%;min-height:14px;background:rgba(255,255,255,.85);border-bottom:1px solid #ddd;font-size:11px;color:#999;display:flex;align-items:center;padding-left:10px}
.hmp-box{position:absolute;border:2px solid #1f1f1f;border-radius:6px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.18);cursor:grab;overflow:hidden;display:flex;align-items:center;justify-content:center}
.hmp-box.is-auto{border-style:dashed;border-color:#8a6414}
.hmp-box.is-drag{cursor:grabbing;box-shadow:0 12px 30px rgba(0,0,0,.3);outline:3px solid rgba(199,154,60,.5)}
.hmp-box img{width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:.92}
.hmp-box span{padding:6px;font-size:11px;font-weight:700;text-align:center;color:#444;word-break:keep-all}
.hmp-box em{position:absolute;left:0;right:0;bottom:0;padding:3px 6px;background:rgba(17,17,17,.78);color:#fff;font-size:11px;font-style:normal;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmp-empty{margin:12px 0 0;font-size:14px;color:#666}
.hmp-tools{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}
.hmp-msg{font-size:13px;color:#17703a;font-weight:600}
.hmp-help{margin:10px 0 0;padding-left:18px;font-size:12.5px;color:#777;line-height:1.7}
#homepagePopupLayer.hmp-on.hmp-pc.hmp-bg{pointer-events:auto}
.hmp-bgset{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 auto 12px;max-width:900px;padding:10px 14px;border:1px solid #ece9e1;border-radius:8px;background:#fcfbf8;font-size:13.5px}
.hmp-bgset b{font-size:14px}
.hmp-bgset label{display:flex;align-items:center;gap:8px;color:#444}
.hmp-bgset input[type=range]{width:140px;accent-color:#1f1f1f}
.hmp-bgset output{min-width:38px;font-weight:700;color:#1f1f1f}
.hmp-bg-none{height:32px;padding:0 12px;border:1px solid #cfcfcf;border-radius:6px;background:#fff;font-size:12.5px;cursor:pointer;font-family:inherit}
.hmp-fake{position:absolute;inset:8% 4% 4%;display:grid;grid-template-columns:repeat(3,1fr);gap:4%}
.hmp-fake i{display:block;border-radius:6px;background:linear-gradient(135deg,#c9a45c,#3b5b7a)}
.hmp-fake i:nth-child(2n){background:linear-gradient(135deg,#6a8f6b,#d7c5a0)}
.hmp-veil{position:absolute;inset:0;pointer-events:none}
/* "오늘 하루 보지 않기" 체크박스와 글자 줄 맞춤 */
html body .home-popup-footer .home-popup-today-label{display:inline-flex!important;align-items:center!important;gap:8px}
html body .home-popup-footer .home-popup-today-label input.home-popup-today-check{position:static!important;top:auto!important;align-self:center!important;margin:0!important;vertical-align:middle!important;width:17px!important;height:17px!important;flex:0 0 17px!important;transform:none!important}
html body .home-popup-footer .home-popup-today-label .home-popup-today-text{line-height:17px!important;display:inline-block!important;margin:0!important;padding:0!important}
/* V1120: 닫기(×) 아이콘을 원 정중앙에 — 글꼴에 따라 어긋나는 × 글자 대신 선 두 개로 그림 */
html body #homepagePopupLayer .home-popup-close{display:block!important;padding:0!important;font-size:0!important;line-height:0!important}
html body #homepagePopupLayer .home-popup-close::before,html body #homepagePopupLayer .home-popup-close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
html body #homepagePopupLayer .home-popup-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
/* V1120: 이미지와 '오늘 하루 보지 않기·닫기' 줄 사이 여백 */
html body .hana-html-popup-card>.home-popup-footer{padding-top:14px!important}


/* Hana nursing admissions: native popup footer styling */
#homepagePopupLayer .home-popup-card.hana-admission-native-footer {
  border-radius:6px;overflow:hidden;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-footer{
  display:flex !important;align-items:center !important;
  justify-content:space-between !important;gap:12px !important;
  background:#f8fafc !important;border-top:1px solid #e6ecf2 !important;
  margin:0 !important;padding:13px 20px !important;
  color:#68778a !important;font-family:"Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;
  font-size:12px !important;font-weight:550 !important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-today-label{
  display:inline-flex !important;align-items:center !important;gap:8px !important;
  min-width:0 !important;cursor:pointer;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-today-check{
  accent-color:#245b90 !important;width:16px !important;height:16px !important;
  min-width:16px !important;flex:0 0 16px !important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-today-text{
  font-size:12px !important;font-weight:550 !important;
  color:#617085 !important;white-space:normal;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-footer-btn{
  background:#eaf0f6 !important;color:#24364d !important;
  border:1px solid #dce5ee !important;border-radius:4px !important;
  font-size:12px !important;font-weight:750 !important;
  padding:9px 17px !important;min-width:72px;min-height:36px;
  box-shadow:none !important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-footer-btn:hover{
  background:#dde9f4 !important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-close{
  background:rgba(255,255,255,.88) !important;
  color:#1c3c63 !important;border:1px solid #d8e3ef !important;
  border-radius:50% !important;width:31px !important;height:31px !important;
  right:11px !important;top:11px !important;
}
@media(max-width:460px){
  #homepagePopupLayer .hana-admission-native-footer .home-popup-footer{
    padding:11px 13px !important;gap:8px !important;
  }
  #homepagePopupLayer .hana-admission-native-footer .home-popup-today-text{
    font-size:11px !important;
  }
}

/* 2026-12-02: 국비 모집 팝업 전용, 직각형/제로 갭 shell */
#homepagePopupLayer .home-popup-card.hana-html-popup-card.hana-admission-native-footer,
.popup-preview-box .home-popup-card.hana-html-popup-card.hana-admission-native-footer{
  border-radius:0!important;--popup-radius:0px!important;
  padding:0!important;border:0!important;box-shadow:0 10px 34px rgba(18,37,60,.17)!important;
  background:#fff!important;overflow:hidden!important;
}
#homepagePopupLayer .hana-admission-native-footer .hana-html-popup-inner,
.popup-preview-box .hana-admission-native-footer .hana-html-popup-inner{
  display:block!important;width:100%!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;max-width:none!important;
}
#homepagePopupLayer .hana-admission-native-footer .hana-html-studio-popup,
.popup-preview-box .hana-admission-native-footer .hana-html-studio-popup{
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-footer,
.popup-preview-box .hana-admission-native-footer .home-popup-footer{
  margin:0!important;border-radius:0!important;padding:12px 20px!important;
}
#homepagePopupLayer .hana-admission-native-footer .home-popup-footer-btn,
.popup-preview-box .hana-admission-native-footer .home-popup-footer-btn{
  border-radius:0!important;
}
@media(max-width:460px){#homepagePopupLayer .hana-admission-native-footer .home-popup-footer{padding:11px 13px!important}}

/* HTML studio popup hard override, loaded after earlier styles. */
#homepagePopupLayer .home-popup-card.hana-html-popup-card,
.popup-preview-box .home-popup-card.hana-html-popup-card{border-radius:0!important;--popup-radius:0px!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
#homepagePopupLayer .home-popup-card.hana-html-popup-card>.hana-html-popup-inner,
.popup-preview-box .home-popup-card.hana-html-popup-card>.hana-html-popup-inner{padding:0!important;margin:0!important;border:0!important;border-radius:0!important}
#homepagePopupLayer .home-popup-card.hana-html-popup-card>.home-popup-footer,
.popup-preview-box .home-popup-card.hana-html-popup-card>.home-popup-footer{padding:12px 18px!important;border-top:1px solid #e5eaf0!important;margin:0!important;border-radius:0!important;background:#f8fafc!important}
#homepagePopupLayer .home-popup-card.hana-html-popup-card .home-popup-footer-btn,
.popup-preview-box .home-popup-card.hana-html-popup-card .home-popup-footer-btn{border-radius:0!important}
/* V143.65 홈 팝업은 상단 메뉴(1000)·상단 공지띠(1101)보다 앞에 띄운다.
   개인정보 동의창(10050)·모바일 메뉴·관리자 편집창보다는 뒤에 둔다. */
html body #homepagePopupLayer.home-popup-layer{z-index:10000!important}
