.aafe-agenda {
	display: block;
	width: 100%;
	max-width: 100%;
}

.aafe-agenda__title {
	margin: 0 0 20px;
	color: #1f2937;
	font-size: 28px;
	line-height: 1.2;
}

.aafe-agenda__events {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.aafe-agenda--layout-cards .aafe-agenda__events {
	--aafe-card-columns: 3;

	display: grid;
	grid-template-columns: repeat(var(--aafe-card-columns), minmax(0, 1fr));
}

.aafe-event {
	--aafe-image-height: 220px;
	--aafe-image-gap: 24px;
	--aafe-image-radius: 12px;
	--aafe-image-object-fit: cover;
	--aafe-image-horizontal-width: 32%;

	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #ffffff;
	color: #1f2937;
	overflow-wrap: anywhere;
}

.aafe-event.aafe-event--has-image {
	display: flex;
	gap: var(--aafe-image-gap);
	align-items: flex-start;
}

.aafe-event.aafe-event--image-top {
	flex-direction: column;
}

.aafe-event.aafe-event--image-left {
	flex-direction: row;
}

.aafe-event.aafe-event--image-right {
	flex-direction: row-reverse;
}

.aafe-event--next {
	border-color: #2563eb;
}

.praxis-event-card--restricted {
	border-color: rgba(249, 115, 22, 0.35);
}

.aafe-event__body {
	flex: 1 1 auto;
	min-width: 0;
}

.aafe-event__image {
	flex-shrink: 0;
	margin: 0;
}

.aafe-event__image img {
	display: block;
	width: 100%;
	height: var(--aafe-image-height);
	border-radius: var(--aafe-image-radius);
	object-fit: var(--aafe-image-object-fit);
}

.aafe-event--image-left .aafe-event__image,
.aafe-event--image-right .aafe-event__image {
	width: var(--aafe-image-horizontal-width);
}

.aafe-event--image-top .aafe-event__image {
	width: 100%;
}

.aafe-event--image-left .aafe-event__body,
.aafe-event--image-right .aafe-event__body {
	flex: 1 1 auto;
}

.aafe-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	color: #4b5563;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.aafe-event__date {
	color: #2563eb;
}

.aafe-event__time {
	color: #4b5563;
}

.aafe-event__title {
	margin: 0 0 8px;
	color: #111827;
	font-size: 20px;
	line-height: 1.3;
}

.aafe-event__location {
	margin-bottom: 8px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.aafe-event__description {
	margin-bottom: 16px;
	color: #374151;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-line;
}

.praxis-event-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-bottom: 10px;
}

.praxis-event-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	padding: 4px 10px;
	border: 1px solid rgba(249, 115, 22, 0.35);
	border-radius: 999px;
	background: rgba(249, 115, 22, 0.12);
	color: #ea580c;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.praxis-event-badge--whatsapp {
	border-color: rgba(34, 197, 94, 0.35);
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
}

.praxis-event-badge--public {
	border-color: rgba(37, 99, 235, 0.22);
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
}

.aafe-event__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 6px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.aafe-event__button:hover,
.aafe-event__button:focus {
	background: #1d4ed8;
	color: #ffffff;
	text-decoration: none;
}

.praxis-event-button--calendar {
	text-decoration: none;
}

.aafe-event__button + .aafe-event__button {
	margin-left: 8px;
}

.aafe-event__button:focus-visible,
.aafe-agenda__page-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.aafe-event--card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0;
	border-color: transparent;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.aafe-agenda--layout-cards .aafe-agenda__events:has(.aafe-event__badge--card) {
	padding-top: 32px;
}

.aafe-event__image--card {
	position: relative;
	width: 100%;
	margin: 0;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.aafe-event__image--card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: 0;
	object-fit: var(--aafe-image-object-fit);
}

.aafe-event__badge--card {
	position: absolute;
	top: 0;
	right: 20px;
	z-index: 1;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	min-width: 56px;
	padding: 10px 14px;
	border: 0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.aafe-event__badge--card .aafe-event__badge-day {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.aafe-event__badge--card .aafe-event__badge-month {
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: none;
}

.aafe-event--card .aafe-event__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	padding: 24px;
}

.aafe-event--card .aafe-event__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
}

.aafe-event--card .aafe-event__description {
	margin: 0;
	color: #374151;
}

.aafe-event__meta--stacked {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 0;
	color: #111827;
	font-size: 16px;
	font-weight: 500;
}

.aafe-event__meta--stacked .aafe-event__meta-icon {
	color: #111827;
}

.aafe-event__meta--stacked .aafe-event__date,
.aafe-event__meta--stacked .aafe-event__time {
	color: inherit;
}

.aafe-event--card .aafe-event__actions {
	margin-top: auto;
	padding-top: 8px;
}

.aafe-event--card .aafe-event__button {
	background: #111827;
	color: #ffffff;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 15px;
}

.aafe-event--card .aafe-event__button:hover,
.aafe-event--card .aafe-event__button:focus {
	background: #374151;
	color: #ffffff;
}

