

/* 구분 -----------------------------------*/
/* ★ 탭 스타일은 공통 CSS(.hayan_tab_st1)로 제어 - wing_sub_right.php에서 설정 */
/**** pc ****/
@media only all and (min-width:768px) {
.tab_1 .contents-container .sub_stit{width: 100%; float: left; font-size:calc(var(--tit-md-size) * 1); font-weight: 700; line-height: 130%; margin-bottom: 40px; }

.tab_1 .contents-container .tab_area{width: 100%; float: left; overflow: clip; }   /* ★1114 hidden → clip : 안의 sticky(좌메뉴 스택 등) 살림 */
/* 탭 버튼 스타일은 .hayan_tab_st1 공통 CSS 사용 */



/* 화살표 버튼 */
.arrow {
position: absolute;
top: 50%;
transform: translateY(-80%);
width: 24px;
height: 24px;
background: rgba(0,0,0,0.3);
color: #fff;
border: none;
border-radius: 50%;
z-index: 3;
cursor: pointer;
font-size: 14px;
line-height: 24px; display: none
}
.arrow.left { left: 5px; }
.arrow.right { right: 5px; }


}
/**** pc2 ****/
@media all and (max-width:1280px) and (min-width:768px) {
}
/**** 모바일 ****/
@media only all and (max-width:767px) {
.tab_1 .contents-container .sub_stit{width: 100%; float: left; font-size:calc(var(--tit-md-size) * 1); font-weight: 700; line-height: 130%; margin-bottom: 10px; }


.tab_1 .contents-container .tab_area{ width: 100%; float: left; position: relative; overflow: clip;}   /* ★1114 hidden → clip */
/* 모바일 탭 버튼 스타일은 .hayan_tab_st1 공통 CSS 사용 */

.scroll-hidden {
overflow-x: auto;
-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
scrollbar-width: none; /* Firefox */
}

.scroll-hidden::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}  


.scroll-mask {position: relative; padding: 0px 0px}

