.siprof {
	--siprof-blue: #0f5d75;
	--siprof-blue-strong: #09536b;
	--siprof-cyan: #17b7ca;
	--siprof-gold: #f2a000;
	--siprof-muted: #697582;
	--siprof-line: #e6edf1;
	--siprof-text: #26313a;
	--siprof-heading: #1f2c36;
	--siprof-surface: #ffffff;
	--siprof-surface-alt: #f8fafb;
	--siprof-chip-bg: #dff5f7;
	--siprof-chip-text: #24424b;
	--siprof-avatar-border: #eef5f7;
	color: var(--siprof-text);
	font-family: inherit;
}

.siprof,
.siprof * {
	box-sizing: border-box;
}

.siprof--notice {
	border: 1px solid var(--siprof-line);
	border-left: 4px solid var(--siprof-gold);
	border-radius: 8px;
	padding: 14px 16px;
	background: var(--siprof-surface);
}

.siprof .siprof__header {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	border: 1px solid var(--siprof-line);
	border-radius: 8px 8px 0 0;
	background: var(--siprof-surface);
}

.siprof .siprof__identity {
	flex: 0 1 680px;
	min-width: min(100%, 280px);
	max-width: 680px;
}

.siprof .siprof__avatar {
	display: block;
	flex: 0 0 120px;
	width: 120px;
	max-width: 120px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	border: 4px solid var(--siprof-avatar-border);
}

.siprof .siprof__name {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 8px;
	font-size: clamp(22px, 2.4vw, 34px);
	line-height: 1.18;
	letter-spacing: 0;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

.siprof .siprof__name a {
	display: inline;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
	white-space: normal;
	color: var(--siprof-blue-strong);
	text-decoration: none;
}

.siprof .siprof__line {
	display: block;
	max-width: none;
	color: var(--siprof-muted);
	font-size: clamp(14px, 1.8vw, 16px);
	line-height: 1.6;
	word-break: normal;
	overflow-wrap: normal;
}

.siprof .siprof__subjects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.siprof .siprof__subjects span {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--siprof-chip-bg);
	color: var(--siprof-chip-text);
	font-size: 12px;
}

.siprof__scores {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border: 1px solid var(--siprof-line);
	border-top: 0;
	background: var(--siprof-surface-alt);
}

.siprof__score {
	display: grid;
	gap: 5px;
	min-height: 104px;
	place-items: center;
	padding: 18px 14px;
	text-align: center;
	border-right: 1px solid var(--siprof-line);
}

.siprof__score:last-child {
	border-right: 0;
}

.siprof__score strong {
	color: var(--siprof-heading);
	font-size: 28px;
	line-height: 1;
}

.siprof__score span {
	color: var(--siprof-muted);
	font-size: 12px;
}

.siprof__metrics {
	margin-top: 18px;
	border: 1px solid var(--siprof-line);
	border-radius: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--siprof-surface);
}

.siprof__metrics table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
}

.siprof__metrics th,
.siprof__metrics td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--siprof-line);
	text-align: left;
}

.siprof__metrics thead th {
	color: var(--siprof-blue);
	font-size: 13px;
}

.siprof__metrics tbody tr:last-child th,
.siprof__metrics tbody tr:last-child td {
	border-bottom: 0;
}

.siprof__publications {
	margin-top: 22px;
}

.siprof__publications.is-loading {
	opacity: 0.62;
	pointer-events: none;
}

.siprof__tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 18px;
	padding: 4px;
	border: 1px solid var(--siprof-line);
	border-radius: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--siprof-surface);
	scrollbar-width: thin;
}

