@font-face {
	font-family: "TiemposText";
	src: url('../fonts/TiemposTextWeb-Regular.ttf');
}
@font-face {
	font-family: "TiemposText";
    src: url('../fonts/TiemposTextWeb-RegularItalic.ttf');
    font-style: italic;
}
@font-face {
	font-family: "Calibre";
    src: url('../fonts/calibre-medium-webfont.ttf');
}
@font-face {
	  /* support for unicode arrows
		from https://unicode-table.com/en/blocks/miscellaneous-symbols-and-arrows/ */
    font-family: 'u2800';
    src: url("../fonts/u/u2800.eot");
    src: url("../fonts/u/u2800.eot?#iefix") format("embedded-opentype"),url("../fonts/u/u2800.woff") format("woff"),url("../fonts/u/u2800.ttf") format("truetype"),url("../fonts/u/u2800.svg#universaliaregular") format("svg");
    font-weight: normal;
    font-style: normal;
}

.wrapper {
    width: 100%;
    box-sizing: border-box;
}

.site-header {
    border: none;
    font-family: "Calibre";
}

body {
  counter-reset: imgcounter;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Calibre";
}

.site-header .wrapper {
    display: flex;
    flex-direction: row;
    padding-top: 30px;
}

.site-header nav {
    margin-left: auto;
}

.site-title {
    display: flex;
    flex-direction: row;
}

.site-title img {
    width: 200px;
}

.site-title img.dcs-logo {
    width: 220px;
    margin-left: 25px;
    padding-left: 25px;
    border-left: 0.5px solid black;
}

.hero {
    margin-top: 30px;
    background-color: #F2F8FF;
}

.hero .wrapper {
    padding: 60px 15px;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position-x: right;
    background-position-y: bottom;
}

.hero-inner {
    outline: 1px solid black;
    background-color: white;
    padding: 30px;
    font-family: Verdana;
    font-size: 11pt;
    line-height: 1.5;
    width: 40%;
    min-width: 550px;
}

@media screen and (max-width: 700px) {

    .hero .wrapper {
        padding: 75px 15px 15px 15px;
    }

    .hero-inner {
        width: auto;
        min-width: auto;
        font-size: 11pt;
    }
}

@media screen and (max-width: 600px) {
    .site-nav {
        top: 35px;
    }

    .dcs-logo {
        display: none;
    }
}

@media screen and (max-width: 490px) {
    .hero-inner {
        font-size: 11pt;
    }
}

footer.site-footer {
    background-color: #eeeeee;
    color: #444444;
    border: none;
    margin-top: 60px;
}

footer .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

footer .footer-left img {
    width: 200px;
}

footer .footer-right {
    margin-left: auto;
    color: #444444;
    font-size: 12pt;
    font-family: "Calibre";
    line-height: 1.5;    
    display: flex;
    flex-direction: column;
}

footer .footer-right img {
    width: 250px;
    margin-bottom: 15px;
}

footer .footer-right p {
    margin-top: 0;
    margin-bottom: 0;
}

footer .footer-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

footer .footer-nav a {
    font-size: 12pt;
    color: #444444;
    font-family: "Calibre";
    margin-right: 9px;
}

@media screen and (max-width: 700px) {

    footer .footer-container {
        flex-direction: column;
    }

    footer .footer-right {
        margin-left: 0;
        margin-top: 30px;
    }
}

article {
    line-height: 1.8;
}

.post-header {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 30px 0 20px 0;
    background-color: #eeeeee;
}

.post-header h1 {
    margin-bottom: 0;
}

.post-pretitle {
    font-family: "Calibre";
    text-transform: uppercase;
}

nav.site-nav {
    line-height: 1;
    align-self: flex-end;
}


.fancy-text::after {
    content: '>';
    font-size: 80%;
    margin-left: 7px;
}

.hero-buttons {
    margin-top: -15px;
    margin-bottom: 0;
}

h2.category-header {
    text-align: left;
    font-size: 22pt;
    margin-bottom: 0;
    padding-top: 30px;
}

h2.category-header a {
    color: #00204e;
}

a.btn {
    display: inline-block;
    padding: 5px 10px 5px 10px;
    line-height: 1;
    font-size: 12pt;
    background-color: #00204e;
    color: white;
    margin: 15px 10px 0 0;
    font-family: "Calibre";
}

