/* Single news post. */

.news-single {
    padding: 26px 0 80px;
}

/* The crumb repeats the full title, which on the sentence-length posts is the
   entire announcement. Clamp it to one line there rather than let the
   breadcrumb outgrow the headline it sits above. */
.crumb-current {
    overflow: hidden;
    max-width: 46ch;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ── Article ── */
/* A measure, not a container: this is body copy and wants roughly 70
   characters a line whatever the viewport does. */
.post-article {
    max-width: 760px;
}

.post-head {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sb-rule);
}

.post-date {
    display: block;
    margin-bottom: 10px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sb-taupe-text);
}

/* Smaller than a practice area h1 on purpose. These titles run to 40 words.  */
.post-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--sb-navy-deep);
}

.post-figure {
    margin: 32px 0 0;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Content ── */
.post-content {
    margin-top: 32px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #454545;
}

.post-content > * + * {
    margin-top: 1.25em;
}

.post-content h2,
.post-content h3 {
    margin-top: 1.8em;
    color: var(--sb-navy-deep);
    line-height: 1.3;
}

.post-content h2 { font-size: 1.375rem; }
.post-content h3 { font-size: 1.125rem; }

.post-content a {
    color: var(--sb-navy);
    text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
    list-style: revert;
}

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

.post-content img {
    height: auto;
    max-width: 100%;
}

.post-content blockquote {
    padding-left: 24px;
    border-left: 2px solid var(--sb-taupe);
    color: var(--sb-ink);
    font-style: italic;
}

/* ── Post to post ── */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--sb-rule);
}

/* The older link sits right even when there is no newer one to balance it. */
.post-nav-older {
    grid-column: 2;
    text-align: right;
}

.post-nav-link {
    text-decoration: none;
}

.post-nav-label {
    display: block;
    margin-bottom: 6px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sb-taupe-text);
}

/* Two lines of a sentence-length title is enough to tell them apart. */
.post-nav-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--sb-navy-deep);
}

.post-nav-link:hover .post-nav-title {
    color: var(--sb-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-back {
    margin-top: 36px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.post-back a {
    color: var(--sb-slate);
    text-decoration: none;
}

.post-back a:hover {
    color: var(--sb-navy);
}

@media (max-width: 768px) {
    .news-single {
        padding-bottom: 56px;
    }

    .crumb-current {
        max-width: 22ch;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-nav-older {
        grid-column: 1;
        text-align: left;
    }
}
