/* Reset
*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a { background-color: transparent; }

a:active,
a:hover { outline: 0; }

hr {
  box-sizing: content-box;
  height: 0; }

pre { overflow: auto; }

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em; }

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button { overflow: visible; }

button,
select {
  text-transform: none; }

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: not-allowed; }

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0; }

input {
  line-height: normal; }

optgroup {
  font-weight: bold; }

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 4px;
  line-height: 1;
  outline: 0; }

html {
  box-sizing: border-box;
}

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


/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 100%;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Typography
*/

@font-face {
    font-family: "Comme";
    font-weight: 400;
    font-style: normal;
    src: local("Comme"), url("/fonts/CommeSans/Comme-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Comme";
    font-weight: 300;
    font-style: normal;
    src: local("Comme Thin"), url("/fonts/CommeSans/Comme-Thin.ttf") format("truetype");
}

@font-face {
    font-family: "Comme";
    font-weight: 700;
    font-style: normal;
    src: local("Comme Bold"), url("/fonts/CommeSans/Comme-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Comme";
    font-weight: 500;
    font-style: normal;
    src: local("Comme Medium"), url("/fonts/CommeSans/Comme-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Comme Mono";
    font-weight: 400;
    font-style: normal;
    src: local("Comme Mono"), url("/fonts/CommeSans/CommeMono-Regular.ttf") format("truetype");
}

body {
    font-family: "Comme", DejaVu Sans, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

h1 {
    font-size: 2.25rem;    
    font-family: "Comme";
    font-weight: 300; 
    margin-bottom: 0.5rem;
}

h2 {  
    font-size: 1.85rem;      
    font-family: "Comme";
    font-weight: 300;  
    color: #888;
    margin-top: 0.625rem;
    margin-bottom: 0.375rem;
}

h3 {  
    font-size: 1.625rem;
    font-family: "Comme";
    font-weight: 500;    
    color: #888;
    margin-top: 0.625rem;
    margin-bottom: 0.1rem;
}

h4 {  
    font-size: 1.375rem; 
    font-family: "Comme";
    font-weight: 500;    
    color: #888;
    margin-top: 0.625rem;
    margin-bottom: 0.375rem;
}

h5 {  
    font-size: 0.8rem;    
    font-family: "Comme";
    font-weight: 700;	
    color: #aaa;
    text-transform: uppercase;
    margin-top: 0.375rem;
}

h6 {
    font-size: 0.7rem; 
    font-family: "Comme";
    font-weight: 500;
    text-transform: uppercase;
}

strong,
.footer li a {	
    font-family: "Comme";
    font-weight: 700;
}

.datafiles > .box span {
    font-family: "Comme Mono";	
}

.nav,
.footer,
small {
    font-size: 0.75rem;
}

code,
pre,
kbd {
    font-family: Consolas, "Liberation Mono", Courier, monospace;
    font-weight: normal;
    white-space: pre-wrap;
    word-wrap: normal;
    word-break: keep-all;
    background-color: #e6e6e6;
    padding: 0.125rem 0.3125rem 0.0625rem;
}

/* Colours
*/

body {
    background: #d8d6c9;
    color: #2c373a;
}

a {
    color: #de1b1b;
    text-decoration: none;
    outline: 0;
}

a:hover,
a:focus,
a:active {
    color: #c91313;
}


/* Helper classes
*/

.hide { display: none; }


/* Layout
*/

.row:before, .row:after,
.header:before, .header:after,
.nav:before, .nav:after,
.datafiles:before, .datafiles:after  {
    content: " ";
    display: table;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
}

.row:after,
.header:after
.nav:after,
.datafiles:after {
    clear: both;
}

.row > div {
    width: 96%;
    margin: 1rem auto;
}

.nav, .header, .row {
    background: #f7f8f2;
}

.nav > div {
    width: 96%;
    margin: 0 auto;
}

.nav li {
    text-transform: uppercase;
}

.nav > div > ul {
    text-align: right;
}

.nav li {
    display: inline-block;
}

.nav li a {
    display: block;
    padding: .75rem .5rem;
}

.header > div {
    width: 96%;
    clear: both;
    margin: 0 auto 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #b9bdc5;
}

.header a {
    display: block;
    width: 100%;
    color: #2c373a;
    padding: .5rem 0;
}

.header a:hover {
    color: #de1b1b;
}

.header h1 {
    line-height: 1;
    margin: 0;
}

.header h1 #sitename {
    font-size: 6.5vw;
    display: inline-block;
    vertical-align: bottom;
}

.header h1 #logo {
    display: inline-block;
    width: 20%;
    margin-right: 2%;
}

.header h1 #logo img {
    display: inline-block;
    width: 80%;
    height: auto;
    vertical-align: bottom;
}

.row .description {
    padding-top: 2rem;
}

.row .description p,
.row .description code {
    font-size: 0.875rem;
}

.row .main {
    padding-top: 1rem;
    margin-bottom: 2.5rem;
}

.description p,
.main .readme p,
.row .main p {
    margin-bottom: .75rem;
}

.row .main-dataset .readme ul,
.row .static-page ul  {
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-left: 0;
}

.row .main-dataset .readme ul li::before,
.row .static-page ul li::before {
    content: "— ";
    display: inline-block;
    padding-right: 0.45rem;
}

.row .main-dataset ul li,
.row .static-page ul li {
    margin-bottom: 0.45rem;
}

.search {
    padding: 0 0 1rem;
    position: relative;
}

#search {
    box-sizing: border-box;
    display: block;
    font-size: 1rem;
    font-family: "Comme";
    font-weight: 400;
    width: 100%;
    border: 2px solid #ccc;
    padding: 0.5em 0 0.5em 0.5em;
    border-radius: 4px;
}

    ::-webkit-input-placeholder { color: #969ba6; }
    ::-moz-placeholder          { color: #969ba6; }
    :-ms-input-placeholder      { color: #969ba6; }

#search:focus {
    color: #2c373a;
    border: 2px solid #de1b1b;
}

#spinner {
    display: inline;
    visibility: hidden;
    position: absolute;
    top: 0.5rem;
    right: 0.35rem;
    z-index: 100;
}

.notfound {
    display: none;
    padding-top: 1em;
}

/* homepage dataset list
*/

.datasets > li {
    border-top: 1px solid #b9bdc5;
    padding-bottom: 0.75rem;
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

    .datasets > li:nth-child(2) {
        margin-top: 0;
    }

.datasets > li a {
    display: block;
    color: #2c373a;
}

    .datasets > li a h3          { color: #de1b1b; }
    .datasets > li a span        { color: #2c373a; }
    .datasets > li a span.source { color: #969ba6; }


.datasets > li a:hover h3,
.datasets > li a:focus h3,
.datasets > li a:active h3 { color: #c91313; }

.datasets > li span {
    display: block;
}

.datasets > li span.source {
    display: block;
    font-size: 0.875rem;
    color: #969ba6;
}

/* dataset page
*/

.main-dataset .details h4:first-child {
    padding-top: 0;
}

.datafile-box {
    margin-top: 1rem;
}

.datafile-box + .datafile-box {
    margin-top: 0.25rem;
}

.datafile-fieldlist ul {
    margin-left: 0.75rem;
    font-size: 0.8rem;
}

.sources ul {
    margin-left: 0.75rem;
}

.readme h1.title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
}

.readme h2.subtitle {
    font-size: 0.9rem;
    font-family: "Comme";
    font-weight: 700;
    line-height: 1.3;
    color: #999;
    margin-bottom: 2rem;
}

.readme h1 {
    font-size: 1.5rem;
}

.readme h2 {
    font-size: 1.25rem;
    font-family: "Comme";
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 1rem;
}

.footer {
  background: #d8d6c9;
  padding-top: 1rem;
}

.footer h4 {
  margin-bottom: 1rem;
}

.footer h5 {
    color: #2c373a;
    margin-bottom: 1.75rem;
    text-transform: none;
}

.footer h5 a {
    display: inline-block;
    margin: 0 0.75rem;
    text-transform: uppercase;
}

.footer h5 img {
    display: inline-block;
    height: 18px;
    width: auto;
    vertical-align: bottom;
}

.footer li {
    margin: 1rem 1rem 0 0;
}

.footer ul img {
    display: inline-block;
    height: 32px;
    width: auto;
}

/* Forms -- contact form
*/

form {
    padding: 1.5rem 0;
}

form p {
    padding-top: 1rem;
    margin-bottom: 1rem;
}

form label {
    font-size: 0.875rem;
    font-family: "Comme Regular", DejaVu Sans, Arial, sans-serif;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

form input {
    display: block;
    width: 100%;
}

input[type="text"],
input[type="email"] {
    display: block;
    background-color: #fefefe;
    border: 1px solid #cacaca;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1) inset;
    box-sizing: border-box;
    color: #2c373a;
    display: block;
    font-size: 1rem;
    height: 2.4375rem;
    margin: 0.45rem 0 1rem;
    padding: 0.5rem;
    transition: box-shadow 0.5s ease 0s, border-color 0.25s ease-in-out 0s;
    width: 100%;
}


textarea {
  display: block;
  height: auto;
  min-height: 50px;
  border-radius: 4px;
  overflow: auto;
  background-color: #fefefe;
  border: 1px solid #cacaca;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1) inset;
  box-sizing: border-box;
  color: #2c373a;
  display: block;
  font-size: 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0.5rem;
  transition: box-shadow 0.5s ease 0s, border-color 0.25s ease-in-out 0s;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus  {
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 0 5px #cacaca;
    outline: medium none;
    transition: box-shadow 0.5s ease 0s, border-color 0.25s ease-in-out 0s;
}

.button {
    font-size: 0.875rem;
    font-family: "Comme", DejaVu Sans, Arial, sans-serif;
    font-weight: 500;
    line-height: 1;
    color: #2c373a;
    background-color: #cacaca;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.75rem 1rem;
    text-align: center;
    transition: background-color 0.25s ease-out 0s, color 0.25s ease-out 0s;
    vertical-align: middle;
}

.button:hover, .button:focus {
    background-color: #888;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */


@media only screen and (max-width: 480px) {

        .header > div {
            padding-bottom: 0;
        }
        .header h1 #logo { 
            width: 15%;
            margin-right: 1%;
        }
        .header h1 #logo img { 
            width: 100%;
        }
        .header h1 #sitename { 
            font-size: 8.5vw;
        }
        .row .description {
            padding-top: 0;
        }
}

@media only screen and (min-width: 480px) {

        .datafiles > ul {
                margin: 0 0 1.25rem;
        }
}


@media only screen and (min-width: 600px) {

        .row > div {
                width: 92%;
                margin: 1em auto;
        }

        .header > div {
                width: 92%;
                margin: 0 auto;
        }

        /*.header > div > a p {
                display: block;
                float: left;
                width: 20%;
                margin-right: 2%;
        }

        .header h1 {
                float: left;
        }*/

        .nav > div {
                width: 92%;
                margin: 0 auto;
        }

        .datafiles > ul {
                margin: 0 0 1.25rem;
        }

}


@media only screen and (min-width: 900px) {

        .row > div {
                width: 86%;
                margin: 1rem auto;
        }

        .header > div {
                width: 86%;
                margin: 0 auto;
        }

        /*.header > div > a img {
                display: inline-block;
                width: 20%;
                margin-right: 2%;
        }

        .header h1 {
                float: left;
                font-size: 6.5rem;
        }*/

        .nav > div {
                width: 86%;
                margin: 0 auto;
        }

        .nav > div > ul {
                float: right;
                width: 70%;
        }

        .header + .row > div {
                width: 86%;
                overflow: auto;
                clear: both;
                margin: 1rem auto 0;
                padding-bottom: 1.325rem;
        }

        .row > div > .description {
                float: left;
                width: 20%;
                margin-right: 2%;
        }

        .row div .main {
                float: left;
                width: 78%;
        }

        .row div .main-dataset {
                width: 100%;
        }
        /* Dataset page columns */

        .details {
                float: left;
                width: 30%;
                margin-right: 5%;
        }

        .readme {
                float: left;
                width: 65%;
        }

        .footer li {
                display: inline-block;
                margin: 0 1rem 0 0;
        }

        .footer li a {
                display: inline-block;
                padding: .5rem .25rem;
        }

}

