/* ================================================================
   헤더 PC 서브메뉴 "말풍선 시프트" (submenu_style = shift) — 2026-11-22
   색·크기 = 패널 인라인 변수(--hs-*, 설정 창) · 기본 = 다크 말풍선
   ================================================================ */
/* 기존 2뎁스(드롭다운)는 숨기고 말풍선 패널만 */
nav.gnb.hy-shift { position: relative; }
nav.gnb.hy-shift > ul.menu > li > .sublist,
nav.gnb.hy-shift > ul.menu > li:hover > .sublist,
nav.gnb.hy-shift > ul.menu > li.open > .sublist { display: none !important; }

.hs_panel { --hs-bg: #171717; --hs-bg2: #262626; --hs-bd: #404040; --hs-title: #f5f5f5; --hs-text: #a3a3a3; --hs-hover: #ffffff; --hs-hoverbg: #2a2a2a;
  --hs-accent: #a5b4fc; --hs-icobg: #262626; --hs-icobd: #404040; --hs-icon: #d4d4d4; --hs-rad: 10px; --hs-gap: 24px; --hs-pad: 18px; --hs-minw: 240px; --hs-fs: 14px; --hs-ipy: 6px; --hs-ipx: 8px; --hs-irad: 6px;
  --hs-d3: var(--hs-text); --hs-d3h: var(--hs-hover); --hs-d3hb: var(--hs-hoverbg); --hs-d3py: 3px; --hs-d3px: 8px; --hs-d3rad: 6px;
  position: absolute; left: 0; top: 100%; z-index: 9999; margin-top: var(--hs-gap); min-width: var(--hs-minw); max-width: calc(100vw - 16px);
  padding: var(--hs-pad); border: 1px solid var(--hs-bd); border-radius: var(--hs-rad); box-sizing: border-box;
  background: linear-gradient(180deg, var(--hs-bg) 0%, var(--hs-bg) 55%, var(--hs-bg2) 100%); color: var(--hs-title);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22); font-size: var(--hs-fs); line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .25s ease, visibility 0s .25s, left .25s ease-in-out; }
.hs_panel.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .25s ease, left .25s ease-in-out; }
.hs_panel *, .hs_panel *::before, .hs_panel *::after { box-sizing: border-box; }
/* 메뉴와 패널 사이 빈틈 — 마우스가 지나가도 안 닫히게 */
.hs_bridge { position: absolute; left: 0; right: 0; bottom: 100%; height: max(4px, calc(var(--hs-gap) + 2px)); }   /* 위치를 음수로 올려도 다리 높이는 최소 4px */
/* 위 꼭지 — 고른 메뉴 가운데로 이동 */
.hs_nub { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; transform: rotate(45deg);
  background: var(--hs-bg); border-left: 1px solid var(--hs-bd); border-top: 1px solid var(--hs-bd); border-top-left-radius: 3px; transition: left .25s ease-in-out; }
.hs_nonub .hs_nub { display: none; }
.hs_body { position: relative; overflow: hidden; transition: height .25s ease-in-out; }

/* 내용 들어오기 (옮긴 방향에서) */
.hs_c { position: relative; }
.hs_in_r { animation: hs_in_r .25s ease-in-out; }
.hs_in_l { animation: hs_in_l .25s ease-in-out; }
@keyframes hs_in_r { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: none; } }
@keyframes hs_in_l { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: none; } }

.hs_panel a { color: var(--hs-text); text-decoration: none; transition: color .2s, background .2s; }
.hs_panel a:hover, .hs_panel a:focus-visible { color: var(--hs-hover); }
.hs_grid { display: grid; grid-template-columns: repeat(var(--hs-cols, 1), minmax(130px, auto)); gap: 6px 22px; }

