/* A readable horizontal fallback also works while JS loads or is disabled. */
.post-content table:not(.article-table-native) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.post-content table:not(.article-table-native) :is(th, td) {
    min-width: 9rem;
    overflow-wrap: break-word;
    word-break: normal;
}
.post-content .article-table {
    max-width: 100%;
    min-width: 0;
    margin: 1.6em 0;
}
.post-content .article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.post-content .article-table-scroll:focus-visible {
    outline: 3px solid #175ca8;
    outline-offset: 4px;
}
.post-content .article-table table.article-table-native {
    display: table;
    width: 100% !important;
    min-width: var(--article-table-min-width, 33rem);
    max-width: none;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0;
    border-collapse: collapse !important;
    border-spacing: 0;
    table-layout: auto;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: normal;
}
.post-content .article-table :is(th, td) {
    min-width: 8rem;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e8f0 !important;
    vertical-align: top;
    text-align: start !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.75;
}
.post-content .article-table th {
    background: #f1f5fb;
    color: #1f345b;
}
.post-content .article-table td { background: #fff; }
.post-content .article-table tr:last-child > td { border-bottom: 0 !important; }
.post-content .article-table :is(th, td) > :last-child { margin-bottom: 0; }
.post-content .article-table-label { display: none; }
.post-content .article-table-hint {
    display: none;
    margin: 0 0 10px;
    color: #536780;
    font-size: .88rem;
    line-height: 1.6;
}
.post-content .article-table--overflow > .article-table-hint { display: block; }
.post-content .article-table caption {
    padding: 12px 16px;
    caption-side: top;
    color: #354054;
    font-weight: 600;
    white-space: normal;
}
@media screen and (max-width: 767px) {
    .post-content .article-table--stacked > .article-table-scroll {
        border: 0;
        border-radius: 0;
    }
    .post-content .article-table--stacked table.article-table-native {
        display: block;
        min-width: 0;
        border: 0 !important;
        overflow: visible;
        font-size: 1.0625rem;
        line-height: 1.8;
    }
    .post-content .article-table--stacked :is(thead, tbody) { display: block; }
    /* Keep column headers in the accessibility tree instead of display:none. */
    .post-content .article-table--stacked .article-table-header {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .post-content .article-table--stacked colgroup { display: none; }
    .post-content .article-table--stacked .article-table-row {
        display: block;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 16px;
        border: 1px solid #dfe4ed;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }
    .post-content .article-table--stacked .article-table-row:last-child { margin-bottom: 0; }
    .post-content .article-table--stacked .article-table-row > :is(th, td) {
        display: block;
        width: auto !important;
        min-width: 0;
        max-width: none;
        height: auto !important;
        padding: 13px 16px !important;
        border: 0 !important;
        border-top: 1px solid #edf0f5 !important;
        font-size: 1.0625rem !important;
        line-height: 1.8;
    }
    .post-content .article-table--stacked .article-table-row > .article-table-row-title {
        border-top: 0 !important;
        background: #f1f5fb !important;
        color: #1f345b;
        font-weight: 700;
    }
    .post-content .article-table--stacked .article-table-label {
        display: block;
        margin: 0 0 4px;
        color: #536780;
        font-size: .875rem;
        font-weight: 600;
        line-height: 1.65;
    }
    .post-content .article-table--stacked caption { display: block; padding: 0 0 12px; }
}
@media print {
    .post-content .article-table-scroll { overflow: visible; border: 0; }
    .post-content .article-table table.article-table-native { min-width: 0; font-size: 10pt; }
    .post-content .article-table :is(th, td) { min-width: 0; padding: 7px !important; }
    .post-content .article-table-hint { display: none !important; }
}
