@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #222;
}

/* Top navigation panel */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.site-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.nav-tabs a {
    margin-left: 1rem;
    text-decoration: none;
    color: #444;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.nav-tabs a:hover {
    border-bottom-color: #999;
}

.nav-tabs a.active {
    border-bottom-color: #000;
    font-weight: 600;
}

/* Left panel */
.left-panel {
    position: fixed;
    top: 56px; /* below top-nav */
    left: 0;
    bottom: 0;
    width: 320px;
    border-right: 1px solid #eee;
    background: #ffffff;
    padding: 1rem;
    overflow-y: auto;
}

.profile-photo img {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;   /* makes it circular */
    aspect-ratio: 1 / 1;  /* forces perfect square */
    object-fit: cover;    /* ensures image fills the circle */
    display: block;
    margin: 0 auto 0.75rem;
    background: #ddd;
}

.profile-info {
    text-align: left;
    margin-bottom: 1rem;
}
.profile-info p {
    font-size: 0.9rem;
    color: #555;
}
.profile-links ul {
    list-style: none;
}

.profile-links li + li {
    margin-top: 0.25rem;
}

.profile-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #0056b3;
}

.profile-links a:hover {
    text-decoration: underline;
}
/* Main content (right panel) */
.content {
    margin-top: 56px; /* height of top-nav */
    margin-left: 320px; /* width of left panel */
    padding: 1.5rem;
    min-height: calc(100vh - 56px);
}

.content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.content h2 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.content p {
    margin-bottom: 0.75rem;
}

.content ul,
.content ol {
    margin-left: 1.1rem;
    margin-bottom: 0.75rem;
}

#publications + ol > li + li,
#presentations + ol > li + li,
.projects-list > li + li {
    margin-top: 12px;
}
/* Responsive layout */
@media (max-width: 768px) {
    .left-panel {
        width: 200px;
    }
    .content {
        margin-left: 200px;
        padding: 1rem;
    }
}

/* Added for responsive navigation toggle */
.nav-tabs {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Small screens: turn nav into left drawer with toggle button */
@media (max-width: 600px) {
    .menu-toggle {
        display: inline-block;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .nav-tabs {
        position: fixed;
        top: 56px;
        left: 0;
        bottom: 0;
        width: 200px;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        background: #f5f5f5;
        border-right: 1px solid #ddd;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
        z-index: 1100;
    }

    body.nav-open .nav-tabs {
        transform: translateX(0);
    }

    .nav-tabs a {
        margin-left: 0;
        margin-bottom: 0.75rem;
    }
}

@media (min-width:1024px){
:root{
 --total-width:1300px;
 --left-width:320px;
}
.left-panel{
 left:calc(50% - var(--total-width)/2);
}
.content{
 margin-left:calc(50% - var(--total-width)/2 + var(--left-width));
 max-width:calc(var(--total-width) - var(--left-width));
}
}

@media (max-width: 600px) {
    .left-panel {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .profile-info {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }

    .profile-links {
        display: block;
        margin-top: 1rem;
        text-align: center;
    }

    .last-updated {
        display: block;
        margin-top: 1rem;
        text-align: center;
        font-size: 0.85rem;
        color: #666;
    }

    .content {
        margin-left: 0;
        margin-top: 0;
        padding: 1.25rem 1rem;
    }

    body {
        padding-top: 56px;
    }
}

/* Keep anchor headings visible below the fixed top navigation. */
#about, #research-projects, #publications {
    scroll-margin-top: 72px;
}

/* Terminal-style headings and navigation */
.site-title,
.profile-info h1,
.nav-tabs a,
.content h1,
.content h2 {
    font-family: 'JetBrains Mono', monospace;
}

/* Center the left-panel text and links */
.profile-info,
.profile-links,
.last-updated {
    text-align: center;
}
/* Shared research project diagrams */
.project-diagram {
    margin: 15px auto 10px;
    text-align: center;
}

.project-diagram img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.project-diagram figcaption {
    margin-top: 8px;
    text-align: center;
}

/* Only these two figures need custom sizing. */
.anner-workflow-figure,
.provenance-pipeline-figure {
    margin: 15px auto 10px;
    text-align: center;
}

.anner-workflow-figure img,
.provenance-pipeline-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

.anner-workflow-figure figcaption,
.provenance-pipeline-figure figcaption {
    margin-top: 8px;
    text-align: center;
}

.anner-workflow-figure img {
    max-width: min(100%, 560px);
    max-height: 290px;
}

.provenance-pipeline-figure img {
    max-width: min(100%, 700px);
    max-height: 340px;
}

/* AnNER review interface screenshot */
.anner-review-figure img {
    border: 2px solid #ddd;
    border-radius: 4px;
}

