/* ============================================================
 * rnd.css — R&D(rnd) 페이지 전용
 * contents.css 이후 로드. rnd.php에서 add_stylesheet 로드. $pageName==='rnd'만 → 타 페이지 0 영향.
 * 일관 시스템: 세로 리듬·정렬·폰트는 전 뷰포트 공통. ≤1200 구조(적층/유동)만 분기.
 * ============================================================ */

:root {
    /* 폭 */
    --RD-title-desc-item-width: clamp(5rem, 10vw, 15.125rem);
    --RD-title-img-item-width: min(100%, 33.125rem);
    --RD-business-img-desc-box-width: min(100%, 34.375rem);
    --RD-strategy-img-group-width: min(100%, 29.375rem);
    /* 박스/이미지 */
    --rnd-descbox-pad: clamp(1.5rem, 8vw, 5rem);
    --rnd-diagram-h: clamp(12.5rem, 75vw, 56.25rem);
    --rnd-box-pad: clamp(1rem, 4vw, 1.875rem);
    --rnd-imgbox-h: clamp(11.25rem, 55vw, 42.5rem);
    --rnd-cti-pad: clamp(7rem, 16.7vw, 12.5rem);
    --rnd-cti-span: clamp(4.75rem, 11.4vw, 8.5625rem);
    --rnd-titleicon-h: clamp(1.75rem, 4vw, 4rem);
    --rnd-pill-pad: clamp(0.625rem, 3vw, 1.25rem);
    --rnd-titleitem-pad: clamp(0.875rem, 3.5vw, 1.5rem);
    --rnd-label-indent: 20px;
    --rnd-bullet-y: 0.57em;
    /* 통일 리듬 — 전 뷰포트 (혼란스런 150~300 → 일관) */
    --rnd-rhythm: clamp(2.5rem, 6vw, 8.75rem);     /* 섹션 간 40 ~ 140 */
    --rnd-rhythm-md: clamp(2rem, 4.5vw, 4rem);     /* 서브 32 ~ 64 */
    --rnd-rhythm-sm: clamp(1.25rem, 3vw, 2.5rem);  /* 소 20 ~ 40 */
    --rnd-gap: clamp(1.5rem, 4vw, 3.75rem);        /* 간격 통일 24 ~ 60 */
    --rnd-gap-sm: clamp(1rem, 3vw, 2.5rem);        /* 작은 간격 16 ~ 40 */
    --rnd-label-gap: clamp(0.25rem, 1vw, 0.5rem);  /* 라벨↔값 타이트 4 ~ 8 (그룹핑) */
}

/* ===== 전 뷰포트 공통 ===== */
/* 리스트 점 세로중앙 */
.RD-hydrogen-title-desc ul>li::before,
.RD-business-title-list ul>li::before,
.RD-contents-item ul>li::before,
.RD-carbon-item ul>li::before,
.RD-system-desc-item ul>li::before {
    top: var(--rnd-bullet-y);
    transform: translateY(-50%);
}

/* 콘텐츠 폰트 14 floor (헤더/푸터 무영향, 데스크탑 max 보존) */
.innoteco-sub-wrap {
    --md-font-size: clamp(0.875rem, 2vw, 1.25rem);
    --lg-font-size: clamp(0.875rem, 2.5vw, 1.5rem);
    --sm-font-size: clamp(0.875rem, 2vw, 1.125rem);
    --sub-title-font-size: clamp(0.9375rem, 2.5vw, 2.1875rem);
}

/* 섹션 세로 리듬 통일 */
.RD-section-title {
    margin-top: var(--rnd-rhythm);
    margin-bottom: var(--rnd-rhythm-md);
}

.RD-strategy-wrap,
.RD-carbon-items,
.RD-carbon-desc-wrap {
    margin-top: var(--rnd-rhythm);
}

.RD-strategy-desc-wrap {
    margin-bottom: var(--rnd-rhythm);
}

.RD-business-img-wrap,
.RD-hydrogen-desc-wrap,
.RD-system-wrap,
.RD-system-business-wrap,
.RD-develop-desc-wrap,
.RD-title-rodemap .RD-icon {
    margin-top: var(--rnd-rhythm-md);
}

.RD-business-wrap,
.RD-hydrogen-desc-box {
    margin-bottom: var(--rnd-rhythm-md);
}

.RD-develop-desc-itme {
    margin-bottom: var(--rnd-rhythm-sm);
}

/* 라벨 | > | 부제 세로중앙 */
.RD-title-img-item-desc {
    align-items: center;
}

