/**
 * Çiğdem Yalçın — profil sayfası
 */

body.cigdem-profile-page {
	--ysmn-page-pad-x: calc(var(--ysmn-content-gutter) + max(0px, (100vw - var(--ysmn-content-max)) / 2));
	--cigdem-viewport-h: calc(100svh - var(--ysmn-header-height, 96px));
	--cigdem-viewport-h: calc(100dvh - var(--ysmn-header-height, 96px));
	background: #fff;
	color: inherit;
	overflow-x: clip;
}

body.admin-bar.cigdem-profile-page {
	--cigdem-viewport-h: calc(100svh - var(--ysmn-header-height, 96px) - 32px);
	--cigdem-viewport-h: calc(100dvh - var(--ysmn-header-height, 96px) - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.cigdem-profile-page {
		--cigdem-viewport-h: calc(100svh - var(--ysmn-header-height, 96px) - 46px);
		--cigdem-viewport-h: calc(100dvh - var(--ysmn-header-height, 96px) - 46px);
	}
}

body.cigdem-profile-page .site-footer {
	margin-top: 0;
	border-top-color: rgba(20, 20, 20, 0.08);
	background: #fff;
	backdrop-filter: none;
}

body.cigdem-profile-page .site-info {
	color: #5c5c5c;
}

.site-main.site-main--cigdem {
	max-width: none;
	padding: 0;
}

.cigdem-profile__shell {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* —— Hero: sol görsel / sağ içerik —— */
.cigdem-profile__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	grid-template-areas: 'media textpanel';
	align-items: stretch;
	width: 100%;
	max-width: var(--ysmn-content-max);
	min-height: var(--cigdem-viewport-h);
	height: var(--cigdem-viewport-h);
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(1rem, 2.5vw, 1.75rem) var(--ysmn-content-gutter) clamp(1rem, 2.5vw, 1.75rem) 0;
	column-gap: clamp(1.5rem, 3.5vw, 3rem);
	row-gap: 0;
	background: #fff;
	overflow: hidden;
}

.cigdem-profile__hero > * {
	min-width: 0;
	min-height: 0;
}

.cigdem-profile__hero--no-image {
	grid-template-columns: 1fr;
	grid-template-areas: 'textpanel';
	max-width: var(--ysmn-content-max);
}

.cigdem-profile__figure {
	grid-area: media;
	margin: 0;
	width: 100%;
	height: 100%;
	display: block;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}

.cigdem-profile__media {
	width: 100%;
	height: 100%;
	min-height: 0;
	line-height: 0;
	display: block;
	overflow: hidden;
}

.cigdem-profile__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

.cigdem-profile__hero-text-panel {
	grid-area: textpanel;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
	min-height: 0;
	padding: clamp(0.5rem, 1.5vw, 1rem) 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.cigdem-profile__hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.75rem, 3.25vw, 2.75rem);
	min-width: 0;
	width: 100%;
	max-width: 40rem;
}

.cigdem-profile__title-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.75rem, 1.35vw, 1.1rem);
	width: 100%;
}

.cigdem-profile__header {
	margin: 0;
	padding: 0;
	border: none;
}

.cigdem-profile__title {
	margin: 0;
	font-family: "Inter Tight", system-ui, sans-serif;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: normal;
	color: #141414;
}

.cigdem-profile__content-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.45rem, 0.9vw, 0.65rem);
	width: 100%;
}

.cigdem-profile__role {
	margin: 0;
	padding: 0;
	font-family: "Inter Tight", system-ui, sans-serif;
	font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	color: #767676;
}

.cigdem-profile__intro {
	margin: 0;
	width: 100%;
	min-height: 0;
	font-family: "Inter Tight", system-ui, sans-serif;
	font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
	font-weight: 400;
	line-height: 1.75;
	color: #2c333d;
	text-align: left;
}

.cigdem-profile__intro p {
	margin: 0 0 1.35em;
}

.cigdem-profile__intro p:last-child {
	margin-bottom: 0;
}

.cigdem-profile__body-block {
	width: min(100%, var(--ysmn-content-max));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ysmn-content-gutter);
	padding-right: var(--ysmn-content-gutter);
	padding-top: 0.75rem;
	border-top: 1px solid rgba(18, 21, 26, 0.12);
}

.cigdem-profile__body {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: #1e2430;
	max-width: 68ch;
}

.cigdem-profile__body p {
	margin: 0 0 1.1em;
}

.cigdem-profile__body p:last-child {
	margin-bottom: 0;
}

.cigdem-profile__extra-block {
	width: min(100%, var(--ysmn-content-max));
	margin-left: auto;
	margin-right: auto;
	padding:
		clamp(1.5rem, 4vw, 2.5rem)
		var(--ysmn-content-gutter)
		clamp(2rem, 5vw, 3rem);
	border-top: 1px solid rgba(18, 21, 26, 0.1);
}

.cigdem-profile__extra {
	font-size: 0.9875rem;
	line-height: 1.65;
	color: #252b33;
	max-width: 68ch;
}

@media (max-width: 900px) {
	.cigdem-profile__hero-text-panel {
		padding: clamp(0.75rem, 2vw, 1rem) 0 0;
		overflow: visible;
	}

	.cigdem-profile__hero {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 38vh) minmax(0, 1fr);
		grid-template-areas:
			'media'
			'textpanel';
		max-width: none;
		height: auto;
		min-height: var(--cigdem-viewport-h);
		padding:
			clamp(0.75rem, 3vw, 1.25rem)
			var(--ysmn-content-gutter);
		column-gap: 0;
		row-gap: clamp(1rem, 3vw, 1.5rem);
	}

	.cigdem-profile__figure,
	.cigdem-profile__media {
		min-height: 0;
	}

	.cigdem-profile__img {
		object-position: center top;
	}

	.cigdem-profile__hero--no-image {
		grid-template-areas: 'textpanel';
		grid-template-rows: minmax(0, 1fr);
	}

	.cigdem-profile__hero-text-panel {
		justify-content: flex-start;
	}

	.cigdem-profile__hero-text {
		max-width: none;
		gap: clamp(1.25rem, 4vw, 1.75rem);
	}

	.cigdem-profile__title {
		font-size: clamp(1.65rem, 6.5vw, 2.25rem);
	}
}
