/* Accessibility */
/* screen-reader-text */
.screen-reader-text{
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

#access a:focus{
    position: static;
}
#access a {
    color: #fff;
    float: left;
    left: -9999px;
    margin: calc(0.75rem / 2);
    padding: calc(0.75rem / 4);
    position: absolute;
}
#access {
    background: #000;
}


/* MOBILE AND BASE LAYOUT */
/* general styles */
/* * {box-sizing: border-box;}
:root{
    --clr-primary: blue;
    --clr-body: grey;
    --clr-bg: white;
    --space: 0.75rem;
} */

/* hide some elements from mobile view */
.mobile-hidden, aside > img, .print-link-url{
    display: none;
}

/* common styles */
/* images */
#logo img{
    width: 240px;
}
#title img {
    height: 15px;
    width: 278px;
}
#title{
    width: 100%;
}
body img {
    max-width: 100%;
}
img.image-centred {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
img.image-right {
    float: right;
    margin: 0.3em 0 1em 1em;
}
.highlight {
    background-color: #efeded;
    color: #000;
    border: 0.1em dashed #000;
    padding: 0.3em;
}

/* sitecore inbuilt content styles */
img.image-left {
    float: left;
    margin: 0.3em 1em 1em 0;
}
img.image-centred {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
img.image-right {
    float: right;
    margin: 0.3em 0 1em 1em;
}
.highlight {
    background-color: #efeded;
    color: #000;
    border: 0.1em dashed #000;
    padding: 0.3em;
}
table.tabular-data {
    background-color: #f9f9ed;
    /* border-collapse: collapse; */
}

/* set up fonts */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin: 0;
    padding: 0;
}
body{
    /* font-family: Verdana,Helvetica,Arial,sans-serif; */
    font-family: "Fira Sans", sans-serif;
    /* font-size: 80%; */
    line-height: 1.5;
}
body strong{
    font-weight: 500;
}
#mobile-nav:before, #tools button:before, #secondary-nav-mobile:before, article[class*="-alert"]:before, .expandable-control:before{
    font-family: "Font Awesome 5 Pro";
}
header a, h1, #fat-footer a{
    color: #003c69;
}
.online-services a, #thin-footer, #thin-footer a{
    color: white;
}

/* headings */
:is(#content-large, #content-centre, #content-center) :is(h1, h2, h3, h4, h5, h6){
    margin: 1rem 0;
}
:is(#content-large, #content-center) h2:not(#secondary-nav h2, #grid-content h2, aside h2) {
    border-bottom: 2px solid #dbd7ba;
    margin-top: 2rem;
}
/* h1, h2{
    color: #00243f;
    margin-bottom: 2rem;
}
h3, h4, h5, h6{
    color: #003c69;
    margin-bottom: 1.5rem;
}
h1 {
    font-size: 2.625rem;
    line-height: 3.625rem;
}
h2 {
    font-size: 1.75rem;
    line-height: 2rem;
    margin-top: 3rem;
}
h3 {
    font-size: 1.375rem;
    line-height: 2rem;
    margin-top: 3rem;
}
h4, h5, h6 {
    font-size: 1.125rem;
    line-height: 1.625rem;
    margin-top: 2.5rem;
} */

/* link styles */
a {
    color: #003c69;
}
a:visited {
    color: #523c69
}
#title a{
    display: inline-block;
}
#tools a:focus, #primary-nav a:focus{
    outline-offset: calc(-0.75rem / 5);
}
header a:focus, footer a:focus{
    outline-offset: calc(0.75rem / 2);
}
button:focus{
    outline-offset: calc(0.75rem / 2.5);
}
.online-services a:focus{
    outline-offset: calc(0.75rem / 4);
}

/* list styles */
#access ul, #tools ul, #primary-nav ul, #secondary-nav ul, #grid-content ul, footer ul{
    padding: 0;
}
ul, ol {
    padding-left: 1.5rem;
    margin: 0;
}
ul {
    list-style: none;
}
#content ul>li:not(#secondary-nav ul>li, #breadcrumbs ul>li, .online-services ul>li, #grid-content ul>li, [style*="list-style"] li):before{
    /* font-weight: bold; */
    color: #7AB700;
    content: "\2022";
    display: inline-block;
    margin-left: -1.5rem;
    vertical-align: middle;
    width: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
}
#content :is(#content-right, #content-small) li:not(#secondary-nav li, .online-services li):before{
    /* font-size: 1.5rem; */
    content: "\f105";
    font-family: "Font Awesome 5 Pro";
}

