/**
 * Casino Compare Hub — Editorial / EEAT presentation
 */

.cch-eeat-section,
.cch-editorial-section {
	width: 100%;
	background: #fff;
}

.seo-content-section + .cch-eeat-section,
.seo-content-section + .cch-editorial-section,
.cch-ai-content-block + .cch-eeat-section,
.last-updated-section + .cch-eeat-section {
	border-top: 0;
}

.cch-editorial-panel {
	padding: var(--cch-card-padding);
	background: #fff;
	border: 1px solid var(--casino-border);
	border-radius: var(--cch-radius-lg);
	box-shadow: var(--casino-card-shadow);
}

.cch-editorial-panel__title {
	margin: 0 0 var(--cch-space-5);
	padding-bottom: var(--cch-space-4);
	font-size: var(--cch-heading-block-lg);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--foreground);
	border-bottom: 1px solid var(--casino-border);
}

.cch-editorial-panel__cards {
	display: flex;
	flex-direction: column;
	gap: var(--cch-space-3);
}

.cch-editorial-panel__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--cch-space-2);
	margin-top: var(--cch-space-5);
	padding-top: var(--cch-space-4);
	border-top: 1px solid var(--casino-border);
	font-size: var(--cch-text-sm);
	line-height: 1.5;
	color: var(--casino-muted);
}

.cch-editorial-panel__meta-item {
	margin: 0;
	width: 100%;
}

.cch-editorial-panel__meta-label {
	font-weight: 600;
}

.cch-editorial-panel__meta-value {
	font-weight: 500;
	color: var(--foreground);
}

.cch-eeat-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--cch-space-4);
	align-items: start;
	padding: var(--cch-space-4) var(--cch-space-5);
	background: var(--casino-page-bg);
	border: 1px solid var(--casino-border);
	border-radius: var(--cch-radius-md);
}

.cch-eeat-card + .cch-eeat-card {
	margin-top: 0;
}

.cch-eeat-card__avatar img,
.cch-eeat-card__avatar .avatar {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 9999px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--casino-border);
}

.cch-eeat-card__body {
	min-width: 0;
}

.cch-eeat-card__role {
	margin: 0 0 var(--cch-space-2);
	font-size: var(--cch-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cch-color-primary);
}

.cch-eeat-card__name {
	margin: 0 0 var(--cch-space-2);
	font-size: var(--cch-heading-block-lg);
	font-weight: 700;
	line-height: 1.3;
	color: var(--foreground);
}

.cch-eeat-card__name a {
	color: inherit;
	text-decoration: none;
	transition: color var(--cch-transition);
}

.cch-eeat-card__name a:hover,
.cch-eeat-card__name a:focus-visible {
	color: var(--cch-color-primary-dark);
}

.cch-eeat-card__title {
	margin: 0 0 var(--cch-space-2);
	font-size: var(--cch-text-sm);
	font-weight: 600;
	line-height: 1.4;
	color: var(--foreground);
}

.cch-eeat-card__credentials {
	margin: 0 0 var(--cch-space-3);
	font-size: var(--cch-text-sm);
	font-weight: 600;
	color: var(--cch-color-primary-dark);
}

.cch-eeat-card__bio {
	margin: 0;
	font-size: var(--cch-text-sm);
	line-height: 1.55;
	color: var(--casino-muted);
}

.cch-eeat-card__bio a {
	color: var(--cch-color-primary);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.cch-eeat-card__bio a:hover,
.cch-eeat-card__bio a:focus-visible {
	color: var(--cch-color-primary-dark);
}

.cch-eeat-card__bio p:last-child {
	margin-bottom: 0;
}

.cch-eeat-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cch-space-2);
	margin: var(--cch-space-3) 0 0;
	padding: 0;
	list-style: none;
}

.cch-eeat-social__link {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	font-size: var(--cch-text-xs);
	font-weight: 600;
	color: var(--foreground);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--casino-border);
	border-radius: 9999px;
	transition: background var(--cch-transition), border-color var(--cch-transition), color var(--cch-transition);
}

.cch-eeat-social__link:hover,
.cch-eeat-social__link:focus-visible {
	color: var(--cch-color-primary-dark);
	background: var(--cch-color-primary-soft);
	border-color: color-mix(in srgb, var(--cch-color-primary) 35%, var(--casino-border));
}

.cch-eeat-social__link:focus-visible {
	outline: 2px solid var(--cch-color-primary);
	outline-offset: 2px;
}

.cch-eeat-card--reviewer,
.cch-eeat-card--fact-checker {
	grid-template-columns: 1fr;
	background: #fff;
}

.cch-eeat-card--fact-checker {
	border-inline-start: 4px solid var(--cch-color-primary);
}

.cch-eeat-card--reviewer {
	border-inline-start: 4px solid var(--casino-gold);
}

.cch-eeat-card__action {
	margin: var(--cch-space-2) 0 0;
	font-size: var(--cch-text-sm);
}

.cch-eeat-card__action a {
	font-weight: 600;
	color: var(--cch-color-primary);
	text-decoration: none;
}

.cch-eeat-card__action a:hover {
	text-decoration: underline;
}

.cch-seo-author-box {
	margin-top: var(--cch-space-6);
	padding-top: var(--cch-space-6);
	border-top: 1px solid var(--casino-border);
}

body.cch-eeat-author-page .eeat-author-page-container {
	max-width: 48rem;
	margin: 0 auto;
	padding: var(--cch-space-10) var(--cch-space-4) var(--cch-space-12);
}

body.cch-eeat-author-page .eeat-author-page-header,
body.cch-eeat-author-page .eeat-author-posts-section {
	background: #fff;
	border: 1px solid var(--casino-border);
	border-radius: var(--cch-radius-lg);
	box-shadow: var(--casino-card-shadow);
	padding: var(--cch-card-padding);
	margin-bottom: var(--cch-space-5);
}

body.cch-eeat-author-page .eeat-author-name {
	font-size: var(--cch-heading-block-lg);
	font-weight: 700;
	color: var(--foreground);
}

@media (min-width: 768px) {
	.cch-eeat-card__avatar img,
	.cch-eeat-card__avatar .avatar {
		width: 6rem;
		height: 6rem;
	}

	.cch-editorial-panel {
		padding: 1.5rem 1.625rem;
	}

	.cch-editorial-panel__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		gap: var(--cch-space-2) var(--cch-space-6);
	}

	.cch-editorial-panel__meta-item {
		width: auto;
	}
}

@media (max-width: 767px) {
	.cch-editorial-panel {
		padding: 1rem;
	}

	.cch-editorial-panel__title {
		font-size: 1.25rem;
		margin-bottom: var(--cch-space-4);
		padding-bottom: var(--cch-space-3);
	}

	.cch-eeat-card {
		grid-template-columns: 1fr;
		gap: var(--cch-space-3);
		padding: var(--cch-space-4);
	}

	.cch-eeat-card--author .cch-eeat-card__avatar {
		justify-self: start;
	}

	.cch-eeat-card__avatar img,
	.cch-eeat-card__avatar .avatar {
		width: 4.5rem;
		height: 4.5rem;
	}

	.cch-eeat-card__name {
		font-size: 1.125rem;
	}

	.cch-eeat-card__bio,
	.cch-eeat-card__title,
	.cch-eeat-card__credentials {
		font-size: 0.9375rem;
	}
}
