/** page layout **/
.wiki {
	display: grid;
	grid-template-columns: 1fr 16em;
	gap: 0 2rem;
	max-width: 100em;
	width: 90%;
	margin: 0 auto;
	align-items: start;
}

/* ── wiki-nav sidebar ── */
.wiki-nav {
	position: fixed;
	top: 2rem;
	width: 13em;
	border-left: 3px solid #e0e0e0;
	padding: 0.75rem 0 0.75rem 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	right: 20%;
}

.wiki-nav .nav-title {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 0.75rem;
}

.wiki-nav ol,
.wiki-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wiki-nav li {
	margin: 0;
}

/* top-level items */
.wiki-nav > ol > li {
	margin-bottom: 0.15rem;
}

/* nested items indented */
.wiki-nav ul li {
	padding-left: 0.85rem;
}

.wiki-nav a {
	display: block;
	padding: 0.18rem 0.4rem;
	border-radius: 4px;
	text-decoration: none;
	color: #aaa;
	transition: color 0.15s ease, background 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wiki-nav a:hover {
	color: #333;
	background: #f4f4f4;
}

.wiki-nav li.active > a {
	color: #149ddd;
	font-weight: 700;
	background: rgba(20, 157, 221, 0.08);
}

/* h2 active state (black) */
.wiki-nav li.active-h2 > a {
	color: #000;
	font-weight: 700;
	background: transparent;
}

/* h2 left accent */
.wiki-nav > ol > li.active-h2 > a {
	border-left: 2px solid #000;
	padding-left: 0.2rem;
}

/* h3 active state (blue) */
.wiki-nav li.active-h3 > a {
	color: #149ddd;
	font-weight: 700;
	background: rgba(20, 157, 221, 0.08);
}

/* h3 left accent */
.wiki-nav ul li.active-h3 > a {
	border-left: 2px solid #149ddd;
	padding-left: 0.2rem;
}

.wiki h2 {
	color: #000;
}

.wiki p {
	text-indent: 0;
	margin-bottom: 1rem;
	line-height: 1.75;
}

figure {
	border: thin #c0c0c0 solid;
	display: flex;
	flex-flow: column;
	padding: 5px;
	max-width: 100%;
	margin: auto;
  }
  
  img {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

figcaption {
	background-color: #222;
	color: #fff;
	font-family: sans-serif;
	font-size: 0.85rem;
	font-weight: bold;
	padding: 5px 8px;
	text-align: center;
}

.tooltip-inner {
    min-width: 350px; /* the minimum width */
}

.container-bg {
    background-color: #000000;
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #f3f3f3;
    z-index: 9999;
    display: none;
}

.loading-bar-progress {
    width: 0;
    height: 100%;
    background-color: #4caf50;
}

/* ── Portfolio filter buttons ───────────────────── */
.portfolio #portfolio-flters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border-radius: 0;
    padding: 0 !important;
    margin-bottom: 30px !important;
}
.portfolio #portfolio-flters li {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #555;
    margin-right: 0;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* All button */
#portfolio-flters li[data-filter="*"]:hover,
#portfolio-flters li[data-filter="*"].filter-active {
    background: #149ddd; border-color: #149ddd; color: #fff;
}
/* Journals pill */
#portfolio-flters li[data-filter=".filter-journals"] { border-color: #607d8b; color: #607d8b; }
#portfolio-flters li[data-filter=".filter-journals"]:hover,
#portfolio-flters li[data-filter=".filter-journals"].filter-active { background: #607d8b; border-color: #607d8b; color: #fff; }
/* Conferences pill */
#portfolio-flters li[data-filter=".filter-conferences"] { border-color: #149ddd; color: #149ddd; }
#portfolio-flters li[data-filter=".filter-conferences"]:hover,
#portfolio-flters li[data-filter=".filter-conferences"].filter-active { background: #149ddd; border-color: #149ddd; color: #fff; }
/* Awards pill */
#portfolio-flters li[data-filter=".filter-prizes"] { border-color: #388e3c; color: #388e3c; }
#portfolio-flters li[data-filter=".filter-prizes"]:hover,
#portfolio-flters li[data-filter=".filter-prizes"].filter-active { background: #388e3c; border-color: #388e3c; color: #fff; }

