@font-face {
    font-family: 'maison_neue';
    src: url('../fonts/maisonneue-demi-webfont.woff2') format('woff2'),
         url('../fonts/maisonneue-demi-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'maison_neue';
    src: url('../fonts/maisonneue-book-webfont.woff2') format('woff2'),
         url('../fonts/maisonneue-book-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;

}

/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
========================================================================== */

/**
 * Remove the margin in all browsers (opinionated).
 */

 body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */

 article,
 aside,
 footer,
 header,
 nav,
 section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

 h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */

 figcaption,
 figure,
 main { /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */

 figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

 hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

 pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
========================================================================== */

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

 a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

 abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

 b,
 strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

 b,
 strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

 code,
 kbd,
 samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */

 dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */

 mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */

 small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

 sub,
 sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

 audio,
 video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

 audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */

 img {
  border-style: none;
  display: inline-block;
}

/**
 * Hide the overflow in IE.
 */

 svg:not(:root) {
  overflow: hidden;
}

/* Forms
========================================================================== */

/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

 button,
 input,
 optgroup,
 select,
 textarea {
  font-family: sans-serif; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

 button,
 input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

 button,
 select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

 button,
 html [type="button"], /* 1 */
 [type="reset"],
 [type="submit"] {
  -webkit-appearance: button; /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */

 button::-moz-focus-inner,
 [type="button"]::-moz-focus-inner,
 [type="reset"]::-moz-focus-inner,
 [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

 button:-moz-focusring,
 [type="button"]:-moz-focusring,
 [type="reset"]:-moz-focusring,
 [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

 fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

 legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

 progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */

 textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

 [type="checkbox"],
 [type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

 [type="number"]::-webkit-inner-spin-button,
 [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

 [type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */

 [type="search"]::-webkit-search-cancel-button,
 [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

 ::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
========================================================================== */

/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */

 details, /* 1 */
 menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

 summary {
  display: list-item;
}

/* Scripting
========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

 canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */

 template {
  display: none;
}

/* Hidden
========================================================================== */

/**
 * Add the correct display in IE 10-.
 */

 [hidden] {
  display: none;
}


/* Personal resets
========================================================================== */
html {
    font-family: "maison_neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    font-size: 16px;
    color: #34343A;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
}

body {
    margin-top: 4.4rem;
}

body.home {
    margin-top: 0;
}

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

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

input {
    font-family: "maison_neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    outline: none;
    min-width: 0;
}

ul, li {
    margin: 0;
    padding: 0;
}

a {
    color: #A9977A;
    text-decoration: none;
    -webkit-transition: color .15s ease-in-out;
    transition: color .15s ease-in-out;
}

a:hover {
    color: #34343A;

}

.cls-1, .cls-3, .cls-4 {
    fill: transparent !important;
}

/** 
 * Generic content
 */

/* Icons */
i.icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}   

i.icon.loop {
    background-image: url('../img/icons/loop.svg');
}

i.icon.loop-dark {
    background-image: url('../img/icons/loop_dark.svg');
}

.icon.inline {
    height: 0.7em;
    width: 0.7em;
    position: relative;
    left: 0;
    -webkit-transition: left .15s ease-in-out;
    transition: left .15s ease-in-out;
}

.icon.inline.down {
    position: relative;
    left: 0;
    top: 0;
    -webkit-transition: top .15s ease-in-out;
    transition: top .15s ease-in-out;
}

a > .icon.inline polygon {
    -webkit-transition: fill .15s ease-in-out;
    transition: fill .15s ease-in-out;
}

a:hover > .icon.inline polygon {
    fill: #343439;
}

a:hover > .icon.inline {
    left: 0.10em;
}

a:hover > .icon.inline.down {
    left: 0;
    top: 0.15em;
}

.icon.down {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

/* default styling */
.default-padding {
    padding: 0 1rem;
}

body > section, footer {
    width: 100%;
    float: left;
    overflow: hidden;
}

.inner-shadow {
    box-shadow: inset 0 3px 3px 0 rgba(52,52,58,0.20);
}

/* Description elements */
.desc .info {
    display: inline-block;
    background-color: #A99776;
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    margin: 0 0 0.5rem 0.5rem;
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: background-color .15s ease-in-out;
    transition: background-color .15s ease-in-out;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.desc .info:hover {
    background-color: #34343A;
}

.desc .info.source {
    background-image: url('../img/icons/info.svg');
    overflow: visible;
}

.desc .info.source::after {
    content: attr(data-title);
    -webkit-transform: scale(0);
    transform: scale(0);
    position: absolute;
    right: 0; 
    top: calc(100% + 0.5rem);
    opacity: 0;
    white-space: nowrap; 
    padding: 0.5rem;
    background: #34343A;
    box-shadow: 0 2px 4px 0 rgba(50,51,59,0.50);
    border-radius: 5px;
    -webkit-transition: opacity .15s ease-in-out;
    transition: opacity .15s ease-in-out;
}

.desc .info.source:hover::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.desc .info.download {
    background-image: url('../img/icons/download.svg');
}

.desc .date {
    color: #A99776;
}

/** 
 * Modules
 */

/* Header */
.header-module {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    min-height: 24rem;
    color: #fff;
    font-size: 144px;
}

.header-module .text p, .header-module .text h1 {
    padding: 0;
    margin: 0;
    letter-spacing: -0.06em;
}

.header-module .text {
    align-self: flex-start;
    line-height: 0.7;
    padding: 7rem 0;
}

.header-module .text h1 {
    font-size: inherit;
    position: relative;
    font-weight: 700;
    left: -0.4rem;
    margin-bottom: 0.55rem;
    display: inline-block;
}

.header-module .text .sub {
    line-height: 0.9;
    font-size: 2rem;
}

/* Search module */
.search-module {
    padding: 1rem;
    width: 100%;
    float: left;
    overflow: hidden;
    font-size: 2rem;
    color: #A99776;
}

.search-module form {
    width: 100%;
    overflow: hidden;
    float: left;
    display: flex;
    flex-direction: row;
}

.search-module form .query {
    flex: 1 1 auto;
    font-size: inherit;
    color: inherit;
    background: inherit;
    border: 0;
    padding: 0;
}

.search-module ::-webkit-input-placeholder { 
  color: inherit;
}
.search-module ::-moz-placeholder { 
  color: inherit;
}
.search-module :-ms-input-placeholder { 
  color: inherit;
}
.search-module :-moz-placeholder { 
  color: inherit;
}

.search-module form .submit {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.search-module form .submit .icon {
    width: .7em;
    height: .7em;
}

.ui-menu.ui-autocomplete {
    border: none;
    background: #FFFFFF;
    -webkit-box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
    box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
    font-size: 1rem;
    color: #34343A;
    letter-spacing: -0.1px;
    line-height: 32px;
    border: none;
    text-decoration: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

.ui-menu.ui-autocomplete .ui-menu-item {
    padding: 0.2rem 0.5rem;
}

.ui-menu.ui-autocomplete.header {
    left: auto !important;
    right: 0;
    width: 100% !important;
    -webkit-transform: translateY(-1rem);
    -ms-transform: translateY(-1rem);
    -o-transform: translateY(-1rem);
    transform: translateY(-1rem);
    padding: 0 0 0.2rem 0;
}

.ui-menu.ui-autocomplete.header .ui-menu-item {
    padding: 0 3rem;
}

.ui-menu.ui-autocomplete.home-search {
    left: 0 !important;
    width: 100%;
}

.ui-menu.ui-autocomplete.default {
    width: calc(100% - 2rem) !important;
    left: 1rem !important;
}

.ui-menu.ui-autocomplete .ui-state-hover, .ui-menu.ui-autocomplete .ui-state-active {
    color: #A9977A;
    border: 1px solid #fff;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    background-image: none;
}

/* Main categories */
.main-categories-module {
    width: 100vw;
    background: #fff;
    box-shadow: 0 3px 3px 0 rgba(52,52,58,0.20);
}

.main-categories-module .category-wrapper {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #C8CBD2;
    border-bottom: 1px solid #C8CBD2;
}

.main-categories-module .category-wrapper a {
    flex: 1;
    text-align: center;
    padding: 3.3rem 0.5em;
    color: #343439;
    font-size: 2rem;
    -webkit-transition: color .25s ease-in-out;
    transition: color .25s ease-in-out;
}

.main-categories-module .category-wrapper a:hover {
    color: #A9977A;
}

.main-categories-module .category-wrapper a .icon {
    left: 0;
    width: 2.5em;
    height: 2.5em;
}

.main-categories-module .category-wrapper a:nth-of-type(1) .icon ellipse {
    -webkit-transition: transform .25s ease-in-out;
    transition: transform .25s ease-in-out;
}

.main-categories-module .category-wrapper a:nth-of-type(1):hover .icon ellipse {
    -webkit-transform: translateX(0.2rem);
    transform: translateX(0.2rem);
}

.main-categories-module .category-wrapper a:nth-of-type(1) .icon ellipse {
    -webkit-transition: transform .25s ease-in-out;
    transition: transform .25s ease-in-out;
}

.main-categories-module .category-wrapper a:nth-of-type(1):hover .icon ellipse {
    -webkit-transform: translateX(0.2rem);
    transform: translateX(0.2rem);
}

.main-categories-module .category-wrapper a:nth-of-type(2) .icon g {
    -webkit-transition: transform .25s ease-in-out;
    transition: transform .25s ease-in-out;
    -webkit-transform-origin: 30%;
    transform-origin: 30%;
}

.main-categories-module .category-wrapper a:nth-of-type(2):hover .icon g {
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
}

.main-categories-module .category-wrapper a:nth-of-type(3) .icon g {
    -webkit-transition: transform .25s ease-in-out;
    transition: transform .25s ease-in-out;
}

.main-categories-module .category-wrapper a:nth-of-type(3):hover .icon g {
    -webkit-transform: translateY(-0.3rem);
    transform: translateY(-0.3rem);
}


.main-categories-module .category-wrapper a .title {
    display: block;
    width: 100%;
}

.main-categories-module .datasets a{
    font-size: 1rem;
    padding: 1rem 0;
    display: inline-block;
    color: #A9977A;
    -webkit-transition: color .15s ease-in-out;
    transition: color .15s ease-in-out;
}

.main-categories-module .datasets a:hover {
    color: #343439;
}

/* Page components */
/* Quickstats */
.quickstats {
    background: #E7E3D8;
    overflow: hidden;
    width: 100%;
    float: left;
}

.quickstats .desc {
    padding: 4.4rem 0 0 0;
    width: 100%;
    float: left;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.quickstats .desc h2 {
    font-size: 2rem;
    font-weight: 400;
}

.quickstats .stats {
    width: 100%;
    float: left;
    list-style: none;
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    padding: 0 0 4.4rem 0;
    flex: 1;
}

.quickstats .stats li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-basis: 33.3333333333333333333%;
    padding: 3rem 1.1rem 0 1.1rem;
}

.quickstats .stats .icon-wrapper {
    width: 5rem;
}

.quickstats .stats .icon {
    height: 6rem;
    width: 6rem;
    margin: 0 0 0 -1rem;
}

.quickstats .stats .icon, .quickstats .stats .icon .cls-1, .quickstats .stats .icon .cls-2, .quickstats .stats .icon .cls-3, .quickstats .stats .icon .cls-4 {
    stroke: #343439;
}

.quickstats .stat-desc-wrapper {
    align-self: center;
    padding: 0 0 0 0.9rem;
}

.quickstats .stats .stat-desc-wrapper .stat {
    font-size: 2rem;
}

.quickstats .stats .stat-desc-wrapper .stat-desc {
    font-size: 1rem;
}

/* Map */
.map {
    height: 24rem;
}

.map::after {
    display: block; 
    content: " "; 
    margin-top: -5rem; 
    height: 5rem; 
    visibility: hidden; 
    pointer-events: none;
    z-index: -99;
}

.map.big {
    height: 40rem;
}

.c-maps-marker {
    position: absolute;
    color: #A9977A;
    font-size: 1rem;
    font-family: "maison_neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: #fff;
    padding: 0.2rem 0.4rem;
    -webkit-transform: translate(-50%,-2.5rem);
    -ms-transform: translate(-50%,-2.5rem);
    -o-transform: translate(-50%,-2.5rem);
    transform: translate(-50%,-2.5rem);
    text-align: center;
    font-weight: bold;
}

.c-maps-marker::after {
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    content: "";
    width: 0; 
    height: 0; 
    border-left: 0.40rem solid transparent;
    border-right: 0.40rem solid transparent;
    border-top: 0.40rem solid #fff;
}

/* about/intro */
.about {
    font-size: 2rem;
}

.about > div {
    padding: 4.4rem 0;
}

.about h1 {
    font-weight: 700;
    color: #A99776;
}

.about p:first-of-type {
    margin-top: 0;
}

/* Text */
section.text {
    line-height: 1.6;
    border-top: 1px solid rgba(200, 203, 211, 0.5);
    border-bottom: 1px solid rgba(200, 203, 211, 0.5);
    margin: 2rem 0;
}

section.text > div {
    padding: 3rem 0 2rem 0;
}

section.text h1, section.text h2 {
    font-size: 2rem;
}

.less-width section.text {
    border: none;
    max-width: 1300px;
}

.less-width section.text h2{
    line-height: 1.1;
}

/* Main menu */
nav#main-menu {
    position: fixed;
    height: 4.4rem;
    width: 100%;
    width: 10.5rem;
    right: 0;
    top: 0;
    z-index: 5;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#overlay  {
    background: rgba(52, 52, 58, 0.5);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 0;
    -webkit-transition: opacity .20s ease-in-out;
    transition: opacity .20s ease-in-out;
    pointer-events: none;
}

body.overlay #overlay {
    opacity: 1;
    pointer-events: initial;
}


#logo {
    position: fixed;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: #fff;
    width: 100vw;
    height: 4.4rem;
    top: 0;
    z-index: 4;
    -webkit-transition: all .20s ease-in-out;
    transition: all .20s ease-in-out;
    pointer-events: initial;
    -webkit-box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
    box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
}

#logo.no-animate {
    -webkit-transition: none;
    transition: none;
}

#logo .text {
    display: none;
}

#logo a svg {
    height: 0.7em;
    width: auto;
    top: -2px;
    position: relative;
}

#logo a, body.home nav#main-menu.active .logo a, nav#main-menu.active .logo a {
    color: #A9977A;
    text-decoration: none;
}

body.home #logo {
    background: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.home #logo a {
    color: #34343A;
}

#logo a svg path{
    fill: #A9977A;
}

body.home #logo a svg path{
    fill: #34343A;
}

#logo.hidden {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    pointer-events: none;
}

body.home #logo.open, #logo.open, body.home nav#main-menu.active .logo, nav#main-menu.active .logo {
    background: #fff;
    -webkit-box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
    box-shadow: 0 3px 2px 0 rgba(0,0,0,0.10);
}

body.home #logo.open a svg path, #logo.open a svg path, body.home nav#main-menu.active .logo a svg path, nav#main-menu.active .logo a svg path {
    fill: #A9977A;
}

body.home #logo.open a {
    color: #A9977A;
}

