/*
==========================
Baselines
==========================
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

figure {
    display: block;
    margin-block-start: 1rem;
    margin-block-end: 1rem;
    margin-inline-start: 1rem;
    margin-inline-end: 1rem;
    /*
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 40px;
        margin-inline-end: 40px;
        --figure gets these margins from the user agent switch them off :)
    */
}


body,
h1,
h2,
h3,
h4,
h5,
p {
    margin: 0;
}

address{
    font-style:normal;
}

:root {
    /*
        Colours not dark mode
    */
    --colour-bd-complement: #fff; /*To use to complement Brand*/
    --colour-bd-brand: #25509e; /*BD Brand Colour*/
    --colour-accent: #d18237; /*An accent colour*/
    --colour-100: #fff; /*The lighest colour used*/
    --colour-300: #ebe5d9; /* Main light tone*/
    --colour-500: #d8b484; /*Main mid tone*/
    --colour-900: #000; /*The darkest colour used*/
    --colour-medium: #888; /*The medium colour used*/
    --colour-phoneBackground: #384050; /*a dark grey blue*/
    /*
        font-family: 'DM Sans', sans-serif;
        font-family: 'Jost', sans-serif;
        font-family: 'Montserrat', sans-serif;
        font-family: 'Roboto', sans-serif;
    */


    --base--pad: 0.5rem;
    --base-font-family: 'Montserrat', sans-serif;
    --headline-font-family: 'Roboto', sans-serif;
    --fw-light: 200;
    --fw-medium: 400;
    --fw-heavy: 600;
    --fw-extraheavy: 900;
    --lh-bodytext: 1.4; /* reduced from 1.6 */
    --lh-headlinetext: 1.1;
    --fs-base: 1.0rem;
    --fs-H1: 2.2rem;
    --fs-H2: 2rem;
    --fs-H3: 1.3rem;
    --fs-H4: 1rem;
    --fs-H5: 1rem;
    --fs-accent: 1.2rem;
    --base-button-radius: 0.3rem;
}

/*@media (prefers-color-scheme: dark) {
    :root {
        --colour-bd-brand: #25509e;*/ /*BD Brand Colour*/
        /*--colour-accent: #d18237;*/ /*An accent colour*/
        /*--colour-100: #000;*/ /*The darkest colour used*/
        /*--colour-300: #d8b484;*/ /* Main mid tone*/
        /*--colour-500: #ebe5d9;*/ /*Main light tone*/
        /*--colour-900: #fff;*/ /*The lightes colour used*/
    /*}
}*/


@supports not (-ms-ime-align: auto) { /*hides styling from ie and early edge that doesnt do details/summary stuff */
    /*
    ::marker {
        display: none;
        list-style:circle;
    }

*/
    details > summary::marker {
        color: var(--colour-accent);
        font: var(--fa-font-solid);
        font-size: var(--fs-H3);
        content: "\f138";
    }

    details[open] > summary::marker {
        content: "\f13a";
    }


    details {
        /*padding-left: 1rem;*/
        padding: 0 0 1rem 1rem;
    }

    details > p {
        padding-left: 2rem;
    }

    details summary {
        cursor: pointer;
    }

    details summary > * {
        display: inline;
    }
    /* Plus any other <details>/<summary> styles you want IE to ignore.*/
}


@media screen and (min-width:66rem) {
    :root {
        --base--pad: 1.2rem;
        --fs-base: 1.1rem;
        --fs-H1: 2.2rem;
        --fs-H2: 2.0rem;
        --fs-H3: 1.3rem;
        --fs-H4: 1.0rem;
        --fs-H5: 1.0rem;
        --fs-accent: 1.6rem;
        --base-button-radius: 0.6rem;
    }
}

body {
    font-size: var(--fs-base);
    font-family: var(--base-font-family);
    background-color: var(--colour-300);
    color: var(--colour-900);
    line-height: var(--lh-bodytext);
    font-weight: var(--fw-medium);
}

img {
    display: block;
    max-width: 100%;
}

address {
    font-style: normal;
}

/*List Icons*/