/* list · cols — 2뎁스 + (3뎁스 작게) */
.hs_item { min-width: 0; }
/* 메뉴 한 줄 — 여백·둥글기 = --hs-ipy/ipx/irad · 마우스 올림 = --hs-hover(글자)·--hs-hoverbg(배경) */
.hs_a2 { display: block; padding: var(--hs-ipy) var(--hs-ipx); margin: 0; border-radius: var(--hs-irad); font-weight: 500; color: var(--hs-title); white-space: nowrap; }
/* 2뎁스 글자 = --hs-title (공통 .hs_panel a 보다 우선) */
.hs_panel .hs_a2, .hs_panel .hs_gt { color: var(--hs-title); }
.hs_panel .hs_a2:hover, .hs_panel .hs_a2:focus-visible { background: var(--hs-hoverbg); color: var(--hs-hover); }
.hs_d3 { display: flex; flex-direction: column; gap: 0; padding: 0 0 4px 10px; }
/* 3뎁스 — 글자·마우스 올림·여백·둥글기 따로 (--hs-d3*) · 그룹형 제목 아래 링크도 3뎁스 */
.hs_d3 .hs_a { font-size: .9em; }
.hs_panel .hs_d3 .hs_a, .hs_panel .hs_grp .hs_a { color: var(--hs-d3); padding: var(--hs-d3py) var(--hs-d3px); margin: 0; border-radius: var(--hs-d3rad); }
.hs_panel .hs_d3 .hs_a:hover, .hs_panel .hs_d3 .hs_a:focus-visible, .hs_panel .hs_grp .hs_a:hover, .hs_panel .hs_grp .hs_a:focus-visible { color: var(--hs-d3h); background: var(--hs-d3hb); }

