/* Fonts - https://google-webfonts-helper.herokuapp.com/fonts */

/* roboto-regular - latin-ext */
/*@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'),
url('../Fonts/roboto-v18-latin-ext-regular.woff2') format('woff2'),  Chrome 26+, Opera 23+, Firefox 39+ 
url('../Fonts/roboto-v18-latin-ext-regular.woff') format('woff');  Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ 
}*/

/* Typography  */
@media all {

    /* html { font-size: 1rem; height: 100%; background: rgb(51,51,51); } */

    body, input:not([type="radio"]):not([type="checkbox"]), button, select, textarea {
        font-family: 'Open Sans',sans-serif;
        /* uncomment with other font stacks: font-display: fallback */
        font-size: 100%;
        font-weight: 400;
        line-height: 1.5;
        color: rgb(51,51,51);
        background: rgb(255,255,255);
        text-rendering: optimizelegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    body, input:not([type="radio"]):not([type="checkbox"]), button, select, textarea {
        font-size:112.5%;
        color:rgb(0,90,112);
    }

    b, strong, dt { font-weight: 600; }

    a {
        color: rgb(0,90,112);
        text-decoration: none;
    }
    .page-content .ce-textpic a:not(.btn){
        color:rgb(250,70,22);
        transition: all 0.2s ease-in-out;
    }
    
    .page-content .ce-textpic a:not(.btn):hover{
        color:rgb(0,90,112);
    }
    .ce-carousel .ce-textpic a:not(.btn){
        color:#fff;
    }
    
    .ce-carousel .ce-teaserlink-outer:hover a:not(.btn)
    {
        color:rgb(250,70,22);
    }
    .h1-like,.h2-like,.h3-like,.h4-like,.h5-like,
    h1,h2,h3,h4,h5 {
        margin: 0;
        line-height: 1.25;
        font-weight: normal;
    }
    .h1-like a,.h2-like a,.h3-like a,.h4-like a,.h5-like a,
    h1 a, h2 a, h3 a, h4 a,h5 a {
        /* color: rgb(70,70,70); FIXME */
        text-decoration: none;
    }

    .h1-like,
    h1 {
        font-size: 1.625rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    .h2-like,
    h2 {
        font-size: 1.125rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .h3-like,
    h3 {
        font-size: 1.125rem;
        font-weight: 600;
    }
    .h4-like,
    h4 {
        font-weight: 600;
    }

    blockquote {
        margin-left: 1.25rem;
        border-left: 4px solid rgb(204,204,204);
        padding: 0.9375rem 0 0 1.25rem;
        font-style: italic;
    }

    blockquote::after {
        content: "";
        display: table;
    }

    /* margins */
    .ce-header{
        margin: 0 0 2.5rem;
    }
    .ce-news,
    table,
    p, ul, ol, dl { margin: 0 0 1.25rem; }
    
    .ce-element:not(.ce-type-textmedia) > .ce-header:not(.ce-header-layout-3){
        margin-bottom:2.5rem;
    }
    .ce-header-subheader,
    .ce-header-date {
        margin-top: 0.3125rem;
    }

    .ce-header-subheader {
        margin-top: 0.625rem;
    }
    .ce-header-date {
        margin: 0.625rem 0 0;
    }
    ul ul,
    ul ol,
    ol ul,
    ol ol { margin:0; }

    .ce-menu .ce-menu {
        margin-left: 1.25rem;
    }

    hr,
    .ce-div {
        border: none;
        border-top: 1px solid rgba(0,90,112,.15);
        margin: 0;
        height:0.9375rem;
    }

    /* text flow */
    h1, h2, h3, h4, h5, h6
    p, li, a, figcaption {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    footer, footer a{
        color:rgb(255,255,255);
    }
    .ce-bodytext li{
        margin-bottom:0.938rem;
    }
    .ce-slider p{
        margin:0;
    }
}


/* large */
@media all and (min-width: 62.5em) {
    /* typography */
    body, input:not([type="radio"]):not([type="checkbox"]), button, select, textarea {
        font-size:125%;
    }
    .h1-like,
    h1 {
        font-size: 2.25rem;
        font-weight: 600;
    }
    .h2-like,
    h2 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .page-sidebar h2,
    .page-footer h2 {
        font-size: 1.875rem;
        font-weight: 600;
    }

    .h3-like,
    h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .page-sidebar h3,
    .page-footer h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .h4-like,
    h4 {
        font-size: 112.5%;
        font-weight: inherit;
    }

    .h5-like,
    h5 {
        font-weight: 600;
    }
    .ce-element:not(.ce-type-textmedia) > .ce-header:not(.ce-header-layout-3){
        margin-bottom:5rem;
    }
    .news .ce-element:not(.ce-type-textmedia) > .ce-header:not(.ce-header-layout-3){
        margin-bottom:2rem;
    }
    .ce-news,
    table,
    p, ul, ol, dl { margin: 0 0 2rem; }
}

/* xlarge */
@media all and (min-width: 82.5em) {
    /* typography */

    .h1-like,
    h1 {
        font-size: 2.25rem;
        font-weight: 600;
    }

    .h2-like,
    h2 {
        font-size: 1.875rem;
        font-weight: 600;
    }

    .page-sidebar h2,
    .page-footer h2 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .h3-like,
    h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .page-sidebar h3,
    .page-footer h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .h4-like,
    h4 {
        font-size: 100%;
        font-weight: 600;
    }

    .h5-like,
    h5 {
        font-size: 100%;      
        font-weight: inherit;
    }

}
