@charset "utf-8";
/* ==========================================================================
   Theme variables (light is the default, dark via <html data-theme="dark">)
   ========================================================================== */
:root {
    --bg: #f1f5f5;
    --card: #ffffff;
    --card-alt: #f5f9f9;
    --text: #1f2d31;
    --muted: #5e7076;
    --border: #dfe8e8;
    --accent: #1f8a8a;
    --accent-soft: #e3f2f1;
    --link: #2d6f99;
    --link-hover: #1d4f70;
    --title: #142328;
    --dot: rgba(31, 138, 138, 0.16);
    --badge-bg: #3f9b9c;
    --badge-text: #ffffff;
    --navbar-bg: rgba(241, 245, 245, 0.85);
    --code-bg: #f2f4f7;
    --code-text: #c7254e;
    --shadow: 0 1px 2px rgba(20, 35, 40, .04), 0 6px 18px -10px rgba(20, 35, 40, .18);
    --mark-bg: #fff3c4;
    --hl: #23807f;
    --hl2: #d2691e;
    --venue: #3a64a8;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0d1517;
    --card: #142023;
    --card-alt: #18272b;
    --text: #dfe9ea;
    --muted: #93a6aa;
    --border: #233539;
    --accent: #5fd0cf;
    --accent-soft: #173335;
    --link: #82bfe3;
    --link-hover: #b0d8f0;
    --title: #eef5f5;
    --dot: rgba(95, 208, 207, 0.12);
    --badge-bg: #2f8f90;
    --badge-text: #ffffff;
    --navbar-bg: rgba(13, 21, 23, 0.85);
    --code-bg: #232a33;
    --code-text: #f29ab8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
    --mark-bg: #4a4220;
    --hl: #6fd6d6;
    --hl2: #f4a35c;
    --venue: #93b9f2;
    color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    padding-top: 5.0rem;
    background-color: var(--bg) !important;
    color: var(--text);
    transition: background-color .2s ease, color .2s ease;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title, .pub-title, .post-item-title, .navbar-nav .nav-link {
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.012em;
    color: var(--title);
}
.navbar-nav .nav-link { font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* faint "latent space" dot field behind the top of every page */
body::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 560px;
    z-index: -1;
    background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    pointer-events: none;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

hr { border-top-color: var(--border); }
mark { background-color: var(--mark-bg); color: var(--text); }

/* Bootstrap surface overrides so every widget follows the theme */
.bg-light { background-color: var(--bg) !important; }
.bg-white, .card, .modal-content, .list-group-item { background-color: var(--card) !important; color: var(--text); }
.text-muted { color: var(--muted) !important; }
.text-body { color: var(--text) !important; }
.border-gray, .border-bottom, .border-top, .border { border-color: var(--border) !important; }
.shadow-sm { box-shadow: var(--shadow) !important; }

.card, .card-img-overlay, .rounded-xl { border-radius: 14px !important; }
.card.shadow-sm, .rounded-xl.shadow-sm { border: 1px solid var(--border) !important; }
.rounded-xl-bottom { border-bottom-right-radius: 0.9rem !important; border-bottom-left-radius: 0.9rem !important; }
.rounded-xl-top { border-top-left-radius: 0.9rem !important; border-top-right-radius: 0.9rem !important; }
.custom-radius { border-radius: 0.9rem !important; }

.no-break { white-space: nowrap; }
.email-text { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; }
.text-profile-bio { font-weight: 400; }
.text-profile-bio p:last-child { margin-bottom: 0; }

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--title);
}
.section-title i { color: var(--accent); margin-right: .25rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.navbar-light .navbar-nav .nav-link { color: var(--muted); }
.navbar-light .navbar-nav .nav-link:hover { color: var(--text); }
.navbar-light .navbar-nav .active > .nav-link { color: var(--accent); font-weight: 700; }
.navbar-light .navbar-toggler { color: var(--text); border-color: var(--border); }
.navbar-light .navbar-brand { color: var(--text); }

.terminal-text {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .92rem;
    padding-left: 0 !important;
    color: var(--text);
    white-space: nowrap;
}
.terminal-text .t-path, .terminal-text .t-msg { color: #049bed; }
html[data-theme="dark"] .terminal-text .t-path,
html[data-theme="dark"] .terminal-text .t-msg { color: #5fc3ff; }
.terminal-cursor {
    display: inline-block;
    width: .55em;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--text);
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 767.98px) { .terminal-text .t-msg { display: none; } }

.theme-toggle {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    width: 2.1rem;
    height: 2.1rem;
    line-height: 1;
    margin-left: .5rem;
    cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus { outline: none; box-shadow: 0 0 0 .15rem var(--accent-soft); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ==========================================================================
   Profile
   ========================================================================== */
a.follow_href { color: var(--link); text-decoration: none; transition: color .2s ease-in-out; }
a.follow_href:hover { color: var(--accent); text-decoration: none; }

.avatar-container {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}
.avatar-container .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumbnail { background-color: var(--card); border-color: var(--border); }

/* ==========================================================================
   News / timeline / misc
   ========================================================================== */
.news-year { color: var(--accent); font-weight: 700; }

.institution-name { color: var(--accent); font-weight: 700; }

.timeline {
    position: relative;
    margin: 0;
    --timeline-date-width: 8rem;
    --timeline-date-gap: 0.6rem;
    --timeline-content-gap: 1.4rem;
    --timeline-axis-x: calc(var(--timeline-date-width) + (var(--timeline-date-gap) / 2));
}
.timeline::before {
    content: "";
    position: absolute;
    left: var(--timeline-axis-x);
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: var(--border);
}
.timeline-item { position: relative; display: flex; align-items: flex-start; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(var(--timeline-axis-x) - 0.3rem);
    top: 0.45rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--card);
    box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date {
    width: var(--timeline-date-width);
    padding-right: var(--timeline-date-gap);
    display: flex;
    justify-content: flex-end;
    text-align: right;
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
}
.timeline-content { flex: 1; padding-left: var(--timeline-content-gap); }
.timeline-logo { height: 22px; }

@media (max-width: 576px) {
    .timeline { --timeline-date-width: 0; --timeline-date-gap: 0; --timeline-content-gap: 0.9rem; }
    .timeline::before { left: 0.3rem; }
    .timeline-item { flex-direction: column; padding-left: 0.9rem; }
    .timeline-item::before { left: 0; top: 0.35rem; }
    .timeline-date { width: auto; padding-right: 0; justify-content: flex-start; text-align: left; font-size: 0.7rem; margin-bottom: 0.2rem; }
    .timeline-content { padding-left: 0; }
}

/* ==========================================================================
   Publications
   ========================================================================== */
a.pub-link, a.view-all-link { color: var(--link); }
a.item_link { color: var(--link); }
a.item_link:hover { color: var(--accent); }
.pub-title { color: var(--title); }
.pub-title a { color: var(--title); }
.pub-title a:hover { color: var(--accent); text-decoration: none; }
.pub-venue { color: var(--text); }

.publication-container { position: relative; }
.publication-cover {
    object-fit: contain;
    width: 100%;
    max-height: 170px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] .publication-cover { filter: brightness(.92); }
.selected-publication { background-color: var(--accent-soft); }
.pub-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 0.72em;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.pub-badge-inline {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72em;
    font-weight: 700;
    margin-right: .35rem;
    vertical-align: 2px;
}
.badge-publication { font-size: 100%; }
.cover-image { width: 180px; max-height: 120px; }
.abstract-body { min-height: 100px; }

#navbar-year .nav-link { color: var(--muted); }
#navbar-year .nav-link.active { background-color: var(--accent); color: #fff; }

/* bubble visual hash placeholder looks softer in dark mode */
html[data-theme="dark"] .bubble-visual-hash { opacity: .8; }

img.lazy, div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

/* ==========================================================================
   Blog: My Latent Space
   ========================================================================== */
.blog-header h1 { font-size: 2rem; margin-bottom: .25rem; }
.blog-header .latent-dots { color: var(--accent); letter-spacing: .15em; }

.tag-chip {
    display: inline-block;
    padding: .15rem .6rem;
    margin: 0 .3rem .4rem 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted);
    background: var(--card);
    cursor: pointer;
    text-decoration: none !important;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-item { border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: 0; }
.post-item-title { font-size: 1.2rem; font-weight: 700; color: var(--title); }
.post-item-title:hover { color: var(--accent); text-decoration: none; }
.post-meta { font-size: .85rem; color: var(--muted); }
.post-meta .sep { margin: 0 .4rem; }
.post-thumb { width: 100%; max-height: 120px; object-fit: cover; border-radius: .5rem; }
.post-year { color: var(--accent); font-weight: 700; }

.post-content { font-size: 1.05rem; line-height: 1.75; }
.post-content h2 { font-size: 1.5rem; margin-top: 2rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.22rem; margin-top: 1.6rem; }
.post-content h4 { font-size: 1.05rem; margin-top: 1.3rem; }
.post-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--card-alt);
    padding: .6rem 1rem;
    margin: 1.2rem 0;
    color: var(--muted);
    border-radius: 0 .5rem .5rem 0;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: .45rem .7rem; vertical-align: top; }
.post-content th { background: var(--card-alt); }
.post-content code { background: var(--code-bg); color: var(--code-text); padding: .1rem .3rem; border-radius: .25rem; font-size: .88em; }
.post-content pre, .post-content .highlight { background: var(--code-bg) !important; border-radius: .5rem; }
.post-content pre { padding: .9rem 1rem; overflow-x: auto; font-size: .88rem; line-height: 1.5; }
.post-content pre code { background: transparent; color: var(--text); padding: 0; }
.post-content .katex-display { overflow-x: auto; overflow-y: hidden; padding: .2rem 0; }
.post-content hr { margin: 2rem 0; }

.post-toc { font-size: .88rem; border-left: 2px solid var(--border); padding-left: .8rem; }
.post-toc .toc-title { font-weight: 700; color: var(--title); margin-bottom: .4rem; }
.post-toc a { display: block; color: var(--muted); padding: .15rem 0; text-decoration: none; }
.post-toc a.toc-h3 { padding-left: .8rem; font-size: .84rem; }
.post-toc a:hover, .post-toc a.active { color: var(--accent); }

.post-nav a { color: var(--link); }

/* Syntax highlighting (Rouge) */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #6a737d; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kc { color: #d73a49; }
.highlight .kt, .highlight .nc, .highlight .nn { color: #6f42c1; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd, .highlight .se, .highlight .si { color: #032f62; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #005cc5; }
.highlight .nf, .highlight .fm { color: #6f42c1; }
.highlight .nb, .highlight .bp { color: #005cc5; }
.highlight .o, .highlight .ow { color: #d73a49; }
.highlight .na, .highlight .nt { color: #22863a; }
html[data-theme="dark"] .highlight .c, html[data-theme="dark"] .highlight .c1,
html[data-theme="dark"] .highlight .cm, html[data-theme="dark"] .highlight .cs { color: #7f8c98; }
html[data-theme="dark"] .highlight .k, html[data-theme="dark"] .highlight .kd, html[data-theme="dark"] .highlight .kn,
html[data-theme="dark"] .highlight .kp, html[data-theme="dark"] .highlight .kr, html[data-theme="dark"] .highlight .kc,
html[data-theme="dark"] .highlight .o, html[data-theme="dark"] .highlight .ow { color: #ff7b72; }
html[data-theme="dark"] .highlight .kt, html[data-theme="dark"] .highlight .nc, html[data-theme="dark"] .highlight .nn,
html[data-theme="dark"] .highlight .nf, html[data-theme="dark"] .highlight .fm { color: #d2a8ff; }
html[data-theme="dark"] .highlight .s, html[data-theme="dark"] .highlight .s1, html[data-theme="dark"] .highlight .s2,
html[data-theme="dark"] .highlight .sb, html[data-theme="dark"] .highlight .sd, html[data-theme="dark"] .highlight .se,
html[data-theme="dark"] .highlight .si { color: #a5d6ff; }
html[data-theme="dark"] .highlight .m, html[data-theme="dark"] .highlight .mi, html[data-theme="dark"] .highlight .mf,
html[data-theme="dark"] .highlight .mh, html[data-theme="dark"] .highlight .il,
html[data-theme="dark"] .highlight .nb, html[data-theme="dark"] .highlight .bp { color: #79c0ff; }
html[data-theme="dark"] .highlight .na, html[data-theme="dark"] .highlight .nt { color: #7ee787; }

/* ==========================================================================
   Footer / visitor map
   ========================================================================== */
.footer { background-color: var(--card) !important; color: var(--muted); }
.visitor-map { display: flex; flex-direction: column; align-items: center; }
.visitor-map-label { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.visitor-map img, .visitor-map canvas { max-width: 100%; height: auto; border-radius: .5rem; }

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    box-shadow: var(--shadow);
    display: none;
    z-index: 1030;
}
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }

/* Click-to-enlarge for publication covers */
.zoomable { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10, 12, 16, 0.85);
    display: none; align-items: center; justify-content: center;
    padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 90vh; border-radius: .5rem; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox video { cursor: auto; }
video.cover-video { cursor: zoom-in; display: block; }

.news-month {
    flex: 0 0 2.6rem;
    color: var(--muted);
    font-style: italic;
}

.text-profile-bio .bio-list { padding-left: 1.3rem; margin-bottom: 1rem; }
.text-profile-bio .bio-list li { margin-bottom: .25rem; }
.text-profile-bio .bio-list li::marker { color: var(--accent); }

/* ==========================================================================
   Colour accents in text
   ========================================================================== */
.profile-name { color: var(--accent); }
.about-title { position: relative; padding-bottom: .4rem; margin-bottom: .6rem; }
.about-title::after {
    content: ""; position: absolute; left: 15px; bottom: 0;
    width: 3rem; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--hl2));
}
.text-profile-bio b { color: var(--hl); }
.text-profile-bio b.v { color: var(--hl2); }
.text-profile-bio .bio-subtitle { font-weight: 700; color: var(--title); }
.text-profile-bio .bio-subtitle i { color: var(--accent); margin-right: .25rem; }
.news-text b { color: var(--hl2); }
.author-me { color: var(--hl); }
.venue-name { color: var(--venue); }
.service-list b { color: var(--hl); }
.post-content strong { color: var(--hl); }

/* ==========================================================================
   Typography refinements
   ========================================================================== */
.profile-name { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: .35rem; }
.about-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; }
.text-profile-bio { font-size: 1.0625rem; line-height: 1.75; }
.pub-title { font-size: 1.08rem !important; line-height: 1.35; }
.news-year, .post-year { font-family: "Be Vietnam Pro", sans-serif; font-weight: 800; font-size: 1rem; }
.institution-name { font-family: "Be Vietnam Pro", sans-serif; font-size: 1.05rem; }
.blog-header h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.post-content { font-size: 1.08rem; line-height: 1.8; }
.post-content h2, .post-content h3, .post-content h4 { letter-spacing: -0.015em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .terminal-cursor { animation: none; } * { scroll-behavior: auto !important; } }

/* ==========================================================================
   Memories (photo gallery)
   ========================================================================== */
.memories-header h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .2rem; }
.memories-grid { column-count: 3; column-gap: 1.1rem; }
@media (max-width: 991.98px) { .memories-grid { column-count: 2; } }
@media (max-width: 575.98px) { .memories-grid { column-count: 1; } }
.memory {
    break-inside: avoid;
    margin: 0 0 1.1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.memory-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.memory-open img { display: block; width: 100%; height: auto; }
.memory figcaption { padding: .6rem .85rem .75rem; line-height: 1.35; }
.memory-caption { display: block; font-family: "Be Vietnam Pro", sans-serif; font-weight: 600; color: var(--title); }
.memory-meta { display: block; font-size: .85rem; color: var(--muted); }

.memory-viewer {
    position: fixed; inset: 0; z-index: 2100;
    background: rgba(8, 14, 16, 0.92);
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.5rem;
}
.memory-viewer[hidden] { display: none; }
.mv-figure { margin: 0; max-width: 88vw; text-align: center; }
.mv-figure img { max-width: 88vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 16px 50px rgba(0, 0, 0, .5); }
.mv-figure figcaption { margin-top: .75rem; color: #e6eeee; }
.mv-figure .memory-caption { color: #ffffff; }
.mv-figure .memory-meta { color: #a9bcbf; }
.mv-btn {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
}
.mv-btn:hover { background: rgba(255, 255, 255, .18); }
.mv-close { position: absolute; top: 1rem; right: 1rem; }

/* keep the footer at the bottom on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .footer { margin-top: auto !important; }
body > .container-lg { width: 100%; }

/* Larger "small" text: Be Vietnam Pro stays readable at these sizes */
.small, small { font-size: 0.9rem; }
.news-text, .news-month { font-size: 0.95rem; line-height: 1.6; }
.pub-venue, .abstract-links { font-size: 0.92rem !important; }
.navbar-nav .nav-link { font-size: 1rem; }
.terminal-text { font-size: .9rem; }
.section-title { font-size: 1.25rem; letter-spacing: -0.015em; }
.profile-name { font-size: 1.7rem; }
.about-title { font-size: 1.9rem; }

.text-profile-bio .bio-lead { font-size: 1.25rem; font-weight: 600; color: var(--title); margin-bottom: .6rem; }
.text-profile-bio .bio-vn { font-weight: 400; color: var(--muted); font-size: 1.05rem; }
.text-profile-bio p { margin-bottom: .85rem; }

/* About Me: a small icon in front of each paragraph */
.text-profile-bio .ip { position: relative; padding-left: 2.1rem; }
.text-profile-bio .ip > .ic {
    position: absolute; left: 0; top: .32rem;
    width: 1.5rem; text-align: center;
    color: var(--accent); font-size: 1.05rem;
}
.text-profile-bio .ip .bio-list { padding-left: 1.2rem; }
.text-profile-bio .hb { color: var(--hl2); font-size: .9em; margin-left: .1rem; }
.text-profile-bio .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 0.4s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .text-profile-bio .wave { animation: none; } }

/* positions under the name in the profile card: keep each line on one row */
.profile-positions { font-size: 0.84rem; line-height: 1.55; }
.profile-positions .col { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
@media (max-width: 1199.98px) and (min-width: 992px) { .profile-positions .col { white-space: normal; } }
