﻿/*
    NOTE - Derby doesn't following normal responsive sites
    CMS implements left-nav, but does not have widgets
    However, the appform does, so the #maincontent that is normally in frontgeneral is now in frontapp
*/

*, *::before, *::after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html, body, form.mainform
{
    height: 100%;
}
.wrapper
{
    min-height: 100%;
    /* Footer (note, CMS file updates this to include logos) */
    margin: 0 auto -184px;
}

body 
{
    padding: 0;
    margin: 0;
    font-size: 16px;
    background-color: #ffffff;
    color: #444;
    font-family: Arial,"Times New Roman",Times,serif;
}

h1
{
    font-size:1.5625em;
    margin:0 0 10px;
    color:#555554;
    font-weight:normal;
    font-family: Rokkitt,serif,Arial,Helvetica,sans-serif;
}

h2
{
    font-size:1.3em;
    color:#555554;
}
h2.subsection
{
    margin-top:30px;
}

h3
{
    margin:5px 0;
    font-size:1.4em;
    font-family:"Rokkitt",serif,Arial,Helvetica,sans-serif;
    color:#555554;
}

p
{
    margin: 10px 0;
    line-height:1.6;
}


/* Hidden */
#accesslinks, .skiplink
{
    display:none;
}
.sr-only
{
    overflow: hidden;
    clip: rect(0,0,0,0);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
}

/* Links */
a:link, a:visited
{
    color: #4d6e92;
    transition: color 0.2s ease;
}
a:hover, a:active
{
    color: #a83b3e;
    text-decoration:none;
}


/* FontAwesome */
.far {
    font-size:1rem;
}
.fa-red {
    color:#D00;
}
.fa-green {
    color:#080;
}
.fa-blue {
    color:#5f9edf;
}


/* Css Button */
.cssbutton
{
    background-color: #414141;
    display:inline-block;
    margin: 0 10px 5px 0;
    transition: background-color 0.2s ease;
}
.cssbutton:hover
{
    background-color: #013565;
}
.cssbutton a
{
    display:block;
    padding: 4px 8px;
    color: #fff !important;
    text-decoration: none !important;    
}
.cssbutton a:focus
{
    outline-offset:2px;
}


/* Pick list control */
.picklistctrl
{
    margin: 0px 0px 0px 0px;
    overflow: auto;
    padding: 0px 0px 0px 0px;
    height: 100px;
    border: 1px solid black;
    background-color: white;
}
.picklistctrl .row
{
    padding: 2px 2px 2px 2px;
}
.picklistctrl .checkbox
{
    float:left;
    width:20px;
}
.picklistctrl input
{
    border:0px;
    background-color: white;
}
.picklistctrl .descr
{
    float:left;
    padding-top:3px;
}
.picklistctrl .value
{
    float:right;
}
.picklistctrl .valuectrl
{
    border:solid 1px black;
    width:60px;
}


/* Maximum width */
.maxwidth
{
    width:100%;
    max-width:980px;
}


/* Header */
#header
{
    width:100%;
    margin-bottom:5px;
}
#header .headerinner
{
    margin:0 auto;
    overflow:hidden;
}
/* Header cookie consent */
#header #headercookie
{
    background-color:#323232;
    font-size:0.8em;
}
#header #headercookie .headerinner
{
    padding:0 10px;
}
#header #headercookie #headercookietitle
{
    float:left;
    width:20%;
    margin:10px 0;
}
#header #headercookie #headercookietitle h2
{
    color:#fff;
    background-color:transparent;
}
#header #headercookie #headercookietext
{
    float:left;
    width:60%;
    margin:10px 0;
    color:#e0e0e0;
}
#header #headercookie #headercookietext a
{
    color:#e0e0e0;
}
#header #headercookie #headercookieclose
{
    float:left;
    width:20%;
    margin:10px 0;
    text-align:right;
}
#header #headercookie #headercookieclose .cssbutton
{
    background-color:#fff;
}
#header #headercookie #headercookieclose .cssbutton a
{
    color:#000 !important;
    white-space:nowrap;
}
/* Lists within the header */
#header ul
{
    margin:0;
    padding:0;
}
#header ul li
{
    list-style-type: none;
    display:inline-block;
    height:30px;
    transition-property: background-color, border-bottom;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}
