@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Base ─────────────────────────────────────────────────────────────────── */
div.wd-wrapper {
    width: 70% !important;
    margin: 0 15% !important;
    padding: 1.5rem 0 4rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #111 !important;
    box-sizing: border-box !important;
}

/* ── Header card ──────────────────────────────────────────────────────────── */
div.wd-wrapper div.wd-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.75rem !important;
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
    background-color: #0b3161 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
/* photo removed */
div.wd-wrapper div.wd-header-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
div.wd-wrapper div.wd-header-info h1 {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 .5rem !important;
    color: #b21942 !important;
    line-height: 1.1 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
div.wd-wrapper .wd-aka {
    font-size: .875rem !important;
    color: rgba(255,255,255,0.7) !important;
    font-style: italic !important;
    margin-bottom: .5rem !important;
}
div.wd-wrapper table.wd-meta-table {
    border-collapse: collapse !important;
    margin-top: .6rem !important;
    background: transparent !important;
    border: none !important;
}
div.wd-wrapper table.wd-meta-table tr {
    background: transparent !important;
    border: none !important;
}
div.wd-wrapper table.wd-meta-table td {
    padding: 2px 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}
div.wd-wrapper table.wd-meta-table td.wd-mt-label {
    font-family: 'DM Mono', monospace !important;
    font-size: .62rem !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: rgba(255,255,255,0.5) !important;
    padding-right: .5rem !important;
    padding-left: 2rem !important;
    width: 1% !important;
}
div.wd-wrapper table.wd-meta-table td.wd-mt-label:first-child {
    padding-left: 0 !important;
}
div.wd-wrapper table.wd-meta-table td.wd-mt-value {
    font-size: .9rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    width: 1% !important;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
div.wd-wrapper hr.wd-divider {
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    margin: 1.75rem 0 !important;
    width: 100% !important;
    display: block !important;
}

/* ── Main section headers ─────────────────────────────────────────────────── */
div.wd-wrapper .wd-section-title {
    background-color: #0b3161 !important;
    color: #b21942 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    padding: .65rem 1rem !important;
    margin: 0 0 1rem !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: none !important;
    text-transform: none !important;
}

/* ── Sub-section headers ──────────────────────────────────────────────────── */
div.wd-wrapper .wd-section-title.sub {
    background-color: #f0f0f0 !important;
    color: #b21942 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: .5rem 1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: .75rem !important;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-table {
    border-collapse: collapse !important;
    font-size: .875rem !important;
    margin-bottom: .5rem !important;
    table-layout: auto !important;
}
div.wd-wrapper .wd-table th {
    text-align: left !important;
    padding: .45rem .75rem !important;
    font-size: .65rem !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #999 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-family: 'DM Mono', monospace !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    background-color: #fafafa !important;
}
div.wd-wrapper .wd-table td {
    padding: .55rem .75rem !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
    color: #222 !important;
    white-space: nowrap !important;
}
div.wd-wrapper .wd-table tr:last-child td { border-bottom: none !important; }
div.wd-wrapper .wd-table tbody tr:hover td { background-color: #fafafa !important; }
div.wd-wrapper .wd-table a {
    color: #111 !important;
    text-decoration: underline !important;
    text-decoration-color: #ccc !important;
    text-underline-offset: 2px !important;
}
div.wd-wrapper .wd-table tfoot td {
    font-weight: 700 !important;
    border-top: 2px solid #e5e5e5 !important;
    border-bottom: none !important;
    background-color: #fafafa !important;
    white-space: nowrap !important;
}

/* ── Result badges ────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-badge {
    display: inline-block !important;
    padding: .15rem .5rem !important;
    border-radius: 3px !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    font-family: 'DM Mono', monospace !important;
    min-width: 24px !important;
    text-align: center !important;
}
div.wd-wrapper .wd-badge-W { background-color: #d1fae5 !important; color: #065f46 !important; }
div.wd-wrapper .wd-badge-L { background-color: #fee2e2 !important; color: #991b1b !important; }

/* ── Place colors ─────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-place-1 { color: #b8860b !important; font-weight: 700 !important; }
div.wd-wrapper .wd-place-2 { color: #777 !important;    font-weight: 700 !important; }
div.wd-wrapper .wd-place-3 { color: #a0522d !important; font-weight: 700 !important; }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: .6rem !important;
    margin-bottom: .75rem !important;
    flex-wrap: nowrap !important;
}
div.wd-wrapper .wd-filter-label {
    font-size: .7rem !important;
    font-family: 'DM Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #999 !important;
    white-space: nowrap !important;
}
div.wd-wrapper .wd-filter-select {
    font-size: .85rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: .3rem .6rem !important;
    color: #111 !important;
    background-color: #fff !important;
    cursor: pointer !important;
}
div.wd-wrapper .wd-clear-btn {
    font-size: .8rem !important;
    background-color: #f0f0f0 !important;
    color: #444 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: .3rem .75rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* ── Not found ────────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-not-found {
    text-align: center !important;
    padding: 3rem 2rem !important;
    background-color: #fafafa !important;
    border-radius: 6px !important;
    border: 1px solid #e5e5e5 !important;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    div.wd-wrapper { width: 95% !important; margin: 0 2.5% !important; }
    div.wd-wrapper img.wd-photo { width: 90px !important; height: 115px !important; }
    div.wd-wrapper div.wd-header-info h1 { font-size: 1.6rem !important; }
    div.wd-wrapper .wd-table { font-size: .8rem !important; }
    div.wd-wrapper .wd-table th,
    div.wd-wrapper .wd-table td { padding: .35rem .4rem !important; }
}

/* ── College Team Profile Styles ───────────────────────────────────────────── */

div.ct-wrapper {
    width: 70% !important;
    margin: 0 15% !important;
    padding: 1.5rem 0 4rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #111 !important;
    box-sizing: border-box !important;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1.75rem !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
div.ct-wrapper .ct-header-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
}
div.ct-wrapper .ct-logo {
    width: 130px !important;
    height: 130px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: block !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    padding: 8px !important;
}
div.ct-wrapper .ct-logo-placeholder {
    width: 130px !important;
    height: 130px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    border: 3px solid !important;
    border-radius: 6px !important;
}
div.ct-wrapper .ct-header-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
div.ct-wrapper .ct-header-main h1.ct-team-name {
    font-size: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 .3rem !important;
    color: #fff !important;
    line-height: 1.1 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
div.ct-wrapper .ct-mascot {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
div.ct-wrapper .ct-header-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: .5rem 0 !important;
    padding-top: .5rem !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    width: 100% !important;
}
div.ct-wrapper .ct-hm-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
div.ct-wrapper .ct-hm-label {
    font-family: 'DM Mono', monospace !important;
    font-size: .6rem !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: rgba(255,255,255,0.5) !important;
    line-height: 1.2 !important;
}
div.ct-wrapper .ct-hm-value {
    font-size: .9rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
div.ct-wrapper hr.ct-divider {
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    margin: 1.75rem 0 !important;
    width: 100% !important;
    display: block !important;
}

/* ── Section title ────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-section-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    padding: .65rem 1rem !important;
    margin: 0 0 1rem !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border: none !important;
}

/* ── Program stat boxes ──────────────────────────────────────────────────── */
div.ct-wrapper .ct-stat-boxes {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
    width: 100% !important;
}
div.ct-wrapper .ct-stat-box {
    flex: 1 1 0 !important;
}
div.ct-wrapper .ct-stat-box {
    border-radius: 6px !important;
    padding: 1.25rem 1rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: .15rem !important;
}
div.ct-wrapper .ct-stat-number {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    font-family: 'DM Mono', monospace !important;
}
div.ct-wrapper .ct-stat-label {
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    line-height: 1.4 !important;
}
div.ct-wrapper .ct-stat-sub {
    font-size: .75rem !important;
    color: #555 !important;
    font-weight: 400 !important;
}
div.ct-wrapper .ct-stat-rank {
    font-size: .7rem !important;
    font-family: 'DM Mono', monospace !important;
    color: #777 !important;
    margin-top: .35rem !important;
    font-weight: 500 !important;
}

/* ── Timeline (vertical) ─────────────────────────────────────────────────── */
div.ct-wrapper .ct-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: .25rem 0 !important;
    max-height: calc(5 * 80px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
div.ct-wrapper .ct-timeline-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    position: relative !important;
}
/* Left column: circle + vertical line */
div.ct-wrapper .ct-timeline-node {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 56px !important;
    gap: 0 !important;
}
div.ct-wrapper .ct-timeline-circle {
    flex-shrink: 0 !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18)) !important;
}
div.ct-wrapper .ct-timeline-vline {
    width: 2px !important;
    flex: 1 !important;
    min-height: 16px !important;
    background: #e0e0e0 !important;
    margin-top: 0 !important;
}
/* Hide vline on last item */
div.ct-wrapper .ct-timeline-item:last-child .ct-timeline-vline {
    display: none !important;
}
/* Right column: bullet list — align top with circle top */
div.ct-wrapper .ct-tl-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 1.25rem !important;
    flex: 1 !important;
}
div.ct-wrapper .ct-tl-list li {
    font-size: .82rem !important;
    color: #333 !important;
    line-height: 1.5 !important;
    padding: .15rem 0 .15rem 1rem !important;
    position: relative !important;
}
div.ct-wrapper .ct-tl-list li::before {
    content: '•' !important;
    position: absolute !important;
    left: 0 !important;
    color: #bbb !important;
    font-size: 1rem !important;
}
div.ct-wrapper .ct-tl-list li:first-child {
    padding-top: 0 !important;
}

/* ── Gender label ─────────────────────────────────────────────────────────── */
div.wd-wrapper .wd-gender {
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: .2rem !important;
}

/* ── Wrestler anchor nav ─────────────────────────────────────────────────── */
div.wd-wrapper .wd-anchors {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
    padding: .25rem 0 !important;
}
div.wd-wrapper .wd-anchor {
    font-size: .75rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #0b3161 !important;
    text-decoration: none !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 20px !important;
    padding: .25rem .85rem !important;
    background: #fafafa !important;
    white-space: nowrap !important;
}
div.wd-wrapper .wd-anchor:hover {
    background: #0b3161 !important;
    color: #fff !important;
    border-color: #0b3161 !important;
    text-decoration: none !important;
}

/* ── Anchor nav ───────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-anchors {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
    padding: .25rem 0 !important;
}
div.ct-wrapper .ct-anchor {
    font-size: .75rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #0b3161 !important;
    text-decoration: none !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 20px !important;
    padding: .25rem .85rem !important;
    background: #fafafa !important;
    transition: background .15s !important;
    white-space: nowrap !important;
}
div.ct-wrapper .ct-anchor:hover {
    background: #0b3161 !important;
    color: #fff !important;
    border-color: #0b3161 !important;
    text-decoration: none !important;
}
div.ct-wrapper .ct-timeline-year {
    font-family: 'DM Mono', monospace !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    padding: .3rem .6rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
}

/* ── Roster search ────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-roster-search {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    margin-bottom: .75rem !important;
}
div.ct-wrapper .ct-search-label {
    font-size: .7rem !important;
    font-family: 'DM Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #999 !important;
    white-space: nowrap !important;
}
div.ct-wrapper .ct-season-input {
    font-size: .9rem !important;
    font-family: 'DM Sans', sans-serif !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: .3rem .6rem !important;
    width: 90px !important;
    color: #111 !important;
}
div.ct-wrapper .ct-season-input:focus { outline: 2px solid #0b3161 !important; }
div.ct-wrapper .ct-season-btn {
    font-size: .85rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: .35rem .9rem !important;
    cursor: pointer !important;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: .875rem !important;
    margin-bottom: .5rem !important;
}
div.ct-wrapper .ct-table th {
    text-align: left !important;
    padding: .45rem .75rem !important;
    font-size: .65rem !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #999 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-family: 'DM Mono', monospace !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    background: #fafafa !important;
}
div.ct-wrapper .ct-table td {
    padding: .55rem .75rem !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
    color: #222 !important;
    white-space: nowrap !important;
}
div.ct-wrapper .ct-table tr:last-child td { border-bottom: none !important; }
div.ct-wrapper .ct-table tbody tr:hover td { background: #fafafa !important; }
div.ct-wrapper .ct-table a {
    color: #111 !important;
    text-decoration: underline !important;
    text-decoration-color: #ccc !important;
    text-underline-offset: 2px !important;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-tabs {
    display: flex !important;
    gap: .25rem !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
}
div.ct-wrapper .ct-tab {
    font-size: .8rem !important;
    font-family: 'DM Sans', sans-serif !important;
    padding: .4rem .9rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #fafafa !important;
    color: #555 !important;
    cursor: pointer !important;
}
div.ct-wrapper .ct-tab.active {
    background: #0b3161 !important;
    color: #fff !important;
    border-color: #0b3161 !important;
}
div.ct-wrapper .ct-tab-panel { display: none !important; }
div.ct-wrapper .ct-tab-panel.active { display: block !important; }

/* ── Place colors ─────────────────────────────────────────────────────────── */
div.ct-wrapper .ct-place-1 { color: #b8860b !important; font-weight: 700 !important; }
div.ct-wrapper .ct-place-2 { color: #777 !important;    font-weight: 700 !important; }
div.ct-wrapper .ct-place-3 { color: #a0522d !important; font-weight: 700 !important; }

/* ── Empty / not found ────────────────────────────────────────────────────── */
div.ct-wrapper .ct-empty {
    color: #999 !important;
    font-size: .875rem !important;
    padding: .5rem 0 !important;
    margin: 0 !important;
}
div.ct-wrapper .ct-not-found {
    text-align: center !important;
    padding: 3rem 2rem !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    border: 1px solid #e5e5e5 !important;
}

@media (max-width: 700px) {
    div.ct-wrapper { width: 95% !important; margin: 0 2.5% !important; }
    div.ct-wrapper .ct-header { flex-wrap: wrap !important; }
    div.ct-wrapper .ct-header-main h1.ct-team-name { font-size: 2rem !important; }
    div.ct-wrapper .ct-table { font-size: .8rem !important; }
    div.ct-wrapper .ct-table th,
    div.ct-wrapper .ct-table td { padding: .35rem .4rem !important; }
}

/* ── Place row highlights (wrestler profile) ─────────────────────────────── */
div.wd-wrapper .wd-table tbody tr.wd-row-place-1 td { background-color: #fef9e7 !important; }
div.wd-wrapper .wd-table tbody tr.wd-row-place-2 td { background-color: #f5f5f5 !important; }
div.wd-wrapper .wd-table tbody tr.wd-row-place-3 td { background-color: #fdf3ee !important; }

/* ── Place row highlights (college team profile) ─────────────────────────── */
div.ct-wrapper .ct-table tbody tr.ct-row-place-1 td { background-color: #fef9e7 !important; }
div.ct-wrapper .ct-table tbody tr.ct-row-place-2 td { background-color: #f5f5f5 !important; }
div.ct-wrapper .ct-table tbody tr.ct-row-place-3 td { background-color: #fdf3ee !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   COLLEGE EVENT PROFILE
   ═══════════════════════════════════════════════════════════════════════════ */

div.ct-wrapper .ce-weight-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
    margin: 1rem 0 !important;
}
div.ct-wrapper .ce-weight-pill {
    display: inline-block !important;
    padding: .25rem .75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 999px !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-decoration: none !important;
    transition: background .15s !important;
}
div.ct-wrapper .ce-weight-pill:hover {
    background: #f3f4f6 !important;
}
div.ct-wrapper .ce-weight-group {
    margin-bottom: 2rem !important;
}
div.ct-wrapper .ce-weight-title,
div.ct-wrapper .ce-team-group-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: .5rem 1rem !important;
    border-radius: 4px !important;
    margin-bottom: .5rem !important;
}
div.ct-wrapper .ce-team-group {
    margin-bottom: 2rem !important;
}

div.ct-wrapper .ce-header-season {
    font-size: 2rem !important;
    font-weight: 700 !important;
    font-family: 'DM Mono', monospace !important;
    letter-spacing: -.02em !important;
    margin-top: .25rem !important;
}

div.ct-wrapper .ce-weight-pill.ce-weight-active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}
div.ct-wrapper .ce-sortable {
    cursor: pointer !important;
    user-select: none !important;
    white-space: nowrap !important;
}
div.ct-wrapper .ce-sortable:hover {
    background: rgba(0,0,0,0.05) !important;
}

/* ── Individual results filter table ─────────────────────────────────────── */
div.ct-wrapper .ce-filter-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: .85rem !important;
}
div.ct-wrapper .ce-filter-table thead tr:first-child th {
    background: #f3f4f6 !important;
    padding: .5rem .6rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap !important;
}
div.ct-wrapper .ce-filter-table thead tr:nth-child(2) th {
    padding: .3rem .4rem !important;
    background: #fafafa !important;
    border-bottom: 2px solid #e5e7eb !important;
}
div.ct-wrapper .ce-col-filter {
    width: 100% !important;
    padding: .3rem .4rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    font-size: .8rem !important;
    box-sizing: border-box !important;
}
div.ct-wrapper .ce-filter-table tbody tr td {
    padding: .4rem .6rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
div.ct-wrapper .ce-filter-table tbody tr:hover td {
    background: #fafafa !important;
}
div.ct-wrapper .ce-sortable {
    cursor: pointer !important;
    user-select: none !important;
}
div.ct-wrapper .ce-sortable:hover {
    background: #e9ecef !important;
}


/* ── Participant table cell cap ───────────────────────────────────────────── */
div.ct-wrapper .ce-weight-group,
div.ct-wrapper .ce-team-group {
    max-width: 100% !important;
    overflow-x: auto !important;
}
div.ct-wrapper #ce-participation .ct-table {
    table-layout: auto !important;
    white-space: nowrap !important;
}
div.ct-wrapper #ce-participation .ct-table td {
    max-width: 700px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ── Widen table content inside wide sections ─────────────────────────────── */
div.ct-wrapper .ce-wide-content {
    margin-right: calc(-30vw) !important;
}


/* ── Leaderboard ──────────────────────────────────────────────────────────── */
div.ct-wrapper .ce-lb-wrap {
    display: inline-block !important;
    min-width: 400px !important;
    max-width: 100% !important;
}

/* ── Collapsible sections ─────────────────────────────────────────────────── */
div.ct-wrapper .ce-collapsible-title {
    cursor: pointer !important;
}
div.ct-wrapper .ce-collapsible-title:hover {
    opacity: .9 !important;
}
div.ct-wrapper .ce-toggle-arrow {
    font-size: .85rem !important;
    opacity: .8 !important;
    flex-shrink: 0 !important;
}

/* ── Streak section type cell ─────────────────────────────────────────────── */
div.ct-wrapper #ce-streaks td[rowspan] {
    vertical-align: top !important;
}
