body {
    font-family: var(--gh-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif);
}

/* End-of-story sharing stays compact and separate from editorial links. */
.post-template .post-share {
    width: 100%;
    max-width: 840px;
    margin: 4px auto clamp(28px, 4vw, 48px);
    padding-top: 24px;
    border-top: 1px solid #dce4e8;
    font-family: var(--gh-font-body, sans-serif);
}

.post-template .post-share-title {
    margin: 0 0 14px;
    color: #28343a;
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-template .post-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.post-template .post-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #cbd6db;
    border-radius: 999px;
    color: #28343a;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease;
}

.post-template .post-share-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.post-template .post-share-button:hover,
.post-template .post-share-button:focus-visible {
    border-color: #007aa8;
    color: #006c98;
    text-decoration: none;
    background: #f2f9fc;
}

.post-template .post-share-button:hover {
    transform: translateY(-1px);
}

.post-template .post-share-button:focus-visible {
    outline: 2px solid #16a9ec;
    outline-offset: 2px;
}

.post-template .post-share-copy.is-copied {
    border-color: #15845b;
    color: #116846;
    background: #f0faf6;
}

.post-template .post-share-status {
    min-height: 1.4em;
    margin: 7px 0 0;
    color: #53656d;
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Disqus is intentionally deferred until this panel approaches the viewport. */
.post-template .post-full-comments {
    max-width: 1060px;
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(44px, 5vw, 68px);
    font-family: var(--gh-font-body, sans-serif);
    text-align: center;
}

.post-template .post-comments-heading {
    max-width: 620px;
    margin: 0 auto 20px;
}

.post-template .post-comments-kicker {
    margin: 0 0 5px;
    color: #007aa8;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.post-template .post-comments-heading h2 {
    margin: 0 0 8px;
    color: #202b30;
    font-size: clamp(2.7rem, 3vw, 3.8rem);
    line-height: 1.12;
}

.post-template .post-comments-heading p:last-child {
    margin: 0;
    color: #667982;
    font-size: 1.45rem;
    line-height: 1.5;
}

.post-template .post-comments-load {
    min-height: 43px;
    padding: 10px 19px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 800;
    background: #e43434;
    cursor: pointer;
}

.post-template .post-comments-load:hover,
.post-template .post-comments-load:focus-visible {
    background: #c82323;
}

.post-template .post-comments-load:focus-visible {
    outline: 3px solid rgba(228,52,52,.28);
    outline-offset: 3px;
}

.post-template .post-comments-load:disabled {
    cursor: wait;
    opacity: .68;
}

.post-template .post-comments-status {
    min-height: 1.4em;
    margin: 9px 0 0;
    color: #667982;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-template #disqus_thread {
    margin-top: 14px;
    text-align: initial;
}

.post-template .post-full-comments:not(.is-loaded) #disqus_thread:empty {
    display: none;
}

@media (max-width: 600px) {
    .post-template .post-share-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-template .post-share-button {
        width: 100%;
    }

    .post-template .post-full-comments {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
}

.post-full-meta {
    flex-wrap: wrap;
}

.post-full-meta-date time {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gh-font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif);
}

.message-success,
.message-error {
    display: none;
    width: 100%;
}

.success .message-success,
.error .message-error {
    display: block;
}

.subnav ul li a {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 22px;
    line-height: 2.35;
    font-weight: 200;
    text-decoration: none;
}

.subnav ul li a:hover {
    color: #eee;
    text-decoration: none;
}

/* Responsive post and page hero. The legacy theme used fixed heights, which
   clipped long headlines once publication and update times wrapped. */
.post-template .post-full-image,
.page-template .post-full-image {
    box-sizing: border-box;
    height: auto;
    min-height: clamp(500px, 40vw, 620px);
    margin: 2vw -2vw -72px;
    padding: clamp(50px, 5vw, 82px) clamp(18px, 2.5vw, 36px) clamp(112px, 9vw, 150px);
    align-items: center;
    background-position: center;
}

.post-template .site-main {
    background: #edf2f5;
}

.post-template .post-full-content {
    border: 1px solid rgba(39,44,49,.07);
    border-radius: 9px 9px 0 0;
    box-shadow: 0 18px 48px rgba(39,44,49,.10);
}

.post-template .post-full-header,
.page-template .post-full-header {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding: 0;
    align-self: auto;
    font-size: inherit;
}

