/**********
/* Grille - 960.gs
**********/
.container_16 {
	max-width: 1000px;
	width: 92%;
	margin: 0 auto;
    text-align: justify;
}
.grid_6,
.grid_8,
.grid_10,
.grid_16 {
	display:inline;
	float: left;
	position: relative;
	margin-left: 1%;
	margin-right: 1%;
}

.container_16 .grid_6 {
	width:35.5%;
}

.container_16 .grid_8 {
	width:48.0%;
}

.container_16 .grid_10 {
	width:60.5%;
}

.container_16 .grid_16 {
	width:98.0%;
}

.clearfix:after {
	clear: both;
	content: ' ';
	display: block;
	font-size: 0;
	line-height: 0;
	visibility: hidden;
	width: 0;
	height: 0;
}

.clearfix {
	display: inline-block;
}

* html .clearfix {
	height: 1%;
}

.clearfix {
	display: block;
}



/**********
/* Header
**********/
	header[role=banner] {
		background: var(--bg);
		padding: 32px 0 20px;
		transition: background 0.3s;
	}

	header .container_16 {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 32px;
	}

	header figure {
		flex-shrink: 0;
		width: 130px;
		height: 130px;
	}

	header figure img {
		border-radius: 65px;
		width: 130px;
		height: 130px;
	}

	header hgroup {
		text-align: left;
	}

	header hgroup h1 {
		color: var(--text);
		font-family: 'Montserrat', sans-serif;
		margin: 0 0 8px;
	}

	header hgroup h2 {
		color: var(--text-muted);
		font-family: 'Montserrat', sans-serif;
		line-height: 30px;
		margin: 0;
	}

/************
/* Menu
************/
.menu {
  list-style-type: none;
  margin: 10px auto;
  padding: 6px 8px;
  width: fit-content;
  max-width: 92%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  position: sticky;
  top: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

html.dark .menu {
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.menu > li {
  display: inline;
}
.menu > li > a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  padding: 7px 14px;
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.menu > li > a:hover,
.menu > li > a:focus {
  background: #fa7970;
  color: #fff;
  text-decoration: none;
}

#theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 12px;
  margin-left: 8px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#theme-toggle:hover {
  background: #fa7970;
  color: #fff;
  border-color: var(--accent);
}




/***************
/* Corps - Main
***************/
	section[role=main] {
		padding: 21px 0;
		overflow: hidden;
	}
	
	section[role=main] > div {
		margin-top: 10px;
	}
	
	section[role=main] h3 {
		border-bottom: none;
		padding: 20px 0 6px 5px;
		margin-top: 0px;
		position: relative;
 	}

	section[role=main] h3::before {
		content: '';
		display: block;
		position: absolute;
		bottom: 0;
		left: 5px;
		width: 2.5rem;
		height: 3px;
		background: var(--accent);
		border-radius: 2px;
	}

	section[role=main] h3::after {
		content: none;
	}

	/* Updates timeline dots */
	.updates-list li {
		position: relative;
		padding-left: 16px;
	}

	.updates-list li p {
		margin-top: 0;
	}

	.updates-list li::before {
		content: '';
		position: absolute;
		left: -6px;
		top: 8px;
		width: 8px;
		height: 8px;
		background: var(--accent);
		border-radius: 50%;
	}

	/* Collapsible older updates */
	.older-updates {
		padding-left: 20px;
		margin-top: -10px;
	}

	.older-updates summary {
		cursor: pointer;
		color: var(--accent);
		font-size: 0.9em;
		padding: 6px 0;
		list-style: none;
	}

	.older-updates summary::-webkit-details-marker {
		display: none;
	}

	.older-updates summary::before {
		content: '+ ';
	}

	.older-updates[open] summary::before {
		content: '- ';
	}


/***************************
/* Paper card hover effects
***************************/
.ref_teaser {
	border-radius: 8px;
	padding: 14px;
	margin-left: -14px;
	margin-right: -14px;
	border-left: 3px solid transparent;
	transition: transform 200ms ease, box-shadow 200ms ease, border-left-color 200ms ease;
}

.ref_teaser:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.09);
	border-left-color: var(--accent);
}

html.dark .ref_teaser:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ref_teaser.featured {
	background: #dafbe1;
}

html.dark .ref_teaser.featured {
	background: #1a2e22;
	color: var(--text);
}

html.dark .ref_teaser.featured .authors,
html.dark .ref_teaser.featured .conf {
	color: var(--text-muted);
}

html.dark .ref_teaser.featured .title a {
	color: #6fdc8c;
}

/***************************
/* Paper/Project link badges
***************************/
.badge {
	display: inline-block;
	font-size: 0.7em;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	text-decoration: none;
	vertical-align: middle;
	margin-left: 4px;
	transition: opacity 200ms ease;
}

.badge:hover {
	opacity: 0.8;
}

.badge-paper {
	background: #2563eb;
	color: #fff;
}

.badge-project {
	background: #555d66;
	color: #fff;
}