@media screen and (max-width: 384px) {
    a.btn {
        font-size: 11pt;
    }
}


a.btn:visited {
    color: white;
}

.publications-list {
    width: 100%;
}

.publication-container {
    padding: 30px 30px 15px 30px;
    outline: 1px solid black;
    box-sizing: border-box;
}

.publication-container  .pretitle {
    font-family: "Calibre";
    text-transform: uppercase;
    font-size: 12pt;
}

.publication {
    margin-bottom: 15px;
}

.publication .title {
    font-size: 12pt;
    font-weight: bold;
    color: dark-blue;
    
}

.publication .authors {
    font-size: 11pt;
}

.publication .journal {
    font-style: italic;
}

.publication .citation-content {
    background-color: #eef;
    display: none;
}

.publication .citation-show {
    font-size: 12pt;
    font-family: "Calibre";
    cursor: pointer;
}

.publication .citation-show::before {
    content: '\2bc8';
    margin-right: 4px;
    margin-top: 2px;
    font-family: sans-serif, u2800;
}

.publication.open .citation-show::before {
    content: '\2bc6';
    margin-right: 4px;
}

.publication.open .citation-content {
    display: block;
}

/* research listing  */

.research-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 -15px 15px -15px;
}

.research-list a {
    display: flex;
}

.research-list a:hover {
    text-decoration: none;
}

@media screen and (max-width: 1000px) {

    .research-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 700px) {

    .research-list {
        display: grid;
        grid-template-columns: 1fr;
    }

}

.research-item {
    outline: 1px solid black;
    font-size: 12pt;
    margin: 15px;
    color: black;
    background-color: white;
}

.research-more-papers {
    outline: 1px solid black;
    font-size: 12pt;
    margin: 15px;
    color: black;
    background-color: white;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    font-size: 20pt;
    font-family: "Calibre";
    width: 100%;
}

a:hover .research-item {
    background-color: #eeeeee;
}

.research-item .title, .research-item .pretitle {
    margin: 0 30px;
    font-family: "Calibre";
    line-height: 1.3;
}

.research-item .title {
    font-size: 22pt;
}

.research-item .pretitle {
    color: #777777;
    font-size: 13pt;
    text-transform: uppercase;
    margin-top: 30px;
}

.research-item .image {
    background-color: #9db5d6;
    background-size: cover;
    background-position: center;
    height: 150px;
}

.research-item .caption {
    font-family: Verdana;
    color: #444444;
    padding: 8px 30px 30px 30px ;
}

/* about at bottom */

.site-about {
    background-color: #4977b8;
    padding: 30px 0 30px 0;
    margin-top: 30px;
    color: white;
}

.site-about .wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.site-about .blurb {
    font-size: 12pt;
    width: 60%;
}

.site-about .links {
    border-left: 0.5px solid white;
    margin-left: 60px;
    padding-left: 60px;
    font-size: 12pt;
}

.site-about .links a {
    color: white;
    text-decoration: underline;
}

.site-about .links > a {
    display: block;
    padding: 15px 0;
}

@media screen and (max-width: 700px) {

    .site-about {
        padding: 45px 0 30px 0;
    }

    .site-about .wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-about .blurb {
        font-size: 16pt;
        width: auto;
    }


    .site-about .links {

        border-left: none;
        border-top: 0.5px solid white;
        margin-left: 0;
        padding-left: 0;
        padding-right: 60px;
        padding-top: 15px;
        margin-top: 30px;
    }
}

.site-about .social-media-list {
    font-size: 70%;
}

/* blog */

.blog-post-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.blog-post-content > * {
    width: 100%;
    max-width: 700px;
}


@media screen and (max-width: 1000px) {

    .blog-post-content > * {
        max-width: auto;
    }
  }

.post-header .dt-published,
.post-header .author {
    font-family: "Calibre";
}

.post-header .bullet {
	margin: 0 10px;
}
.post-header .bullet::before {
	content: "•";
}

.post-header.post-type-blog {
    background-color: #00204e;
    color: white;
}

.post-header.page-people {
    background-color: #7beac2;
}

.post-header.page-research {
    background-color: #ca003f;
    /*background-color: #f17d80;*/
    /*background-color: #f8e1b4;*/
    color: white;
}