/* expandable controls */
.expandable-control:before{
    /* content: "\f078"; */
    content: "\f054";
    float: right;
    font-size: 1rem;
    font-weight: 900;
    transition: transform 0.25s;
}
.expanded .expandable-control:before{
    transform: rotate(90deg);
}
.expandable-control ~ *{
    clear: right;
    flex-direction: column;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.25s;
}
.expanded .expandable-control ~ *{
    margin: 0.5rem 0;
    max-height: 100rem;
    visibility: visible;
}
.expanded .expandable-control ~ ul{
    display: inline;
}

/* layout */
body, #content, footer {
    display: flex;
    flex-direction: column;
    overflow: auto;
}
body {
    margin: 0;
    position: relative;
}
header {
    padding-top: 0.75rem;
}
header, #primary-nav ul, #content, #footer > *{
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.mobile-nav-open #primary-nav ul {
    padding-right: 0rem;
}
#content > * > *:is(div, aside, article, section, main), :is(#content-small, #content-right) > * > *, footer {
    margin-top: calc(0.75rem * 2);
}
:is(#content-small, #content-right) h2 + * {
    margin-top: 0;
}

/* components */
#mobile-nav{
    border-left: 1px solid #e8e6cb;
    margin: 0.5rem 0;
    padding: 0 0.5rem;
    position: absolute;
    right: 0;
    text-align: center;
    text-decoration: none;
    z-index: 2;
}
#mobile-nav:before{
    /* transform: scale(1.5,1); */
    content: "\f0c9";
    display: block;
    font-size: 2em;
    line-height: 1;
}
#mobile-nav:after{
    /* transform: scale(1.5,1); */
    content: "Menu";
}
.mobile-nav-open #mobile-nav:before{
    content: "\f00d";
    transform: scale(1,1);
}
/* .mobile-nav-open #mobile-nav:after{
    content: "Close Menu";
    transform: scale(1,1);
} */

#tools ul li a, #tools form, #primary-nav li a{
    display: block;
    font-size: 1rem;
    padding: 0.75rem;
}
#tools{
    display: none;
    position: absolute;
    top: 6.1rem;
    width: calc(100% - 0.75rem);
    z-index: 3;
}
#tools ul li {
    background: white;
    border: 1pt solid #e8e6cb;
}
#tools form {
    background: #d9d8bc;
}
#tools input {
    width: calc(100% - 30px - 0.75rem);
}
#tools button:before{
    content: "\f002  ";
    font-weight: 900;
}
#tools button {
    background: #003c69;
    color: white;
    height: 1.36rem;
    overflow: hidden;
    vertical-align: bottom;
    width: 1.8rem;
}

#primary-nav {
    background: rgba(0,0,0,0.6);
    height: 0;
    position: absolute;
    top: 5.4rem;
    transition: height 0.25s;
    width: 100%;
    z-index: 2;
}
#primary-nav ul{
    display: none;
    position: relative;
    top: calc(10px + 4*(0.75rem*2 + 1.5rem) + 2pt*3);
}
#primary-nav li {
    background: #003c69;
    border-bottom: 1pt solid #336387;
}
#primary-nav li.current {
    background-color: #d9e2e9;
}
#primary-nav li.current a {
    color: #003c69;
    /* font-weight: bold; */
}
#primary-nav li.current a strong {
    font-weight: normal;
}
#primary-nav li:hover, #primary-nav li:hover a {
    background-color: #fff;
    color: #003c69;
}
#primary-nav a {
    color: #fff;
}
#primary-nav a:visited {
    color: #e2e2e2;
}
.mobile-nav-open #tools, .mobile-nav-open #primary-nav ul{
    display: block;
}
.mobile-nav-open #primary-nav{
    height: calc(100% - 5.4rem);
}

#title{
    padding-top: calc(0.75rem / 2);
}

/* splash image */
#splash{
    height: 200px;
    margin-top: 0.5rem;
    background: black;
    object-fit: cover;
}

/* secondary nav */
/* formatting */
#secondary-nav h2{
    background-color: #012138;
}
#secondary-nav h2 a{
    color: #fff;
}
#secondary-nav ul {
    background: rgba(0,0,0,0.6);
}
#secondary-nav li {
    background-color: #d9e2e9;
    border-bottom: 1px solid #fff;
}
#secondary-nav li:not(.current-page):hover{
    background-color: #fff;
}
#secondary-nav .current-page {
    background-color: #003c69;
    /* font-weight: bold; */
    position: relative;
}
#secondary-nav .current-page a {
    color: #fff;
}

