:root {
    --global-font-family: "Arial Rounded MT Bold", Verdana, "Comic Sans MS", "Segoe Print", "Lucida Handwriting", "Apple Chancery", sans-serif;
    --display-font-family: "Permanent Marker", Inter, sans-serif;
    --global-font-color: #494e52;
    --global-muted-color: #6b7280;
    --global-link-color: #4d6fa3;
    --accent-color: #ca6f6f;
    --accent-dark: #b95f5f;
    --border-color: #d7dce0;
    --surface-muted: #f7f7f7;
    --masthead-width: 1280px;
    --content-width: 1440px;
    --max-width: var(--content-width);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 70px 0 0;
    background: #fff;
    color: var(--global-font-color);
    font-family: var(--global-font-family);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

a {
    color: var(--global-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

strong {
    color: #202124;
    font-weight: 800;
}

.masthead {
    position: fixed;
    top: 0;
    z-index: 20;
    height: 70px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e6e8eb;
    backdrop-filter: blur(10px);
}

.masthead__inner-wrap {
    height: 70px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1em;
}

.greedy-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.visible-links {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: clamp(28px, 3.2vw, 54px);
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.masthead__mobile-title {
    display: none;
}

.masthead__menu-item a {
    color: #727981;
    font-size: 1rem;
    font-weight: 900;
}

.masthead__menu-item--lg {
    min-width: max-content;
    padding-right: 3em;
}

.masthead__menu-item--lg a {
    color: #727981;
    font-size: 1.1rem;
    font-weight: 900;
}

.masthead__tools {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-width: max-content;
    margin-left: auto;
    padding-right: 3.3rem;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(202, 111, 111, 0.28);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 250, 248, 0.95);
    color: #9f4f2d;
    text-decoration: none !important;
}

.language-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.language-switch__item.is-active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(202, 111, 111, 0.28);
}

.theme-toggle {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    min-height: 32px;
    padding: 3px;
    border: 1px solid #dfe5eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #89919a;
    cursor: pointer;
}

.theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.theme-toggle__icon.is-active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(202, 111, 111, 0.24);
}

.accent-dot {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(202, 111, 111, 0.25);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--accent-color) 0 42%, transparent 44%),
        rgba(202, 111, 111, 0.09);
    box-shadow: inset 0 0 0 6px #fff, 0 3px 10px rgba(202, 111, 111, 0.14);
}