#header ul li a
{
    display:inline-block;
    text-decoration:none;
}
#header ul li a:focus
{
    outline-offset:-3px;
}
#header .headermoreitemarrow
{
    font-size:0.7em;
}
/* Header top nav */
#header #headertop
{
    position:relative;
    border-top:7px solid #013565;
    margin-bottom:20px;
}
#header #headertop .headerinner
{
    position:relative;
}
#header #headertop #headertoprightmargin
{
    position:absolute;
    right:0;
    padding-top:20px;
    padding-right:20px;
}
#header #headertop #headertoprightmargin .headertoprssfeed
{
    background-image:url(../../../images/rssfeed.gif);
    background-repeat:no-repeat;
    background-position:95% center;
    line-height:normal;
    padding:0 25px 0 10px;
}
#header #headertop #headerlogo
{
    width: 48.8212%;
    display: inline-block;
}
#header #headertop #headerlogo a:focus
{
    outline-offset:-5px;
}
#header #headertop #headerlogo img
{
    display:block;
    max-width:100%;
    width:222px;
}

#header #headertop ul
{
    text-align:right;
    font-family:Arial,​Helvetica,​sans-serif;
    font-size:0.75em;
}
#header #headertop ul li
{
    height:15px;
    border-left: 1px solid #aaaaa9;
}
#header #headertop ul li:first-child
{
    border-left:0;
}
#header #headertop ul li a
{
    color:#303030;
    padding:0 6px;
}
#header #headertop ul li a:hover
{
    color:#a83b3e;
}
#header #headertopend
{
    clear:both;
}

#header #headertop .headertopsearch
{
    margin:10px 10px 0 0;
    text-align:right;
}

#header #headertop .headertopsearch input[type=text]
{
    border:1px solid #d9d9d9;
    background-color:#fff;
    padding:3px;
    vertical-align:middle;
    margin-right:10px;
}
#header #headertop .headertopsearch input[type=image]
{
    box-sizing: content-box;
    border: 1px solid #2f5bb7;
    border-radius: 2px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    padding: 0 8px;
    height: 13px;
    margin-top: 2px;
    min-width: 13px;
    padding: 6px 27px;
    width: 13px;
    background-color: #488ba4;
    background-image: none;
    filter: none;
    vertical-align:middle;
}
#header #headertop #headertoprightmobile
{
    display:none;
}
#header #headertop #headertoprightmobile #headertoprightmobilemenu,
#header #headertop #headertoprightmobile #headertoprightmobilesearch
{
    display:none;
}

/* Header main menu */
#header #headermenu
{
    background-color:#fff;
    color:#444;
    margin:10px 0 5px;
    font-size:1.0625em;
    font-family:"Rokkitt",serif,Arial,Helvetica,sans-serif;
}
#header #headermenulist
{
    height:30px;
}
#header #headermenu ul li
{
    border-top:3px solid #fff;
    border-bottom:3px solid #fff;
    border-left:1px solid #e3e0e1;
}
#header #headermenu ul li:first-child
{
    border-left:0;
}
#header #headermenu ul li a:hover
{
    color:#a83b3e;
}
#header #headermenu ul li a
{
    padding:2px 10px;
    color:#444;
}
#header #headermenu ul li.selected a
{
    color:#a83b3e;
}

/* Header sub menu */
#header #headersubmenu #headersubmenuseparator
{
    border-top:2px solid #a83b3e;
    margin:0 10px 5px;
}
#header #headersubmenu
{
    font-size:1.0625em;
    font-family:"Rokkitt",serif,Arial,Helvetica,sans-serif;
}
#header #headersubmenulist
{
    height:30px;
}
#header #headersubmenu ul li
{
    border-top:3px solid #fff;
    border-bottom:3px solid #fff;
    border-left:1px solid #e3e0e1;
}
#header #headersubmenu ul li:first-child
{
    border-left:0;
}
#header #headersubmenu ul li a
{
    padding:2px 10px;
    color:#444;
}
#header #headersubmenu ul li a:hover,
#header #headersubmenu ul li.selected a
{
    color:#a83b3e;
}

/* Header banner message */
#header #headerbanner
{
    color:#000;
    text-align:center;
    font-size:0.8em;
}
#header #headerbanner .headerinner
{
    padding:5px 0;
    background-color:#fa8072;
    display:table;
}
#header #headerbanner p
{
    margin:0px;
}
#header #headerbanner p a
{
    color:#000;
}
#header #headerbanner #headerbannertext
{
    display:table-cell;
    vertical-align:top;
}
#header #headerbanner #headerbannerhide
{
    display:table-cell;
    width:150px;
    vertical-align:middle;
}

