/* Article tables use their own reading size instead of inheriting large body copy. */
.reference-article .art-body .article-table {
    --at-surface: var(--editorial-surface, #fff);
    --at-soft: var(--editorial-surface-soft, #f5f5fb);
    --at-text: var(--editorial-text, #202131);
    --at-muted: var(--editorial-muted, #71778a);
    --at-border: var(--editorial-border, rgba(33, 35, 55, .09));
    --at-accent: #6845ef;
    --at-tint: rgba(108, 77, 255, .065);
    min-width: 0;
    max-width: 100%;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--at-border);
    border-radius: 20px;
    background: var(--at-surface);
    box-shadow: 0 8px 28px rgba(32, 27, 72, .035);
    color: var(--at-text);
}

.reference-article .art-body .article-table-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 54px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--at-border);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.reference-article .art-body .article-table-toolbar svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--at-accent);
}

.reference-article .art-body .article-table-count {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 7px;
    color: var(--at-muted);
    background: var(--at-soft);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.reference-article .art-body .article-table-scroll {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 77, 255, .28) transparent;
    -webkit-overflow-scrolling: touch;
}

.reference-article .art-body .article-table-scroll:focus-visible {
    outline: 2px solid var(--at-accent);
    outline-offset: -3px;
}

.reference-article .art-body table.article-data-table {
    display: table;
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    overflow: visible;
    color: var(--at-text);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
}

.reference-article .art-body .article-data-table caption {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--at-border);
    color: var(--at-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    caption-side: top;
    overflow-wrap: anywhere;
    text-align: left;
}

.reference-article .art-body .article-data-table caption p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.reference-article .art-body .article-data-table th,
.reference-article .art-body .article-data-table td {
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--at-border);
    vertical-align: top;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.reference-article .art-body .article-data-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--at-muted);
    background: var(--at-soft);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .025em;
}

.reference-article .art-body .article-data-table tbody tr:last-child > td,
.reference-article .art-body .article-data-table tbody tr:last-child > th {
    border-bottom: 0;
}

.reference-article .art-body .article-data-table tbody tr:nth-child(even) > td {
    background: rgba(108, 77, 255, .018);
}

.reference-article .art-body .article-data-table tbody tr:hover > td {
    background: var(--at-tint);
}

.reference-article .art-body .article-data-table td.article-table-game {
    width: 18%;
    color: var(--at-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.reference-article .art-body .article-data-table td.article-table-description {
    width: 26%;
    color: var(--at-muted);
}

.reference-article .art-body .article-data-table td.article-table-date {
    width: 16%;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.reference-article .art-body .article-data-table td.article-table-platform {
    width: 16%;
    font-size: 12px;
    font-weight: 650;
}

.reference-article .art-body .article-data-table td.article-table-sources {
    width: 24%;
    min-width: 180px;
}

.reference-article .art-body .article-data-table td p,
.reference-article .art-body .article-data-table th p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.reference-article .art-body .article-data-table a.article-table-release {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    max-width: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(108, 77, 255, .15);
    border-radius: 10px;
    color: var(--at-accent);
    background: var(--at-tint);
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    vertical-align: middle;
    text-decoration: none;
    text-align: left;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.reference-article .art-body .article-data-table a.article-table-release svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
}

.reference-article .art-body .article-data-table a.article-table-release > span {
    white-space: nowrap;
}

.reference-article .art-body .article-data-table a.article-table-release:hover {
    border-color: var(--at-accent);
    color: #fff;
    background: var(--at-accent);
    opacity: 1;
}

.reference-article .art-body .article-data-table a.article-table-source {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 100%;
    margin: 0 0 0 4px;
    color: var(--at-muted);
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: middle;
    text-decoration-color: var(--at-border);
    text-underline-offset: 3px;
}

.reference-article .art-body .article-data-table a:focus-visible {
    outline: 2px solid var(--at-accent);
    outline-offset: 3px;
}

.dark-theme.reference-article .art-body .article-table {
    --at-accent: #b6a3ff;
    --at-tint: rgba(174, 148, 255, .1);
    box-shadow: none;
}

.dark-theme.reference-article .art-body .article-data-table a.article-table-release:hover {
    color: #171225;
}

@media (max-width: 700px) {
    .reference-article .art-body .article-table { margin: 24px 0; border-radius: 16px; }
    .reference-article .art-body .article-table-toolbar { min-height: 50px; padding: 12px 14px; font-size: 12px; }
    .reference-article .art-body .article-data-table th,
    .reference-article .art-body .article-data-table td { padding: 13px 14px; font-size: 13px; }

    /* Simple tables become compact cards; complex/spanning tables retain horizontal scrolling. */
    .reference-article .art-body table.article-data-table.is-responsive {
        display: block;
        min-width: 0;
    }
    .reference-article .art-body .article-data-table.is-responsive > caption {
        display: block;
        width: 100%;
    }
    .reference-article .art-body .article-data-table.is-responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .reference-article .art-body .article-data-table.is-responsive tbody { display: block; padding: 0 14px; }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        padding: 18px 0;
        border-bottom: 1px solid var(--at-border);
    }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr:last-child { border-bottom: 0; }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > td,
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > th {
        display: block;
        grid-column: 1 / -1;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 13px;
        line-height: 1.55;
    }
    .reference-article .art-body .article-data-table.is-responsive td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--at-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.4;
    }
    .reference-article .art-body .article-data-table.is-responsive td.article-table-game { font-size: 17px; line-height: 1.3; }
    .reference-article .art-body .article-data-table.is-responsive td.article-table-game::before,
    .reference-article .art-body .article-data-table.is-responsive td.article-table-description::before { display: none; }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > td.article-table-date,
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > td.article-table-platform { grid-column: auto; }
    .reference-article .art-body .article-data-table.is-responsive td.article-table-sources { padding-top: 2px; }
    .reference-article .art-body .article-data-table a.article-table-release { min-height: 44px; margin: 0 8px 0 0; padding: 10px 13px; font-size: 12px; }
    .reference-article .art-body .article-data-table a.article-table-source { min-height: 44px; margin: 0; padding: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .reference-article .art-body .article-data-table a.article-table-release { transition: none; }
}

@media print {
    .reference-article .art-body .article-table { box-shadow: none; border-radius: 0; }
    .reference-article .art-body .article-table-scroll { overflow: visible; }
    .reference-article .art-body table.article-data-table.is-responsive { display: table; min-width: 0; font-size: 10pt; }
    .reference-article .art-body .article-data-table.is-responsive thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; white-space: normal; }
    .reference-article .art-body .article-data-table.is-responsive tbody { display: table-row-group; padding: 0; }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr { display: table-row; }
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > td,
    .reference-article .art-body .article-data-table.is-responsive tbody > tr > th { display: table-cell; padding: 8px; }
    .reference-article .art-body .article-data-table.is-responsive td::before { display: none; }
}