.post-header.has-image {
    background-size: cover, cover;
    background-position: center, center;
    padding-top: 130px;
}

figure {
    width: 100%;
}

figure img {
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure figcaption {
    border: 1px dotted gray;
    text-align: center;
		margin-top: 10px;
}

figure figcaption::before {
  counter-increment: imgcounter;
  content: "Figure " counter(imgcounter) ": ";
}

.post-meta {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 15px;
}

.post-meta .tag {
	background-color: #e3e3e3;
	padding: 3px 7px;
	margin-right: 3px;
}

/* Table stuff mostly from latex-css */

table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  border-top: 2.27px solid black;
  border-bottom: 2.27px solid black;
}
/* add bottom border on column table headings  */
table tr > th[scope='col'] {
  border-bottom: 1.36px solid black;
}
/* add right border on row table headings  */
table tr > th[scope='row'] {
  border-right: 1.36px solid black;
}
table > tbody > tr:first-child > td,
table > tbody > tr:first-child > th {
  border-top: 1.36px solid black;
}
table > tbody > tr:last-child > td,
table > tbody > tr:last-child > th {
  border-bottom: 1.36px solid black;
}

th,
td {
  text-align: left;
  padding: 0.5rem;
  line-height: 1.1;
}

@media screen and (max-width: 700px) {
    .post-meta {
        flex-direction: column;
    }
  }

.post-meta > div {
    margin-right: 30px;
    margin-bottom: 15px;
}

.post-meta .meta-title {
    font-family: "Calibre";
    font-size: 12pt;
    color: #444444;
    text-transform: uppercase;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 -15px 15px -15px;
}

.blog-list.blog-list-compact {
    margin-top: -15px;
    grid-template-columns: 1fr 1fr 1fr;
}



@media screen and (max-width: 1000px) {

    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-list.blog-list-compact {
        grid-template-columns: 1fr;
    }
}

.blog-list a {
    display: flex;
}

.blog-list a:hover {
    text-decoration: none;
}

.blog-post {
    outline: 1px solid black;
    font-size: 12pt;
    margin: 20px;
    color: black;
    flex: 1;
    padding: 30px;
    box-shadow: 0px 0px 6px #444;
}

a:hover .blog-post {
    background-color: #eeeeee;
}

.blog-post time {
    color: #444444;
    font-family: "Calibre";
    font-size: 12pt;

}

.blog-post .excerpt {
    color: #444444;
    font-family: "Verdana";
    font-size: 12pt;
    margin-top: 8px;
}

.blog-post .title {
    font-family: "Calibre";
    font-size: 22pt;
    line-height: 1.2;
}


.blog-list.blog-list-compact .title {
    font-size: 18pt;
}

.blog-list.blog-list-compact .excerpt {
    display: none;
}

/* people */

.people-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0 -15px 15px -15px;
    grid-auto-rows: 1fr;
}

.people-list.people-list-compact {
    /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr; */
}


