:root {
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --color-text: #111;
    --color-subtext: #555;
    --color-bg: #fff;
    --max-width: 800px;
    --spacing-section: 2rem;
    --spacing-item: 1.5rem;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    margin: 0 auto;
    padding: 2rem;
    max-width: var(--max-width);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    margin-top: var(--spacing-section);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.profile-image-placeholder {
    width: 240px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    overflow: visible;
    flex-shrink: 0;
    margin-left: 2rem;
}

.profile-image-placeholder img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    display: block; 
    border: 1px solid #ddd;
    background-color: #eee;
}

#img-placeholder-text {
    width: 180px;
    height: 240px;
    border: 1px solid #ddd;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Hide placeholder text if image is loaded (requires JS or just manual HTML update) 
   For now, we assume user will replace the whole div content or update src.
*/

ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}

li {
    margin-bottom: 0.3rem;
}

.entry {
    margin-bottom: var(--spacing-item);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.entry-sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--color-subtext);
    margin-bottom: 0.2rem;
    font-style: italic;
    flex-wrap: wrap;
}

.location, .date {
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.advisor {
    font-size: 0.95rem;
}

.authors {
    margin: 0.2rem 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    
    .profile-image-placeholder {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .entry-header, .entry-sub {
        flex-direction: column;
        align-items: flex-start;
    }

    .location, .date {
        margin-left: 0;
    }
}

