/* One responsive table presentation for the canonical magazine and AMP.
   Original cell values/headers remain in the document, without duplicate tables. */
.ts-article-table,
.ts-article-table * { box-sizing: border-box; }
.ts-article-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1.5em 0;
    font-size: 15px;
    line-height: 1.5;
}
.ts-article-table .ts-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
.ts-article-table .ts-table-scroll:focus-visible {
    outline: 2px solid #1c5d4d;
    outline-offset: 2px;
}
.ts-magazine-body .ts-article-table > table,
.ts-magazine-body .ts-article-table .ts-table-scroll > table,
.ts-amp-body .ts-article-table > table,
.ts-amp-body .ts-article-table .ts-table-scroll > table {
    display: table;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-collapse: collapse;
    overflow: visible;
    font-size: inherit;
    line-height: inherit;
}
.ts-table-comparison { overflow-x: auto; }
.ts-table-comparison > table { table-layout: fixed; }
.ts-article-table th, .ts-article-table td {
    padding: 10px 12px;
    border: 1px solid #dce5e0;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}
.ts-article-table th { background: #f4f8f5; }
.ts-article-table .ts-table-label,
.ts-article-table .ts-table-scroll-hint { display: none; }
.ts-article-table td > :last-child,
.ts-article-table th > :last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .ts-article-table { font-size: 15px; line-height: 1.45; }
    .ts-table-comparison { overflow: visible; }
    .ts-article-table .ts-table-scroll-hint {
        display: block;
        margin-bottom: 7px;
        color: #586961;
        font-size: 12px;
    }
    .ts-article-table th, .ts-article-table td { padding: 8px; }
    .ts-magazine-body .ts-table-comparison > table,
    .ts-amp-body .ts-table-comparison > table {
        display: block;
        width: 100%;
        border: 0;
        background: transparent;
        overflow: visible;
    }
    .ts-table-comparison > table > thead,
    .ts-table-comparison > table > tbody { display: block; width: 100%; }
    /* Keep column headers available to assistive technology, not display:none. */
    .ts-table-comparison tr[data-ts-table-heading] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    .ts-table-comparison tr:not([data-ts-table-heading]) {
        display: block;
        width: 100%;
        margin: 0 0 12px;
        border: 1px solid #dce5e0;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
    }
    .ts-table-comparison tr:not([data-ts-table-heading]) > :is(th,td) {
        display: block;
        width: auto;
        min-width: 0;
        max-width: 100%;
        height: auto;
        padding: 10px 12px;
        border: 0;
        border-top: 1px solid #e8eeeb;
        background: transparent;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .ts-table-comparison tr:not([data-ts-table-heading]) > :first-child {
        border-top: 0;
        background: #edf5f1;
        color: #1c5d4d;
        font-weight: 750;
    }
    .ts-table-comparison .ts-table-label {
        display: block;
        margin: 0 0 4px;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 750;
        color: #586961;
    }
    /* Two-column and complex tables retain their real table structure and scroll locally. */
    .ts-article-table .ts-table-scroll > table { table-layout: auto; }
}
