/* =========================================
   PÁGINA SINGLE (EXTENSÃO) - NOVO CSS
   ========================================= */

:root {
	--ext-bg-light: #f8f9fa;
	--ext-border: #e2e8f0;
	--ext-text-main: #1e293b;
	--ext-text-muted: #64748b;
	--ext-primary: var(--cor-primaria, #0073aa);
	--ext-primary-hover: var(--cor-primaria-media, #005177);
}

.ext-main-bg {
	background-color: var(--ext-bg-light);
	padding: 3rem 0;
	min-height: 80vh;
}

/* Layout Grid Single */
.ext-single-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	padding-bottom: 3rem;
}

/* Header */
.ext-header-meta {
	display: flex;
	gap: 10px;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.ext-single-header {
	margin-bottom: 2rem;
}

.title-content-ext {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.ext-badge {
	color: #fff;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Variações de Badge */
.ext-badge-success {
	background-color: #28a745;
}
.ext-badge-warning {
	background-color: #d39e00;
}
.ext-badge-gray {
	background-color: #6c757d;
}

.ext-single-title {
	font-size: 2rem;
	color: var(--ext-text-main);
	line-height: 1.3;
}

/* Imagem Destacada */
.ext-featured-image-box {
	margin-bottom: 2.5rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--ext-border);
	width: 15rem;
	height: auto;
	align-self: center;
}
.ext-featured-image-box img {
	width: 100%;
	height: auto;
	display: block;
}

/* Boxes de Conteúdo (Coordenação / Texto) */
.ext-coordinator-box,
.ext-content-box {
	margin-bottom: 2.5rem;
}

.ext-coordinator-box h3,
.ext-content-box h3 {
	font-size: 1.25rem;
	color: var(--ext-text-main);
	margin-bottom: 1rem;
	border-left: 4px solid var(--ext-primary);
	padding-left: 10px;
}

.ext-body-text {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #334155;
	text-align: justify;
}

/* Lista de Pessoas (Coordenação) */
.ext-people-list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid var(--ext-border);
}

.ext-people-list li {
	display: flex;
	flex-direction: column;
}

.person-name {
	font-weight: 700;
	color: var(--ext-text-main);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.person-name i {
	color: var(--ext-primary);
}

.person-role {
	font-size: 0.85rem;
	color: var(--ext-text-muted);
	margin-left: 28px; /* Alinhado com o texto, pulando o ícone */
	margin-top: 2px;
}

/* --- SIDEBAR --- */

.ext-single-sidebar {
	display: flex;
	flex-direction: column;
}

.ext-sidebar-card {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid var(--ext-border);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	margin-bottom: 1.5rem;
	text-align: center;
}

.btn-ext-action-large {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background-color: var(--ext-primary);
	color: #fff;
	padding: 15px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	font-size: 1rem;
	transition: background 0.2s;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.btn-ext-action-large:hover {
	background-color: var(--ext-primary-hover);
	color: #fff;
}

.ext-contact-hint {
	font-size: 0.8rem;
	color: var(--ext-text-muted);
}

.ext-unavailable {
	background: #f1f5f9;
	color: #94a3b8;
	padding: 10px;
	border-radius: 6px;
	font-size: 0.9rem;
}

/* Card de Metadados (Ficha Técnica) */
.ext-meta-card {
	margin-bottom: 2rem;
}

.ext-meta-card h4 {
	font-size: 0.9rem;
	text-transform: uppercase;
	color: var(--ext-text-muted);
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 5px;
}

.ext-details-list {
	list-style: none;
	padding: 0;
	font-size: 0.9rem;
}

.ext-details-list li {
	margin-bottom: 0.8rem;
	border-bottom: 1px solid #f1f5f9;
	color: var(--ext-text-muted);
}

.ext-details-list li strong {
	color: var(--ext-text-main);
	display: inline-block;
	margin-right: 5px;
}

/* Responsivo */
@media (max-width: 992px) {
	.ext-single-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}

	.ext-single-sidebar {
		order: 2;
	}
}
