/* Single resource. Loaded on top of news-single.css, which supplies the
   article column. This is only what a legal memo has that a news post
   does not. */

/* ── Tables ── */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--sb-rule);
    text-align: left;
    vertical-align: top;
}

.post-content th {
    border-bottom: 2px solid var(--sb-taupe);
    font-weight: 600;
    color: var(--sb-navy-deep);
}

/* ── Footnotes ── */
/* The references are superscripts in running text. Without the line-height
   reset each one pushes its line apart from the rest of the paragraph. */
.post-content sup {
    line-height: 0;
    font-size: .75em;
}

.post-content sup a {
    padding: 0 1px;
    text-decoration: none;
}

.post-content .footnotes {
    font-size: .875rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.post-content .footnotes li + li {
    margin-top: .4em;
}

.post-content .footnotes a {
    text-decoration: none;
}

/* A jump to a note, or back to its reference, would otherwise land under
   the sticky header. */
.post-content [id] {
    scroll-margin-top: 120px;
}

/* ── Closing note ── */
.res-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding: 28px;
    background: var(--sb-wash);
}

.res-cta p {
    max-width: 44ch;
    margin: 0;
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--sb-ink);
}

@media (max-width: 768px) {
    /* Four-row tables fit a phone, but only without the desktop padding. */
    .post-content th,
    .post-content td {
        padding: 10px 8px;
    }

    .res-cta {
        justify-content: flex-start;
    }
}
