@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');


button,
input,
textarea {
    padding: 0;
    font: inherit;
    background: 0 0;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--clr-primary-400);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

button,
input[type=button],
input[type=submit] {
    cursor: pointer;
}



:root {
    --clr-primary-500: hsl(209, 56%, 33%);
    --clr-primary-400: hsl(209, 100%, 46%);
    --clr-primary-350: hsl(208, 89%, 63%);
    --clr-primary-300: hsl(209, 100%, 76%);
    --clr-primary-100: hsl(209, 100%, 96%);

    --clr-accent-500: hsl(12, 60%, 45%);
    --clr-accent-400: hsl(12, 88%, 59%);
    --clr-accent-350: hsl(12, 89%, 63%);
    --clr-accent-300: hsl(12, 100%, 76%);
    --clr-accent-100: hsl(12, 100%, 96%);

    --clr-secondary: hsl(231, 6%, 42%);
    --clr-secondary-focus: hsl(236, 11%, 26%);
    --clr-secondary-content: hsl(0, 0%, 100%);

    --clr-neutral-900: hsl(0, 0%, 18%);
    --clr-neutral-800: hsl(228, 39%, 23%);
    --clr-neutral-500: hsl(0, 0%, 49%);
    --clr-neutral-400: hsl(0, 0%, 82%);
    --clr-neutral-300: hsl(240, 23%, 95%);
    --clr-neutral-200: hsl(0 0% 97%);
    --clr-neutral-100: hsl(0 0% 100%);

    --ff-primary: "Be Vietnam Pro", sans-serif;
    --ff-code: "Source Code Pro", monospace;
    --ff-blog: "Arial";

    --ff-body: var(--ff-primary);
    --ff-heading: var(--ff-primary);

    --fw-light: 200;
    --fw-regular: 400;
    --fw-semi-bold: 500;
    --fw-bold: 700;

    --fs-300: 0.8125rem;
    --fs-400: 0.875rem;
    --fs-500: 0.9375rem;
    --fs-600: 1rem;      /* 16px */
    --fs-650: 1.25rem;
    --fs-700: 1.5rem;
    --fs-725: 1.75rem;
    --fs-800: 2.5rem;
    --fs-900: 2.75rem;

    --fs-body: var(--fs-400);
    --fs-primary-heading: var(--fs-725);
    --fs-secondary-heading: var(--fs-700);
    --fs-nav: var(--fs-500);
    --fs-button: var(--fs-300);

    --size-100: 0.25rem;
    --size-200: 0.5rem;
    --size-300: 0.75rem;
    --size-400: 1rem;
    --size-500: 1.5rem;
    --size-600: 2rem;
    --size-700: 3rem;
    --size-800: 4rem;
    --size-900: 5rem;
}

/* DESKTOP */
@media (min-width: 50em) {
    :root {
        --fs-body: var(--fs-500);
        --fs-primary-heading: var(--fs-900);
        --fs-secondary-heading: var(--fs-800);

        --fs-nav: var(--fs-300);
    }
}


/***************************************************
 * REST CSS
/***************************************************

/* https://piccalil.li/blog/a-modern-css-reset */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
* {
    margin: 0;
    padding: 0;
    font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

/* Set core body defaults */
body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/***************************************************
 * END RESET
/***************************************************

/* general styling */
body {
    font-size: var(--fs-body);
    font-family: var(--ff-body);
    color: var(--clr-neutral-800);
    background-color: var(--clr-neutral-300);
}


/* button */
.btn {
    display: inline-flex;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 100vmax;
    padding: .25em 1.5em;
    color: var(--clr-neutral-100);
    background-color: var(--clr-primary-400);
}

.btn-outline {
    background-color: transparent;
    border: var(--clr-primary-400) 2px solid;
    display: inline-flex;
    cursor: pointer;
    text-decoration: none;
    border-radius: 100vmax;
    padding: .25em 1.5em;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--clr-primary-400);
    color: #fff;
    fill: #fff;
}

.btn-outline:hover .icon,
.btn-outline:focus-visible .icon {
    background-color: var(--clr-primary-400);
    color: #fff;
    fill: #fff;
}

.btn[data-type="disabled"] {
    background-color: var(--clr-neutral-100);
    color: var(--clr-accent-400);
}

