/* ── Canvas (same fixed canvas on all pages) ── */
#ecoli-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ── Research ── */
.research-card {
    margin-bottom: 30px;
}

.research-card h2 {
    font-size: 1.8em;
    margin-bottom: 0.4em;
}

.research-card .status {
    display: inline-block;
    font-size: 0.85em;
    color: rgb(90, 90, 90);
    border: 1px solid rgb(160, 160, 160);
    padding: 2px 10px;
    border-radius: 2px;
    margin-bottom: 1.2em;
    font-style: italic;
}

.research-card p {
    line-height: 1.8;
    color: rgb(40, 40, 40);
    margin-bottom: 1em;
    font-size: 1.05em;
}

.research-card h3 {
    font-size: 1.15em;
    margin: 1.4em 0 0.5em;
    color: rgb(50, 50, 50);
}

/* ── Publications ── */
.publication {
    border-left: 2px solid rgb(160, 160, 160);
    padding-left: 22px;
    margin-bottom: 20px;
}

.publication .pub-title {
    display: block;
    font-size: 1.25em;
    margin-bottom: 0.35em;
    line-height: 1.4;
    color: black;
    text-decoration: underline transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.25s;
}

.publication .pub-title:hover {
    text-decoration-color: black;
}

.publication .pub-authors {
    font-style: italic;
    color: rgb(75, 75, 75);
    font-size: 0.95em;
    margin-bottom: 0.25em;
}

.publication .pub-journal {
    color: rgb(95, 95, 95);
    font-size: 0.95em;
    margin-bottom: 0.25em;
}

.publication .pub-doi {
    font-size: 0.85em;
    color: rgb(110, 110, 110);
    margin-bottom: 0.8em;
}

.publication .pub-abstract {
    margin-top: 0.8em;
    line-height: 1.75;
    color: rgb(55, 55, 55);
    font-size: 0.97em;
}

/* ── Awards & Volunteering ── */
.entry-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.entry-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0 28px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.entry-item:last-child {
    border-bottom: none;
}

.entry-item .entry-year {
    font-size: 0.9em;
    color: rgb(100, 100, 100);
    font-style: italic;
    padding-top: 3px;
}

.entry-item .entry-details h3 {
    font-size: 1.15em;
    margin-bottom: 0.2em;
}

.entry-item .entry-details .entry-org {
    font-size: 0.93em;
    color: rgb(80, 80, 80);
    font-style: italic;
    margin-bottom: 0.3em;
}

.entry-item .entry-details p {
    font-size: 0.95em;
    color: rgb(65, 65, 65);
    line-height: 1.65;
    margin-top: 0.3em;
}

/* ── CV & About ── */
.about-content {
    margin-bottom: 30px;
}

.about-content h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

.about-content p {
    font-size: 1.05em;
    line-height: 1.8;
    color: rgb(40, 40, 40);
    margin-bottom: 1em;
}

.cv-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.2em;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-content h2 {
    font-size: 1.8em;
    margin-bottom: 0;
}

.cv-link {
    font-size: 0.95em;
    font-style: italic;
    color: black;
    text-decoration: underline transparent;
    text-underline-offset: 3px;
    transition: color 0.25s, text-decoration-color 0.25s;
    white-space: nowrap;
}

.cv-link:hover {
    color: #5c8e56;
    text-decoration-color: #5c8e56;
}

.cv-link i {
    font-size: 0.85em;
}

.cv-embed-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cv-embed-wrapper iframe {
    width: 100%;
    max-width: 780px;
    height: 75vh;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* ── Mobile ── */
@media (max-width: 660px) {
    .research-card h2 {
        font-size: 1.5em;
    }

    .entry-item {
        grid-template-columns: 55px 1fr;
        gap: 0 16px;
    }

    .about-content h2,
    .cv-content h2 {
        font-size: 1.5em;
    }

    .cv-embed-wrapper iframe {
        height: 60vh;
    }
}

@media (max-width: 420px) {
    .entry-item {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .entry-item .entry-year {
        font-size: 0.82em;
    }
}
