.quant-banner {
    background-image: url("../assets/iStock-1393792815.jpg.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 400px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.quant-banner .row {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width:768px) {
    .quant-banner .row {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (min-width:1200px) {
    .quant-banner {
    border-bottom-left-radius: 2.196vw;
    border-bottom-right-radius: 2.196vw;
}

    .quant-banner .row {
        padding-top: 2.928vw;
        padding-bottom: 2.928vw;
    }
}

/* -------------------------------------------- */

.quant-faq {
    padding: 40px 20px;
    border-radius: 30px;
}

.quant-faq .faqItem {
    padding: 18px;
}

.quant-faq .faqContent {
    padding: 30px 0px;
}

.quant-faq .faqContent ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.quant-faq .faqContent ul li {
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 300;
    list-style: unset;
}

.quant-faq .faqContent ul li::marker {
    color: #005D61;
}


@media (max-width:768px) {
    .quant-faq {
        padding: 0px 10px 30px;
        border-radius: 30px;
    }

}

@media (min-width:1200px) {
    .quant-faq {
        padding: 2.928vw 1.464vw;
        border-radius: 2.196vw;
    }

    .quant-faq .faqItem {
        padding: 1.318vw;
    }

    .quant-faq .faqContent {
        padding: 2.196vw 0px;
    }

    .quant-faq .faqContent ul {
        padding-left: 1.464vw;
    }

    .quant-faq .faqContent ul li {
        margin-bottom: 0.732vw;
        font-size: 1.171vw;
    }

}






/* -------------------------------------------------------------------- */

.bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

/* Thinned-out bars. The 7 bars that carry a dash line + label are never given
   this class, so every labelled bar still grows and reveals as before. The
   elements stay in the DOM (display:none, not removed) so the GSAP reveal
   order in js/why-quant.js keeps matching dashes/labels to the right bars. */
.bar.bar-hide {
    display: none;
}

.dash,
.label {
    will-change: transform, opacity;
}


.chart-wrap {
    position: relative;
    padding-top:60px;
}

.chart-wrap svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}

.label {
    position: absolute;
    top: 0;

    opacity: 0;
    transform: translateY(10px);

    /* Each label is centered on its dash line via calc (NOT transform, which
       is reserved for the reveal animation). --dash-x = the dash's x position
       as a % of chart width, derived from the SVG viewBox (0..695).
       left = dash position minus half the label width → perfectly centered. */
    --label-w: 120px;
    width: var(--label-w);
    left: calc(var(--dash-x, 0%) - var(--label-w) / 2);
    color: #fff;
    text-align: center;
}

.text-1 { --dash-x: 0.65%;  top: 0%;  }
.text-2 { --dash-x: 13.74%; top: 25%; }
.text-3 { --dash-x: 26.83%; top: 10%; }
.text-4 { --dash-x: 50%;    top: 24%; }
.text-5 { --dash-x: 66.40%; top: 14%; }
.text-6 { --dash-x: 82.81%; top: 35%; }
.text-7 { --dash-x: 99.35%; top: 10%; }


@media (min-width:1200px) {

    .chart-wrap {
    padding-top:4.392vw;
}

    .label {
        --label-w: 8.785vw;
    }
}

@media (max-width:992px){
    .label{
        --label-w: 80px;
        font-size: 12px;
        max-width:80px;
    }
}

/* ------------------------------------------------------------------
   "Why Quantitative Investing is important?" — mobile list (<=767px)

   The seven labels are absolutely positioned over the bar chart, each
   centred on its own dash line (--dash-x). Below ~768px there is not
   enough width for that: at 390px "Data Validation & Processing" runs
   straight into "Parallel Backtesting". So on phones the chart itself is
   hidden and the same seven <p>s are re-flowed as a plain numbered list.

   Nothing changes in why-quant.html — the numbers come from a CSS counter
   on .chart-wrap, so adding or removing a label needs no edit here.

   The breakpoint is 767px because the chart still reads fine at 768px
   (verified); raise this one value if you want the list on tablets too.
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
    /* the col-10 inset exists to keep the chart from stretching on desktop;
       as a list it just costs reading width and wraps the longest title */
    .chartCol {
        width: 100%;
    }

    .chart-wrap {
        padding-top: 0;
        counter-reset: qLabel;
    }

    /* the bar chart is the part that does not fit — the labels are the content */
    .chart-wrap svg {
        display: none;
    }

    .label {
        position: static;
        display: flex;
        align-items: baseline;
        gap: 18px;
        width: auto;
        max-width: none;
        left: auto;
        top: auto;
        margin: 0;
        padding: 14px 4px;
        text-align: left;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        border-bottom: 1px solid rgba(255, 255, 255, .13);

        /* js/why-quant.js pre-hides every .label with an inline
           opacity:0 / translateY(10px) and only reveals it partway through a
           ~15s bar-chart timeline. With the chart hidden there is nothing to
           wait for, and a 15s drip-feed on a plain list would read as broken —
           so override the inline styles. !important is the only thing that
           beats them. The list still fades in as a block via the
           data-aos="fade-zoom-in" already on .chart-wrap. */
        opacity: 1 !important;
        transform: none !important;
    }

    .label:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, .13);
    }

    .label::before {
        counter-increment: qLabel;
        content: counter(qLabel, decimal-leading-zero);
        flex: none;
        min-width: 24px;
        /* same light teal as the variant-2 value ramp at the end of this file */
        color: #4ac3c7;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .5px;
    }

    /* Reveal: each title slides up out of an overflow-hidden mask, the same
       treatment v2/why-quant.html gives its .wqkList. The tween lives in
       js/why-quant.js ("mobile list reveal"); these two rules only build the
       mask. They are inside the media query on purpose — on desktop the two
       spans stay plain inline text so the chart layout is untouched. */
    .labelMask {
        display: block;
        overflow: hidden;
    }

    .labelText {
        display: inline-block;
        will-change: transform;
    }
}


