:root {
	--secondary-color: #6e6e6e;
	--accent-color: #b4b4b4;
	--background-color: #fff;
	--link-color: #2b93ef;
	--button-color: #dddddd;
}

:root {
	--background-color: white;
	--text-color: #121212;
	--background-color-opposite: #121212;
	--text-color-opposite: white;
	--print-button-text-color: #121212;
	--background-image: url("/assets/imgs/groovepaper.png");
	--nav-background: rgba(255, 255, 255, 0.92);
	--nav-border-color: #e5e5e5;
	--nav-hover-color: rgba(0, 0, 0, 0.06);
	--nav-elevated-color: rgba(18, 18, 18, 0.05);
	--nav-panel-background: rgba(255, 255, 255, 0.98);
	--nav-shortcut-background: rgba(18, 18, 18, 0.08);
	--nav-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Dark theme */
[data-theme="dark"] {
	--background-color: #121212;
	--text-color: white;
	--background-color-opposite: white;
	--text-color-opposite: #121212;
	--print-button-text-color: white;
	--background-image: none;
	--nav-background: rgba(18, 18, 18, 0.92);
	--nav-border-color: #2b2b2b;
	--nav-hover-color: rgba(255, 255, 255, 0.08);
	--nav-elevated-color: rgba(255, 255, 255, 0.08);
	--nav-panel-background: rgba(18, 18, 18, 0.98);
	--nav-shortcut-background: rgba(255, 255, 255, 0.12);
	--nav-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("/assets/imgs/groovepaper.png");
	filter: invert(1);
	opacity: 1;
	pointer-events: none;
	z-index: -1;
}

[data-theme="dark"] #publications .publication-label-www {
	color: #5aadff !important;
	background: rgba(90, 173, 255, 0.12);
}

[data-theme="dark"] #publications .publication-label-www:hover {
	background: rgba(90, 173, 255, 0.22);
}

[data-theme="dark"] #publications .publication-label-pdf {
	color: #ff7a7a !important;
	background: rgba(255, 122, 122, 0.12);
}

[data-theme="dark"] #publications .publication-label-pdf:hover {
	background: rgba(255, 122, 122, 0.22);
}

[data-theme="dark"] #publications .publication-label-video {
	color: #f0a830 !important;
	background: rgba(240, 168, 48, 0.12);
}

[data-theme="dark"] #publications .publication-label-video:hover {
	background: rgba(240, 168, 48, 0.22);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;

	font-family: "Lato", sans-serif;

	color: var(--text-color);
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	color-scheme: light dark;

	height: fit-content;
	width: 982px;
	margin: 0 auto;
	box-sizing: border-box;
	background-image: var(--background-image);
}

body.toc-open {
	overflow: hidden;
}

a {
	color: var(--link-color) !important;
	text-decoration: none !important;
}

#cv-nav a,
#cv-nav button,
.cv-toc-list a,
.cv-toc-close {
	color: inherit !important;
	text-decoration: none !important;
}

.cv-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 48px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--nav-background);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--nav-border-color);
	z-index: 1000;
}

.cv-nav-left,
.cv-nav-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cv-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	min-width: 32px;
	padding: 0 10px;
	border: none;
	border-radius: 6px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	color: #333;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cv-nav-btn:hover {
	background-color: var(--nav-hover-color);
}

.cv-nav-btn i,
.cv-toc-close i {
	color: inherit;
}

.cv-nav-btn:focus-visible,
.cv-toc-close:focus-visible,
.cv-toc-item a:focus-visible {
	outline: 2px solid var(--link-color);
	outline-offset: 2px;
}

.cv-nav-print {
	padding: 0 12px;
	border-radius: 999px;
	background-color: var(--nav-elevated-color);
}

.cv-nav-print-label {
	white-space: nowrap;
}

.cv-nav-shortcut {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 2px;
	font-size: 11px;
	font-weight: 500;
}

.cv-shortcut-key {
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background-color: var(--nav-shortcut-background);
	text-align: center;
}

.cv-shortcut-plus {
	opacity: 0.55;
}

.cv-toc-panel {
	position: fixed;
	top: 48px;
	left: 0;
	bottom: 0;
	width: min(320px, calc(100vw - 32px));
	padding-bottom: 24px;
	background-color: var(--nav-panel-background);
	border-right: 1px solid var(--nav-border-color);
	box-shadow: var(--nav-shadow);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	z-index: 999;
}

