/* --------------------------------------------------
   CSS Reset & Variables
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1D5E5C;
  --primary-hover: #164a48;
  --text-main: #111;
  --text-normal: #262626;
  --text-muted: #737373;
  --border-light: #d4d4d4;
  --border-extra-light: #e5e5e5;
  --text-alternative: #737373;
  --text-strong: #171717;
  --bg-primary-light: #f8fafa;
  --bg-dark-footer: #262626;
  --container-width: 1760px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  color: var(--text-normal);
  background-color: #F9F9FB;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

input, button, select, textarea {
  font-family: inherit;
}

button{
  background: none;
}

/* GNB 2Depth Dropdown Menu */
.nav-item:has(.nav-sub) {
  position: relative;
}


/* --------------------------------------------------
   Header (GNB)
-------------------------------------------------- */
.site-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-extra-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 90px;
  height: 100%;
}

.nav-item {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-normal);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  padding: 0 4px;
  height: 100%;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom-color: var(--primary-color);
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text-alternative);
}

.util-link {
  transition: color 0.2s ease;
}

.util-link:hover {
  color: var(--text-strong);
}

.util-divider {
  width: 1px;
  height: 13px;
  background-color: var(--border-light);
}

@media (max-width: 1280px) {
  .header-container {
    padding: 0 24px;
  }
  .main-nav {
    gap: 30px;
  }
  .nav-item {
    font-size: 16px;
  }
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
/* .site-footer {
  background-color: var(--bg-dark-footer);
  color: #ffffff;
  padding: 50px 0;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: #e5e5e5;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-divider {
  width: 1px;
  height: 13px;
  background-color: #525252;
}

.footer-copyright {
  font-size: 13px;
  color: #a3a3a3;
} */

/*==========================================
   Footer styles (White Banner Layout)
   ========================================== */
.footer-new {
    background: #ffffff;
    padding: 40px 0;
    font-size: 14px;
    color: #222222;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;   /* 내용이 짧은 페이지에서도 푸터를 화면 하단에 붙임 (body 가 flex column) */
}

.footer-new .container {
    max-width: var(--container-width);
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.footer-new-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    gap: 40px;
}

/* ==========================================
   Left Col & CI Logo List
   ========================================== */
.footer-left-col {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo-col {
    flex-shrink: 0;
}

.footer-logo-col img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-ci-list {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-ci-list img {
    width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #d9d9d9;
    flex-shrink: 0;
}


/* ==========================================
   Right Side Column & Policy Links
   ========================================== */
.footer-right-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.f-policy-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.f-policy-links a {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.f-policy-links a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ==========================================
   Footer Policy Modals (Exact Screenshot Design with TIPS Accent)
   ========================================== */
.footer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.footer-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.footer-modal-card {
    background-color: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(15px);
    transition: transform 0.25s ease;
    border: 1px solid #e2e8f0;
}

.footer-modal-overlay.open .footer-modal-card {
    transform: translateY(0);
}

.footer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    flex-shrink: 0;
}

.footer-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.4px;
}

.footer-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    padding: 6px;
    border-radius: 4px;
}

.footer-modal-body {
    padding: 28px 32px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(85vh - 65px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
    color: var(--text-normal);
    line-height: 1.5;
}

.footer-modal-body::-webkit-scrollbar {
    width: 6px;
}

.footer-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.footer-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.footer-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.footer-modal-notice {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 22px;
    line-height: 1.7;
}

.footer-modal-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-normal);
    margin: 24px 0 12px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-modal-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================
   Modal Table Style (#222222 Accent)
   ========================================== */
.footer-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.footer-modal-table th,
.footer-modal-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    line-height: 1.65;
    color: #334155;
}

.footer-modal-table th {
    background-color: #f8fafc;
    font-weight: 700;
    text-align: center;
    color: #222222;
    border-bottom: 2px solid #222222;
}

.footer-modal-table td:first-child {
    text-align: center;
    font-weight: 600;
    background-color: #f8fafc;
    color: #222222;
}

.footer-modal-table td {
    text-align: left;
}

.footer-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
}