/* ── Publication Cards ──────────────────────────── */
.pub-card {
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 24px;
    overflow: hidden;
}
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.pub-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    contain: layout;
}
.pub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    max-height: none;
    border-radius: 0;
    transition: transform 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
}
.pub-card:hover .pub-card-image img {
    transform: scale(1.04);
}
.pub-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    color: #149ddd;
    border: 1.5px solid currentColor;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.filter-journals .pub-card-tag    { color: #607d8b; }
.filter-conferences .pub-card-tag { color: #149ddd; }
.filter-prizes .pub-card-tag      { color: #388e3c; }
.pub-card-content {
    padding: 8px 12px 10px;
}
.filter-journals .pub-card-content    { border-top: 4px solid #607d8b; }
.filter-conferences .pub-card-content { border-top: 4px solid #149ddd; }
.filter-prizes .pub-card-content      { border-top: 4px solid #388e3c; }
.pub-card-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(20, 157, 221, 0.9);
    line-height: 1.35;
    margin: 0 0 6px;
    text-align: left;
    word-spacing: normal;
    /* Fixed 3-line height keeps all cards the same height */
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
.pub-card-text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
    margin-top: 0;
    padding-top: 2px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
    word-spacing: normal;
}
.pub-card-text em {
    font-style: normal;
    font-weight: 700;
}
.pub-card-footer {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.pub-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1;
    border: solid 1px transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s;
}
.pub-card-btn:hover {
    text-decoration: none;
}
.pub-card-btn-primary {
    background: rgba(20, 157, 221, 1);
    border-color: rgba(20, 157, 221, 1);
    color: #fff !important;
    font-weight: 700;
}
.pub-card-btn-primary:hover {
    background: #fff;
    color: rgba(20, 157, 221, 1) !important;
}
.pub-card-btn-secondary {
    background: transparent;
    color: #149ddd !important;
    border-color: rgba(20, 157, 221, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}
.pub-card-btn-secondary:hover {
    background: rgba(20, 157, 221, 0.12);
    color: #149ddd !important;
}

/* ── VenoBox responsive override ───────────────────── */
.vbox-figlio {
    max-width: min(960px, 96vw) !important;
    width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
    width: 2.5rem;
    opacity: 1;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

#hero .carousel-control-prev {
    left: 25%;
}

#hero .carousel-control-next {
    right: 25%;
}

#hero .carousel-control-prev-icon,
#hero .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(20, 157, 221, 0.78);
    background-size: 55% 55%;
    background-position: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

#hero .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0L1.25 4l4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E");
}

#hero .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0L1.25 1.5 3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E");
}

#hero .carousel-control-prev:hover .carousel-control-prev-icon,
#hero .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(82, 39, 255, 0.9);
}

/* ── Abstract Popup Modals ──────────────────────────── */
.abs-popup {
    display: none;
    background: #fff;
    --popup-accent: #149ddd;
}
.vbox-inline .abs-popup {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
.vbox-inline {
    display: flex;
    flex-direction: column;
    width: min(720px, 90vw) !important;
    max-width: min(720px, 90vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.abs-img,
.abs-img-bordered {
    width: 100%;
    display: block;
    box-sizing: border-box;
    line-height: 0;
}
.abs-img img,
.abs-img-bordered img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
    margin: 0;
    padding: 8px;
    max-width: 100%;
    box-sizing: border-box;
}
.abs-img-bordered {
    border: 2px solid #555;
}
.abs-body,
.abs-body-nb {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 22px 20px;
    border-top: 4px solid var(--popup-accent);
    max-height: none;
    overflow-y: auto;
    box-sizing: border-box;
}
.abs-body h2,
.abs-body-nb h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--popup-accent);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--popup-accent);
}
.abs-body strong,
.abs-body-nb strong { text-decoration: underline; }
.abs-body p,
.abs-body-nb p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #000;
    margin: 0;
    text-align: justify;
}

@media (max-width: 580px) {
    .abs-img img,
    .abs-img-bordered img { height: 300px; padding: 6px; }
    .abs-body,
    .abs-body-nb {
        max-height: 50vh;
        padding: 14px 16px 16px;
    }
    .abs-body p,
    .abs-body-nb p { font-size: 0.9rem; }
}