.cv-toc-panel.open {
	transform: translateX(0);
}

.cv-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-bottom: 1px solid var(--nav-border-color);
	color: #888;
}

.cv-toc-close {
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #666;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cv-toc-close:hover {
	background-color: var(--nav-hover-color);
}

.cv-toc-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.cv-toc-item a {
	display: block;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	transition: background-color 0.15s ease;
}

.cv-toc-item a:hover {
	background-color: var(--nav-hover-color);
}

.cv-toc-overlay {
	position: fixed;
	inset: 0;
	top: 48px;
	background-color: rgba(0, 0, 0, 0.28);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 998;
}

.cv-toc-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

[data-theme="dark"] .cv-nav-btn {
	color: #ddd;
}

[data-theme="dark"] .cv-toc-header {
	color: #777;
	border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .cv-toc-close {
	color: #999;
}

[data-theme="dark"] .cv-toc-item a {
	color: #ddd;
}

[data-theme="dark"] .cv-toc-item a:hover,
[data-theme="dark"] .cv-toc-close:hover,
[data-theme="dark"] .cv-nav-btn:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cv-toc-overlay {
	background-color: rgba(0, 0, 0, 0.5);
}

header {
	width: 100%;
	height: fit-content;

	display: flex;
	justify-content: center;
	align-items: center;

	flex-direction: column;
}

header h1,
header h2 {
	text-transform: uppercase;
}

header h1 {
	font-size: 64px;
	margin-top: 84px;

	letter-spacing: 10px;
}

header h2 {
	width: 100%;
	letter-spacing: 6px;
	text-align: center;

	font-size: 24px;
	margin-top: 18px;
}

header > .mobile-contact-info {
	display: none;
}

main {
	margin: 80px 0;
}

main section:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

section {
	width: 100%;
	height: fit-content;
	scroll-margin-top: 86px;

	border-top: 1px solid;

	padding: 40px 0;

	display: flex;
	flex-direction: row;
}

section > .mobile-content {
	display: none;
}

section > .content {
	display: flex;
	flex-direction: column;

	position: relative;
}

section > .content > .title,
section > .mobile-content > .title {
	letter-spacing: 4px;
	text-transform: uppercase;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;

	margin-bottom: 36px;
}

.mobile-content .thumbnail {
	width: 350px !important;
	height: auto !important;
	max-width: 100%;
}

section > .content > p {
	text-align: justify;
}

section > .content > ul {
	list-style: none;
	padding: 0;
}

section > .content > ul > li {
	margin: 4px 0;
}

section > .content > ul > li:first-child {
	margin-top: 0;
}

section > .content > ul > li > a i {
	width: 25px;
}

section > .content > .item {
	display: flex;
	flex-direction: row;

	margin-bottom: 18px;
}

section > .content > .item:last-child {
	margin-bottom: 0;
}

section > .content > .item * {
	font-size: 16px;
	margin-bottom: 4px;
}

section > .content > .item .publication-label,
section > .content > .item .publication-label * {
	font-size: 12px;
	margin-bottom: 0;
}

.item > .date {
	min-width: 150px;
}

/* Subtle publication-type label under the date (Full Paper, Poster, …) */
.publication-type {
	display: block;
	margin-top: 3px;
	font-size: 12px !important;
	font-weight: 400;
	color: var(--secondary-color);
}

/* On mobile, sit inline next to the date instead of below it */
.mobile-content .publication-type {
	display: inline;
	margin-top: 0;
}
.mobile-content .publication-type::before {
	content: "·";
	margin: 0 6px;
	color: var(--secondary-color);
}

#publications .publication-labels {
	display: inline;
	margin-left: 2px;
}

#publications .publication-label {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: inherit;
	margin-left: 4px;
	transition: background-color 0.2s ease;
	vertical-align: baseline;
}

#publications .publication-label svg {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

#publications .publication-label-www {
	color: #2b7dd6 !important;
	background: rgba(43, 125, 214, 0.08);
}

#publications .publication-label-www:hover {
	background: rgba(43, 125, 214, 0.18);
}

#publications .publication-label-pdf {
	color: #d04040 !important;
	background: rgba(208, 64, 64, 0.08);
}

#publications .publication-label-pdf:hover {
	background: rgba(208, 64, 64, 0.18);
}

#publications .publication-label-video {
	color: #c77d10 !important;
	background: rgba(199, 125, 16, 0.08);
}