#main {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    column-gap: 44px;
    max-width: min(var(--max-width), calc(100vw - 48px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    padding-right: 2px;
}

.author__avatar img {
    display: block;
    width: 100%;
    max-width: 220px;
    border: 1px solid #e7eaee;
    border-radius: 50%;
    padding: 5px;
}

.author__name {
    margin: 18px 0 8px;
    color: #202124;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
}

.author__role,
.author__bio {
    margin: 0 0 10px;
    color: var(--global-muted-color);
    font-size: 0.82rem;
    line-height: 1.5;
}

.author__role {
    color: var(--accent-color);
    font-weight: 900;
}

.author__bio {
    margin: 16px 0 24px;
    color: #696f76;
    font-weight: 900;
}

.author__urls-wrapper .btn {
    display: none;
}

.author__urls {
    display: block;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.author__urls li {
    margin: 0 0 18px;
}

.author__urls a,
.author__urls span {
    display: inline-flex;
    align-items: center;
    color: #555c63;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.35;
}

.icon-pad-right {
    width: 1.45em;
    margin-right: 0.35em;
    color: var(--accent-color);
    text-align: center;
}

.icon-location,
.icon-school,
.icon-email {
    color: #d36f75;
}

.icon-wechat {
    color: #28b66f;
}

.icon-cv {
    color: #c86b42;
}

.icon-blog {
    color: #dc7c45;
}

.icon-scholar {
    color: #68b8ff;
}

.page {
    min-width: 0;
    max-width: none;
}

.main-heading {
    margin: 0 auto 20px;
    color: var(--accent-color);
    font-family: var(--display-font-family);
    font-size: clamp(1.65rem, 2.25vw, 2.55rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
}

.page p {
    margin: 0 0 22px;
    color: #4b5057;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.58;
}

.page h2 {
    margin: 40px 0 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e6e8eb;
    color: #202124;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.3;
}

#news,
#experience,
#publications,
#projects,
#awards,
#services {
    scroll-margin-top: 104px;
}

.status-banner {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0 0 20px;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid rgba(239, 184, 165, 0.85);
    border-radius: 9px;
    background: linear-gradient(135deg, #fff7f3 0%, #fff 68%);
    box-shadow: 0 8px 22px rgba(202, 111, 111, 0.12);
}

.status-banner::after {
    position: absolute;
    top: 8px;
    right: 14px;
    color: rgba(202, 111, 111, 0.18);
    content: attr(data-watermark);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.status-banner::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    content: "";
}

.status-banner__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(202, 111, 111, 0.28);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(202, 111, 111, 0.14);
    color: var(--accent-color);
    font-size: 1.25rem;
}

.status-banner__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    min-width: 0;
}

.status-banner__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.status-banner__badge,
.status-banner__season {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
}

.status-banner__badge {
    background: var(--accent-color);
    color: #fff;
}

.status-banner__season {
    border: 1px solid rgba(131, 161, 199, 0.36);
    background: rgba(131, 161, 199, 0.16);
    color: #4c6a94;
}

.status-banner__main {
    color: #202124;
    font-size: 1.04rem;
    font-weight: 760;
    line-height: 1.35;
}

.status-banner__meta {
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 14px;
}

.research-tag {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid rgba(131, 161, 199, 0.32);
    border-radius: 999px;
    background: rgba(131, 161, 199, 0.14);
    color: #4c6a94;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 8px 0 26px;
}

.home-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(202, 111, 111, 0.36);
    border-radius: 999px;
    color: #b95f3d !important;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.home-action:hover {
    background: rgba(202, 111, 111, 0.09);
}

.home-action--primary {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(202, 111, 111, 0.18);
}

.news-box {
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-muted);
    scrollbar-color: rgba(185, 95, 61, 0.45) rgba(255, 255, 255, 0.4);
    scrollbar-width: thin;
}

.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-list li {
    display: grid;
    grid-template-columns: 78px 1.35em minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-list li:last-child {
    margin-bottom: 0;
}

.news-date {
    color: var(--accent-color);
    font-weight: 400;
    font-style: italic;
}

.news-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.5em;
    margin-top: 1px;
    font-size: 1rem;
    line-height: 1.5;
}

.news-text {
    display: block;
    min-width: 0;
    color: #4b5057;
    font-size: 0.95rem;
    font-weight: 700;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.experience-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.experience-logo {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    margin-right: 20px;
    object-fit: contain;
}

.experience-info {
    color: #5f6368;
}

.experience-info strong {
    color: #202124;
    font-size: 1.05em;
}

.experience-info em,
.experience-info span {
    color: #777f89;
}

.pub-button {
    margin: 0 8px 12px 0;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pub-button:hover {
    background-color: #e0e0e0;
}

.pub-button.active {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: white;
}

.publication-note {
    margin: 0 0 14px;
    color: #777f89;
    font-size: 0.9rem;
}

.publication-view[hidden] {
    display: none !important;
}

.publication-card {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #5f6368;
    container-type: inline-size;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
    border-color: rgba(202, 111, 111, 0.32);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.publication-card.featured {
    z-index: 10;
    border-color: rgba(245, 187, 167, 0.84);
    background: #fff8f4;
    box-shadow: 0 6px 16px rgba(242, 166, 120, 0.12);
}

.pub-card-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
}

.pub-card-media {
    position: relative;
    flex: 0 0 clamp(280px, 38%, 390px);
    overflow: hidden;
    border-radius: 8px;
}

.pub-card-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.pub-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    row-gap: 7px;
    min-width: 0;
}

.pub-card-title {
    display: block;
    color: #202124;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.26;
}

.pub-card-authors {
    display: block;
    color: #6b7280;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.45;
}

.pub-card-summary {
    margin: 0;
    color: #68727f;
    font-size: 0.88rem;
    line-height: 1.48;
}

.pub-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
}

