.sticky-table {
    overflow-x: auto;
    border: 1px solid #000000;
    border-top: none;
    margin-bottom: 24px;
}

.sticky-table table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #000000;
    border-right: none;
    border-left: none;
    margin: 0;
}

.sticky-table table th p,
.sticky-table table td p {
    margin: 0;
    font-family: "Archivo", Sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    color: #000;
}

.sticky-table table th,
.sticky-table table td {
    box-sizing: border-box;
    width: 100px;
    border: 1px solid #000000;
    border-width: 0 1px 1px 0;
    font-family: "Archivo", Sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.sticky-table th:first-child,
.sticky-table td:first-child {
    border-left: none;
    width: 110px;
}

.sticky-table tr:last-child th,
.sticky-table tr:last-child td {
    border-bottom: none;
}

.sticky-table th:last-child,
.sticky-table td:last-child {
    border-right: none;
}

/* Make first 3 columns sticky */
.sticky-table th:nth-child(1),
.sticky-table td:nth-child(1),
.sticky-table th:nth-child(2),
.sticky-table td:nth-child(2),
.sticky-table th:nth-child(3),
.sticky-table td:nth-child(3) {
    position: sticky;
    background: var( --e-global-color-23b7dde );
    z-index: 2;
}

/* Column 1 */
.sticky-table th:nth-child(1),
.sticky-table td:nth-child(1) {
    left: 0;
}

/* Column 2 */
.sticky-table th:nth-child(2),
.sticky-table td:nth-child(2) {
    left: 110px; /* must match column 1 width */
}

/* Column 3 */
.sticky-table th:nth-child(3),
.sticky-table td:nth-child(3) {
    left: 210px;
}

/* Optional: sticky header */
.sticky-table th {
    position: sticky;
    top: 0;
}

.sticky-table tr:first-child td:nth-child(21),
.sticky-table tr:first-child td:nth-child(22),
.sticky-table tr:nth-child(4) td:nth-child(18),
.sticky-table tr:nth-child(3) td:nth-child(18),
.sticky-table tr:nth-child(2) td:nth-child(18),
.sticky-table tr:nth-child(4) td:nth-child(15),
.sticky-table tr:nth-child(3) td:nth-child(15),
.sticky-table tr:nth-child(2) td:nth-child(15) {
    position: relative;
}

.sticky-table tr:first-child td:nth-child(21):hover::before,
.sticky-table tr:first-child td:nth-child(22):hover::before,
.sticky-table tr:nth-child(4) td:nth-child(18):hover::before,
.sticky-table tr:nth-child(3) td:nth-child(18):hover::before,
.sticky-table tr:nth-child(2) td:nth-child(18):hover::before,
.sticky-table tr:nth-child(4) td:nth-child(15):hover::before,
.sticky-table tr:nth-child(3) td:nth-child(15):hover::before,
.sticky-table tr:nth-child(2) td:nth-child(15):hover::before {
    display: block;
}

.sticky-table tr:first-child td:nth-child(21)::after,
.sticky-table tr:first-child td:nth-child(22)::after,
.sticky-table tr:nth-child(4) td:nth-child(18)::after,
.sticky-table tr:nth-child(3) td:nth-child(18)::after,
.sticky-table tr:nth-child(2) td:nth-child(18)::after,
.sticky-table tr:nth-child(4) td:nth-child(15)::after,
.sticky-table tr:nth-child(3) td:nth-child(15)::after,
.sticky-table tr:nth-child(2) td:nth-child(15)::after {
    content: 'i'; 
    position: relative;
    top: -5px;
    left: 4px;
    display: inline-block;
    cursor: pointer;
    width: 12px;
    height: 12px;
    background-color: #394153;
    line-height: 12px;
    font-size: 10px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
}

.sticky-table tr:first-child td:nth-child(21)::before,
.sticky-table tr:first-child td:nth-child(22)::before,
.sticky-table tr:nth-child(4) td:nth-child(18)::before,
.sticky-table tr:nth-child(3) td:nth-child(18)::before,
.sticky-table tr:nth-child(2) td:nth-child(18)::before,
.sticky-table tr:nth-child(4) td:nth-child(15)::before,
.sticky-table tr:nth-child(3) td:nth-child(15)::before,
.sticky-table tr:nth-child(2) td:nth-child(15)::before {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: 20px;
    width: 220px;
    background-color: #E8F3DA;
    text-align: center;
    border-radius: 6px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.1);
    font-family: "Archivo", Sans-serif;
    font-size: 13px;
    line-height: 140%;
    font-weight: 500;
    text-align: left;
    list-style: none;
    padding-left: 10px;
    color: #394153;
    display: none;
}

.sticky-table tr:nth-child(2) td:nth-child(18)::before,
.sticky-table tr:nth-child(2) td:nth-child(15)::before {
    content: 'EPYC 4345P score (direct analog of Ryzen 9700X)';   
}

