/**
 * New Developments 2026 — page styles
 * Scoped under #content-new-developments-2026 to avoid leaking into the
 * other 2025/26 pages.
 *
 * Sections: #dev-intro, #dev-gallery, #dev-list.
 * Heading ink: #0C171D. Body ink: #231F20. Grey band / placeholder /
 * stat ring: #E5E5E5. Brand yellow (stat ring): #FBF018.
 *
 * Design reference: design/NAMERES-NEWDEVELOPMENTS_PG.pdf (1440 wide;
 * copy starts at x=186, i.e. container + 50px, as on housing / shelter /
 * health).
 */
#content-new-developments-2026 {

    /* Mobile/tablet: centre all copy. Desktop layout is left-aligned. */
    @media (max-width: 991.98px) {
        text-align: center;
    }

    h1, h2, h3 {
        font-family: 'AksharBold', sans-serif;
        line-height: 1.05;
        color: #0C171D;
    }

    /* Body copy scale — same as shelter / health (Stories page scale,
       client feedback 2026-10-06):
         <992   16px on a 27px line  (27 / 16 = 1.6875)
         ≥992   18px on a 26px line  (26 / 18 = 1.4444)
       Paragraphs are separated by 16px. */
    p {
        font-family: 'MontserratRegular', sans-serif;
        font-size: 16px;
        line-height: 1.6875;
        color: #231F20;
        margin-bottom: 0;

        & + p {
            margin-top: 16px;
        }

        @media (min-width: 992px) {
            font-size: 18px;
            line-height: 1.4444;
        }
    }

    /* Tighter container at the md breakpoint, matching the other 2025/26 pages. */
    @media (min-width: 768px) and (max-width: 991px) {
        .container-md, .container-sm, .container {
            max-width: 720px;
        }
    }

    /* Copy column is indented 50px on desktop, as on housing / shelter. */
    @media (min-width: 992px) {
        .container {
            padding-left: 50px;
        }
    }

    /* Copy measure: 1110px in the PDF (x 186 → 1296). */
    .text-content p {
        max-width: 1110px;
        margin-left: auto;
        margin-right: auto;

        @media (min-width: 992px) {
            margin-left: 0;
            margin-right: 0;
        }
    }

    .visually-hidden {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* scroll-animations.js sets opacity/transform inline; !important is
       needed to beat that. Reduced-motion users see everything at once. */
    @media (prefers-reduced-motion: reduce) {
        [data-fade-in] {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }
}


/* ============================================================
 * Intro
 * Page heading and intro copy on white (same scale as health-2026).
 * PDF: h1 50px at y589, copy ends y747, grey band starts y790.
 * ============================================================ */
#dev-intro {
    padding-top: 50px;
    padding-bottom: 40px;

    @media (min-width: 992px) {
        padding-top: 90px;
        padding-bottom: 44px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 12px;

        @media (min-width: 768px) {
            font-size: 40px;
        }
        @media (min-width: 992px) {
            font-size: 48px;
        }
    }
}


/* ============================================================
 * Gallery
 * Grey band with four portrait photos in one row (246×318 in the PDF,
 * ~42px apart, spanning the 1110px copy column; 102px band padding
 * above and below). Photos are cropped to the PDF proportion with
 * object-fit so any Media Library upload keeps the row even.
 * Phone: two columns. Tablet up: four columns.
 * Classes are prefixed dev-gallery-* because WP core styles .gallery-item.
 * ============================================================ */
#dev-gallery {
    padding-top: 40px;
    padding-bottom: 40px;

    @media (min-width: 768px) {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    @media (min-width: 1200px) {
        padding-top: 102px;
        padding-bottom: 102px;
    }

    .dev-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 520px;
        margin: 0 auto;

        @media (min-width: 768px) {
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            max-width: 1110px;
        }
        @media (min-width: 992px) {
            margin: 0;
        }
        @media (min-width: 1200px) {
            gap: 42px;
        }
    }

    .dev-gallery-item {
        position: relative;
        margin: 0;
        overflow: hidden;
        aspect-ratio: 246 / 318;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}