.pub-card-venue {
    color: #6f8caf;
    font-size: 0.77rem;
    font-style: italic;
    font-weight: 800;
    line-height: 1.35;
}

#full-publications {
    max-height: 380px;
    margin-bottom: 24px;
    padding-right: 8px;
    overflow-y: auto;
    scrollbar-color: rgba(185, 95, 61, 0.45) rgba(254, 245, 241, 0.7);
    scrollbar-width: thin;
}

.full-publication-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #5f6368;
    font-size: 15px;
    line-height: 1.55;
}

.full-publication-list li {
    margin-bottom: 14px;
}

.pub-list-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border: 1px solid rgba(245, 187, 167, 0.75);
    border-radius: 999px;
    background: #fef5f1;
    color: #b95f3d;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    vertical-align: 1px;
    white-space: nowrap;
}

.pub-list-title {
    color: #202124;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.pub-list-authors {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.pub-list-note {
    color: #c7774c;
    font-style: italic;
    font-weight: 650;
}

.project-card {
    margin-bottom: 20px;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #5f6368;
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-card strong {
    color: #202124;
}

.project-card i {
    color: #6b7280;
}

.simple-list {
    margin: 0;
    padding-left: 1.25rem;
}

.simple-list li {
    margin-bottom: 9px;
}

.page__footer {
    border-top: 1px solid #e6e8eb;
    background: #f7f7f7;
    color: #68727f;
    font-size: 0.85rem;
}

.page__footer-follow,
.page__footer-copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px 0;
}

.page__footer-copyright {
    padding-bottom: 18px;
}

.page__footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page__footer a {
    color: #4d6fa3;
}

@container (max-width: 760px) {
    .publication-card .pub-card-layout,
    .project-card .pub-card-layout {
        flex-direction: column;
        gap: 12px;
    }

    .publication-card .pub-card-media,
    .publication-card .pub-card-content {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    #main {
        display: block;
        max-width: min(860px, calc(100vw - 40px));
        padding-top: 30px;
    }

    .sidebar {
        position: static;
        max-height: none;
        margin-bottom: 32px;
        overflow: visible;
    }

    .author-profile {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .author__avatar img {
        max-width: 96px;
    }

    .author__content {
        min-width: 0;
    }

    .author__urls-wrapper {
        grid-column: 1 / -1;
    }

    .author__urls-wrapper .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 6px 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background: #fff;
        color: #34383d;
        font: inherit;
        font-size: 0.85rem;
        cursor: pointer;
    }

    .author__urls {
        display: none;
        max-width: 280px;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    }

    .author__urls-wrapper.is-open .author__urls {
        display: block;
    }
}