nav#main-menu > ul {
    position: absolute;
    top: 0;
    right: 0;
    list-style: none;
    height: 4.4rem;
    font-size: 0.88rem;
}

nav#main-menu > ul > li {
    display: block;
    height: 100%;
    width: 3.5rem;
    position: relative;
    background: #A99776;
    float: left;
    cursor: pointer;
}

nav#main-menu > ul > li:nth-child(2) {
    border-left: 1px solid #91826D;
    border-right: 1px solid #91826D;
}

nav#main-menu.active > ul > li:nth-child(2) {
    border-left: 1px solid #827766;
    border-right: 1px solid #827766;
}

nav#main-menu > ul > li > span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    line-height: 0;
}

nav#main-menu > ul > li .close {
    cursor: pointer;
}

nav#main-menu > ul > li .submenu {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity .20s ease-in-out;
    transition: opacity .20s ease-in-out;
    pointer-events: none;
}

nav#main-menu > ul > li .submenu {
    animation: none;
}

nav#main-menu > ul > li.active .submenu {
    opacity: 1;
    pointer-events: initial;
}

nav#main-menu > ul > li .close {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    border-left: 1px solid #C8CBD2;
}

/* menu main categories */
nav#main-menu > ul > li.categories .submenu .main-categories-module {
    position: absolute;
    right: -7rem;
    top: 4.4rem;
}

