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

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

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



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

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

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



    /*
        Figma reference — Homepage, "Frame 164" at 1440 x 769.

            padding ..... 110 above the row, 180 below it
            columns ..... 338 / 331 / 278 / 331, gap 54 — which is 1440 exactly
            row height .. 479, set by the two photographs

        The horizontal inset is --nvm-content-inset, the same one every other
        section on the page begins from.
    */

    .nvm-find-a-store {
        padding: clamp( 50px, 7.64vw, 110px ) var(--nvm-content-inset) clamp( 60px, 12.5vw, 180px );
    }



    /*
        Mobile first, and the breakpoint classes are cumulative: .tablet is
        600 and up, .laptop 1024 and up. So one column is the starting point
        and each wider rule replaces it, rather than the other way round.

        The four columns are written as fr rather than percentages. The gaps
        come off the top and the remainder is split 338 : 331 : 278 : 331, so
        at 1440 the result is the drawn figure to the pixel and at any other
        width it keeps the same proportions.
    */

    .nvm-find-a-store__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp( 30px, 3.75vw, 54px );
    }

        /*
            A grid item will not shrink below its own content by default, and
            the drawn map is 339 wide. On a phone narrower than that, the
            column refused to come down to fit and pushed the whole page out
            past the screen — which is the page sliding left and right.

            min-width: 0 lifts that floor and lets the column be as narrow as
            the screen is; the map then scales down inside it, which is what
            its width: 100% was always for.

            The photographs escaped this only because they clip: overflow on a
            box already sets its automatic minimum to zero. Nothing else here
            does, so it is stated for every child rather than the one caught.
        */

        .nvm-find-a-store__grid > * {
            min-width: 0;
        }

    .tablet .nvm-find-a-store__grid {
        grid-template-columns: repeat( 2, 1fr );
    }

    .laptop .nvm-find-a-store__grid {
        grid-template-columns: 338fr 331fr 278fr 331fr;
    }



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

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

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



    .nvm-find-a-store__intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .nvm-find-a-store__icon {
            margin-bottom: clamp( 24px, 3.47vw, 50px );
        }

            /* `img { height: auto !important }` sits in the framework's own
               stylesheet, so the pin's 50:61 has to be stated outright or it
               is decided for us. */

            .nvm-find-a-store__icon img {
                display: block;
                width: clamp( 36px, 3.47vw, 50px );
                height: auto !important;
            }

        /* Colour and weight go on the element holding the text. Vanilla styles
           headings at element level, and inheritance loses to that every time. */

        .responsiville .nvm-find-a-store__title {
            margin: 0;
            color: var(--nvm-color-ink);
            font-size: clamp( 30px, 3.33vw, 48px );
            font-weight: 800;
            line-height: 1.1;
        }

        /*
            The map falls to the foot of the column.

            At laptop and up the column is as tall as the photographs beside
            it, and auto takes up whatever is left over — 250px at the drawn
            size, which lands the map exactly on the bottom edge of the row.
            Narrower, there is no spare height and the margin quietly does
            nothing, so it needs no undoing.
        */

        .nvm-find-a-store__map {
            width: 100%;
            max-width: 339px;
            margin-top: clamp( 40px, 5vw, 72px );
            line-height: 0;
            color: var(--nvm-color-gold);
        }

    .laptop .nvm-find-a-store__map {
        margin-top: auto;
    }

            /* The framework fills every path with currentColor, which would
               otherwise throw away the gold the file is drawn in. Stating the
               colour on the container hands it back. */

            .nvm-find-a-store__map svg {
                display: block;
                width: 100%;
                height: auto !important;
            }



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

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

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



    /* 331 x 479 in the design. The ratio is kept and the photograph is
       cropped to it, so a landscape upload does not decide the row's height. */

    .nvm-find-a-store__figure {
        margin: 0;
        aspect-ratio: 331 / 479;
        overflow: hidden;
        background: var(--nvm-color-sand-dark);
    }

        .nvm-find-a-store__figure img {
            display: block;
            width: 100%;
            height: 100% !important;
            object-fit: cover;
        }



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

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

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



    /*
        The invitation does not fill its column: it starts 88 below the top of
        the row and stops well above the bottom, which is why it is aligned to
        the start rather than stretched like its neighbours.
    */

    .nvm-find-a-store__body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: clamp( 30px, 4.17vw, 60px );
    }

    .laptop .nvm-find-a-store__body {
        align-self: start;
        padding-top: clamp( 24px, 6.11vw, 88px );
    }

        .responsiville .nvm-find-a-store__text {
            color: var(--nvm-color-ink);
            font-size: 16px;
            font-weight: 400;
            line-height: 1.5;
        }

            .nvm-find-a-store__text p {
                margin: 0;
            }

            .nvm-find-a-store__text p + p {
                margin-top: 1em;
            }

        /*
            The button is the block's own, not one of Vanilla's, so every part
            of it is stated: the theme sets colour and background on `a` at
            element level and anything left to inheritance would lose.

            10 of padding, a 24 icon, 10 of gap — which puts the text at 44,
            as drawn.
        */

        .responsiville .nvm-find-a-store__button {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            width: 100%;
            min-height: 40px;
            padding: 8px 10px;
            border: none;
            background: var(--nvm-color-gold);
            color: var(--nvm-color-white);
            font-size: 12px;
            font-weight: 700;
            line-height: 1.37;
            letter-spacing: 0;
            text-align: left;
            text-decoration: none;
            text-transform: uppercase;
            transition: background-color 0.2s ease-in-out;
        }

        .responsiville .nvm-find-a-store__button:hover,
        .responsiville .nvm-find-a-store__button:focus-visible {
            background: var(--nvm-color-espresso);
            color: var(--nvm-color-white);
        }

            .nvm-find-a-store__button-icon {
                display: flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 auto;
                width: 24px;
                height: 24px;
            }

                /* The pin is drawn 50 x 61; inside the button it is the same
                   glyph at 13 x 16, centred in its 24 box. */

                .nvm-find-a-store__button-icon svg {
                    display: block;
                    width: 13px;
                    height: 16px !important;
                }

                .nvm-find-a-store__button-icon svg path {
                    fill: currentColor;
                }
