﻿/*
	--------------------------
	Home Page Styles
	--------------------------
*/
/*#region Variables 
--------------------------  */

:root {
    /*Colours*/
    --yellow: #ffdf43;
}

/*#endregion */


/* Body sections */
main > div > div > section, main > div.bw > section {
    margin: 0px 0px 3em 0px;
    float: left;
    width: 100%;
}

main > div.bw {
    width: 100%;
}

    main > div.bw > section.flex {
        justify-content: space-between;
        align-items: stretch;
    }

        main > div.bw > section.flex > div {
            flex-basis: 47.5%;
        }

            main > div.bw > section.flex > div > div {
                margin: 3rem auto 0 0;
                width: 90%;
                max-width: calc((67.5rem / 2) - (2.5% / 0.475)); /* section is 47.5% of overall width */
            }

            main > div.bw > section.flex > div:first-child > div {
                margin: 3em 0 0 auto;
            }

            main > div.bw > section.flex > div > div.button {
                margin-top: 1em;
                text-align: center;
            }

        main > div.bw > section:not(.flex) > div, main > div.bw > section > form {
            max-width: 67.5em;
            width: 90%;
            margin: 0 auto;
        }

    main > div.bw > section.w:not(.flex) > div, main > div.bw > section.w > form {
        margin-top: 3em;
    }

section.w > h1, section.w.flex > div > h1 {
    margin: 0px;
    position: relative;
    font-weight: 600;
    color: #343636;
    font-size: 1.5em;
}

    section.w > h1:before, section.w.flex > div > h1:before {
        content: " ";
        display: block;
        background-color: var(--yellow);
        position: absolute;
        left: 0;
        bottom: 0;
        height: 0.25em;
        width: 35%;
        z-index: 1;
    }

    section.w.flex > div > h1:before {
        width: 77.78%;
    }

    section.w.flex > div:last-child > h1:before {
        width: 50%;
    }

    section.w > h1:after {
        content: " ";
        display: block;
        background-color: var(--light-grey);
        position: absolute;
        right: 0;
        bottom: 0;
        height: 0.25em;
        width: 50%;
        z-index: -1;
    }

    section.w > h1 > span {
        display: block;
        max-width: 45em;
        margin: 0 auto;
        background-color: #fff;
        border-bottom: solid 0.25em var(--light-grey);
    }

    section.w.flex > div > h1 > span {
        display: block;
        margin: 0 0 0 auto;
        padding: 0.25em 0;
        background-color: #fff;
        border-bottom: solid 0.25em var(--light-grey);
        max-width: calc((45em / 2) - (2.5% / 0.475)); /* section is 45% of overall width */
    }

        section.w.flex > div:last-child > h1 > span {
            margin-left: 0;
            max-width: 100%;
        }

        section.w > h1 > span > span, section.w.flex > div > h1 > span > span {
            display: inline-block;
            padding: 0.25em 0;
            margin-right: 0;
            vertical-align: middle;
            position: relative;
            width: 9em;
        }

            section.w > h1 > span > span:before, section.w.flex > div > h1 > span > span:before {
                content: " ";
                display: block;
                background-color: var(--yellow);
                position: absolute;
                left: 0;
                top: 100%;
                height: 0.25em;
                width: 100%;
                z-index: 1;
            }

        section.w > div.button {
            display: block;
            clear: both;
            text-align: center;
        }

        section.w div.button a {
            margin-top: 1em;
            font-size: 0.85em;
            font-weight: 300;
            background-color: var(--light-grey);
            color: var(--black);
            padding: 0.75rem 1rem;
            display: inline-block;
            line-height: 1em;
            vertical-align: middle;
        }

            section.w > a.button:hover {
                background-color: var(--yellow);
            }