nav#main-menu > ul > li.search .submenu {
    background: #fff;
    border-left: 1px solid #C8CBD2;
    height: 100%;
    width: 100vw;
}

/* menu lang */
nav#main-menu > ul > li.lang-toggle .submenu .locale-select {
    background: #fff;
    position: absolute;
    right: 0;
    top: 4.4rem;
    left: -3.5rem;
}

nav#main-menu > ul > li.lang-toggle .submenu .locale-select span, nav#main-menu > ul > li.lang-toggle .submenu .locale-select a {
    color: #A9977A;
    width: 100%;
    padding: 1rem 1rem;
    text-align: right;
    display: block;
}

nav#main-menu > ul > li.lang-toggle .submenu .locale-select > *:not(:last-child) {
    border-bottom: 1px solid #C8CBD2;
}

nav#main-menu > ul > li.lang-toggle .submenu .locale-select span {
    color: #34343A;
    cursor: default;
}

nav#main-menu > ul > li.lang-toggle .submenu .locale-select a:hover {
    color: #34343A;
}

/* menu search */
nav#main-menu .search .submenu .close {
    float: left;
    width: 3.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
}

nav#main-menu .search-module {
    padding: 0;
    font-size: 1rem;
    background: #fff;
    width: calc(100% - 3.5rem);
    height: 100%;
    font-size: 1rem;
    color: inherit;
    float: right;
}

