html {
    overflow-y: scroll;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-weight: 300;
}
div.container {
    max-width: 550px;
    margin: 1rem auto 0 auto;
    padding: 10px 10px 50px 10px;
    font-size: 1.05rem;
    line-height: 1.4rem;
}
div.picture-container {
    text-align: center;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}
img {
    max-width: 250px;
}
@media (max-width: 768px) {
    img {
        max-width: 200px;
    }
}
a {
    color: #0000FF;
    text-decoration: none;
    transition: text-decoration 0.2s;
}
a:hover, a:active {
    text-decoration: underline;
}
p.name {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0;
}
p.name a{
    color: black;
    text-decoration: none;
}
p.nav {
    font-size: .95rem;
    text-align: center;
    margin-top: 0;
}
.active {
    color: black;
    text-decoration: none;
}
div.separator {
    height: 1rem;
}
.intro p {
    text-align: justify;
}
.papers-list {
    margin: 0;
    padding: 0;
}
.paper-item {
    margin-bottom: 20px;
    font-size: 1.04rem;
}
.paper-item a {
    color: #0000FF;
    font-weight: normal;
    text-decoration: none;
    font-size: 1.08rem;
    display: inline;
}
.paper-item a:hover, .paper-item a:active {
    text-decoration: underline;
}
.paper-details {
    margin-top: 4px;
    font-size: 1rem;
    line-height: 1.5;
}

.journal {
    font-weight: bold;
}

.project-org-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.project-org-link:hover {
    text-decoration: underline;
}

.paper-details .project-item {
    padding-left: 1.2rem;
    position: relative;
    margin: 0 0 0.3rem 0;
    line-height: 1.5;
}

.paper-details .project-item::before {
    content: "+";
    position: absolute;
    left: 0;
    color: #555;
    font-weight: bold;
}

.project-year {
    font-weight: bold;
}

/* Abstract toggle UI */
.abstract-row {
    margin-top: 8px;
}

.abstract-toggle {
    border: none;
    padding: 0!important;
    margin: 0;
    font-family: inherit;
    text-decoration: none;
    background: transparent;
    color: #000000;
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
    transition: background 250ms ease-in-out, transform 150ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1.05rem;
}

.abstract-toggle:hover {
    background: transparent;
}

.abstract-toggle:focus {
    outline: 1px solid transparent;
}

.abstract-toggle:hover,
.abstract-toggle:active {
    text-decoration: underline;
}

.abstract-content {
    margin-top: 8px;
    padding-left: 0;
    color: #222;
    line-height: 1.6;
    text-align: justify;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease-in-out, 
                opacity 0.4s ease-in-out,
                transform 0.4s ease-in-out;
}
.abstract-content.open {
    opacity: 1;
    transform: translateY(0);
}
.papers-block {
    margin-top: 32px;
}
.papers-block.other-interest .papers-title .papers-list .paper-item {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.other-interest-list {
    margin: 0;
    padding: 0;
}
.other-interest-item {
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}
.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
}

.profile-container .intro {
    flex: 1;
}

.profile-container .picture-container {
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .profile-container .picture-container {
        margin-bottom: 1rem;
    }
}

.top-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    margin-bottom: 2rem;
}

.profile-main, .profile-left, .profile-right {
    display: block;
    flex: none;
    text-align: initial;
    gap: 0;
    margin: 0;
}

.intro {
    margin-bottom: 2rem;
}

.intro .name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: left;
}

.profile-info p {
    margin: 0.3rem 0;
}

@media (max-width: 900px) {
    .intro .name {
        text-align: left;
    }
}

.intro-block {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    padding: 1.5rem 1rem 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.intro-block .name {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.main-content {
    max-width: 650px;
    margin: 0 auto;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    gap: 3rem;
}

.profile-left {
    flex: 2;
    font-size: 1.08rem;
    line-height: 1.6;
}

.profile-right {
    flex: 0 0 180px;
    max-width: 200px;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem;
    text-align: right;
    margin-top: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.profile-right .name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .profile-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile-right {
        text-align: left;
        max-width: 100%;
        margin-top: 0;
        position: static;
    }
}

.main-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 3rem;
}

.main-left {
    flex: 4;
    min-width: 0;
}

body {
    background: #fff;
    color: #222;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.08rem;
    margin: 0 0 0 10rem;
    padding: 0rem;
}

.banner img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    margin-bottom: 2.5rem;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    gap: 1.5rem;
    padding: 1.5rem 1rem 0 1rem;
}

.main-col {
    flex: 3;
    min-width: 0;
    max-width: 560px;
}

.side-col {
    flex: 1;
    min-width: 400px;
    max-width: 520px;
    margin-top: 0rem;
}

.side-info {
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.side-name {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

@media (max-width: 1100px) {
    .main-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .side-col, .side-info {
        text-align: left;
        max-width: 100%;
    }
}

.avatar-block {
    display: flex;
    justify-content: left;
    margin-bottom: 0.8rem;
}

.avatar-img {
    width: 100%;
    max-width: 560px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
}

/* Blog UI */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 900px) {
    .blog-list {
        gap: 16px;
    }
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s ease, transform 0.05s ease;
}

.post-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.post-card a.card-link {
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.post-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.post-title a {
    color: #111;
    text-decoration: none;
}

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

.post-meta {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.post-meta .dot::before {
    content: "·";
    margin: 0 6px;
    color: #999;
}

.post-summary {
    color: #333;
    margin: 6px 0 0 0;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    background: #f5f7ff;
    border: 1px solid #e6e9ff;
    color: #4656b8;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.82rem;
    margin-left: 6px;
}

.topic-badge {
    display: inline-block;
    background: #f6f6f6;
    color: #333;
    border: 1px solid #ececec;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.82rem;
    margin-right: 8px;
}

/* Filter chips */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 14px 0;
}

.filter-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    color: #333;
    font-size: 0.92rem;
    cursor: pointer;
    user-select: none;
}

.filter-chip.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Single post */
.post-header {
    margin-bottom: 12px;
}

.post-content {
    line-height: 1.8;
    color: #222;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 1.4em;
}

.post-content pre {
    background: #f6f8fa;
    border: 1px solid #eaeef2;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}

.post-content code {
    background: #f6f8fa;
    border: 1px solid #eaeef2;
    border-radius: 4px;
    padding: 0 4px;
}

.post-content blockquote {
    border-left: 3px solid #e0e0e0;
    margin: 0;
    padding: 6px 12px;
    color: #444;
    background: #fbfbfb;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Back links */
.back-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.back-link {
    display: inline-block;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    color: #111;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.95rem;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: none;
    background: #f0f0f0;
}

/* Collapsible lectures inside blog post content */
.post-content details {
    margin: 0 0 14px 0;
}

.post-content summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
}

/* Hide default disclosure marker (Chrome/Safari/Edge) */
.post-content summary::-webkit-details-marker {
    display: none;
}

/* Hide default marker (Firefox/standard) */
.post-content summary::marker {
    content: '';
}

/* Make the heading inline and non-breaking into a new block line */
.post-content summary h1,
.post-content summary h2,
.post-content summary h3,
.post-content summary h4,
.post-content summary h5,
.post-content summary h6 {
    display: inline;
    margin: 0;
}

/* Subtle affordance on hover */
.post-content summary:hover h1,
.post-content summary:hover h2,
.post-content summary:hover h3,
.post-content summary:hover h4,
.post-content summary:hover h5,
.post-content summary:hover h6 {
    text-decoration: underline;
}

/* Spacing between title and revealed content */
.post-content details[open] > summary + * {
    margin-top: 8px;
}