/* ============================================================
   ACRO MEDICAL — LAYOUT
   Navigation, section headers, page headers, sidebar, footer
   ============================================================ */

/* ===== NAVIGATION ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 216, 224, 0.5);
  /* 메가메뉴 기준점 */
  isolation: isolate;
}

/* Home page: fixed transparent nav, transitions on last hero slide */
.nav-wrap.nav-home {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.nav-wrap.nav-home.scrolled {
  background: rgba(246, 247, 250, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(213, 216, 224, 0.55);
}
.nav-wrap.nav-home:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.nav-wrap.nav-home.scrolled .logo img { filter: none; transition: filter 0.4s ease; }
.nav-wrap.nav-home:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}
.nav-wrap.nav-home:not(.scrolled) .nav-links a::after {
  background: rgba(255, 255, 255, 0.85);
}
.nav-wrap.nav-home.scrolled .nav-links a { color: var(--ink-2); }
.nav-wrap.nav-home:not(.scrolled) .contact-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
}
.nav-wrap.nav-home.scrolled .contact-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.nav-wrap.nav-home:not(.scrolled) .nav-hamburger span { background: rgba(255,255,255,0.9); }
nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15.4px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ===== GNB 메가패널 — 전체 사이트맵 단일 패널 ===== */

/* 배경 페인팅은 GNB 스트립 + 서브메뉴 패널을 하나의 영역으로 보고 한 번에 칠한다(v2.9.41).
   패널이 화면 최상단(top:0)에서 시작하고 GNB 높이만큼 padding-top 을 두므로,
   GNB 영역 색과 패널 색이 같은 요소·같은 알파로 동시에 나타나 경계선이 생기지 않는다. */
@keyframes mega-paint {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* 내부 콘텐츠만 아주 짧게 내려앉는 정도로 마무리 (배경 모션과 분리되지 않게 최소화) */
@keyframes mega-content {
  from { transform: translateY(-6px); }
  to   { transform: translateY(0); }
}

/* 패널 base: body 직속 자식 — position:fixed, GNB 스트립까지 덮는다.
   --nav-h 는 JS(initMegaMenu)가 nav-wrap 실제 높이로 세팅. */
.nav-mega--sitemap {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 0;
  padding-top: var(--nav-h, 72px);
  background: #0c1322;
  z-index: 90;  /* nav-wrap(100) 아래 · 본문(최대 50) 위 */
  box-shadow: 0 28px 72px rgba(0,0,0,.55);
}
.nav-mega--sitemap.is-visible {
  display: block;
  animation: mega-paint 0.24s ease forwards;
}
.nav-mega--sitemap.is-visible .nav-mega-sitemap {
  animation: mega-content 0.24s ease forwards;
}

/* 사이트맵 그리드 — 5열 고정, 6번째부터 1열 아래로 */
.nav-mega-sitemap {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 48px;
  padding: 44px 48px 52px;
}

/* 열 헤더 — 1depth 메뉴명 */
.nav-mega-col-head {
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mega-col-head a {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.30);
  font-weight: 700;
  text-decoration: none;
  transition: color .18s;
}
.nav-mega-col-head a:hover { color: rgba(255,255,255,.65); }

/* 항목 목록 — 색상 강조만, 밑줄 없음 */
.nav-mega-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mega-col-list li a {
  display: block;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.50);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .18s;
}
.nav-mega-col-list li a:hover { color: rgba(255,255,255,.92); }

/* ===== 메가오픈 시 nav-wrap 배경 동기화 ===== */

/* 메가오픈 시 GNB 는 자체 배경을 비운다 — 색은 패널(단일 영역)이 칠한다 */
.nav-wrap.mega-open {
  transition: background 0s, backdrop-filter 0s, border-color 0s;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-wrap.nav-home.mega-open .nav-links a { color: rgba(255,255,255,.85); }
.nav-wrap.nav-home.mega-open .logo img { filter: brightness(0) invert(1); }
.nav-wrap.nav-home.mega-open .contact-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);
  color: rgba(255,255,255,.92);
}