nav#main-menu .search-module form {
    height: 100%;
}

nav#main-menu .search-module .submit{
    width: 3.5rem;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

nav#main-menu .search-module .icon.loop{
    background-image: url('../img/icons/loop_dark.svg');
    width: 1rem;
    height: 1rem;
}

/* Footer */
footer {
    
}

#footer, .cat-search {
    background: #E7E3D8;
    padding: 3rem 0;
    overflow: hidden;
}

#footer h4, .cat-search h4  {
    font-size: 2rem;
}

#footer .search-module, .cat-search .search-module {
    margin: 2rem 0 3rem 0;
    box-shadow: inset 0 3px 3px 0 rgba(52,52,58,0.20);
}

#footer .info {
    letter-spacing: -0.08px;
    line-height: 1.3;
}

#footnote {
    padding: 1rem 0;
}

#footnote .spacer {
    color: #A9977A;
    display: inline-block;
    padding: 0 1rem;
}

/* footer search */
footer .search-module, .cat-search .search-module {
    padding: 1.5rem;
    background: #fff;
}

/** 
 * Singles
 */
/* Home */
#category-overview-home .category .datasets a {
    display: inline-block;
    width: 100%;
    font-size: 2rem;
    color: #34343A;
    background: #A99776;
    padding: 1rem 0;
}