/* ===== ≤1200 구조 (적층 / 유동) ===== */
@media (max-width: 1200px) {
    /* 전체폭 채움 통일 */
    .RD-business-img-desc,
    .RD-business-img-box,
    .RD-business-img-desc-box,
    .RD-contents-wrap,
    .RD-carbon-items,
    .RD-strategy-desc-wrap,
    .RD-strategy-img,
    .RD-title-desc-item p {
        width: 100%;
    }

    /* 내용 높이(고정높이 빈공간/잘림/왜곡 해소) 통일 */
    .RD-develop-desc-itme p,
    .RD-develop-desc,
    .RD-hydrogen-desc-box-p,
    .RD-hydrogen-desc-item,
    .RD-title-desc-item,
    .RD-title-img-item,
    .RD-hydrogen-desc-item img,
    .RD-develop-desc-itme img,
    .RD-title-desc-item p {
        height: auto;
    }

    /* 세로 적층 통일 */
    .RD-business-img-desc,
    .RD-business-img-box,
    .RD-business-desc,
    .RD-business-desc-item,
    .RD-business-desc-box,
    .RD-develop-desc-wrap,
    .RD-hydrogen-title-wrap {
        flex-direction: column;
    }

    /* flex 자식 축소 허용 + block 컨테이너를 flex로(자식 간 gap 적용 위해) */
    .RD-business-img-desc,
    .RD-business-img-box,
    .RD-business-desc {
        overflow: hidden;
        display: flex;
    }

    /* 중앙 정렬 */
    .RD-business-img-box,
    .RD-hydrogen-title-img {
        align-items: center;
        justify-content: center;
    }

    /* 큰 간격 통일 */
    .RD-business-img-wrap,
    .RD-business-img-desc,
    .RD-business-img-box,
    .RD-business-desc,
    .RD-business-wrap,
    .RD-carbon-items,
    .RD-system-home-wrap,
    .RD-system-business-wrap,
    .RD-develop-desc-wrap,
    .RD-contents-item-box,
    .RD-carbon-desc-wrap,
    .RD-hydrogen-title-wrap,
    .RD-business-desc-wrap {
        gap: var(--rnd-gap);
    }

    /* 작은 간격 통일 */
    .RD-develop-desc-itme,
    .RD-carbon-desc-img,
    .RD-system-place,
    .RD-system-icon,
    .RD-system-desc,
    .RD-title-img-wrap {
        gap: var(--rnd-gap-sm);
    }

    /* 좌/우 배경 이미지 박스 고정폭 → 채움 */
    .RD-business-img-l,
    .RD-business-img-r {
        width: min(100%, 25rem);
    }

    /* 시스템 부제 고정폭 → 채움 */
    .RD-system-sub-title {
        width: min(100%, 28.4375rem);
        margin-left: 0;
    }

    /* 고정폭 아이템 행 → 줄바꿈 */
    .RD-title-img-box,
    .RD-title-desc-items {
        flex-wrap: wrap;
    }

    /* 깨진 1600px 다이어그램 → 유동 높이 */
    .RD-business-img-wrap-in-right,
    .RD-system-business-img {
        min-height: 0;
        height: var(--rnd-diagram-h);
    }

    /* 탄소 이미지 박스 → 유동 */
    .RD-carbon-img-box {
        height: var(--rnd-imgbox-h);
    }

    /* 절대배치 오버레이 → 정상 흐름 */
    .RD-business-img-desc-box {
        position: static;
        left: auto;
        top: auto;
        padding: var(--rnd-descbox-pad);
    }

    .RD-hydrogen-desc-wrap {
        padding: var(--rnd-descbox-pad);
    }

    .RD-system-home-wrap {
        padding-bottom: var(--rnd-gap);
    }

    .RD-develop-desc-itme p {
        padding: var(--rnd-box-pad);
    }

    /* contents 항목 제목: 좌패딩/라벨 축소 */
    .RD-contents-item-title {
        padding-left: var(--rnd-cti-pad);
    }

    .RD-contents-item-title span {
        width: var(--rnd-cti-span);
    }

    /* 타이틀 아이콘 높이 통일 + 박스 패딩 */
    .RD-title-img-item-icon img {
        height: var(--rnd-titleicon-h);
        width: auto;
    }

    .RD-title-img-item {
        padding: var(--rnd-titleitem-pad);
    }

    /* 로드맵 라벨 박스 균등 확대 + 패딩 */
    .RD-title-desc-item {
        flex: 1;
    }

    .RD-title-desc-item p {
        padding: var(--rnd-pill-pad);
    }

    /* 실증 전체 좌측 라인 통일 — 제목·라벨·값·참여기관 동일 들여쓰기 */
    .RD-business-desc-wrap h4,
    .RD-business-desc-item span,
    .RD-business-desc-box {
        margin-left: var(--rnd-label-indent);
    }

    /* 제목 빨강 바를 좌측 끝(0)으로 — 들여쓰기 늘린 만큼 보정 */
    .RD-business-desc-wrap h4::before {
        left: calc(-1 * var(--rnd-label-indent));
    }

    /* 실증 라벨↔값 타이트(그룹핑) — 쌍 내부는 좁게, 쌍 사이는 위 큰 간격으로 넓게 */
    .RD-business-desc-item {
        gap: var(--rnd-label-gap);
    }
}