#publications .publication-label-video:hover {
	background: rgba(199, 125, 16, 0.18);
}

#publications .publication-label .label-text {
	color: inherit !important;
}

#publications .publication-label svg {
	color: inherit;
	stroke: currentColor;
}

#publications .content {
	line-height: 1.55;
}

#publications .publication-self-name {
	font-size: 1.08em;
	letter-spacing: 0.1px;
}

/* Collaborators — compact reference table (supplementary "fun" info) */
.collaborators-table {
	width: 100%;
	border-collapse: collapse;
}

.collaborators-table td {
	padding: 11px 8px;
	border-bottom: 1px solid var(--nav-border-color);
	vertical-align: middle;
}

.collaborators-table .c-row td {
	border-bottom: 1px solid var(--nav-border-color);
}

.collaborators-table .c-row.is-open td {
	border-bottom: none;
}

.collaborators-table .c-name {
	font-weight: 600;
}

.collaborators-table .c-toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.collaborators-table .c-chevron {
	display: inline-flex;
	color: var(--secondary-color);
	transition: transform 0.2s ease;
}

.collaborators-table .c-chevron svg {
	width: 12px;
	height: 12px;
}

.collaborators-table .c-toggle[aria-expanded="true"] .c-chevron {
	transform: rotate(90deg);
}

.collaborators-table .c-toggle:hover .c-name-text {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Affiliation line, aligned under the name text (past the chevron) */
.collaborators-table .c-affil {
	display: block;
	margin-top: 2px;
	margin-left: 21px;
	font-size: 12px;
	font-weight: 400;
	color: var(--secondary-color);
}

.collaborators-table .c-detail td {
	padding-top: 2px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nav-border-color);
}

/* Papers indented under the collaborator's name, tied together by a thin rule */
.collaborators-table .c-paper-list {
	list-style: none;
	margin: 0 0 0 21px;
	padding-left: 16px;
	border-left: 2px solid var(--nav-border-color);
}

.collaborators-table .c-paper {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 4px 0;
	line-height: 1.5;
}

.collaborators-table .c-paper-title {
	flex: 1 1 auto;
	color: var(--text-color);
	text-decoration: none;
}

.collaborators-table a.c-paper-title:hover {
	color: var(--link-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.collaborators-table .c-paper-venue {
	flex: 0 0 auto;
	font-size: 12px;
	letter-spacing: 0.3px;
	color: var(--secondary-color);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.collaborators-table .c-count {
	width: 110px;
	color: var(--secondary-color);
	white-space: nowrap;
}

.collaborators-table .c-count b {
	color: var(--text-color);
	margin-right: 5px;
}

.collaborators-table .c-links {
	width: 74px;
	text-align: right;
	white-space: nowrap;
}

.collaborator-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	color: var(--secondary-color);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.collaborator-link svg {
	width: 15px;
	height: 15px;
}

.collaborator-link:hover {
	background: var(--nav-elevated-color);
}

.collaborator-link-www:hover {
	color: #2b93ef;
}

.collaborator-link-scholar:hover {
	color: #2f9e57;
}

[data-theme="dark"] .collaborator-link-scholar:hover {
	color: #5fd08a;
}

.collaborator-link-orcid:hover {
	color: #a6ce39;
}

.item > .thumbnail {
	width: 128px;
	height: 72px;

	margin-right: 22px;
	margin-top: 4px;
}

.item > .content {
	margin-right: auto;
}

.item > .extra-info > p {
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 0;
}

.item > .extra-info {
	min-width: fit-content;
	text-align: end;
}

.w-35 {
	width: 35%;
}

.w-65 {
	width: 65%;
}

.w-100 {
	width: 100%;
}

.justify {
	text-align: justify;
}

.special {
	background-color: var(--link-color);
	color: white;
	border-radius: 8px;
	font-size: 10px !important;
	padding: 2px 6px;

	margin-left: 8px;
	margin-top: 2px;
	margin-bottom: 0 !important;
	align-self: center;
}

.flex {
	display: flex;
}

@media (max-width: 1068px) {
	body {
		width: 700px;
	}

	header h1 {
		font-size: 48px;
	}

	header h2 {
		font-size: 20px;
	}

	#contact-info p,
	#contact-info a {
		font-size: 12px;
	}

	#contact-info ul {
		margin-right: 16px;
	}

	section > .content > .item * {
		font-size: 13px;
	}

	section > .content > .item > .content > p {
		font-size: 11px;
	}

	.special {
		font-size: 8px !important;
	}
}

@media (max-width: 720px) {
	body {
		width: 575px;
	}

	main {
		margin-top: 20px;
	}

	.cv-nav {
		padding: 0 12px;
	}

	.cv-nav-shortcut {
		display: none;
	}

	header {
		position: relative;

		align-items: flex-start;
	}

	header h2 {
		text-align: start;
	}

	header > .mobile-contact-info {
		display: flex;

		margin-top: 20px;
	}

	.mobile-contact-info ul {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;

		list-style: none;

		column-gap: 12px;
	}

	.mobile-contact-info ul li a {
		color: var(--link-color);
		text-decoration: none;
	}

	#contact-info .content:first-child {
		display: none;
	}

	#contact-info .content:last-child {
		width: 100% !important;
	}

	section > .content > .title {
		margin-bottom: 28px;
	}

	.item .date {
		min-width: 120px;
	}

	section > .content > .item * {
		font-size: 11px;
	}

	.item .extra-info {
		min-width: 110px;
		text-align: end;
	}

	#contact-info p,
	#contact-info a {
		display: block;
		font-size: 12px;
	}

	.content > p {
		display: none;
	}

	.special {
		font-size: 7px !important;
	}
}