/* 서브페이지 — 패널을 밝은 색으로 (nav-wrap과 동일 계열)
   mega panel이 nav-wrap 밖으로 이동했으므로 body[data-page] 기반 선택자 사용 */
body:not([data-page="home"]) .nav-mega--sitemap {
  background: #f6f7fa;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
body:not([data-page="home"]) .nav-mega-col-head {
  border-bottom-color: rgba(0,0,0,.08);
}
body:not([data-page="home"]) .nav-mega-col-head a { color: rgba(0,0,0,.30); }
body:not([data-page="home"]) .nav-mega-col-head a:hover { color: rgba(0,0,0,.65); }
body:not([data-page="home"]) .nav-mega-col-list li a { color: rgba(0,0,0,.52); }
body:not([data-page="home"]) .nav-mega-col-list li a:hover { color: rgba(0,0,0,.90); }

.contact-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.contact-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.contact-btn .arr { transition: transform 0.3s; }
.contact-btn:hover .arr { transform: translateX(3px); }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-weight: 380;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ===== PAGE HEADER (sub-page hero strip) ===== */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 70px;
  min-height: 460px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Hero photo layer — placed at z-index 0, behind the overlay */
.page-header-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.42;
  filter: saturate(0.5) contrast(1.05) brightness(0.9);
  pointer-events: none;
  z-index: 0;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(45, 79, 174, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(163, 86, 57, 0.07) 0%, transparent 50%),
    linear-gradient(90deg, rgba(26,35,54,0.82) 0%, rgba(26,35,54,0.52) 60%, rgba(26,35,54,0.76) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}
.page-header .breadcrumb { color: rgba(246, 247, 250, 0.6); }
.page-header .breadcrumb a { color: rgba(246, 247, 250, 0.7); }
.page-header .breadcrumb a:hover { color: var(--accent-soft); }
.page-header .breadcrumb .sep { color: rgba(246, 247, 250, 0.3); }
.page-header .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-weight: 360;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 900px;
}
.page-header h1 em { font-style: italic; color: var(--accent-soft); }
.page-header .lead {
  font-size: 17px;
  max-width: 640px;
  color: rgba(246, 247, 250, 0.78);
  line-height: 1.6;
}
/* 국문 서브 페이지 히어로 줄바꿈(v2.9.52) — 홈 히어로(.slide-heading/.slide-sub)와 같은 규칙:
   어절 중간 절단 방지 + 여러 줄일 때 길이 균등. 문장 단위 `.lead-line` 은 넓은 화면에서만
   줄을 나누고 좁아지면 inline 으로 되돌린다. */
html[lang="ko"] .page-header h1 {
  word-break: keep-all;
  text-wrap: balance;
}
html[lang="ko"] .page-header .lead {
  max-width: 760px;
  word-break: keep-all;
  text-wrap: pretty;
  text-wrap: balance;
}
.page-header .lead .lead-line { display: inline; }
/* 840px 이상에서만 문장별 줄바꿈 — 그 아래는 두 번째 문장이 한 줄에 들어가지 않아
   문장 블록을 유지하면 짧은 꼬리 줄이 생긴다(inline 으로 흘려 균등 분배). */
@media (min-width: 840px) {
  .page-header .lead .lead-line { display: block; }
}
@media (max-width: 640px) {
  /* 좁은 폭에서 balance 가 줄 길이를 맞추려 한 단어만 남기는 줄을 만들지 않게 */
  html[lang="ko"] .page-header h1 { text-wrap: pretty; }
}

