/* Koinonia Stories Hub · Ministries 2.0 refinements · 1.1.2
 * Loaded only on whitelisted Ministries collection requests. The shared
 * Blog/Relief stylesheet stays byte-for-byte unchanged from 1.1.1. */

.ksh-ministries-controls .ksh-topic-tabs {
    margin-bottom: 36px;
}

/* Women’s / Pastor’s: their short historical introductions benefit from the
 * restrained information card used in 1.1.1. */
.ksh-ministry-overview--compact {
    margin-bottom: 46px;
}

/* Koinonia Culture: preserve its original Bridge default-page width instead
 * of forcing seven WPBakery rows and Qode circles into a small grey card. */
.ksh-ministry-info--contained {
    margin-bottom: 54px;
    padding-bottom: 4px;
    color: #4f4f4f;
}

/* Kyiv Ministry Teaching Center: the source Page is full_width.php. Keep the
 * same full-width wrapper so counters/team blocks retain their native layout. */
.ksh-ministry-info--fullwidth {
    margin-bottom: 54px;
    color: #4f4f4f;
    background: #fff;
}

.ksh-ministry-info img {
    max-width: 100%;
    height: auto;
}

.ksh-ministry-stories {
    clear: both;
}

.ksh-ministry-stories-heading {
    margin: 0 0 30px;
    padding-top: 30px;
    border-top: 1px solid var(--ksh-line);
}

.ksh-ministry-stories-heading h2 {
    margin: 0;
    color: #242424;
    font-size: 28px;
    line-height: 1.24;
    font-weight: 400;
}

/* These four images come from the post's already-linked original file when a
 * historical post has no _thumbnail_id. No cropping and no DB mutation. */
.ksh-story-card__image--content-fallback {
    object-fit: contain;
}

@media (max-width: 700px) {
    .ksh-ministries-controls .ksh-topic-tabs {
        margin-bottom: 26px;
    }

    .ksh-ministry-overview--compact,
    .ksh-ministry-info--contained,
    .ksh-ministry-info--fullwidth {
        margin-bottom: 38px;
    }

    .ksh-ministry-stories-heading {
        margin-bottom: 24px;
        padding-top: 24px;
    }

    .ksh-ministry-stories-heading h2 {
        font-size: 24px;
    }
}
