/* Publications page styling */

body.pub-page {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    background: #f5f5f5;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.pub-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.pub-page header {
    margin-bottom: 1.5rem;
}

.pub-page header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.pub-page header nav {
    font-size: 0.9rem;
}

.pub-page header nav a {
    color: #4a6fa5;
    text-decoration: none;
    margin-right: 1rem;
}

.pub-page header nav a:hover {
    text-decoration: underline;
}

/* Section headings */
.pub-page h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #4a6fa5;
    display: inline-block;
}

.section-clear {
    clear: both;
}

/* Year group headings (from jekyll-scholar group_by) */
.pub-page h2.bibliography {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.5rem 0 0.5rem 0;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

/* Publication cards — used by jekyll-scholar bibliography list */
.pub-page ul.bibliography {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pub-page ul.bibliography li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.15s;
}

.pub-page ul.bibliography li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Title */
.pub-page cite {
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a2e;
}

.pub-page .bibliography a {
    color: #4a6fa5;
    text-decoration: none;
}

.pub-page .bibliography a:hover {
    text-decoration: underline;
}

/* PDF link badge */
.pdf-link {
    font-size: 0.75rem;
    background: #edf2f7;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.3rem;
    white-space: nowrap;
}

.pdf-link a {
    color: #4a6fa5;
    font-weight: 500;
    text-decoration: none;
}

.pdf-link a:hover {
    text-decoration: underline;
}

/* Authors */
.pub-page .authors {
    display: block;
    font-size: 0.88rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* Venue */
.pub-page venue {
    display: block;
    font-size: 0.82rem;
    color: #718096;
    font-style: italic;
    margin-top: 0.1rem;
}

/* Projects page — cards for software projects */
.project-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.project-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
}

.project-list li i {
    font-weight: 500;
    color: #1a1a2e;
}

.project-list a {
    color: #4a6fa5;
    text-decoration: none;
}

.project-list a:hover {
    text-decoration: underline;
}

/* Blog post list */
.post-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.post-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.15s;
}

.post-list li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-list a {
    color: #4a6fa5;
    text-decoration: none;
}

.post-list a:hover {
    text-decoration: underline;
}

.post-title {
    font-weight: 500;
    font-size: 1.05rem;
    color: #1a1a2e;
}

.post-date {
    display: block;
    font-size: 0.82rem;
    color: #718096;
    margin-top: 0.2rem;
}

.post-excerpt {
    display: block;
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 0.3rem;
}

/* Blog footer */
.blog-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #718096;
    font-style: italic;
}

/* Homepage — profile header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.profile-photo {
    width: 140px;
    min-width: 80px;
    max-width: 140px;
    height: auto;
    border-radius: 6px;
}

.profile-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.profile-role,
.profile-affil,
.profile-contact
{
    display: block;
    font-size: 0.95rem;
    color: #4a5568;
}

.profile-quicklink {
    display: block;
    font-size: 0.88rem;
    color: #718096;
    margin-top: 0.35rem;
}


.profile-contact {
    font-size: 0.88rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Homepage — nav links */
.home-nav {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.home-nav a {
    margin-right: 1rem;
}

.nav-icon {
    height: 28px;
    vertical-align: middle;
}

/* Homepage — bio card */
.bio-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.bio-card p {
    margin: 0 0 0.75rem 0;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

/* Homepage — footer */
.home-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #718096;
}

/* Generic links */
.pub-page a {
    color: #4a6fa5;
    text-decoration: none;
}

.pub-page a:hover {
    text-decoration: underline;
}