/* layout */
#secondary-nav {
    z-index: 1;
}
#secondary-nav h2 a, #secondary-nav ul a {
    display: block;
    padding: 1rem;
}
#secondary-nav ul {
    width: 100%;
    transition: height 0.25s;
    position: absolute;
    height: 0;
}
#secondary-nav.secondary-nav-mobile-open ul {
    height: calc(100% - 10rem);
    z-index: 1;
}
#secondary-nav li {
    display: none;
    width: calc(100% - 0.75rem * 4.5);
}
#secondary-nav.secondary-nav-mobile-open li {
    display: revert;
}


/* secondary nav mobile button */
#secondary-nav-mobile{
    border-left: 1px solid #e8e6cb;
    margin: 0.5rem 0;
    padding: 0 0.5rem;
    position: absolute;
    right: 0;
    text-align: center;
    text-decoration: none;
    z-index: 2;
    /* width: calc(0.75rem * 4.5); */
}
#secondary-nav-mobile:before{
    /* transform: scale(1.5,1); */
    color: #fff;
    content: "\f0c9";
    display: block;
    font-size: 2em;
    line-height: 1;
}
#secondary-nav-mobile:after{
    /* transform: scale(1.5,1); */
    color: #fff;
    content: "Menu";
}
.secondary-nav-mobile-open #secondary-nav-mobile:before{
    content: "\f00d";
    transform: scale(1,1);
}


/* bread crumbs */
#breadcrumbs {
    margin: 0.75rem 0;
}
#breadcrumbs ol{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
#breadcrumbs li{
    display: inherit;
    align-items: center;
}
#breadcrumbs li:not(:first-child):before{
    content: "\f105";
    padding: 0 0.75rem;
    color: grey;
    font-family: "Font Awesome 5 Pro";
    font-size: 1rem;
}

/* grid content */
#grid-content article, #content-right h2, #content-small h2:not(#secondary-nav h2) {
    border-top: 4px solid #003c69;
    padding: 0.75rem 0;
}
#grid-content article {
    padding: 0.75rem 0;
}
#grid-content h2{
    display: inline;
    margin: 0;
}
#grid-content img{
    display: none;
}
/* #grid-content a, #grid-content a:link, #grid-content a:visited{
    text-decoration: none;
} */
#grid-content .expandable-control:before{
    color: #7AB700;
    font-size: 1.5em;
}
#grid-content li {
    border-bottom: 1px solid #003c69;
    padding: 0.5em 0;
}
#grid-content li:last-of-type {
    border-bottom: none;
}

/* alerts */
.breaking-news, article[class*="-alert"] {
    border-style: solid;
    border-width: 3px;
    font-size: 107%;
    line-height: 1.5rem;
    padding: 1.5rem;
    position: relative;
}
.breaking-news{
    background-color: #fc0;
    border-color: #bd7800;
}
.important-alert{
    background-color: #FEFAE6;
    border-color: #f69900;
}
.success-alert{
    background-color: white;
    border-color: #7AB800;
}
.info-alert{
    background-color: #e5e8e9;
    border-color: #74b8e8;
}
article[class*="-alert"]{
    border-left-width: 3rem;
    border-radius: 5px;
}
article[class*="-alert"]::before{
    color: white;
    font-size: 1.5rem;
    left: -2.3rem;
    position: absolute;
}
.important-alert::before {content: "\f071";}
.success-alert::before   {content: "\f058";}
.info-alert::before      {content: "\f05a";}
.breaking-news h3, article[class*="-alert"] h3 {
    font-size: 140%;
}
.breaking-news h3:not(:first-child), article[class*="-alert"] h3:not(:first-child) {
    margin-top: calc(0.75rem * 2.5);
}
.breaking-news p:last-child, article[class*="-alert"] p:last-child {
    margin-bottom: 0;
}

table {
    border-collapse: collapse;
    border: 1px solid #c9dae4;
    float: none;
}
table th, table td {
    border-bottom: 1px solid #c9dae4;
    padding: 0.5em;
    text-align: left;
    vertical-align: top;
}
.responsive-table-wrapper {
    display: block;
    overflow-x: auto;
}
th, td strong{
    font-weight: 500;
}