.sticky-table tr:nth-child(3) td:nth-child(18)::before,
.sticky-table tr:nth-child(3) td:nth-child(15)::before {
    content: ' No direct server class AMD CPU analog to borrow the scores from';   
}

.sticky-table tr:nth-child(4) td:nth-child(18)::before,
.sticky-table tr:nth-child(4) td:nth-child(15)::before {
    content: 'EPYC 4565P score (direct analog of Ryzen 9950X)';
}

.sticky-table tr:first-child td:nth-child(22)::before {
    content: "Cost per SPECspeed2017_int performance point. Most relevant for lightly threaded, latency-sensitive workloads where per-core performance matters more than consolidation density. Lower is better.";
}

.sticky-table tr:first-child td:nth-child(21)::before {
    content: 'Cost per SPECrate2017_int performance point. Most relevant for well-parallelised, throughput-focused workloads and for consolidating many VMs or containers. Lower is better.”';
}

/* Tweak column width / hide columns */
.sticky-table table th, .sticky-table table td {           
    width: 80px;
}

.sticky-table th:nth-child(3), 
.sticky-table td:nth-child(3) {
    display: none;
}

.sticky-table th:first-child, .sticky-table td:first-child {
    border-left: none;
    width: 85px;
}

.sticky-table th:nth-child(2), .sticky-table td:nth-child(2) {
    left: 85px;
}

.sticky-table th:nth-child(2), .sticky-table td:nth-child(2) {
    width: 210px;
}

.sticky-table th:nth-child(n+12), .sticky-table td:nth-child(n+12) {
    width: 200px;
}

/* Merge columns */
.sticky-table tr:nth-child(n+2):nth-child(-n+3) th:first-child, 
.sticky-table tr:nth-child(n+2):nth-child(-n+3) td:first-child,
.sticky-table tr:nth-child(n+5):nth-child(-n+10) th:first-child,
.sticky-table tr:nth-child(n+5):nth-child(-n+10) td:first-child,
.sticky-table tr:nth-child(n+12):not(:last-child) th:first-child,
.sticky-table tr:nth-child(n+12):not(:last-child) td:first-child {
    border-bottom: none;    
}

/* Table 2 */
.sticky-table--2 td,
.sticky-table--2 th {
    background-color: #fff;
}

.sticky-table--2 tr:first-child td, .sticky-table--2 tr:first-child th,
.sticky-table--2 td a,  .sticky-table--2 th a { 
    font-weight: bold;
}

.sticky-table--2 th:nth-child(n+12), .sticky-table--2 td:nth-child(n+12) {
    width: 80px;
}

.sticky-table--2 th:nth-child(7), .sticky-table--2 td:nth-child(7) {
    width: 210px;
}

.sticky-table--2 th:last-child, .sticky-table--2 td:last-child {
    width: 130px;
}

.sticky-table--2 th:first-child, .sticky-table--2 td:first-child {
    width: 160px;
    text-align: center;
}

.sticky-table--2 th:nth-child(2), .sticky-table--2 td:nth-child(2) {
    width: 80px;
}

.sticky-table--2 th:nth-child(3), .sticky-table--2 td:nth-child(3) {
    display: table-cell;
}

.sticky-table--2 tr:nth-child(n+2):nth-child(-n+3) td:first-child {
    border-bottom: 1px solid #000;
}

.sticky-table--2 th:nth-child(2), .sticky-table--2 td:nth-child(2),
.sticky-table--2 th:nth-child(3), .sticky-table--2 td:nth-child(3) {
    left: auto;
    z-index: 1;
    background: #fff;
}

.sticky-table--2 tr:nth-child(3) td:nth-child(3),
.sticky-table--2 tr:nth-child(3) td:nth-child(4),
.sticky-table--2 tr:nth-child(3) td:nth-child(12) {
    color: green;
    font-weight: bold;
}

.sticky-table--2 tr:nth-child(3) td:nth-child(9),
.sticky-table--2 tr:nth-child(3) td:nth-child(10) {
    color: red;
    font-weight: bold;
}

.sticky-table--2 td:nth-child(n+7), .sticky-table--2 th:nth-child(n+7) {
    background: #eaeaea;
    position: relative;
    z-index: 3;
}

.sticky-table--2 td:nth-child(6), .sticky-table--2 th:nth-child(6) {
    border-right: none;
}

.sticky-table--2 td:nth-child(7), .sticky-table--2 th:nth-child(7) {
        border-left: 1px solid #000;
        position: sticky;
        left: -1px;
        z-index: 4;
}


/* Table default */
.table-default tr:first-child td, .table-default tr:first-child th {
    background: var(--e-global-color-23b7dde);
}

.table-default p, .table-default th, .table-default td { 
    font-family: "Archivo", Sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}