/* --------------------------------------- */


.qc-wrap {
    position: relative;
}

.qc-row {
    padding: 15px 0;
}

.qc-row:first-child {
    padding-top: 0;
}

.qc-row:last-child {
    padding-bottom: 0;
}

.qc-head {
    padding-bottom: 8px;
}

.qc-label {
    letter-spacing: .18em;
    color: coral;
}

.qc-row {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #e9eaee;
}

.qc-right {
    padding-right: 50px;
    text-align: right;
}

.qc-left {
    padding-left: 50px;
    text-align: left;
}

.qc-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    overflow: visible;
    margin-bottom:20px;
}

.qc-dot {
    position: sticky;
    top: 50vh;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .7);
    transform: translateX(-50%);
    margin-left: 50%;
    display: block;
}

.qc-row.qc-anim {
    opacity: 0;
}

@media (max-width:768px) {

    .qc-row {
        padding: 10px 0;
    }

    .qc-row {
        font-size: 1rem;
    }

    .qc-right {
        padding-right: 30px;
    }

    .qc-left {
        padding-left: 30px;
    }

    .qc-line {
        width: 1px;
    }

    .qc-dot {
        width: 10px;
        height: 10px;
    }


}

@media (max-width:576px) {
    .qc-right {
        padding-right: 20px;
    }

    .qc-left {
        padding-left: 20px;
    }
}

@media (max-width:400px) {
    .qc-label {
    letter-spacing: .12em;
    font-size: 16px;
    }
}

@media (min-width:1200px) {
    .qc-row {
        padding: 1.098vw 0;
    }

    .qc-head {
        padding-bottom: 0.586vw;
    }


    .qc-row {
        font-size: 1.318vw;
    }

    .qc-right {
        padding-right: 3.66vw;
    }

    .qc-left {
        padding-left: 3.66vw;
    }

    .qc-line {
        width: 0.146vw;
    }

    .qc-dot {
        width: 1.025vw;
        height: 1.025vw;
    }
}



/* ----------------------------------------------------- */
.quant-slide {
    background: #1d1d1d;
    border-radius: 25px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

@media (max-width:768px) {
    .quant-slide {
        padding: 15px;
    }
}

.quantSwiper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.quantSwiper .swiper-slide p {
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    opacity: 0.95;
}

.quant-swiper-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
}

