/************************************************************

    ███╗   ██╗███████╗██╗    ██╗███████╗██████╗  ██████╗  ██████╗ ███╗   ███╗
    ████╗  ██║██╔════╝██║    ██║██╔════╝██╔══██╗██╔═══██╗██╔═══██╗████╗ ████║
    ██╔██╗ ██║█████╗  ██║ █╗ ██║███████╗██████╔╝██║   ██║██║   ██║██╔████╔██║
    ██║╚██╗██║██╔══╝  ██║███╗██║╚════██║██╔══██╗██║   ██║██║   ██║██║╚██╔╝██║
    ██║ ╚████║███████╗╚███╔███╔╝███████║██║  ██║╚██████╔╝╚██████╔╝██║ ╚═╝ ██║
    ╚═╝  ╚═══╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝

 ************************************************************/



    /*
        Two arrangements of one thing.

            featured — Homepage / "Newsroom", 1440 x 1230
                       lead card 904 wide beside two of 510, gap 20
                       header to cards 58, between the small cards 70

            grid     — Blog Post / "read also", 1440 x 695
                       three cards of 467, gap 20
                       header to cards 60

        Both share the header (icon 89 x 88, gap 50 to the title) and the card
        itself, whose picture is 4:3 either way — 904:679 and 467:350 both come
        to 1.33.
    */

    .nvm-newsroom {
        padding: clamp( 50px, 5.73vw, 110px ) var(--nvm-content-inset) 0;
    }

        /*
            Featured is two columns, not a header above a grid.

            The artboard builds it as a left column holding the heading and the
            large article, and a right one holding the rest — which is why the
            right column starts level with the word "Newsroom" rather than
            below it. Treating the heading as a full width row pushed both
            columns down and doubled the space above the large card.

            904 and 510 of a 1434 total are the drawn proportions, as
            fractions so they hold at any width.
        */

        .nvm-newsroom--featured .nvm-newsroom__inner {
            display: grid;
            grid-template-columns: 904fr 510fr;
            gap: 20px;
            align-items: start;
        }

            .nvm-newsroom__main,
            .nvm-newsroom__side {
                display: flex;
                flex-direction: column;
                min-width: 0;
            }

            /* Heading to the large article. */

            .nvm-newsroom__main {
                gap: 58px;
            }

            /* Between the two stacked articles. */

            .nvm-newsroom__side {
                gap: 70px;
            }

        /* The row arrangement keeps the heading above, full width. */

        .nvm-newsroom--grid .nvm-newsroom__inner {
            display: flex;
            flex-direction: column;
            gap: 60px;
        }



/*******************************

    ██╗  ██╗███████╗ █████╗ ██████╗
    ██║  ██║██╔════╝██╔══██╗██╔══██╗
    ███████║█████╗  ███████║██║  ██║
    ██╔══██║██╔══╝  ██╔══██║██║  ██║
    ██║  ██║███████╗██║  ██║██████╔╝
    ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝

 *******************************/



    .nvm-newsroom__header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

        .nvm-newsroom__icon img {
            display: block;
            width: auto;
            max-height: 88px;
        }

        .nvm-newsroom__heading {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
        }

        /* The prefix is required: theme.typography.css styles `.responsiville
           h2` at one class plus one element, which outranks a lone class. */

        .nvm-newsroom .nvm-newsroom__title {
            margin: 0;
            font-size: clamp( 26px, 2.6vw, 50px );
            font-weight: 800;
            line-height: 1.1;
            color: var(--nvm-color-ink);
        }

        .responsiville .nvm-newsroom__view-all {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 0;
            background: none;
            color: var(--nvm-color-ink);
            font-size: 14px;
            font-weight: 700;
            line-height: 1.5;
            text-transform: uppercase;
            transition: opacity 0.2s ease-in-out;
        }

        .responsiville .nvm-newsroom__view-all:hover {
            background: none;
            opacity: 0.6;
        }



