/* Nantucket Events — calendar layout (Option B)
   Left: 2/3 scrollable event list. Right: 1/3 sticky mini calendar.
   Stacks to calendar-on-top on mobile. */

.ne-calendar {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	align-items: start;
}

.ne-calendar__list {
	min-width: 0;
}

.ne-calendar__day-heading {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.ne-calendar__empty {
	color: #666;
	padding: 2rem 0;
}

.ne-calendar__cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ne-event-card {
	display: flex;
	gap: 1rem;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1rem;
	background: #fff;
}

.ne-event-card__image img {
	width: 140px;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.ne-event-card__body {
	flex: 1;
	min-width: 0;
}

.ne-event-card__title {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.ne-event-card__title a {
	text-decoration: none;
	color: inherit;
}

.ne-event-card__time,
.ne-event-card__location {
	margin: 0 0 0.25rem;
	color: #444;
	font-size: 0.9rem;
}

.ne-event-card__terms {
	font-size: 0.85rem;
	color: #0a6b8a;
	margin-bottom: 0.5rem;
}

.ne-event-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ne-badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
}

.ne-badge--free {
	background: #e5f6e5;
	color: #1c6b1c;
}

.ne-badge--soldout {
	background: #fde5e5;
	color: #a11c1c;
}

.ne-badge--limited {
	background: #fff4d6;
	color: #8a6100;
}

.ne-badge--register {
	background: #0a6b8a;
	color: #fff;
}

/* Sidebar — sticky mini calendar */
.ne-calendar__sidebar {
	position: sticky;
	top: 1rem;
	align-self: start;
}

.ne-mini-calendar {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1rem;
}

.ne-mini-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.ne-mini-calendar__day {
	padding: 0.4rem 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.85rem;
	position: relative;
}

.ne-mini-calendar__day:hover {
	background: #f0f0f0;
}

.ne-mini-calendar__day--has-events::after {
	content: '';
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #0a6b8a;
	margin: 2px auto 0;
}

.ne-mini-calendar__day--selected {
	background: #0a6b8a;
	color: #fff;
}

/* Mobile: calendar on top, list below */
@media (max-width: 782px) {
	.ne-calendar {
		grid-template-columns: 1fr;
	}

	.ne-calendar__sidebar {
		position: static;
		order: -1;
	}
}

/* Update indicator */
.ne-update-badge {
	display: inline-block;
	background: #fff4d6;
	color: #8a6100;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	margin-bottom: 0.4rem;
	cursor: help;
}

/* Social sharing */
.ne-share {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.6rem;
}

.ne-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f0f0f0;
	color: #333;
	font-size: 0.75rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.ne-share__link:hover {
	background: #e2e2e2;
}

/* Sidebar filters */
.ne-calendar__filters {
	margin-top: 1rem;
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

.ne-calendar__filters input[type="search"] {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	margin-bottom: 0.6rem;
}

.ne-calendar__filters .ne-inline-check {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.ne-calendar__category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

.ne-filter-pill {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 0.25rem 0.7rem;
	font-size: 0.8rem;
	cursor: pointer;
}

.ne-filter-pill.is-active {
	background: #0a6b8a;
	color: #fff;
	border-color: #0a6b8a;
}

.ne-calendar__filters .description {
	font-size: 0.75rem;
	color: #888;
}