#category-overview-home .category .datasets a:hover {
    -webkit-transition: background .20s ease-in-out;
    transition: background .20s ease-in-out;
    background: #E7E3D8;
}

#category-overview-home .category .datasets a:not(:first-of-type) {
    box-shadow: inset 0 3px 2px 0 rgba(0,0,0,0.10);
}

#category-overview-home .category .datasets .subcategory {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

#category-overview-home .category .datasets a .subcategory > .icon {
    height: 1.5em;
    width: 1.5em;
    margin: 0 2rem 0 0;
}

#category-overview-home .category .datasets a .icon, 
#category-overview-home .category .datasets a .icon .cls-1, 
#category-overview-home .category .datasets a .icon .cls-2, 
#category-overview-home .category .datasets a .icon .cls-3,
#category-overview-home .category .datasets a .icon .cls-4,
#category-overview-home .category .datasets a .icon line.cls-5 {
    stroke: #343439;
    fill: transparent;
}

#category-overview-home .category .datasets a .icon polygon {
    fill: #343439;
}

#category-overview-home .category .datasets a .num-datasets {
    opacity: 0;
    -webkit-transition: opacity .20s ease-in-out;
    transition: opacity .20s ease-in-out;
    text-align: right;
    flex: 1 0 auto;
}  

#category-overview-home .category .datasets a:hover .num-datasets {
    opacity: 1;
}