@media (max-width: 610px) {
	body {
		width: 350px;
	}

	header h1 {
		font-size: 32px;
	}

	header h2 {
		font-size: 18px;
	}

	.cv-nav {
		padding: 0 10px;
	}

	.cv-nav-print {
		padding: 0 11px;
	}

	section:not(#contact-info) > .content {
		display: none;
	}

	section > .mobile-content {
		display: flex;
		flex-direction: column;
	}

	section > .mobile-content > .item {
		display: flex;
		flex-direction: column;
		row-gap: 8px;
		margin-bottom: 20px;
	}

	section > .mobile-content > .item:last-child {
		margin-bottom: 0;
	}

	section > .mobile-content > .item > .group {
		display: flex;
		flex-direction: row;

		column-gap: 10px;
		font-size: 12px;
	}

	section > .mobile-content > .item > .group > .date {
		min-width: fit-content;
	}

	section > .mobile-content > .item > .group > .extra-info {
		font-weight: bold;
		text-align: start;
	}

	section > .mobile-content > .item > .content {
		font-size: 13px;
	}

	section > .mobile-content .extra-info p {
		text-align: start;
	}

	section > .mobile-content .extra-info,
	section > .mobile-content .date {
		min-width: fit-content;
	}

	#publications .item {
		display: flex;
		flex-direction: column;
		row-gap: 4px;
	}

	#publications .date {
		font-weight: bold;
	}

	#collaborators .collaborators-table td {
		padding: 9px 2px;
	}

	#collaborators .collaborators-table .c-count {
		width: auto;
		font-size: 12px;
	}

	#collaborators .collaborators-table .c-links {
		width: auto;
	}

	.cv-footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
		padding: 24px 0 36px;
	}

	.cv-footer-side {
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 390px) {
	.cv-nav-print-label {
		display: none;
	}

	.cv-nav-print {
		padding: 0 10px;
	}

	.special {
		margin-top: 0 !important;
		margin-bottom: 2px !important;
	}
}

/* Footer — slim end-of-page bar */
.cv-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 40px;
	padding: 26px 0 48px;
	border-top: 1px solid var(--nav-border-color);
	font-size: 14px;
	color: var(--secondary-color);
}

.cv-footer-copy {
	font-size: 14px;
	color: var(--secondary-color);
}

.cv-footer-side {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
}

.cv-footer-links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cv-footer-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	color: var(--secondary-color) !important;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.cv-footer-links a:hover {
	color: var(--link-color) !important;
	background: var(--nav-elevated-color);
}

.cv-footer-links i {
	font-size: 15px;
}

.cv-footer-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
}

.cv-footer-updated {
	color: var(--secondary-color);
}

.cv-footer-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--nav-border-color);
	border-radius: 999px;
	background: var(--nav-elevated-color);
	color: var(--text-color) !important;
	transition: color 0.15s ease, background-color 0.15s ease,
		border-color 0.15s ease;
}

.cv-footer-top:hover {
	color: var(--link-color) !important;
	border-color: var(--link-color);
	background: var(--nav-hover-color);
}