@media (max-width: 720px) {
    .masthead__inner-wrap {
        padding: 0 16px;
    }

    .visible-links {
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .masthead__menu-item a {
        font-size: 0.8rem;
    }

    .masthead__tools {
        display: none;
    }

    #main {
        max-width: calc(100vw - 28px);
    }

    .status-banner {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .status-banner__icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .status-banner__main {
        font-size: 0.98rem;
    }

    .home-action {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 118px;
    }

    .experience-card {
        align-items: flex-start;
    }

    .experience-logo {
        width: 52px;
        height: 52px;
        margin-right: 14px;
    }

    .publication-card,
    .project-card {
        padding: 8px;
    }

    .pub-card-layout {
        flex-direction: column;
    }

    .pub-card-media {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 1.75rem;
    }

    .author-profile {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .author__avatar img {
        max-width: 78px;
    }

    .news-list li {
        grid-template-columns: 54px 1.4em minmax(0, 1fr);
    }
}

/* Reference layout parity: mirrors the cloned reference theme + home.css sizing. */
body {
    padding: 70px 0 0;
    background-color: #fff;
    font-family: var(--global-font-family);
    font-size: 15px;
    line-height: 1.5;
}

.masthead {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.masthead__inner-wrap {
    height: 70px;
    max-width: var(--masthead-width);
    padding: 0 1em;
    font-size: 17px;
}

.greedy-nav {
    height: 100%;
    min-height: 0;
    gap: 0.8rem;
}

.visible-links {
    flex: 0 1 auto;
    gap: clamp(24px, 3vw, 48px);
    width: auto;
}

.masthead__menu-item a,
.masthead__menu-item--lg a {
    color: #727981;
    font-size: 1em;
    font-weight: 900;
    line-height: 1.15;
}

.masthead__menu-item--lg {
    min-width: max-content;
    padding-right: 3em;
}

.masthead__tools {
    flex: 0 0 auto;
    gap: 0.45rem;
    min-width: max-content;
    margin-left: auto;
    padding-right: 3.3rem;
}

.language-switch {
    gap: 0.08rem;
    padding: 0.18rem !important;
    background: rgba(202, 111, 111, 0.06);
    color: #6f767d !important;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1;
}

.language-switch__item {
    min-width: 2.1rem;
    min-height: 1.55rem;
    padding: 0 0.42rem;
}

.theme-toggle {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.08rem;
    min-height: 1.95rem;
    padding: 0.18rem !important;
    line-height: 1;
}

.theme-toggle__icon {
    min-width: 1.55rem;
    min-height: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
}

.accent-dot {
    width: 2.28rem;
    height: 2.28rem;
}

#main {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    column-gap: 44px;
    max-width: min(var(--content-width), calc(100vw - 48px));
    margin: 2em auto 0;
    padding: 0 0 72px;
}

.sidebar {
    position: sticky;
    top: 104px;
    grid-column: 1;
    width: 100%;
    max-height: none;
    height: calc(100vh - 118px);
    overflow-x: visible;
    overflow-y: auto;
    padding-top: 0;
    padding-right: 0;
}

.page {
    grid-column: 2;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.main-heading {
    margin: 0 auto 0.85em;
    color: #ca6f6f;
    font-family: "Permanent Marker", cursive;
    font-size: 1.75em;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.page p {
    margin: 0 0 1.3em;
    color: #4b5057;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.58;
}

.page h2 {
    margin: 2em 0 0.7em;
    padding-bottom: 0.5em;
    font-size: 1.35em;
    line-height: 1.3;
}

.sidebar .author__avatar img {
    aspect-ratio: 1 / 1;
    max-width: 175px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    padding: 5px;
}

.sidebar .author__name {
    margin: 10px 0 6px;
    color: #242424;
    font-family: var(--global-font-family);
    font-size: 1em;
    line-height: 1.2;
}

.author__role {
    margin: 0 0 10px;
    color: #ca6f6f;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.35;
}

.author__bio {
    margin: 10px 0 20px;
    color: #666;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.45;
}

.author__bio,
.author__urls,
.author__urls li,
.author__urls > li > a,
.author__urls > li > span {
    max-width: 100% !important;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}

.author__urls--academic {
    margin-top: 12px !important;
}

.author__urls--academic li {
    margin-bottom: 4px;
}

.author__urls--academic > li > a,
.author__urls--academic > li > span {
    display: grid !important;
    grid-template-columns: 1.25em minmax(0, 1fr);
    column-gap: 0.24em;
    align-items: center;
    margin-bottom: 6px;
    padding: 2px 2px 2px 1px;
    color: inherit !important;
    font-size: 1.1em;
    line-height: 1.35;
}

.author__urls--academic .icon-pad-right {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.25em !important;
    height: 1.25em !important;
    margin-right: 0;
    padding-right: 0 !important;
    font-size: 1.08em;
    line-height: 1;
    text-align: center;
}

#news,
#experience,
#publications,
#projects,
#awards,
#services {
    scroll-margin-top: 104px;
}

.status-banner {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 8px;
}

.status-banner::after {
    top: 8px;
    right: 14px;
    font-size: 42px;
    font-weight: 800;
}

.status-banner__icon {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
}

.status-banner__badge,
.status-banner__season {
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 700;
}

.status-banner__main {
    font-size: 1.04rem;
    font-weight: 760;
}

.status-banner__meta {
    font-size: 0.88rem;
    font-weight: 600;
}

.research-tags {
    gap: 8px;
    margin: -2px 0 14px;
}

.research-tag {
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 650;
}

.home-actions {
    gap: 9px;
    margin: 8px 0 26px;
}

.home-action {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 0.84rem;
    font-weight: 700;
}

.news-box {
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px 14px;
    border-radius: 10px;
}

.news-list li {
    grid-template-columns: 78px 1.35em minmax(0, 1fr);
    column-gap: 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    display: inline-block;
    font-weight: 400;
}

.news-emoji {
    width: 1.35em;
    height: 1.5em;
    margin-top: 1px;
    font-size: 1rem;
}

.news-text {
    font-size: 1em;
    font-weight: 600;
}

.experience-card,
.publication-card {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
}

.experience-card {
    padding: 16px;
    border-radius: 12px;
}

.project-card {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 8px;
}

.page__footer-follow,
.page__footer-copyright {
    max-width: var(--content-width);
}

@media (min-width: 1024px) and (max-width: 1320px) {
    #main {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
        column-gap: 56px;
    }
}

@media (min-width: 925px) and (max-width: 1023px) {
    #main {
        display: block;
        max-width: 860px;
    }

    #main .sidebar,
    #main .page {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #main .page {
        clear: both;
        display: block;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 1023px) {
    #main {
        margin-top: 2em;
        padding-bottom: 72px;
    }

    .sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .sidebar > div[itemscope] {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 18px;
        align-items: center;
    }

    .sidebar .author__avatar img {
        max-width: 72px;
    }

    .author__urls-wrapper {
        grid-column: 1 / -1;
    }
}