/* ===== SIDEBAR LAYOUT (sub-pages) ===== */
.with-sidebar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
/* 그리드 아이템 min-width:auto 기본값 해제 — 넓은 콘텐츠가 1fr 컬럼을 밀어내지 못하게 */
.with-sidebar > .sidebar,
.with-sidebar > .content-area { min-width: 0; }
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.sidebar ul { list-style: none; }
.sidebar li { border-top: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 1px solid var(--line); }
.sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s, padding 0.3s;
}
.sidebar a:hover { color: var(--accent); padding-left: 6px; }
.sidebar a.active {
  color: var(--accent);
  font-weight: 600;
}
.sidebar a .chev {
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s;
}
.sidebar a:hover .chev, .sidebar a.active .chev {
  opacity: 1;
  transform: translateX(2px);
}
/* 모바일 드롭다운 — 데스크톱에서 숨김 */
.sidebar-select-wrap { display: none; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 6vh, 66px) 0;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
/* 로고 / 주소·연락처 + 저작권 / 액션 필 — 컴팩트 1행 (v2.9.30) */
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.finfo {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 247, 250, 0.8);
  word-break: keep-all;
}
.finfo-ico {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--emphasis-soft);
}
.finfo a { color: inherit; text-decoration: none; transition: color 0.2s; }
.finfo a:hover { color: #fff; }
.footer-desc {
  margin-top: 6px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(246, 247, 250, 0.55);
}
.footer-copy {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(246, 247, 250, 0.45);
}
.footer-note { font-size: 12px; color: rgba(246, 247, 250, 0.4); }
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 247, 250, 0.28);
  color: rgba(246, 247, 250, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-pill:hover { border-color: rgba(246, 247, 250, 0.6); color: #fff; }
.footer-pill--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-pill--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.footer-pill .arr { transition: transform 0.3s; }
.footer-pill:hover .arr { transform: translateX(3px); }

/* ===== HAMBURGER + MOBILE MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg-deep);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 60px rgba(0, 0, 0, 0.48);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mobile-menu-header .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.90;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(246, 247, 250, 0.6);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.mobile-menu-close:hover { color: #fff; }
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  flex: 1;
}
/* 서브메뉴 있는 섹션 그룹 */
.mobile-nav ul li.has-submenu {
  padding: 22px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* 상위 메뉴 레이블 — 세리프 헤딩으로 위계 확립 */
.mobile-nav-section-label {
  display: block;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 10px;
}
.mobile-nav-section-label:hover { color: var(--emphasis-soft); }
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-submenu li { border: none; }
.mobile-submenu li a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(246, 247, 250, 0.60);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-submenu li a:hover { color: rgba(246, 247, 250, 0.95); }
/* 서브메뉴 없는 단독 링크 */
.mobile-nav ul li:not(.has-submenu) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav-link {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(246, 247, 250, 0.82);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: #fff; }
/* Contact Us 버튼 — 다크 패널 위 코발트 CTA */
.mobile-menu .mobile-contact-btn {
  display: flex;
  justify-content: center;
  margin: 20px 24px 28px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.mobile-menu .mobile-contact-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu-backdrop.show { opacity: 1; pointer-events: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 18px 32px; gap: 20px; }
  .nav-links { display: none; }
  nav > .contact-btn { display: none; }
  .nav-hamburger { display: flex; }
  .with-sidebar {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 24px 70px;
  }
  .sidebar { position: static; }
  /* 모바일: ul 숨기고 드롭다운 표시 */
  .sidebar ul { display: none; }
  .sidebar-select-wrap {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 8px;
  }
  .sidebar-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 11px 40px 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .sidebar-select:focus {
    outline: none;
    border-color: var(--accent);
  }
  .sidebar-select-chev {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    display: flex;
    align-items: center;
  }
  .page-header { padding: 60px 0 50px; min-height: 360px; }
  .page-header-inner { padding: 0 32px; }
  .block-link, .block-download { grid-template-columns: 1fr; padding: 32px; }
  .block-link .visual, .block-download .doc-icon { order: -1; }
  .footer-main { grid-template-columns: auto 1fr; row-gap: 26px; }
  .footer-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-inner { padding: 0 32px; }
}
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; row-gap: 22px; }
}

/* ── ENG/KOR 언어 전환 (GNB, contact-btn 좌측) ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: -14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch .lang-opt {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-switch .lang-opt:hover { color: var(--accent); }
.lang-switch .lang-opt.active { color: var(--ink); }
.lang-switch .lang-sep { color: var(--line); font-weight: 400; }

/* 홈 투명 GNB */
.nav-wrap.nav-home:not(.scrolled) .lang-switch .lang-opt { color: rgba(255,255,255,0.55); }
.nav-wrap.nav-home:not(.scrolled) .lang-switch .lang-opt:hover,
.nav-wrap.nav-home:not(.scrolled) .lang-switch .lang-opt.active { color: rgba(255,255,255,0.95); }
.nav-wrap.nav-home:not(.scrolled) .lang-switch .lang-sep { color: rgba(255,255,255,0.3); }
.nav-wrap.nav-home.mega-open .lang-switch .lang-opt { color: rgba(255,255,255,0.55); }
.nav-wrap.nav-home.mega-open .lang-switch .lang-opt.active { color: rgba(255,255,255,0.95); }

/* 모바일 드로어 내 전환 */
.lang-switch--mobile {
  margin: 18px 0 0;
  font-size: 13px;
}
.mobile-menu .lang-switch .lang-opt { color: rgba(255,255,255,0.55); }
.mobile-menu .lang-switch .lang-opt.active { color: #fff; }
.mobile-menu .lang-switch .lang-sep { color: rgba(255,255,255,0.25); }

@media (max-width: 1023px) {
  .nav-wrap .lang-switch:not(.lang-switch--mobile) { display: none; }
}

/* 언어 토글 추가 후 GNB 메뉴 줄바꿈 방지 */
.nav-links a { white-space: nowrap; }
.lang-switch .lang-opt { white-space: nowrap; }

/* 언어 감지 안내 레이어 — 위치는 main.js가 GNB의 ENG/KOR 토글 기준으로 계산해
   --lang-prompt-* 변수로 주입한다. 아래 값은 JS 미실행/모바일 폴백. */
.language-prompt {
  position: fixed;
  top: var(--lang-prompt-top, 76px);
  left: var(--lang-prompt-left, auto);
  right: var(--lang-prompt-right, clamp(24px, 7vw, 142px));
  z-index: 260;
  width: min(430px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.language-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.language-prompt__panel {
  position: relative;
  padding: 26px 28px 24px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(213,216,224,0.95);
  box-shadow: 0 22px 60px rgba(14,27,58,0.18);
  backdrop-filter: blur(14px);
}
.language-prompt__panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: var(--lang-prompt-arrow-left, auto);
  right: var(--lang-prompt-arrow-right, 112px);
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.98);
  border-left: 1px solid rgba(213,216,224,0.95);
  border-top: 1px solid rgba(213,216,224,0.95);
  transform: rotate(45deg);
}
.language-prompt__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.language-prompt__close:hover { color: var(--ink); }
.language-prompt__eyebrow {
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}
.language-prompt__title {
  max-width: 330px;
  margin: 0 0 14px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 430;
  color: var(--ink);
}
.language-prompt__title span,
.language-prompt__copy p {
  display: block;
}
.language-prompt__title [data-lang-title-ko] {
  margin-top: 5px;
  font-family: 'Pretendard', 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 500;
  word-break: keep-all;
}
.language-prompt__copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.language-prompt__copy p { margin: 0; }
.language-prompt__copy [data-lang-copy-ko] { word-break: keep-all; }
.language-prompt__copy p + p { margin-top: 4px; }
.language-prompt__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.language-prompt__primary,
.language-prompt__secondary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.language-prompt__primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.language-prompt__primary:hover { background: var(--primary); border-color: var(--primary); }
.language-prompt__secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.language-prompt__secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1023px) {
  /* 데스크톱 토글이 숨는 폭 — 햄버거 버튼 아래 전체 폭 레이어로 폴백 */
  .language-prompt {
    --lang-prompt-top: 72px;
    --lang-prompt-left: 16px;
    --lang-prompt-right: 16px;
    --lang-prompt-arrow-left: auto;
    --lang-prompt-arrow-right: 18px;
    width: auto;
  }
}
