/**
 * Theme SEO components — breadcrumbs, TOC, author box, article meta.
 *
 * @package Egypt_Business
 */

/* Breadcrumbs */
.eb-breadcrumbs,
.nm-breadcrumbs {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--raz-muted-text-color, var(--eb-card-meta, rgba(255, 255, 255, 0.68)));
}

.eb-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	list-style-type: none;
	counter-reset: none;
}

.eb-breadcrumbs__list > li {
	display: inline-flex;
	align-items: center;
	max-inline-size: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	list-style-type: none;
}

.eb-breadcrumbs__list > li::marker {
	content: none;
}

.eb-breadcrumbs__item:not(.eb-breadcrumbs__item--last)::after {
	content: "/";
	margin-inline: 0.35rem 0.5rem;
	color: var(--eb-muted, rgba(255, 255, 255, 0.45));
	font-weight: 400;
	user-select: none;
	pointer-events: none;
}

.eb-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	min-inline-size: 0;
}

.eb-breadcrumbs__sep {
	display: none;
}

.eb-breadcrumbs__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.eb-breadcrumbs__link:hover,
.eb-breadcrumbs__link:focus-visible {
	color: var(--eb-accent, #f6b938);
}

.eb-breadcrumbs__current {
	color: var(--eb-text, #fff);
	font-weight: 600;
	overflow-wrap: anywhere;
	word-break: break-word;
}

[dir="rtl"] .eb-breadcrumbs__list {
	flex-direction: row;
}

/* Unified site hero (archive reference layout) */
.eb-site-hero {
	display: block;
	max-width: min(960px, 100%);
	width: 100%;
	text-align: start;
	margin-block-end: clamp(1.25rem, 3vw, 2rem);
}

.eb-site-hero__breadcrumb {
	display: block;
	width: 100%;
	margin-block-end: 0.75rem;
}

.eb-site-hero__content {
	display: block;
	width: 100%;
}

.eb-site-hero__header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: min(960px, 100%);
	text-align: start;
	margin: 0;
}

.eb-site-hero__eyebrow,
.eb-site-hero__lead,
.eb-site-hero__meta {
	display: block;
	width: 100%;
}

.eb-site-hero__eyebrow {
	margin-block-end: 0.65rem;
}

.eb-site-hero__title,
.eb-site-hero .eb-archive__title,
.eb-site-hero .eb-article-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 2.15rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.eb-site-hero--single .eb-site-hero__title,
.eb-site-hero--single .eb-article-title {
	font-size: clamp(1.35rem, 2.5vw, 2.25rem);
}

.eb-site-hero__lead {
	margin-block-start: clamp(10px, 1.8vw, 16px);
}

.eb-site-hero__meta {
	margin-block-start: clamp(12px, 2vw, 20px);
}

.eb-site-hero__description {
	margin-block-start: clamp(10px, 1.8vw, 16px);
}

.eb-site-hero--single .eb-site-hero__header {
	gap: 0;
}

.eb-site-hero .eb-archive__header {
	margin-block-end: 0;
}

@media (max-width: 640px) {
	.eb-site-hero__breadcrumb {
		margin-block-end: 0.65rem;
	}

	.eb-breadcrumbs__list {
		gap: 0.25rem 0;
	}
}

/* Article meta extras */
.eb-seo-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: var(--eb-muted, rgba(255, 255, 255, 0.72));
}

.eb-seo-article-meta__item:not(:last-child)::after {
	content: "·";
	margin-inline-start: 0.75rem;
	opacity: 0.6;
}

/* Table of contents */
.eb-seo-toc {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--eb-border, rgba(255, 255, 255, 0.12));
	border-radius: 0.65rem;
	background: var(--eb-surface, rgba(255, 255, 255, 0.04));
}

.eb-seo-toc__title {
	margin: 0 0 0.65rem;
	font-size: 0.9375rem;
	font-weight: 700;
}

.eb-seo-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: eb-toc;
}

.eb-seo-toc__item {
	margin: 0.35rem 0;
}

.eb-seo-toc__item--h3 {
	padding-inline-start: 1rem;
	font-size: 0.875rem;
}

.eb-seo-toc__link {
	color: var(--raz-article-link-color, var(--eb-accent, #d4af37));
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--raz-article-link-color, #d4af37) 35%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease, text-decoration-color 0.2s ease;
}

.eb-seo-toc__link:hover,
.eb-seo-toc__link:focus-visible {
	color: var(--raz-article-link-hover-color, var(--eb-accent, #f2c75c));
	border-bottom-color: currentColor;
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: none;
}

html.eb-seo-has-toc-support {
	scroll-behavior: smooth;
}

/* Author box */
.eb-seo-author-box {
	margin: 2rem 0 0;
	padding: 1.25rem;
	border: 1px solid var(--eb-border, rgba(255, 255, 255, 0.12));
	border-radius: 0.75rem;
	background: var(--eb-surface, rgba(255, 255, 255, 0.03));
}

.eb-seo-author-box__inner {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.eb-seo-author-box__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.eb-seo-author-box__name {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
}

.eb-seo-author-box__name-link {
	color: inherit;
	text-decoration: none;
}

.eb-seo-author-box__name-link:hover,
.eb-seo-author-box__name-link:focus-visible {
	color: var(--eb-accent, #f6b938);
}

.eb-seo-author-box__bio {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

.eb-seo-author-box__bio p:last-child {
	margin-bottom: 0;
}

/* Author archive */
.eb-author-archive,
.nm-author-archive {
	margin-bottom: 1.5rem;
}

.eb-author-archive__profile {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.eb-author-archive__avatar {
	border-radius: 50%;
}

.eb-author-archive__name {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.eb-author-archive__count {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
}

.eb-author-archive__bio {
	font-size: 0.9375rem;
	line-height: 1.65;
}

.eb-author-archive__bio p:last-child {
	margin-bottom: 0;
}

.eb-author-archive__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.eb-author-archive__social-link {
	font-size: 0.8125rem;
	color: var(--eb-accent, #f6b938);
	text-decoration: none;
}

.eb-author-archive__social-link:hover,
.eb-author-archive__social-link:focus-visible {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.eb-author-archive__profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.eb-author-archive__social {
		justify-content: center;
	}
}

/* Author expertise (E-E-A-T) */
.eb-seo-author-expertise {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: var(--eb-muted, rgba(255, 255, 255, 0.72));
}

.eb-seo-author-expertise__item:not(:last-child)::after {
	content: "·";
	margin-inline-start: 0.75rem;
	opacity: 0.6;
}

.eb-admin-subsection-title {
	margin: 1.5rem 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
}