.cv-footer-top i {
	font-size: 11px;
}

/* "New" badge — standard pill marking a recently added item */
.badge-new {
	display: inline-block;
	margin-right: 7px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--link-color);
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	vertical-align: 1px;
}

body.error-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: 48px;
	padding-bottom: 18px;
}

.error-page header {
	flex: 1;
	min-height: 0;
}

.error-page .cv-nav-home {
	padding: 0 12px;
	border-radius: 999px;
	background-color: var(--nav-elevated-color);
}

.error-page .cv-nav-home span {
	white-space: nowrap;
}

.error-page header h1 {
	font-size: 92px;
	letter-spacing: 16px;
	margin-top: 0;
}

.error-page header h2 {
	font-size: 26px;
}

.error-page header p {
	max-width: 860px;
	margin-top: 22px;
	font-size: 18px;
	line-height: 1.7;
	text-align: center;
}

.error-page main {
	margin: 0;
}

.return-home-button {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding: 14px 24px;
	border-radius: 999px;
	background-color: var(--background-color-opposite);
	color: var(--text-color-opposite) !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.return-home-button::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(43, 147, 239, 0.12);
	transform: translate(7px, 7px);
	z-index: -1;
	transition: transform 0.18s ease;
}

.return-home-button:hover {
	transform: translateY(-2px) rotate(-1deg);
	box-shadow: 0 24px 44px rgba(0, 0, 0, 0.16);
}

.return-home-button:hover::before {
	transform: translate(4px, 4px);
}

.return-home-button i,
.return-home-button span {
	color: inherit;
}

.error-divider {
	width: 100%;
	height: 1px;
	background-color: var(--background-color-opposite);
	opacity: 0.6;
}

[data-theme="dark"] .return-home-button {
	box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .return-home-button::before {
	background: rgba(255, 255, 255, 0.08);
}

.health-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-top: 48px;
	padding-bottom: 18px;
}

.health-page header {
	flex: 1;
	min-height: 0;
	position: relative;
	padding-inline: 20px;
}

.health-page .cv-nav-home {
	padding: 0 12px;
	border-radius: 999px;
	background-color: var(--nav-elevated-color);
}

.health-page .cv-nav-home span {
	white-space: nowrap;
}

.health-page header::before,
.health-page header::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.health-page header::before {
	width: 280px;
	height: 280px;
	top: calc(50% - 190px);
	left: calc(50% - 420px);
	background: radial-gradient(
		circle,
		rgba(82, 150, 112, 0.12) 0%,
		rgba(82, 150, 112, 0.04) 48%,
		rgba(82, 150, 112, 0) 75%
	);
}

.health-page header::after {
	width: 220px;
	height: 220px;
	top: calc(50% + 20px);
	right: calc(50% - 390px);
	background: radial-gradient(
		circle,
		rgba(110, 170, 122, 0.1) 0%,
		rgba(110, 170, 122, 0.03) 50%,
		rgba(110, 170, 122, 0) 76%
	);
}

.health-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid rgba(82, 150, 112, 0.25);
	border-radius: 999px;
	background: rgba(82, 150, 112, 0.08);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #2e6a46;
}

.health-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #49a267;
	box-shadow: 0 0 0 0 rgba(73, 162, 103, 0.45);
	animation: health-pulse 1.8s ease-out infinite;
}

.health-orbit {
	position: relative;
	display: grid;
	place-items: center;
	width: 196px;
	height: 196px;
	margin-top: 28px;
}

.health-orbit-ring {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(82, 150, 112, 0.24);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(82, 150, 112, 0.12) 0%,
		rgba(82, 150, 112, 0.02) 60%,
		rgba(82, 150, 112, 0) 78%
	);
	animation: health-orbit 12s linear infinite;
}

.health-orbit-ring-secondary {
	inset: 18px;
	border-style: dashed;
	animation-direction: reverse;
	animation-duration: 18s;
}

