/*
 * 바탕: 공통 보정, 본문 글자(원본 인라인 크기 → 글자 단계), 버튼 글자, 큰 섹션 제목, 줄 길이, 글머리 목록
 * 색 · 글자 크기 · 간격 값은 tokens.css 의 --set-* 를 씀. 원본과 달라진 점은 구획마다 적어 둠.
 */
/* ---------- 공통 ---------- */
.setsemi-icon { display: inline-block; vertical-align: -0.125em; flex: none; }
.setsemi-skip { position: absolute; left: -9999px; top: 0; z-index: 20000; padding: 12px 16px; background: var(--set-color-black); color: var(--set-color-white); font-size: var(--set-fs-small); }
.setsemi-skip:focus { left: 0; }
#setsemi-content { position: relative; }
.setsemi-js [hidden] { display: none !important; }

/* 이미지 위젯: 원본은 스크립트가 치수를 잰 뒤 보이게 했음. 칸 폭을 넘지 않게 줄임 */
.widget.image img.org_image { visibility: visible; max-width: 100%; height: auto; }

/* ---------- 글머리 목록 (원본은 문단 앞에 "•" 글자를 직접 쳤음. 생성할 때 setsemi-bullet 로 바꿈) ---------- */
p.setsemi-bullet { position: relative; padding-left: 0.95em; }
p.setsemi-bullet::before { content: ""; position: absolute; left: 0.18em; top: 0.72em; width: 0.26em; height: 0.26em; border-radius: 50%; background: currentColor; }
p.setsemi-bullet + p.setsemi-bullet { margin-top: 0.45em !important; }