/* Aside / Online services */
:is(#content-right, #content-small) .online-services.stoneline h2{
    border-top: 5px solid #d9d8bc;
}
.online-services h2{
    color: #003c69;
}
.online-services ul{
    margin-top: 0.75rem;
    padding: 0;
}
.online-services li {
    background: #003c69 0.3rem no-repeat;
    color: #fff;
    margin-bottom: 0.1rem;
    padding: 0.75rem;
}
.online-services li a {
    color: #fff;
}
/* aside li a.account {background: transparent url(/images/iconSets/Account.png) no-repeat left center} */
/* aside li a.car     {background: transparent url(/images/iconSets/car-icon.png) no-repeat left center} */
/* aside li a.check   {background: transparent url(/images/iconSets/Check.png) no-repeat left center} */
/* aside li a.gavel   {background: transparent url(/images/iconSets/gavel.png) no-repeat left center} */
/* aside li a.manage  {background: transparent url(/images/iconSets/Manage.png) no-repeat left center} */
/* aside li a.profile {background: transparent url(/images/iconSets/profile.png) no-repeat left center} */
.online-services .apply    {padding-left: 2.5rem; background-image: url(../images/iconSets/Apply.png)}
.online-services .book     {padding-left: 2.5rem; background-image: url(../images/iconSets/Book.png)}
.online-services .check    {padding-left: 2.5rem; background-image: url(../images/iconSets/Check.png)}
.online-services .info     {padding-left: 2.5rem; background-image: url(../images/iconSets/Info.png)}
.online-services .pay      {padding-left: 2.5rem; background-image: url(../images/iconSets/Pay.png)}
.online-services .search   {padding-left: 2.5rem; background-image: url(../images/iconSets/Search.png)}
.online-services .send     {padding-left: 2.5rem; background-image: url(../images/iconSets/send.png)}
.online-services .update   {padding-left: 2.5rem; background-image: url(../images/iconSets/update.png)}
.online-services .user     {padding-left: 2.5rem; background-image: url(../images/iconSets/user.png)}

/* footer */
#fat-footer {
    background-color: #d6e2ee;
}
#fat-footer article {
    margin: calc(0.75rem * 2) 0;
}
#fat-footer h3{
    display: inline-block;
    font-size:110%;
}
#fat-footer h3 a{
    color: black;
}
#fat-footer ul{
    transition: max-height 0.25s, padding 0.25s, border 0.25s;
}
#fat-footer .expanded ul{
    border-bottom: 1px solid #fff;
    padding: 0.375rem 0;
}
#fat-footer li{
    margin: 0.5rem 0;
}
#thin-footer {
    background-color: #003c69;
}
#thin-footer li {
    padding: 0.3rem 0;
}
#thin-footer > ul{
    margin: calc(0.75rem * 1) 0;
}
#thin-footer > p{
    margin: calc(0.75rem * 2) 0;
}


/* PHABLET LAYOUT */
@media (min-width: 43rem){
    #title img {
        height: 22px;
        width: 418px;
    }

    /* hide mobile items */
    #grid-content .expandable-control{
        display: none;
    }

    /* show some elements that were hidden in the base mobile layout */
    #grid-content a.expandable-control ~ * {
        max-height: 100rem;
        margin: 0.5em 0;
        transition: none;
        visibility: visible;
    }
    /* #grid-content a.expandable-control ~ ul {
        display: inline;
    } */

    /* components */
    #grid-content article {
        border: none;
        padding: 0;
    }
    #grid-content h2 {
        align-items: flex-start;
        background-color: #d9d8bc;
        display: flex;
        flex-wrap: wrap;
        min-height: 70px;
        width: 100%;
    }
    #grid-content h2 > *:is(a, span) {
        flex: 1;
        line-height: normal;
        margin: auto 0;
        padding: 0.75rem;
    }
    #grid-content h2 img {
        color: transparent;
        display: revert;
        max-width: 70px;
        overflow: hidden;
    }

    #thin-footer, #thin-footer ul {
        display: flex;
    }
    #thin-footer {
        align-items: center;
        flex-direction: column;
    }
    #thin-footer ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 0;
    }
    #thin-footer li:not(:last-child):after {
        color: #c4d2e1;
        content: "|";
        padding: 0 0.5rem;
    }
    #thin-footer p {
        margin: calc(0.75rem * 1) 0;
    }
    #thin-footer p:last-child {
        margin-top: 0;
    }
    
    /* page layout */
    #grid-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: calc(0.75rem * 2);
    }
}