/**********************************************

    ██╗      █████╗ ██╗   ██╗ ██████╗ ██╗   ██╗████████╗
    ██║     ██╔══██╗╚██╗ ██╔╝██╔═══██╗██║   ██║╚══██╔══╝
    ██║     ███████║ ╚████╔╝ ██║   ██║██║   ██║   ██║
    ██║     ██╔══██║  ╚██╔╝  ██║   ██║██║   ██║   ██║
    ███████╗██║  ██║   ██║   ╚██████╔╝╚██████╔╝   ██║
    ╚══════╝╚═╝  ╚═╝   ╚═╝    ╚═════╝  ╚═════╝    ╚═╝

 **********************************************/



    /* In featured the wrapper holds only the lead, so it needs no rules of
       its own; in the row arrangement it is the three column grid. */

    .nvm-newsroom--grid .nvm-newsroom__posts {
        display: grid;
        grid-template-columns: repeat( 3, 1fr );
        gap: 20px;
    }



/*************************************

     ██████╗ █████╗ ██████╗ ██████╗
    ██╔════╝██╔══██╗██╔══██╗██╔══██╗
    ██║     ███████║██████╔╝██║  ██║
    ██║     ██╔══██║██╔══██╗██║  ██║
    ╚██████╗██║  ██║██║  ██║██████╔╝
     ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝

 *************************************/



    .nvm-newsroom__card {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

        .nvm-newsroom__meta {
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: space-between;
            gap: 20px;
        }

            .nvm-newsroom__category,
            .nvm-newsroom__date {
                font-size: 14px;
                font-weight: 800;
                line-height: 1;
                text-transform: uppercase;
                color: var(--nvm-color-stone);
            }

            /*
                Where the category leads to its own archive it is still the
                same quiet label: the theme's link colour and the underline
                it gives a link would make it louder than the headline under
                the picture, which is the thing to read first.
            */

            .responsiville a.nvm-newsroom__category {
                padding: 0;
                border: none;
                background: none;
                color: var(--nvm-color-stone);
                text-decoration: none;
                transition: color 0.2s ease-in-out;
            }

            .responsiville a.nvm-newsroom__category:hover {
                background: none;
                color: var(--nvm-color-gold);
            }

        /*
            The picture is 4:3 in both arrangements, and the ratio is held so
            an article whose featured image is the wrong shape is cropped
            rather than breaking the row.
        */

        /* Positioned, so the hover image can sit on top of the first. */

        .responsiville .nvm-newsroom__media {
            position: relative;
            display: block;
            padding: 0;
            overflow: hidden;
            background: var(--nvm-color-sand-dark);
            aspect-ratio: 4 / 3;
        }

        .responsiville .nvm-newsroom__media:hover {
            background: var(--nvm-color-sand-dark);
            opacity: 1;
        }

            .responsiville .nvm-newsroom__image {
                display: block;
                width: 100%;
                height: 100% !important;
                object-fit: cover;
                transition: transform 0.6s ease-in-out, opacity 0.4s ease-in-out;
            }

            /*
                Two behaviours, never both at once.

                An article with a second photograph crossfades to it — the
                hover image is stacked on top and simply fades in. One without
                brings its own picture 14% closer instead, which is the
                transform the Figma variant carries. Every card answers the
                cursor either way, and nothing zooms while it is also fading.
            */

            .nvm-newsroom__card:not(.nvm-newsroom__card--has-hover):hover .nvm-newsroom__image {
                transform: scale(1.14);
            }

            .nvm-newsroom__image--hover {
                position: absolute;
                top: 0;
                left: 0;
                opacity: 0;
            }

            .nvm-newsroom__card--has-hover:hover .nvm-newsroom__image--hover {
                opacity: 1;
            }

        .nvm-newsroom__foot {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: space-between;
            gap: 30px;
        }

            /*
                Named by its own class, not by the block around it.

                This used to read `.nvm-newsroom .nvm-newsroom__card-title`,
                which meant the size only applied to cards standing inside
                the block. home.php uses these same cards to lay out the blog
                archive, where there is no such wrapper — so the titles there
                fell through to `.responsiville h2` and came out at better
                than twice the size.

                Two classes is also what it takes to beat that heading rule,
                which carries one class and one element.
            */

            .responsiville .nvm-newsroom__card-title {
                margin: 0;
                max-width: 348px;
                font-size: 18px;
                font-weight: 700;
                line-height: 1.35;
            }

                .responsiville .nvm-newsroom__card-title a {
                    padding: 0;
                    background: none;
                    color: var(--nvm-color-ink);
                    font-weight: 700;
                }

                .responsiville .nvm-newsroom__card-title a:hover {
                    background: none;
                    opacity: 0.6;
                }

            .responsiville .nvm-newsroom__read {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                flex: 0 0 auto;
                padding: 0;
                background: none;
                color: var(--nvm-color-ink);
                font-size: 14px;
                font-weight: 700;
                line-height: 1.5;
                text-transform: uppercase;
                white-space: nowrap;
                transition: opacity 0.2s ease-in-out;
            }

            .responsiville .nvm-newsroom__read:hover {
                background: none;
                opacity: 0.6;
            }

    @media ( prefers-reduced-motion: reduce ) {

        .responsiville .nvm-newsroom__image,
        .nvm-newsroom__card:hover .nvm-newsroom__image {
            transition: none;
            transform: none;
        }

        /* The crossfade stays — it is a change of picture, not motion. */

        .nvm-newsroom__image--hover {
            transition: opacity 0.2s linear;
        }

    }



/****************************************************

    ██████╗ ███████╗███████╗██████╗  ██████╗ ███╗   ██╗███████╗██╗██╗   ██╗███████╗
    ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔═══██╗████╗  ██║██╔════╝██║██║   ██║██╔════╝
    ██████╔╝█████╗  ███████╗██████╔╝██║   ██║██╔██╗ ██║███████╗██║██║   ██║█████╗
    ██╔══██╗██╔══╝  ╚════██║██╔═══╝ ██║   ██║██║╚██╗██║╚════██║██║╚██╗ ██╔╝██╔══╝
    ██║  ██║███████╗███████║██║     ╚██████╔╝██║ ╚████║███████║██║ ╚████╔╝ ███████╗
    ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═══╝  ╚══════╝

 ****************************************************/



    /*
        No tablet or mobile artboard exists for this section either. Both
        arrangements become a single column on a phone and two on a tablet —
        a lead card beside a narrow stack stops meaning anything once the
        columns are a few centimetres wide, so below `desktop` the lead is
        simply the first card and everything is the same size.
    */

    .small .nvm-newsroom--featured .nvm-newsroom__inner,
    .tablet .nvm-newsroom--featured .nvm-newsroom__inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .small .nvm-newsroom--grid .nvm-newsroom__posts,
    .tablet .nvm-newsroom--grid .nvm-newsroom__posts {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tablet .nvm-newsroom--grid .nvm-newsroom__posts {
        grid-template-columns: repeat( 2, 1fr );
    }

    .small .nvm-newsroom__main,
    .tablet .nvm-newsroom__main,
    .small .nvm-newsroom__side,
    .tablet .nvm-newsroom__side {
        gap: 40px;
    }

    .small .nvm-newsroom__inner,
    .tablet .nvm-newsroom__inner {
        gap: 40px;
    }

    .small .nvm-newsroom__header,
    .tablet .nvm-newsroom__header {
        gap: 25px;
    }

    .small .nvm-newsroom__icon img,
    .tablet .nvm-newsroom__icon img {
        max-height: 56px;
    }

    .small .nvm-newsroom__foot,
    .tablet .nvm-newsroom__foot {
        flex-direction: column;
        gap: 12px;
    }

    .desktop .nvm-newsroom__inner {
        gap: 60px;
    }

    .desktop .nvm-newsroom__header {
        gap: 50px;
    }

    .desktop .nvm-newsroom__icon img {
        max-height: 88px;
    }

    .desktop .nvm-newsroom__foot {
        flex-direction: row;
        gap: 30px;
    }

    .desktop .nvm-newsroom--featured .nvm-newsroom__inner {
        display: grid;
        grid-template-columns: 904fr 510fr;
        gap: 20px;
    }

    .desktop .nvm-newsroom__main {
        gap: 58px;
    }

    .desktop .nvm-newsroom__side {
        gap: 70px;
    }

    .desktop .nvm-newsroom--grid .nvm-newsroom__posts {
        grid-template-columns: repeat( 3, 1fr );
        gap: 20px;
    }