@media screen and (max-width: 1000px) {

    .people-list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .people-list.people-list-compact {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 700px) {

    .people-list {
        grid-template-columns: 1fr;
    }

    .people-list.people-list-compact {
        grid-template-columns: 1fr 1fr;
    }
}

.person {
    outline: 1px solid black;
    font-size: 12pt;
    margin: 15px;
    color: black;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 11pt;
    max-width: 300px;
    box-shadow: 0px 0px 7px #444;
}

.people-list-compact .person {
    max-width: 250px;
}

.person .image {
    background-color: #eeeeee;
    width: auto;
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
}

.person .content {

    padding: 13px 5px 30px 15px;
}

.person .name {

    font-family: "Calibre";
    font-size: 18pt;
}

.people-list-compact .person .name {
    font-size: 14pt;
}

.person a.name-link {
    /* color: black; */
}  

.person .name i {
    font-size: 40%;
    margin-left: 7px;
}

.person .social-media-list i {
    color: #444444;
    margin-right: 7px;
}

.blurb {
    font-size: 11pt;
    color: #444444;
    margin-bottom: 10px;
}

.home-research {
    /*background-color: #ca003f;*/
    /*background-color: #f17d80;*/
    /*background-color: #f9caa7;*/
    /*background-color: #96ceb4;*/
    /*background-color: #5f9da1;*/
    /* background-color: #556a6d;
    color: white; */
}

/* .home-research a, .home-research h2 a {
    color: white;
} */

.home-research h2.category-header {
    padding-top: 0;
    margin-bottom: -15px;
}

.home-research .publications-list {
    margin: 30px 0;
    line-height: 1.8;
}

.home-research .more-research-link {
    margin: 30px 0;
    font-family: "Calibre";
    font-size: 14pt;
    color: #111;
}

.research-link .desc {
    font-size: 80%;
    color: #444444;
}

.research-bloglist-heading {
	margin-bottom: -20px;
}

.dataset-file-list {
    font-family: monospace;
}

.dataset-sample {
    word-wrap: break-word;
    background: rgb(162, 203, 229);
    font-family: monospace;
}

.people-list-compact .person .image {
    width: 100%;
    height: 0;
}

.people-list-compact .person .content {
    padding: 5px 15px;
}

.people-list-compact .person .name {
    margin-top: 8px;
}

.people-list-compact .social-media-list {
    display: none;
}

/*
 * "Special" blog posts
 */

.special-header {
    background: linear-gradient(to right, #8e015233, rgba(255, 255, 255, 0), #27641933), 
        url('/assets/blog_reddit/hero.png'), #555555;
    background-position: center;
    background-size: cover;
    color: white;
    height: 500px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    align-items: flex-end;

    width:100%;
    max-width: 900px;
    margin-top: 30px;
    margin-right: auto;
    margin-left: auto;

    box-sizing: border-box;
}

.special-header > div {
    width: 50%;
    padding: 15px;
}
.special-header > div.right {
    text-align: right;
}
.special-header > div > div {
    padding: 5px 15px;
    background-color: black;
    color: white;
    font-size: 15pt;
    font-weight: bold;
    display: inline-block;
}

.special-header > div > div.old {
    background-color: #276419;
}
.special-header > div > div.young {
    background-color: #8e0152;
}

.special-hero-caption {
    color: #696969;
    text-align: right;
    font-size: 11pt;
    margin-top: 5px;
}

.special-logo-wrapper {
    width: 100%;
    background-color: black;
}

.special-logo {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.special-logo img {
    width: 150px;
}

.special-title h1 {
    margin-top: 30px;
    font-size: 45pt;
    line-height: 1;
}

.special-title .subtitle {
    font-size: 18pt;
}

.special > *, .dramatic-title > h2 {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 30px;
    padding-left: 30px;
}


@media only screen and (max-width: 1050px) {

    .special > * {
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    .special-header {
        max-width: none;
        width: auto;
        margin: 15px;
    }
}


@media only screen and (max-width: 700px) {
    .special-header {
        height: 300px;
    }
}

.special p.lede {
    font-size: 18pt;
    margin-top: 30px;
    margin-bottom: 30px;
}

.special-meta {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    font-size: 14pt;
}

.special-author {
    color: #444444;
    margin-top: 15px;
    margin-bottom: 30px;
}

.special-infobox {
    float: right;
    display: flex;
    border-radius: 3px;
    flex-direction: column;
    padding: 0;
    width: 300px;
    margin-left: 15px;
    margin-bottom: 15px;
}

.special-infobox > a {
    display: block;
    padding: 0;
    margin-bottom: 15px;
    font-size: 11pt;
}

.special-links a {
    margin-bottom: 5px;
    display: inline-block;

}

.special-end-links {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-top: 60px;
}

.special-end-links a {
    display: block;
    border: 1px solid #bbd3f6;
    border-radius: 3px;
    padding: 15px;
    font-size: 13pt;
    margin-bottom: 30px;
}

.dramatic {
    max-width: none;
    background-color: #020019;
    color: white;

    position: relative;
    display: flex;
    flex-direction: row;

    margin-bottom: 30px;

    box-sizing: border-box;
}

.dramatic.dramatic-light {
    background-color: #edf2f8;
    color: black;
}

.dramatic-title {
    margin-top: 30px;
    background-color: #020019;
    color: white;
    padding-top: 60px;
    max-width: none;
    box-sizing: border-box;
}

.dramatic-title h2 {
    font-size: 24pt;
    margin-top: 0;
    margin-bottom: 0;
}


@media only screen and (max-width: 1050px) {

    .special-title h1 {
        font-size: 35pt;
    }

    .dramatic-title h2 {
        font-size: 18pt;
        padding: 0;
        margin: 0;
    }
}

.dramatic-title.dramatic-light {
    background-color: #edf2f8;
    color: black;
}

.dramatic .hidebox {
    position: absolute;
    background-color: #020019;

    transition:visibility 0.3s linear,opacity 0.3s linear;
    opacity: 1;
}


.dramatic.dramatic-light .hidebox {
    background-color: #edf2f8;
}

.dramatic.step-1 .pre-step-1 {
    visibility: hidden;
    opacity: 0;
}

.dramatic.step-2 .pre-step-2 {
    visibility: hidden;
    opacity: 0;
}

.dramatic-left {
    margin-left: auto;
    width: 50%;
    max-width: 700px;
    margin-top: 100px;
    margin-bottom: 200px;
}

.dramatic-content {
    position: sticky;
    top: calc(50% - 350px);
    height: 700px;

}

.dramatic-content > div {
    transform: translate(-40%, -50%) scale(1.2);
    position: absolute;
    top: 50%;
    left: 50%;
}

@media only screen and (max-width: 1300px) {
    .dramatic-content > div {
        transform: translate(-40%, -50%);
    }
}

.dramatic-modules {
    margin-top: 150px;
    padding-bottom: 350px;
    width: 50%;
    z-index: 1;
}

.dramatic-module {
    padding-top: 100px;
    padding-bottom: 150px;
    max-width: 600px;
    opacity: 0.5;
    transition:opacity 0.3s linear;
}

.dramatic-module:first-child {
    padding-top: 150px;
}

.dramatic-module.active {
    opacity: 1;
}


@media only screen and (max-width: 900px) {

    /* mobile dramatic */
    .dramatic {
        display: block;
    }

    .dramatic-left {
        width: 100%;
        position: sticky;
        top: 0;
        overflow: hidden;
        margin-top: 0;
        background: linear-gradient(#020019, #020019, #00000000);
    }
    .dramatic.dramatic-light .dramatic-left {
        background: linear-gradient(#edf2f8, #edf2f8, #00000000);
    }

    .dramatic-content {
        position: relative;
        height: 70vh;
    }

    .dramatic-content > div {
        transform: translate(-45%, -50%) scale(0.7);
    }

    .dramatic-right {
        width: 100%;
    }

    .dramatic-modules {
        width: 100%;
    }

    .dramatic-module {
        padding-bottom: 0;
        padding-top: 300px;
    }
}

.image-float-right {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

.image-full-width {
    display: block;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.inline-plot > iframe {
    max-width: 100vw;
}

.plot-buttons-container {
    text-align: center;
    margin-bottom: 15px;
}

.plot-buttons {
    border-radius: 4px;
    border: 1px solid #eeeeee;
    font-size: 13pt;
    font-family: 'Roboto';

    display:inline-flex;
    flex-direction: row;
    overflow: hidden;
}

.plot-buttons div {
    padding: 8px 15px;
    border-right: 1px solid #eeeeee;
    cursor: pointer;
}

.plot-buttons div:last-child {
    border-right: none;
}

.plot-buttons div.selected {
    background-color:#00204e;
    color: white;
}

/* socdim blog post specific */

.pole {
    display: inline-block;
    padding: 2px 6px;
    background-color: black;
    color: white;
    font-weight: bold;
}

.pole.left {
    background-color: #3b4cc0;
}
.pole.right {
    background-color: #b30426;
}
.pole.masc {
    background-color: #7f3b08;
}
.pole.femme {
    background-color: #2d004b;
}
.pole.old {
    background-color: #276419;
}
.pole.young {
    background-color: #8e0152;
}
.cohort {
    display: inline-block;
    padding: 2px 6px;
    background-color: black;
    color: white;
    font-weight: bold;
}
.cohort2012 {
    background-color: #fde725;
}
.cohort2013 {
    background-color: #a0da39;
}
.cohort2014 {
    background-color: #4ac16d;
}
.cohort2015 {
    background-color: #1fa187;
}
.cohort2016 {
    background-color: #277f8e;
}
.cohort2017 {
    background-color: #365c8d;
}
.cohort2018 {
    background-color: #46327e;
}





