/* Publications catalog and academic activities styles. */

/* These styles apply only to this page. */
body.publications-page {
    background: #080e19;
    color: #edf3ff;
    font-family: 'DM Sans', sans-serif;
}
.publications-page .navbar {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(8, 14, 25, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #203049;
}
.publications-page .nav-btn {
    min-width: 0;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: #a8b7cd;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
}
.publications-page .nav-btn:hover,
.publications-page .nav-btn[aria-current] {
    background: #15283a;
    border-color: #2c5865;
    color: #8debdc;
    transform: none;
}
.publications-page a:focus-visible,
.publications-page button:focus-visible,
.publications-page [tabindex]:focus-visible {
    outline: 2px solid #80e7d5;
    outline-offset: 5px;
}
.publications-page .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    transform: translateY(-180%);
    padding: 10px 16px;
    background: #fff;
    color: #080e19;
    z-index: 2000;
    border-radius: 8px;
}
.publications-page .skip-link:focus {
    transform: none;
}
.publications-page .project-hero {
    position: relative;
    max-width: 1180px;
    margin: 32px auto 0;
    padding: 58px 52px;
    overflow: hidden;
    border: 1px solid #273852;
    border-radius: 24px;
    background:
        linear-gradient(100deg, rgba(10, 22, 40, 0.97), rgba(10, 22, 40, 0.76)),
        url('../../assets/bg-images/bgpublications.png') center/cover;
}
.publications-page .project-hero::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -130px;
    top: -170px;
    border-radius: 50%;
    background: #47cbb5;
    filter: blur(110px);
    opacity: 0.15;
    pointer-events: none;
}
.publications-page .hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    position: relative;
    z-index: 1;
    padding-right: 300px;
}
.publications-page .eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #86dfce;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.publications-page .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #86dfce;
    border-radius: 50%;
}
.publications-page .project-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 66px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 16px 0;
}
.publications-page .hero-description {
    max-width: 540px;
    font-size: 15px;
    line-height: 1.8;
    color: #aebed3;
}
.publications-page .hero-avatar {
    position: absolute;
    right: -42px;
    bottom: -48px;
    width: 340px;
    height: 340px;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.4));
}
.publications-page .topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    list-style: none;
    padding: 0;
}
.publications-page .topic-list li {
    padding: 6px 11px;
    border: 1px solid #30425a;
    border-radius: 30px;
    color: #c0cee0;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.025);
}
.publications-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.publications-page .hero-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #345366;
    color: #dcf6f2;
    background: #153039;
}
.publications-page .hero-action.secondary {
    background: transparent;
    border-color: #30425a;
    color: #c0cee0;
}
.publications-page .explore-section {
    max-width: 1440px;
    margin: 38px auto 0;
    padding: 0 24px;
}
.publications-page .section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto 18px;
}
.publications-page .section-toolbar h2 {
    font-size: 19px;
    font-weight: 500;
    margin: 0 0 5px;
}
.publications-page .section-toolbar p {
    color: #8fa2bc;
    font-size: 12px;
    margin: 0;
}
.publications-page .sound-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #111f31;
    color: #bdcde0;
    border: 1px solid #2a3d56;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.publications-page .sound-button[aria-pressed='true'] {
    color: #8debdc;
    border-color: #3c8279;
}
.publications-page .galaxy-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #24354d;
    border-radius: 22px;
    background: radial-gradient(ellipse at 50% 45%, #112b3e 0%, #0b1425 40%, #060c16 80%);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22);
}
.publications-page .galaxy-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(126, 180, 210, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 180, 210, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}
.publications-page .solar-system-section {
    position: relative;
    display: block;
    width: 100%;
    overflow: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #335168 #0b1425;
}
.publications-page .solar-system {
    margin: 0 auto;
}
.publications-page .galaxy-caption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 20px;
    border-top: 1px solid #24354d;
    color: #8fa2bc;
    font-size: 11px;
}
.publications-page .galaxy-caption span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.publications-page .left-character {
    opacity: 0.12;
    z-index: 0;
}
.publications-page footer {
    position: relative;
    margin-top: 48px;
    padding: 30px 20px;
    background: #0b1421;
    border-top: 1px solid #203049;
}
.publications-page .footer-links {
    gap: 20px;
    margin-bottom: 12px;
}
.publications-page .footer-links a {
    font-size: 20px;
}
.publications-page footer p {
    font-size: 11px;
    margin: 4px 0;
}
@media (max-width: 800px) {
    .publications-page .project-hero {
        margin: 18px 16px 0;
        padding: 32px 26px;
    }
    .publications-page .hero-layout {
        gap: 16px;
        padding-right: 190px;
    }
    .publications-page .hero-avatar {
        right: -16px;
        bottom: -22px;
        width: 220px;
        height: 220px;
    }
    .publications-page .explore-section {
        padding: 0 16px;
        margin-top: 28px;
    }
}
@media (max-width: 520px) {
    .publications-page .navbar {
        gap: 3px;
        padding: 10px 6px;
    }
    .publications-page .nav-btn {
        padding: 9px 10px;
        font-size: 11px;
    }
    .publications-page .nav-btn i {
        margin-right: 4px;
    }
    .publications-page .project-hero {
        padding: 28px 22px;
    }
    .publications-page .hero-layout {
        align-items: flex-start;
        padding-right: 0;
        padding-bottom: 124px;
    }
    .publications-page .hero-avatar {
        position: absolute;
        top: auto;
        right: -12px;
        bottom: -18px;
        width: 124px;
        height: 124px;
        opacity: 1;
    }
    .publications-page .eyebrow {
        padding-right: 64px;
        font-size: 9px;
        letter-spacing: 1px;
    }
    .publications-page .project-hero h1 {
        margin-top: 24px;
    }
    .publications-page .hero-description {
        font-size: 13px;
    }
    .publications-page .section-toolbar {
        align-items: flex-start;
    }
    .publications-page .section-toolbar h2 {
        font-size: 17px;
    }
    .publications-page .section-toolbar p {
        max-width: 220px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .publications-page *,
    .publications-page *::before,
    .publications-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.publications-page .results-background {
    min-height: 0;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 22px 20px 32px;
    border: 1px solid #24354d;
    border-radius: 20px;
    background: rgba(11, 20, 35, 0.94);
}
.publications-page .results-background::before {
    display: none;
}
.publications-page .search-container {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.publications-page .search-container #searchInput {
    flex: 1 1 260px;
    width: auto;
    padding: 12px 14px;
    border: 1px solid #30425a;
    border-radius: 9px;
    background: #0a1423;
    font: inherit;
    font-size: 13px;
    color: #edf3ff;
}
.publications-page .search-container button,
.publications-page .search-container .download-japanese-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
    cursor: pointer;
}
.publications-page .search-container #searchButton {
    border: 1px solid #345366;
    background: #153039;
    color: #dcf6f2;
}
.publications-page .search-container #downloadPublicationsBtn,
.publications-page .search-container .download-japanese-btn {
    border: 1px solid #30425a;
    background: #142237;
    color: #c9d9ec;
}
.publications-page .search-container button:hover,
.publications-page .search-container .download-japanese-btn:hover {
    background: #20394a;
    color: #fff;
    transform: none;
    box-shadow: none;
}
.publications-page .filters {
    max-width: none;
    justify-content: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #24354d;
}
.publications-page .filters select {
    flex: 1 1 150px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    background: #0a1423;
    border: 1px solid #30425a;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    color: #c9d9ec;
}
.publications-page #selectedKeywords {
    flex-basis: 100%;
    gap: 7px;
    margin: 0;
}
.publications-page .selected-keyword {
    padding: 5px 10px;
    background: #153039;
    color: #8debdc;
    font-size: 11px;
}
.publications-page #resultCount {
    text-align: left;
    color: #8fa2bc;
    font-size: 12px;
    margin: 20px 0 16px;
}
.publications-page .carousel-wrapper {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}
.publications-page .carousel-nav {
    display: none;
}
.publications-page #publicationsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 300px));
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
}
.publications-page #publicationsContainer .publication-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 14px;
    gap: 0;
    border: 1px solid #293c55;
    border-radius: 14px;
    background: #101d2e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}