/* Main area */
#maincontainer
{
    background: #fff url("../../../images/content_head_blue_altered.jpg") no-repeat scroll center 0;
}
#maincontainer.maincontainermenu #maincontainerinner
{
    margin:0 auto;
    background: #fff url("../../../images/content_head_blue_fixed.jpg") no-repeat scroll 0 0;
}
#maincontainer #mainbreadcrumbs
{
    height:44px;
    padding-top:15px;
    margin: 0 auto;
    font-size:0.75em;
}
#maincontainer #mainbreadcrumbs a
{
    color: #5d5d5d;
    text-decoration:none;
}
#maincontainer #mainbreadcrumbs a:hover
{
    color:#a83b3e;
}
#maincontainer #maincontainerend
{
    clear:both;
}
#main
{
    margin: 0 auto;
    clear:both;
    font-size:0.8125em;
}


/* Main left nav */
#mainleftnav
{
    float:left;
    width:227px;
    padding-top:50px;
}
#mainleftnav #mainleftnavmobileheader
{
    /*Hidden until small*/
    display:none;
}
#mainleftnav #mainleftnavmobile
{
    display:none;
}

#mainleftnav #leftnav, #mainleftnav #leftnav ul
{
    width:197px;
    margin:0;
    padding:0;
    border-bottom: 1px solid #d9d7d0;
}
#mainleftnav #leftnav li
{
    border-top: 1px solid #d9d7d0;
    list-style:none;
    width:100%;
    display:block;
}
#mainleftnav #leftnav li a
{
    display:block;
    color: #303030;
    font-family:Rokkitt,serif,Arial,Helvetica,sans-serif;
    font-size: 1.231em;
    padding: 0.75em 0.625em;
    width: 100%;
    text-decoration:none;
    line-height:1.5;
}
#mainleftnav #leftnav li a:hover
{
    color: #a83b3e;
}
#mainleftnav #leftnav li.itemsel0
{
    background-color: #deddd7;
}
#mainleftnav #leftnav li.itemsel0 + li.item0 ul
{
    padding:10px 0 9px;
    background: #e8e7e3 url(../../../images/nav_level2_bg_active.jpg) no-repeat scroll 0 0/contain;
    border-bottom: 0;
}
#mainleftnav #leftnav li.item1, #mainleftnav #leftnav li.itemsel1
{
    border-top:0;
}
#mainleftnav #leftnav li.item1 a, #mainleftnav #leftnav li.itemsel1 a
{
    padding:3px 8px 3px 17px;
    font-family: Arial,Helvetica,sans-serif;
    font-size:1.077em;
}
#mainleftnav #leftnav li.itemsel1 a
{
    font-weight:bold;
}
#mainleftnav #leftnav li.item1 a:hover, #mainleftnav #leftnav li.itemsel1 a:hover
{
    color:#303030;
    text-decoration:underline;
}


/* Main content area */
#maincontent
{
    float:left;
    width:calc(100% - 227px);
    padding:0 10px 10px 23px;
}
#maincontent .pagetitle
{
    min-height:51px;
    font-size:1.231em;
}


/* Popup with header */
#headerpopup
{
    width:100%;
    background-color:#fff;
    padding:4px 10px;
}
#headerpopup #headerpopupleft
{
    font-size:2em;
}
#mainpopup
{
    width:100%;
}
#mainpopupcontent
{
    padding:10px;
}
#mainpopup #popupmenuright
{
    float:right;
}



/* Footer (note, CMS file updates this to include logos) */
#footer, #footerpush
{
    height:184px;
    clear:both;
    font-size:0.75em;
}
#footer #footertop
{
    height:64px;
    background-color:#e8e7e3;
}
#footer #footerbottom
{
    margin: 0 auto;
    text-align:center;
    border-top: 7px solid #013565;
    height:113px;
    padding:30px 0 32px;
    overflow:hidden;
}
#footer #footerbottom #footercopyright
{
    margin-bottom:12px;
}



/* Red Star */
.redHilite
{
    color: #c00;
}

/* Error */
.errorText
{
    color:#E00;
}


/* Box */
.boxbuttons
{
    margin-top:25px;
}


/* Input controls */
input[type="text"], input[type="password"], textarea, select
{
    font-family:Arial;
    font-size:14px;
}