/* Light / dark mode, matching the reference site's data-theme approach. */
html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #111418;
    color: #d8dde3;
}

html[data-theme="dark"] .masthead {
    background: rgba(17, 20, 24, 0.96);
    border-bottom-color: #252b33;
}

html[data-theme="dark"] .masthead__menu-item a,
html[data-theme="dark"] .masthead__mobile-title,
html[data-theme="dark"] .greedy-nav a {
    color: #aeb7c2;
}

html[data-theme="dark"] .masthead__menu-item a:hover,
html[data-theme="dark"] .masthead__mobile-title:hover,
html[data-theme="dark"] .greedy-nav a:hover {
    color: #f0b3b3;
}

.theme-toggle:not(.is-dark) .theme-toggle__icon--sun,
.theme-toggle.is-dark .theme-toggle__icon--moon {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(202, 111, 111, 0.24);
}

html[data-theme="dark"] .language-switch,
html[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: #35404c;
    color: #aeb7c2;
}

html[data-theme="dark"] .language-switch__item,
html[data-theme="dark"] .theme-toggle__icon {
    color: #aeb7c2;
}

html[data-theme="dark"] .language-switch__item.is-active,
html[data-theme="dark"] .theme-toggle.is-dark .theme-toggle__icon--moon {
    background: #d37c7c;
    color: #111418;
}

html[data-theme="dark"] .theme-toggle:not(.is-dark) .theme-toggle__icon--sun {
    background: transparent;
    color: #aeb7c2;
    box-shadow: none;
}

