/* ==========================================================================
   Βιογραφικό – templates/page-viografiko.php
   Loaded only on the CV page (key `page-viografiko`). The hero panel
   (.be_pghero) and the facts grid (.be_facts) live in main.css.

    1. Hero (portrait + badge)
    2. Facts
    3. About (sticky head + prose)
    4. Clinical interests
    5. Career / education timelines
    6. Scientific work
   ========================================================================== */


/* 1. Hero ------------------------------------------------------------------ */
.be_bio-hero {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.be_bio-sub {
	display: block;
	margin-top: 12px;
	font-size: clamp(19px, 1.6vw, 24px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	color: var(--be-copper-ink);
}

.be_bio-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 4px;
}

.be_bio-photo {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 440px;
	margin: 0;
}

.be_bio-photo .be_img,
.be_bio-photo .be_ph {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--be-r-img);
	box-shadow: 0 30px 60px rgba(16, 38, 43, 0.18);
}

.be_bio-badge {
	position: absolute;
	left: -18px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 20px);
	padding: 14px 18px;
	border-radius: 16px;
	background: var(--be-petrol);
	color: var(--be-on-dark);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	box-shadow: var(--be-shadow-float);
}

.be_bio-badge svg {
	flex: none;
	color: var(--be-copper);
}

@media (max-width: 960px) {
	.be_bio-hero {
		grid-template-columns: 1fr;
	}

	.be_bio-photo {
		justify-self: start;
		max-width: 360px;
	}

	.be_bio-badge {
		left: 12px;
	}
}

@media (max-width: 600px) {
	.be_bio-actions .be_btn {
		width: 100%;
	}
}


/* 2. Facts -------------------------------------------------------------------- */
.be_bio-facts {
	padding-top: 8px;
	padding-bottom: 8px;
}

.be_bio-facts .be_facts > div {
	padding: 22px 24px;
}


/* 3. About --------------------------------------------------------------------- */
.be_bio-split {
	display: grid;
	grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.5fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

.be_bio-split-head {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 120px;
}

.be_bio-quote {
	margin: 10px 0 0;
	padding: 22px 24px;
	border-radius: var(--be-r-card);
	background: var(--be-petrol);
	color: var(--be-on-dark);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.55;
}

.be_bio-prose {
	font-size: 18px;
}

@media (max-width: 960px) {
	.be_bio-split {
		grid-template-columns: 1fr;
	}

	.be_bio-split-head {
		position: static;
	}
}


/* 4. Clinical interests ---------------------------------------------------------- */
.be_bio-interests {
	background: var(--be-strip);
	border-top: 1px solid var(--be-line);
	border-bottom: 1px solid var(--be-line);
}

.be_bio-int-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_bio-int {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	height: 100%;
	min-height: 64px;
	padding: 16px 20px;
	border-radius: 16px;
	background: var(--be-white);
	border: 1px solid var(--be-line);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--be-ink);
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.be_bio-int svg {
	flex: none;
	color: var(--be-copper-ink);
	transition: transform 0.15s ease;
}

.be_bio-int:hover {
	border-color: var(--be-copper);
	color: var(--be-petrol);
}

.be_bio-int:hover svg {
	transform: translateX(3px);
}


/* 5. Timelines -------------------------------------------------------------------- */
.be_bio-path-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 96px);
}

.be_bio-path-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.be_bio-path-title {
	font-size: var(--be-h2-sm);
	color: var(--be-petrol);
	margin-bottom: 10px;
}

.be_tl {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_tl li {
	position: relative;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 20px;
	padding: 0 0 26px;
}

/* The line runs through the dots, between the years and the entries. */
.be_tl li::before {
	content: "";
	position: absolute;
	left: 128px;
	top: 6px;
	bottom: -6px;
	border-left: 1.5px solid var(--be-line-2);
}

.be_tl li:last-child::before {
	display: none;
}

.be_tl li::after {
	content: "";
	position: absolute;
	left: 123px;
	top: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--be-white);
	border: 2px solid var(--be-copper);
}

