/*
 * The sat type explainers (types.js): /types lists them, /types/<slug>
 * shows one. A reading page: one column, the site's tokens, light, dark
 * and auto. The server's copy (typePages.renderArticleHtml) and the view's
 * use the same markup and classes.
 */

/* The types pane alone, whatever the width (as the attributions pane). */
.panes.is-types {
    display: flex;
}

.panes.is-types > .pane:not(.pane--types),
.panes:not(.is-types) > .pane--types {
    display: none;
}

.pane--types {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.type-article,
.types-index {
    max-width: 760px;
    padding: 12px 20px 32px;
    line-height: 1.55;
}

.type-crumbs {
    color: var(--muted);
    font-size: 13px;
}

.type-crumbs a {
    color: var(--ink-2);
}

.pane--types .type-title {
    margin: 4px 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.type-lead {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 16px;
}

.type-body h3,
.type-article section h3,
.types-section h3 {
    margin: 22px 0 6px;
    font-size: 16px;
    font-weight: 650;
}

.type-body h4 {
    margin: 16px 0 4px;
    font-size: 14px;
    font-weight: 650;
}

.type-body p,
.type-body ul,
.type-body ol {
    margin: 0 0 10px;
}

.type-body ul,
.type-body ol,
.type-article section ul {
    padding-left: 20px;
}

.type-body code {
    font-family: var(--mono);
    font-size: 0.92em;
}

.type-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.type-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.type-table th,
.type-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--grid);
    text-align: right;
    white-space: nowrap;
}

.type-table th[scope="row"],
.type-table thead th:first-child {
    text-align: left;
    white-space: normal;
}

.type-table thead th {
    color: var(--muted);
    font-weight: 500;
}

.type-asof {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.types-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--grid);
}

.types-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--grid);
}

.types-list a {
    font-weight: 600;
}

.types-summary {
    display: block;
    color: var(--ink-2);
    font-size: 13px;
}

@media (max-width: 719.98px) {
    .type-article,
    .types-index {
        padding: 10px 12px 24px;
    }

    .pane--types .type-title {
        font-size: 22px;
    }
}