.publications-page #publicationsContainer .publication-card:hover {
    transform: translateY(-3px);
    border-color: #508c91;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.publications-page #publicationsContainer .publication-thumbnail {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 140px;
    overflow: hidden;
    margin: 0 0 12px;
    border-radius: 9px;
    background: #080e19;
}
.publications-page #publicationsContainer .publication-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 9px;
    transform: none;
}
.publications-page #publicationsContainer .publication-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.publications-page .publication-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}
.publications-page .publication-year {
    background: #193b3b;
    color: #8debdc;
}
.publications-page .publication-type {
    background: #20334c;
    color: #bed2ed;
}
.publications-page .publication-year,
.publications-page .publication-type {
    font-size: 10px;
    padding: 4px 8px;
}
.publications-page .publication-content h3 {
    font-size: 16px;
    line-height: 1.4;
    color: #eef4ff;
}
.publications-page .publication-content p,
.publications-page .publication-abstract {
    font-size: 12px;
    line-height: 1.6;
    color: #aebed3;
}
.publications-page .publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.publications-page .publication-tags .tag {
    font-size: 10px;
    padding: 3px 7px;
    font-weight: 500;
}
.publications-page .keyword-tag {
    border: 1px solid #304853;
    background: #152b34;
    color: #9ed7d0;
}
.publications-page .language-tag {
    background: #20334c;
    color: #bed2ed;
}
.publications-page #publicationsContainer .publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}
.publications-page .paper-button {
    padding: 6px 9px;
    font-size: 11px;
    border-radius: 7px;
    background: #23496a;
}
.publications-page .youtube-btn {
    background: #813340;
}
.publications-page .github-btn {
    background: #2b394b;
}
/* Collectible card themes by publication type */
.publications-page #publicationsContainer .publication-card {
    --card-metal: #8babc0;
    --card-bg: #132338;
    --card-panel: #0d1a2a;
    --card-text: #d9eafa;
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 2px solid var(--card-metal);
    background: linear-gradient(135deg, #ffffff1a, transparent 35%, #fff1), var(--card-bg);
    box-shadow:
        inset 0 0 0 2px #101923,
        inset 0 0 0 3px var(--card-metal),
        inset 0 1px #ffffff70,
        0 0 14px color-mix(in srgb, var(--card-metal) 28%, transparent),
        0 12px 28px #0007;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.publications-page #publicationsContainer .publication-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-metal);
    box-shadow:
        inset 0 0 0 2px #101923,
        inset 0 0 0 3px var(--card-metal),
        0 0 24px color-mix(in srgb, var(--card-metal) 52%, transparent),
        0 14px 30px #0009;
}
.publications-page #publicationsContainer .publication-card--journal {
    --card-metal: #85bff6;
    --card-bg: #162e4d;
    --card-panel: #102039;
    --card-text: #d2eaff;
}
.publications-page #publicationsContainer .publication-card--conference {
    --card-metal: #a997f0;
    --card-bg: #2d234c;
    --card-panel: #201937;
    --card-text: #e1d8ff;
}
.publications-page #publicationsContainer .publication-card--thesis {
    --card-metal: #d3b67b;
    --card-bg: #423521;
    --card-panel: #292316;
    --card-text: #f8e7bf;
}
.publications-page #publicationsContainer .publication-card--patent {
    --card-metal: #e9a767;
    --card-bg: #482b20;
    --card-panel: #2d1c19;
    --card-text: #ffdfc0;
}
.publications-page #publicationsContainer .publication-card--presentation {
    --card-metal: #6bceb7;
    --card-bg: #173e3b;
    --card-panel: #102b2b;
    --card-text: #c2f7e8;
}
.publications-page #publicationsContainer .publication-card--workshop {
    --card-metal: #90ce82;
    --card-bg: #263f29;
    --card-panel: #192c1e;
    --card-text: #d8f5cc;
}
.publications-page #publicationsContainer .publication-card--interview {
    --card-metal: #e799b9;
    --card-bg: #472536;
    --card-panel: #301a29;
    --card-text: #ffdaeb;
}
.publications-page #publicationsContainer .publication-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 2;
    border-radius: 12px;
    padding: 2px;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        circle 50px at 75% 0%,
        #fff,
        var(--card-metal) 30%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: publication-spark var(--shine-duration, 12s) ease-in-out var(--shine-delay, 0s)
        infinite;
}
@keyframes publication-spark {
    0%,
    4%,
    10%,
    100% {
        opacity: 0;
    }
    6% {
        opacity: 1;
    }
    8% {
        opacity: 0.35;
    }
}
.publications-page #publicationsContainer .publication-thumbnail {
    position: relative;
    border: 1px solid var(--card-metal);
    box-sizing: border-box;
    margin-bottom: 9px;
    box-shadow: 0 2px 9px #0008;
}
.publications-page #publicationsContainer .publication-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            #ffffff38,
            transparent 27%,
            #a9fff018 46%,
            #f1bdff15 53%,
            transparent 68%
        ),
        linear-gradient(to bottom, #fff1, transparent 42%, #03081455);
}
.publications-page #publicationsContainer .publication-content {
    border: 1px solid color-mix(in srgb, var(--card-metal) 65%, transparent);
    border-radius: 7px;
    padding: 10px;
    background: linear-gradient(130deg, #ffffff15, transparent 45%), var(--card-panel);
}
.publications-page #publicationsContainer .publication-header {
    gap: 6px;
}
.publications-page #publicationsContainer .publication-type,
.publications-page #publicationsContainer .publication-year {
    background: color-mix(in srgb, var(--card-metal) 19%, #101824);
    border: 1px solid color-mix(in srgb, var(--card-metal) 58%, transparent);
    color: var(--card-text);
}
.publications-page #publicationsContainer .publication-content h3 {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--card-metal) 55%, transparent);
    border-radius: 5px;
    background: #ffffff0a;
    color: #f5fbff;
    text-shadow: 0 0 12px color-mix(in srgb, var(--card-metal) 70%, transparent);
}
.publications-page #publicationsContainer .keyword-tag {
    border-color: color-mix(in srgb, var(--card-metal) 50%, transparent);
    color: var(--card-text);
}
@media (prefers-reduced-motion: reduce) {
    .publications-page #publicationsContainer .publication-card::after {
        animation: none;
    }
}
@media (max-width: 800px) {
    .publications-page .results-background {
        margin: 20px 16px 0;
        padding: 18px 14px 26px;
    }
}
@media (max-width: 520px) {
    .publications-page .search-container #searchInput {
        flex-basis: 100%;
    }
    .publications-page .search-container #downloadPublicationsBtn,
    .publications-page .search-container .download-japanese-btn {
        flex: 1 1 auto;
    }
}
@media (max-width: 360px) {
    .publications-page #publicationsContainer {
        grid-template-columns: minmax(0, 300px);
    }
}