/* General container for main content area controls */
.formattedcontrols
{
    position:relative;
}
/* Limited width so it doesn't go full width on large screens */
.formattedcontrols .limitedwidth
{
    max-width:300px;
    width:100%;
}
.formattedcontrols .fullwidth
{
    width:100%;
}
.formattedcontrols textarea.fullwidth
{
    resize:vertical;
}
.formattedcontrols select
{
    max-width:100%;
}
.formattedcontrols .blockspan
{
    display:inline-block;
    margin-right:10px;
}


/* Info label */
.infolabelerror p
{
    padding-left:30px;
    min-height: 25px;
    background: url("../../../../images/shared/error2.png") no-repeat;
    color:#a40000;
}
.infolabelinfo p
{
    padding-left:30px;
    min-height:25px;
    background: url("../../../../images/shared/info2.png") no-repeat top left;
    color:#204a87;
}


/* Allow for accessibility on radiobuttonlist/checkboxlist */
fieldset.radiobuttonlist, fieldset.checkboxlist
{
    border:0;
    padding:0;
    margin:10px 0;
}
fieldset.radiobuttonlist legend, fieldset.checkboxlist legend
{
    width:100%;
    margin:0;
    padding:0;
    *margin-left: -7px;
}


/* Radio list */
.listwithproperwrap input {
    float:left;
    margin-top:3px;
}
.listwithproperwrap label {
    margin:0 0 6px 25px;
    display:block;
}
.listwithproperwrap > label:last-child,
.listwithproperwrap span:last-child label {
    margin-bottom:0;
}
.listwithproperwrap br {
    display:none;
}

/* Max width */
@media screen and (max-width:1000px)
{
    #maincontainer #mainbreadcrumbs
    {
        padding-left:10px;
    }
}


/* Medium - main takes up entire width, widgets takeup 50% */
@media screen and (max-width:799px)
{
    #header #headertop
    {
        border-top:0;
        border-bottom:7px solid #013565;
        margin-bottom:0;
    }
    #header #headertop .headerinner
    {
        position:static;
    }
    #header #headertop #headertoprightmargin
    {
        padding-top:0;
        padding-right:0;
        width:50%;
        position:absolute;
        bottom:0;
    }
    #header #headertop #headertoprightnormal
    {
        display:none;
    }
    #header #headertop #headertoprightmobile
    {
        display:block;
        text-align: right;
    }

    #header #headertop #headertoprightmobile #headertoprightmobilemenu,
    #header #headertop #headertoprightmobile #headertoprightmobilesearch
    {
        background-color:#fff;
        box-shadow: 0 0 10px #e8e7e3 inset;
        position:absolute;
        width:100%;
        z-index:99;
    }
    #header #headertop #headertoprightmobile #headertoprightmobilebuttons
    {
        margin-bottom:10px;
        font-size:0.9em;
    }
    #header #headertop #headertoprightmobile #headertoprightmobilebuttonsearch,
    #header #headertop #headertoprightmobile #headertoprightmobilebuttonmenu
    {
        color:#303030;
        background: transparent url(../../../images/magnifying_glass_dark_blue_small.png) no-repeat scroll right center;
        padding-right: 21px;
        text-decoration:none;
        margin-right:10px;
    }
    #header #headertop #headertoprightmobile #headertoprightmobilebuttonmenu
    {
        background-image: url(../../../images/right_arrow_dark_blue_small_active.png)
    }
    #header #headertop #headertoprightmobile #headertoprightmobilebuttonsearch:hover,
    #header #headertop #headertoprightmobile #headertoprightmobilebuttonmenu:hover
    {
        color:#a83b3e;
    }
    #header #headertop #headertoprightsearch .headertopsearch
    {
        margin-top:0;
        padding:20px;
    }
    #header #headertop #headertoprightmenu ul
    {
        text-align:left;
    }
    #header #headertop #headertoprightmenu ul li
    {
        border-bottom: 1px solid #bab9b5;
        border-left:0;
        display:block;
        list-style-type: none;
        height:auto;
    }
    #header #headertop #headertoprightmenu ul li a
    {
        display:block;
        font-family: Arial,Helvetica,sans-serif;
        font-size: 1.333em;
        padding: 8px !important;
    }

    /* Take up entire width */
    #maincontent
    {
        width:100%;
        padding:0 20px 10px;
    }

    #maincontent .pagetitle
    {
        min-height:auto;
    }

    #maincontainer,
    #maincontainer.maincontainermenu #maincontainerinner
    {
        background-image:none;
    }

    #mainleftnav
    {
        float:none;
        width:100%;
        padding:0 18px 20px;
    }
    #mainleftnav #mainleftnavnormal
    {
        display:none;
    }
    #mainleftnav #mainleftnavmobileheader
    {
        display:block;
        background-color: #e8e7e3;
        border: 1px solid #1b3469;
        color: #1b3469;
        text-align:center;
    }
    #mainleftnav #mainleftnavmobileheader a
    {
        padding:8px;
        display:block;
        font-size:1.354em;
        color: #1b3469;
        width:100%;
        text-decoration:none;
        position:relative;
        line-height:1.5;
    }
    #mainleftnav #mainleftnavmobileheader a:hover
    {
        color:#a83b3e;
    }
    #mainleftnav #mainleftnavmobileheader a::after
    {
        color: #1b3469;
        content: "▼";
        display:block;
        position:absolute;
        top:0;
        right:0;
        padding:8px;
    }
    #mainleftnav #leftnav, #mainleftnav #leftnav ul
    {
        width:100%;
    }
    #mainleftnav #leftnav
    {
        border-right: 1px solid #1b3469;
        border-left: 1px solid #1b3469;
    }
    #mainleftnav #leftnav li.item0, #mainleftnav #leftnav li.itemsel0
    {
        border-bottom: 1px solid #1b3469;
    }
    #mainleftnav #leftnav li.itemsel0 + li.item0 ul
    {
        background:none;
    }
    #mainleftnav #leftnav li a
    {
        font-family:Arial,Helvetica,sans-serif;
    }
   
    #main
    {    
        min-height:400px;
    }

    #maincontainer #mainbreadcrumbs
    {
        padding:5px 20px 15px;
        height:auto;
    }
}

