
@font-face {
  font-family: "RedHatText";
  src: url('/control/fonts/red_hat_text/RedHatText-VariableFont_wght.ttf') format('truetype');
  font-family: "Red Hat Text";
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
}

:root {
  --blue: #002072;
  --darkblue: #000D2E;
  --black: #000000;
  --darkgrey: #333333;
  --midgrey: #cccccc;
  --lightgrey: #e6e6e6;
  --palegrey: #f2f2f2;
  --cyan: #00aeef;
  --lightcyan: #99dff9;
  --paleblue: #ebf8fc;
  --white: #ffffff;  
  --transparentgrey: #00000099;

  --layoutpadding: 61px;
  --layoutpaddingNeg: -61px;

    --layoutpaddingMobile: 25px;
  --layoutpaddingMobileNeg: -25px;

  --smallRadius: 6px;
  --radius: 8px;
  --largeRadius: 20px;
}


*{
    font-family:RedHatText, Arial, sans-serif;
    font-size:17px;
    margin:0;
}

html{}

body{
    background-color:var(--blue);
    color:var(--white);
}

h1, h2, h3, h4, h5, h6{
    color:var(--white);
}

a{
    color:var(--white);
    text-underline-offset:3px;
    text-decoration-thickness:2px !important;
}
a:hover{
    text-underline-offset:3px;
    text-decoration-thickness:2px !important;
}

table{border:1px solid var(--white);border-collapse:collapse;margin:var(--layoutpadding);}
table caption{background-color:var(--blue);color:var(--white);padding:8px;font-size:17px;border:1px solid var(--blue);border-bottom:1px solid var(--white);font-weight:bold;} 
table th{background-color:var(--blue);color:var(--white);padding:8px;font-size:17px;border:1px solid var(--white);}
table td{border:1px solid var(--white);padding:8px;}

svg.externalLink{
    position:relative;
    top:7px;
    left:7px;
    margin-top:-7px;
}

section#cookieControl {
    position:fixed;
    top:0;
    left:0;
    width: 450px;
    background-color:var(--white);
    height: 100vh;
    z-index: 10000;
    padding:20px;
    max-width:90vw !important;
    overflow:scroll;
    color:var(--blue);
}

    section#cookieControl h1 {
        font-size: 22px;
        color: var(--blue);
    }

    section#cookieControl h2 {
        font-size: 19px;
        margin: 15px 0 0 0;
        color: var(--blue);
    }

    section#cookieControl p {
        margin: 15px 0;
        color: var(--blue);
    }

    section#cookieControl a.cookieButton {
        display:inline-block;       
        width:215px;
        text-decoration:none;        
        border-radius:var(--radius);
        padding:15px 0;
        color:var(--white);
        background-color:var(--blue);
        text-align:center;
        margin:10px 0;
    }

        section#cookieControl a.cookieButton:focus-within{
            outline:3px solid black;
            outline-offset:1px;
        }

        section#cookieControl label {
            display: block;
            margin: 0;
            padding: 4px 4px 6px 0;
            border: 0 solid var(--blue);
            border-radius: 5px;
            width: 16em;
        }

section#cookieControl label .label {
    display: inline-block;
    user-select: none;
}

    section#cookieControl label input[role="switch"] {
        opacity: 0;
    }

        section#cookieControl label input[role="switch"] ~ .state {
            display: inline-block;
            user-select: none;
            position:absolute;
            right:20px;
            padding:10px;
        }

            section#cookieControl label input[role="switch"] ~ .state > .container {
                position: relative;
                top: 2px;
                display: inline-block;
                border: 2px solid black;
                width: 40px;
                height: 20px;
                border-radius: 11px;
            }

                section#cookieControl label input[role="switch"]:focus ~ .state > .container {
                    border: 3px solid var(--blue);
                }

                section#cookieControl label input[role="switch"] ~ .state > .container > .position {
                    position: relative;
                    top: 1px;
                    left: 2px;
                    display: inline-block;
                    border: 2px solid black;
                    border-radius: 9px;
                    width: 14px;
                    height: 14px;
                    background: black;
                    opacity: 0.6;
                }

        section#cookieControl label input[role="switch"]:not(:checked) ~ .state span.on {
            display: none;
        }

        section#cookieControl label input[role="switch"]:checked ~ .state > span.off {
            display: none;
        }

        section#cookieControl label input[role="switch"]:checked ~ .state > .container > .position {
            left: 20px;
            border-color: var(--blue);
            background: var(--blue);
            opacity: 1;
        }

    section#cookieControl label.focus,
    section#cookieControl label:hover {
        cursor: pointer;
    }

    div#cookieOverly {
        background-color: #00000040;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
    }

header#mstHeader {
    background-image: url('/control/images/local-plan/header-background.png');
    background-color: var(--blue);
    background-position: left bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
    width: 100%;
    color: var(--white);    
    aspect-ratio: 1920 / 540;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    margin:0 0 20px 0;
}

    header#mstHeader a {
        width: min(50%, 600px);
        margin: 20px 0 0 0;
    }

    header#mstHeader a img {
       width:100%;
    }


    main section#pageHeading h1 {
        font-size: 36px;
        padding: 20px 0 20px var(--layoutpadding);
    }

    main section#pageHeading span {
        padding: 0 0 0 var(--layoutpadding);
        color:var(--darkgrey);
        font-size:17px;

    }


footer#mstFooter {
    background-image: url('/control/images/local-plan/footer-background.png');
    background-color: var(--blue);
    background-position: left bottom;
    background-size:100% auto;
    background-repeat: no-repeat;
    width: 100%;
    color: var(--white);
    margin: 30px 0 0 0;
    aspect-ratio: 1920 / 527;
    position:relative;
}