.btn[data-type="outline"] {
    background-color: transparent;
    border: var(--clr-primary-400) 2px solid;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--clr-primary-400);
}

.btn[data-type="outline"]:hover,
.btn[data-type="outline"]:focus-visible {
    background-color: var(--clr-primary-400);
    color: #fff;
    fill: #fff;
}

.btn[data-type="outline"]:hover *,
.btn[data-type="outline"]:focus-visible * {
    background-color: var(--clr-primary-400);
    color: #fff;
    fill: #fff;
}

.button[data-type="inverted"]:hover,
.button[data-type="inverted"]:focus-visible {
    background-color: var(--clr-neutral-100);
    color: var(--clr-accent-300);
}

/* navigation */
.primary-header {
    padding-top: var(--size-400);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-toggle {
    display: none;
}

.nav-list {
    font-size: var(--fs-nav);
}

.nav-list {
    display: flex;
    gap: clamp(var(--size-400), 5vw, var(--size-700));
    font-weight: var(--fw-semi-bold);
}

.nav-list a,
.link-primary {
    text-decoration: none;
    color: var(--clr-neutral-800);
    line-height: 2em;
}

.nav-list a:hover,
.nav-list a:focus,
.link-primary:hover,
.link-primary:focus {
    color: var(--clr-primary-400);
}

.link-secondary {
    color: var(--clr-primary);
}

.text-decoration-none {
    text-decoration: none;
}

.link-secondary:hover,
.link-secondary:focus {
    color: var(--clr-primary-focus);
}

@media (max-width: 50em) {
    .primary-navigation {
        display: none;

        position: fixed;
        padding: var(--size-500);
        inset: 5rem var(--size-400) auto;
        max-width: 25rem;
        margin-left: auto;
        background: var(--clr-neutral-100);
        border-radius: var(--size-100);
        box-shadow: 0 0 0.75em rgb(0, 0, 0, 0.05);
    }

    .primary-header[data-overlay]::before {
        content: "";
        position: fixed;
        inset: 0;
        /* height: 100vh; */
        background-image: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.8));
    }

    .nav-list {
        display: grid;
        gap: var(--size-600);
        text-align: center;
        font-weight: var(--fw-bold);
    }

    .primary-navigation[data-visible] {
        display: block;
        z-index: 1000;
    }

    .mobile-nav-toggle {
        display: block;
        position: fixed;
        right: var(--size-400);
        cursor: pointer;
        background: transparent;
        border: 0;
        padding: 0.5em;
    }

    .mobile-nav-toggle { z-index: 1001; }
    .mobile-nav-toggle .icon-close { display: none; }
    .mobile-nav-toggle[aria-expanded="true"] .icon-hamburger { display: none; }
    .mobile-nav-toggle[aria-expanded="true"] .icon-close { display: block; }

    .hide-on-mobile {
        display: none;
    }

    .show-on-mobile {
        display: inline !important;
    }
}

.show-on-mobile {
    display: none;
}

.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.name-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* footer */
.primary-footer {
    --logo-color: var(--clr-neutral-100);
}

@media (min-width: 50em) {
    .primary-footer-wrapper {
        grid-template-areas: "logo-social nav form";
    }

    .primary-footer-logo-social {
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--size-700);
    }

    .even-columns {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

    .img-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 50em) {
    .primary-footer-wrapper>* {
        margin-inline: auto;
    }
}


/* social list */
.social-list {
    display: flex;
    gap: var(--size-600);
}

.social-icon {
    width: var(--size-600);
    aspect-ratio: 1;
    fill: var(--clr-neutral-100);
}

.social-list a:is(:hover, :focus) .social-icon {
    fill: var(--clr-accent-400);
}


/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* added line */
    border: 0;
}

.container {
    --max-width: 1110px;
    --container-padding: 1rem;

    width: min(var(--max-width), 100% - (var(--container-padding) * 2));
    margin-inline: auto;
}

.al-center {
    align-items: center;
    margin: auto;
}

.even-columns {
    display: grid;
    gap: 1rem;
}

.one_three {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 2fr;
}

.one_four {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 3fr;
}

.three_one {
    display: grid;
    gap: 1rem;
    grid-template-columns: 73% 25%;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
}

