/* =========================================================
   DESIGN SYSTEM
========================================================= */
.ababil-tabbed-details-matrix {
    --ve-navy: #172536;
    --ve-gold: #b49a68;
    --ve-gold-light: rgba(180, 154, 104, 0.12);
    --ve-text: #354252;
    --ve-muted: #7d8792;
    --ve-background: #faf9f6;
    --ve-white: #ffffff;
    --ve-line: rgba(23, 37, 54, 0.14);

    width: 100%;
    box-sizing: border-box;
}

.ababil-tabbed-details-matrix *,
.ababil-tabbed-details-matrix *::before,
.ababil-tabbed-details-matrix *::after {
    box-sizing: border-box;
}

.ababil-tabbed-details-matrix__container {
    width: 100%;
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */
.ababil-tabbed-details-matrix__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: end;
    gap: 40px;
    border-bottom: 1px solid var(--ve-line);
}

.ababil-tabbed-details-matrix__eyebrow {
    display: block;

    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ababil-tabbed-details-matrix__heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ababil-tabbed-details-matrix__description {
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   HORIZONTAL TABS (MODERN INDUSTRIAL-LUXE STYLE)
========================================================= */
.tabbed-matrix-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--ve-line);
    border-bottom: 0;
}

.tabbed-matrix-btn {
    background-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;

    border: none;
    border-right: 1px solid var(--ve-line);
    cursor: pointer;
    text-align: left;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.tabbed-matrix-btn:last-child {
    border-right: 0;
}

.tabbed-matrix-accordion-toggle {
    display: none;
}

.tabbed-matrix-accordion-toggle {
    display: none;
}

.tabbed-matrix-btn__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabbed-matrix-btn__number {
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.tabbed-matrix-btn__label {
    font-size: 8.5px;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tabbed-matrix-btn__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;

    line-height: 1.25;
}

.tabbed-matrix-btn:hover {
    }

/* Active State */
.tabbed-matrix-btn.is-active {
    }

.tabbed-matrix-btn.is-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.tabbed-matrix-btn.is-active .tabbed-matrix-btn__label {
    }

/* =========================================================
   TAB PANELS & CONTENT
========================================================= */
.tabbed-matrix-content {
    border: 1px solid var(--ve-line);
}

.tabbed-matrix-pane {
    display: none;
}

.tabbed-matrix-pane.is-active {
    display: block;
    animation: fadeInTab 0.3s ease-in-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabbed-matrix-pane__requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   REQUIREMENTS GRID MATRIX
========================================================= */
.tabbed-matrix-item {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 12px;

    border-bottom: 1px solid var(--ve-line);
    transition: background-color 0.25s ease;
}

.tabbed-matrix-item:not(.tabbed-matrix-item--full):nth-child(odd) {
    border-right: 1px solid var(--ve-line);
}

.tabbed-matrix-item:hover {
}

.tabbed-matrix-item--full {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.tabbed-matrix-item:last-child {
    border-bottom: 0;
}

/* =========================================================
   TEXT & LABELS
========================================================= */
.tabbed-matrix-item__number {
    display: block;

    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tabbed-matrix-item__body h4 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tabbed-matrix-item__body p {
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   DETAIL SUB-LIST (MULTI-COLUMN BALANCED CARDS)
========================================================= */
.tabbed-matrix-sublist {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--ve-line);
}

.tabbed-matrix-sublist > div {
    position: relative;

    font-size: 9.5px;
    line-height: 1.6;
}

.tabbed-matrix-sublist > div::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 14px;
    width: 5px;
    height: 1px;
}

/* 3 Items: 33.333% Equal Split */
.tabbed-matrix-sublist > div:first-child:nth-last-child(3),
.tabbed-matrix-sublist > div:first-child:nth-last-child(3) ~ div {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.tabbed-matrix-sublist > div:first-child:nth-last-child(3) ~ div {
    border-left: 1px solid var(--ve-line);
}

/* 2 Items: 50% Equal Split */
.tabbed-matrix-sublist > div:first-child:nth-last-child(2),
.tabbed-matrix-sublist > div:first-child:nth-last-child(2) ~ div {
    flex: 0 0 50%;
    max-width: 50%;
}

.tabbed-matrix-sublist > div:first-child:nth-last-child(2) ~ div {
    border-left: 1px solid var(--ve-line);
}

/* Vertical Sub-List */
.tabbed-matrix-sublist--vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0;
}

.tabbed-matrix-sublist--vertical > div {
    flex: none;
    max-width: 100% !important;
    border: 0 !important;
    font-size: 9.5px;
}

.tabbed-matrix-sublist--vertical > div::before {
    top: 8px;
    left: 0;
}

/* =========================================================
   RESPONSIVENESS (TABLET & MOBILE)
========================================================= */
@media (max-width: 820px) {
    .tabbed-matrix-nav {
        display: none;
    }
    .tabbed-matrix-pane {
        display: block;
        border: 1px solid var(--ve-line);
        border-bottom: 0;
    }

    .tabbed-matrix-pane:last-child {
        border-bottom: 1px solid var(--ve-line);
    }

    .tabbed-matrix-content {
        border: none;
    }

    .tabbed-matrix-pane .tabbed-matrix-pane__requirements {
        display: none;
    }

    .tabbed-matrix-pane.is-active .tabbed-matrix-pane__requirements {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tabbed-matrix-accordion-toggle {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--ve-line);
        cursor: pointer;
        text-align: left;
    }

    .tabbed-matrix-pane.is-active .tabbed-matrix-accordion-toggle {
        border-bottom: 1px solid var(--ve-line);
        }

    .tabbed-matrix-pane.is-active
        .tabbed-matrix-accordion-toggle
        .tabbed-matrix-accordion-toggle__label,
    .tabbed-matrix-pane.is-active
        .tabbed-matrix-accordion-toggle
        .tabbed-matrix-accordion-toggle__number {
        color: rgba(255, 255, 255, 0.6);
    }

    .tabbed-matrix-accordion-toggle__meta {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tabbed-matrix-accordion-toggle__number {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.1em;
    }

    .tabbed-matrix-accordion-toggle__label {
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .tabbed-matrix-accordion-toggle__title {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.25;
    }

    .tabbed-matrix-btn {
        border-right: 0;
        border-bottom: 1px solid var(--ve-line);
    }

    .tabbed-matrix-sublist {
        flex-direction: column;
    }

    .tabbed-matrix-sublist > div {
        border-left: 0 !important;
        border-bottom: 1px solid var(--ve-line);
        max-width: 100% !important;
    }

    .tabbed-matrix-sublist > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    .ababil-tabbed-details-matrix {
    }

    .ababil-tabbed-details-matrix__header {
        display: block;
    }

    .ababil-tabbed-details-matrix__description {
    }

    .tabbed-matrix-pane__requirements {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tabbed-matrix-item {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ve-line);
    }
}
