/*
 * 하위 페이지의 머리: 상단 배너, 하위 메뉴 탭, 경로 표시, 페이지 제목 묶음
 * 색 · 글자 크기 · 간격 값은 tokens.css 의 --set-* 를 씀. 원본과 달라진 점은 구획마다 적어 둠.
 */
/* ---------- 하위 메뉴 탭: 스크롤해도 화면 위쪽에 붙어 있음 (원본은 페이지와 함께 올라감) ----------
   탭이 고정 헤더 바로 아래에 닿게 섹션의 위 여백만큼 더 올려 붙임. 헤더 높이와 여백은 site.js 가 변수에 적음 */
@media (min-width: 992px) {
	.section_wrap:has(.sub-menu.menu-horizontal) { position: sticky; top: calc(var(--setsemi-header-offset, 0px) - var(--setsemi-tabs-pad-top, 0px)); z-index: 90; background: var(--set-color-white); }
	.section_wrap.setsemi-tabs-stuck { clip-path: inset(0 0 var(--setsemi-tabs-pad-bottom, 0px) 0); }
	/* 탭은 붙기 전과 붙은 뒤가 같은 모양: 상자 모양 버튼이 아니라 선으로만 나눈 띠.
	   위아래 가로 선은 화면 폭 전체(섹션의 ::before, ::after), 항목 사이는 세로 선, 지금 페이지는 채운 상자 대신 붉은 글자.
	   테두리 두께는 그대로 두고 색만 바꿔 원본과 배치가 같음. 원본 규칙이 위젯 ID 로 걸려 있어 !important 가 필요함.
	   가로 선의 위치는 site.js 가 잰 값을 쓰므로 값이 들어온 뒤(setsemi-tabs-ready)에 그림. 붙어 있는 동안 위 선은 헤더의 아래 선이 대신함 */
	.section_wrap.setsemi-tabs-ready::before,
	.section_wrap.setsemi-tabs-ready::after { content: ""; display: block; position: absolute; left: 0; width: 100%; height: 1px; z-index: 1; background: var(--set-color-line-strong); pointer-events: none; }
	.section_wrap.setsemi-tabs-ready::before { top: var(--setsemi-tabs-pad-top, 0px); }
	.section_wrap.setsemi-tabs-ready::after { top: calc(var(--setsemi-tabs-pad-top, 0px) + var(--setsemi-tabs-height, 0px) - 1px); }
	.section_wrap.setsemi-tabs-stuck::before { display: none; }
	.section_wrap .sub-menu.menu-horizontal > ul > li { border-top-color: transparent !important; border-bottom-color: transparent !important; background: transparent !important; }
	.section_wrap .sub-menu.menu-horizontal > ul > li:first-child { border-left-color: transparent !important; }
	.section_wrap .sub-menu.menu-horizontal > ul > li:last-child { border-right-color: transparent !important; }
	.section_wrap .sub-menu.menu-horizontal > ul > li.active > a { color: var(--set-color-brand) !important; }
}
/* 좁은 화면에서는 원본처럼 이 탭이 나오지 않음 (sub_menu_hide) */

/* ---------- 경로 표시 (Home › Company › Vision & Mission) ----------
   원본은 옅은 회색(#c8c8c8) 글자와 글자 ">" 였음. 읽히는 회색으로 올리고 화살표는 SVG (Lucide chevron-right) */