.img-centered {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


@media only screen and (max-width: 900px) {

    .one_three,
    .three_one,
    .one_four {
        grid-template-columns: 1fr;
    }

}

.vertical-align-center {
    align-items: center;
}

.justify-self-end {
    justify-self: end;
}

@media (min-width: 50em) {
    .justify-self-end-md {
        justify-self: end;
    }
}

:where(.flow :not(:first-child)) {
    margin-top: var(--flow-spacer, 1em);
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-inline: auto;
}

.text-left {
    text-align: left;
}

@media (max-width: 50em) {
    .text-center-sm-only {
        text-align: center;
    }

    .text-center-sm-only p {
        margin-inline: auto;
    }
}

.text-primary-400 {
    color: var(--clr-primary-400);
}

.text-accent-400 {
    color: var(--clr-accent-400);
}

.text-accent-100 {
    color: var(--clr-accent-100);
}

.text-neutral-100 {
    color: var(--clr-neutral-100);
}

.text-neutral-900 {
    color: var(--clr-neutral-900);
}

.bg-primary-400 {
    background-color: var(--clr-primary-400);
}

.bg-accent-400 {
    background-color: var(--clr-accent-400);
}

.bg-accent-100 {
    background-color: var(--clr-accent-100);
}

.bg-neutral-100 {
    background-color: var(--clr-neutral-100);
}

.bg-neutral-900 {
    background-color: var(--clr-neutral-900);
}

.bg-primary {
    background-color: var(--clr-neutral-100);
    border-radius: 10px;
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.fw-semi-bold {
    font-weight: var(--fw-semi-bold);
}

.fw-regular {
    font-weight: var(--fw-regular);
}

.fs-primary-heading {
    font-size: var(--fs-primary-heading);
    line-height: 1.1;
}

.fs-secondary-heading {
    font-size: var(--fs-secondary-heading);
    line-height: 1.1;
}

.fs-300 {
    font-size: var(--fs-300);
}

.fs-400 {
    font-size: var(--fs-400);
}

.fs-500 {
    font-size: var(--fs-500);
}

.fs-600 {
    font-size: var(--fs-600);
}

.fs-650 {
    font-size: var(--fs-650);
}

.fs-700 {
    font-size: var(--fs-700);
}

.fs-725 {
    font-size: var(--fs-725);
}

.fs-800 {
    font-size: var(--fs-800);
}



.fs-900 {
    font-size: var(--fs-900);
}

.padding-block-900 {
    padding-block: var(--size-900);
}

.padding-block-700 {
    padding-block: var(--size-700);
}

.padding-block-400 {
    padding-block: var(--size-400);
}

.padding-side-700 {
    padding: 0 var(--size-700);
}

.padding-100 {
    padding: var(--size-100);
}

.padding-500 {
    padding: var(--size-500);
}

.padding-700 {
    padding: var(--size-700);
}

@media (max-width: 50em) {
    .padding-700 {
        padding: var(--size-500);
    }
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.no-pad {
    padding: 0;
}

.margin-bottom-500 {
    margin-block-end: var(--size-500);
}

.margin-bottom-700 {
    margin-block-end: var(--size-700);
}

.margin-top-400 {
    margin-top: var(--size-400);
}

.no-margin {
    margin: 0;
}

.display-sm-none {
    display: none;
}


@media (min-width: 50em) {
    .display-md-inline-flex {
        display: inline-flex;
    }
}

.as-end {
    align-self: flex-end;
}

.me {
    width: 90%;
    margin: auto;
    max-width: 250px;
    max-height: 250px;
}

.logo-symbol {
    float: left;
    width: 44px;
    height: 44px;
    background-color: var(--clr-primary-400);
    border-radius: 100px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-right: 8px;
    margin-top: 4px;
}

.logo-text {
    float: left;
    line-height: 50px;
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

.logo-text span {
    font-weight: 400;
}

.list-inline-item {
    margin-top: 0;
}

.pill {
    border-radius: 50px;
    margin-top: 5px;
}

.logo img {
    max-width: 50px;
    margin: auto;
}

.pub-img {
    max-width: 240px;
    margin: 0 auto;
}

ul.timeline {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    margin-inline: auto;
}

/* line */
ul.timeline::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
ul.timeline li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

/* card */
ul.timeline li {
    grid-column: 2;
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
}

/* date */
ul.timeline li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);

    text-align: center;
    font-size: 1rem;
    font-weight: 700;

    display: grid;
    place-content: center;
    position: relative;

    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* circle */
ul.timeline li .date::after {
    content: "";
    position: absolute;
    width: 1rem;
    aspect-ratio: 1;
    background: var(--clr-primary-400);
    border-radius: 50%;
    top: 50%;
    border: 3px solid var(--clr-primary-300);

    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
ul.timeline li .title,
ul.timeline li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
}

ul.timeline li .title {
    overflow: hidden;
    font-weight: 500;
}

ul.timeline li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
}

@media (min-width: 40rem) {
    ul.timeline {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    ul.timeline::before {
        grid-column: 2;
    }

    ul.timeline li:nth-child(odd) {
        grid-column: 1;
    }

    ul.timeline li:nth-child(even) {
        grid-column: 3;
    }

    /* start second card */
    ul.timeline li:nth-child(2) {
        grid-row: 2/4;
    }

    ul.timeline li:nth-child(odd) .date::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    ul.timeline li:nth-child(odd) .date::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    ul.timeline li:nth-child(odd) .date {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
}


.abstract {
    font-style: italic;
    font-weight: 200;
    clear: both;
    /* padding: 15px 0 0 0; */
}

.abstract-section {
    font-style: italic;
    background: #d1d1d1;
    background: linear-gradient(317deg,rgba(209, 209, 209, 1) 0%, rgba(224, 224, 224, 1) 100%);
}

.narrow {
    max-width: 900px;
    margin: auto;
}

.abstract::before {
    content: "Abstract: ";
    font-style: normal;
    font-weight: 400;
}

.icon-img {
    float: left;
    margin-right: 5px;
    filter: opacity(85%);
}

.icon {
    text-decoration: none;
    color: var(--clr-secondary);
    fill: var(--clr-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    margin: auto;
}

.svg-icon {
    width: 24px;
    height: 24px;
    float: left;
    margin-right: 5px;
}

.m2 {
    padding-top: 4px;
}

/* invert(85%) sepia(70%) saturate(3800%) hue-rotate(170deg) brightness(100%) contrast(100%); */
.flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.flex>* {
    flex: 1 1 10em;
}

.pubs:not(:last-child) {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.list-inline::after {
    clear: both;
}

.list-inline-item {
    float: left;
    height: 1.5em;
}

.list-authors {
    display: inline;
    height: 1em;
    padding: 0;
    margin: 0;
}

.list-authors a {
    line-height: 0;

}

/* .list-inline-item:not(:last-child)::after, */
.list-authors:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    margin-right: 10px;
}

.logo-link {
    filter: invert(17%) sepia(7%) saturate(4468%) hue-rotate(191deg) brightness(93%) contrast(94%);
}

.logo-link:hover {
    filter: invert(41%) sepia(91%) saturate(5248%) hue-rotate(194deg) brightness(100%) contrast(103%);
}

.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.disabled > a {
  display: inline-block;  /* For IE11/ MS Edge bug */
  pointer-events: none;
  text-decoration: none;
}

.full-height {
    min-height: 93vh;
    margin-bottom: -2.5rem
}


img-box {
    overflow: hidden;
    border-radius: .25rem important;
}

.img-box:hover {
    box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.2);
}

.image-grid {
    /* opacity: 0.7; */
    height: 100%;
    width: 100%;
    transition: transform .35s,-webkit-transform .35s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    filter: grayscale(70%);
    border-radius: .25rem;
}

.image-grid:hover {
    opacity: 1;
    transform: scale3d(1.05, 1.05, 1);
    height: 100%;
    width: 100%;
    overflow: hidden;
    filter: none;
}


.flex-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


.blog-post {
    font-family: var(--ff-blog);
}

.blog-post p {
    margin: 0;
    font-size: var(--fs-600);
}

pre, code, .highlight {
  display: grid;
  background: var(--code-block-bg) !important;
  border-radius: var(--radius);
  overflow-x: auto;
  word-break: break-all;
  margin: 0;
}

.blog-post > h1 {
    font-weight: 600;
    font-size: var(--fs-700);
}

.blog-post > h2 {
    font-weight: 600;
    font-size: var(--fs-650);
}

.blog-post > h3 {
    font-weight: 600;
    font-size: var(--fs-500);
}

.blog-post p code,
.blog-post table code
 {
    display: inline;
    background-color: #eee !important;
    padding: 0 5px;
    border-radius: 5px;
    color: var(--clr-neutral-500);
}

.blog-post blockquote {
    padding: 20px;
    background-color: #eee;
    position: relative;
    border-left: 5px solid #ccc;
}

.blog-post ol,
.blog-post ul {
    padding-left: 2em;
    margin: 0;
}

.blog-post ol li,
.blog-post ul li{
    margin: 0;
}

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.blog-post thead tr th {
    padding: .4em;
    background-color: var(--clr-accent-400);
    color: #fff;
    font-weight: bold;
}

.blog-post tbody tr td {
    padding: .4em;
    border-bottom: 1px solid #ccc;
}

.blog-post tbody tr:nth-child(even) {
    background-color: #eee;
}

em, .em{
    font-style: italic;
}

strong {
    font-weight: var(--fw-bold);
}


.highlight table tbody td  code,
.highlight code {
    background-color: #353a5b !important;
    padding: .5em 0;
    font-family: var(--ff-code) !important;
}

.highlight table tbody td  code *,
.highlight code *{
    margin: 0;
}

.highlight table tbody td:nth-child(1) pre {
    width: 30px;
}

.highlight  > pre > code {
    padding: var(--size-300)
}

#TableOfContents {
  overflow-x: auto;
  max-height: 75vh;
  top: 0;
  position: sticky;
}

@media (max-width: 50em) {
    #TableOfContents {
        display: none;
    }
}

#TableOfContents ul {
    list-style: none;
    counter-reset: list-counter;
}

#TableOfContents li {
    margin: 0;
    padding-bottom: 5px;
    padding-left: 1.3em;
    counter-increment: list-counter;
    position: relative;

}