/*  Stats
--------------------------  */
section.stats article {
    display: block;
    min-height: 16em;
    width: 30.66%;
    margin-left: 4%;
    float: left;
    background-color: #00acaf;
    text-align: center;
    position: relative;
}

    section.stats article:first-child {
        margin-left: 0;
    }

    section.stats article a:not(.flex) {
        display: block;
    }

        section.stats article a:hover {
            background-color: transparent;
        }

    section.stats article h1 {
        font-size: 1.35em;
        padding: 0.5em;
        text-transform: uppercase;
        text-align: left;
        background-position: right;
        background-repeat: no-repeat;
        background-size: contain;
    }

        section.stats article h1 a {
            color: #fff;
            background-color: transparent;
        }

    section.stats article p {
        color: #fff;
        margin: 0 5%;
        line-height: 1em;
    }

        section.stats article p a {
            color: #fff;
            background-color: transparent;
        }

        section.stats article p.s {
            font-family: "museo", "pragmatica", helvetica, arial, sans-serif;
            font-size: 5.5em;
            font-weight: 700;
            color: #517516;
            margin-top: 0.15em;
            margin-bottom: 0.35em;
            line-height: 0.75em;
        }

            section.stats article p.s a {
                position: relative;
            }

            section.stats article p.s span {
                font-size: 0.15em;
                line-height: 1em;
                position: absolute;
                top: 100%;
                right: 0;
                margin-top: -1em;
            }

    section.stats article time {
        font-weight: 400;
        text-transform: uppercase;
        color: #517516;
        margin: 0.25em 5%;
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

        section.stats article time a {
            color: var(--oil);
        }

    section.stats article.o {
        background-color: var(--aqua);
    }

        section.stats article.o h1 {
            background-color: var(--oil);
        }

    section.stats article.g {
        background-color: var(--gas);
    }

        section.stats article.g h1 {
            background-color: #517516;
        }

        section.stats article.g p.s, section.stats article.g time {
            color: #517516;
        }

        section.stats article.o > a:hover p, section.stats article.g > a:hover p {
            color: #fff;
        }

            section.stats article.o > a:hover p.s, section.stats article.g > a:hover p.s {
                color: #1d1d1b;
            }

    section.stats article a.export {
        position: absolute;
        bottom: 0.25em;
        right: 0.25em;
        opacity: 0;
        transition: opacity .3s ease-in-out;
    }

    section.stats article:hover a.export {
        opacity: 1;
    }

section.stats div.edge article a.export {
    display: none;
}

/* Exporting */
div.exporting article {
    display: block;
    height: 250px;
    width: 330px;
    background-color: var(--aqua);
    text-align: center;
    position: relative;
}

    div.exporting article a {
        display: block;
    }

    div.exporting article h1 {
        background-color: var(--oil);
        font-size: 1.35em;
        padding: 0.5em;
        text-transform: uppercase;
        text-align: left;
        background-position: right;
        background-repeat: no-repeat;
        background-size: contain;
    }

div.exporting h1 a {
    color: #fff;
    background-color: transparent;
}

div.exporting article p {
    color: #fff;
    margin: 0 5%;
    line-height: 1em;
}

    div.exporting article p a {
        color: #fff;
        background-color: transparent;
    }

    div.exporting article p.s {
        font-family: "museo", "pragmatica", helvetica, arial, sans-serif;
        font-size: 6em;
        font-weight: 700;
        margin-top: 0.15em;
        margin-bottom: 0.35em;
        line-height: 0.75em;
    }

        div.exporting article p.s a {
            position: relative;
        }

        div.exporting article p.s span {
            font-size: 0.15em;
            line-height: 1em;
            position: absolute;
            top: 100%;
            right: 0;
        }

div.exporting article time {
    font-weight: 400;
    text-transform: uppercase;
    color: #061d41;
    margin: 0.25em 5%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

    div.exporting article time a {
        color: var(--oil);
    }

div.exporting article a.export {
    display: none;
}

div.exporting article.g {
    background-color: var(--gas-light);
}

    div.exporting article.g h1 {
        background-color: #517516;
    }

    div.exporting article.g p.s, section.stats article.g time {
        color: #517516;
    }

/* Spotlight scroller
--------------------------  */
section.ue {
    position: relative;
    clear: both;
}

    section.ue > a {
        position: absolute;
        top: 0;
        right: -4%;
        bottom: 0;
        z-index: 999;
        width: 2.04%;
    }

        section.ue > a:first-child {
            left: -4%;
            right: auto;
        }

        section.ue > a:hover {
            background-color: transparent;
        }

        section.ue > a img {
            float: left;
            width: 100%;
            position: absolute;
            top: 50%;
            margin-top: -95%;
        }

    section.ue > div.sldr {
        position: relative;
        padding-top: 18.52%;
        overflow: hidden;
    }

    section.ue article {
        width: 100%;
        float: left;
    }

        section.ue article h1, section.ue article time {
            float: left;
            margin-right: 0.75em;
        }

        section.ue article time {
            clear: right;
            padding-left: 0.75em;
        }

        section.ue article div {
            float: left;
            width: 83.6%;
        }

        section.ue article img {
            float: left;
            width: 100%;
        }

            section.ue article img.m {
                display: none;
            }

        section.ue article p {
            margin: 0px;
            clear: left;
            font-size: 1.2em;
        }

        section.ue article a:hover {
            background: none;
        }

/* Charms */
div.chrms {
    float: right;
    margin-top: -5.25em;
}

    div.chrms a {
        display: inline-block;
        width: 1.1875em;
        height: 1.1875em;
        background: url(/_resources/files/icons/charm.png) no-repeat top left;
        margin-left: 0.5em;
    }

        div.chrms a.c {
            background-image: url(/_resources/files/icons/charm-on.png);
        }


/*  Data
--------------------------  */

div.publication-dates {
    font-size: min(1.475vw, 1em);
    position: relative;
    padding-bottom: min(calc((67.5rem / 2) - (2.5% / 0.475)), 90%);
}

    div.publication-dates > div {
        border: solid 5px var(--light-grey);
        padding: 2em;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    div.publication-dates > div > div {
        position: absolute;
        height: 100%;
        box-sizing: border-box;
    }

div.publication-dates h2 {
    font-size: 1.25em;
    text-align: center;
    margin: 0;
}

div.publication-dates p {
    text-align: center;
    margin: 0;
}

div.publication-dates ul {
    margin: 1em 0;
    padding: 0;
    list-style-type: none;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

    div.publication-dates ul li {
        margin: 0.5em 0;
        font-size: 1.1em;
        line-height: 1.8em;
    }

/*  Resources
--------------------------  */

div.jr ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    div.jr ul li {
        display: block;
        width: 30.66%;
        margin-left: 4%;
        margin-bottom: 4%;
        line-height: 1em;
        float: left;
        background-color: var(--aqua);
        color: #fff;
        font-size: 1em;
        text-align: center;
    }

    div.jr ul li:nth-child(3n+1) {
        margin-left: 0;
    }

        div.jr ul li h2 {
            color: #fff;
            background-color: var(--oil);
            margin-bottom: 1rem;
            padding: 0.5rem 1rem;
            font-size: 1.35em;
        }

        div.jr ul li p {
            font-size: 1.15em;
            line-height: 1.75em
        }

        div.jr ul li p a {
            color: #fff;
            display: block;
            font-weight: 400;
        }
            div.jr ul li p a:after {
                display: inline-block;
                content: url(/_resources/files/icons/download.svg);
                width: 0.75em;
                margin-left: 0.25em;
            }
        div.jr ul li.view-online p a:after {
            content: url(/_resources/files/icons/arrow-right.svg);
            -moz-transform: rotate(-45deg);
            -ms-transform: rotate(-45deg);
            -o-transform: rotate(-45deg);
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

/*  In the Media
--------------------------  */

section.m article {
    width: 30.66%;
    margin-left: 4%;
    float: left;
    border-top: solid 1px #d1d3d4;
}

    section.m article:first-child {
        margin-left: 0;
    }

    section.m article a {
        color: #1d1d1b;
    }

        section.m article a:hover {
            background-color: transparent;
        }

    section.m article h1 {
        margin: 0;
        float: left;
        width: 100%;
    }

        section.m article h1 a {
            float: left;
            padding: 0.75em 0.5em;
            display: block;
        }

        section.m article h1 img {
            float: left;
            max-width: 90%;
            width: 100%;
        }

    section.m article div {
        float: left;
        width: 100%;
        padding: 1em;
        position: relative;
        background-color: #f1f1f2;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

        section.m article div p {
            margin: 0;
            font-weight: 700;
            font-size: 1.25em;
            line-height: 1.2em;
            min-height: 5em;
        }

            section.m article div p a {
                padding: 0.5em 0 0 0;
                display: block;
            }

        section.m article div time a {
            padding: 0 0 0.5em 0;
            display: block;
            font-size: 0.8em;
            color: #939598;
            font-weight: 400;
        }

        section.m article div > a {
            display: block;
            margin: 0 -1rem -1rem -1rem;
            padding: 1rem;
            font-size: 0;
            line-height: 1em;
            position: absolute;
            left: 1rem;
            bottom: 1rem;
            right: 1rem;
        }

        section.m article div:hover > a {
            background-color: #00acaf;
        }

        section.m article div > a {
            background: transparent url(/_resources/files/icons/open-white.png) no-repeat 1rem 1rem;
        }

        section.m article div:hover > a img {
            opacity: 0;
        }

        section.m article div:hover p a, section.m article div:hover time a {
            color: #00acaf;
        }

/*  Sign in
--------------------------  */

section.si form > div > div {
    background-color: #575756;
    padding: 1%;
    margin-bottom: 1em;
    width: 98%;
    float: left;
}

    section.si form > div > div > div {
        display: inline;
    }

        section.si form > div > div > div label {
            width: 15%;
            margin: 0;
            display: block;
            color: #fff;
            float: left;
            padding: 1% 0;
        }

        section.si form > div > div > div:not(:first-child) label {
            margin-left: 1%;
        }

        section.si form > div > div > div input {
            width: 30%;
            margin: 0;
            border: 0;
            float: left;
        }

    section.si form > div > div > input[type=image] {
        width: 5%;
        margin: 0 0 0 2%;
        padding: 1.5% 2%;
        vertical-align: middle;
        background-color: #fff;
        float: left;
    }

section.si form > div > p {
    margin-bottom: 0;
}

/*  Partners
--------------------------  */

section.partners div > h1 + div {
    max-height: 53em;
    overflow-y: auto;
}

section.partners div.prtnr a {
    display: block;
}

    section.partners div.prtnr a:hover {
        background-color: transparent;
    }

section.partners div.prtnr > div {
    background-color: #f1f1f2;
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
}

section.partners div.prtnr > div {
    margin-bottom: 4%;
}

section.partners div.prtnr > div > a {
    display: block;
    flex-basis: 40%;
}

    section.partners div.prtnr > div > a img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


section.partners div.prtnr > div > a {
    display: block;
    flex-basis: 40%;
}
    section.partners div.prtnr > div > div {
        flex-basis: 60%;
    }

        section.partners div.prtnr > div > div.flex {
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: self-start;
        }

        section.partners div.prtnr > div > div.flex > * {
            flex-basis: 100%;
        }

        section.partners div.prtnr > div > div.flex > div {
            margin-top: auto;
        }

        section.partners div.prtnr > div > div.flex img {
            max-width: 40%;
            margin: 5% 0 0 10%;
        }

section.partners div.prtnr > div > div img {
}

section.partners div.prtnr > div > div > div {
    padding: 5% 10%;
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position .2s;
    line-height: 1.25em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

section.partners div.prtnr > div:hover > div > div {
    background-position: 0 0;
}

section.partners div.prtnr > div > div h2 {
    margin-bottom: 0;
    transition: color .2s;
    font-size: 1.25em;
}

section.partners div.prtnr > div:hover > div h2 a {
    color: #fff !important;
}

section.partners div.prtnr > div > div h2 span {
    text-transform: uppercase;
}

section.partners div.prtnr > div > div p {
    margin-bottom: 0;
    transition: color .2s;
}

    section.partners div.prtnr > div > div p a {
        color: #939598;
    }

section.partners div.prtnr > div:hover > div p a {
    color: #fff;
}

section.partners div.prtnr > div.apec > div h2 a {
    color: #004282;
}

section.partners div.prtnr > div.apec > div > div {
    background-image: linear-gradient(to right, #004282 50%, transparent 50%);
}

section.partners div.prtnr > div.eurostat > div h2 a {
    color: #3758a8;
}

section.partners div.prtnr > div.eurostat > div > div {
    background-image: linear-gradient(to right, #3758a8 50%, transparent 50%);
}

section.partners div.prtnr > div.iea > div h2 a {
    color: #0044ff;
}

section.partners div.prtnr > div.iea > div > div {
    background-image: linear-gradient(to right, #0044ff 50%, transparent 50%);
}

section.partners div.prtnr > div.gecf > div h2 a {
    color: #0054a6;
}

section.partners div.prtnr > div.gecf > div > div {
    background-image: linear-gradient(to right, #0054a6 50%, transparent 50%);
}

section.partners div.prtnr > div.ief > div h2 a {
    color: #00447c;
}

section.partners div.prtnr > div.ief > div > div {
    background-image: linear-gradient(to right, #00447c 50%, transparent 50%);
}

section.partners div.prtnr > div.olade > div h2 a {
    color: #005baa;
}

section.partners div.prtnr > div.olade > div > div {
    background-image: linear-gradient(to right, #005baa 50%, transparent 50%);
}

section.partners div.prtnr > div.opec > div h2 a {
    color: #00aeef;
}

section.partners div.prtnr > div.opec > div > div {
    background-image: linear-gradient(to right, #00aeef 50%, transparent 50%);
}

section.partners div.prtnr > div.unsd > div h2 a {
    color: #3d71b8;
}

section.partners div.prtnr > div.unsd > div > div {
    background-image: linear-gradient(to right, #3d71b8 50%, transparent 50%);
}


/*  Downloads
--------------------------  */

section.w a.d, #imapdata a {
    display: inline-block;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
    section.w a.d:after, #imapdata a:after {
        display: inline-block;
        content: url(/_resources/files/icons/download.svg);
        width: 0.75em;
        margin-left: 0.25em;
        -moz-filter: var(--svg-aqua);
        -ms-filter: var(--svg-aqua);
        -webkit-filter: var(--svg-aqua);
        filter: var(--svg-aqua);
    }
    section.w a.d:hover:after, #imapdata a:hover:after {
        -moz-filter: none;
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
    }

/*  Interactive map
--------------------------  */
#imap {
    width: 100%;
    height: 28.125em;
    position: relative;
}

#imapdata {
    padding: 2%;
    text-align: center;
}



/*  Responsive 
--------------------------  */

/*  1220px  */
@media screen and (max-width: 1220px) {

    section.ue > a, section.e > div > a {
        right: -3%;
    }

        section.ue > a:first-child, section.e > div > a:first-child {
            left: -3%;
        }

    section.w > h1 > span {
        max-width: 90%;
    }

    section.w.flex > div:first-child > h1 > span {
        margin-left: 10%;
    }

    section.p div.prtnr {
        font-size: 0.9em;
    }
}

/*  1100px  */
@media screen and (max-width: 1100px) {

    section.w.flex > div:last-child > h1:before {
        width: 70%;
    }

    section.stats article {
        font-size: 0.8em;
    }

    section.p div.prtnr {
        font-size: 0.8em;
    }

        section.p div.prtnr > div > div img {
            transform: scale(0.8);
            transform-origin: top left;
        }
}

/*  950px  */
@media screen and (max-width: 950px) {
    div.jr ul li h2 {
        font-size: 1.25em;
    }
}

/*  940px  */
@media screen and (max-width: 940px) {
    section.partners div.prtnr > div > div.flex img {
        max-width: 50%;
    }

    section.partners div.prtnr > div > div.flex > div {
        font-size: 80%;
    }
}

/*  925px  */
@media screen and (max-width: 925px) {
    section.p div.prtnr > div > div p {
        font-size: 1em;
    }
}

/*  920px  */
@media screen and (max-width: 920px) {

    section.w > h1 {
        font-size: 1.5em;
    }

    section.e article h1, section.e article p {
        font-size: 1.25em;
    }

    section.e > div > div.sldr {
        padding-top: 48%;
    }
}

/*  905px  */
@media screen and (max-width: 905px) {
    /*  Interactive map  */
    #imap {
        height: 22.5em;
    }
}

/*  850px  */
@media screen and (max-width: 850px) {

    body > div > main > div > div {
        padding-bottom: 0;
    }

    main > div.bw > section > div, main > div.bw > section > form {
        width: 95%;
    }

    section.stats article > a:not(.export) {
        min-height: 16em;
    }

    section.ue > a, section.e > div > a {
        right: -2.5%;
    }

        section.ue > a:first-child, section.e > div > a:first-child {
            left: -2.5%;
        }

    section.m article div p {
        min-height: 7em;
    }

    section.p div.prtnr > div > a > img {
        width: 35%;
    }

    section.p div.prtnr > div > div {
        left: 35%;
    }

        section.p div.prtnr > div > div img {
            margin: 5% 0 0 5%;
            transform: scale(0.5);
        }

        section.p div.prtnr > div > div > div {
            padding: 5% 5%;
        }

}

/*  830px  */
@media screen and (max-width: 830px) {
    div.jr ul li h2 {
        font-size: 1.15em;
    }
}

/*  825px  */
@media screen and (max-width: 825px) {
    section.stats article > a:not(.export) {
        min-height: 15em;
    }
}

/*  760px  */
@media screen and (max-width: 800px) {

    section.stats article {
        min-height: 14em;
    }

        section.stats article p.s {
            font-size: 4.5em;
        }

            section.stats article p.s span {
                font-size: 0.2em;
            }
}

/*  770px  */
@media screen and (max-width: 770px) {

    div.jr ul li {
        font-size: 0.85em;
    }
}

/*  720px  */
@media screen and (max-width: 720px) {

    section.e article h1, section.e article p {
        font-size: 1em;
    }
}

/*  710px  */
@media screen and (max-width: 710px) {
    /*  Interactive map  */
    #imap {
        height: 18.5em;
    }
}

/*  670px  */
@media screen and (max-width: 670px) {

    div.jr ul li {
        font-size: 1em;
    }
    div.jr ul li {
        width: 47.5%;
        margin-left: 5%;
    }

        div.jr ul li:nth-child(3n+1) {
            margin-left: 5%;
        }

        div.jr ul li:nth-child(2n+1) {
            margin-left: 0;
        }

        div.jr ul li:last-child {
            margin-right: auto;
            margin-left: auto;
            padding-bottom: 0.1em;
            float: none;
            clear: both;
        }

}

/*  660px  */
@media screen and (max-width: 660px) {

    section.stats article {
        width: 47.5%;
        margin-left: 0;
        font-size: 1em;
        margin-bottom: 1em;
    }

        section.stats article > a:not(.export) {
            min-height: 14.5em;
        }

        section.stats article:first-child {
            margin-right: 5%;
        }

        section.stats article:last-child {
            margin-right: auto;
            margin-left: auto;
            float: none;
            clear: both;
        }

    section.m article {
        width: 47.5%;
        margin-left: 0;
        font-size: 1em;
        margin-bottom: 4%;
    }

        section.m article:first-child {
            margin-right: 5%;
        }

        section.m article:last-child {
            margin-right: auto;
            margin-left: auto;
            float: none;
            clear: both;
            margin-bottom: 0;
        }

        section.m article div p {
            min-height: 5em;
        }


    section.w.flex > div:first-child > h1 > span, section.w.flex > div:last-child > h1 > span {
        max-width: 90%;
        margin-left: 5%;
    }

    section.w.flex > div > h1:before, section.w.flex > div:last-child > h1:before {
        width: calc(9em + 5%);
    }

    section.w.flex > div > h1:after {
        content: " ";
        display: block;
        background-color: var(--light-grey);
        position: absolute;
        right: 0;
        bottom: 0;
        height: 0.25em;
        width: 50%;
        z-index: -1;
    }

    main > div.bw > section.flex {
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

        main > div.bw > section.flex > div > div, main > div.bw > section.flex > div:first-child > div {
            margin: 3em auto 0 auto;
        }

        main > div.bw > section.flex > div:first-child {
            margin-bottom: 3em;
        }

    main > div.bw > section.flex > div {
        flex-basis: 100%;
    }

    div.publication-dates {
        font-size: 1em;
        padding-bottom: 0;
    }

    div.publication-dates > div {
        position: static;
    }

    div.publication-dates + div.button {
        margin-bottom: 0 !important;
    }



    section.si form > div > div > div {
        display: block;
        float: left;
        width: 100%;
        margin-bottom: 0.5em;
    }

        section.si form > div > div > div label {
            width: 25%;
        }

        section.si form > div > div > div:not(:first-child) label {
            margin-left: 0;
        }

        section.si form > div > div > div input {
            width: 50%;
        }

    section.si form > div > div > input[type=image] {
        margin-left: 25%;
        padding: 2%;
        width: 5.5%;
    }

    section.p > div > div.chrms {
        display: none;
    }

    section.p > div > div.sldr {
        padding-top: 0 !important;
    }

        section.p > div > div.sldr > div {
            position: static !important;
        }


    section.partners div > h1 + div.prtnr {
        max-height: none;
    }
    
    section.p div.prtnr {
        font-size: 1em;
    }

        section.p div.prtnr > div {
            width: 100%;
            margin-left: 0;
            margin-bottom: 4%;
        }

            section.p div.prtnr > div > a > img {
                width: 30%;
            }

            section.p div.prtnr > div > div {
                left: 30%;
            }

                section.p div.prtnr > div > div img {
                    margin: 5% 0 0 5%;
                    transform: scale(0.9);
                }

                section.p div.prtnr > div > div > div {
                    padding: 2.5% 5%;
                    background-position: 0 0;
                }

                section.p div.prtnr > div > div h2 > a, section.p div.prtnr > div > div p > a {
                    color: #fff !important;
                }
}

/*  550px  */
@media screen and (max-width: 550px) {

    section.stats article > a:not(.export) {
        min-height: 13em;
    }

    section.stats article p.s {
        font-size: 4em;
    }

    section.p div.prtnr {
        font-size: 0.8em;
    }

        section.p div.prtnr > div > div img {
            transform: scale(0.8);
        }

    /*  Interactive map  */
    #imap {
        height: 14em;
    }
}

/*  500px  */
@media screen and (max-width: 500px) {

    div.chrms {
        display: none;
    }

    section.e > div > div.sldr {
        padding-top: 55%;
    }

    section.p div.prtnr > div > div img {
        transform: scale(0.7);
    }

    section.p div.prtnr > div > div > div {
        font-size: 0.9em;
    }

    div.jr ul li {
        width: 100%;
        margin-left: 0;
    }

        div.jr ul li:nth-child(3n+1) {
            margin-left: 0;
        }
}

/*  460px  */
@media screen and (max-width: 460px) {

    section.stats article {
        width: 100%;
        margin-left: 0;
    }

        section.stats article > a {
            min-height: 0;
        }

        section.stats article p.s {
            font-size: 5.75em;
        }

            section.stats article p.s span {
                font-size: 0.15em;
            }

        section.stats article time {
            position: static;
            bottom: auto;
            left: auto;
            right: auto;
        }

    section.ue > a, section.e > div > a {
        display: none;
    }

    section.m article {
        width: 100%;
        margin-left: 0;
    }

        section.m article div p {
            min-height: 0;
        }

        section.m article div > a {
            position: static;
            left: auto;
            bottom: auto;
            right: auto;
        }

    section.stats article p.s {
        margin-bottom: 0.25em;
    }


    div.publication-dates ul li {
        text-align: center;
    }

        div.publication-dates ul li strong {
            display: block;
        }

    section.si form > div > div {
        padding: 3%;
        width: 91%;
    }

        section.si form > div > div > div label {
            width: 100%;
        }

        section.si form > div > div > div input {
            width: 100%;
            padding: 3%;
        }

        section.si form > div > div > input[type=image] {
            margin-left: 0;
            padding: 2.5%;
            width: 7.5%;
        }
}

/*  400px  */
@media screen and (max-width: 400px) {

    section.e > div > div.sldr {
        padding-top: 60%;
    }

    section.p div.prtnr {
        font-size: 1em;
    }

        section.p div.prtnr > div > div {
            position: static;
            left: auto;
            float: left;
            width: 100%;
        }

        section.p div.prtnr > div > a > img {
            width: 100%;
        }

        section.p div.prtnr > div > div > a {
            position: static;
            top: auto;
            right: auto;
            bottom: auto;
            left: auto;
        }

        section.p div.prtnr > div > div img {
            transform: scale(1);
        }

        section.p div.prtnr > div > div > div {
            font-size: 1em;
            position: static;
            font-size: 1em;
        }
}