.post-template .post-full-title,
.page-template .post-full-title {
    max-width: 1260px;
    margin: 0 auto;
    font-size: clamp(3.8rem, 4.2vw, 6.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.post-template .post-full-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 10px;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

.post-template .post-full-meta a {
    color: #16b8ff;
}

.post-template .post-full-meta .meta-divider {
    color: rgba(255,255,255,.42);
}

.post-template .post-full-publish-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 16px auto 0;
    color: rgba(255,255,255,.82);
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

.post-template .post-full-meta-label {
    color: #fff;
    font-weight: 700;
}

/* Reading layout: keep prose comfortable without constraining editorial
   images, embeds, galleries, or advertising containers. */
.post-template .post-full-content {
    font-size: 2.05rem;
    line-height: 1.68;
}

.post-template .post-content {
    padding-bottom: clamp(34px, 4vw, 62px);
}

.post-template .post-content > p,
.post-template .post-content > h1,
.post-template .post-content > h2,
.post-template .post-content > h3,
.post-template .post-content > h4,
.post-template .post-content > h5,
.post-template .post-content > h6,
.post-template .post-content > ul,
.post-template .post-content > ol,
.post-template .post-content > dl,
.post-template .post-content > blockquote,
.post-template .post-content > pre,
.post-template .post-content > hr {
    width: 100%;
    min-width: 0;
    max-width: 840px;
}

.post-template .post-content > p:first-child {
    font-size: 1.14em;
    line-height: 1.58;
}

.post-template .post-content > h2 {
    margin-top: 1.5em;
    margin-bottom: .45em;
}

.post-template .post-content > h3,
.post-template .post-content > h4 {
    margin-top: 1.35em;
    margin-bottom: .4em;
}

.post-template .post-content > blockquote {
    padding: .25em 1.35em;
    background: #f4f8fb;
    border-left-color: #16a9ec;
}

.post-template .post-full-content figcaption {
    color: #667982;
    font-family: var(--gh-font-body, sans-serif);
}

/* Editorial links: a restrained news-style treatment with a persistent,
   accessible cue instead of the legacy one-pixel inset shadow. */
.post-template .post-content a:not(.kg-btn):not(.kg-bookmark-container) {
    color: #15171a;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: rgba(21,23,26,.72);
    text-decoration-thickness: 1.5px;
    text-underline-offset: .16em;
    text-decoration-skip-ink: auto;
    box-shadow: none;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.post-template .post-content a:not(.kg-btn):not(.kg-bookmark-container):hover {
    color: #006c98;
    text-decoration-color: #006c98;
    text-decoration-thickness: 2px;
}

.post-template .post-content a:not(.kg-btn):not(.kg-bookmark-container):focus-visible {
    color: #006c98;
    text-decoration-color: #006c98;
    outline: 2px solid #16a9ec;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 800px) {
    .post-template .post-full-content {
        font-size: 1.85rem;
        line-height: 1.65;
    }

    .post-template .post-content > p:first-child {
        font-size: 1.08em;
    }
}

.post-template .post-full-meta-date time {
    color: rgba(255,255,255,.82);
}

.post-template .post-full-meta-date {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 4px;
    row-gap: 3px;
}

.post-template .post-full-meta-updated {
    display: inline-flex;
    flex: 0 0 100%;
    justify-content: center;
    gap: 0 4px;
}

.post-template .post-full-meta-updated .date-divider {
    display: none;
}

.post-template .post-full-publish-details .date-divider {
    color: rgba(255,255,255,.42);
}

@media (max-width: 1170px) {
    .post-template .post-full-image,
    .page-template .post-full-image {
        min-height: clamp(460px, 50vw, 560px);
        margin: 0 -4vw -52px;
        padding: clamp(42px, 5vw, 62px) clamp(16px, 2.5vw, 28px) 102px;
    }

    .post-template .post-full-title,
    .page-template .post-full-title {
        font-size: clamp(3.7rem, 4.4vw, 5rem);
    }
}

@media (max-width: 800px) {
    .post-template .post-full-image,
    .page-template .post-full-image {
        min-height: 0;
        margin-bottom: -30px;
        padding: 46px 18px 82px;
    }

    .post-template .post-full-title,
    .page-template .post-full-title {
        font-size: clamp(3.5rem, 9vw, 5.2rem);
        line-height: 1.04;
        letter-spacing: -0.03em;
    }
}

@media (max-width: 500px) {
    .post-template .post-full-image,
    .page-template .post-full-image {
        margin-bottom: -16px;
        padding: 32px 14px 68px;
    }

    .post-template .post-full-header,
    .page-template .post-full-header {
        padding: 0;
    }

    .post-template .post-full-title,
    .page-template .post-full-title {
        font-size: clamp(3.2rem, 10.5vw, 4.2rem);
        line-height: 1.03;
    }

    .post-template .post-full-meta,
    .post-template .post-full-publish-details {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .post-template .post-full-meta {
        margin-bottom: 10px;
    }

    .post-template .post-full-publish-details {
        margin-top: 14px;
    }
}

@media (max-width: 600px) {
    .post-template .site-main {
        background: #fff;
    }

    .post-template .post-full-image {
        margin-bottom: 0;
    }

    .post-template .post-full-content,
    .post-template .post-full-comments {
        width: calc(100% + 8vw);
        margin-right: -4vw;
        margin-left: -4vw;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* The legacy -20px feed margin is wider than the 4vw outer gutter below
       500px, which makes the entire document horizontally scrollable. */
    .post-template .read-next-feed {
        margin-right: 0;
        margin-left: 0;
    }

    .post-template .read-next-feed > .read-next-card,
    .post-template .read-next-feed > .post-card {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Publication and transparency pages */
.sfist-info-page {
    background: #f4f8fb;
}

.sfist-info-hero {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(125deg, #b91421 0%, #e43434 55%, #f05a45 100%);
}

.sfist-info-hero-inner {
    padding: clamp(64px, 9vw, 124px) 0 clamp(84px, 10vw, 138px);
}

.sfist-info-kicker,
.sfist-section-heading > span,
.sfist-staff-role {
    display: block;
    margin-bottom: 10px;
    color: #16b8ff;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sfist-info-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(4.4rem, 7vw, 8.2rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.sfist-info-hero p {
    max-width: 790px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.88);
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    line-height: 1.5;
}

.sfist-info-layout {
    position: relative;
    margin-top: -56px;
    margin-bottom: 80px;
    padding: clamp(34px, 5vw, 72px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(39,44,49,.10);
}

.sfist-info-body {
    max-width: 820px;
    margin: 0 auto;
    color: #34444c;
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1.7;
}

.sfist-info-body h2,
.sfist-info-body h3 {
    color: #15171a;
    font-family: var(--gh-font-heading, sans-serif);
}

.sfist-info-body h2 {
    margin-top: 2em;
    font-size: 3rem;
}

.sfist-info-body a,
.sfist-action-links a,
.sfist-staff-byline {
    color: #087fb8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sfist-info-section + .sfist-info-section {
    margin-top: 70px;
}

.sfist-section-heading h2,
.sfist-publisher-panel h2 {
    margin: 0;
    color: #15171a;
    font-size: clamp(3rem, 4vw, 4.8rem);
    letter-spacing: -.035em;
}

.sfist-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.sfist-staff-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ebee;
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(39,44,49,.06);
}

.sfist-staff-photo {
    display: block;
    overflow: hidden;
    height: 260px;
    color: #fff;
    background: linear-gradient(135deg, #28333a, #e43434);
    text-decoration: none;
}

.sfist-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfist-staff-photo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
}

.sfist-staff-copy {
    padding: 26px;
}

.sfist-staff-copy h3 {
    margin: 0 0 14px;
    font-size: 2.6rem;
}

.sfist-staff-copy h3 a {
    color: #15171a;
}

.sfist-staff-copy p {
    margin-bottom: 18px;
    color: #52636c;
    font-family: Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.55;
}

.sfist-publisher-panel {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
    gap: 48px;
    padding: 42px;
    color: #fff;
    background: #15171a;
    border-radius: 7px;
}

.sfist-publisher-panel h2,
.sfist-publisher-panel p {
    color: #fff;
}

.sfist-publisher-panel p,
.sfist-history-panel p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.65;
}

.sfist-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 26px;
    font-weight: 700;
}

/* Expanded footer */
.site-footer {
    padding-top: 54px;
    padding-bottom: 28px;
}

.site-footer-content {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(130px, 1fr));
    gap: 38px;
    align-items: start;
}

.site-footer-brand p {
    max-width: 330px;
    margin: 14px 0 0;
    line-height: 1.55;
}

.site-footer-wordmark {
    color: #fff !important;
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
}

.site-footer-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-group h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 42px;
    padding-top: 22px;
    color: rgba(255,255,255,.55);
    font-size: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.14);
}

.site-footer-legal a {
    color: rgba(255,255,255,.7);
}

@media (max-width: 900px) {
    .sfist-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .sfist-info-hero-inner {
        padding: 52px 0 88px;
    }

    .sfist-info-layout {
        margin-top: -38px;
        margin-bottom: 42px;
        padding: 28px 22px;
    }

    .sfist-staff-grid,
    .sfist-publisher-panel,
    .site-footer-content {
        grid-template-columns: 1fr;
    }

    .sfist-staff-photo {
        height: 300px;
    }

    .sfist-publisher-panel {
        gap: 24px;
        padding: 28px;
    }

    .site-footer-content {
        align-items: start;
        text-align: left;
    }

    .site-footer-legal {
        flex-direction: column;
    }
}
