/* ══════════════════════════════════════
   내부정보관리규정 (internal-info-management.html)
   GP: 1920px / GM: 360px
   Figma file: 9atg0Kz3RdcbBqpN2Ozdsd  Page 2
   GP frame: 564:944 / GM frame: 564:1172
══════════════════════════════════════ */


/* ── 페이지 헤더 ── */
.iim-page-header {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 120px 100px;
    overflow: hidden;
}

.iim-page-title-wrap {
    width: 948px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iim-page-title {
    font-size: 80px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    height: 106px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ── 컨텐츠 컨테이너 ── */
.iim-container {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 100px 120px;
    box-sizing: border-box;
}

.iim-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


/* ── 아코디언 ── */
.iim-accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.iim-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 140px;
    padding-right: 24px;
    border-bottom: 1px solid #d3d3d3;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.iim-item-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.iim-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.iim-item.is-open .iim-item-icon {
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1200%) hue-rotate(10deg) brightness(103%);
}

.iim-item-title {
    font-size: 30px;
    font-weight: 700;
    color: #1b1b1b;
    line-height: 1.5;
    white-space: nowrap;
    margin: 0;
}

.iim-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
    border-radius: 33.103px;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.iim-item-btn img {
    width: 33.103px;
    height: 33.103px;
    display: block;
}

.iim-icon-plus {
    display: block;
}

.iim-icon-minus {
    display: none !important;
}

.iim-item.is-open .iim-icon-plus {
    display: none !important;
}

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


/* ── 펼쳐진 컨텐츠 (슬라이드) ── */
.iim-item-content {
    overflow: hidden;
    max-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 44px;
    width: 100%;
    box-sizing: border-box;
    transition: max-height 0.4s ease;   /* 검수 0806: padding 트랜지션 제거(ethics와 동일) — 패딩이 max-height와 따로
       애니메이션되며 '내부 프레임 확장됐다 제자리로' 글리치를 냄. 패딩은 스냅, 높이만 부드럽게. */
}

.iim-item.is-open .iim-item-content {
    max-height: 3000px;
    padding: 20px 44px;
}

.iim-content-box {
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* 제O조(...) 제목 줄 */
.iim-row-title {
    display: flex;
    align-items: center;
    padding: 6px 30px;
    width: 100%;
    box-sizing: border-box;
}

.iim-row-title p {
    font-size: 18px;
    font-weight: 700;
    color: #1b1b1b;
    line-height: 1.6;
    margin: 0;
}

/* ①②③ 본문 묶음 */
.iim-row-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 30px;
    width: 100%;
    box-sizing: border-box;
}

.iim-text {
    font-size: 18px;
    font-weight: 500;
    color: #4e4e4e;
    line-height: 1.6;
    margin: 0;
}

.iim-text--indent {
    padding-left: 1.4em;
    box-sizing: border-box;
}


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

    .iim-page-header {
        padding: 50px 40px 70px;
    }

    .iim-page-title-wrap {
        width: auto;
    }

    .iim-page-title {
        font-size: clamp(36px, 5vw, 60px);
        height: auto;
    }

    .iim-container {
        padding: 60px 40px;
    }

    /* 헤더/제목/아이콘 — 윤리강령 태블릿과 동일 */
    .iim-item-header {
        height: 104px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .iim-item-title {
        font-size: 20px;
        white-space: normal;
    }

    .iim-item-icon {
        width: 20px;
        height: 20px;
    }

    /* 검수 0702: 태블릿 accordion — 윤리강령과 동일
       바깥 여백 10px / 회색박스 padding 24 / gap 24 / radius 12 / 좌측정렬 */
    .iim-item.is-open .iim-item-content {
        padding: 10px;
    }

    .iim-content-box {
        padding: 24px;
        border-radius: 12px;
        align-items: flex-start;
        gap: 24px;
    }

    .iim-row-title {
        padding: 0;
    }

    .iim-row-body {
        padding: 0;
        gap: 6px;
    }
}


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

    /* GM: Page Header — pb=30, gap=20 */
    .iim-page-header {
        gap: 20px;
        padding: 20px 16px 30px;
        align-items: center;
    }

    .iim-page-title-wrap {
        width: 328px;
    }

    .iim-page-title {
        font-size: 30px;
        font-weight: 700;
        height: 54px;
        text-align: center;
        line-height: 1.4;
    }

    /* GM: container — px=16, py=40 */
    .iim-container {
        padding: 40px 16px;
        align-items: flex-start;
    }

    .iim-inner {
        width: 100%;
    }

    /* GM: item header — py=15, no fixed height */
    .iim-item-header {
        height: auto;
        padding: 15px 0;
    }

    .iim-item-left {
        gap: 8px;
    }

    .iim-item-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
        white-space: pre-wrap;
        width: 250px;
    }

    /* GM: dropdown btn — 42×42 */
    .iim-item-btn {
        width: 42px;
        height: 42px;
        padding: 4.594px;
        border-radius: 21.724px;
    }

    .iim-item-btn img {
        width: 21.724px;
        height: 21.724px;
    }

    /* GM: 닫힘 — padding 0 (펼침 전 sliver 방지) */
    .iim-item-content {
        padding: 0;
    }

    /* GM: 펼침 — p=12 */
    .iim-item.is-open .iim-item-content {
        padding: 12px;
    }

    .iim-content-box {
        padding: 24px;
        border-radius: 12px;
        align-items: flex-start;
        gap: 24px;
    }

    .iim-row-title {
        padding: 0;
    }

    .iim-row-title p {
        font-size: 16px;
    }

    .iim-row-body {
        padding: 0;
        gap: 4px;
    }

    .iim-text {
        font-size: 16px;
    }
}
