/*
 * SABA_HOMEPAGE_POLISH_RC1
 *
 * Homepage-only presentation refinement.
 * Preserves the existing layout, colours, content order and typography.
 */

/*
 * Convert the wide outer whitespace into a restrained branded canvas.
 * The colour strength is deliberately low to keep news content dominant.
 */
body.home > main.mag-home,
body.home > .mag-home {
    background-color: #f7f9fc;
    background-image:
        radial-gradient(
            circle at 7% 16%,
            rgba(247, 148, 64, 0.055) 0,
            rgba(247, 148, 64, 0) 29rem
        ),
        radial-gradient(
            circle at 94% 30%,
            rgba(18, 63, 112, 0.060) 0,
            rgba(18, 63, 112, 0) 34rem
        );
    background-repeat: no-repeat;
}

/*
 * Use more of large desktop displays while leaving cards and typography
 * at their current professional scale.
 */
@media (min-width: 1600px) {
    body.home .mag-home > .site-shell {
        width: min(1360px, calc(100% - 64px));
        max-width: 100%;
        margin-inline: auto;
    }
}

/*
 * Fill only the principal editorial image frame.
 * No stretching occurs: excess image area is cropped proportionally.
 *
 * A future story may set:
 * --saba-home-image-position: 50% 35%;
 * when its important subject is above the centre.
 */
body.home .mag-card--lead .mag-card__image img,
body.home .hero-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--saba-home-image-position, 50% 50%);
}

/*
 * Keep the established mobile layout untouched and remove decorative
 * gradients where screen space is limited.
 */
@media (max-width: 680px) {
    body.home > main.mag-home,
    body.home > .mag-home {
        background-color: #ffffff;
        background-image: none;
    }
}
