/* 마감한다 공용 상단 버튼: 1:1 문의하기 + 로그인 (메인 index.html의 디자인과 같게)
   다른 페이지 스타일과 겹치지 않도록 모든 이름 앞에 mh- 를 붙였어요. common/site-header.js 와 같이 써요. */
@font-face { font-family: "NexonLv2Gothic"; font-weight: 400; font-display: swap; src: url("/fonts/NexonLv2Gothic-Regular.woff") format("woff"); }
@font-face { font-family: "NexonLv2Gothic"; font-weight: 700; font-display: swap; src: url("/fonts/NexonLv2Gothic-Bold.woff") format("woff"); }

.mh-widgets { display: flex; align-items: center; gap: 20px; flex: none; font-family: "NexonLv1Gothic", -apple-system, sans-serif; color: #151512; letter-spacing: normal; line-height: normal; }
/* 어느 페이지에 붙든 그 페이지의 줄높이·글꼴 설정을 물려받지 않게 고정해요 (CBT 본문 줄높이 1.6 때문에 버튼이 커지던 것) */
.mh-widgets *, .mh-modal * { line-height: normal; letter-spacing: normal; }
.mh-chat { display: flex; align-items: center; gap: 6px; font-family: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-weight: 700; font-size: 0.88rem; color: #4b5563; text-decoration: none; padding: 9px 12px; border: none; border-radius: 10px; background: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.mh-chat:hover { color: #1f2a37; background: rgba(31, 42, 55, .06); }
@media (max-width: 520px) { .mh-chat { display: none; } }

.mh-auth { display: flex; align-items: center; gap: 10px; }
.mh-login { font-family: "NexonLv2Gothic", sans-serif; font-size: 0.86rem; padding: 8px 18px; border: 1px solid rgba(31, 42, 55, .1); border-radius: 10px; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1f2a37; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.mh-login:hover { background: rgba(255, 255, 255, .85); border-color: rgba(31, 42, 55, .16); }
/* 로그인한 뒤: 이름은 회색 글자, 마이페이지는 로그인 버튼과 같은 반투명 흰 버튼, 로그아웃은 1:1 문의하기와 같은 회색 글자 버튼 (2026-11) */
.mh-user { display: flex; align-items: center; gap: 4px; font-family: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.mh-user .mh-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.88rem; color: #4b5563; padding: 0 6px; }
.mh-mypage { font-family: "NexonLv2Gothic", sans-serif; font-size: 0.86rem; padding: 8px 16px; border: 1px solid rgba(31, 42, 55, .1); border-radius: 10px; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1f2a37; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.mh-mypage:hover { background: rgba(255, 255, 255, .85); border-color: rgba(31, 42, 55, .16); }
.mh-logout { font-family: inherit; font-weight: 700; font-size: 0.88rem; color: #6b7280; background: none; border: none; border-radius: 10px; padding: 9px 10px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s ease, color .15s ease; }
.mh-logout:hover { color: #1f2a37; background: rgba(31, 42, 55, .06); }
@media (max-width: 600px) {
  .mh-user .mh-name { max-width: 76px; font-size: 0.8rem; }
  .mh-mypage { font-size: 0.8rem; padding: 7px 12px; }
  .mh-logout { font-size: 0.8rem; padding: 8px 8px; }
}

.mh-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; font-family: "NexonLv1Gothic", -apple-system, sans-serif; line-height: normal; color: #151512; }
.mh-modal[hidden] { display: none; }
.mh-modal-backdrop { position: absolute; inset: 0; background: rgba(21, 21, 18, 0.55); }
.mh-modal-card { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 16px 36px rgba(21, 21, 18, 0.18); padding: 40px 44px 40px; width: 100%; max-width: 440px; margin: 20px; text-align: center; }
@media (max-width: 520px) { .mh-modal-card { padding: 36px 22px 30px; } }
.mh-modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; padding: 0; font-family: Arial, sans-serif; font-size: 1.1rem; cursor: pointer; color: #8a877c; line-height: 1; }
@font-face { font-family: 'NanumSquareEB'; src: url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff2') format('woff2'), url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff') format('woff'); font-weight: 800; font-display: swap; }
.mh-modal-title { font-family: 'NanumSquareEB', 'Pretendard Variable', Pretendard, sans-serif; font-weight: 800; font-size: 1.3rem; margin: 6px 0 24px; color: #151512; }
.mh-modal-divider { font-family: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-weight: 700; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 0.84rem; color: #8a877c; }
.mh-modal-divider::before, .mh-modal-divider::after { content: ''; flex: 1; height: 1px; background: #e6e1d6; }
.mh-modal-sub { font-family: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-weight: 700; font-size: 0.82rem; color: #8a877c; margin: -14px 0 20px; line-height: 1.6; }
.mh-modal-sub[hidden] { display: none; }
.mh-social-list { display: flex; flex-direction: column; gap: 12px; }
.mh-social { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 18px; border-radius: 10px; border: none; font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: transform .15s ease; }
.mh-social:hover { transform: translateY(-2px); }
.mh-social .mh-ic { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mh-social .mh-label { flex: 1; text-align: center; margin-right: 22px; }
.mh-naver { background: #03C75A; color: #fff; }
.mh-kakao { background: #FEE500; color: #151512; }
.mh-google { background: #fff; color: #151512; border: 1.5px solid rgba(21, 21, 18, 0.18); }

/* CBT · 전자책 전환 스위치: CBT(/cbt/)와 전자책(/) 상단이 이 한 벌을 같이 써요.
   두 사이트를 오갈 때 모양·크기·자리가 그대로여야 해서 글꼴·색을 여기서 고정해요. (기준: CBT 디자인) */
.svc-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(31, 42, 55, .06); border: 1px solid rgba(31, 42, 55, .08); flex: none; font-family: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: normal; }
.svc-switch a { text-decoration: none; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; line-height: 1.2; color: #4b5563; white-space: nowrap; transition: background .2s, color .2s; min-height: 34px; display: inline-flex; align-items: center; }
.svc-switch a:hover { color: #1f2a37; }
.svc-switch a.on { background: #fff; color: #b93f0c; box-shadow: 0 1px 6px rgba(31, 42, 55, .12); }
@media (max-width: 560px) { .svc-switch a { padding: 5px 11px; font-size: 13px; } }
/* 작은 태블릿 폭: 로그인하면 오른쪽이 길어져서, 1:1 문의하기는 숨기고 이름 폭을 줄여 한 줄에 맞춰요. (로그인 전에는 그대로) */
@media (max-width: 780px) { .mh-widgets:has(.mh-user) .mh-chat { display: none; } }
@media (max-width: 660px) { .mh-user .mh-name { max-width: 76px; } }
/* 폰(폭 480px 이하): 전환 버튼이 3개(CBT·전자책·채용)라, 로그인한 뒤의 「이름·마이페이지·로그아웃」까지 한 줄에 들어가도록 이름은 숨기고 간격·글자를 줄여요. */
@media (max-width: 480px) {
  .svc-switch a { padding: 5px 8px; font-size: 12.5px; }
  .mh-user { gap: 2px; }
  .mh-user .mh-name { display: none; }
  .mh-mypage { font-size: 0.76rem; padding: 6px 10px; }
  .mh-logout { font-size: 0.76rem; padding: 7px 6px; }
}
@media (max-width: 380px) { .svc-switch a { padding: 5px 7px; font-size: 12px; } .mh-user { gap: 6px; } }

/* 페이지가 짧아 스크롤바가 없어져도 화면 폭이 바뀌지 않게 (상단 버튼·메뉴가 옆으로 움직이지 않도록) */
html { scrollbar-gutter: stable; }
