/* ==========================================================================
   Completed Trailer Specifications
   Template part: single/project/single-project-section-specs.php
   Every rule is scoped under .single-project-section-specs so nothing leaks.
   ========================================================================== */

.single-project-section-specs .single-project-section-specs-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}

/* --- Heading block ------------------------------------------------------ */

.single-project-section-specs .single-project-section-specs-head {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.single-project-section-specs .single-project-section-specs-overview {
    display: flex;
    align-items: center;
    /* Figma draws the 1px stroke inside the 40x218 pill, so the padding
       carries the border width instead of adding to it. */
    padding: 9px 29px;
    border: 1px solid #ACACAC;
    border-radius: 36px;
    background: #FAFAFA;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    color: #7F7F7F;
    white-space: nowrap;
}

.single-project-section-specs .single-project-section-specs-title {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    color: #171B1C;
    text-align: center;
    text-transform: uppercase;
}

.single-project-section-specs .single-project-section-specs-intro {
    width: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: #7F7F7F;
    text-align: center;
}

/* --- Table card --------------------------------------------------------- */

.single-project-section-specs .single-project-section-specs-block {
    width: 100%;
}

.single-project-section-specs .single-project-section-specs-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
}

.single-project-section-specs .single-project-section-specs-tablewrap {
    position: relative;
    width: 100%;
}

.single-project-section-specs .single-project-section-specs-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
}

.single-project-section-specs .single-project-section-specs-table thead tr {
    background: #171B1C;
}

.single-project-section-specs .single-project-section-specs-table thead th {
    width: auto;
    padding: 15px 25px;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: normal;
    color: #FFFFFF;
    vertical-align: middle;
    white-space: nowrap;
}

.single-project-section-specs .single-project-section-specs-table thead th:first-child {
    text-align: left;
}

.single-project-section-specs .single-project-section-specs-table thead th:last-child {
    text-align: right;
}

.single-project-section-specs .single-project-section-specs-table tbody tr {
    background: #FFFFFF;
}

.single-project-section-specs .single-project-section-specs-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.single-project-section-specs .single-project-section-specs-table tbody th,
.single-project-section-specs .single-project-section-specs-table tbody td {
    width: auto;
    padding: 12px 25px;
    border: 0;
    border-bottom: 0.5px solid #ACACAC;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: normal;
    vertical-align: middle;
    white-space: nowrap;
}

.single-project-section-specs .single-project-section-specs-table tbody th {
    text-align: left;
    color: #7F7F7F;
}

.single-project-section-specs .single-project-section-specs-table tbody td {
    text-align: right;
    color: #171B1C;
}

/* --- Collapsed state + bottom fade -------------------------------------- */

.single-project-section-specs .single-project-section-specs-block.is-collapsed .single-project-section-specs-table tbody tr.is-extra {
    display: none;
}

.single-project-section-specs .single-project-section-specs-fade {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, #FAFAFA 68.91%);
    pointer-events: none;
}

.single-project-section-specs .single-project-section-specs-block.is-collapsed .single-project-section-specs-fade {
    display: block;
}

/* --- Show more footer --------------------------------------------------- */

.single-project-section-specs .single-project-section-specs-more {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: #FAFAFA;
}

.single-project-section-specs .single-project-section-specs-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 40px;
    /* fig 6813:11139 - outlined, not the solid orange the theme defaults to */
    border: 1px solid #171B1C;
    border-radius: 13px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    color: #171B1C;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s;
}

.single-project-section-specs .single-project-section-specs-more-btn:hover,
.single-project-section-specs .single-project-section-specs-more-btn:focus-visible {
    background: #171B1C;
    color: #FFFFFF;
}

/* --- Below the 1430px design width -------------------------------------- */

@media screen and (max-width: 1023px) {
    .single-project-section-specs .single-project-section-specs-wrap {
        gap: 34px;
    }

    .single-project-section-specs .single-project-section-specs-title {
        font-size: 26px;
    }

    .single-project-section-specs .single-project-section-specs-intro {
        font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .single-project-section-specs .single-project-section-specs-wrap {
        gap: 26px;
    }

    .single-project-section-specs .single-project-section-specs-head {
        gap: 14px;
    }

    .single-project-section-specs .single-project-section-specs-overview {
        padding: 8px 20px;
        font-size: 14px;
    }

    .single-project-section-specs .single-project-section-specs-title {
        font-size: 20px;
    }

    .single-project-section-specs .single-project-section-specs-intro {
        font-size: 14px;
    }

    .single-project-section-specs .single-project-section-specs-card {
        border-radius: 14px;
    }

    .single-project-section-specs .single-project-section-specs-table thead th {
        padding: 12px 15px;
        font-size: 15px;
        white-space: normal;
    }

    .single-project-section-specs .single-project-section-specs-table tbody th,
    .single-project-section-specs .single-project-section-specs-table tbody td {
        padding: 10px 15px;
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .single-project-section-specs .single-project-section-specs-table tbody th {
        width: 45%;
    }

    .single-project-section-specs .single-project-section-specs-more {
        padding: 12px 15px;
    }

    .single-project-section-specs .single-project-section-specs-more-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}