/* 마스크 효과 */
.scroll-mask::before,
.scroll-mask::after {
content: '';
position: absolute;
top: 0;
width:50px;
height: 70px;
z-index: 2;
pointer-events: none;
}
.scroll-mask::before {
content: '';
position: absolute;
top: 0;
left: -1px;
width: 60px;

background: linear-gradient(to right, #fff 0px, #fff 25px, transparent 40px);
z-index: 2; /* 2026-11-09 9999 → 2 : 서브상단 2뎁스 펼침 메뉴(z-index 100 영역)를 덮던 문제 */
pointer-events: none;
}

.scroll-mask::after {
content: '';
position: absolute;
top: 0;
right:-1px;
width: 40px;

background: linear-gradient(to left, #fff 0px, #fff 25px, transparent 40px);
z-index: 2; /* 2026-11-09 9999 → 2 */
pointer-events: none;
}

/* 화살표 버튼 */
.arrow {
position: absolute;
top:25px;

width: 36px;
height: 36px;
background: rgba(0,0,0,0.5);
color: #fff;
border: none;
border-radius: 50%;
z-index: 3; /* 2026-11-09 9999999 → 3 : 모바일 3뎁스 화살표가 2뎁스 펼침 메뉴를 덮던 문제 */
cursor: pointer;
font-size: 18px;
line-height: 36px;
display: flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.arrow:active {
background: rgba(0,0,0,0.7);
transform: scale(0.95);
}
.arrow.left { left: 5px; }
.arrow.right { right: 5px; }


}
/**** 모바일2 ****/
@media only all and (max-width:400px) {
}
/* 구분 //end -----------------------------------*/



/* 구분 -----------------------------------*/
/* ★ 탭 버튼 스타일(.tab, .tab.on)은 공통 CSS(.hayan_tab_st1)로 제어 */
/**** pc ****/
@media only all and (min-width:768px) {
.tab_1 .tab-content { display: none;  padding: 0px 0PX; width: 100%; float: left }
.tab_1 .tab-content .grid_cont{width: 100%; float: left;display: flex;flex-direction: column;  }
}
/**** 모바일 ****/
@media only all and (max-width:767px) {
.tab_1 .tab-content { display: none;  background-color: #fafafa; padding: 10px 0px; border-radius: 6px;  }
}
/* 구분 //end -----------------------------------*/

.tab_1 .tab-content.active { display: flow-root; }   /* ★1115 block → flow-root : overflow 가 clip 이라 BFC 가 아니게 된 것을 되살림 (안의 float 위젯 높이 포함) */

/* ✅ 탭 링크 스타일 (a 태그 탭) - 공통 CSS와 호환 */
.tab_1 .tab_area .tabs .tab.tab-link {
  text-decoration: none;
  color: inherit;
}


/* 기본 포커스 링/하이라이트 제거 */
.tabs [role="tab"] {
outline: none;
-webkit-tap-highlight-color: transparent;
}
.tabs [role="tab"]:focus { outline: none; box-shadow: none; }
.tabs [role="tab"]::-moz-focus-inner { border: 0; }

/* 키보드 탐색일 때만 보이게 하려면 이 줄 유지/수정, 완전 숨기려면 아예 지우세요 */
.tabs [role="tab"]:focus-visible {
/* 포커스 보일 필요 없으면 다음 두 줄도 주석 처리 또는 삭제 */
outline: 0;
box-shadow: none;
}

/* 크롬의 :focus 표시를 강제로 숨김 (focus-visible 아닐 때) */
.tabs [role="tab"]:focus:not(:focus-visible){
outline: none !important;
box-shadow: none !important;
}

/* ===== 관리자 모드 스타일 (권한 8 이상) ===== */
/* 관리자 모드일 때 스크롤 방지 */
html:has(.tab_admin_mode),
body:has(.tab_admin_mode) {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* tab_1 전체 너비 제한
   ★1114 overflow hidden → clip : hidden 은 스크롤 컨테이너가 되어 안쪽 position:sticky(좌메뉴 스택 왼쪽 메뉴 등)가 모두 죽었음. clip 은 잘라내기만 하고 sticky 가 살아남 */
.tab_1 {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  box-sizing: border-box;
}

.tab_1 .tab_area {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: clip !important;
  /* ★1115 clip 은 hidden 과 달리 float 를 감싸 주지 않아 탭 영역 높이가 탭 버튼 줄(92px)로 주저앉고 그 아래 내용이 통째로 잘렸음(탭1 백지)
     → flow-root 로 BFC 만 되살림 (스크롤 컨테이너가 아니라 안쪽 sticky 는 그대로 동작) */
  display: flow-root !important;
}

.tab_1 .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: clip !important;
}

.tab_1 .tab-content.tab_admin_mode {
  position: relative;
  border: 2px dashed #3b82f6;
  overflow: visible;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.tab_1 .tab-content.tab_admin_mode:hover {
  border-color: #2563eb;
  background-color: rgba(59, 130, 246, 0.03);
}

/* 탭 컨테이너 관리자 뱃지 */
.tab_1 .tab_admin_badge,
.hayan_tab_st1 .tab_admin_badge {
  position: absolute;
  top: 5px;
  right: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab_1 .tab_admin_badge:hover,
.hayan_tab_st1 .tab_admin_badge:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.tab_1 .tab_admin_badge i,
.hayan_tab_st1 .tab_admin_badge i {
  font-size: 12px;
}

/* 모바일에서 관리자 뱃지 */
@media only all and (max-width:767px) {
  .tab_1 .tab_admin_badge,
  .hayan_tab_st1 .tab_admin_badge {
    top: 3px;
    right: 5px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .tab_1 .tab-content.tab_admin_mode {
    padding: 15px;
  }
}




/* ===== 탭 스타일 (탭설정 > 탭 스타일, tab_style.php · resources/js/tab_style.js) 2026-11-09 ===== */
/* 대상: .ht-managed (서브 섹션 탭) — 서브상단 3뎁스 탭은 그대로 */
.hayan_tab_st1.ht-managed > .contents-container { position: relative; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap { display: none; }

/* 화살표 끔 / 켬 */
.hayan_tab_st1.ht-managed.ht-arrows-off > .contents-container > .arrow { display: none !important; }
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .arrow {
  display: flex !important; align-items: center; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0; margin: 0;
  background: rgba(0,0,0,0.45); color: #fff; border: none; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer; z-index: 3;
  transition: opacity .2s;
}
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .arrow.left { left: 0; }
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .arrow.right { right: 0; }
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .arrow.is-edge { opacity: .35; }

/* 화살표가 보이면 첫 탭 앞·마지막 탭 뒤에 화살표 폭만큼 여백 (스크롤 중에는 화살표 밑으로 지나감) */
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .ht_list.tabs {
  padding-left: var(--ht-gl, 46px) !important;
  padding-right: 0 !important;
  justify-content: flex-start !important;
  scroll-padding-left: var(--ht-gl, 46px);
  scroll-padding-right: var(--ht-gr, 46px);
}
.hayan_tab_st1.ht-managed.ht-arrows-on > .contents-container > .ht_list.tabs::after {
  content: ''; display: block; flex: 0 0 var(--ht-gr, 46px); width: var(--ht-gr, 46px); height: 1px;
}

/* 넘칠 때 가운데 정렬이면 첫 탭이 잘려 스크롤로도 못 감 → 넘칠 때만 왼쪽부터 */
.hayan_tab_st1.ht-managed.ht-overflow > .contents-container > .ht_list.tabs { justify-content: flex-start !important; }

/* 넘치지 않으면 좌우 흐림(마스크)도 숨김 */
.hayan_tab_st1.ht-managed:not(.ht-overflow)::before,
.hayan_tab_st1.ht-managed:not(.ht-overflow)::after,
.hayan_tab_st1.ht-managed.ht-at-start::before,
.hayan_tab_st1.ht-managed.ht-at-end::after { display: none !important; }

/* 셀렉트 박스 = 레이어 셀렉트 (서브상단 1·2뎁스 펼침 메뉴 톤) — 높이·라운드·글자 크기는 탭설정에서 (--ht-sel-h/r/fs) */
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto clamp(15px, calc(1.17vw + 11.25px), 30px); z-index: 5;
}
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap.is-open { z-index: 20; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_btn {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
  width: 100% !important; height: var(--ht-sel-h, 52px) !important; min-height: 0 !important; padding: 0 18px 0 20px !important; margin: 0 !important;
  border: 1px solid var(--dynamic-point-color, var(--primary, #f0473e)) !important; border-radius: var(--ht-sel-r, 8px) !important;
  background: #fff !important; color: var(--dynamic-point-color, var(--primary, #f0473e)) !important; box-shadow: none !important;
  font-family: inherit; font-size: var(--ht-sel-fs, 16px) !important; font-weight: 600; line-height: 1.2 !important; text-align: left;
  cursor: pointer; box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_btn:focus-visible { outline: 2px solid var(--dynamic-point-color, var(--primary, #f0473e)); outline-offset: 2px; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_btn .ht_sel_txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_btn .ht_sel_arr {
  flex: 0 0 auto; width: 8px; height: 8px; margin: 0 4px 4px 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap.is-open > .ht_sel_btn .ht_sel_arr { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ht-sel-r, 8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; box-sizing: border-box;
}
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list[hidden] { display: none !important; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list > li {
  padding: 12px 16px; margin: 0; border-radius: max(0px, calc(var(--ht-sel-r, 8px) - 2px));
  font-size: var(--ht-sel-fs, 16px); line-height: 1.35; color: #333; cursor: pointer; list-style: none; outline: none;
}
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list > li + li { margin-top: 2px; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list > li:hover,
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list > li:focus { background: #f3f4f6; }
.hayan_tab_st1.ht-managed > .contents-container > .ht_select_wrap > .ht_sel_list > li.on { background: var(--dynamic-point-color, var(--primary, #f0473e)); color: #fff; font-weight: 600; }

/* PC (768px 이상) */
@media (min-width: 768px) {
  .hayan_tab_st1.ht-managed.ht-pc-wrap > .contents-container > .ht_list.tabs { flex-wrap: wrap !important; overflow: visible !important; height: auto !important; row-gap: 8px; }
  .hayan_tab_st1.ht-managed.ht-pc-wrap,
  .tab_1 .contents-container .hayan_tab_st1.ht-managed.ht-pc-wrap { overflow: visible !important; height: auto !important; }
  .hayan_tab_st1.ht-managed.ht-pc-select > .contents-container > .ht_list.tabs { display: none !important; }
  .hayan_tab_st1.ht-managed.ht-pc-select > .contents-container > .ht_select_wrap { display: block; }
  .hayan_tab_st1.ht-managed.ht-pc-select,
  .hayan_tab_st1.ht-managed.ht-pc-select > .contents-container { overflow: visible !important; }
}
/* 모바일 (767px 이하) */
@media (max-width: 767px) {
  .hayan_tab_st1.ht-managed.ht-mo-wrap > .contents-container > .ht_list.tabs { flex-wrap: wrap !important; overflow: visible !important; height: auto !important; row-gap: 8px; }
  .hayan_tab_st1.ht-managed.ht-mo-wrap,
  .tab_1 .contents-container .hayan_tab_st1.ht-managed.ht-mo-wrap { overflow: visible !important; height: auto !important; }
  .hayan_tab_st1.ht-managed.ht-mo-wrap > .contents-container > .ht_list.tabs .ht_btn { white-space: normal !important; }
  .hayan_tab_st1.ht-managed.ht-mo-select > .contents-container > .ht_list.tabs { display: none !important; }
  .hayan_tab_st1.ht-managed.ht-mo-select > .contents-container > .ht_select_wrap { display: block; max-width: none; }
  .hayan_tab_st1.ht-managed.ht-mo-select,
  .hayan_tab_st1.ht-managed.ht-mo-select > .contents-container { overflow: visible !important; }
}
