/**
 * Páginas internas — Agenda, evento singular e páginas genéricas.
 */

.site-main--page,
.site-main--singular {
	max-width: none;
	padding: 0 0 3rem;
}

.portal-page-header {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: 1.5rem var(--portal-space) 0.5rem;
}

.portal-page-header__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--color-secondary, #0c326f);
	line-height: 1.2;
}

.portal-page-header__intro {
	margin: 0;
	font-size: 1.0625rem;
	color: #444;
	line-height: 1.55;
	max-width: 42rem;
}

.portal-page-header__intro p:last-child {
	margin-bottom: 0;
}

.site-main--page .entry-content {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: 0 var(--portal-space);
}

/* Aviso: calendário oficial ≠ agenda de eventos */
.portal-agenda-notice {
	max-width: var(--portal-max-width);
	margin: 0 auto 1.25rem;
	padding: 1rem var(--portal-space);
	background: #eef4fc;
	border: 1px solid #c5d9f0;
	border-radius: 4px;
}

.portal-agenda-notice p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.portal-agenda-notice a {
	font-weight: 600;
}

/* Seções de eventos (agenda) */
.portal-event-section {
	margin-bottom: 1rem;
}

.portal-event-section__inner {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: 0 var(--portal-space) 1.5rem;
}

/* Grade de cards — reutiliza padrões de notícias + br-card */
.portal-event-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.portal-event-card {
	display: block;
	overflow: hidden;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.portal-event-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eef5;
}

.portal-event-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-event-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #d8e4f5, #eef2f8);
}

.portal-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.portal-event-card__meta {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--color-primary, #1351b4);
}

.portal-event-card__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
	font-family: var(--font-heading);
}

.portal-event-card__title a {
	color: var(--color-secondary, #0c326f);
	text-decoration: none;
}

.portal-event-card__title a:hover,
.portal-event-card__title a:focus-visible {
	color: var(--color-primary, #1351b4);
	text-decoration: underline;
}

.portal-event-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	color: #555;
	line-height: 1.45;
}

/* Singular evento */
.site-main--evento .entry {
	max-width: var(--portal-max-width);
	margin: 0 auto;
	padding: 0 var(--portal-space);
}

.portal-page-header--evento {
	padding-bottom: 1rem;
}

.portal-event-single__date {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-primary, #1351b4);
}

.portal-event-single__figure {
	margin: 0 0 1.5rem;
	border-radius: 2px;
	overflow: hidden;
}

.portal-event-single__img {
	width: 100%;
	height: auto;
	display: block;
}

.portal-event-single__back {
	margin: 2rem 0 0;
}

.site-main--evento .portal-btn--primary {
	display: inline-block;
	text-decoration: none;
}

@media (max-width: 64rem) {
	.portal-event-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 30rem) {
	.portal-event-grid {
		grid-template-columns: 1fr;
	}
}
