/**
 * Author archive styles.
 *
 * Loaded only on public WordPress author archives.
 *
 * @package InterviewsQ_Theme
 */

.iq-author {
	--iq-author-background: #ffffff;
	--iq-author-surface: #f8fafc;
	--iq-author-surface-strong: #eef2ff;
	--iq-author-border: #dbe3ec;
	--iq-author-border-strong: #c7d2fe;
	--iq-author-text: #334155;
	--iq-author-text-muted: #64748b;
	--iq-author-heading: #0f172a;
	--iq-author-accent: #3155a6;
	--iq-author-accent-dark: #243f7d;
	--iq-author-radius: 0.8rem;
	--iq-author-shadow: 0 0.5rem 1.5rem rgb(15 23 42 / 8%);

	/*
	 * Reusable Interview Question cards depend on the archive
	 * custom-property namespace.
	 */
	--iq-archive-background: var(--iq-author-background);
	--iq-archive-surface: var(--iq-author-surface);
	--iq-archive-surface-strong: var(--iq-author-surface-strong);
	--iq-archive-border: var(--iq-author-border);
	--iq-archive-border-strong: var(--iq-author-border-strong);
	--iq-archive-text: var(--iq-author-text);
	--iq-archive-text-muted: var(--iq-author-text-muted);
	--iq-archive-heading: var(--iq-author-heading);
	--iq-archive-accent: var(--iq-author-accent);
	--iq-archive-accent-dark: var(--iq-author-accent-dark);
	--iq-archive-radius: var(--iq-author-radius);
	--iq-archive-shadow: var(--iq-author-shadow);

	box-sizing: border-box;
	width: min(100% - 2rem, 72rem);
	margin: clamp(2rem, 5vw, 4.5rem) auto;
	color: var(--iq-author-text);
	font-size: 1rem;
	line-height: 1.7;
}

.iq-author *,
.iq-author *::before,
.iq-author *::after {
	box-sizing: inherit;
}

.iq-author a {
	color: var(--iq-author-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.iq-author a:hover {
	color: var(--iq-author-accent-dark);
}

.iq-author a:focus-visible {
	border-radius: 0.2rem;
	outline: 0.18rem solid var(--iq-author-border-strong);
	outline-offset: 0.18rem;
}

.iq-author__header {
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.iq-author__eyebrow,
.iq-author__questions-eyebrow {
	margin: 0 0 0.75rem;
	color: var(--iq-author-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.4;
	text-transform: uppercase;
}

.iq-author__profile {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 0.0625rem solid var(--iq-author-border);
	border-radius: var(--iq-author-radius);
	background: var(--iq-author-background);
	box-shadow: var(--iq-author-shadow);
}

.iq-author__identity {
	min-width: 0;
}

.iq-author__title {
	margin: 0;
	color: var(--iq-author-heading);
	font-size: clamp(2.2rem, 6vw, 4rem);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.iq-author__bio,
.iq-author__bio-fallback {
	max-width: 48rem;
	margin-top: 1rem;
	color: var(--iq-author-text);
	font-size: clamp(1rem, 2vw, 1.08rem);
	line-height: 1.75;
}

.iq-author__bio > :first-child {
	margin-top: 0;
}

.iq-author__bio > :last-child {
	margin-bottom: 0;
}

.iq-author__bio p {
	margin: 0 0 1rem;
}

.iq-author__bio-fallback {
	margin-bottom: 0;
}

.iq-author__questions {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding-top: clamp(2rem, 5vw, 3rem);
	border-top: 0.0625rem solid var(--iq-author-border);
}

.iq-author__questions-header {
	max-width: 52rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.iq-author__questions-title {
	margin: 0;
	color: var(--iq-author-heading);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 740;
	letter-spacing: -0.03em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.iq-author__questions-description {
	max-width: 46rem;
	margin: 0.85rem 0 0;
	color: var(--iq-author-text-muted);
	line-height: 1.7;
}

.iq-author__question-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 1.5rem);
}

.iq-author__empty {
	max-width: 48rem;
	padding: clamp(1.5rem, 5vw, 2.5rem);
	border: 0.0625rem solid var(--iq-author-border);
	border-radius: var(--iq-author-radius);
	background: var(--iq-author-surface);
}

.iq-author__empty-title {
	margin: 0;
	color: var(--iq-author-heading);
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	line-height: 1.3;
}

.iq-author__empty-message {
	margin: 0.75rem 0 0;
	color: var(--iq-author-text-muted);
}

.iq-author__empty-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.25rem;
	padding: 0.65rem 1rem;
	border: 0.0625rem solid var(--iq-author-accent);
	border-radius: 0.5rem;
	background: var(--iq-author-accent);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.iq-author__empty-link:hover {
	border-color: var(--iq-author-accent-dark);
	background: var(--iq-author-accent-dark);
	color: #ffffff;
}

.iq-author .navigation.pagination {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.iq-author .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.iq-author .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	min-height: 2.6rem;
	padding: 0.45rem 0.7rem;
	border: 0.0625rem solid var(--iq-author-border);
	border-radius: 0.5rem;
	background: var(--iq-author-background);
	color: var(--iq-author-accent);
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

.iq-author .page-numbers.current {
	border-color: var(--iq-author-accent);
	background: var(--iq-author-accent);
	color: #ffffff;
}

.iq-author a.page-numbers:hover {
	border-color: var(--iq-author-accent-dark);
	background: var(--iq-author-surface-strong);
	color: var(--iq-author-accent-dark);
}

@media (max-width: 50rem) {
	.iq-author__question-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 37.5rem) {
	.iq-author {
		width: min(100% - 1.25rem, 72rem);
		margin-top: 1.5rem;
		margin-bottom: 3rem;
	}

	.iq-author__profile {
		padding: 1.25rem;
	}

	.iq-author__questions {
		margin-top: 3rem;
	}

	.iq-author__empty-link {
		width: 100%;
	}

	.iq-author .nav-links {
		justify-content: center;
	}
}

@media print {
	.iq-author {
		width: 100%;
		margin: 0;
		color: #000000;
	}

	.iq-author__profile,
	.iq-author__empty {
		border-color: #cccccc;
		box-shadow: none;
	}

	.iq-author__title,
	.iq-author__questions-title,
	.iq-author__empty-title {
		color: #000000;
	}

	.iq-author__empty-link,
	.iq-author .navigation.pagination {
		display: none;
	}
}
