/* Activist Blog Events — front-end styles */

.abe-events-archive {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 20px;
}

/* Calendar */

.abe-calendar {
	margin: 20px 0 40px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.abe-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: #faf7f8;
	border-bottom: 1px solid #e2e2e2;
}

.abe-calendar-header h3 {
	margin: 0;
	font-size: 1.15rem;
}

.abe-nav-prev,
.abe-nav-next {
	text-decoration: none;
	font-size: 1.2rem;
	color: #E4002B;
	font-weight: 700;
	padding: 4px 10px;
}

.abe-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.abe-weekday {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: #888;
	padding: 8px 4px;
	border-bottom: 1px solid #eee;
}

.abe-day {
	min-height: 80px;
	padding: 6px;
	border-right: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.75rem;
}

.abe-day-empty {
	background: #fafafa;
}

.abe-day-number {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	color: #444;
}

.abe-day-today {
	background: #fdf2f6;
}

.abe-day-today .abe-day-number {
	color: #E4002B;
	display: inline-block;
	background: #E4002B;
	color: #fff;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
}

.abe-day-event-label {
	display: block;
	background: #E4002B;
	color: #fff;
	text-decoration: none;
	font-size: 0.68rem;
	padding: 2px 4px;
	border-radius: 3px;
	margin-bottom: 2px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.abe-day-more {
	display: block;
	font-size: 0.65rem;
	color: #888;
}

@media (max-width: 600px) {
	.abe-day {
		min-height: 56px;
		font-size: 0.65rem;
	}
	.abe-weekday {
		font-size: 0.65rem;
	}
}

/* When the sidebar is present, the calendar's available width shrinks
   even on wider screens — this targets that specific situation directly
   (via the class already added by every template) rather than guessing
   with a viewport-only breakpoint. */
.abc-content-layout.abc-has-sidebar .abe-day {
	min-height: 64px;
	padding: 4px;
	font-size: 0.68rem;
}

.abc-content-layout.abc-has-sidebar .abe-day-event-label {
	font-size: 0.6rem;
	padding: 1px 3px;
}

/* Upcoming events list */

.abe-upcoming-list {
	margin: 20px 0;
}

.abe-upcoming-heading {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.abe-upcoming-item {
	display: block;
	padding: 14px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	margin-bottom: 10px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease;
}

.abe-upcoming-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.abe-upcoming-date {
	font-size: 0.78rem;
	font-weight: 700;
	color: #E4002B;
	margin-bottom: 4px;
}

.abe-upcoming-title {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}

.abe-upcoming-venue {
	font-size: 0.82rem;
	color: #777;
	margin-top: 2px;
}

.abe-no-events {
	color: #888;
	font-size: 0.9rem;
}

/* Single event page */

.abe-single-event {
	max-width: 800px;
	margin: 0 auto;
	padding: 24px 16px;
}

.abe-event-header h1 {
	margin-bottom: 6px;
}

.abe-event-datetime {
	font-weight: 700;
	color: #E4002B;
	font-size: 1.05rem;
}

.abe-add-to-calendar {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 16px;
	border: 1.5px solid #006A4E;
	border-radius: 20px;
	color: #006A4E;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
}

.abe-add-to-calendar:hover {
	background: #006A4E;
	color: #fff;
}

.abe-event-categories {
	font-size: 0.85rem;
	color: #888;
}

.abe-event-image img {
	width: 100%;
	border-radius: 10px;
	margin: 20px 0;
}

.abe-event-venue-box,
.abe-event-organizer {
	background: #faf7f8;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 20px 0;
}

.abe-event-venue-box h3,
.abe-event-organizer h3 {
	margin-top: 0;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #E4002B;
}

.abe-venue-name {
	font-weight: 600;
	margin: 4px 0;
}

.abe-map-link {
	display: inline-block;
	margin-top: 8px;
	color: #E4002B;
	font-weight: 600;
	text-decoration: none;
}

.abe-event-content {
	margin: 20px 0;
	line-height: 1.7;
}

.abe-back-link {
	margin-top: 30px;
}

.abe-back-link a {
	color: #E4002B;
	text-decoration: none;
	font-weight: 600;
}