.health-orbit-core {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border-radius: 28px;
	background: linear-gradient(145deg, #6fa97b, #4f8e65);
	box-shadow:
		0 20px 35px rgba(59, 108, 75, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transform: rotate(-8deg);
}

.health-orbit-core i {
	font-size: 34px;
	color: white;
}

.health-page header h1 {
	margin-top: 8px;
	font-size: 78px;
	letter-spacing: 10px;
}

.health-page header h2 {
	font-size: 24px;
}

.health-page main {
	margin: 0;
}

.health-divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(
		90deg,
		rgba(82, 150, 112, 0.08) 0%,
		rgba(82, 150, 112, 0.5) 20%,
		rgba(82, 150, 112, 0.5) 80%,
		rgba(82, 150, 112, 0.08) 100%
	);
}

[data-theme="dark"] .health-status-pill {
	border-color: rgba(116, 186, 137, 0.28);
	background: rgba(116, 186, 137, 0.12);
	color: #92d4a5;
}

[data-theme="dark"] .health-page header::before {
	background: radial-gradient(
		circle,
		rgba(101, 171, 120, 0.16) 0%,
		rgba(101, 171, 120, 0.05) 48%,
		rgba(101, 171, 120, 0) 75%
	);
}

[data-theme="dark"] .health-page header::after {
	background: radial-gradient(
		circle,
		rgba(122, 194, 138, 0.12) 0%,
		rgba(122, 194, 138, 0.04) 50%,
		rgba(122, 194, 138, 0) 76%
	);
}

[data-theme="dark"] .health-orbit-ring {
	border-color: rgba(122, 194, 138, 0.24);
	background: radial-gradient(
		circle,
		rgba(122, 194, 138, 0.13) 0%,
		rgba(122, 194, 138, 0.03) 60%,
		rgba(122, 194, 138, 0) 78%
	);
}

[data-theme="dark"] .health-orbit-core {
	background: linear-gradient(145deg, #6aa87f, #44785a);
	box-shadow:
		0 20px 35px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes health-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(73, 162, 103, 0.45);
	}
	70% {
		box-shadow: 0 0 0 12px rgba(73, 162, 103, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(73, 162, 103, 0);
	}
}

@keyframes health-orbit {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 1068px) {
	.error-page header h1 {
		font-size: 78px;
		letter-spacing: 14px;
	}

	.error-page header h2 {
		font-size: 22px;
	}

	.error-page header p {
		max-width: 100%;
		font-size: 16px;
	}

	.health-page header::before,
	.health-page header::after {
		display: none;
	}

	.health-page header h1 {
		font-size: 64px;
		letter-spacing: 8px;
	}

	.health-page header h2 {
		font-size: 21px;
	}
}

@media (max-width: 610px) {
	body.error-page header h1 {
		font-size: 56px;
		letter-spacing: 12px;
	}

	body.error-page header h2 {
		font-size: 18px;
	}

	body.error-page header p {
		font-size: 14px;
	}

	body.error-page .return-home-button {
		width: 100%;
		justify-content: center;
	}

	body.health-page header {
		padding-inline: 0;
	}

	body.health-page .health-status-pill {
		font-size: 11px;
		letter-spacing: 1px;
	}

	body.health-page .health-orbit {
		width: 160px;
		height: 160px;
		margin-top: 22px;
	}

	body.health-page .health-orbit-core {
		width: 76px;
		height: 76px;
		border-radius: 24px;
	}

	body.health-page .health-orbit-core i {
		font-size: 28px;
	}

	body.health-page header h1 {
		font-size: 48px;
		letter-spacing: 6px;
	}

	body.health-page header h2 {
		font-size: 18px;
	}
}

@media (max-width: 390px) {
	.error-page header h1 {
		font-size: 48px;
		letter-spacing: 10px;
	}
}

@media print {
	* {
		color: #121212 !important;
	}
	body {
		width: 210mm;
		height: 297mm;
		margin: 0;
		background: none;
	}

		#cv-nav,
		#toc-panel,
		#toc-overlay {
		display: none;
	}

	main {
		margin: 40px 0;
	}

	header h1 {
		margin-top: 0;
	}

	section {
		break-inside: avoid;
	}

	section .title {
		margin-bottom: 20px !important;
	}

	#contact-info {
		column-gap: 20px;
	}

	#contact-info .content:first-child {
		margin-left: none;
	}

	.special {
		display: none;
	}

	#publications .publication-label {
		background: none !important;
		padding: 0 4px;
		color: #121212 !important;
		border: 1px solid #999;
		font-size: 9px;
	}

	#publications .publication-label svg {
		display: none;
	}

	.item > .thumbnail {
		visibility: visible !important;
		opacity: 1 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body::after {
		content: url("/assets/imgs/qr-code-print.png");
		position: fixed;
		bottom: 0;
		right: 0;
	}

	@page {
		size: A4;
		margin: 20mm;
	}
}