/* TABLET LAYOUT */
@media (min-width: 55rem){

    /* hide mobile items */
    #mobile-nav, #secondary-nav-mobile{
        display: none;
    }

    /* show some elements that were hidden in the base mobile layout */
    header, #tools, .mobile-nav-open #tools, #tools ul{
        display: flex;
    }

    /* link styles */
    #tools a:focus, #primary-nav a:focus{
        outline-offset: calc(0.75rem / 2);
    }

    /* lay out some components */
    header{
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #tools{
        align-items: center;
        place-self: flex-start;
        position: initial;
        width: auto;
    }
    #tools ul li {
        border: none;
        font-size: revert;
        padding: 0;
    }
    #tools li:after {
        color: #c4d2e1;
        content: "|";
        padding: 0 0.5rem;
    }
    #tools form {
        background: unset;
        padding: 0;
    }
    #tools input{
        border: 2px solid #d9d8bc;
        padding: calc(0.75rem / 3);
        width: 15rem;
    }
    #tools button{
        height: 1.8rem;
        width: auto;
    }
    #tools ul li a, #tools form, #primary-nav li a{
        display: revert;
        font-size: revert;
        padding: revert;
    }

    #primary-nav{
        background-color: #003c69;
        display: flex;
        height: initial;
        position: initial;
        margin-top: calc(0.75rem / 2);
    }
    #primary-nav ul, .mobile-nav-open #primary-nav ul{
        display: inline-flex;
        flex-wrap: wrap;
        position: initial;
    }
    #primary-nav li{
        border-bottom: none;
        font-size: revert;
        padding: 0.5rem 1.05rem;
    }

    #splash {
        display:none;
    }

    #secondary-nav{
        background-color: #d9e2e9;
        box-shadow: 4px 0 0 0 #bfbfbf;
    }
    #secondary-nav h2 {
        background-color: initial;
        padding-top: 0.25rem;
    }
    #secondary-nav h2 a {
        border-top: 4px solid #003c69;
        color: #003c69;
        margin: 1rem;
        padding: 0.7rem 0 0 0;
    }
    #secondary-nav ul{
        position: revert;
        height: 100%;
    }
    #secondary-nav.secondary-nav-mobile-open ul {
        height: 100%;
    }
    #secondary-nav li {
        display: revert;
        width: 100%;
    }
    #secondary-nav .current-page:before {
        border-bottom: 1.7em solid rgba(255, 255, 255, 0);
        border-left: 1.6em solid #003c69;
        border-top: 1.7em solid rgba(255, 255, 255, 0);
        content: "";
        left: 100%;
        position: absolute;
        z-index: 1;
    }

    .online-services.bottomimg{
        background: transparent url("../images/art_perspective.png") no-repeat bottom left;
        padding-bottom: 96px;
    }

    /* page layout */
    #content{
        display: grid;
        gap: 0 calc(0.75rem * 3);
    }

    #grid-content {
        grid-template-columns: 1fr;
    }
}

/* DESKTOP LAYOUT */
@media (min-width: 65rem){

    /* show some elements that were hidden in the base mobile and tablet layouts */
    #fat-footer .expandable-control{
        display: none;
    }
    #fat-footer ul{
        margin: 0;
        max-height: 100rem;
        overflow: inherit;
        visibility: visible;
    }

    #primary-nav{
        display:flex;
    }

    #splash {
        display:block;
    }
 
    aside > img{
        display: block;
        width: 100%;
    }

    #fat-footer{
        display: flex;
        justify-content: center;
        padding: 0 calc(0.75rem * 2);
    }
    #fat-footer article {
        /* margin-top: 2rem; */
        width: calc(76rem/5);
    }
    #fat-footer ul, #fat-footer .expanded ul{
        border-bottom: none;
        padding: 0.25rem 0;
    }

    /* page layout */
    header, #primary-nav ul, .mobile-nav-open #primary-nav ul, #content{
        margin: 0 auto;
        max-width: 82rem;
        width: calc(100% - (0.75rem * 2));
        padding-right: 0.75rem;
    }
    #grid-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .print-link-url {
        display: inline;
        font-size: 100%;
        text-decoration: none;
    }
    .print-link-url, a, a:visited {
        color: blue;
    }
}

/* Alternate layout mode  - NOT USED */
/* Sample structure
<div class="content-container">
    <div class="content-fullwidth">Alerts</div>
    <div class="content-small">Aside</div>
    <div class="content-large">Everything else</div>
</div> */

/* .content-container {outline: solid red}
.content-fullwidth {outline: solid blue}
.content-small {outline: solid green}
.content-large {outline: solid fuchsia} */

/* MOBILE LAYOUT */
/* .content-container{
    padding: 0 calc(0.75rem * 1.5);
}
.content-fullwidth > *, .content-small > *, .content-large > * {
    margin-top: calc(0.75rem * 2);
} */

/* TABLET LAYOUT */
/* @media (min-width: 55rem){
    .content-container{
        margin: 0 auto;
        max-width: 82rem;
    }
    .content-fullwidth{
        clear: both;
    }
    .content-small{
        float: right;
        width: 300px;
    }
    .content-large{
        float: left;
        width: calc(100% - 300px - 2.25rem);
    }
} */
