@font-face {
    font-family: Carlito;
    src: url("fonts/Carlito-Regular.ttf");
    font-style:normal;
    font-weight:normal;
}
@font-face {
    font-family: Carlito;
    src: url("fonts/Carlito-Italic.ttf");
    font-style:italic;
    font-weight:normal;
}
@font-face {
    font-family: Carlito;
    src: url("fonts/Carlito-Bold.ttf");
    font-style:normal;
    font-weight:bold;
}
@font-face {
    font-family: Carlito;
    src: url("fonts/Carlito-BoldItalic.ttf");
    font-style:italic;
    font-weight:bold;
}

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

html { height:100%; }
body { margin:0; padding:0; font: 85% Carlito; min-height:100%; overflow-x: hidden; }
#container { min-height:100%; width: 100%; }
textarea, input, select { font: 100% Carlito;  }

h1, h2, h3, p, form { margin: 0; padding: 0; }
ul { margin:0; padding:0 0 0 .5em; }
a img { border:none; max-width: 100%; height: auto; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

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

p.read-more { margin-top: 6px; height: 14px; }
p.back-link { margin: 23px 15px; height: 14px; }
a.rollover { height: 14px; overflow: hidden; float: left; }
a.rollover img { display: block; }
a.rollover:hover { display: block; } 
a.rollover:hover img { margin-top: -14px; }

#quick-navigation, .accessibility, hr {position:absolute; top:0; left:-666em; margin-left:-666em; overflow:hidden;}

#header { }
#header .container { position: relative; margin: 0 auto; max-width: 900px; width: 100%; padding: 0 15px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#header h1 { padding: 15px 0; display:inline-block; }
#header h2 { color:#00315C; font-size:1.7em; }
#header h3 { color:#6A6969; font-size:1.3em; }
#header h3 a { color:#6A6969; }
#header h3 a:hover { text-decoration:none; }
#header .userinfo { width: 100%; padding-top:1em; max-width: 515px; }

#mobile-menu-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 35px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; margin: 15px auto 10px auto; z-index: 100; }
#mobile-menu-toggle span { display: block; width: 100%; height: 4px; background-color: #00315C; border-radius: 2px; transition: all 0.3s ease-in-out; }
#mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
#mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
#mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#page { padding: 14px 0 0 0; clear: both; }
#pageWrapper { margin: 0 auto; max-width: 875px; width: 100%; padding:0 15px; }
#pageWrapper2 { display: flex; flex-direction: column; width: 100%; }

#breadcrumbs { padding: 8px 0 0 0; margin: 0 0 11px 0; color: #ed1c24; font-size: 1.3em; border-top:1px solid #00315C; }
#breadcrumbs a { color: #123E65; padding: 0 16px 0 0; margin:0; background:url('../img/arrow.right.png') no-repeat 100% 50%; }
#breadcrumbs strong { color: #123E65; font-weight: normal; }

#content div.worker { display: flex; flex-direction: column; align-items: center; width: 100%; }
#content div.worker h2 { color: #6a6969; width: 100%; text-align: center; }
#content div.worker div.sideRt { width: 100%; margin-top: 0; margin-bottom: 20px; text-align: left; }
#content div.worker div.sideRt div.person { background: #fff; padding: 0 0 8px 0; text-align: left; }
#content div.worker div.sideRt div.person img { display:inline; max-width: 150px; }
#content div.worker div.sideRt div.person div.t { color: #6a6969; line-height: 150%; margin: 0 10px; }
#content div.worker div.sideRt ul.contact { margin: 10px 13px; list-style: none; color: #a09c92; font-size: 110%; text-align: center; }
#content div.worker div.sideRt ul.contact li { padding: 1px 0 }
#content div.worker div.text { width: 100%; padding: 0 0 10px 0; font-size: 120%; line-height: 150%; color: #222222; text-align: left; }
#content div.worker div.text p { margin: 1em 0; }
#content div.worker div.text p.intro { font-weight: bold; font-size: 130%; line-height: 115%; color: #282828; }
#content div.worker h1 { color: #ccb68c; padding: 5px 5px; width: 100%; text-align: center; }

#sidebar { width: 100%; padding-bottom: 20px; display: none; background: #f8f9fa; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 20px; }
#sidebar.is-open { display: block; }
#sidebar ul#mainMenu { font-size:1em; font-weight:bold; list-style:none; }
#sidebar ul#mainMenu li { margin-bottom: 0px; width: 100%; }
#sidebar ul#mainMenu li a { display: block; padding: 4px 0 1px 0; width: 100%; color: #9b7d48; }
#sidebar ul#mainMenu li a span { display: block; padding: 0 0 4px 6px; width: 131px; }

#sidebar div.contextMenu { background:#123E65; font-size:1.3em; color: #332f2e; text-align: center; }
#sidebar div.contextMenu div.wraper { padding:11px 0; }
#sidebar div.contextMenu h2 { padding: 5px 0 6px 0; margin: 0 8px; font-size: 100%; color: #332f2e; }
#sidebar div.contextMenu ul { margin:0; padding: 0 3px; list-style: none; }
#sidebar div.contextMenu ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
#sidebar div.contextMenu ul li a { display: block; padding: 0; color: #eeeeee; }
#sidebar div.contextMenu ul li a:hover { text-decoration: none; color: #7e7e7e }

div.lngswitch { text-align:center; padding: 10px 0; }
div.lngswitch a img { display:inline; }
a, a:visited { color:#00315C; }

@media screen and (min-width: 768px) {
    #header .container { flex-direction: row; justify-content: space-between; text-align: left; }
    #header h1 { padding: 0 0 0 16px; }
    #header .userinfo { padding-left: 2em; max-width: 515px; text-align: left; }
    #mobile-menu-toggle { display: none; }

    #pageWrapper2 { flex-direction: row; gap: 30px; }
    
    #sidebar { display: block; width: 170px; background: transparent; border: none; margin-bottom: 0; flex-shrink: 0; }
    #sidebar div.contextMenu { text-align: left; }
    #sidebar div.contextMenu ul li { padding: 6px 0; border-bottom: none; }
    #sidebar div.contextMenu ul li a { padding: 0 0 0 10px; }

    #content { width: calc(100% - 200px); padding: 0 0 0 16px; max-width: 706px; }

    #content div.worker { flex-direction: row-reverse; align-items: flex-start;  }
    #content div.worker h1, #content div.worker h2 { text-align: left; }
    #content div.worker div.sideRt { width: 160px; margin-top: -30px; text-align: right; }
    #content div.worker div.sideRt div.person { text-align: right; }
    #content div.worker div.sideRt ul.contact { text-align: left; }
    #content div.worker div.text { width: 100%; text-align: left; padding-right: 20px; }
}