/* ── Per-type card backgrounds ───────────────────── */
.filter-journals .pub-card   { background: #000; }
.filter-conferences .pub-card { background: #149ddd; }
.filter-prizes .pub-card      { background: #388e3c; }

/* White text on colored cards */
.filter-journals .pub-card-title,
.filter-conferences .pub-card-title,
.filter-prizes .pub-card-title { color: #fff; }

.filter-journals .pub-card-text,
.filter-conferences .pub-card-text,
.filter-prizes .pub-card-text {
    color: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(255, 255, 255, 0.25);
}

/* Color-coded buttons per card type */
.filter-journals .pub-card-btn { background: #fff; border-color: #607d8b; color: #607d8b !important; }
.filter-journals .pub-card-btn:hover { background: #607d8b; border-color: #607d8b; color: #fff !important; }

.filter-conferences .pub-card-btn { background: #fff; border-color: #149ddd; color: #149ddd !important; }
.filter-conferences .pub-card-btn:hover { background: #149ddd; border-color: #149ddd; color: #fff !important; }

.filter-prizes .pub-card-btn { background: #fff; border-color: #388e3c; color: #388e3c !important; }
.filter-prizes .pub-card-btn:hover { background: #388e3c; border-color: #388e3c; color: #fff !important; }

/* White outline on button hover */
.filter-journals .pub-card-btn-primary:hover,
.filter-conferences .pub-card-btn-primary:hover,
.filter-prizes .pub-card-btn-primary:hover { border-color: #fff; }

.filter-journals .pub-card-btn-secondary:hover,
.filter-conferences .pub-card-btn-secondary:hover,
.filter-prizes .pub-card-btn-secondary:hover { border-color: #fff; }

/* Footer divider on colored cards */
.filter-journals .pub-card-footer,
.filter-conferences .pub-card-footer,
.filter-prizes .pub-card-footer { border-top-color: rgba(255, 255, 255, 0.25); }

/* ── Social icon colors ──────────────────────────── */
.social-links .linkedin i { color: #0A66C2; }
.social-links .orcid iconify-icon { color: #a6ce39; }
.social-links .scholar iconify-icon { color: #4285f4; }

/* ── Reference citation styling ──────────────────────────── */
.reference-citation {
    font-weight: bold;
    color: rgb(8, 8, 8);
}

/* ── Carousel caption styling ──────────────────────────── */
.carousel-caption {
    font-size: 14px;
    color: aliceblue;
    font-weight: bold;
}

/* ── Popup modal color themes ──────────────────────────── */
.abs-popup.popup-journals .abs-body,
.abs-popup.popup-journals .abs-body-nb {
    --popup-accent: #000;
}

.abs-popup.popup-conferences .abs-body,
.abs-popup.popup-conferences .abs-body-nb {
    --popup-accent: #149ddd;
}

.abs-popup.popup-prizes .abs-body,
.abs-popup.popup-prizes .abs-body-nb {
    --popup-accent: #388e3c;
}

/* ── Google Tag Manager noscript iframe ──────────────────────────── */
.gtm-noscript {
    display: none;
    visibility: hidden;
}

/* ── Inline style replacements ──────────────────────────── */
.page-title {
    font-weight: bold;
}

.title-span {
    text-transform: none;
}

.subtitle {
    font-size: 12pt;
}

.reference-link {
    font-weight: bold;
    color: rgb(8, 8, 8);
}

.figure-link {
    text-align: right;
}

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

.figure-link-center-full {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.figure-link-center-max {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.figure-link-center-50 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.figure-link-center-60 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.figure-link-center-70 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}

.figure-link-center-80 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

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

.figure-row {
    display: flex;
}

.figure-column-15 {
    flex: 15%;
}

.figure-column-24 {
    flex: 24%;
}

.figure-column-25 {
    flex: 25%;
}

.figure-column-30 {
    flex: 30%;
}

.figure-column-40 {
    flex: 40%;
}

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

.reference-text {
    text-indent: 0px;
}

.reference-list {
    list-style-type: square;
    text-align: justify;
}

.hover-item-link {
    cursor: pointer;
}

.hover-item-link:hover {
    color: red;
}

.map-iframe {
    border: 0;
}

/* ── wiki-nav mobile toggle button ── */
.wiki-nav-toggle {
	display: none;
}

/* ── Tablet: reduce nav column ── */
@media (max-width: 991px) {
	.wiki {
		grid-template-columns: 1fr 13em;
	}
}

/* ── Mobile: stack layout ── */
@media (max-width: 767px) {
	.wiki {
		grid-template-columns: 1fr;
		width: 95%;
	}

	/* Move nav above content */
	.wiki-nav {
		order: -1;
		position: static;
		border-left: none;
		border-bottom: 1px solid #e0e0e0;
		padding: 0.5rem 0 0.75rem;
		max-height: none;
		overflow-y: visible;
	}

	.wiki-nav-toggle {
		display: flex;
		align-items: center;
		gap: 6px;
		background: none;
		border: 1px solid #ddd;
		border-radius: 6px;
		padding: 6px 12px;
		font-size: 0.8rem;
		font-weight: 600;
		color: #555;
		cursor: pointer;
		margin-bottom: 0.5rem;
		width: 100%;
		justify-content: space-between;
	}

	.wiki-nav ol {
		display: none;
	}
	.wiki-nav.open ol {
		display: block;
	}
.wiki-nav.open .wiki-nav-toggle i {
	transform: rotate(180deg);
}
}

#hero #carouselExampleIndicators {
    width: 100%;
}

#hero #carouselExampleIndicators .carousel-inner {
    min-height: 460px;
}

#hero #carouselExampleIndicators .carousel-item {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

#hero #carouselExampleIndicators .carousel-item img {
    width: min(75%, 720px);
    height: 320px;
    object-fit: contain;
    flex: 0 0 auto;
}

#hero #carouselExampleIndicators .carousel-caption {
    position: static;
    width: min(100%, 760px);
    margin-top: 0.5rem;
}

#hero,
#hero * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#hero a,
#hero button,
#hero [role="button"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    #hero #carouselExampleIndicators .carousel-inner,
    #hero #carouselExampleIndicators .carousel-item {
        min-height: 360px;
    }

    #hero #carouselExampleIndicators .carousel-item img {
        width: 100%;
        height: 220px;
    }

    #hero .carousel-control-prev {
        left: 2%;
    }

    #hero .carousel-control-next {
        right: 2%;
    }
}