/* Shared signature and digital identity across the portfolio. */
body .navbar[aria-label='Main navigation'] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 15px 28px;
}
.navbar .nav-signature {
    justify-self: start;
    min-width: 0;
    color: #e4f4ef;
    font-family: 'Allura', 'Brush Script MT', cursive;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 2px 12px #83dac91a;
}
.navbar .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.navbar .nav-digital-life {
    justify-self: end;
    font-family: 'Orbitron', monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2.5px;
    white-space: nowrap;
    color: #8debdc;
    text-shadow: 0 0 16px #63d7df33;
}
.navbar .nav-digital-life::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    background: #8debdc;
    box-shadow: 0 0 9px #8debdc66;
}
@media (max-width: 1200px) {
    body .navbar[aria-label='Main navigation'] {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 18px;
        padding: 14px 20px;
    }
    .navbar .nav-signature {
        font-size: 29px;
    }
    .navbar .nav-menu {
        grid-row: 2;
        grid-column: 1/-1;
    }
    .navbar .nav-digital-life {
        grid-row: 1;
        grid-column: 2;
        font-size: 13px;
    }
}
@media (max-width: 540px) {
    body .navbar[aria-label='Main navigation'] {
        padding: 12px 10px;
        gap: 12px 8px;
    }
    .navbar .nav-signature {
        font-size: clamp(19px, 4.9vw, 26px);
        white-space: normal;
    }
    .navbar .nav-digital-life {
        font-size: 10px;
        letter-spacing: 1px;
    }
    .navbar .nav-digital-life::before {
        width: 4px;
        height: 4px;
        margin-right: 5px;
    }
    .navbar .nav-menu {
        gap: 2px;
    }
    body .navbar .nav-menu .nav-btn {
        padding: 9px 10px;
        font-size: 11px;
    }
}