/* main ul{
     list-style:none;
 }
main li::before {
    color: var(--colour-bd-brand);
    font: var(--fa-font-solid);
    font-size: 0.8rem;
    content: "\f111";
    padding-right: 0.5rem;
}*/

main ul {
    list-style-type: none;
/*    margin-left: 2.5em; */
    padding-left: 0;
}

main ul > li {
    background-image: url(../Media/images/bullet.svg);
    background-position: left center;
    background-size: 15px;
    background-repeat: no-repeat;
    padding-left: 40px;
    margin-bottom: 1rem;
}
/*li.bdBullet - REDUNDANT
span.bdBullet {
    left: calc( 2em *-1);
    position: absolute;
    text-align: center;
    width: 2em;
    line-height: inherit;
}

span.bdBullet i {
    font-size: 0.8rem;
    color: var(--colour-bd-brand);
}

*/

/*
==========================
Typography
==========================
*/
a, a:visited {
    color: var(--colour-900);
}

a {
    text-decoration: none;    

}

h1, h2, h3 {
    font-family: var(--headline-font-family);
    font-weight: var(--fw-heavy);
    line-height: var(--lh-headlinetext);
    padding-top: calc(var(--base--pad)*0.7); /* reduced */
    padding-bottom: calc(var(--base--pad)*0.5); /* reduced */
    padding-left: 0px;
    padding-right: 0px;
}


h1 {
    font-size: var(--fs-H1);
    color: var(--colour-bd-brand);
}

h2 {
    font-size: var(--fs-H2);
    color: var(--colour-bd-brand);
}

h3 {
    font-size: var(--fs-H3);
    color: var(--colour-bd-brand);
}

h4 {
    font-size: var(--fs-H4);
    color: var(--colour-bd-brand);
}

h5 {
    font-size: var(--fs-H5);
    color: var(--colour-bd-brand);
}

figcaption {
    font-size: calc(var(--fs-base) * 0.83);
    text-align: center
}

.fontSize900 {
    font-size: calc(var(--fs-base) * 2.5);
}

.fontSize800 {
    font-size: calc(var(--fs-base) * 2.0);
}

.fontSize700 {
    font-size: calc(var(--fs-base) * 1.6);
}

.fontSize600 {
    font-size: calc(var(--fs-base) * 1.3);
}

.fontSize500 {
    font-size: calc(var(--fs-base) * 1.0);
}

.fontSize400 {
    font-size: calc(var(--fs-base) * 0.83);
}

.fontSize300 {
    font-size: calc(var(--fs-base) * 0.67);
}

.fontSize200 {
    font-size: calc(var(--fs-base) * 0.5);
}

.fontWeightHeavy {
    font-weight: var(--fw-heavy);
}

.outlineTextFor900 {
    -webkit-text-stroke: 2px var(--colour-100);
}

.outlineTextFor100 {
    -webkit-text-stroke: 2px var(--colour-900);
}

.outlineTextForBrand {
    -webkit-text-stroke: 2px var(--colour-accent);
}

.outlineTextForAccent {
    -webkit-text-stroke: 2px var(--colour-bd-brand);
}

.BDQuote {
    font-size: calc(var(--fs-base) * 1.2); 
    color: var(--colour-bd-brand);
}

a.inlinelink {
    font-size: calc(var(--fs-base) * 1.0);
    color: var(--colour-bd-brand);
}

.featurelink {    
    color: var(--colour-bd-brand);
}

.introPara {
    font-size: calc(var(--fs-base) * 1.1); /*created 09.09.22 to try and make it work on blog.*/
   
}

.intro .introPara {
    /*font-size: calc(var(--fs-base) * 1.1); *//* reduced from 1.2*/
    margin-top: 1em; /* custom spacing for unique intro */
}



.intro img {
    border: solid 2px var(--colour-bd-brand);
}

/*
    AnchorTarget
*/
a.anchorTarget {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;
}



/*
    Colours

*/

.bgColour100 {
    background-color: var(--colour-100);
}

.bgColour300 {
    background-color: var(--colour-300);
}

.bgAccent {
    background-color: var(--colour-accent);
}

.bgBrand {
    background-color: var(--colour-bd-brand);
}

.bgColourBrandComplement {
    background-color: var(--colour-bd-complement);
}