#TableOfContents li::before {
    content: counter(list-counter) ". ";
    position: absolute;
    left: 0em; /* Adjust as needed */
}

#TableOfContents a {
    text-decoration: none;
    color: #222;
}

.pagination-default {
    list-style: none;
    display: flex;
    margin: 10px auto;
    max-width: 16rem;
}

.page-item {
  padding: 0.2rem;
  margin: 0 auto;
}

.page-item.active a {
  background-color: var(--clr-primary-focus);
}

.page-link {
  padding: 0.25rem 0.75rem;
  background-color: var(--clr-primary);
  color: #fff;
  border-radius: 100vmax;
  text-decoration: none;
  font-size: var(--size-400);
}

.page-item:first-child, .page-item:last-child {
  display: none;
}

.page-item.disabled {
  opacity: 0.7;
}

sup:has(.footnote-ref) {
    vertical-align: baseline;
}

sup:has(.footnote-ref)::before {
    content: "[";
}
sup:has(.footnote-ref)::after {
    content: "]";
}

hr {
    border: 0;
    border-top: 2px solid #979797;
    margin: 1em 0;
}

div.highlight,
pre {
    position: relative;
    background-color: #23263A !important;
}

.copy-code {
    display: none;
    position: absolute;
    top: -10px;
    right: 5px;
    color: rgba(39, 39, 39);
    background: rgba(236, 236, 236, 0.9);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 16px;
    user-select: none;
}