main#mstMain{
    padding:0 var(--layoutpadding);
}




/* Content Pages */
main#mstMain h1 {
    padding: 20px 0 0 0;
    font-size: 36px;
}

main#mstMain h2{
    font-size:28px;
    margin:30px 0 14px 0;
    }

main#mstMain h3{
    font-size:20px;
    /*color:var(--darkgrey);*/
    margin:25px 0 14px 0;
    }

main#mstMain h4{
    font-size:17px;
    /*color:var(--darkgrey);*/
    margin:10px 0;
    }

main#mstMain p{
    max-width:800px;
    margin:15px 0;
    }

main#mstMain img{
    float:right;
}

/*main#mstMain p:has(img) {
    float: right;
    max-width:unset;
}

main#mstMain p:has(img.left) {
    float: unset;
    max-width: unset;
}*/

main#mstMain img[alt="PDF"] {
    float: none;
}

    main#mstMain img[alt="CSV"] {
        float: none;
    }

img[title^='External Hyperlink'] {
    float: unset !important;
}


main#mstMain ul{
    }

main#mstMain ul li{
    margin:10px 0;
    max-width:800px;
    }

main#mstMain ol {
}

    main#mstMain ol li {
        margin: 10px 0;
        max-width: 800px;
    }

main#mstMain div.related{
    background-color:var(--palegrey);
    max-width:800px;
    border-radius:var(--radius);
    padding:20px;
    margin:20px 0;
    }

main#mstMain div.related a{
    display:inline-block;
    background-color:var(--blue);
    color:var(--white);
    padding:12px 24px;
    border-radius:var(--smallRadius);
}



div.ytPlaceHolder{
    display:inline-block;
    width:560px;
    height:315px;
    background-color:var(--blue);
    color:var(--white);
    border-radius:var(--radius);
    text-align:center;
    line-height:160px;
}

    div.ytPlaceHolder a {
        display: block;
        color: var(--white);
        text-decoration:none;
    }

    div.ytPlaceHolder a:hover {        
        text-decoration: underline;
    }

        div.ytPlaceHolder a.ytLink {
            font-size:22px;
            padding-top:35px;
        }


/* Grid of buttons */
ul.pageNavButtons {
    list-style: none;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    ul.pageNavButtons li {
        padding: 0 !important;
    }

        ul.pageNavButtons li a {
            position: relative;
            display: block;
            height: 180px;
            width: 345px;
            margin: 8px;
        }

            ul.pageNavButtons li a span {
                display: block;
                color: #fff;
                position: absolute;
                top: 140px;
                left: 10px;
                font-size: 110%;
            }


.fbcFigure {
    display: block;
    width: 502px;
    border: 1px solid black;
    margin: 20px;
    float: left;
}

    .fbcFigure img {
        height: 707px;
        max-width: 500px;
    }

    .fbcFigure figcaption {
        padding: 8px;
        height: 100px;
    }

main#mstMain section#serviceButtons {
    padding: 40px var(--layoutpadding) 100px var(--layoutpadding);
}

    main#mstMain section#serviceButtons div {
        display: flex;
        flex-wrap: wrap;
        gap: 24px 16px;
    }

        main#mstMain section#serviceButtons div a {
            display: inline-block;
            height: 80px;
            width: 300px;
            border: 1px solid var(--midgrey);
            border-radius: var(--radius);
            text-decoration: none;
            font-size: 17px;
            font-weight: bold;
            align-content: center;
            padding: 0 30px 0 20px;
            background-image: url('/control/images/svg/arrow_forward_24dp_1F1F1F.svg');
            background-size: 24px;
            background-repeat: no-repeat;
            background-position-x: 315px;
            background-position-y: center;
            color:var(--blue);
            background-color:var(--white);
        }

            main#mstMain section#serviceButtons div a:hover {                
                text-decoration: underline;
            }

    main#mstMain section#serviceButtons table {
        margin-left: 0;
        margin-right: 0;
    }
footer div#footerLinks{position:absolute;bottom:0;right:0;}
footer div#footerLinks ul {
    display: flex;
    list-style: none;
    gap: 1em 2em;
    justify-content: flex-end;
    padding: 10px 20px;
    flex-wrap:wrap;
}

    footer div#footerLinks ul a{
        text-decoration:none;
    }

        footer div#footerLinks ul a:hover {
            text-decoration: underline;
        }

        footer div#footerLinks ul a:visited {
            text-decoration: none;
        }

        footer div#footerLinks ul a:active {
            text-decoration: none;
        }

        div#sectionIcon{display:none;}

@media (max-width: 680px) {
    footer{
        margin-bottom:50px !important;
    }
        footer div#footerLinks {
            position: absolute;
            bottom: -50px;
            right: 0;
        }
}

@media (max-width: 600px) {

    main#mstMain section#serviceButtons{
        padding:40px 50px 100px 50px;
    }

    footer {
        margin-bottom: 100px !important;
    }

        footer div#footerLinks {
            position: absolute;
            bottom: -100px;
            right: 0;
        }
}

@media (max-width: 600px) {
    main#mstMain section#serviceButtons {
        padding: 40px 30px 100px 30px;
    }
}

    @media (max-width: 400px) {
        main#mstMain section#serviceButtons {
            padding: 40px 8px 100px 8px;
        }
        footer {
            margin-bottom: 150px !important;
        }

            footer div#footerLinks {
                position: absolute;
                bottom: -150px;
                right: 0;
            }
    }