/* ===== 글자 (서체 · 크기 · 굵기) ===== */
/* ---------- 기본 ---------- */
body.setsemi,
body.setsemi * { font-family: var(--set-font-body) !important; overflow-wrap: break-word; letter-spacing: normal; }
body.setsemi { font-size: var(--set-fs-body); line-height: 1.6; font-feature-settings: "kern" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.setsemi em, body.setsemi i:not([class]), body.setsemi address { font-style: normal; }
body.setsemi h1, body.setsemi h2, body.setsemi h3, body.setsemi h4 { text-wrap: balance; }
body.setsemi .fr-view p { text-wrap: pretty; }

/* ---------- 본문 글 (원본 인라인 크기 → 역할 단계) ---------- */
/* 크기를 따로 주지 않은 글(원본 기본 24px)도 본문 단계로 */
body.setsemi.doz_sys .fr-view,
body.setsemi.doz_sys .fr-view p,
body.setsemi.doz_sys .fr-view li { font-size: var(--set-fs-body); line-height: 1.6; }
body.setsemi.doz_sys [style*="font-size: 24px"] { font-size: var(--set-fs-body) !important; line-height: 1.6 !important; }
body.setsemi.doz_sys [style*="font-size: 30px"] { font-size: var(--set-fs-lead) !important; line-height: 1.5 !important; }
body.setsemi.doz_sys [style*="font-size: 22px"],
body.setsemi.doz_sys [style*="font-size: 20px"] { font-size: var(--set-fs-small) !important; }
body.setsemi.doz_sys [style*="font-size: 18px"] { font-size: var(--set-fs-caption) !important; line-height: 1.7 !important; }

/* 제목 단계: 좁은 대문자 */
body.setsemi.doz_sys [style*="font-size: 72px"], body.setsemi.doz_sys [style*="font-size: 72px"] *,
body.setsemi.doz_sys [style*="font-size: 64px"], body.setsemi.doz_sys [style*="font-size: 64px"] *,
body.setsemi.doz_sys [style*="font-size: 60px"], body.setsemi.doz_sys [style*="font-size: 60px"] *,
body.setsemi.doz_sys [style*="font-size: 48px"], body.setsemi.doz_sys [style*="font-size: 48px"] *,
body.setsemi.doz_sys [style*="font-size: 36px"], body.setsemi.doz_sys [style*="font-size: 36px"] *,
body.setsemi.doz_sys [style*="font-size: 32px"], body.setsemi.doz_sys [style*="font-size: 32px"] *,
body.setsemi.doz_sys [style*="font-size: 26px"], body.setsemi.doz_sys [style*="font-size: 26px"] * { font-family: var(--set-font-display) !important; text-transform: uppercase; }
body.setsemi.doz_sys [style*="font-size: 72px"] { font-size: var(--set-fs-h2) !important; font-weight: 700; line-height: 1.05 !important; letter-spacing: 0.02em; }
body.setsemi.doz_sys [style*="font-size: 64px"] { font-size: var(--set-fs-display) !important; font-weight: 600; line-height: 1.06 !important; letter-spacing: 0.005em; }
body.setsemi.doz_sys [style*="font-size: 60px"] { font-size: var(--set-fs-h1) !important; font-weight: 600; line-height: 1.05 !important; letter-spacing: 0.005em; }
body.setsemi.doz_sys [style*="font-size: 48px"] { font-size: var(--set-fs-h1) !important; font-weight: 600; line-height: 1.1 !important; letter-spacing: 0.01em; }
body.setsemi.doz_sys [style*="font-size: 36px"] { font-size: var(--set-fs-h3) !important; font-weight: 600; line-height: 1.15 !important; letter-spacing: 0.015em; }
body.setsemi.doz_sys [style*="font-size: 32px"],
body.setsemi.doz_sys [style*="font-size: 26px"] { font-size: var(--set-fs-h4) !important; font-weight: 600; line-height: 1.2 !important; letter-spacing: 0.02em; }
/* 제목 안의 굵은 글씨는 단계가 정한 굵기를 따름 (원본은 모두 bold) */
body.setsemi.doz_sys [style*="font-size: 72px"] strong { font-weight: 700; }
body.setsemi.doz_sys [style*="font-size: 64px"] strong, body.setsemi.doz_sys [style*="font-size: 60px"] strong,
body.setsemi.doz_sys [style*="font-size: 48px"] strong, body.setsemi.doz_sys [style*="font-size: 36px"] strong,
body.setsemi.doz_sys [style*="font-size: 32px"] strong, body.setsemi.doz_sys [style*="font-size: 26px"] strong { font-weight: 600; }
/* 제목이 든 문단의 줄 높이 (원본은 문단에 1.15 를 인라인으로 줌) */
body.setsemi .fr-view p:has(> span[style*="font-size: 64px"]), body.setsemi .fr-view p:has(> span > span[style*="font-size: 64px"]),
body.setsemi .fr-view p:has([style*="font-size: 72px"]), body.setsemi .fr-view p:has([style*="font-size: 60px"]),
body.setsemi .fr-view p:has([style*="font-size: 48px"]) { line-height: 1.05 !important; text-wrap: balance; }

/* 붉은 영문 라벨 (COMPANY, The Highest Performance): 좁은 대문자에 넓은 자간 */
body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"],
body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"] * { font-family: var(--set-font-display) !important; text-transform: uppercase; font-weight: 600; }
body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"] [style*="font-size"],
body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"][style*="font-size"],
body.setsemi.doz_sys .fr-view [style*="font-size"] > span[style*="rgb(205, 19, 22)"] { font-size: var(--set-fs-h5) !important; letter-spacing: 0.16em !important; line-height: 1.3 !important; }
@media (max-width: 991px) {
	body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"] [style*="font-size"],
	body.setsemi.doz_sys .fr-view span[style*="rgb(205, 19, 22)"][style*="font-size"],
	body.setsemi.doz_sys .fr-view [style*="font-size"] > span[style*="rgb(205, 19, 22)"] { font-size: var(--set-fs-body-sm) !important; }
}

/* 라벨(아이브로우)은 아래 큰 제목의 글자 왼쪽 여백만큼 살짝 들여 씀 */
body.setsemi.doz_sys .fr-view p > span[style*="rgb(205, 19, 22)"] { display: inline-block; padding-left: 0.2em; }
/* 히어로의 보조 문장: 한 줄로 길게 늘어지지 않게 폭을 잡아 두 줄로 나눔 */
body.setsemi .visual_section .text-wrap p:has(> span[style*="font-size: 24px"]) { max-width: 31em; text-wrap: balance; }
body.setsemi.doz_sys .visual_section .text-wrap [style*="font-size: 24px"] { font-size: var(--set-fs-body) !important; line-height: 1.5 !important; }
@media (max-width: 991px) {
	body.setsemi.doz_sys .visual_section .text-wrap [style*="font-size: 24px"] { font-size: var(--set-fs-body-sm) !important; }
}

/* ---------- 버튼 ---------- */
body.setsemi .btn, body.setsemi .btn * { font-family: var(--set-font-display) !important; }
body.setsemi .btn { font-size: var(--set-fs-body-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- 큰 섹션 제목 (원본 72px: 홈의 Business · Product · PR Center · Partner, 비전 & 미션의 Vision · Mission) ----------
   붉은 선은 원본의 선 위젯(칸 폭에 맞춰져 제목보다 길거나 짧았음) 대신 제목 글자에 붙여 그림: 폭은 글자 폭, 선과 글자 사이는 14px 로 같음 */
body.setsemi.doz_sys .fr-view [style*="font-size: 72px"] { display: inline-block; position: relative; padding-top: 19px; }
body.setsemi.doz_sys .fr-view [style*="font-size: 72px"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--set-color-brand); }
body.setsemi .section_wrap:has(.fr-view [style*="font-size: 72px"]) [doz_type="widget"]:has(> ._widget_data[data-widget-type="hr"]) { display: none; }
/* 사진 위에 놓인 제목 섹션(Vision · Mission)의 위 여백을 같게 맞춤 (원본은 40px 와 80px 로 달랐음) */
body.setsemi .section_wrap:has(> .section_bg[style*="background-image"]):has(.fr-view [style*="font-size: 72px"]) main > .inside > .doz_row:first-child [style*="height:80px"] { height: 40px !important; }
/* 선 위젯과 여백 위젯만 든 행은 통째로 뺌 (선만 감추면 같은 행의 여백 위젯이 남아 제목 위가 필요 이상으로 벌어졌음).
   글이나 버튼이 같이 든 행(홈 Product)은 빼지 않음 */
body.setsemi .section_wrap:has(.fr-view [style*="font-size: 72px"]) main > .inside > .doz_row:has([data-widget-type="hr"]):not(:has(._widget_data:not([data-widget-type="hr"]):not([data-widget-type="padding"]))) { display: none !important; }

/* ---------- 줄 길이: 본문 크기의 문단은 한 줄이 38em(영문 약 85~90자)을 넘지 않게 묶고 줄 길이를 고르게 나눔 ----------
   원본은 본문 폭(1424px) 가득 한 줄로 늘어지는 문장이 많았음 (전 화면 조사에서 35개). 제목 크기의 문단(26px 이상)은 빼고,
   가운데·오른쪽 정렬 문단은 묶인 상자도 같은 쪽에 붙임 */
body.setsemi .fr-view p:not(:has([style*="font-size: 26px"], [style*="font-size: 32px"], [style*="font-size: 48px"], [style*="font-size: 60px"], [style*="font-size: 64px"], [style*="font-size: 72px"])) { max-width: 38em; text-wrap: balance; }
body.setsemi .fr-view p[style*="text-align: center"] { margin-left: auto; margin-right: auto; }
body.setsemi .fr-view p[style*="text-align: right"] { margin-left: auto; }

/* ===== 모바일 ===== */
/* 낱말 중간에서 줄이 끊기지 않게 함. 원본의 모바일 CSS 는 한글에 맞춘 word-break: break-all 을 곳곳에 두었음 */
body.setsemi .fr-view, body.setsemi .fr-view *, body.setsemi .board_view *, body.setsemi .li_board * { word-break: keep-all !important; overflow-wrap: break-word; }

/* ---------- 페이지 맨 끝의 빈 섹션: 여백 위젯만 든 마지막 섹션(원본 120px)을 줄임 ----------
   본문 마지막 내용과 푸터 사이가 원본에서도 200px 안팎으로 벌어져 있었음 */
#setsemi-content > .section_wrap:last-child:not(:has(._widget_data:not([data-widget-type="padding"]))) ._widget_data[data-widget-type="padding"] [style*="height"] { height: 32px !important; }

/* ---------- 작은 라벨(아이브로우) + 큰 제목 ----------
   원본은 굵은 검은 선(8px) 아래에 굵은 본문 글자 라벨을 두었음. 선을 빼고, 라벨을 붉은 짧은 선이 앞에 붙은 좁은 대문자 글자로 바꿈
   (상단 배너의 붉은 라벨과 같은 결) */
/* 선택자를 길게 쓴 것은 원본의 모바일 규칙(.doz_sys .pc_section .doz_row { display: flex !important })보다 앞서기 위함 */
.setsemi-eyebrow-rule, body.doz_sys .section_wrap .doz_row.setsemi-eyebrow-rule { display: none !important; }
body.setsemi.doz_sys .fr-view p.setsemi-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--set-space-2); color: var(--set-color-brand); font-size: var(--set-fs-small) !important; line-height: 1.3 !important; }
body.setsemi.doz_sys .fr-view p.setsemi-eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--set-color-brand); }
body.setsemi.doz_sys .fr-view p.setsemi-eyebrow, body.setsemi.doz_sys .fr-view p.setsemi-eyebrow * { font-family: var(--set-font-display) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }

/* ---------- 공통 좌우 여백 ----------
   본문 · 헤더 · 히어로 글 · 푸터가 같은 선에서 시작하도록 좌우 여백을 하나의 값(--set-page-x)으로 맞춤.
   원본은 8px(헤더 0 ~ 15px)라 창이 본문 폭보다 좁으면 로고와 글이 화면 가장자리에 붙었음 */
@media (min-width: 992px) {
	body.setsemi.doz_sys .inside,
	body.setsemi.doz_sys .visual_section .header-content,
	body.setsemi #doz_header .inline-inside { padding-left: var(--set-page-x) !important; padding-right: var(--set-page-x) !important; }
}