.bgColourPhoneBackground{
    background-color:var(--colour-phoneBackground);
}

.bgColour900 {
    background-color: var(--colour-900);
}

.bgColour500 {
    background-color: var(--colour-500);
}

.fgColour100 {
    color: var(--colour-100);
}

.fgColour300 {
    color: var(--colour-300);
}

.fgColourAccent {
    color: var(--colour-accent);
}

.fgColourBrand {
    color: var(--colour-bd-brand);
}

.fgColourBrandComplement {
    color: var(--colour-bd-complement);
}

.fgColour900 {
    color: var(--colour-900);
}

/*
    Branding
*/


.logoContainer {
    display: flex;
    align-items: center;
}


.radial-gradient {
    /*background-image: radial-gradient(lightblue 0%, rgb(177, 173, 230) 10%, blue 80%);*/
    background-image: radial-gradient(rgba(255,255,255,0.3) 0%, rgba(177,173,230,0.53) 10%, rgba(37,79,158,1) 50%, rgba(37,79,158,1) 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 56px;
    font-weight: bold;
    color: var(--colour-bd-complement);
    width: fit-content;
    text-align: center;
}

.companyName {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: var(--fw-heavy);
    color: var(--colour-bd-complement);
    max-width: 10ch;
    line-height: 1;
    padding-left: 1rem;
    letter-spacing: 1px;
}



/*
==========================
styling
==========================
*/

.bdButton {
    /*all:unset;*/
    display: inline-block;
    border: 2px solid var(--colour-bd-brand);
    /*margin-block: 0.5em;*/
    margin: 0.5rem 0.5rem 1rem 0.5rem; /* reinstated left/right margin for when buttons are wide on a narrow device */
    padding: 0.5rem 1rem; /*changed from padding: 0.25rem 0.5rem;*/
    font-family: var(--headline-font-family);
    cursor: pointer;
}

/*.bdButton:hover {
    background-color: var(--colour-accent);
    border-color: var(--colour-accent);
}*/

/*button dark*/

.buttonDark {
    background-color: var(--colour-bd-brand);
    color: var(--colour-bd-complement);
}

.buttonDark, .buttonDark:visited {
    color: var(--colour-bd-complement);
}

.buttonDark:hover {
    background-color: var(--colour-accent);
    border-color: var(--colour-accent);
}

/*button light*/

.buttonLight {
    background-color: var(--colour-bd-complement);
    color: var(--colour-bd-brand);
}

.buttonLight, .buttonLight:visited {
    color: var(--colour-bd-brand);
}

.buttonLight:hover {
    background-color: var(--colour-accent);
    border-color: var(--colour-accent);
    color: var(--colour-bd-complement);
}

/*button accent*/

.buttonAccent {
    background-color: var(--colour-accent);
    color: var(--colour-100);
    border: none;
}

.buttonAccent, .buttonAccent:visited {
    color: var(--colour-100);
}

.buttonAccent:hover {
    background-color: var(--colour-bd-brand);
    outline: 1px solid var(--colour-bd-complement);
}

.socialIcon:hover {
    color: var(--colour-accent);
}




.rounded {
    border-radius: var(--base-button-radius);
}

.shadowColour900 {
    box-shadow: 0 6px 12px -3px var(--colour-900);
}

.shadowColourMedium {
    box-shadow: 0 6px 12px -3px var(--colour-medium);
}

.haloBrand {
    box-shadow: 0px 0px 19px 3px var(--colour-bd-brand);
}

.centreAlign {
    text-align: center;
}

.leftAlign {
    text-align: left;
}

.rightAlign {
    text-align: right;
}

.buttonAlign { /* centre on mobile, right on wide */
    text-align: center;
}

@media screen and (min-width:66rem) {
    .buttonAlign {
        text-align: right;
    }
}


    figure > img {
        display: inline;
        /*margin-top: 1rem;*/
    }

    .fillWidth {
        width: 100%;
        margin: auto;
    }

    .brandOutline {
        outline: 2px solid var(--colour-bd-brand);
        border-radius: var(--base--pad);
    }

    .devOutline {
        outline: 4px solid var(--colour-accent);
    }

    .width50Ch {
        /*   max-width: 50ch; */ /* do we need this..... check for use*/ /* have removed - JD */
    }

    /*deprecate these and use fontSize(n) */

    .fontSmaller {
        font-size: calc(var(--fs-base) * 0.8);
    }

    .fontLarger {
        font-size: calc(var(--fs-base) * 1.2);
    }

    .pageItemInlinePad {
        padding-inline: 5%;
    }

    .smallInlinePad {
        padding-inline: calc(var(--base--pad) * 2);
    }

    .smallBlockPad {
        padding-block: calc(var(--base--pad) * 0.7); /* reduced fom 1 */
    }

    .smallAllPad {
        padding: calc(var(--base--pad) * 2)
    }

    .smallRightPad {
        padding-right: calc(var(--base--pad) * 2);
    }

    .mediumInlinePad {
        padding-inline: calc(var(--base--pad) * 3.5);
    }

    .mediumBlockPad {
        padding-block: calc(var(--base--pad) * 1.75);
    }

    .mediumAllPad {
        padding: calc(var(--base--pad) * 3.5)
    }

    .largeInlinePad {
        padding-inline: calc(var(--base--pad) * 5);
    }

    .largeBlockPad {
        padding-block: calc(var(--base--pad) * 2.5);
    }

    .largeAllPad {
        padding: calc(var(--base--pad) * 5);
    }

    .noBottomPad {
        padding-bottom: 0;
    }

    .noTopPad {
        padding-top: 0;
    }

    .noLeftPad {
        padding-left: 0;
    }

    .noRightPad {
        padding-right: 0;
    }

    /*
    percentageWidth
*/
    .width25Percent {
        width: 25%;
    }

    .width50Percent {
        width: 50%;
    }

    .width75Percent {
        width: 75%;
    }

.width85Percent {
    width: 85%;
}

    .width100Percent {
        width: 100%;
    }

    /*
==========================
layout
==========================
*/
    /*Hamburger menu and main navigation*/

    .headerBlock {
        /*width: 100%;*/
        position: fixed;
        /*background-color: var(--colour-300);*/
        top: 0px;
        z-index: 999;
    }



    .phoneLocation {
        text-align: center;
        /*  background-color: var(--colour-100);
    color: var(--colour-900);*/
        font-weight: var(--fw-heavy);
    }

    .navLogoSmall {
        display: block;
    }

    .navLogoLarge {
        display: none;
    }

    .titleLocation {
        display: inline-block;
        text-align: left;
        padding-top: calc(var(--base--pad) * 2);
    }

    .navBlock nav {
        padding-right: 1.5rem;
        /*    margin-right: calc(var(--base--pad) * -3);
    margin-left: 0em;*/
    }

    .navBlock a,
    .navBlock a:visited {
        color: var(--highlight-colour);
    }

    .navLogo {
        text-align: left;
    }

    .nav-toggle {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

        .nav-toggle:focus ~ .nav-toggle-label {
            outline: 3px solid var(--accent-colour);
        }

    .nav-toggle-label {
        position: absolute;
        top: 2.75rem;
        right: 1.25rem;
        margin-left: 0.75rem;
        display: flex;
        align-items: center;
    }
        /*    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--highlight-colour);
        height: 2px;
        width: 2rem;
        border-radius: 2px;
        position: relative;
    }

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: var(--base--pad);
}*/

        .nav-toggle-label span::after {
            top: var(--base--pad);
        }

    nav {
        position: absolute;
        text-align: right;
        left: 0px;
        /*background: var(--colour-100);*/
        /*width: 100%;*/
        transform: scale(1,0);
        transform-origin: top;
        transition: transform 400ms ease-in-out;
        z-index: 999;
    }

        nav ul, .footerNav ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        nav li, .footerNav li {
            margin-bottom: calc(var(--base--pad) * 1);
            margin-left: calc(var(--base--pad) * 1);
        }

    .footerNav ul {
        text-decoration: none;
        font-size: var(--fs-accent);
        text-transform: uppercase;
    }


    nav a {
        text-decoration: none;
        font-size: var(--fs-accent);
        text-transform: uppercase;
    }

    nav a {
        opacity: 0;
        transition: opacity 250ms ease-in-out;
    }

    .footerNav a {
        color: var(--colour-100);
        /*    margin-right: 10px; social spacing */
    }

        .footerNav a:hover:not(#contactUs) {
            text-decoration-color: white;
            text-decoration-line: underline;
            text-decoration-style: solid;
            text-decoration-thickness: 2px;
        }

        .footerNav a i {
            margin-left: 0px;
            margin-right: 10px;
        }


    nav a:hover {
        color: var(--accent-colour);
        text-decoration: none;
    }

    .nav-toggle:checked ~ nav {
        transform: scale(1,1);
    }

        .nav-toggle:checked ~ nav a {
            opacity: 1;
            transition: opacity 250ms ease-in-out 250ms;
        }

    .footerNav {
        text-align: center;
    }


.socialIcon {
    margin-bottom:5px;
}
/*Form style*/
input {
    /* width:60%;*/
    padding: calc(var(--base--pad) * 0.25);
    margin-bottom: 0.5rem;
}

    form input[type="checkbox"] {
        transform: scale(2);
    }

    /*input[type="submit"]{
    width:fit-content;
    padding-block:0.3rem;
    padding-inline:1.2rem;
    border-radius:10px;
    border:2px solid var(--colour-bd-brand);
    font:var(--fs-H3);
    background-color:var(--colour-accent);
    color:var(--colour-100);
}*/


    textarea {
        /*    width: 60%;*/
        resize: vertical;
        padding: calc(var(--base--pad) * 0.25);
        height: 10rem;
        margin-block: calc(var(--base--pad) * 1);
        margin-inline: 0;
    }

    @media screen and (max-width:65.9rem) {
        .hideForSmall {
            display: none;
        }
    }


    @media screen and (min-width:66rem) {
        .hideForLarge {
            display: none;
        }


        .nav-toggle-label {
            display: none;
        }

        .navBlock {
            display: grid;
            grid-template-columns: 1fr 3fr; /* WAS minmax(100px,1fr) minmax(70rem,1fr); BUT TOO HARD-WIRED */
            position: fixed;
            z-index: 1;
        }

        .navLogo {
            grid-column: 1/2;
        }

        .navLogoSmall {
            display: none;
        }

        .navLogoLarge {
            display: block;
        }

        header nav {
            padding-right: calc(var(--base--pad) * 1);
            margin-right: 0em;
            margin-left: 0em;
        }

        nav {
            /* the following lines add Edge support as all:unset is not supported by edge. Shame as all:unset is really cool*/
            position: relative;
            text-align: left;
            transition: none;
            transform: scale(1,1);
            background: none;
            top: initial;
            left: initial;
            /* end Edge support stuff */
            background-color: transparent;
            grid-column: 2/-1;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

            nav ul {
                display: flex;
            }

            nav li {
                margin-left: 2rem;
                margin-bottom: 0;
            }

            nav a {
                opacity: 1;
                position: relative;
            }

                nav a::before {
                    content: '';
                    display: block;
                    height: 5px;
                    background: var(--colour-100);
                    position: absolute;
                    top: -0.5rem;
                    left: 0;
                    right: 0;
                    transform: scale(0,1);
                    transition: transform ease-in-out 250ms;
                }

                nav a:hover::before {
                    transform: scale(1,1);
                }

        .footerNav {
            text-align: left;
        }

        .intro figure {
            margin-right: 0px; /* to align the image with the boxes underneath */
        }
    }
    /*
    Layout for  grids
*/


    /*.pageItem {
    width: calc(100% - 1em);
    margin: auto;
}*/

    /*deprecate pageItem we think*/

    .mainGrid > :first-child {
        margin-top: 2rem;
    }

    .mainGrid > :last-child {
        margin-bottom: 0rem; /* removed - was it necessary? */
    }

        .mainGrid > :last-child.noBottomMargin {
            margin-bottom: 0px;
        }

    .mainGrid, .footerGrid, .subGrid {
        display: grid;
        /*    grid-row-gap: 1rem;*/
    }

    .noMargin {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    /*.subGrid {
    grid-row-gap: calc(var(--base--pad) * 2);

}*/

    .subGridImage {
        margin-top: 0rem;
        border-radius: var(--base--pad);
    }
    /*Probably not required now we aren't using icons
.EmbeddedIcon{
    margin-right: 1rem;
}
*/

    .figureTight {
        margin-top: 0rem;
        margin-bottom: 0rem;
    }


    .div-v-center {
        display: flex;
        height: 100%;
        align-items: center;
    }


    .linkContent img {
        display: inline-block;
    }


    .grid-spanAll {
        grid-column: 1 / -1;
    }

    /*.heroColumn {
    padding: 0px calc(var(--base--pad) * 2);
}*/

    .smallPageFigure {
        display: inline-block;
    }

    .largePageFigure {
        display: none;
    }

.bdIframe {
    width: 100%; 
    height: 100%;
}

    /*.footerGrid > footer {
    padding: calc(var(--base--pad) * 3);
}*/

    .noInlinePad {
        padding-inline: 0;
    }

    .narrowNav {
        position: fixed;
        right: 0.5rem;
        bottom: 0rem;
        display: block;
    }

    .smallPageGridHeader {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    section .expands {
        display: none;
    }

    section .contracts {
        display: inline-block;
    }

    section.active .expands {
        display: inline-block;
    }

    section.active .contracts {
        display: none;
    }

    .flexStack {
        display: grid;
        grid-template-columns: 1fr;
        align-content: space-between;
    }

        .flexStack > :last-child {
            /*   width: 60%; */ /* Read More now tighter */
            margin-inline: auto;
        }
    /*.stackItem_top {
    align-self: start;
}
*/

    .stackItem_bottom {
        align-self: end;
    }

    .figureInBox {
        margin: 0rem;
    }

    .smallMarginBottom {
        margin-bottom: var(--base--pad);
    }

    .grid-row-gap-small {
        grid-row-gap: var(--base--pad);
    }

    .grid-row-gap-medium {
        grid-row-gap: calc(var(--base--pad) * 2);
    }

    .grid-row-gap-large {
        grid-row-gap: calc(var(--base--pad) * 3);
    }

    .gridAlignLastBaseline {
        align-items: last baseline;
    }

    .gridAlignStart {
        align-items: start;
    }

    @media screen and (min-width:66rem) {

        .figureInBox {
            margin: 1rem;
        }

        .centreLargeAlign {
            text-align: center;
        }

        .leftLargeAlign {
            text-align: left;
        }

        .rightLargeAlign {
            text-align: right;
        }

        .mainGrid > :first-child {
            margin-top: 7rem; /* reduce space at top */
        }

        .smallPageGridHeader {
            grid-column-start: auto;
            grid-row-start: auto;
        }

        /*    .mainGrid {
        grid-row-gap: 2rem;
    }*/

        /*    .footerGrid {
        grid-row-gap: 2rem;
    }*/

        .subGrid {
            grid-template-columns: repeat(12,1fr);
            /*align-items: start;*/
        }

        .grid-Column-Gap-Small {
            grid-column-gap: 2rem;
        }

        .noInlinePad {
            padding-inline: 0;
        }

        .pageItemInlinePad {
            padding-inline: 10%;
        }

        .subGrid > section {
            height: 100%;
        }


        .grid-span-2 {
            grid-column: span 2;
        }

        .grid-span-3 {
            grid-column: span 3;
        }

        .grid-span-4 {
            grid-column: span 4;
        }

        .grid-span-5 {
            grid-column: span 5;
        }

        .grid-span-6 {
            grid-column: span 6;
        }

        .grid-span-7 {
            grid-column: span 7;
        }

        .grid-span-8 {
            grid-column: span 8;
        }

        .grid-span-9 {
            grid-column: span 9;
        }

        .grid-span-10 {
            grid-column: span 10;
        }

        .grid-span-11 {
            grid-column: span 11;
        }


        .grid-center-column {
            grid-column: 5 / span 4;
        }

        .grid-widecenter-column {
            grid-column: 2 / span 10;
        }

        .grid-midcenter-column {
            grid-column: 3 / span 8;
        }

        .grid-narrowcenter-column {
            grid-column: 4 / span 6;
        }

        .grid-row-span-2 {
            grid-row: span 2;
        }

        .grid-row-span-3 {
            grid-row: span 3;
        }

        .grid-row-span-4 {
            grid-row: span 4;
        }

        .heroColumn {
            grid-column: span 3;
        }

        .smallPageFigure {
            display: none;
        }

        .largePageFigure, allPageFigure {
            display: inline-block;
            margin: auto;
            padding-inline: 0.25em;
        }

        .narrowNav {
            display: none;
        }


        /*Contact form */
        .contact-label {
            grid-column: 1;
        }

        .contact-input {
            grid-column: 2 / span 4;
        }
    }


    #newsletterSubmit, #contactUs, #mapVisionSignupResponse { /* unique */
        /*   height: 100%; */
        line-height: calc(var(--lh-bodytext)*0.7); /* reduce in footer */
        font-size: 1rem;
        margin: 5px 0px 5px 0px;
    }

#newsletterSignupResponse {
    float: right;
}

footer {
    font-size: 0.8rem;
}

        footer > div {
            border-bottom: solid 1px white;
            padding-left: 0px;
        }

            footer > div:last-child {
                border-bottom: none;
            }

    @media screen and (min-width: 66rem) { /* wide */
        footer > div {
            border-right: solid 1px white;
            padding-left: 15px;
            border-bottom: none;
        }

            footer > div:last-child {
                border-right: none;
            }
    }

    footer .fontLarger {
        font-size: calc(var(--fs-base) * 1.6);
    }


    footer p a { /* look a bit squashed otherwise */
        letter-spacing: 0.5px;
    }

    footer span:first-child { /* like a footer section heading */
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    @media screen and (max-width:65.9rem) {
        footer span:first-child { /* like a footer section heading - increase spacing */
            margin-top: 10px;
        }

        footer > div {
            border-right: none;
            padding-bottom: 10px;
        }
    }

/*    .contact-label {
        grid-column: 1;
    }

    .contact-input {
        grid-column: 2 / span 4;
    }
*/
        .contact-input input, .contact-input textarea {
            width: 100%;
            margin: 0px;
        }

    form .grid-row-gap-small {
        grid-row-gap: calc(var(--base--pad)*0.25);
    }


    #contact-form input[type=submit] {
        font-size: 1rem;
    }


    /*Glossary popup*/

    .glossaryRequest, .gloss {
        text-decoration-line: underline;
        text-decoration-style: dotted;
        cursor: pointer;
    }

        .glossaryRequest:hover, .gloss:hover {
            text-decoration-style: solid;
        }

    .glossary {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: 200ms ease-in-out;
        border: 1px solid black;
        border-radius: 10px;
        background-color: white;
        z-index: 100;
        width: 500px;
        max-width: 80%;
    }

        .glossary.active {
            transform: translate(-50%, -50%) scale(1);
        }


    .glossary-header {
        padding: var(--base--pad);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid black;
    }

        .glossary-header .title, .glossary-header .close-Glossary {
            font-size: var(--fs-H3);
            font-weight: var(--fw-heavy);
        }

        .glossary-header .close-Glossary {
            cursor: pointer;
            border: none;
            outline: none;
            background: none;
        }

    .glossary-body {
        padding: var(--base--pad);
    }

    a.glossary-link {
        float: right;
        padding: 1rem;
        text-decoration: underline;
        color: blue;
    }
     


    .glossaryItems a { /* for the constructed glossary page, take into account the fixed title */
        position: relative;
        top: -200px;
        display: block;
        visibility: hidden;
    }


    .glossaryItems > div {
        border: solid 1px lightgray;
        padding: 0.5rem;
    }

.glossaryItems a.glossInlineLink {
    visibility: visible;
    display: inline;
    position: unset;
    text-decoration: underline;
    color: #25509e
}

#overlay {
    cursor: pointer;
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 80, 158,0.5);
    pointer-events: none;
}

        #overlay.active {
            opacity: 1;
            pointer-events: all;
        }

#cookieMessage {
    display: none;
    position: absolute;
    float: right;
    top: 5px;
    color: white;
    font-weight: normal;
    right: 10px;
    font-size: 0.8rem;
}

#cookieMessage.visible {
    display: block;
}