/**
 * 인증서 상세 페이지 (게시판 형태)
 */

/* 헤더 컨텐츠 가시성: cert-detail-page는 co-hero 없음 → 헤더 배경·텍스트 명시 */
body.cert-detail-page .proto3-header {
    background-color: #000 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
body.cert-detail-page .proto3-header .header-nav__trigger,
body.cert-detail-page .proto3-header .header-nav a,
body.cert-detail-page .proto3-header .header-link {
    color: #fff !important;
}
body.prototype-03.cert-detail-page .proto3-header {
    background-color: #fff !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
body.prototype-03.cert-detail-page .proto3-header .header-nav__trigger,
body.prototype-03.cert-detail-page .proto3-header .header-nav a,
body.prototype-03.cert-detail-page .proto3-header .header-link {
    color: #000 !important;
}

/* cert-detail-page: 헤더가 항상 solid → menu-controller 색상 명시 (company-overview 규칙 오버라이드) */
body.prototype-03.cert-detail-page .menu-controller__line {
    background: #000 !important;
}

.cert-detail-section {
    padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 3vw, 3rem) 4rem;
    background: #fff;
    min-height: 60vh;
    box-sizing: border-box;
}

.cert-detail-section .section-inner {
    margin: 0;
}

.cert-detail-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.cert-detail-back:hover {
    color: #000;
}

.cert-detail-board {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.cert-detail-board__row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cert-detail-board__row:last-child {
    border-bottom: none;
}

.cert-detail-board__row--th .cert-detail-board__cell--label {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.cert-detail-board__cell {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.cert-detail-board__cell--label {
    flex: 0 0 140px;
    min-width: 120px;
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.02);
}

.cert-detail-board__cell--value {
    flex: 1;
    min-width: 0;
    color: #000;
}

.cert-detail-board__img-wrap {
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}

.cert-detail-board__img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 라이트 모드 */
body.prototype-03.light-mode .cert-detail-section {
    background: #fff;
}

body.prototype-03.light-mode .cert-detail-back {
    color: rgba(0, 0, 0, 0.6);
}

body.prototype-03.light-mode .cert-detail-back:hover {
    color: #000;
}

body.prototype-03.light-mode .cert-detail-board {
    border-color: rgba(0, 0, 0, 0.12);
}

body.prototype-03.light-mode .cert-detail-board__row {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.prototype-03.light-mode .cert-detail-board__row--th .cert-detail-board__cell--label {
    background: rgba(0, 0, 0, 0.04);
}

body.prototype-03.light-mode .cert-detail-board__cell--label {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.02);
}

body.prototype-03.light-mode .cert-detail-board__cell--value {
    color: #000;
}

/* 반응형: 태블릿 */
@media (max-width: 1199px) {
    .cert-detail-section {
        padding: 7rem 1.5rem 3rem;
    }

    .cert-detail-board__cell--label {
        flex: 0 0 120px;
        min-width: 100px;
        padding: 1rem 1.25rem;
    }

    .cert-detail-board__cell--value {
        padding: 1rem 1.25rem;
    }

    .cert-detail-board__img-wrap {
        max-width: 320px;
        padding: 1.25rem;
    }
}

/* 반응형: 모바일 */
@media (max-width: 767px) {
    .cert-detail-section {
        padding: 8rem 1rem 2.5rem;
    }

    .cert-detail-back {
        margin-bottom: 1.5rem;
        font-size: 0.9375rem;
    }

    .cert-detail-board__row {
        flex-direction: column;
    }

    .cert-detail-board__cell--label {
        flex: none;
        min-width: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .cert-detail-board__row--th .cert-detail-board__cell--label {
        border-bottom: none;
    }

    .cert-detail-board__cell--value {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .cert-detail-board__img-wrap {
        max-width: 100%;
        padding: 1rem;
    }

    body.prototype-03.light-mode .cert-detail-board__cell--label {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }
}
