body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background: #333333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto 0 auto;
    min-height: 100vh;
    max-width: 1140px;
    background: white;  
}

.footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.footer > * {
    margin-right: 0.75rem;
}

.content {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: stretch;
    padding: 1rem;
}

.profile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 0 0;
    padding: 1rem;
}

.profile > :not(:last-child) {
    margin: 0 0 1.5rem 0;
}

.photo {
    width: 200px;
}

.name {
    text-align: center;
    white-space: nowrap;
}

.position {
    font-size: 0.9rem;
    text-align: center;
}

.contact-info {
    padding: 0;
    list-style-type: none;
}

.contact-info > li {
    margin-bottom: 1rem;
}

.contact-info a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
}

.contact-info a > i {
    width: 1rem;
    margin-right: 0.5rem;
    color: #333333;
    text-align: center;
}

.contact-info a:hover > span {
    text-decoration: underline;
}

.logo {
    display: block;
    width: 80%;
}

.logo img {
    display: block;
    height: 100%;
    width: 100%;
}

.main {
    flex: 1 0 300px;
    padding: 1rem;
}

.main > :first-child {
    margin-top: 0;
}

ol.cv-list,
ul.cv-list,
.cv-list > ol,
.cv-list > ul {
    padding: 0;
    list-style-type: none;
}

.cv-list .item-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #333333;
}

.cv-list .item-container:target {
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    background-color: #e5e5e5;
}

.cv-list .item-container > *:not(:last-child) {
    margin-bottom: 0.25rem;
}

.experience .job,
.education .title,
.publications .title,
.teaching .title {
    font-weight: bolder;
}

.experience .company,
.education .institution {
    font-weight: bold;
}

.experience .time-period > .time-present,
.education .time-period > .time-present {
    font-variant: small-caps;
}

.education .thesis > .thesis-title {
    font-style: italic;
}

.publications .authors {
    padding: 0;
    list-style-type: none;
}

.publications .authors > li {    
    display: inline;
    font-style: italic;
    white-space: nowrap;
}

.publications .authors li:not(:nth-last-child(2)):not(:last-child)::after {    
    content: ",";
    font-weight: normal;
}

.publications .authors li:not(:first-child):last-child::before {    
    content: "and ";
    font-weight: normal;
    white-space: normal;
}

.publications .authors > li.me {
    font-weight: bold;
}

.publications .links {
    display: flex;
}

.publications .links > * {
    display: inline;
    margin-inline-end: 0.5rem;
}

.teaching .semesters {
    padding: 0;
    list-style-type: none;
}

.teaching .semesters li {    
    display: inline;
    white-space: nowrap;
}

.teaching .semesters li:not(:last-child)::after {    
    content: ",";
}
