﻿/*
* General
*/
@font-face {
    font-family: 'Gotham Book';
    font-style: normal;
    font-weight: normal;
    src: local('Gotham Book'), url('GOTHAMBOOK.woff') format('woff');
}

@font-face {
    font-family: 'Gotham Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Gotham Bold'), url('Gotham Bold.woff') format('woff');
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #3F4345;
    font-size: 1rem;
    font-family: 'Gotham Book', 'Helvetica';
}

.l-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.l-site__content {
    flex-grow: 1;
}

.l-container {
    max-width: 1180px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.l-block--page-title {
    margin-top: 48px;
}

.link {
    color: #4D6374;
    font-family: 'Gotham Bold', 'Helvetica';
}

    .link:hover {
        color: #6986BD;
    }

.breadcrumb {
    color: #4D6374;
    margin-bottom: 36px;
}


/*
* Header
*/
.header {
    background-color: #d8d8d8;
    width: 100%;
    height: 347px;
    margin: 0 auto 36px auto;
    position: relative;
}

.header-img {
    /*object-fit: cover;*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    left: 0;
}

.social {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    margin: 16px;
    z-index: 2;
}

.social-link {
    display: flex;
    margin-left: 8px;
}

.social-icon {
    display: block;
    width: 40px;
    background-color: #4D6374;
    padding: 8px;
    border-radius: 8px;
}

.logo-background {
    border-radius: 0 0 4px 0;
    height: 79px;
    width: 106px;
    position: absolute;
    left: 0;
    z-index: 1;
}

.logo {
    margin: 16px 0 0 8px;
    z-index: 2;
    position: relative;
    width: 70px;
}

.cta-btn {
    text-decoration: none;
    color: #4D6374;
    white-space: nowrap;
    text-align: center;
    background: rgba(255,255,255,0.95);
    border: 3px solid #4D6374;
    box-shadow: 0 2px 8px 4px rgba(63,67,69,0.30);
    border-radius: 8px;
    padding: 16px;
    width: auto;
    font-size: 1em;
    font-family: 'Gotham Bold', 'Helvetica';
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    cursor: pointer;
}

    .cta-btn:hover {
        background-color: #4D6374;
        color: #fff;
    }

    .cta-btn:visited {
        color: #4D6374;
    }

    .cta-btn:visited:hover {
        color: #fff;
    }

.jump-to {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;

    &:focus {
        display: block;
        font-size: 1.25rem;
        height: auto;
        margin-block: 0.5rem;
        margin-inline: auto;
        overflow: visible;
        padding-bottom: 0.75rem;
        padding-inline: 0.5rem;
        padding-top: 0.5rem;
        position: static;
        width: fit-content;
    }
}

/*
* Main content
*/
.content {
    height: auto;
    max-width: 900px;
    margin: 0 auto;
    display: block;
}

/*
* Article block
*/
.article-block:first-of-type {
    margin: 0 0 42px 0;
}

.article-block {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 286px;
    height: auto;
    padding: 16px;
    margin: 36px 0;
}

.a-block-text {
    width: 100%;
    padding: 0;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    order: 1;
}

.right {
    order: 3;
}

.a-block-header {
    color: #4D6374;
    font-size: 1.5em;
    margin: 0;
    font-family: 'Gotham Bold', 'Helvetica';
}

.a-block-ingress {
    font-size: 1em;
    line-height: 22px;
    margin: 16px 0;
    padding: 0;
    height: auto;
    max-height: 88px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.a-block-link {
    align-self: flex-end;
    margin-top: auto;
}

.a-block-img {
    width: 100%;
    background-color: #d8d8d8;
    height: 220px;
    border-radius: 4px;
    /*object-fit: cover;*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin: 0 0 16px 0;
    order: 0;
}

/****
**
** CSS for article.html
**
****/

/*
* Header area
*/
.header-article {
    height: 340px;
    position: relative;
}

/*
* Article
*/
.article-header {
    margin: 48px 24px;
}

.article-title {
    font-size: 1.8em;
    font-family: 'Gotham Bold', 'Helvetica';
}

.article-ingress {
    font-size: 1.3em;
    line-height: 30px;
}

.article-body {
    font-size: 1em;
    line-height: 24px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.body-text {
    padding: 0;
    margin: 24px;
}

/****
**
** Media queries for index.html and article.html
**
****/

@media screen and (min-width: 600px) {
    .header {
        height: 640px;
        margin: 0 auto 64px auto;
    }

    .social {
        margin: 32px;
    }

    .social-link {
        margin-left: 24px;
    }

    .social-icon {
        width: 50px;
    }

    .logo-background {
        height: 159px;
        width: 213px;
    }

    .logo {
        margin: 36px 0 0 24px;
        width: 121px;
    }

    .cta-btn {
        padding: 16px 36px;
        bottom: 120px;
        font-size: 1.2em;
    }

    .article-block:first-of-type {
        margin: 0 0 64px 0;
    }

    .article-block {
        flex-wrap: nowrap;
        padding: 0;
        margin: 64px 0;
        height: 286px;
    }

    .a-block-text {
        padding: 16px 48px;
        width: 50%;
    }

    .a-block-ingress {
        height: 88px;
    }

    .right {
        order: 3;
    }

    .a-block-img {
        width: 50%;
        height: 100%;
        margin: 0;
        order: 2;
    }

    .article-title {
        font-size: 2.25em;
    }

    .article-ingress {
        font-size: 1.5em;
        line-height: 32px;
    }

    .article-body {
        font-size: 1.2em;
        line-height: 28px;
    }
}

@media screen and (min-width: 900px) {
    .breadcrumb {
        margin-bottom: 56px;
    }

    .header {
        height: 752px;
    }

    .a-block-header {
        font-size: 2em;
    }

    .header-article {
        height: 600px;
    }

    .article-header {
        margin: 48px;
    }

    .body-text {
        margin: 24px 0;
    }
}