.quant-swiper-prev,
.quant-swiper-next {
    position: relative;
    color: #fff;
    margin: 0;
    cursor: pointer;
}

.quant-swiper-prev::after,
.quant-swiper-next::after {
    font-size: 14px;
    font-weight: 700;
    font-family: swiper-icons;
}

.quant-swiper-prev::after {
    content: '\276E';
}

.quant-swiper-next::after {
    content: '\276F';
}

.quant-swiper-pagination {
    position: relative;
    width: auto !important;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quant-swiper-pagination .swiper-pagination-bullet {
    width: 35px;
    height: 4px;
    border-radius: 20px;
    background: #4b4b4b;
    opacity: 1;
    margin: 0 !important;
    transition: 0.4s ease;
}

.quant-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 40px;
}

@media (min-width:1200px) {

    .quant-slide {
        border-radius: 1.83vw;
        padding: 1.83vw;
    }

    .quantSwiper .swiper-slide p {
        font-size: 1.464vw;
    }

    .quant-swiper-controls {
        gap: 1.318vw;
        margin-top: 2.928vw;
    }

    .quant-swiper-prev::after,
    .quant-swiper-next::after {
        font-size: 1.025vw;
    }

    .quant-swiper-pagination {
        gap: 0.732vw;
    }

    .quant-swiper-pagination .swiper-pagination-bullet {
        width: 2.562vw;
        height: 0.293vw;
        border-radius: 1.464vw;
    }

    .quant-swiper-pagination .swiper-pagination-bullet-active {
        width: 2.928vw;
    }
}

/* --------------------------------------------------------------------- */



.chart-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
}

.base-donut {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    margin: 5px;
    
    background:


        radial-gradient(closest-side,
            #000000 58%,
            transparent 59%),

        radial-gradient(circle,
            rgba(184, 184, 184, 0.85) 0%,
            rgba(120, 120, 120, 0.7) 35%,
            rgba(35, 35, 35, 1) 65%,
            rgba(5, 5, 5, 1) 100%);

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.12),
        inset 0 0 40px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(255, 255, 255, 0.08);
}

.progress-donut {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotate(-90deg);
    background:
        radial-gradient(circle,
            #00f7ff 0%,
            #005D61 100%);
    -webkit-mask:
        radial-gradient(closest-side,
            transparent 52%,
            black 53%),
        conic-gradient(black 0deg var(--progress),
            transparent var(--progress) 360deg);

    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(closest-side,
            transparent 52%,
            black 53%),
        conic-gradient(black 0deg var(--progress),
            transparent var(--progress) 360deg);
    mask-composite: intersect;
    box-shadow:
        inset 0 0 20px rgba(141, 95, 95, 0.18),
        inset 0 0 35px rgba(0, 0, 0, 0.65),
        0 0 10px rgba(0, 255, 230, 0.18);
}

.progress-donut.second {
    background:
        radial-gradient(circle,
            #00f7ff 0%,
            #005D61 100%);

    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.18),
        inset 0 0 35px rgba(0, 0, 0, 0.65),
        0 0 10px rgba(255, 120, 0, 0.3);
}

.progress-donut {
    --progress: 0deg;
}
.value-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-wrap: wrap;
    width: 40%;
    text-align: center;
    margin: 0 auto;
}

.value-number {
    position: absolute;
    inset: 0;
    display: flex;
    color: #ffffff;
}

.value-box {
    position: absolute;
    display: flex;
    color: #ffffff;
    background: #005D61;
    padding: 2px 12px;
    border-radius: 12px;
    bottom: -10%;
}

.value-left {
    left: -10%;
}

.value-right {
    right: -10%;
}


.aum-labels .label-item {
    position: relative;
    padding: 10px 0px;
}