div.highlight:hover .copy-code,
pre:hover .copy-code {
    display: block;
}

/* Image gallery */
.image-gallery {overflow: auto; margin-left: -1%!important;}
.image-gallery li {float: left; display: block; margin: 0 0 1% 1%; width: 19%;}
.image-gallery li a {text-align: center; text-decoration: none!important; color: #777;}
.image-gallery li a span {display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 3px 0;}
.image-gallery li a img {width: 100%; display: block;}

/* Blog list page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--size-600);
    margin-top: var(--size-700);
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog post card */
.post-card {
    background: var(--clr-neutral-100);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--size-600);
    border: 1px solid hsl(0, 0%, 90%);
    transition: box-shadow 0.2s ease;
}

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

.post-cover {
    display: block;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    overflow: hidden;
    background: linear-gradient(135deg,
        var(--clr-primary-100) 0%,
        var(--clr-neutral-200) 100%);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-cover img {
    transform: scale(1.03);
}

.post-content {
    padding: var(--size-600);
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: var(--size-400);
    margin-bottom: var(--size-400);
    font-size: var(--fs-400);
}

.post-meta-top time {
    color: var(--clr-neutral-500);
}

.post-category {
    color: var(--clr-accent-400);
    font-size: var(--fs-300);
    font-weight: var(--fw-semi-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    margin: 0 0 var(--size-400) 0;
    font-size: var(--fs-700);
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.post-title a {
    color: var(--clr-neutral-800);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--clr-primary-400);
}

.post-excerpt {
    color: var(--clr-neutral-500);
    font-size: var(--fs-500);
    line-height: 1.6;
    margin-bottom: var(--size-500);
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--size-400);
    border-top: 1px solid hsl(0, 0%, 93%);
}

.reading-time {
    color: var(--clr-neutral-500);
    font-size: var(--fs-400);
}

.post-tags {
    display: flex;
    gap: var(--size-200);
}

.tag {
    color: var(--clr-primary-400);
    font-size: var(--fs-300);
    font-weight: var(--fw-semi-bold);
}

.tag:not(:last-child)::after {
    content: "·";
    margin-left: var(--size-200);
    color: var(--clr-neutral-300);
}

@media (max-width: 900px) {
    .post-content {
        padding: var(--size-500);
    }

    .post-title {
        font-size: var(--fs-650);
    }

    .post-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--size-300);
    }
}