/* 왼쪽 2px: 아래 제목 글자의 왼쪽 끝과 눈으로 맞추는 값. 아래 6px: 제목과의 사이 */
.setsemi-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 0; margin: 0 0 6px; padding: 0 0 0 2px; list-style: none; font-size: var(--set-fs-micro); line-height: 1; }
/* li 의 글자 크기는 사이트 공통 규칙(20px)이 이겨서 따로 못 박음 */
body.setsemi .setsemi-breadcrumb li, body.setsemi .setsemi-breadcrumb li > a, body.setsemi .setsemi-breadcrumb li > span { font-size: var(--set-fs-micro) !important; line-height: 1 !important; }
.setsemi-breadcrumb li { display: inline-flex; align-items: center; height: 18px; color: var(--set-color-soft); }
.setsemi-breadcrumb li > a { display: inline-flex; align-items: center; }
.setsemi-breadcrumb li a, .setsemi-breadcrumb li a:hover, .setsemi-breadcrumb li a:focus { color: var(--set-color-soft); text-decoration: none; }
.setsemi-breadcrumb li[aria-current="page"] { color: var(--set-color-ink); font-weight: 500; }
/* 글자의 눈에 보이는 가운데(대문자와 소문자 높이의 중간)는 글자 상자의 가운데보다 1px 아래라 아이콘을 그만큼 내림 */
.setsemi-breadcrumb svg { display: block; flex: none; position: relative; top: 1px; }
.setsemi-breadcrumb-sep { margin: 0 6px; color: #a3a3a3; }
/* 경로 표시 위쪽 공간: 탭 아래의 여백 행을 빼서 줄임 */
.section_wrap:has(.sub-menu.menu-horizontal) main > .inside > .doz_row:last-child:has([data-widget-type="padding"]) { display: none; }

/* ---------- 페이지 제목 묶음 (경로 · 제목 · 설명): 아래의 선을 빼고 여백을 줄임 ----------
   원본은 설명 아래에 #999 선이 있고 그 아래에 30px 여백 위젯이 있었음 */
.section_wrap:has(.setsemi-breadcrumb) [doz_type="widget"]:has(> ._widget_data[data-widget-type="hr"]) { display: none; }
.section_wrap:has(.setsemi-breadcrumb) ._widget_data[data-widget-type="padding"] [style*="height:30px"] { height: 6px !important; }

/* ---------- 하위 메뉴 탭: 위쪽 빈 공간을 없애 배너 바로 아래에 붙임 (원본은 위아래에 여백 행이 있었음) ---------- */
.section_wrap:has(.sub-menu.menu-horizontal) { padding-top: 0 !important; }
.section_wrap:has(.sub-menu.menu-horizontal) main > .inside > .doz_row:first-child:has([data-widget-type="padding"]) { display: none; }
.section_wrap:has(.sub-menu.menu-horizontal) .widget:has(> .sub-menu.menu-horizontal) { margin-top: 0 !important; }
/* 배너에 바로 닿으므로 위쪽 가로 선은 그리지 않음 */
.section_wrap.setsemi-tabs-ready::before { display: none !important; }

/* ---------- 페이지 맨 위 배너의 글: 등장 효과 없이 처음부터 보임 ----------
   원본 CSS 는 등장 효과가 걸린 위젯을 효과가 시작될 때까지 숨겨 둠. site.js 가 배너에서는 효과를 걸지 않으므로 숨김도 여기서 풂 */
#setsemi-content > .section_first ._widget_data[data-widget-anim],
#setsemi-content > .section_first .wg_animated { opacity: 1 !important; visibility: visible !important; animation: none !important; transform: none !important; }

/* ===== 글자 (서체 · 크기 · 굵기) ===== */
/* ---------- 하위 메뉴 탭, 푸터 메뉴 ---------- */
body.setsemi .sub-menu.menu-horizontal li a,
body.setsemi .sub-menu.menu-horizontal li a * { font-family: var(--set-font-display) !important; }
body.setsemi .sub-menu.menu-horizontal li a { font-size: var(--set-fs-body-sm); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
body.setsemi .sub-menu.menu-vertical li a { font-size: var(--set-fs-small); letter-spacing: 0; line-height: 1.5; }
body.setsemi.doz_sys .section_wrap[style*="#333333"] .fr-view [style*="font-size: 22px"],
body.setsemi.doz_sys .section_wrap[style*="#333333"] .fr-view [style*="font-size: 22px"] * { font-family: var(--set-font-display) !important; text-transform: uppercase; }
body.setsemi.doz_sys .section_wrap[style*="#333333"] .fr-view [style*="font-size: 22px"] { font-size: var(--set-fs-body-sm) !important; font-weight: 600; letter-spacing: 0.1em; }
body.setsemi .footer-section, body.setsemi .footer-company-info__item { font-size: var(--set-fs-caption); line-height: 1.6; }
@media (max-width: 991px) {
	body.setsemi .sub-menu.menu-horizontal li a { font-size: var(--set-fs-body-sm); }
	body.setsemi .sub-menu.menu-vertical li a { font-size: var(--set-fs-small); }
}

/* ---------- 하위 페이지 상단 배너: 헤더와 함께 한 단계 작게 (아이브로우 22 → 19px, 제목 56 → 46px, 설명 20 → 18px) ---------- */
body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) [style*="font-size: 24px"] { font-size: var(--set-fs-body-sm) !important; }
body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) [style*="font-size: 60px"] { font-size: var(--set-fs-h1) !important; }
body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) .fr-view p:not(:has([style*="font-size"])) { font-size: var(--set-fs-body-sm) !important; }
@media (max-width: 991px) {
	body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) [style*="font-size: 24px"] { font-size: var(--set-fs-small) !important; }
	body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) [style*="font-size: 60px"] { font-size: var(--set-fs-h1) !important; }
	body.setsemi.doz_sys #setsemi-content > .section_first:not(.visual_section) .fr-view p:not(:has([style*="font-size"])) { font-size: var(--set-fs-body-sm) !important; }
}

