/* ══════════════════════════════════════
   윤리경영 (ethics.html)
   GP: 1920px / GM: 360px
══════════════════════════════════════ */




/* ── 탭 모바일 전용 요소 (기본은 데스크톱 상태) ── */
.eth-tab-mob-br {
    display: none;
}

.eth-tab-mob-text {
    display: none;
}

.eth-tab-desk-text {
    display: inline;
}




/* ── 도입 섹션 (sticky scroll animation) ── */
.eth-intro-outer {
    position: relative;
    background: #fff;
}

.eth-intro-inner {
    position: relative;
    width: 100%;
    max-width: 1860px; /* 검수 0727(Figma): 도입 배너 콘텐츠 1860(좌우 30px) + 중앙정렬 */
    margin: 0 auto;
    background: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

.eth-intro-text-section {
    padding: 100px 30px 60px;
    text-align: center;
}

.eth-intro-title {
    font-size: clamp(24px, 3.125vw, 60px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #E9E9E9;
    white-space: nowrap;
    text-align: center;
}

.eth-intro-title .char {
    transition: color 0.4s ease;
}

.eth-intro-title .char.active {
    color: #363636;
}

.eth-intro-image-section {
    display: flex;
    justify-content: center;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

.eth-intro-image-wrapper {
    width: 100%;
    max-width: 1860px;
    height: clamp(300px, 28.125vw, 540px);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.eth-intro-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eth-intro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eth-intro-overlay-text {
    font-size: clamp(16px, 1.5625vw, 30px);
    font-weight: 500; /* 검수 0703: 상단 배경 위 오버레이 텍스트 Medium 일괄적용 */
    color: #fff;
    opacity: 0.9; /* 검수 0720: 히어로 오버레이 문구 투명도 90% 일괄 */
    line-height: 1.6;
    margin: 0;
    text-align: center;
    word-break: keep-all;
}

.eth-intro-overlay-text--mobile {
    display: none;
}

/* ── 윤리강령 (7가지 원칙) ── */
.eth-principles-section {
    background: #fff;
    padding: clamp(40px, 5.21vw, 100px) clamp(16px, 6.25vw, 120px);
}

.eth-principles-inner {
    max-width: 1680px; /* 검수 0727(Figma): 콘텐츠 1680(섹션 좌우 패딩 120 안쪽) + 중앙정렬 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eth-section-label {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #7a7a7a;
}

.eth-principles-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.eth-principles-left {
    flex: 0 1 800px;
    max-width: 800px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eth-principles-title {
    font-size: clamp(30px, 2.6vw, 50px);
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

.eth-principles-img-wrap {
    width: 100%;
    max-width: 672px;
    height: clamp(250px, 19.54vw, 375px);
    overflow: hidden;
    border-radius: 20px;
}

.eth-principles-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eth-principles-right {
    flex: 0 1 840px;
    max-width: 840px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.eth-principles-intro {
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 400;
    color: #4E4E4E;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.eth-principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 760px;
}

.eth-principles-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: clamp(16px, 1.15vw, 22px);
    font-weight: 400;
    color: #4E4E4E;
    line-height: 1.6;
    padding-left: 0;
    position: relative;
    word-break: keep-all;
}

.eth-principles-list li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #7A7A7A;
    margin: 0.75vw 10px;
}

.eth-principles-footer {
    font-size: 24px;
    color: #4E4E4E;
    line-height: 1.6; /* 검수 0630: 행간 160% (고정 36px → 모든 폰트크기에 비례) */
    margin-top: 0;
}

/* ── 윤리행동지침 (아코디언) ── */
.eth-accordion-section {
    background: #fff;
    padding: clamp(40px, 5.21vw, 100px) clamp(16px, 6.25vw, 120px);
    border-top: 0;
}

.eth-accordion-inner {
    max-width: 1680px; /* 검수 0727(Figma): 콘텐츠 1680(섹션 좌우 패딩 120 안쪽) + 중앙정렬 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eth-accordion-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eth-accordion-title-wrap .eth-section-label {
    margin-bottom: 0;
}

.eth-accordion-title-wrap .eth-accordion-title {
    margin-bottom: 24px;
}

.eth-accordion-title {
    font-size: 50px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

.eth-accordion-intro {
    font-size: 22px;
    font-weight: 400;
    color: #4E4E4E;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* 아코디언 목록 */
.eth-accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eth-accordion-item {}

.eth-accordion-item:first-child .eth-accordion-header {
    border-top: 0px solid #e0e0e0;
}

/* 아코디언 헤더 버튼 */
.eth-accordion-header {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 48px 0;
    text-align: left;
}

.eth-accordion-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 8px solid #D3D3D3;
    background: transparent;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.eth-accordion-item.is-open .eth-accordion-dot {
    background: transparent;
    border-color: #F27100;
}

.eth-accordion-chapter {
    flex: 1;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
}

.eth-accordion-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eth-icon-plus {
    width: 30px;
    height: 30px;
    display: block;
}

.eth-icon-minus {
    width: 30px;
    height: 30px;
    display: none !important;
}

/* 열린 상태: plus 숨기고 minus 표시 */
.eth-accordion-item.is-open .eth-icon-plus {
    display: none !important;
}

.eth-accordion-item.is-open .eth-icon-minus {
    display: block !important;
}

/* 아코디언 바디 (슬라이드) */
/* 검수 0722: 끊김의 원인은 2000px 고정 max-height(콘텐츠보다 훨씬 커서 초반에 확 열리고 멈춤).
   JS에서 실제 콘텐츠 높이(scrollHeight)만큼만 max-height를 지정 → 딱 필요한 만큼 부드럽게 펼침. */
.eth-accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.eth-accordion-item.is-open .eth-accordion-body {
    max-height: 2000px; /* 폴백. JS가 실제 높이로 덮어씀 */
}

.eth-accordion-content {
    padding: 30px 20px;
    background: #F8F9FB;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 20px 44px;
}

.eth-acc-article {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eth-acc-article-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.eth-acc-article-desc {
    font-size: 18px;
    font-weight: 500;
    color: #4E4E4E;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

.eth-acc-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eth-acc-sublist li {
    font-size: 18px;
    font-weight: 500;
    color: #4E4E4E;
    line-height: 1.6;
    word-break: keep-all;
    padding-left: 28px;
    text-indent: -28px;
}

.eth-acc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    counter-reset: acc-item;
}

.eth-acc-list li {
    font-size: 18px;
    font-weight: 500;
    color: #4E4E4E;
    line-height: 1.6;
    word-break: keep-all;
    display: flex;
    gap: 12px;
    counter-increment: acc-item;
}

.eth-acc-list li::before {
    content: counter(acc-item) '.';
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    min-width: 20px;
}



/* ══════════════════════════════════════
   반응형 - 태블릿 (768~1439px)
══════════════════════════════════════ */
@media (max-width: 1439px) {


    .eth-intro-outer {}

    .eth-intro-text-section {
        padding: 80px 60px 40px;
    }

    .eth-intro-overlay-text {
        font-size: 20px;
    }

    .eth-principles-content {
        flex-direction: column;
        gap: 30px;
    }

    .eth-principles-left {
        flex: none;
        width: 100%;
        max-width: none;
        gap: 30px;
    }

    .eth-principles-img-wrap {
        max-width: 100%;
        height: 375px;
    }

    .eth-principles-right {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .eth-accordion-title {
        font-size: clamp(30px, 2.6vw, 50px); /* 검수 0713: 웹 50px 기준 태블릿 clamp */
    }

    .eth-accordion-chapter {
        font-size: 20px;
    }

    .eth-accordion-header {
        padding: 36.5px 0;
    }
}

/* ══════════════════════════════════════
   반응형 - 모바일 (≤767px) GM 360px
══════════════════════════════════════ */
@media (max-width: 767px) {

    /* 탭 모바일 전용 span 처리 */
    .eth-tab-mob-br {
        display: inline;
    }

    .eth-tab-desk-text {
        display: none;
    }

    .eth-tab-mob-text {
        display: inline;
    }


    /* 도입 */
    .eth-intro-outer {}

    .eth-intro-inner {
        position: relative;
        padding-bottom: 40px;
    }

    .eth-intro-text-section {
        padding: 40px 16px 24px;
    }

    .eth-intro-title {
        font-size: 24px;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
        color: #E9E9E9;
    }

    .eth-intro-title .char {
        color: inherit;
    }

    .eth-intro-image-section {
        padding: 0 16px;
    }

    .eth-intro-image-wrapper {
        height: 448px;
        border-radius: 16px;
    }

    .eth-intro-overlay-text {
        font-size: 18px;   /* 검수 0720: 모바일 18px */
        padding: 0 16px;
    }

    .eth-intro-overlay-text--desktop {
        display: none;
    }

    .eth-intro-overlay-text--mobile {
        display: block;
        font-size: 18px;   /* 검수 0720: 모바일 문구 18px (base와 동일하게 통일) */
        line-height: 1.5;
    }

    /* 윤리강령 (7가지 원칙) */
    .eth-principles-section {
        padding: 40px 16px;
    }

    /* label(18px) → 8px gap → title+image+desc */
    .eth-principles-inner {
        gap: 8px;
    }

    .eth-section-label {
        font-size: 18px;
    }

    /* title → 30px gap → image, then 30px gap → intro+list */
    .eth-principles-content {
        flex-direction: column;
        gap: 30px;
    }

    .eth-principles-left {
        width: 100%;
        justify-content: flex-start;
        gap: 30px;
    }

    .eth-principles-img-wrap {
        width: 100%;
        height: 185px;
        border-radius: 0;
    }

    .eth-principles-title {
        font-size: 30px;
    }

    .eth-principles-right {
        gap: 20px;
    }

    .eth-principles-intro {
        font-size: 16px;
        line-height: 1.6;
        color: #4E4E4E;
    }

    .eth-principles-footer {
        font-size: 16px;
    }

    .eth-principles-list {
        gap: 4px;
    }

    .eth-principles-list li {
        font-size: 16px;
        line-height: 1.6;
        padding-left: 0;
    }

    .eth-principles-list li::before {
        width: 4px;
        height: 4px;
        min-width: 4px;
        margin: 10px;
    }

    /* 아코디언 */
    .eth-accordion-section {
        padding: 40px 16px;
    }

    .eth-accordion-inner {
        gap: 30px;
    }

    /* label → 8px → title → 30px → intro */
    .eth-accordion-title-wrap {
        gap: 8px;
    }

    .eth-accordion-title {
        font-size: 30px;
        line-height: 1.4;
    }

    /* intro는 title-wrap 안에 있어서 gap:8만 적용됨 → 22px 추가해서 총 30px */
    .eth-accordion-intro {
        font-size: 16px;
        line-height: 1.6;
        max-width: 100%;
        margin-top: 0;
    }

    .eth-accordion-header {
        padding: 15px 0;
        gap: 8px;
        min-height: 72px;
        height: auto;
    }

    .eth-accordion-dot {
        width: 20px;
        height: 20px;
        background: transparent;
        border: 6.5px solid #D3D3D3;
        border-radius: 50%;
        margin-left: 8px;
    }

    .eth-accordion-item.is-open .eth-accordion-dot {
        background: transparent;
        border-color: #F27100;
    }

    .eth-accordion-chapter {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
    }

    .eth-accordion-icon {
        width: 24px;
        height: 24px;
        margin-right: 14px;
    }

    .eth-icon-plus,
    .eth-icon-minus {
        width: 21.72px;
        height: 21.72px;
    }

    .eth-accordion-content {
        padding: 24px; /* 검수 0616: 모바일 지침 내용부분 상하좌우 24px */
        border-radius: 12px;
        gap: 24px;
        margin: 12px;
    }

    .eth-acc-article-title {
        font-size: 16px;
    }

    .eth-acc-list {
        gap: 24px;
    }

    .eth-acc-list li {
        font-size: 16px;
        gap: 8px;
    }

    .eth-acc-list li::before {
        min-width: 16px;
    }

    .eth-acc-sublist li {
        font-size: 16px; /* 검수: 제7·8장 본문 모바일 16px 통일 (일반 장과 동일) */
    }

    .eth-acc-article-desc {
        font-size: 14px;
    }

    /* 제7·8장 본문 문단(article-desc)도 모바일 16px 통일 */
    .eth-accordion-item--ch7 .eth-acc-article-desc,
    .eth-accordion-item--ch8 .eth-acc-article-desc {
        font-size: 16px;
    }

    /* 모바일: ch7·8 sublist는 좌측 패딩 없이(상위와 구분 없이) 왼쪽 정렬 — ul·li 둘 다 0
       (base 규칙이 파일상 뒤에 있어 !important로 확실히 오버라이딩) */
    .eth-accordion-item--ch7 .eth-acc-sublist,
    .eth-accordion-item--ch8 .eth-acc-sublist,
    .eth-accordion-item--ch7 .eth-acc-sublist li,
    .eth-accordion-item--ch8 .eth-acc-sublist li {
        padding-left: 0 !important;
    }
}

/* ── 1920px 이상 ── */
@media (min-width: 1920px) {
    .eth-accordion-header {
        padding-right: 24px;
    }

    .eth-acc-list {
        gap: 12px;
    }

    .eth-accordion-content {
        padding: 36px 50px;
    }
}

/* ── 제7장 임직원 기본윤리 / 제8장 금지 행위 전용 스타일 ── */
.eth-accordion-item--ch7 .eth-acc-article,
.eth-accordion-item--ch8 .eth-acc-article {
    gap: 18px;
}

.eth-accordion-item--ch7 .eth-acc-sublist,
.eth-accordion-item--ch8 .eth-acc-sublist {
    gap: 0;
    padding-left: 1.3em;
}

.eth-accordion-item--ch7 .eth-acc-sublist li,
.eth-accordion-item--ch8 .eth-acc-sublist li {
    margin: 0;
    /* 상위(항목 제목)와 구분되게 좌측 패딩은 유지, 넘김줄 hanging indent(text-indent)만 제거
       → 마커·본문·넘김줄이 모두 padding-left 지점에서 시작(둘째 줄 추가 들여쓰기 없음) */
    padding-left: 1.2em;
    text-indent: 0;
}

/* ── 태블릿: border-radius 30px → 20px ── */
@media (min-width: 768px) and (max-width: 1439px) {
    /* 히어로 이미지 오버레이 안쪽 여백 20 (태블릿) */
    .eth-intro-overlay { padding: 20px; box-sizing: border-box; }
    /* 도입 — 검수 0703: 태블릿 도입부 통일 (타이틀 최소 30px, 좌우 여백 20px) */
    .eth-intro-title { font-size: clamp(30px, 3.125vw, 60px); }
    .eth-intro-text-section { padding-left: 20px; padding-right: 20px; }
    .eth-intro-image-section { padding-left: 20px; padding-right: 20px; }

    /* 검수 0702: 서브 타이틀(소제목 24px) 태블릿 16~20px (환경/사회경영과 동일) */
    .eth-section-label { font-size: clamp(16px, 1.6vw, 20px); }

    /* 검수 0713: 윤리행동지침 본문 태블릿 16px */
    .eth-accordion-intro { font-size: 16px; }

    /* 검수: 윤리강령 아코디언 태블릿 (Figma 1215:22689 기준)
       헤더는 height 104px, 본문 회색박스 padding 24px / 바깥 여백(margin) 12px */
    .eth-accordion-header {
        height: 104px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .eth-accordion-content {
        padding: 24px;
        gap: 24px;
        border-radius: 12px;
        margin: 10px;
    }

    .eth-intro-image-wrapper {
        border-radius: 20px;
        /* 도입 이미지 높이 — 환경경영 기준으로 통일 */
        height: clamp(300px, 35vw, 500px);
    }
}