html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background-color: #fdfdfd;
    color: #2c3c4c;
    margin: 0;
    font-size: 13px;
}

h1 {
    margin-bottom: 32px;
    font-size: 2.4em;
}

h2 {
    margin-top: 48px;
}

h1, h2 {
    color: #234;
}

h3, h4, h5 {
    color: #345;
}

h1, h2, h3, h4, h5, a, p, span, body, div {
    font-weight: normal;
    font-family: "Lato", Verdana, Helvetica, sans-serif;
}

/* ── Header ── */
.header {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 0px;
}

.header-div {
    border-bottom: #ddd 2px solid;
    padding-bottom: 16px;
}

.header-profile-picture,
.header-text {
    display: inline-block;
}

.header-name h1 {
    margin-top: 0;
    margin-bottom: 2px;
}

.header-subtitle {
    margin-bottom: 12px;
}

.header-profile-picture {
    width: 120px;
    height: 110px;
    margin-right: 16px;
    border-radius: 50%;
    background-image: url(files/headshot.jpg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    /* Fallback if no image yet */
    background-color: #e0e0e0;
}

/* ── Layout ── */
.content {
    max-width: 780px;
    padding-left: 16px;
    padding-right: 16px;
    margin: auto;
    margin-top: 30px;
}

.content.div {
    display: block;
    margin: auto;
}

/* ── Links ── */
a {
    color: #2471a3;
    text-decoration: none;
}

a:focus, a:hover {
    color: #f09228;
}

p {
    line-height: 1.5em;
}

/* ── Utility ── */
.nobreak {
    white-space: nowrap;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 15px;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

/* ── Rows (publications, projects) ── */
.row {
    box-sizing: border-box;
}

.row-media {
    display: block;
    float: left;
    width: 130px;
    height: 80px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* Fallback for missing images */
    background-color: #f0f0f0;
}

.row-text {
    display: block;
    float: left;
    margin-left: 12px;
    line-height: 1.5em;
    max-width: 598px;
}

.row-text span {
    line-height: inherit;
}

.clearfix {
    content: "";
    clear: both;
    display: table;
}

/* ── Research interests ── */
.interests {
    display: block;
}

.interest {
    display: inline-block;
    width: 246px;
    margin-right: 10px;
    vertical-align: top;
}

.interest-img-container {
    width: 100%;
    max-width: 246px;
    height: 140px;
    margin: auto;
    overflow: hidden;
    border-radius: 4px;
}

.interest-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.interest-text {
    display: block;
    margin: auto;
    width: 246px;
    margin-top: 8px;
}

/* ── Publications ── */
.publication {
    margin-bottom: 32px;
    padding-left: 8px;
}

.publication.highlight {
    background-color: #f7efd4;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 4px;
}

.publication-title {
    font-weight: bold;
}

/* ── Button-style links ── */
.btn {
    /* Inherits link color by default */
}

.btn-red {
    color: #c0392b;
}

.btn-red:hover {
    color: #f09228;
}

.btn-orange {
    color: #e67e22;
}

.btn-orange:hover {
    color: #f09228;
}

.btn-dark {
    color: #555;
}

.btn-dark:hover {
    color: #f09228;
}

/* ── Footer ── */
.footer {
    border-top: #ddd 2px solid;
    width: 100%;
    max-width: 780px;
    margin: auto;
}

.footer-content {
    color: #345;
    font-size: 10px;
    padding: 6px 0;
    max-width: 780px;
    margin: auto;
}

.footer-content a {
    color: #2471a3 !important;
    text-decoration: underline;
}

.footer-content a:hover {
    color: #f09228 !important;
}

/* ── Mobile / Responsive ── */
@media only screen and (max-width: 1150px) {
    .header-profile-picture,
    .header-text {
        display: block;
        margin: auto;
        text-align: center;
    }

    .header-profile-picture {
        margin-bottom: 12px;
        width: 140px;
        height: 140px;
    }

    body {
        font-size: 18px;
    }

    a.btn {
        font-size: 14px;
        padding: 2px 6px;
    }
}

@media only screen and (max-width: 1000px) {
    .publication {
        margin-bottom: 46px;
    }

    .publication .row-media {
        width: 260px;
        height: 130px;
        margin: auto;
        margin-bottom: 12px;
        display: block;
        float: none;
    }

    .publication .row-text {
        display: block;
        width: 100%;
        margin-left: 0;
        max-width: 100%;
    }

    .interest {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 24px auto;
    }

    .interest-img-container {
        max-width: 300px;
    }

    .interest-text {
        width: 100%;
        max-width: 300px;
    }
    
}
