/* ==================================================================
 * League tables — EDIT THESE
 * ================================================================== */
:root {
    --sjt-blue-lt:    #2870d9; /* light blue */
    --sjt-blue-dk:    #1b539f; /* dark blue */
    --sjt-own-bg:     #ffffff;
    --sjt-own-text:   var(--sjt-blue-dk);
    --sjt-text:       #ffffff;
    --sjt-muted:      #cfe0f7;
}

.sjt-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--sjt-text);
}
.sjt-wrap *,
.sjt-wrap *::before,
.sjt-wrap *::after {
    box-sizing: border-box;
}

/* ---------- Tabs ---------- */
.sjt-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.sjt-tab {
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: var(--sjt-blue-dk);
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.sjt-tab:hover,
.sjt-tab:focus,
.sjt-tab:focus-visible,
.sjt-tab:active {
    border: none;
    outline: none;
    box-shadow: none;
}
.sjt-tab:hover {
    background: #ffffff;
    color: var(--sjt-blue-dk);
}
.sjt-tab.is-active {
    background: #ffffff;
    color: var(--sjt-blue-dk);
}

/* ---------- Panels ---------- */
.sjt-panel {
    display: none;
}
.sjt-panel.is-active {
    display: block;
}

.sjt-frame {
    height: var(--sjt-height, 430px);
    overflow: hidden;
}

.sjt-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: var(--sjt-blue-lt);
    -webkit-overflow-scrolling: touch;

    /* Firefox */
    scrollbar-color: var(--sjt-blue-dk) var(--sjt-blue-lt);
    scrollbar-width: thin;
}
/* Chrome / Safari / Edge */
.sjt-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.sjt-scroll::-webkit-scrollbar-track {
    background: var(--sjt-blue-lt);
    border-radius: 8px;
}
.sjt-scroll::-webkit-scrollbar-thumb {
    background: var(--sjt-blue-dk);
    border-radius: 8px;
    border: 2px solid var(--sjt-blue-lt);
}

.sjt-error {
    padding: 16px;
    color: var(--sjt-blue-dk);
    font-size: 14px;
}

/* ---------- Table ---------- */
.sjt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--sjt-blue-lt);
}
.sjt-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
    color: var(--sjt-blue-dk);
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 10px;
    white-space: nowrap;
}
.sjt-table tbody td {
    padding: 9px 10px;
    color: #ffffff;
    border-bottom: 1px solid var(--sjt-blue-dk);
}
.sjt-table tbody tr:nth-child(odd) {
    background: var(--sjt-blue-lt);
}
.sjt-table tbody tr:nth-child(even) {
    background: var(--sjt-blue-dk);
}
.sjt-table tbody tr.sjt-own-row {
    background: var(--sjt-own-bg);
    font-weight: 700;
}
.sjt-table tbody tr.sjt-own-row td {
    color: var(--sjt-own-text);
    border-bottom-color: var(--sjt-own-bg);
}

.sjt-table th.sjt-col-rank,
.sjt-table td.sjt-col-rank {
    width: 32px;
    text-align: center;
    font-weight: 600;
}
.sjt-table tbody tr:not(.sjt-own-row) td.sjt-col-rank {
    color: var(--sjt-muted);
}

.sjt-table th:last-child,
.sjt-table td:last-child {
    width: 44px;
    padding-right: 20px;
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
}

.sjt-table img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}
.sjt-table a {
    color: inherit;
    text-decoration: none;
}