.footer-modal-btn {
    padding: 10px 44px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-modal-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================
   Bottom Copy
   ========================================== */
.footer-bottom-copy {
    text-align: center;
    font-size: 15px;
    color: #BEBEBE;
    padding-top: 8px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1200px) {
    .footer-new-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 34px;
    }

    .footer-left-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-right-col {
        width: 100%;
    }

    .f-policy-links {
        width: 100%;
        gap: 16px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .f-policy-links a {
        font-size: 15px;
        white-space: nowrap;
        letter-spacing: -0.6px;
        flex-shrink: 0;
    }
}


/* --------------------------------------------------
   Mobile Menu & Drawer Styles
-------------------------------------------------- */
.m-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.m-menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-strong);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.m-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.m-nav-drawer.active {
  right: 0;
}

.m-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.m-close-btn {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-alternative);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  height: 28px;
  margin-top: -10px;
}

.m-close-btn:hover {
  color: var(--text-strong);
}

/* Mobile Drawer Utilities */
.m-drawer-utils {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.m-util-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  color: var(--text-normal);
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.m-util-btn:hover, .m-util-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--bg-primary-light);
  font-weight: 600;
}

.m-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.m-nav-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-normal);
  padding: 8px 0;
  display: block;
}

.m-nav-item:hover, .m-nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.m-drawer-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 10px 0;
}

.m-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.m-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.no-scroll {
  overflow: hidden;
}

/* --------------------------------------------------
   Responsive Overrides for Common Components
-------------------------------------------------- */
@media (max-width: 1023px) {
  .main-nav {
    display: none !important;
  }
  .header-utilities {
    display: none !important;
  }
  .m-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }
  .footer-links{
    gap: 10px;
  }
  
  .nav-item:hover, .nav-item.active {
    border-bottom: none;
}
}


/* === DcDialog 1.0 BEGIN (auto-managed, 수정금지) === */
/* =========================================================================
   DcDialog 1.0 — 사이트 공통 alert/confirm 런타임 스타일 (TIPS 테마)
   - JoinTips CSS(commonCss) "맨 아래"에 append 하는 블록.
   - 모든 셀렉터 .dcdlg- 네임스페이스 → 기존 CSS 와 충돌 0.
   - 색은 사이트 :root 토큰(--primary 등)을 재사용하고, 없을 때 폴백.
   ========================================================================= */

