.teqball-page {
    max-width: 1120px;
    width: min(100%, 1120px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: hidden;
}

.teqball-page *,
.teqball-page *::before,
.teqball-page *::after {
    box-sizing: border-box;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.1rem;
    border: 1px solid #dfe5ff;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 58%, #f1f5ff 100%);
    box-shadow: 0 12px 34px rgba(0, 10, 61, 0.08);
}

.kicker {
    margin: 0;
    color: #31406f;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-heading {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    line-height: 1.08;
    color: #000A3D;
}

.hero-copy {
    margin: 0;
    max-width: 920px;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.62;
    color: #20253a;
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid #e8eaf4;
    border-radius: 14px;
    background: #ffffff;
    min-width: 0;
}

.subheading {
    margin: 0;
    font-size: clamp(1.22rem, 2.4vw, 1.7rem);
    line-height: 1.22;
    color: #000A3D;
}

.para {
    margin: 0;
    font-size: 1rem;
    line-height: 1.64;
    color: #222638;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.eg-button {
    appearance: none;
    border: 1px solid #000A3D;
    background: #000A3D;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.eg-button:hover,
.eg-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 10, 61, 0.18);
    background: #071665;
    outline: none;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d8dcec;
    border-radius: 12px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.94rem;
}

.event-table th,
.event-table td {
    border-bottom: 1px solid #e2e5f0;
    padding: 0.72rem 0.8rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}

.event-table th:nth-child(1),
.event-table td:nth-child(1) {
    width: 15%;
}

.event-table th:nth-child(2),
.event-table td:nth-child(2) {
    width: 18%;
}

.event-table th:nth-child(3),
.event-table td:nth-child(3) {
    width: 25%;
}

.event-table th:nth-child(4),
.event-table td:nth-child(4) {
    width: 26%;
}

.event-table th:nth-child(5),
.event-table td:nth-child(5) {
    width: 16%;
}

.event-table thead th {
    position: sticky;
    top: 0;
    background: #000A3D;
    color: #ffffff;
    font-weight: 600;
    z-index: 1;
}

.event-table tbody tr:nth-child(even) {
    background: #f8faff;
}

.event-table tbody tr:hover {
    background: #eef3ff;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.event-detail-card {
    border: 1px solid #dce2f4;
    border-radius: 12px;
    background: #fbfcff;
    overflow: hidden;
}

.event-detail-card[open] {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 10, 61, 0.08);
}

.event-detail-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
    padding: 0.82rem 0.95rem;
    font-weight: 600;
    color: #000A3D;
    line-height: 1.35;
}

.event-detail-card summary::-webkit-details-marker {
    display: none;
}

.event-detail-card summary::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #000A3D;
    color: #ffffff;
    font-weight: 600;
}

.event-detail-card[open] summary::after {
    content: "-";
}

.event-detail-card dl {
    display: grid;
    grid-template-columns: minmax(8.5rem, 34%) 1fr;
    gap: 0;
    margin: 0;
    border-top: 1px solid #e3e7f3;
}

.event-detail-card dt,
.event-detail-card dd {
    margin: 0;
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #edf0f7;
    line-height: 1.45;
}

.event-detail-card dt {
    font-weight: 600;
    color: #1d2a60;
    background: #f5f7ff;
}

.event-detail-card dd {
    color: #252a3a;
}

.bullet-list {
    margin: 0;
    padding-left: 1.2rem;
}

.bullet-item {
    margin: 0.35rem 0;
    line-height: 1.55;
    color: #222638;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1.25rem;
    padding-left: 1.1rem;
}

.source-section {
    background: #f8f9fd;
}

@media (max-width: 980px) {
    .teqball-page {
        padding: 0.8rem;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-card-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .table-scroll {
        border: 0;
        overflow: visible;
    }

    .responsive-event-table,
    .responsive-event-table thead,
    .responsive-event-table tbody,
    .responsive-event-table th,
    .responsive-event-table td,
    .responsive-event-table tr {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .responsive-event-table {
        table-layout: auto;
    }

    .responsive-event-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .responsive-event-table tr {
        margin: 0 0 0.75rem 0;
        border: 1px solid #dce2f4;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 10, 61, 0.06);
        overflow: hidden;
    }

    .responsive-event-table tbody tr:nth-child(even) {
        background: #ffffff;
    }

    .responsive-event-table tbody tr:hover {
        background: #ffffff;
    }

    .responsive-event-table td {
        display: grid;
        grid-template-columns: minmax(8.5rem, 34%) minmax(0, 1fr);
        gap: 0.65rem;
        border-bottom: 1px solid #edf0f7;
        padding: 0.7rem 0.8rem;
        font-size: 0.94rem;
        width: 100% !important;
        overflow-wrap: anywhere;
    }

    .responsive-event-table td:nth-child(1)::before {
        content: "Date or window";
    }

    .responsive-event-table td:nth-child(2)::before {
        content: "City / country";
    }

    .responsive-event-table td:nth-child(3)::before {
        content: "Event";
    }

    .responsive-event-table td:nth-child(4)::before {
        content: "Senior categories";
    }

    .responsive-event-table td:nth-child(5)::before {
        content: "Calendar note";
    }

    .responsive-event-table td::before {
        font-weight: 600;
        color: #000A3D;
        overflow-wrap: normal;
    }

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

@media (max-width: 680px) {
    .teqball-page {
        padding: 0.65rem;
        gap: 0.75rem;
    }

    .hero-panel,
    .article-section {
        border-radius: 12px;
        padding: 0.85rem;
    }

    .responsive-event-table td {
        grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
        font-size: 0.92rem;
    }

    .event-detail-card dl {
        grid-template-columns: 1fr;
    }

    .event-detail-card dt {
        border-bottom: 0;
        padding-bottom: 0.25rem;
    }

    .event-detail-card dd {
        padding-top: 0.25rem;
    }

    .eg-button {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .responsive-event-table td {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .responsive-event-table td::before {
        font-size: 0.82rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.table-scroll.is-hidden {
    display: none !important;
}

.event-detail-card:not([open]) > dl {
    display: none;
}

.event-detail-card[open] > dl {
    display: grid;
}

@media (max-width: 680px) {
    .button-row {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .button-row .eg-button {
        width: 100%;
    }
}
#toggle-event-details {
    display: none !important;
}