/* ============================================================
 * Developments
 * One block per development. PDF geometry at 1440:
 *   band ends y1313 → h2 (35px) at y1412          → 98px above
 *   copy ends y1556 → placeholder box y1591 (705×405) → 35px
 *   box ends y1997 → next h2 at y2072                → 75px
 *   copy ends y2214 → stat ring y2270                → 56px
 *   ring ends y2634 → footer y2818                   → 184px
 * ============================================================ */
#dev-list {
    padding-top: 50px;
    padding-bottom: 70px;

    @media (min-width: 992px) {
        padding-top: 98px;
        padding-bottom: 184px;
    }

    .dev-block {
        & + .dev-block {
            margin-top: 50px;

            @media (min-width: 992px) {
                margin-top: 75px;
            }
        }
    }

    h2 {
        font-size: 26px;
        margin-bottom: 8px;

        @media (min-width: 768px) {
            font-size: 30px;
        }
        @media (min-width: 992px) {
            font-size: 35px;
            margin-bottom: 6px;
        }
    }

    /* Photo or placeholder box: 705×405 in the PDF (≈ 7:4), left-aligned
       under the copy on desktop, centred below. */
    .dev-media {
        display: block;
        margin: 24px auto 0;
        max-width: 705px;
        overflow: hidden;

        @media (min-width: 992px) {
            margin: 35px 0 0;
        }

        img {
            display: block;
            width: 100%;
            height: auto;
        }
    }

    .dev-media--placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 705 / 405;
        background-color: #E5E5E5;
    }

    /* PDF: 23px AksharBold, white on the grey box. */
    .dev-placeholder-text {
        font-family: 'AksharBold', sans-serif;
        font-size: 18px;
        line-height: 1;
        color: #FFFFFF;
        text-align: center;
        padding: 0 16px;

        @media (min-width: 768px) {
            font-size: 23px;
        }
    }

    /* Infographic: "x80 beds + medical suite".
       Everything is sized in em from the figure's font-size so the whole
       group scales as one. At 1em = 10px (≥992) it matches the PDF:
         yellow ring 364px, 35px thick; person 72×182; building 103×102;
         "x80" 100px AksharBold; "+" 100px; grey ring 272px, 26px thick,
         with a 21px mid-grey inner ring; stethoscope 81×96.
       Rings and the "+" share one vertical centre. */
    .dev-stats {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.1em;
        margin: 30px auto 0;
        font-size: 7px;
        line-height: 1;
        color: #0C171D;

        /* Phones: the two rings stack, "+" between them. From 576 up
           they sit side by side as in the PDF. */
        @media (min-width: 576px) {
            flex-direction: row;
            font-size: 7.5px;
        }
        @media (min-width: 992px) {
            justify-content: flex-start;
            margin: 56px 0 0;
            font-size: 10px;
        }
    }

    .dev-stat {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .dev-stat--beds {
        width: 36.4em;
        height: 36.4em;
        border: 3.5em solid #FBF018;
        /* PDF: the icon group sits 2.2em above and 1.5em right of the
           ring's centre. */
        padding: 0 0 4.5em 3em;
    }

    /* Person + (building over number). The person's feet line up with
       the bottom of the number; the building is right-aligned over the
       number, as in the PDF. */
    .dev-stat-group {
        display: flex;
        align-items: flex-end;
    }

    .dev-stat-person {
        display: block;
        width: 7.2em;
        height: auto;
    }

    .dev-stat-figure {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .dev-stat-building {
        display: block;
        width: 10.3em;
        height: auto;
        margin-right: 0.5em;
    }

    .dev-stat-number {
        display: block;
        font-family: 'AksharBold', sans-serif;
        font-size: 10em;
        line-height: 0.85;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .dev-stat-plus {
        display: block;
        flex-shrink: 0;
        font-family: 'AksharBold', sans-serif;
        font-size: 10em;
        line-height: 1;
    }

    .dev-stat--medical {
        width: 27.2em;
        height: 27.2em;
        border: 2.6em solid #E5E5E5;
        /* Inner mid-grey ring (PDF: #0C171D at ~25% over white). */
        box-shadow: inset 0 0 0 2.1em #C3C5C7;
    }

    .dev-stat-stethoscope {
        display: block;
        width: 8.1em;
        height: auto;
    }
}