html[data-theme="dark"] .accent-dot {
    border-color: rgba(226, 139, 139, 0.35);
    background:
        radial-gradient(circle at center, #d37c7c 0 42%, transparent 44%),
        rgba(211, 124, 124, 0.08);
    box-shadow: inset 0 0 0 6px #171b21, 0 3px 10px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .author__name,
html[data-theme="dark"] .page p,
html[data-theme="dark"] .simple-list,
html[data-theme="dark"] .experience-info {
    color: #d8dde3;
}

html[data-theme="dark"] .page h2,
html[data-theme="dark"] strong,
html[data-theme="dark"] .status-banner__main,
html[data-theme="dark"] .pub-card-title,
html[data-theme="dark"] .project-card strong,
html[data-theme="dark"] .pub-list-title {
    color: #eef2f6;
}

html[data-theme="dark"] a {
    color: #f0a0a0;
}

html[data-theme="dark"] .main-heading,
html[data-theme="dark"] .author__role {
    color: #e28b8b;
}

html[data-theme="dark"] .author__bio,
html[data-theme="dark"] .author__urls,
html[data-theme="dark"] .author__urls > li > a,
html[data-theme="dark"] .author__urls > li > span,
html[data-theme="dark"] .status-banner__meta,
html[data-theme="dark"] .news-text,
html[data-theme="dark"] .experience-info em,
html[data-theme="dark"] .experience-info span,
html[data-theme="dark"] .pub-card-authors,
html[data-theme="dark"] .pub-card-summary,
html[data-theme="dark"] .pub-list-authors,
html[data-theme="dark"] .full-publication-list {
    color: #b8c0ca !important;
}

html[data-theme="dark"] .news-box,
html[data-theme="dark"] .experience-card,
html[data-theme="dark"] .publication-card,
html[data-theme="dark"] .project-card {
    background: #171b21;
    border-color: #2b333d;
    box-shadow: none;
}

html[data-theme="dark"] .publication-card.featured {
    background: #211d1d;
    border-color: rgba(226, 139, 139, 0.45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .status-banner {
    background: linear-gradient(135deg, #201c20 0%, #171b21 72%);
    border-color: rgba(226, 139, 139, 0.38);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .status-banner::before,
html[data-theme="dark"] .status-banner__badge,
html[data-theme="dark"] .home-action--primary,
html[data-theme="dark"] .pub-button.active {
    background: #d37c7c;
    border-color: #d37c7c;
    color: #111418 !important;
}

html[data-theme="dark"] .status-banner::after {
    color: rgba(211, 124, 124, 0.14);
}

html[data-theme="dark"] .status-banner__icon {
    background: #242a32;
    border-color: rgba(211, 124, 124, 0.34);
    box-shadow: none;
}

html[data-theme="dark"] .status-banner__season,
html[data-theme="dark"] .research-tag {
    background: rgba(131, 161, 199, 0.16);
    border-color: rgba(131, 161, 199, 0.34);
    color: #b8cff0;
}

html[data-theme="dark"] .home-action,
html[data-theme="dark"] .pub-button {
    background: #171b21;
    border-color: rgba(211, 124, 124, 0.36);
    color: #f0b3b3 !important;
}

html[data-theme="dark"] .home-action:hover {
    background: rgba(211, 124, 124, 0.13);
    color: #ffd2d2 !important;
}

html[data-theme="dark"] .pub-list-badge {
    background: rgba(211, 124, 124, 0.14);
    border-color: rgba(211, 124, 124, 0.38);
    color: #f0b3b3;
}

html[data-theme="dark"] .page__footer {
    background: #0f1216;
    border-top-color: #252b33;
    color: #aeb7c2;
}

/* Reference mobile parity: keep the desktop clone, then reshape the narrow view. */
@media (max-width: 1023px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        padding-top: 70px;
        font-size: 14.5px;
    }

    .masthead {
        height: 70px;
    }

    .masthead__inner-wrap {
        height: 70px;
        padding: 0 18px;
    }

    .greedy-nav {
        min-width: 0;
    }

    .visible-links {
        gap: 22px;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .visible-links::-webkit-scrollbar {
        display: none;
    }

    .masthead__menu-item a,
    .masthead__menu-item--lg a {
        font-size: 0.98rem;
        line-height: 70px;
    }

    .masthead__tools {
        display: inline-flex;
        flex: 0 0 auto;
        gap: 8px;
        margin-left: 14px;
        padding-right: 0;
        min-width: max-content;
    }

    .language-switch,
    .theme-toggle,
    .accent-dot {
        transform: scale(0.88);
        transform-origin: center;
    }

    #main {
        display: block;
        max-width: min(860px, calc(100vw - 32px));
        margin-top: 1.65em;
        padding-bottom: 64px;
    }

    #main .sidebar,
    #main .page {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar {
        position: static !important;
        height: auto !important;
        max-height: none;
        margin-bottom: 30px;
        overflow: visible !important;
    }

    .sidebar > div[itemscope] {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 18px;
        align-items: center;
    }

    .sidebar .author__avatar {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 88px;
    }

    .sidebar .author__avatar img {
        width: 88px;
        max-width: 88px;
    }

    .sidebar .author__content {
        display: block !important;
        grid-column: 2;
        min-width: 0;
        padding: 0;
    }

    .sidebar .author__name {
        margin-bottom: 4px;
        font-size: 1.1rem;
        line-height: 1.18;
    }

    .author__role {
        margin-bottom: 6px;
        font-size: 0.86rem;
    }

    .author__bio {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.42;
    }

    .author__urls-wrapper {
        display: block !important;
        grid-column: 1 / -1;
        margin-top: 12px;
        width: 100%;
    }

    .author__urls-wrapper .btn {
        display: none !important;
    }

    .author__urls-wrapper .author__urls {
        display: grid !important;
        position: static !important;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 18px;
    }

    .author__urls--academic li {
        margin-bottom: 0;
    }

    .author__urls--academic > li > a,
    .author__urls--academic > li > span {
        min-height: 28px;
        margin-bottom: 0;
        padding: 2px 0;
        font-size: 0.94rem;
        line-height: 1.25;
    }

    .main-heading {
        margin: 0 auto 0.72em;
        font-size: 1.78rem;
        line-height: 1.18;
        text-align: center;
    }

    .status-banner {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 18px;
        padding: 10px 12px;
    }

    .status-banner::after {
        top: 8px;
        right: 10px;
        font-size: 34px;
    }

    .status-banner__icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .status-banner__main {
        font-size: 0.98rem;
        line-height: 1.28;
    }

    .status-banner__meta {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .research-tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .research-tag {
        padding: 4px 8px;
        font-size: 0.74rem;
    }

    .home-actions {
        gap: 7px;
        margin-bottom: 22px;
    }

    .home-action {
        flex: 1 1 128px;
        justify-content: center;
        min-height: 32px;
        min-width: 118px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .news-box,
    #full-publications {
        max-height: 260px;
        padding-right: 8px;
    }

    .experience-card {
        padding: 14px;
    }

    .experience-logo {
        width: 52px;
        height: 52px;
        margin-right: 14px;
    }

    .publication-card,
    .project-card {
        padding: 9px;
    }

    .pub-card-layout,
    .project-card .pub-card-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pub-card-media,
    .project-card .pub-card-media {
        flex-basis: auto;
        width: 100%;
    }

    .pub-card-image,
    .pub-card-media > img,
    .pub-card-media > video {
        width: 100%;
        height: auto;
    }

    .pub-card-content,
    .publication-card .pub-card-content,
    .project-card .pub-card-content {
        align-self: auto;
        width: 100%;
        row-gap: 6px;
    }

    .publication-card .pub-card-title {
        font-size: 0.96rem;
        line-height: 1.32;
    }

    .publication-card .pub-card-authors,
    .publication-card .pub-card-summary {
        font-size: 0.84rem;
        line-height: 1.52;
    }

    .publication-card .pub-card-venue {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .full-publication-list {
        padding-left: 1rem;
        font-size: 0.88rem;
    }

    .pub-list-badge {
        margin-bottom: 4px;
    }
}

@media (min-width: 925px) and (max-width: 1023px) {
    #main .sidebar {
        margin-bottom: 36px;
    }

    #main .sidebar > div[itemscope] {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 18px 34px;
    }

    #main .sidebar .author__avatar {
        width: 128px;
    }

    #main .sidebar .author__avatar img {
        width: 128px;
        max-width: 128px;
    }

    #main .author__urls-wrapper .author__urls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px 24px;
    }
}

@media (max-width: 720px) {
    body {
        padding-top: 106px;
    }

    .masthead {
        height: 106px;
    }

    .masthead__inner-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 54px 44px;
        align-items: center;
        height: 106px;
        padding: 0 14px;
    }

    .greedy-nav {
        display: contents;
    }

    .visible-links {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 18px;
        padding-bottom: 2px;
    }

    .masthead__mobile-title {
        display: block;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        margin-right: 0;
        overflow: hidden;
        color: #727981;
        font-size: 1.02rem;
        font-weight: 900;
        line-height: 54px;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-decoration: none;
    }

    .masthead__mobile-title:hover {
        color: #d37070;
        text-decoration: none;
    }

    .visible-links .masthead__menu-item--lg {
        display: none;
    }

    .masthead__menu-item:not(.masthead__menu-item--lg) a {
        font-size: 0.88rem;
        line-height: 42px;
    }

    .masthead__tools {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        gap: 5px;
        margin-left: 10px;
        padding-right: 0;
    }

    .language-switch,
    .theme-toggle {
        transform: scale(0.8);
    }

    .accent-dot {
        display: none;
    }

    #main {
        max-width: calc(100vw - 26px);
        margin-top: 1.35em;
    }

    .page p {
        line-height: 1.6;
    }

    .news-list li {
        grid-template-columns: 68px 1.25em minmax(0, 1fr);
        column-gap: 6px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 14px;
    }

    .masthead__inner-wrap {
        padding: 0 12px;
    }

    .visible-links {
        gap: 15px;
    }

    .masthead__mobile-title {
        font-size: 0.98rem;
    }

    .masthead__menu-item:not(.masthead__menu-item--lg) a {
        font-size: 0.82rem;
    }

    .sidebar > div[itemscope] {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 14px;
    }

    .sidebar .author__avatar {
        width: 64px;
    }

    .sidebar .author__avatar img {
        width: 64px;
        max-width: 64px;
    }

    .sidebar .author__name {
        font-size: 1rem;
    }

    .author__role,
    .author__bio {
        font-size: 0.8rem;
    }

    .author__urls-wrapper .author__urls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 8px;
    }

    .author__urls--academic > li > a,
    .author__urls--academic > li > span {
        font-size: 0.82rem;
        column-gap: 0.18em;
    }

    .main-heading {
        font-size: 1.48rem;
    }

    .status-banner {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 9px 10px;
    }

    .status-banner::after {
        font-size: 28px;
    }

    .status-banner__icon {
        width: 32px;
        height: 32px;
    }

    .status-banner__badge,
    .status-banner__season {
        padding: 3px 7px;
        font-size: 0.68rem;
    }

    .status-banner__main {
        font-size: 0.9rem;
    }

    .status-banner__meta {
        font-size: 0.72rem;
    }

    .news-box {
        padding: 8px 10px;
    }

    .news-list li {
        grid-template-columns: 58px 1.2em minmax(0, 1fr);
        font-size: 0.86rem;
    }

    .experience-card {
        padding: 12px;
    }

    .experience-logo {
        width: 46px;
        height: 46px;
        margin-right: 12px;
    }

    .publication-card .pub-card-title {
        font-size: 0.9rem;
    }

    .publication-card .pub-card-authors,
    .publication-card .pub-card-summary,
    .full-publication-list {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .author__urls-wrapper .author__urls {
        grid-template-columns: 1fr;
    }

    .home-action {
        flex-basis: 100%;
    }

    .news-list li {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .news-emoji {
        display: none;
    }
}