/* Small - main takes up entire width, widgets take up entire width */
/* If changing, update fullCollapse in header.js */
@media screen and (max-width:499px)
{
    .wrapper
    {
        min-height:0;
        margin-bottom:0;
    }

    #header
    {
        padding-top:0;
    }
    
    #header #headercookie #headercookietitle,
    #header #headercookie #headercookietext,
    #header #headercookie #headercookieclose
    {
        float:none;
        width:100%;
        text-align:left;
    }
    #header #headercookie #headercookietitle h2
    {
        padding:0;
    }
    
    #header #headertop #headertoprightmargin
    {
        z-index:99;
        width:100%;
    }
    #header #headertop #headertoprightmobile #headertoprightmobilebuttons
    {
        font-size:0.8em;
    }
    #header #headermain
    {
        border-bottom:7px solid #013565;
    }
    #header #headermain .headerinner
    {
        padding:0;
    }
    #header #headermenulistmore li,
    #header #headersubmenulistmore li
    {
        border-top:1px solid #a0a0a0 !important;
        border-left:0 !important;
        display:block !important;
        padding-top:2px;
    }
    #header #headermenulistmore li a,
    #header #headersubmenulistmore li a
    {
        width:100%;
    }

    #header #headerbanner .headerinner
    {
        display:block;
    }
    #header #headerbanner #headerbannertext
    {
        display:block;
    }
    #header #headerbanner #headerbannerhide
    {
        display:block;
        text-align:right;
        padding-top:5px;
        width:auto;
    }
    
    #maincontent
    {
        padding: 0 15px 10px;
    }

    #maincontainer
    {
        background-image:none;
    }

    #main
    {    
        min-height:0;
    }

    #mainleftnav
    {
        padding:0 14px 20px;
    }

    #maincontainer #mainbreadcrumbs
    {
        padding:5px 15px 15px;
    }

    #footer, #footerpush
    {
        height:auto;
    }    
}

.editContentContainer
{
    position:relative;
    min-height:25px;
}
.editContentContainerHighlight
{
    background-color:rgba(255,0,0,0.3);
}
.editContentEdit
{
    position:absolute;
    top:0;
    right:0;
    border:1px dotted #c0c0c0;
    margin-bottom:2px;
}
.editContentEdit img
{
    margin:3px 0 3px 3px;
    display:block;
}

/*Skip to main content link*/
.skipToContent
{
    left:40px;
    top:-70px;
    position:fixed;
    border:2px solid black;
    background:white;
    text-align:center;
    text-decoration:none;
    z-index:100;
}
.skipToContent:focus
{
    top:40px;
    opacity:1;
    outline:1px solid grey;
}
.skipToContent div
{
    padding:10px;
}