/* ===== 모바일 ===== */
@media (max-width: 991px) {
	/* 하위 메뉴 탭: 원본은 모바일에서 감췄고(sub_menu_hide) 같은 묶음의 다른 페이지로 가려면 메뉴 서랍을 열어야 했음.
	   한 줄로 두고 옆으로 밀어 보는 띠로 보여 주고, 스크롤해도 헤더 아래에 붙여 둠. 지금 페이지의 탭은 site.js 가 보이는 자리로 맞춤 */
	.section_wrap:has(.sub-menu.menu-horizontal) { position: sticky; top: var(--set-header-h); z-index: 90; background: var(--set-color-white); border-bottom: 1px solid var(--set-color-line); }
	.section_wrap:has(.sub-menu.menu-horizontal) main > .inside { padding-left: 0 !important; padding-right: 0 !important; }
	.section_wrap:has(.sub-menu.menu-horizontal) main > .inside > .doz_row { margin-left: 0 !important; margin-right: 0 !important; }
	.section_wrap:has(.sub-menu.menu-horizontal) main > .inside > .doz_row > .col-dz { padding-left: 0 !important; padding-right: 0 !important; }
	.sub-menu.menu-horizontal, .sub-menu.menu-horizontal.sub_menu_hide { display: block !important; }
	.sub-menu.menu-horizontal > ul { display: flex !important; flex-wrap: nowrap; width: auto !important; margin: 0; padding: 0 7px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.sub-menu.menu-horizontal > ul::-webkit-scrollbar { display: none; }
	.sub-menu.menu-horizontal > ul > li { display: block !important; flex: 0 0 auto; width: auto !important; float: none !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
	.sub-menu.menu-horizontal > ul > li > a { display: block; padding: 14px 10px !important; white-space: nowrap; font-size: var(--set-fs-body-sm) !important; line-height: 1.25 !important; }
	.sub-menu.menu-horizontal > ul > li.active > a { color: var(--set-color-brand) !important; box-shadow: inset 0 -2px 0 var(--set-color-brand); }
	.section_wrap:has(.sub-menu.menu-horizontal) .widget:has(> .sub-menu.menu-horizontal) { margin: 0 !important; }
}
@media (max-width: 991px) {
	/* 상단 배너: 좁은 화면에서는 사진의 밝은 부분이 글자 뒤에 오므로 조금 어둡게 덮어 글이 읽히게 함 */
	#setsemi-content > .section_first:not(.visual_section)::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(6, 10, 22, 0.38); pointer-events: none; }
	#setsemi-content > .section_first:not(.visual_section) > main { position: relative; z-index: 1; }
}