.navbar .nav-digital-life {
    color: #8debdc;
    animation: digital-life-neon 7s ease-in-out infinite;
}
@keyframes digital-life-neon {
    0%,
    100% {
        color: #80fff0;
        text-shadow:
            0 0 8px #43e8cf88,
            0 0 22px #43e8cf44;
    }
    33% {
        color: #f6a4ff;
        text-shadow:
            0 0 8px #ed65ff88,
            0 0 22px #ed65ff44;
    }
    66% {
        color: #a6bcff;
        text-shadow:
            0 0 8px #708aff88,
            0 0 22px #708aff44;
    }
}
body footer .tesla-reflection {
    max-width: 740px;
    margin: 24px auto 0;
    padding: 20px 16px 0;
    border-top: 1px solid #7e9aac33;
    text-align: center;
}
body footer .tesla-reflection blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
body footer .tesla-reflection blockquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.8;
    color: #c6d9e5;
}
body footer .tesla-reflection figcaption {
    margin-top: 10px;
    font-size: 11px;
    color: #92aabd;
}
body footer .tesla-reflection a {
    color: #91dfd2;
    text-decoration: underline;
    text-underline-offset: 4px;
}
body footer .tesla-reflection .tesla-history {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.7;
}
@media (prefers-reduced-motion: reduce) {
    .navbar .nav-digital-life {
        animation: none;
    }
}

