

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600;700&display=swap');

:root {
    --ink: #1d2433;
    --muted: #5f6b7b;
    --primary: #1d5fd1;
    --border: #dbe3f0;
    --bg: #f3f6fb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Fira Sans', 'Trebuchet MS', sans-serif;
    color: var(--ink);
    background: #f3f6fb;
}

.site-nav {
    position: relative;
    padding: 0;
    background: #0f2f63;
    color: #fff;
    overflow: hidden;
    margin-bottom: 16px;
}

.site-banner {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.nav-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.footer {
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 13px;
}

.factsheet-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.factsheet-note {
    margin-top: 12px;
    color: #b42318;
    font-weight: 600;
}

.factsheet-label {
    width: 35%;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(32, 52, 90, 0.08);
}

.timeline-card h4 {
    margin: 0 0 12px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.timeline-item.highlight {
    background: #123f84;
    color: #fff;
}

.timeline-item.alert {
    background: #fdecec;
    color: #8a1f1f;
    border: 1px solid #f5b7b7;
}

.timeline-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.timeline-item.highlight .timeline-label {
    color: rgba(255, 255, 255, 0.8);
}

.timeline-item.alert .timeline-label {
    color: #8a1f1f;
}

.timeline-value {
    font-weight: 600;
}

.pdf-frame {
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pdf-viewer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.pdf-canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(15, 47, 99, 0.08);
}

.media-thumb {
    height: 180px;
    object-fit: cover;
}

.card-max-640 {
    max-width: 640px;
}
.card-max-800 {
    max-width: 800px;
}

.group-acceptance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 360px));
    gap: 18px;
    justify-content: center;
    align-items: start;
}

.group-acceptance-card {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(21, 55, 114, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.group-acceptance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 55, 114, 0.12);
}

.group-acceptance-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f1f7ff 0%, #f7fbff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.group-acceptance-head h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.group-acceptance-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.group-player-line {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}

.group-player-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.group-player-name .slot {
    color: #1d5fd1;
    background: #e9f1ff;
    border: 1px solid #cadcff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    text-transform: uppercase;
}

.group-player-dob {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .group-acceptance-grid {
        grid-template-columns: 1fr;
    }
}

.rank-panel {
    display: none;
}

.rank-panel.active {
    display: block;
}

.dataTables_wrapper {
    margin-top: 10px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--muted);
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 13px;
    margin-left: 6px;
    background: #fff;
    color: var(--ink);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    margin: 0 3px;
    background: #fff !important;
    color: var(--ink) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eef3fb !important;
    color: var(--ink) !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--border);
}

.rank-table th,
.rank-table td {
    white-space: nowrap;
}

.winner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.winner-row {
    display: grid;
    grid-template-columns: 56px 80px 1fr;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 16px rgba(32, 52, 90, 0.06);
}

.winner-rank {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.winner-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 16px rgba(15, 47, 99, 0.12);
}

.winner-photo.placeholder {
    background: #e7edf7;
}

.winner-name {
    font-weight: 600;
}

.winner-points {
    color: var(--muted);
    font-size: 14px;
}

.winner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 900px) {
    .factsheet-layout {
        grid-template-columns: 1fr;
    }
    .winner-row {
        grid-template-columns: 48px 72px 1fr;
    }
}

@media (max-width: 600px) {
    .site-banner {
        height: 110px;
    }
    .winner-row {
        grid-template-columns: 44px 64px 1fr;
        gap: 12px;
    }
}