.be_tl li:first-child::after {
	background: var(--be-copper);
}

.be_tl-years {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--be-copper-ink);
	white-space: nowrap;
}

.be_tl-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-left: 14px;
	line-height: 1.45;
}

.be_tl-body strong {
	font-size: 17px;
	color: var(--be-petrol);
}

.be_tl-body span {
	font-size: 15px;
	color: var(--be-muted);
}

@media (max-width: 960px) {
	.be_bio-path-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.be_tl li {
		grid-template-columns: 1fr;
		gap: 4px;
		padding-left: 24px;
	}

	.be_tl li::before {
		left: 5px;
	}

	.be_tl li::after {
		left: 0;
	}

	.be_tl-body {
		padding-left: 0;
	}
}


/* 6. Scientific work ------------------------------------------------------------------ */
.be_bio-science {
	--be-inset: clamp(0px, 1.2vw, 24px);
	background: var(--be-band);
	margin: 0 var(--be-inset);
	/* The band is inset, its content keeps the page's left edge. */
	padding-left: calc(var(--be-pad-x) - var(--be-inset));
	padding-right: calc(var(--be-pad-x) - var(--be-inset));
	border-radius: var(--be-r-panel-lg);
}

.be_bio-sci-sub {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--be-copper-ink);
}

.be_bio-pub-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.be_bio-pub {
	display: flex;
	gap: 18px;
	padding: 22px 24px;
	border-radius: var(--be-r-card);
	background: var(--be-white);
	border: 1px solid var(--be-line);
}

.be_bio-pub-year {
	flex: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--be-copper-ink);
	padding-top: 2px;
}

.be_bio-pub-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	line-height: 1.45;
}

.be_bio-pub-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--be-petrol);
}

a.be_bio-pub-title {
	text-decoration: underline;
	text-decoration-color: var(--be-tint-3);
	text-underline-offset: 4px;
	transition: text-decoration-color 0.15s ease;
}

a.be_bio-pub-title:hover {
	text-decoration-color: var(--be-copper);
}

.be_bio-pub-meta {
	font-size: 14px;
	font-style: italic;
	color: var(--be-muted);
}

.be_bio-pub-note {
	font-size: 15px;
	color: var(--be-text);
}

.be_bio-more {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.be_bio-acc {
	border-radius: var(--be-r-card);
	background: var(--be-white);
	border: 1px solid var(--be-line);
}

.be_bio-acc > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-size: 18px;
	font-weight: 700;
	color: var(--be-petrol);
	list-style: none;
	cursor: pointer;
}

.be_bio-acc > summary::-webkit-details-marker {
	display: none;
}

.be_bio-acc > summary small {
	font-size: 14px;
	font-weight: 600;
	color: var(--be-muted);
}

.be_bio-acc > summary svg {
	flex: none;
	color: var(--be-copper-ink);
	transition: transform 0.2s ease;
}

.be_bio-acc[open] > summary svg {
	transform: rotate(45deg);
}

.be_bio-acc-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 24px 12px;
	list-style: none;
}

.be_bio-acc-list li {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--be-line-3);
}

.be_bio-acc-year {
	font-size: 14px;
	font-weight: 700;
	color: var(--be-copper-ink);
}

.be_bio-acc-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1.45;
}

.be_bio-acc-body strong {
	font-weight: 600;
	color: var(--be-ink);
}

.be_bio-acc-body span {
	font-size: 14px;
	color: var(--be-muted);
}

@media (max-width: 860px) {
	.be_bio-science {
		margin: 0;
		border-radius: 28px;
	}
}

@media (max-width: 600px) {
	.be_bio-pub {
		flex-direction: column;
		gap: 6px;
		padding: 18px;
	}

	.be_bio-acc > summary {
		padding: 18px;
		font-size: 16px;
	}

	.be_bio-acc-list {
		padding: 0 18px 10px;
	}

	.be_bio-acc-list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
