/* ==========================================================================
   03_GENERALS: SITE
   --------------------------------------------------------------------------
   * README

   * DOCUMENT
   * HEADER
   * BANNER
   * MAIN
   * FOOTER
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Site default styles.
 * That means they apply to the HTML components you can find in the
 * BaseTemplate.nopage file, and therefore, they apply to all site pages.

 * If you need to deal with an exception to these Site default styles, you
 * should manage it by adding a .body--modifier class via
 * {% block extraBodyClass %}{% endblock %} in the .page file that requires it,
 * and develop the given exception nested to that body modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with styles for a new type of Site component or a new
 * sub-element for an existing one, you should develop them in this stylesheet,
 * under a new component subtitle or under the correspondent one accordingly,
 * separating them in Structure, Behaviour or Appearance styles as appropriate.
 */

/* DOCUMENT
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.body {
    margin: 0 auto;
    width: 100%;
}

[class*="__wrapper"] {
    margin: 0 auto;
    width: 100%;
    max-width: 1148px;
    height: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.body {
    overflow-y: scroll;
}

/* Appearance
   -------------------------------------------------------------------------- */
html {
    background-color: #FFFFFF;
}

.body {
    background-color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: normal;
    font-weight: 300;
    font-style: normal;
    color: #000000;
}

/* HEADER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.header {
    margin: 0 auto;
    width: 100%;
}

.header__wrapper {
    padding-top: 14px;
    padding-bottom: 14px;
}

.header__logo {
    float: left;
}

.header__logo--default {
    width: 161px;
    height: 42px;
}

.header__logo--nav {
    width: 130px;
    height: 34px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.header__logo {
    display: block;
    background-position: center center;
    -webkit-background-size: contain;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

/*
 * 1. To make the header fixed.
 */
.header {
    position: fixed; /* 1 */
    top: 0; /* 1 */
    z-index: 4; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.header {
    -webkit-box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
    box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
    background-color: #FFFFFF;
    color: #565656;
}

/* BANNER: MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.banner {
    margin: 0 auto;
    width: 100%;
}

.banner--main {
    height: 200px;
}

.banner__wrapper {
    padding-top: 24px;
    padding-bottom: 24px;
}

.banner__subtitle {
    margin-top: 20px;
}

.banner__actions {
    margin-top: 24px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.banner {
    background-position: center center;
    -webkit-background-size: cover;
    background-size: cover;
}

/*
 * 1. To center content vertically.
 */
.banner__content {
    display: table; /* 1 */
    width: 100%; /* 1 */
    height: 100%; /* 1 */
}

.banner__content>* {
    display: table-cell; /* 1 */
    vertical-align: middle; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.banner {
    background-color: #00269a; /* var(--color--site) in an IE free world */
    color: #FFFFFF;
}

.banner--main .banner__title {
    font-size: 42px;
    font-weight: 400;
}

.banner__subtitle {
    font-size: 22px;
}

@media all and (max-width:768px) {

    /* Structure
       -------------------------------------------------------------------------- */
    .banner--main {
        height: 123px;
    }

    .banner__wrapper {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .banner__title>* {
        display: block;
    }

    /* Appearance
       -------------------------------------------------------------------------- */
    .banner--main .banner__title {
        font-size: 28px;
    }

}

/* MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.main {
    margin: 0 auto;
    width: 100%;
}

.main__wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Appearance
   -------------------------------------------------------------------------- */
.main {
    background-color: #FFFFFF;
    color: #000000;
}

/* FOOTER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.footer {
    margin: 0 auto;
    width: 100%;
}

.footer__wrapper {
    padding-top: 28px;
    padding-bottom: 28px;
}

.footer__rights {
    float: left;
}

.footer__langs {
    float: right;
}

.footer .link {
    margin: 0 8px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.footer {
    text-align: center;
}

/* FOOTER STICKY
  ========================================================================== */

.body--footer-sticky .body__content {
   display: -webkit-box;
   display: -webkit-flex;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   min-height: 100vh;
}

.body--footer-sticky .main {
   flex: 1 0 auto;
}

.body--footer-sticky .footer {
   flex-shrink: 0;
}

/* Appearance
   -------------------------------------------------------------------------- */
.footer {
    background: #FFFFFF;
    color: #A1A1A1;
    font-size: 13px;
}

/*
 * As the footer in sticky mode has display:table-row and cannot have a border, we need to implement it using :before;.
 */
.footer:before {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #8F98A7; /* var(--color--borders) in an IE free world */
}

.footer .link {
    color: inherit;
}

@media all and (max-width:768px) {

    /* Structure
       -------------------------------------------------------------------------- */
    .footer__rights {
        float: none;
    }

    .footer__rights span {
        display: block;
        margin-bottom: 4px;
    }

    .footer__langs {
        display: none;
    }
}