.header-module.home {
    padding-top: 3.5rem;
    min-height: 26rem;
    color: #34343A;
    font-size: 4rem;
}

.header-module.home .text {
    line-height: 0.95;
}

/** 
 * Categories, index and search
 */
#quick-nav {
    border-top: 1px solid rgba(200, 203, 211, 0.5);
    border-bottom: 1px solid rgba(200, 203, 211, 0.5);
    padding: 1rem 0;
}

#quick-nav ul {
    list-style: none;
    display: inline-block;
}

#quick-nav ul li {
    display: inline-block;
    margin: 0 0 0 1.5rem;
}

#datasets {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

#datasets .wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

#datasets .num-datasets {
    align-self: flex-start;
    flex: 0 1 100%;
    order: -1;
    padding: 3.5rem 0 1.5rem 0;
}

#datasets div.parent {
    flex: 1 0 100%;
    padding: 3.5rem 0 1rem 0;
}

#datasets ul {
    flex: 1 0 50%;
    list-style: none;
    padding: 0 0 3.5rem 0;
}

#datasets ul > li.title .icon {
    width: 2em;
    height: 2em;
    margin: 0 1rem 0 0;
}

#datasets ul > li.title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    padding: 0;
}

#datasets.small ul > li.title {
    margin-bottom: -1.4rem;
}


#datasets.small ul > li.title .text {
    font-size: 1rem;
}

#datasets.small ul > li.title:only-child {
    display: none;
}

#datasets ul > li {
    padding: 0.5rem 0 0 calc(5rem + 2px);
}

#datasets.child {
    margin-top: -7rem;
}

#datasets.child.no-about {
    margin-top: 0;
}

#datasets.child .num-datasets {
    padding: 3.5rem 0 0.5rem 0;
}

#datasets.child > ul > li {
    padding: 0.5rem 0 0 0;
}

#datasets h4 {
    font-size: 2rem;
}

/* Graphs */
.dataset-graph {
    padding: 2rem 0 3.4rem 0; 
}

.dataset-graph .desc {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    line-height: 1.3;
}



.dataset-graph .desc h1 {
    line-height: 1.5;
}

.dataset-graph .desc .icon-wrapper {
    display: flex;
    flex-flow: column;
    text-align: right;
    align-items: flex-start;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
    white-space: nowrap;
}



@media (min-width: 768px) {
    .dataset-graph .desc .icon-wrapper {
        align-items: flex-end;
    }
  
    .dataset-graph .desc {
        flex-flow: row nowrap;
    }

}


.dataset-graph .desc .info {
    background-color: #C8CBD2;
}

.dataset-graph .desc .info:hover {
    background-color: #34343A;
}

.dataset-graph .desc .date {
    color: #C8CBD2;
}

.dataset-graph .index{
    flex-flow: row wrap;
    list-style: none;
    padding: 1rem 0 0 0;
    display: none;
}