/* group — 2뎁스 = 묶음 제목 · 3뎁스 = 아래 링크 */
.hs_l_group .hs_grid { gap: 10px 28px; }
.hs_grp { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hs_grp { gap: 0; }
.hs_gt { padding: var(--hs-ipy) var(--hs-ipx); margin: 0; border-radius: var(--hs-irad); white-space: nowrap; }
.hs_grp .hs_a { white-space: nowrap; }
.hs_gt { margin-bottom: 4px; font-weight: 600; color: var(--hs-title); }
.hs_panel .hs_gt:hover { background: var(--hs-hoverbg); color: var(--hs-hover); }

/* icon — 아이콘 상자 + 이름 + 설명 + › */
.hs_l_icon .hs_grid { gap: 4px 10px; grid-template-columns: repeat(var(--hs-cols, 1), minmax(260px, 1fr)); }
.hs_ic { display: flex; align-items: center; gap: 14px; padding: calc(var(--hs-ipy) + 4px) calc(var(--hs-ipx) + 4px); margin: 0; border-radius: calc(var(--hs-irad) + 4px); }
.hs_ic:hover { background: var(--hs-hoverbg); }
.hs_panel .hs_ic:hover .hs_ict b { color: var(--hs-hover); }
/* ★1127 [모양별 크기] 아이콘형 — 상자 --hs-icobox · 그림 --hs-icosz · 둥글기 --hs-icorad (비우면 38 · 18(이미지 22) · 9) */
.hs_ico { flex: none; display: flex; align-items: center; justify-content: center; width: var(--hs-icobox, 38px); height: var(--hs-icobox, 38px); border-radius: var(--hs-icorad, 9px); background: var(--hs-icobg); border: 1px solid var(--hs-icobd); color: var(--hs-icon); }
.hs_ico svg { width: var(--hs-icosz, 18px); height: var(--hs-icosz, 18px); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs_ico img { display: block; width: var(--hs-icosz, 22px); height: var(--hs-icosz, 22px); object-fit: contain; }
.hs_ict { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs_ict b { font-weight: 600; color: var(--hs-title); }
.hs_ict small { margin-top: 1px; font-size: var(--hs-dfs, .88em); color: var(--hs-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs_chev { flex: none; color: var(--hs-text); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.hs_chev svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs_ic:hover .hs_chev { opacity: .8; transform: none; }

/* card — 이미지 카드 */
.hs_l_card .hs_grid { grid-template-columns: repeat(var(--hs-cols, 2), 180px); gap: 14px 12px; }
.hs_card { display: flex; flex-direction: column; min-width: 0; }
.hs_cimg { display: block; height: var(--hs-cimgh, 64px); margin-bottom: 8px; border-radius: var(--hs-crad, 6px); overflow: hidden; background: var(--hs-bg2); }   /* ★1127 [모양별 크기] 카드 사진 높이·둥글기 */
.hs_cimg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hs_card:hover .hs_cimg img { transform: scale(1.05); }
.hs_noimg { background: linear-gradient(135deg, var(--hs-bg2), var(--hs-hoverbg)); }
.hs_card b { font-weight: 600; color: var(--hs-title); transition: color .2s; }
.hs_panel .hs_card:hover b { color: var(--hs-hover); }
.hs_card small { margin-top: 2px; font-size: var(--hs-dfs, .86em); color: var(--hs-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 더보기 → */
.hs_more { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 14px; color: var(--hs-accent) !important; font-size: .95em; }
.hs_more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.hs_more:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .hs_panel, .hs_panel.on, .hs_nub, .hs_body { transition: none !important; }
  .hs_in_r, .hs_in_l { animation: none !important; }
}
/* 태블릿·모바일 = 기존 모바일 메뉴 그대로 (패널 안 씀) */
@media (max-width: 1024px) { .hs_panel { display: none !important; } }

/* ★ (1122) 선택자 앞 :is(#hs-x#hs-y#hs-z, html) = 매칭은 html, 우선순위만 ID 3개 — 사이트 헤더의 #gnb … a {padding:0 !important} 같은 ID 규칙도 이김
   ★ 사이트 헤더 공통 CSS(nav a · .gnb a 의 padding·margin·radius·배경 등)가 말풍선 안 링크에 먹던 것 → 설정값이 항상 이기게 고정 */
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel a { display: block; float: none; width: auto; height: auto; min-height: 0; line-height: 1.45; letter-spacing: normal; text-transform: none; border: 0; box-shadow: none; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel a::before, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel a::after { content: none !important; display: none !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_a2, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_gt { padding: var(--hs-ipy) var(--hs-ipx) !important; margin: 0 !important; border-radius: var(--hs-irad) !important; background: transparent !important; color: var(--hs-title) !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_a2:hover, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_a2:focus-visible, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_gt:hover, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_gt:focus-visible { background: var(--hs-hoverbg) !important; color: var(--hs-hover) !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_gt { margin-bottom: 4px !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_d3 .hs_a, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_grp .hs_a { padding: var(--hs-d3py) var(--hs-d3px) !important; margin: 0 !important; border-radius: var(--hs-d3rad) !important; background: transparent !important; color: var(--hs-d3) !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_d3 .hs_a:hover, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_d3 .hs_a:focus-visible, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_grp .hs_a:hover, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_grp .hs_a:focus-visible { background: var(--hs-d3hb) !important; color: var(--hs-d3h) !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_ic { display: flex; padding: calc(var(--hs-ipy) + 4px) calc(var(--hs-ipx) + 4px) !important; margin: 0 !important; border-radius: calc(var(--hs-irad) + 4px) !important; background: transparent !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_ic:hover { background: var(--hs-hoverbg) !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_card { display: flex; padding: 0 !important; margin: 0 !important; background: transparent !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_more { display: flex; padding: 0 !important; background: transparent !important; color: var(--hs-accent) !important; }

/* side — 왼쪽 이미지 1장 + 오른쪽 세로 메뉴 (이미지 폭 = --hs-simgw · 1뎁스마다 [설정]) */
/* ★1127 모양별 크기 — 이미지 폭 --hs-simgw · 최소 높이 --hs-simgh · 이미지↔메뉴 간격 --hs-sgap · 이미지 둥글기 --hs-srad (설정 창 [모양별 크기] · 비우면 기본) */
.hs_siderow { display: flex; align-items: stretch; gap: var(--hs-sgap, 16px); }
.hs_siderow > .hs_grid { flex: 1 1 auto; min-width: 150px; align-content: start; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel .hs_simg { display: block; flex: 0 0 var(--hs-simgw, 200px); width: var(--hs-simgw, 200px); min-height: var(--hs-simgh, 140px); position: relative; padding: 0 !important; margin: 0 !important;
  border-radius: var(--hs-srad, max(4px, calc(var(--hs-rad) - 4px))) !important; overflow: hidden; background: var(--hs-bg2) !important; }
/* 사진 높이 = 오른쪽 메뉴 높이 (최소 --hs-simgh) · ★1127 2뎁스에 올리면 그 항목 사진이 위/아래에서 미끄러져 들어옴(JS translateY) · 확대는 scale 따로 */
.hs_simg img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), scale .5s ease; }
.hs_simg:hover img { scale: 1.04; }
@media (prefers-reduced-motion: reduce) { .hs_simg img { transition: none; } }

/* ★ 1뎁스 마우스 올림 표시 (드롭다운2 처럼) — nav 클래스 hs-d1-line | hs-d1-dot | hs-d1-pill · 색 --hs-d1c(비우면 포인트색) · 두께 --hs-d1th · 위치 --hs-d1off
     켜짐 = 마우스 올림 또는 말풍선이 열려 있는 메뉴(li.hs-on) */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hy-shift { --hs-d1c: var(--primary, #f0473e); --hs-d1th: 2px; --hs-d1off: 8px; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell > a, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell > a, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell > a { position: relative; isolation: isolate; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell > a::after { content: "" !important; display: block !important; position: absolute; pointer-events: none; transition: transform .25s ease, opacity .25s ease, width .25s ease; }
/* 밑줄 — 가운데에서 양옆으로 */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell > a::after { left: 0; right: 0; top: calc(50% + .72em + var(--hs-d1off)); bottom: auto; width: auto; height: var(--hs-d1th); border-radius: var(--hs-d1th); background: var(--hs-d1c) !important; transform: scaleX(0); transform-origin: 50% 50%; opacity: 1; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell:hover > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell.hs-on > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell > a:focus-visible::after { transform: scaleX(1); }
/* 점 — 글자 아래 가운데 */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell > a::after { left: 50%; right: auto; top: calc(50% + .72em + var(--hs-d1off)); bottom: auto; width: calc(var(--hs-d1th) * 3); height: calc(var(--hs-d1th) * 3); margin-left: calc(var(--hs-d1th) * -1.5); border-radius: 50%; background: var(--hs-d1c) !important; transform: scale(0); opacity: 0; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell:hover > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell.hs-on > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell > a:focus-visible::after { transform: scale(1); opacity: 1; }
/* 알약 배경 — 글자 뒤 둥근 판 */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell > a::after { left: -14px; right: -14px; top: 50%; bottom: auto; height: 2.1em; margin-top: -1.05em; width: auto; border-radius: 999px; background: var(--hs-d1c) !important; z-index: -1; transform: scale(.85); opacity: 0; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell:hover > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell.hs-on > a::after, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell > a:focus-visible::after { transform: none; opacity: 1; }
/* 올렸을 때 글자 색 (비우면 사이트 그대로) */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-txt > ul.menu > li.cell:hover > a, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-txt > ul.menu > li.cell.hs-on > a { color: var(--hs-d1txt) !important; }

/* ★ 마우스 올림 배경 미끄러지기 (패널 hs_mv) — 항목 자기 배경은 끄고, 상자 .hs_hl 하나가 올린 항목으로 이동 (2뎁스·3뎁스 색·둥글기 따로) */
.hs_c > .hs_hl { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; background: var(--hs-hoverbg); border-radius: var(--hs-irad);
  transition: transform .28s cubic-bezier(.3, .7, .2, 1), width .28s cubic-bezier(.3, .7, .2, 1), height .28s cubic-bezier(.3, .7, .2, 1), opacity .2s ease, background-color .2s ease, border-radius .2s ease; }
.hs_c > .hs_hl.d3 { background: var(--hs-d3hb); border-radius: var(--hs-d3rad); }
.hs_c > .hs_hl.on { opacity: 1; }
.hs_mv .hs_c > .hs_grid, .hs_mv .hs_c > .hs_siderow, .hs_mv .hs_c > .hs_more { position: relative; z-index: 1; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel.hs_mv .hs_a2, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel.hs_mv .hs_gt, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel.hs_mv .hs_ic,
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel.hs_mv .hs_d3 .hs_a, :is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel.hs_mv .hs_grp .hs_a { background: transparent !important; }
@media (prefers-reduced-motion: reduce) { .hs_c > .hs_hl { transition: opacity .2s ease; } }

/* ★ 웹 접근성 — 키보드로 고른 항목 초점 테두리 (마우스 클릭 땐 안 보임 · 색 = 더보기 글자색) */
:is(#hs-x#hs-y#hs-z, html) nav.gnb .hs_panel a:focus-visible { outline: 2px solid var(--hs-accent) !important; outline-offset: -2px !important; }
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hy-shift > ul.menu > li.cell > a:focus-visible { outline: 2px solid var(--hs-d1c) !important; outline-offset: 4px !important; border-radius: 4px; }

/* ★ 1뎁스 표시(밑줄·점·알약)를 고르면 헤더 스킨 원래 밑줄(a:before, 글자 높이 20% 지점)은 숨김 — 두 줄 겹침 방지 · [없음] 이면 원래 그대로
   위치 기준 = 글자 바로 아래 (링크 상자가 헤더 높이만큼 길어도) · 밑줄·점 위치 px 로 위아래 */
:is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-line > ul.menu > li.cell > a::before, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-dot > ul.menu > li.cell > a::before, :is(#hs-x#hs-y#hs-z, html) nav.gnb.hs-d1-pill > ul.menu > li.cell > a::before { display: none !important; content: none !important; }