.siprof__tab {
	appearance: none;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 6px;
	background: transparent;
	color: var(--siprof-muted);
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.siprof__tab:hover,
.siprof__tab:focus {
	color: var(--siprof-blue-strong);
	background: var(--siprof-surface-alt);
	text-decoration: none;
}

.siprof__tab.is-active {
	color: #ffffff;
	background: var(--siprof-blue-strong);
}

.siprof__tab:disabled {
	cursor: wait;
}

.siprof__section-title {
	margin-bottom: 14px;
	color: var(--siprof-gold);
	font-size: 20px;
	font-weight: 700;
}

.siprof__publication {
	padding: 18px 0;
	border-top: 1px solid var(--siprof-line);
}

.siprof__publication h4 {
	margin: 0 0 9px;
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.4;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.siprof__publication h4 a {
	color: var(--siprof-blue-strong);
	text-decoration: none;
}

.siprof__publication h4 a:hover {
	text-decoration: underline;
}

.siprof__publication-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--siprof-muted);
	font-size: 13px;
	line-height: 1.45;
}

.siprof__publication-meta span:first-child {
	color: #e78600;
}

.siprof__empty {
	margin: 0;
	color: var(--siprof-muted);
}

@media (prefers-color-scheme: dark) {
	.siprof {
		--siprof-blue: #7fd6e7;
		--siprof-blue-strong: #5fc7dc;
		--siprof-cyan: #4fd2e6;
		--siprof-gold: #ffb21a;
		--siprof-muted: #a7b4bf;
		--siprof-line: #34434b;
		--siprof-text: #e5eef3;
		--siprof-heading: #f5fafc;
		--siprof-surface: #232a2f;
		--siprof-surface-alt: #1c2328;
		--siprof-chip-bg: #183f49;
		--siprof-chip-text: #d9f7fb;
		--siprof-avatar-border: #34434b;
	}
}

.dark .siprof,
.dark-mode .siprof,
[data-theme="dark"] .siprof,
[data-bs-theme="dark"] .siprof,
body.dark .siprof,
body.dark-mode .siprof {
	--siprof-blue: #7fd6e7;
	--siprof-blue-strong: #5fc7dc;
	--siprof-cyan: #4fd2e6;
	--siprof-gold: #ffb21a;
	--siprof-muted: #a7b4bf;
	--siprof-line: #34434b;
	--siprof-text: #e5eef3;
	--siprof-heading: #f5fafc;
	--siprof-surface: #232a2f;
	--siprof-surface-alt: #1c2328;
	--siprof-chip-bg: #183f49;
	--siprof-chip-text: #d9f7fb;
	--siprof-avatar-border: #34434b;
}

@media (max-width: 760px) {
	.siprof .siprof__header {
		gap: 16px;
		padding: 22px 18px;
	}

	.siprof .siprof__avatar {
		flex-basis: 92px;
		width: 92px;
		max-width: 92px;
	}

	.siprof .siprof__name {
		font-size: 22px;
	}

	.siprof__scores {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.siprof__score:nth-child(2n) {
		border-right: 0;
	}
}

@media (max-width: 480px) {
	.siprof {
		width: 100%;
	}

	.siprof .siprof__header {
		flex-direction: column;
		justify-items: center;
		padding: 22px 16px;
		text-align: center;
	}

	.siprof .siprof__avatar {
		flex-basis: auto;
		width: min(128px, 46vw);
		max-width: 128px;
	}

	.siprof .siprof__subjects {
		justify-content: center;
	}

	.siprof__subjects span {
		max-width: 100%;
		text-align: center;
	}

	.siprof__scores {
		grid-template-columns: 1fr;
	}

	.siprof__score {
		min-height: 88px;
		border-right: 0;
		border-bottom: 1px solid var(--siprof-line);
	}

	.siprof__score:last-child {
		border-bottom: 0;
	}

	.siprof__metrics {
		margin-top: 14px;
		border-radius: 8px;
	}

	.siprof__metrics th,
	.siprof__metrics td {
		padding: 10px 12px;
	}

	.siprof__publication {
		padding: 16px 0;
	}

	.siprof__tabs {
		margin-bottom: 14px;
		border-radius: 8px;
	}

	.siprof__tab {
		min-height: 36px;
		padding: 8px 12px;
		font-size: 13px;
	}

	.siprof__publication-meta {
		display: grid;
		gap: 5px;
	}
}