/* Publications single page */

:root {
    --pp-fg: #1a1a2e;
    --pp-fg2: #444;
    --pp-fg3: #777;
    --pp-bg: #fff;
    --pp-bg2: #fafafa;
    --pp-border: var(--clr-neutral-400);
    --pp-blue: var(--clr-primary-400);
    --pp-blue2: var(--clr-primary-300);
    --pp-red: #c0392b;
    --pp-head: 'Noto Serif', Georgia, serif;
    --pp-text: 'Source Sans 3', 'Be Vietnam Pro', sans-serif;
    --pp-code: 'Source Code Pro', monospace;
    font-family: var(--pp-text);
    color: var(--pp-fg2);
}

.pp-w { max-width: 1110px; margin: 0 auto; padding: 0 1.5rem; }
.pp-w-narrow { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.pp-w-toc { max-width: 1110px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 180px 1fr; gap: 3rem; align-items: start; }

.pp-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

.pp-title {
    font-family: var(--pp-head);
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-neutral-900);
    margin: 0 0 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.pp-authors {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.pp-au {
    text-decoration: none;
    color: var(--pp-fg2);
    transition: color 0.15s;
}

.pp-au:hover { color: var(--pp-blue); }

.pp-au-me {
    color: var(--pp-red);
    font-weight: 600;
}

.pp-au-me:hover { color: #e74c3c; }

.sup {
    font-size: .8em;
    color: var(--pp-fg3);
}

.pp-affs {
    font-size: 0.85rem;
    color: var(--pp-fg3);
    font-style: italic;
    margin-bottom: 1.75rem;
}

.pp-affs span { margin-right: 1.5em; }
.pp-affs sup { font-size: 0.7em; margin-right: 2px; font-style: normal; }

.pp-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.pp-b {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.4em 0.9em;
    background: var(--pp-fg);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.15s;
}

.pp-b:hover { background: var(--pp-blue2); }

.pp-b-ico {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

.pp-b-off {
    opacity: 0.35;
    pointer-events: none;
}

.pp-hero-img {
    padding-bottom: 2rem;
}

.pp-hero-img img {
    width: 100%;
    border-radius: 8px;
}

.pp-cap {
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-neutral-900);
    margin-top: 0.5rem;
    font-style: italic;
}

.pp-sh {
    font-family: var(--pp-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-neutral-900);
    text-align: center;
    margin: 0 0 1rem;
}

.pp-section {
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--pp-border);
}

.pp-abs-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--pp-fg2);
    text-align: justify;
    margin: 0;
}

.pp-content {
    padding: 2.5rem 0 3rem;
}

.pp-main { min-width: 0; }

.pp-toc {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.pp-toc-head {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pp-fg3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--pp-border);
}

.pp-tocnav #TableOfContents ul { list-style: none; padding: 0; margin: 0; }
.pp-tocnav #TableOfContents li { padding: 0; margin: 0; }
.pp-tocnav #TableOfContents li::before { display: none; }