/* 다이얼로그 자체 토큰 (사이트 토큰 재사용 + 폴백) */
.dcdlg-overlay,
.dcdlg-toasts {
  --dcdlg-primary: var(--primary-color, #1D5E5C);
  --dcdlg-danger:  #e24b4a;
  --dcdlg-success: #1d9e75;
  --dcdlg-warning: #f59e0b;
  --dcdlg-title:   var(--text-strong, #171717);
  --dcdlg-bg:      var(--bg-card, #ffffff);
  --dcdlg-font: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── 오버레이 ── */
.dcdlg-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  background: rgba(15, 23, 42, .5);
  opacity: 0; transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.dcdlg-overlay.is-open { opacity: 1; }
.dcdlg-overlay.is-closing { opacity: 0; }

/* ── 모달 ── */
.dcdlg {
  width: 100%; max-width: 380px; box-sizing: border-box;
  background: var(--dcdlg-bg); border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .3);
  padding: 28px 24px 20px; text-align: center;
  font-family: var(--dcdlg-font);
  transform: translateY(12px) scale(.96); opacity: 0;
  transition: transform .28s cubic-bezier(.25, .8, .25, 1), opacity .28s ease;
}
.dcdlg-overlay.is-open .dcdlg { transform: none; opacity: 1; }

/* ── 아이콘 ── */
.dcdlg-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dcdlg-icon svg { width: 32px; height: 32px; }
.dcdlg-icon--success  { background: rgba(29, 158, 117, .12); color: var(--dcdlg-success); }
.dcdlg-icon--error    { background: rgba(226, 75, 74, .12);  color: var(--dcdlg-danger); }
.dcdlg-icon--warning  { background: rgba(245, 158, 11, .14); color: var(--dcdlg-warning); }
.dcdlg-icon--info     { background: rgba(29, 94, 92, .10);  color: var(--dcdlg-primary); }
.dcdlg-icon--question { background: rgba(29, 94, 92, .10);  color: var(--dcdlg-primary); }

/* ── 텍스트 ── */
.dcdlg-title   { font-size: 18px; font-weight: 700; color: var(--dcdlg-title); margin: 0 0 8px; }
.dcdlg-message { font-size: 16px; line-height: 1.6; color: #475569;
                 white-space: pre-line; word-break: break-word; margin: 0 0 22px; }

/* ── 버튼 ── */
.dcdlg-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dcdlg-btn {
  flex: 1 1 0; min-width: 88px; min-height: 44px; padding: 0 18px;
  font-size: 14.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  border-radius: 4px; border: 1px solid transparent; transition: all .18s ease;
}
.dcdlg-btn:focus-visible { outline: 2px solid var(--dcdlg-primary); outline-offset: 2px; }
.dcdlg-btn--primary { background: var(--dcdlg-primary); color: #fff; }
.dcdlg-btn--primary:hover { filter: brightness(.94); }
.dcdlg-btn--default { background: #fff; color: #475569; border-color: #e2e8f0; }
.dcdlg-btn--default:hover { background: #e9eef4; }
.dcdlg-btn--danger  { background: var(--dcdlg-danger); color: #fff; }
.dcdlg-btn--danger:hover { filter: brightness(.94); }
.dcdlg-btn--text    { background: #fff; color: #475569; border-color: #cbd5e1; }
.dcdlg-btn--text:hover { background: #f1f5f9; color: #1e293b; border-color: #94a3b8; }

/* 단일 버튼(=alert 류) 일 때 가운데 정렬·폭 제한 (미지원 브라우저는 fl:1 유지 — 무해) */
.dcdlg-actions:has(.dcdlg-btn:only-child) .dcdlg-btn { flex: 0 1 auto; min-width: 120px; margin: 0 auto; }

/* ── 토스트(비모달) ── */
.dcdlg-toasts {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100000;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
}
.dcdlg-toast {
  display: flex; align-items: center; gap: 8px; max-width: 90vw;
  padding: 12px 18px; border-radius: 12px; background: #1e293b; color: #fff;
  font-family: var(--dcdlg-font); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(12px); transition: all .3s cubic-bezier(.25, .8, .25, 1);
}
.dcdlg-toast.is-open { opacity: 1; transform: none; }
.dcdlg-toast.is-closing { opacity: 0; transform: translateY(12px); }
.dcdlg-toast-icon svg { width: 18px; height: 18px; vertical-align: middle; }
.dcdlg-toast--success { background: #1d9e75; }
.dcdlg-toast--error   { background: #e24b4a; }
.dcdlg-toast--warning { background: #d97706; }

/* ── 모바일 ── */
@media (max-width: 480px) {
  .dcdlg { max-width: none; }
  .dcdlg-actions { flex-direction: column-reverse; }
  .dcdlg-btn { width: 100%; flex: 1 1 auto; }
}

/* === DcDialog 1.0 END === */

/* GNB 2Depth Dropdown Menu */
.nav-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

/* 드롭다운 메뉴 영역 (.nav-sub) */
.nav-group .nav-sub {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%); /* translateY 제거 (위치 고정) */
  margin-top: 10px; /* 부모 메뉴와의 간격 (필요시 숫자 조절) */
  background-color: #ffffff;
  border: 1px solid var(--border-extra-light);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease; /* 위치 이동 없이 투명도만 애니메이션 처리 */
  z-index: 1000;
}


/* 마우스 이탈 방지용 투명 다리 (Hover 유지용) */
.nav-group.has-sub::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  display: none;
}

.nav-group.has-sub:hover::after {
  display: block;
}

/* 마우스 Hover 시 드롭다운 메뉴 표시 */
.nav-group.has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  /* transform 위치 이동 코드 삭제 */
}

/* 드롭다운 세부 메뉴 아이템 (.nav-sub-item) */
.nav-sub-item {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-normal);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
}

.nav-sub-item:hover {
  color: var(--primary-color);
}

/* === CapsLock 1.0 BEGIN (auto-managed) === */
/* 전역 Caps Lock 경고 배지 — commonJs 가 포커스된 비번칸 위에 fixed 로 띄운다.
   모달(z-index 9999) 위에도 보이도록 z-index 를 매우 높게, 레이아웃 영향 없음(fixed + pointer-events:none). */
.dc-caps-badge {
    position: fixed;
    z-index: 100000;
    display: none;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #e6a23c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-100%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
/* === CapsLock 1.0 END === */


.util-who{position: relative;}
.util-who::after{content:""; display: block; width: 1px; height: 13px; background-color: var(--border-light); position: absolute; top:5px; right: -12px}

@media (max-width:768px){
  .util-who{position: unset;}
  .util-who::after{display: none;}
}

