/*
 * Theme 17.0.14 — public/admin rendering parity and guest-cache hardening.
 *
 * The public homepage must not depend on whether WordPress' admin bar exists or
 * whether LiteSpeed serves an optimised guest CSS cache. 17.0.13 contained two
 * competing wrapper authorities: the initial 1180px Theme-17 max width and a
 * later containment rule that expanded .ns-w to 100%. Admin sessions typically
 * bypassed the optimised guest path and therefore saw the later rule, while a
 * stale/trimmed guest CSS path could stop at the earlier width. This boundary
 * makes the platform homepage geometry explicit and viewer-independent.
 */

body.ns17.ns17-home .ns-hdr > .ns-w,
body.ns17.ns17-home .ns17-home-main > .ns17-hero > .ns-w {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(24px, 2.4vw, 36px) !important;
    padding-right: clamp(24px, 2.4vw, 36px) !important;
}

@media (min-width: 901px) {
    body.ns17.ns17-home .ns17-hero-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(460px, .9fr) !important;
        gap: clamp(48px, 5vw, 80px) !important;
    }

    body.ns17.ns17-home .ns17-hero-copy {
        min-width: 0;
    }

    body.ns17.ns17-home .ns17-hero-copy h1 {
        width: auto;
        max-width: 720px !important;
        font-size: clamp(3rem, 4vw, 3.75rem) !important;
        line-height: 1.01 !important;
        text-wrap: balance;
    }

    body.ns17.ns17-home .ns17-hero-copy > p {
        max-width: 650px !important;
    }

    /* The WP admin bar changes vertical chrome only; it must never select a
       different horizontal homepage geometry. */
    body.admin-bar.ns17.ns17-home .ns17-hero-grid,
    body:not(.admin-bar).ns17.ns17-home .ns17-hero-grid {
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    body.ns17.ns17-home .ns-hdr > .ns-w,
    body.ns17.ns17-home .ns17-home-main > .ns17-hero > .ns-w {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}