.dataset-graph .index li {
    padding: 0.5rem 1.5rem 0.5rem 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

.dataset-graph .index li i{
    height: 1rem;
    width: 1rem;
    margin: 0 0.5rem 0 0;
}

.dataset-graph .graph {
    width: 100%;
    height: 50rem;
    max-height: 70vh !important;
}

.dataset-graph .graph .c3-tooltip-container {
    padding: 0.5rem;
    background: #34343A;
    box-shadow: 0 2px 4px 0 rgba(50,51,59,0.50);
    border-radius: 5px;
    color: #fff;
}

.dataset-graph .graph .c3-tooltip-container .c3-tooltip {
    background: transparent;
    opacity: 1;
    box-shadow: none;
    white-space: nowrap;
}

.dataset-graph .graph .c3-tooltip-container .c3-tooltip tr {
    border: none;
}

.dataset-graph .graph .c3-tooltip-container .c3-tooltip th {
    font-size: 0.8rem;
    text-align: center;
    background-color: transparent;
}

.dataset-graph.split .graph .c3-tooltip-container .c3-tooltip th {
    display: none;
}

.dataset-graph .graph .c3-tooltip-container .c3-tooltip td {
    font-size: 0.8rem;
    padding: 0;
    background-color: transparent;
    border-left: none;
    padding: 0.5rem;
}

.dataset-graph .graph .c3-tooltip-container .c3-tooltip td.value {
    font-weight: 700;
}

.dataset-graph .c3-xgrid-focus {
    display: none;
}

.dataset-graph .graph .c3-circle {
    fill: transparent !important;
    stroke-width: 0.2rem;
    stroke: red;
}

.dataset-graph .graph .c3-circle {
    fill: #fff !important;
    stroke-width: 0.25rem;
    stroke: #BB6F00;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(2) .c3-circle {
    stroke: #ED9400;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(3) .c3-circle {
    stroke: #FFBF55;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(4) .c3-circle {
    stroke: #3D90A9;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(5) .c3-circle {
    stroke: #63C8E6;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(6) .c3-circle {
    stroke: #A4D9E8;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(7) .c3-circle {
    stroke: #635845;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(8) .c3-circle {
    stroke: #A99776;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(9) .c3-circle {
    stroke: #E7E3D7;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(10) .c3-circle {
    stroke: #32333B;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(11) .c3-circle {
    stroke: #858890;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(12) .c3-circle {
    stroke: #C8CBD3;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(13) .c3-circle {
    stroke: #7CAB50;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(14) .c3-circle {
    stroke: #95E04C;
}

.dataset-graph .graph .c3-chart-line:nth-of-type(15) .c3-circle {
    stroke: #BBE890;
}

.dataset-graph .graph .c3-circle._expanded_ {
    fill: #34343A !important;
}

.dataset-graph .graph .c3-zoom-rect {
    opacity: 1 !important;
    fill: #F7F7F9;
}

.dataset-graph.pie .graph .c3-zoom-rect {
    opacity: 0 !important;
}

.dataset-graph .graph .c3-chart-lines .c3-line {
    stroke-width: 0.25rem;
}

.dataset-graph .graph text {
    font-family: "maison_neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
}

.dataset-graph .graph .tick line, .dataset-graph .graph .domain {
    display: none;
}

.dataset-graph .dropdown {
    list-style: none;
    position: relative;
    letter-spacing: -0.08px;
    display: none;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
}

.dataset-graph .dropdown .current {
    display: block;
    padding: 0.4rem 1.6rem 0.4rem 0.6rem;
    border: 1px solid #34343A;
    border-radius: 5px;
    border: 1px solid #34343A;
    width: 10rem;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dataset-graph .dropdown .current::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.75rem);
    right: 0.6rem;
    width: 1rem;
    height: 1rem;
    position: absolute;
    background-image: url(../img/icons/dropdown.svg);
    background-size: contain;
    background-repeat: no-repeat;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.dataset-graph .dropdown.open .current::after {
    top: calc(50% - 0.25rem);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);

}

