/* =========================================================
   FACILITY / EQUIPMENT
========================================================= */

.facility-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    box-sizing: border-box;
    color: #111;
    font-family: "Pretendard", "Noto Sans", Arial, sans-serif;
}

.facility-page * {
    box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

.facility-intro {
    margin-bottom: 70px;
}

.facility-intro .facility-company {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.facility-intro h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.facility-intro h2 span {
    display: inline;
    padding-bottom: 2px;
    border-bottom: 1px dashed #999;
}


/* =========================================================
   SECTION
========================================================= */

.facility-section {
    margin-top: 75px;
}

.facility-section:first-of-type {
    margin-top: 0;
}

.facility-title {
    margin: 0 0 28px;
    font-size: 27px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.4px;
}


/* =========================================================
   TABLE
========================================================= */

.equip-table {
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 14px;
    color: #333;
}

.equip-table col {
    width: 25%;
}


/* 헤더 */
.equip-table thead th {
    height: 52px;
    padding: 10px 12px;
    background: #7d7d7d;
    border-right: 1px solid #6f6f6f;
    color: #fff;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.equip-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.equip-table thead th:last-child {
    border-right: 0;
    border-radius: 0 12px 0 0;
}


/* 본문 */
.equip-table tbody td {
    height: 40px;
    padding: 8px 12px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
}

.equip-table tbody tr td:first-child {
    border-left: 1px solid #ddd;
}

.equip-table td.group {
    font-weight: 500;
    color: #333;
    vertical-align: middle;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .facility-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .facility-intro h2 {
        font-size: 25px;
    }

    .facility-title {
        font-size: 23px;
    }

    .equip-table {
        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
   표 → 카드형
========================================================= */

@media (max-width: 700px) {

    .facility-page {
        padding: 30px 15px 70px;
    }


    /* 상단 문구 */
    .facility-intro {
        margin-bottom: 50px;
    }

    .facility-intro .facility-company {
        font-size: 12px;
    }

    .facility-intro h2 {
        font-size: 20px;
        line-height: 1.6;
        letter-spacing: -0.3px;
    }

    .facility-intro h2 br {
        display: none;
    }


    /* 섹션 */
    .facility-section {
        margin-top: 55px;
    }

    .facility-title {
        margin-bottom: 20px;
        font-size: 21px;
    }


    /* 테이블 구조 해제 */
    .equip-table,
    .equip-table tbody,
    .equip-table tr,
    .equip-table td {
        display: block;
        width: 100%;
    }

    .equip-table {
        font-size: 13px;
    }

    .equip-table colgroup,
    .equip-table thead {
        display: none;
    }

    .equip-table tbody {
        border: 0;
    }


    /* 각 장비 카드 */
    .equip-table tbody tr {
        position: relative;
        margin-bottom: 12px;
        padding: 14px 15px 10px;
        border: 1px solid #e1e1e1;
        border-radius: 10px;
        background: #fff;
    }


    /* 부서명 */
    .equip-table tbody tr:before {
        content: attr(data-group);
        display: block;
        margin-bottom: 7px;
        padding-bottom: 9px;
        border-bottom: 1px solid #e5e5e5;
        color: #245f8c;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 700;
    }


    /* rowspan 부서명은 모바일에서 숨김 */
    .equip-table td.group {
        display: none;
    }


    /* 각 항목 */
    .equip-table tbody td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        align-items: center;

        min-height: auto;
        height: auto;

        padding: 7px 0;

        border: 0;
        border-bottom: 1px solid #f0f0f0;

        text-align: left;
        line-height: 1.5;
    }

    .equip-table tbody tr td:first-child {
        border-left: 0;
    }

    .equip-table tbody td:last-child {
        border-bottom: 0;
    }


    /* Equipment / Specification / Qty */
    .equip-table tbody td:before {
        content: attr(data-label);
        padding-right: 10px;
        color: #888;
        font-size: 12px;
        font-weight: 600;
    }


    /* 빈 항목 숨김 */
    .equip-table tbody td:empty {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .facility-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .facility-intro h2 {
        font-size: 18px;
    }

    .facility-title {
        font-size: 19px;
    }

    .equip-table tbody td {
        grid-template-columns: 90px minmax(0, 1fr);
        font-size: 12.5px;
    }

}