.aum-labels .label-item::before {
    content: "";
    position: absolute;
    left: -30%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.aum-labels .total-aum::before {
    background: #2F2D2E;
}

.aum-labels .quant-aum::before {
    background: linear-gradient(to bottom,
            #005E62 0%,
            #00f7ff 100%);
}



@media (min-width:1200px) {

    .donut-chart {
        gap: 2.928vw !important;
    }

    .chart-wrapper {
        width: 19.034vw;
        height: 19.034vw;
    }

    .base-donut {
        margin: 0.366vw;
        box-shadow:
            inset 0 0 1.83vw rgba(0, 0, 0, 0.12),
            inset 0 0 2.928vw rgba(0, 0, 0, 0.9),
            0 0 0.586vw rgba(255, 255, 255, 0.08);
    }

    .progress-donut {
        box-shadow:
            inset 0 0 1.464vw rgba(255, 255, 255, 0.18),
            inset 0 0 2.562vw rgba(0, 0, 0, 0.65),
            0 0 0.732vw rgba(0, 255, 230, 0.18);
    }

    .progress-donut.second {
        box-shadow:
            inset 0 0 1.464vw rgba(255, 255, 255, 0.18),
            inset 0 0 2.562vw rgba(0, 0, 0, 0.65),
            0 0 0.732vw rgba(255, 120, 0, 0.3);
    }

    .value-box {
        padding: 0.146vw 0.878vw;
        border-radius: 0.878vw;
    }

    .aum-labels {
        gap: 3.66vw !important;
    }

    .aum-labels .label-item {
        position: relative;
        padding: 0.732vw 0px;
    }

    .aum-labels .label-item::before {
        width: 1.464vw;
        height: 1.464vw;
    }
}

/* ------------------------------------------------------------------ */


.quant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.quant-table thead th {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 22px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quant-table thead th:first-child {
    border-radius: 14px 0 0 14px;
}

.quant-table thead th:last-child {
    border-radius: 0 14px 14px 0;
}

.quant-table tbody tr {
    background: #1a1a1a;
    transition: 0.3s ease;
}

.quant-table td {
    padding: 10px 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.quant-table td:first-child {
    border-radius: 14px 0 0 14px;
    color: #ffffff;
}

.quant-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0 14px 14px 0;
}

.quant-note {
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    line-height: 1.8;
    font-size: 14px;
}

@media (max-width: 768px) {

    .quant-table {
        border-spacing: 0;
    }

    .quant-table thead {
        display: none;
    }

    .quant-table,
    .quant-table tbody,
    .quant-table tr,
    .quant-table td {
        display: block;
        width: 100%;
    }

    .quant-table tr {
        margin-bottom: 16px;
        border-radius: 16px;
        overflow: hidden;
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .quant-table td {
        text-align: right;
        padding: 16px 18px 16px 40%;
        position: relative;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .quant-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 18px;
        top: 16px;
        color: #ffffff;
        font-weight: 600;
        text-align: left;
    }

    .quant-table td:last-child {
        border-bottom: 0;
    }

    .quant-note {
        font-size: 14px;
        padding: 16px;
    }

    .quant-table td:first-child {
        border-radius: 0;
        color: #ffffff;
    }
}

@media (max-width: 768px) {
    .quant-table tr td:nth-child(2) {
        color: teal !important;
    }
        .quant-table tr td:nth-child(3) {
        color: coral !important;
    }
    
}
@media (min-width:1200px) {
    .quant-table {
        border-spacing: 0 1.025vw;
    }

    .quant-table thead th {
        padding: 0.732vw 1.611vw;
        font-size: 1.171vw;
        letter-spacing: 1px;
    }

    .quant-table thead th:first-child {
        border-radius: 1.025vw 0 0 1.025vw;
    }

    .quant-table thead th:last-child {
        border-radius: 0 1.025vw 1.025vw 0;
    }

    .quant-table td {
        padding: 0.732vw 1.611vw;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.171vw;
    }

    .quant-table td:first-child {
        border-radius: 1.025vw 0 0 1.025vw;
        color: #ffffff;
    }

    .quant-table td:last-child {
        border-right: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 0 1.025vw 1.025vw 0;
    }

    .quant-note {
        font-size: 1.025vw;
    }

}


/* ----------------------------------------------------------------------------- */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;

}

.table-wrapper::-webkit-scrollbar-track {
    background: #222;

}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #E3644B;
    border-radius: 10px;
}

/* ===== TABLE ===== */
.performance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

/* ===== HEADER ===== */
.performance-table thead th {
    color: #d6d6d6;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 12px 10px;
    white-space: nowrap;
}

.performance-table thead th:first-child {
    text-align: left;
    padding-left: 22px;
}

.performance-table thead th {
    background-color: #181818;
}

.performance-table thead th:first-child {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.performance-table thead th:last-child {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

/* ===== ROW DESIGN ===== */
.performance-table tbody tr {
    background: #181818;
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

.performance-table tbody td {
    padding: 10px 4px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    border: none;
    transition: .25s;
    position: relative;
}

.performance-table tbody td:not(:first-child):hover {
    transform: scale(1.04);
    z-index: 5;
}

/* ===== INDEX COLUMN ===== */
.performance-table tbody td:first-child {
    text-align: left;
    padding-left: 22px;
    min-width: 180px;
    background: #22252d;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    color: #d8d8d8;
}

.performance-table tbody td:last-child {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}


/* MOBILE (<=768px)
   This table has 20 columns, so the usual "stack each row into a card"
   mobile pattern produced a ~3500px-tall page section. Instead the table
   stays a real table and scrolls horizontally inside `.table-wrapper`
   (which already has `overflow-x: auto`), with the Indices column pinned
   to the left so you always know which row you are reading.

   The desktop "pill" treatment (rounded row background + shadow + coloured
   cell blocks) is dropped here for a flat data-table look: no row
   background, no left/right rounding, just a hairline rule under each row.
   The teal/grey heat-map scale is not lost — it moves from the cell
   BACKGROUND to the value's TEXT colour (see the ramps at the end of this
   block), which is the only way to keep the encoding in a flat layout.

   The `data-label` attributes on every <td> are left in the HTML on
   purpose — harmless here, and needed again if this ever goes back to the
   card layout. */
@media(max-width:768px) {

    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    /* size to the content, not to the viewport, so nothing squashes.
       `separate` + zero spacing rather than `collapse`, because collapsed
       borders and `position: sticky` cells do not get along in Chrome. */
    .performance-table {
        width: max-content;
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    /* flat rows — no pill, no shadow, no background */
    .performance-table tbody tr {
        background: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .performance-table thead th,
    .performance-table tbody td {
        border-radius: 0;
        font-size: 12px;
        padding: 12px 12px;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }

    /* header stays flat — the row below it carries the colour */
    .performance-table thead th {
        background: none;
        font-weight: 700;
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, .22);
    }

    .performance-table tbody tr:last-child td {
        border-bottom: none;
    }

    /* The base (desktop) rules round the row ends with dedicated
       `:first-child` / `:last-child` selectors, which outrank the
       `border-radius: 0` above — zero them explicitly or the flat rows
       keep their pill corners. */
    .performance-table thead th:first-child,
    .performance-table thead th:last-child,
    .performance-table tbody td:first-child,
    .performance-table tbody td:last-child {
        border-radius: 0;
    }

    /* pinned Indices column — it needs an opaque background of its own or
       the scrolling cells would show through it. #000 = the page behind. */
    .performance-table thead th:first-child,
    .performance-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        min-width: 150px;
        padding-left: 0;
        text-align: left;
        background: #000;
    }

    .performance-table tbody td:first-child {
        color: #ffffff;
    }

    /* the scale-up hover is a pointer affordance — pointless on touch and
       it would lift a cell over the pinned column */
    .performance-table tbody td:not(:first-child):hover {
        transform: none;
    }

    /* KEPT FOR REUSE — an alternative heat map that colours the VALUE TEXT
       instead of the cell background, for a fully borderless look. Not in
       use: the cell backgrounds above carry the heat map here, same as
       desktop. To switch, uncomment this and add `background: none;` back
       to the `thead th, tbody td` rule near the top of this block.
    .performance-table tbody td.teal-1 { color: #2f8b8f; }
    .performance-table tbody td.teal-2 { color: #37a0a4; }
    .performance-table tbody td.teal-3 { color: #40b4b8; }
    .performance-table tbody td.teal-4 { color: #4ac3c7; }
    .performance-table tbody td.teal-5 { color: #57d0d4; }
    .performance-table tbody td.teal-6 { color: #66dade; }
    .performance-table tbody td.teal-7 { color: #79e3e6; }
    .performance-table tbody td.teal-8 { color: #8eebee; }
    .performance-table tbody td.teal-9 { color: #a5f2f4; }

    .performance-table tbody td.gray-1 { color: #8a8a8a; }
    .performance-table tbody td.gray-2 { color: #949494; }
    .performance-table tbody td.gray-3 { color: #9e9e9e; }
    .performance-table tbody td.gray-4 { color: #a8a8a8; }
    .performance-table tbody td.gray-5 { color: #b2b2b2; }
    .performance-table tbody td.gray-6 { color: #bcbcbc; }
    .performance-table tbody td.gray-7 { color: #c6c6c6; }
    .performance-table tbody td.gray-8 { color: #d0d0d0; }
    .performance-table tbody td.gray-9 { color: #dadada; }
    */
}


@media (min-width:1200px) {
    .performance-table {
        border-spacing: 0 1.025vw;
    }

    .performance-table thead th {
        font-size: 0.952vw;
        padding: 0.878vw 0.732vw;
    }

    .performance-table thead th:first-child {
        padding-left: 1.611vw;
    }

    .performance-table thead th:first-child {
        border-top-left-radius: 3.66vw;
        border-bottom-left-radius: 3.66vw;
    }

    .performance-table thead th:last-child {
        border-top-right-radius: 3.66vw;
        border-bottom-right-radius: 3.66vw;
    }

    .performance-table tbody tr {
        border-radius: 3.66vw;
        box-shadow:
            0 0.293vw 0.878vw rgba(0, 0, 0, .25),
            inset 0 0.073vw 0 rgba(255, 255, 255, .03);
    }

    .performance-table tbody td {
        padding: 0.732vw 0.293vw;
        font-size: 1.025vw;
    }

    .performance-table tbody td:first-child {
        padding-left: 1.611vw;
        min-width: 13.177vw;
        border-top-left-radius: 3.66vw;
        border-bottom-left-radius: 3.66vw;
    }

    .performance-table tbody td:last-child {
        border-top-right-radius: 3.66vw;
        border-bottom-right-radius: 3.66vw;
    }
}


 /* Table Color with teal and gray */
/* Positive values -> teal scale (0-20, 21-40, 41-60, 61-80, 81-100) */
/* =========================================*/
/* Teal — positive values (1=lowest 0–11%, 9=highest 89–100%).
   Tuned for a dark theme: floor raised so small positives stay visible,
   top capped so large positives don't glare on the eyes. */
.teal-1 { background: #0d4042; color: #ffffff; }
.teal-2 { background: #104b4e; color: #ffffff; }
.teal-3 { background: #14575a; color: #ffffff; }
.teal-4 { background: #176367; color: #ffffff; }
.teal-5 { background: #1b6f73; color: #ffffff; }
.teal-6 { background: #1f7c80; color: #ffffff; }
.teal-7 { background: #24888d; color: #ffffff; }
.teal-8 { background: #29959b; color: #ffffff; }
.teal-9 { background: #2fa3a8; color: #ffffff; }

/* Grey — negative values (1=lowest 0–11%, 9=highest 89–100%).
   Floor raised off pure-black so small negatives don't disappear
   into the dark background; top kept muted, not white-bright. */
.gray-1 { background: #2b2b2b; color: #ffffff; }
.gray-2 { background: #353535; color: #ffffff; }
.gray-3 { background: #404040; color: #ffffff; }
.gray-4 { background: #4b4b4b; color: #ffffff; }
.gray-5 { background: #575757; color: #ffffff; }
.gray-6 { background: #636363; color: #ffffff; }
.gray-7 { background: #6f6f6f; color: #ffffff; }
.gray-8 { background: #7c7c7c; color: #ffffff; }
.gray-9 { background: #898989; color: #ffffff; }

/* Rows temporarily hidden from the performance table.
   To show a row again: remove class="hide-row" from that <tr> in the HTML,
   or comment out / delete this rule to reveal ALL hidden rows at once. */
.performance-table tbody tr.hide-row {
    display: none;
}

/* =====================================================================
   PERFORMANCE TABLE — VARIANT 2  
   ---------------------------------------------------------------------
   ===================================================================== */

.table-wrapper-2 {
    /*margin-top: 50px;*/
    /**/
        border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
}

.performance-table-2 {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* flat rows — no pill, no shadow, no background */
.performance-table-2 tbody tr {
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.performance-table-2 thead th,
.performance-table-2 tbody td {
    background: none;
    border-radius: 0;
    font-size: 14px;
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    /**/
    border-right: 1px solid rgba(255, 255, 255, .09);
}

/* the pill is applied through dedicated :first-child / :last-child
   selectors that outrank the `border-radius: 0` above — zero them
   explicitly or the flat rows keep their rounded ends */
.performance-table-2 thead th:first-child,
.performance-table-2 thead th:last-child,
.performance-table-2 tbody td:first-child,
.performance-table-2 tbody td:last-child {
    border-radius: 0;
}

.performance-table-2 thead th {
    font-weight: 700;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, .22);
}

.performance-table-2 tbody tr:last-child td {
    border-bottom: none;
}

/* pinned Indices column — it needs an opaque background of its own or the
   scrolling cells would show through it. #000 = the page behind. */
.performance-table-2 thead th:first-child,
.performance-table-2 tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 180px;
    padding-left: 14px;
    text-align: left;
    background: #000;
}

.performance-table-2 tbody td:first-child {
    color: #ffffff;
}

/* a transformed cell would lift over the pinned column */
.performance-table-2 tbody td:not(:first-child):hover {
    transform: none;
}

/* Heat map as TEXT colour. Same 1-9 levels as the background ramp, but
   brighter, so every step stays legible on black (all >= ~5:1 contrast).
   Keep these in step with the `.teal-*` / `.gray-*` background ramp
   further up this file. */
.performance-table-2 tbody td.teal-1 { color: #2f8b8f; }
.performance-table-2 tbody td.teal-2 { color: #37a0a4; }
.performance-table-2 tbody td.teal-3 { color: #40b4b8; }
.performance-table-2 tbody td.teal-4 { color: #4ac3c7; }
.performance-table-2 tbody td.teal-5 { color: #57d0d4; }
.performance-table-2 tbody td.teal-6 { color: #66dade; }
.performance-table-2 tbody td.teal-7 { color: #79e3e6; }
.performance-table-2 tbody td.teal-8 { color: #8eebee; }
.performance-table-2 tbody td.teal-9 { color: #a5f2f4; }

.performance-table-2 tbody td.gray-1 { color: #8a8a8a; }
.performance-table-2 tbody td.gray-2 { color: #949494; }
.performance-table-2 tbody td.gray-3 { color: #9e9e9e; }
.performance-table-2 tbody td.gray-4 { color: #a8a8a8; }
.performance-table-2 tbody td.gray-5 { color: #b2b2b2; }
.performance-table-2 tbody td.gray-6 { color: #bcbcbc; }
.performance-table-2 tbody td.gray-7 { color: #c6c6c6; }
.performance-table-2 tbody td.gray-8 { color: #d0d0d0; }
.performance-table-2 tbody td.gray-9 { color: #dadada; }

@media (max-width: 768px) {
    .table-wrapper-2 {
        /*margin-top: 34px;*/
    }

    .performance-table-2 thead th,
    .performance-table-2 tbody td {
        font-size: 12px;
        padding: 12px 12px;
    }

    .performance-table-2 thead th:first-child,
    .performance-table-2 tbody td:first-child {
        min-width: 150px;
    }
}

@media (min-width: 1200px) {
    .performance-table-2 thead th,
    .performance-table-2 tbody td {
        font-size: 1.025vw;
        padding: 0.878vw 1.025vw;
    }

    .performance-table-2 thead th:first-child,
    .performance-table-2 tbody td:first-child {
        min-width: 13.177vw;
    }
}