.dataset-graph .dropdown ul {
    list-style: none;
    display: none;
    position: absolute;
    z-index: 1;
    color: #fff;
    padding: 0.4rem 0.6rem;
    background: #34343A;
    border-radius: 5px;
    white-space: nowrap;
    right: 0;
    min-width: 100%;
    max-height: 50vh;
    overflow-y: auto;
}

.dataset-graph .dropdown ul li {
    cursor: pointer;
    padding: 0.2rem 0;
    -webkit-transition: color .15s ease-in-out;
    transition: color .15s ease-in-out;
}

.dataset-graph .dropdown ul li:hover, .dataset-graph .dropdown li.active {
    color: #C8CBD2;
}


.dataset-graph .dropdown.open ul {
    display: block;
}

.table {
  margin-top: 2rem;
  list-style: none;
}

.table li {
  border-top: 1px solid rgba(200, 203, 211, 0.5);
  padding: 1rem 0.1rem;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.table li span:first-child {
  padding: 0 1rem 0 0;
}

.table li span:nth-child(2) {
  text-align: right;
}

.table li:last-child {
  border-bottom: 1px solid rgba(200, 203, 211, 0.5);
}

/* search */
.cat-list {
    display: flex;
    flex-flow: column-reverse nowrap;
}

.cat-list .category {
    overflow: hidden;
    border-top: 1px solid rgba(200, 203, 211, 0.5);
    padding: 3rem 0;
}

.cat-list .num-datasets span {
    display: inline-block;
    padding: 1.4rem 0;
}

.cat-list .category > div {
    display: flex;
    flex-flow: row wrap;
}

.cat-list .category .title, .cat-list .category ul{
    flex-basis: 50%;
}

.cat-list .category .title {
    display: flex;
    flex-flow: row nowrap;
    align-self: self-start;
}

.cat-list .category .title .text {
    align-self: center;
}

.cat-list .category .title h4 {
    font-size: 2rem;
}

.cat-list .category .title span.icon {
    margin: 0 1rem 0 0;
}

.cat-list .category .title svg.icon {
    height: 4rem;
    width: auto;
}

.cat-list .category ul {
    list-style: none;
}

.cat-list .category ul li {
    padding: 0.5rem 0 0 0;
}

/* @media variation */
@media screen and (min-width: 320px) {
    html {
        /* calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width]))) */
        font-size: calc(16px + 2 * (100vw - 320px) / 880);
    }

    .header-module {
        font-size: calc(72px + 72 * (100vw - 320px) / 880);
    }

    .about, .main-categories-module .category-wrapper a, #category-overview-home .category .datasets a {
        font-size: calc(18px + 18 * (100vw - 320px) / 880);
    }

    .header-module.home {
        font-size: calc(36px + 36 * (100vw - 320px) / 880);
    }
}

@media screen and (min-width: 400px) {
    #logo .text {
        display: inline;
    }
}

@media screen and (min-width: 500px) {
    .main-categories-module .category-wrapper a:nth-child(2) {
        border-left: 1px solid #C8CBD2;
        border-right: 1px solid #C8CBD2;
    }
}

@media screen and (min-width: 700px) {
    nav#main-menu > ul > li.search .submenu {
        width: calc(100vw - 24rem);
    }

    .ui-menu.ui-autocomplete.header {
        width: calc(100vw - 24rem) !important;
    }
}


@media screen and (min-width: 900px) {
    .default-padding {
        padding: 0 5rem;
    }

    .ui-menu.ui-autocomplete.default {
        width: calc(100% - 10rem) !important;
        left: 5rem !important;
    }
}

@media screen and (min-width: 1200px) {
    html {
        font-size: 18px;
    }

    .default-padding {
        padding: 0 10rem;
    }

    .ui-menu.ui-autocomplete.default {
        width: calc(100% - 20rem) !important;
        left: 10rem !important;
    }

    .header-module {
        font-size: 144px;
    }

    .about, .main-categories-module .category-wrapper a, #category-overview-home .category .datasets a {
        font-size: 36px;
    }

    .header-module.home {
        font-size: 72px;
    }
}