/* Keep the existing footer centered; place the reflection in its own corner. */
body footer {
    position: relative;
    padding-bottom: 145px;
}
body footer .tesla-reflection {
    position: absolute;
    right: 22px;
    bottom: 14px;
    width: min(300px, calc(100% - 44px));
    max-width: 300px;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
}
body footer .tesla-reflection blockquote p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #91a6b8;
}
body footer .tesla-reflection figcaption {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.5;
}
body footer .tesla-reflection .tesla-history {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.5;
}
body footer .tesla-reflection a {
    color: #83b4b0;
    text-underline-offset: 2px;
}
@media (max-width: 540px) {
    body footer {
        padding-bottom: 150px;
    }
    body footer .tesla-reflection {
        right: 16px;
        width: min(280px, calc(100% - 32px));
    }
}

.publications-page model-viewer.hero-avatar {
    display: block;
    background: transparent;
    --poster-color: transparent;
}
.academia-model-status {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 24px;
    text-align: center;
    font-size: 12px;
    color: #aebed3;
}

.publications-page .hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.publications-page .hero-star {
    position: absolute;
    right: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    opacity: 0;
    background: #fff6ce;
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
    filter: drop-shadow(0 0 5px #96ecff);
    animation: fantasy-star var(--duration) linear var(--delay) infinite;
}
@keyframes fantasy-star {
    0% {
        transform: translate(0, 0) scale(0.35);
        opacity: 0;
    }
    12% {
        opacity: 0.8;
    }
    72% {
        opacity: 0.65;
    }
    100% {
        transform: translate(-40vw, 85px) scale(1);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .publications-page .hero-star {
        animation: none;
        opacity: 0.35;
    }
}

.publications-page .filters #keywordFilter {
    flex: 0 1 210px;
}
.publications-page .keyword-row {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.publications-page .keyword-row #selectedKeywords {
    display: flex;
    flex: 1 1 180px;
    flex-wrap: wrap;
    gap: 7px;
}