html.dark .badge-paper {
	background: #2563eb;
}

html.dark .badge-project {
	background: #555d66;
}

/***************************
/* "New" badge with pulse
***************************/
.badge-new {
	background: #e53e3e;
	color: #fff;
	animation: badge-pulse 2s ease-in-out infinite;
}

html.dark .badge-new {
	background: #f56565;
}

@keyframes badge-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.5); }
	50%      { box-shadow: 0 0 8px 4px rgba(229, 62, 62, 0.25); }
}

/***************************
/* Holographic card effect
***************************/
.ref_teaser.holo {
	position: relative;
	overflow: hidden;
	border: 1.5px solid rgba(255, 255, 255, 0.15);
}

html.dark .ref_teaser.holo {
	border-color: rgba(255, 255, 255, 0.08);
}

.ref_teaser.holo:hover {
	border-left-color: var(--accent);
}

.ref_teaser.holo::after,
.holo-text::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		125deg,
		rgba(255, 0, 0, 0.35) 0%,
		rgba(255, 154, 0, 0.35) 10%,
		rgba(208, 222, 33, 0.3) 20%,
		rgba(79, 220, 74, 0.3) 30%,
		rgba(63, 218, 216, 0.35) 40%,
		rgba(47, 201, 226, 0.35) 50%,
		rgba(28, 127, 238, 0.38) 60%,
		rgba(95, 21, 242, 0.38) 70%,
		rgba(186, 12, 248, 0.35) 80%,
		rgba(251, 7, 217, 0.35) 90%,
		rgba(255, 0, 0, 0.35) 100%
	);
	background-size: 200% 200%;
	animation: holo-shimmer 6s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
	mix-blend-mode: multiply;
	border-radius: inherit;
}

html.dark .ref_teaser.holo::after,
html.dark .holo-text::after {
	background: linear-gradient(
		125deg,
		rgba(255, 0, 0, 0.25) 0%,
		rgba(255, 154, 0, 0.25) 10%,
		rgba(208, 222, 33, 0.25) 20%,
		rgba(79, 220, 74, 0.25) 30%,
		rgba(63, 218, 216, 0.25) 40%,
		rgba(47, 201, 226, 0.25) 50%,
		rgba(28, 127, 238, 0.25) 60%,
		rgba(95, 21, 242, 0.25) 70%,
		rgba(186, 12, 248, 0.25) 80%,
		rgba(251, 7, 217, 0.25) 90%,
		rgba(255, 0, 0, 0.25) 100%
	);
	background-size: 200% 200%;
	mix-blend-mode: color-dodge;
}

@keyframes holo-shimmer {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Hover: intensify shimmer like tilting a holo card */
.ref_teaser.holo:hover::after {
	opacity: 1.8;
	animation-duration: 3s;
}

/***************************
/* Holographic text list item
***************************/
.holo-text {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	padding: 8px 10px;
	background: #dafbe1;
	list-style: none;
}

.holo-text::before {
	display: none;
}

html.dark .holo-text {
	background: #1a2e22;
}


/***************************
/* GitHub Projects section
***************************/
.gh-projects {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.gh-card {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--text);
	transition: border-color 200ms ease;
}

.gh-card:hover {
	border-color: var(--accent);
}

.gh-card.holo {
	position: relative;
	overflow: hidden;
}

.gh-card.holo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		125deg,
		transparent 0%,
		rgba(120, 200, 255, 0.05) 20%,
		rgba(200, 120, 255, 0.08) 40%,
		rgba(255, 180, 120, 0.05) 60%,
		transparent 80%
	);
	background-size: 200% 200%;
	animation: holo-shimmer 6s ease-in-out infinite;
	pointer-events: none;
	opacity: 0;
	transition: opacity 400ms ease;
}

html.dark .gh-card.holo::after {
	background: linear-gradient(
		125deg,
		transparent 0%,
		rgba(120, 200, 255, 0.12) 15%,
		rgba(200, 120, 255, 0.15) 35%,
		rgba(120, 255, 180, 0.12) 55%,
		rgba(255, 180, 120, 0.10) 75%,
		transparent 100%
	);
	background-size: 200% 200%;
	animation: holo-shimmer 6s ease-in-out infinite;
	opacity: 0.8;
}

.gh-card.holo:hover::after {
	opacity: 1.8;
	animation-duration: 3s;
}

.gh-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gh-repo-icon {
	color: var(--text-muted);
	flex-shrink: 0;
}

.gh-card-name {
	font-weight: 600;
	font-size: 0.9em;
	color: var(--accent);
}

.gh-card-desc {
	font-size: 0.8em;
	color: var(--text-muted);
	margin: 8px 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-card-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 0.75em;
	color: var(--text-muted);
}

.gh-lang {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gh-lang-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var(--border);
}

.gh-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gh-stars svg {
	color: var(--text-muted);
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.badge-new { animation: none; }
	.ref_teaser.holo::after, .holo-text::after, .gh-card.holo::after { animation: none; background-position: 50% 50%; }
}