.pp-tocnav #TableOfContents a {
    display: block;
    font-size: 0.75rem;
    color: var(--pp-fg3);
    text-decoration: none;
    padding: 0.3em 0 0.3em 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.4;
}

.pp-tocnav #TableOfContents a:hover {
    color: var(--pp-blue);
    border-left-color: var(--pp-blue);
}

.pp-body { font-family: var(--pp-text); }

.pp-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--pp-fg2);
}

.pp-body > h1 {
    font-family: var(--pp-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-neutral-800);
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
}

.pp-body > h1:first-child { margin-top: 0; }

.pp-body > h2 {
    font-family: var(--pp-text);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-neutral-900);
    margin-top: 2rem;
}

.pp-body > h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-neutral-800);
}

.pp-body ol, .pp-body ul {
    padding-left: 1.4em;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--clr-neutral-800);
}

.pp-body ol li, .pp-body ul li { margin: 0.15em 0; }

.pp-body blockquote {
    margin: 1em 0;
    padding: 0.75rem 1.25rem;
    background: #f6f8fb;
    border-left: 3px solid var(--pp-blue);
    border-radius: 0 4px 4px 0;
}

.pp-body img {
    border-radius: 6px;
}

.pp-body p code {
    display: inline;
    font-family: var(--pp-code);
    font-size: 0.88em;
    background: #f3f3f3 !important;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    color: var(--pp-fg2);
}

.pp-body strong {
    font-weight: 600;
    color: var(--pp-fg);
}

.pp-body hr {
    border: none;
    height: 1px;
    background: var(--pp-border);
    margin: 2.5rem 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--clr-neutral-800);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--pp-border);
}

.stat-value {
    font-family: var(--pp-head);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--pp-fg);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pp-fg3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ── Results Tabs ── */
.pub-tab-nav {
    display: inline-flex;
    gap: 0.35rem;

    background: var(--clr-neutral-300);
    padding: 0.3rem;
    border-radius: 8px;
        margin-bottom: 1.25rem;
}

.pub-tab-btn  {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--clr-neutral-800);
    cursor: pointer;
    transition: all 0.15s;
}

.pub-tab-btn.active {
    background: var(--clr-neutral-100);
    color: var(--clr-accent-500);
}
.pub-tab-btn:hover:not(.active) { color: var(--clr-accent-500); }


.pub-tab-panel {
    display: none;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border);
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 50em) {
    .pub-tab-panel {
        overflow: visible;
    }
}

.pub-tab-panel.active { display: block; }



.pub-tab-panel > p {
    /* font-family: var(--pp-text);
    font-size: 0.9rem !important;
    color: var(--pp-fg3);
    /* margin-top: 0.75em; */
    line-height: 1.6;
    font-family: var(--pp-text);
    font-size: 0.9rem !important;
    color: var(--pp-fg3);
    margin: 0;
    line-height: 1.6;
    padding: 0.8em;
    background: #F7F7F7;
    border-radius: 0 0 10px 10px;
}

.pp-body table,
.pub-tab-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pub-tab-panel thead tr {
    background: var(--clr-neutral-200);
}

.pub-tab-panel thead th:first-child {
    border-top-left-radius: 10px;
}

.pub-tab-panel thead th:last-child {
    border-top-right-radius: 10px;
}


.pp-body thead th,
.pub-tab-panel thead th {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--pp-border);
}

.pp-body tbody td,
.pub-tab-panel tbody td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--pp-border);
    color: var(--text-tertiary);
    font-weight: 500;
}

.pp-body tbody tr:first-child {
  background-color: #eff4ff;
  font-weight: bold;
}



.pp-body tbody tr:hover,
.pub-tab-panel tbody tr:hover { background: #f6f8fb; }

.pp-body tbody td strong,
.pub-tab-panel tbody td strong {
    color: var(--pp-blue);
    font-weight: 700;
}

.pub-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.25em 0;
}

.pub-card {
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    padding: 1.15rem;
    background: var(--pp-bg);
    transition: box-shadow 0.2s, transform 0.2s;
}


.pub-card-icon { font-size: 1.2em; margin-bottom: 0.3em; }

.pub-card h4 {
    font-family: var(--pp-text) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--pp-fg) !important;
    margin: 0 0 0.3em !important;
    border: none !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

