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 {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: 112px; height: 112px; margin-right: 16px; border-radius: 50%; background-image: url(files/profile.jpg); background-position: center; background-size: contain; background-repeat: no-repeat;}
.content {max-width: 780px; padding-left: 16px; padding-right: 16px; margin: auto; margin-top: 48px;}
.hr {width: 100%; height: 1px; margin: 48px 0; background-color: #d6dbdf;}
a {color: #2471a3; text-decoration: none;}
a:focus, a:hover {color: #f09228;}
p {line-height: 1.5em;}
.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;}
.bold {font-weight: bold;}
.italic {font-style: italic;}
.bulletpoints {line-height: 1.5em;}
.row {box-sizing: border-box;}
.row-media {display: block; float: left; width: 160px; height: 90px; background-position: center; background-size: contain; background-repeat: no-repeat;}
.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;}
.publication {margin-bottom: 32px; padding-left: 8px;}
.publication.highlight {background-color: #fff8df; width: 100%; padding-top: 8px; padding-bottom: 8px; border-radius: 4px;}
.press {width: 100px; height: 80px; border: 1px solid #def; margin-right: 12px; background-size: cover;}  
.img-contain {background-size: contain !important;}
.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;}
.stars {font-size: 10px; display: inline-block; margin-left: 6px; color: #666;}

@media only screen and (max-width: 1000px) {
    .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;}
    
    /* Fix centering for tablets and shorter publications */
    .row-text {
        max-width: 100%;
    }
    
    .publication {
        text-align: center;
    }
}

@media only screen and (max-width: 1000px) {
    /* Center section titles and subtitles */
    h2 {text-align: center;}
    
    /* Improve publication layout */
    .publication {
        margin-bottom: 0px; 
        padding: 16px; 
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .publication .row-media {
        width: 100%; 
        max-width: 300px; 
        height: 150px; 
        margin: 0 auto 16px auto; 
        display: block; 
        float: none;
    }
    .publication .row-text {
        display: block; 
        width: 100%; 
        margin-left: 0; 
        text-align: center;
        line-height: 1.3em;
    }
    
    /* Center publication title and improve spacing */
    .publication-title {
        display: block; 
        margin-bottom: 8px;
        line-height: 1.3em;
    }
    
    /* Ensure proper line breaks only where we have <br/> tags */
    .publication .row-text br {
        display: block;
        content: "";
        margin-bottom: 6px;
    }
    
    /* Keep all spans inline to avoid unwanted line breaks */
    .publication .row-text span {
        display: inline;
    }
    
    /* Center button groups with reduced line spacing */
    .publication .row-text > a.btn {
        margin: 1px 4px; 
        display: inline-block;
        line-height: 1.2em;
    }
    
    /* Adjust highlighted publications for mobile */
    .publication.highlight {
        padding: 20px 16px; 
        margin: 0px 0;
    }
    
    .press {display: block;}
}