/* ===========================================================
   Page — Author profile (template-author.php)
   מיתוג שיש ניר צבי: Ploni, שחור/אפור, כרטיסים נקיים.
   כל הכללים scoped תחת .nzm-author. RTL.
   =========================================================== */

.nzm-author {
	--nzm-a-font: "Ploni DL 1.1 AAA", "Heebo", "Assistant", system-ui, sans-serif;
	--nzm-a-black: #0b0b0b;
	--nzm-a-ink: #1a1a1a;
	--nzm-a-mute: #4a4a4a;
	--nzm-a-line: #e5e5e5;
	--nzm-a-container: 1600px;
	--nzm-a-pad: clamp(16px, 4vw, 50px);
	--nzm-a-radius: 10px;

	width: 100%;
	overflow-x: clip;
	padding-top: clamp(16px, 2vw, 28px);
	padding-bottom: clamp(48px, 6vw, 80px);
	font-family: var(--nzm-a-font);
	color: var(--nzm-a-ink);
	direction: rtl;
	text-align: right;
}

.nzm-author *,
.nzm-author *::before,
.nzm-author *::after {
	box-sizing: border-box;
}

.nzm-author img {
	max-width: 100%;
	height: auto;
	display: block;
}

.nzm-author a {
	color: inherit;
	text-decoration: none;
}

/* ============================================
   Breadcrumb
   ============================================ */
.nzm-author__breadcrumb {
	max-width: var(--nzm-a-container);
	margin: 0 auto;
	padding: 0 var(--nzm-a-pad) clamp(16px, 2vw, 24px);
	display: flex;
	justify-content: flex-start;
	color: var(--nzm-a-black);
	font-size: 17px;
}

.nzm-author__breadcrumb .nzm-page-breadcrumb__inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nzm-author__breadcrumb a {
	display: inline-flex;
	align-items: center;
	color: inherit;
}

.nzm-author__breadcrumb .nzm-page-breadcrumb__current {
	font-weight: 500;
}

/* ============================================
   Bio card
   ============================================ */
.nzm-author__bio {
	max-width: var(--nzm-a-container);
	margin: 0 auto clamp(40px, 5vw, 64px);
	padding: 0 var(--nzm-a-pad);
	display: flex;
	align-items: flex-start;
	gap: clamp(24px, 3.5vw, 48px);
}

.nzm-author__photo {
	width: clamp(140px, 16vw, 220px);
	height: clamp(140px, 16vw, 220px);
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #ededed;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
}

.nzm-author__bio-text {
	flex: 1;
	min-width: 0;
}

.nzm-author__name {
	margin: 0 0 10px;
	color: var(--nzm-a-black);
	font-size: clamp(30px, 4vw, 54px);
	font-weight: 400;
	line-height: 1.1;
}

.nzm-author__count {
	margin: 0 0 clamp(18px, 2vw, 26px);
	color: var(--nzm-a-mute);
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
}

.nzm-author__bio-heading {
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #000;
	color: var(--nzm-a-black);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 500;
	line-height: 1.2;
}

.nzm-author__bio-desc {
	color: var(--nzm-a-ink);
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 400;
	line-height: 1.6;
}

.nzm-author__bio-desc p {
	margin: 0 0 14px;
}

.nzm-author__bio-desc p:last-child {
	margin-bottom: 0;
}

/* ============================================
   Articles grid
   ============================================ */
.nzm-author__articles {
	max-width: var(--nzm-a-container);
	margin: 0 auto;
	padding: 0 var(--nzm-a-pad);
}

.nzm-author__articles-head {
	margin-bottom: clamp(20px, 2.5vw, 32px);
	padding-bottom: clamp(16px, 2vw, 24px);
	border-bottom: 1px solid var(--nzm-a-line);
}

.nzm-author__articles-title {
	margin: 0;
	color: var(--nzm-a-black);
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 400;
	line-height: 1.15;
}

.nzm-author__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 28px);
}

.nzm-author__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--nzm-a-radius);
	overflow: hidden;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nzm-author__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	opacity: 1;
}

.nzm-author__card-media {
	width: 100%;
	aspect-ratio: 518 / 300;
	overflow: hidden;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	background: #e8e8e8;
}

.nzm-author__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nzm-author__card:hover .nzm-author__card-media img {
	transform: scale(1.04);
}

.nzm-author__card-media-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: #e8e8e8;
}

.nzm-author__card-body {
	padding: clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 28px);
	border: 1px solid var(--nzm-a-line);
	border-top: none;
	border-bottom-left-radius: var(--nzm-a-radius);
	border-bottom-right-radius: var(--nzm-a-radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.nzm-author__card-title {
	margin: 0;
	color: #000;
	font-size: clamp(20px, 1.7vw, 27px);
	font-weight: 500;
	line-height: 1.22;
	text-align: right;
}

.nzm-author__card-excerpt {
	margin: 0;
	color: var(--nzm-a-mute);
	font-size: clamp(15px, 1.1vw, 18px);
	font-weight: 400;
	line-height: 1.5;
	text-align: right;
}

.nzm-author__card-more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #000;
	font-size: clamp(16px, 1.2vw, 19px);
	font-weight: 500;
}

.nzm-author__card-more svg {
	transition: transform 0.25s ease;
}

.nzm-author__card:hover .nzm-author__card-more svg {
	transform: translateX(-6px);
}

.nzm-author__empty {
	color: var(--nzm-a-mute);
	font-size: 19px;
}

/* ============================================
   Pager
   ============================================ */
.nzm-author__pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: clamp(32px, 4vw, 56px);
}

.nzm-author__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: var(--nzm-a-black);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nzm-author__pager a.page-numbers:hover {
	background: #000;
	color: #fff;
	border-color: #000;
	opacity: 1;
}

.nzm-author__pager .page-numbers.current {
	background: #000;
	color: #fff;
	border-color: #000;
}

.nzm-author__pager .page-numbers.dots {
	border-color: transparent;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
	.nzm-author__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nzm-author__grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 680px) {
	.nzm-author__bio {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: clamp(16px, 4vw, 24px);
	}

	.nzm-author__photo {
		width: clamp(120px, 40vw, 170px);
		height: clamp(120px, 40vw, 170px);
	}

	.nzm-author__bio-text {
		width: 100%;
	}

	.nzm-author__name {
		text-align: center;
	}

	.nzm-author__count {
		text-align: center;
	}

	.nzm-author__bio-heading,
	.nzm-author__bio-desc,
	.nzm-author__bio-desc p {
		text-align: right;
	}

	.nzm-author__grid {
		grid-template-columns: 1fr;
	}

	.nzm-author__grid > :last-child:nth-child(odd) {
		grid-column: auto;
	}
}
