/**
 * StepperSkip - Screen 12 Technical Specifications Component Stylesheet
 * 
 * UI.S12.1: Compact, hierarchical, and responsive technical specification system.
 * Scoped strictly beneath .product-technical-content.
 * Design Authority: StepperSkip Public Design System
 * 
 * - Section Title as primary visual anchor (uppercase + StepperSkip yellow marker + subtle rule)
 * - Accessible visually-hidden <thead> (preserves screen reader semantics without visual repetition)
 * - Cohesive borderless tables (eliminates independent card boxes / spreadsheet feel)
 * - Resilient 38% / 62% column proportions on desktop
 * - Compact row density with subtle zebra striping (white / var(--ss-plate))
 * - Responsive stacked specification layout on mobile (<= 640px)
 */

.product-technical-content {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ss-ink, #101010);
    width: 100%;
}

/* =========================================================================
   1. SECTION HEADINGS (Primary Visual Anchor)
   ========================================================================= */
.product-technical-content h2,
.product-technical-content h3,
.product-technical-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ss-ink, #101010);
    margin: 26px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--ss-line, #C9CCC6);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* First section heading has zero top margin to avoid empty top spacing */
.product-technical-content > h2:first-child,
.product-technical-content > h3:first-child,
.product-technical-content > h4:first-child {
    margin-top: 0;
}

/* StepperSkip yellow accent marker */
.product-technical-content h2::before,
.product-technical-content h3::before,
.product-technical-content h4::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #EBB60E; /* StepperSkip Yellow */
    border-radius: 1px;
    flex-shrink: 0;
}

/* =========================================================================
   2. TABLE SYSTEM (Cohesive & Borderless Groups)
   ========================================================================= */
.product-technical-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    border: none;
    table-layout: fixed;
}

/* Eliminate excessive bottom gap after final table */
.product-technical-content > table:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   3. TABLE HEADER (Semantically preserved, Visually Hidden)
   Screen reader accessibility is preserved while removing the 7 repeated black bars
   ========================================================================= */
.product-technical-content table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================================
   4. COLUMN PROPORTIONS & CELLS (Desktop)
   ========================================================================= */
.product-technical-content td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ss-soft, #EAECE7);
    vertical-align: middle;
    font-size: 13.5px;
    line-height: 1.45;
}

/* Property Column (~38%) */
.product-technical-content td:first-child,
.product-technical-content th:first-child {
    width: 38%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ss-muted, #3F4441);
    letter-spacing: -.01em;
}

/* Value Column (~62%) */
.product-technical-content td:last-child,
.product-technical-content th:last-child {
    width: 62%;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    color: var(--ss-ink, #101010);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =========================================================================
   5. ZEBRA ROWS & HOVER (Subtle Neutral Contrast)
   ========================================================================= */
.product-technical-content tr {
    background: #FFFFFF;
    transition: background-color .1s ease;
}

.product-technical-content tr:nth-child(even) {
    background: var(--ss-plate, #F7F8F6);
}

.product-technical-content tr:hover {
    background: #F0F2EE;
}

/* =========================================================================
   6. RESPONSIVE — TABLET (641px – 1023px)
   ========================================================================= */
@media (min-width: 641px) and (max-width: 1023px) {
    .product-technical-content td:first-child,
    .product-technical-content th:first-child {
        width: 42%;
    }
    .product-technical-content td:last-child,
    .product-technical-content th:last-child {
        width: 58%;
    }
    .product-technical-content td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* =========================================================================
   7. RESPONSIVE — MOBILE (<= 640px)
   Compact stacked specification layout for phone screens
   ========================================================================= */
@media (max-width: 640px) {
    #tab-pane-specs > div {
        padding: 16px 14px !important;
    }

    .product-technical-content table {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .product-technical-content tbody {
        display: block;
        width: 100%;
    }

    .product-technical-content tr {
        display: flex;
        flex-direction: column;
        padding: 7px 8px;
        border-bottom: 1px solid var(--ss-soft, #EAECE7);
    }

    .product-technical-content tr:nth-child(even) {
        background: var(--ss-plate, #F7F8F6);
    }

    .product-technical-content td {
        display: block;
        width: 100% !important;
        padding: 1px 0;
        border-bottom: none;
    }

    .product-technical-content td:first-child {
        font-size: 11.5px;
        color: var(--ss-muted, #5A605D);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .02em;
        margin-bottom: 2px;
    }

    .product-technical-content td:last-child {
        font-size: 13px;
        color: var(--ss-ink, #101010);
        font-weight: 600;
    }

    .product-technical-content h2,
    .product-technical-content h3,
    .product-technical-content h4 {
        font-size: 12.5px;
        margin: 18px 0 6px;
        padding-bottom: 5px;
        gap: 6px;
    }

    .product-technical-content h2::before,
    .product-technical-content h3::before,
    .product-technical-content h4::before {
        width: 6px;
        height: 6px;
    }

    .product-technical-content > h2:first-child,
    .product-technical-content > h3:first-child,
    .product-technical-content > h4:first-child {
        margin-top: 0;
    }
}