.pub-card p {
    font-family: var(--pp-text) !important;
    font-size: 0.82rem !important;
    color: var(--pp-fg3) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.pub-citation {
    background: var(--pp-fg);
    border-radius: 6px;
    padding: 1.25rem;
    margin: 2em 0;
}

.pub-citation-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
    display: block;
}

.pub-citation pre {
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pub-citation code {
    font-family: var(--pp-code) !important;
    font-size: 0.75rem !important;
    color: #aaa !important;
    background: transparent !important;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.pp-foot {
    padding: 2rem 0;
    border-top: 1px solid var(--pp-border);
}

.pp-back {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pp-blue);
    text-decoration: none;
}

.pp-back:hover { color: var(--pp-blue2); }

@media (max-width: 900px) {
    .pp-w-toc { grid-template-columns: 1fr; }
    .pp-toc { position: static; }
}

@media (max-width: 600px) {
    .pp-header { padding: 2.5rem 0 1.5rem; }
    .pp-title { font-size: 1.5rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .pub-cards { grid-template-columns: 1fr; }
    .pub-tab-btn { font-size: 0.72rem; padding: 0.55em 0.6em; }
}

/* Blog single page */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--size-500);
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--size-500);
}

.blog-single {
    background: var(--clr-neutral-100);
}

.blog-header-single {
    padding: var(--size-900) 0 var(--size-700);
    text-align: center;
}

.blog-category-single {
    display: inline-block;
    color: var(--clr-accent-400);
    font-size: var(--fs-300);
    font-weight: var(--fw-semi-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--size-400);
}

.blog-title-single {
    font-size: var(--fs-900);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin: 0 0 var(--size-500) 0;
    color: var(--clr-neutral-800);
}

.blog-meta-single {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--size-300);
    font-size: var(--fs-400);
    color: var(--clr-neutral-500);
    flex-wrap: wrap;
}

.meta-separator {
    color: var(--clr-neutral-300);
}

.blog-tags-single {
    display: flex;
    gap: var(--size-200);
}

.tag-single {
    color: var(--clr-primary-400);
    font-weight: var(--fw-semi-bold);
}

.tag-single:not(:last-child)::after {
    content: "·";
    margin-left: var(--size-200);
    color: var(--clr-neutral-300);
}

.blog-feature-image {
    margin-bottom: var(--size-800);
}

.blog-feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.blog-content-wrapper {
    padding-bottom: var(--size-900);
}

.blog-with-toc {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--size-800);
    align-items: start;
}

.blog-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: var(--size-700);
    background: var(--clr-neutral-100);
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 6px;
    padding: var(--size-500);
    max-height: calc(100vh - var(--size-900));
    overflow-y: auto;
}

.toc-title {
    font-size: var(--fs-500);
    font-weight: var(--fw-bold);
    margin: 0 0 var(--size-400) 0;
    color: var(--clr-neutral-800);
}

.blog-main-content {
    min-width: 0;
}

.blog-footer-single {
    padding: var(--size-700) 0;
    border-top: 1px solid hsl(0, 0%, 90%);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: var(--clr-primary-400);
    text-decoration: none;
    font-weight: var(--fw-semi-bold);
    transition: color 0.2s ease;
}

.back-to-blog:hover {
    color: var(--clr-primary-500);
}

@media (max-width: 900px) {
    .blog-header-single {
        padding: var(--size-700) 0 var(--size-600);
    }

    .blog-title-single {
        font-size: var(--fs-800);
    }

    .blog-feature-image {
        margin-bottom: var(--size-600);
    }

    .blog-with-toc {
        grid-template-columns: 1fr;
    }

    .toc-sticky {
        position: static;
        margin-bottom: var(--size-600);
    }
}

.profile-bio a { color: var(--clr-primary-500); text-decoration: none; }
.profile-bio a:hover { color: var(--clr-primary-400); text-decoration: underline; }
.publication-links { padding: 0; list-style: none; }
.publication-links > li { margin: 0; }
.publication-links .btn-outline { width: 100%; justify-content: center; align-items: center; }
.publication-link-disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.video video { display: block; max-width: 100%; height: auto; }
.copy-code[data-copy-state="error"] { color: #a52214; }