.aafe-event--featured {
	--aafe-badge-width: 140px;

	display: flex;
	gap: var(--aafe-image-gap);
	align-items: stretch;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
	border-color: transparent;
	padding: 28px;
}

.aafe-event--card.praxis-event-card--restricted,
.aafe-event--featured.praxis-event-card--restricted {
	border-color: rgba(249, 115, 22, 0.35);
}

.aafe-event--featured .aafe-event__image {
	flex-shrink: 0;
	width: var(--aafe-image-horizontal-width);
	margin: 0;
}

.aafe-event--featured .aafe-event__image img {
	width: 100%;
	height: var(--aafe-image-height);
	border-radius: var(--aafe-image-radius);
	object-fit: var(--aafe-image-object-fit);
}

.aafe-event--featured .aafe-event__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
}

.aafe-event--featured .aafe-event__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.15;
}

.aafe-event__meta--featured {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: #4b5563;
	font-size: 15px;
	font-weight: 500;
}

.aafe-event__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
}

.aafe-event__meta--featured .aafe-event__date,
.aafe-event__meta--featured .aafe-event__time {
	color: inherit;
}

.aafe-event__meta-icon {
	flex-shrink: 0;
	color: #be185d;
}

.aafe-event__meta-sep {
	display: inline-block;
	align-self: stretch;
	border-left: 1px solid #e5e7eb;
}

.aafe-event--featured .aafe-event__description {
	margin: 0;
}

.aafe-event__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.aafe-event__actions .aafe-event__button + .aafe-event__button {
	margin-left: 0;
}

.aafe-event__calendar-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.aafe-event__body > .aafe-event__calendar-actions {
	margin-top: 8px;
}

.aafe-event__button.praxis-event-calendar-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2937;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.aafe-event__button.praxis-event-calendar-action:hover,
.aafe-event__button.praxis-event-calendar-action:focus {
	border-color: #9ca3af;
	background: #f9fafb;
	color: #111827;
	text-decoration: none;
}

.praxis-event-calendar-action__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.praxis-event-calendar-action__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.praxis-event-calendar-action__label {
	display: inline-block;
	white-space: nowrap;
}

.aafe-event--featured .aafe-event__button {
	background: transparent;
	border: 1.5px solid #4f46e5;
	color: #4f46e5;
}

.aafe-event--featured .aafe-event__button:hover,
.aafe-event--featured .aafe-event__button:focus {
	background: #4f46e5;
	color: #ffffff;
}

.aafe-event--card .aafe-event__button.praxis-event-calendar-action,
.aafe-event--featured .aafe-event__button.praxis-event-calendar-action {
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2937;
	font-size: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.aafe-event--card .aafe-event__button.praxis-event-calendar-action:hover,
.aafe-event--card .aafe-event__button.praxis-event-calendar-action:focus,
.aafe-event--featured .aafe-event__button.praxis-event-calendar-action:hover,
.aafe-event--featured .aafe-event__button.praxis-event-calendar-action:focus {
	border-color: #9ca3af;
	background: #f9fafb;
	color: #111827;
}

.aafe-event__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--aafe-badge-width);
	border-left: 1px solid #e5e7eb;
}

.aafe-event__badge-day {
	color: #111827;
	font-size: 52px;
	font-weight: 600;
	line-height: 1.1;
}

.aafe-event__badge-month {
	color: #374151;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aafe-agenda__empty {
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
}

.aafe-agenda__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	max-width: 100%;
}

.aafe-agenda__page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: #ffffff;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.aafe-agenda__page-link:hover,
.aafe-agenda__page-link:focus {
	background: #eff6ff;
	color: #1d4ed8;
	text-decoration: none;
}

.aafe-agenda__page-link.is-active {
	border-color: #2563eb;
	background: #2563eb;
	color: #ffffff;
	font-weight: 700;
	pointer-events: none;
}

@media (max-width: 900px) {
	.aafe-agenda--layout-cards .aafe-agenda__events {
		--aafe-card-columns: 2;
	}
}

@media (max-width: 640px) {
	.aafe-agenda--layout-cards .aafe-agenda__events {
		--aafe-card-columns: 1;
	}

	.aafe-event.aafe-event--has-image {
		flex-direction: column;
	}

	.aafe-event--featured {
		flex-direction: column;
		padding: 20px;
	}

	.aafe-event--featured .aafe-event__image {
		width: 100%;
	}

	.aafe-event--featured .aafe-event__title {
		font-size: 24px;
	}

	.aafe-event--featured .aafe-event__badge {
		flex-direction: row;
		gap: 10px;
		width: 100%;
		padding-top: 14px;
		border-left: 0;
		border-top: 1px solid #e5e7eb;
	}

	.aafe-event--featured .aafe-event__badge-day {
		font-size: 32px;
	}

	.aafe-event__button,
	.aafe-agenda__page-link {
		max-width: 100%;
	}

	.aafe-event--image-left .aafe-event__image,
	.aafe-event--image-right .aafe-event__image {
		width: 100%;
	}
}
