/* ---------------- MICE Calendar ---------------- */

.moss-cal-page { padding: 32px 0 64px; }

.moss-cal-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 28px;
}

/* month + arrows, centred above the grid */
.moss-cal-monthbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 22px;
}
.moss-cal-month {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.02em;
}
.moss-cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 17px;
	line-height: 1;
	color: #475569;
	text-decoration: none;
	border-radius: 4px;
}
.moss-cal-nav:hover { background: #eef2f7; color: var(--moss-blue); }

/* 7-column month grid with hairline rules, like the mockup */
.moss-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-top: 1px solid #e2e8f0;
	border-left: 1px solid #e2e8f0;
}

.moss-cal-dow {
	padding: 14px 8px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.moss-cal-cell {
	position: relative;
	min-height: 92px;
	padding: 10px 8px 8px;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.moss-cal-cell.has-events { cursor: pointer; }
.moss-cal-cell.has-events:hover { background: #f8fbff; }
.moss-cal-cell.has-events:focus-visible {
	outline: 2px solid var(--moss-blue);
	outline-offset: -2px;
}

.moss-cal-num {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
}
.moss-cal-cell.is-muted .moss-cal-num { color: #cbd5e1; font-weight: 500; }

/* event chips */
.moss-cal-chips {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
}
.moss-cal-chip {
	display: block;
	width: 100%;
	padding: 3px 6px;
	border-radius: 2px;
	font-size: 8.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.moss-cal-chip.is-orange { background: #f0a81e; }
.moss-cal-chip.is-blue   { background: #1565c0; }
.moss-cal-chip.is-navy   { background: #0d2b5e; }

.moss-cal-day-data { display: none; }

/* floating day popup */
.moss-cal-popup {
	position: absolute;
	z-index: 40;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 18px 44px -12px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.06);
	padding: 14px;
	max-width: calc(100vw - 28px);
}
.moss-cal-popup[hidden] { display: none; }

/* lifts into place from just under the day cell it belongs to */
@media (prefers-reduced-motion: no-preference) {
	.moss-cal-popup:not([hidden]) {
		animation: moss-cal-pop 0.16s ease-out;
	}
	@keyframes moss-cal-pop {
		from { opacity: 0; transform: translateY(-4px); }
		to   { opacity: 1; transform: none; }
	}
}

.moss-cal-popup-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	background: #fff;
	border: none;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}
.moss-cal-popup-close:hover { color: #0f172a; background: #f1f5f9; }

.moss-cal-popup-cards {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

/* Card tuning is scoped to the popup so the News & Tips page keeps the
   wider layout that was signed off there. */
.moss-cal-popup-cards .moss-news-card {
	width: 218px;
	flex: 0 0 218px;
	border-color: #eef2f7;
	box-shadow: none;
}
.moss-cal-popup-cards .moss-news-card-body {
	flex: 1;
	gap: 8px;
	padding: 12px 12px 13px;
}
.moss-cal-popup-cards .moss-news-badge {
	font-size: 9.5px;
	padding: 4px 9px;
	border-radius: 5px;
}
.moss-cal-popup-cards .moss-news-date { min-width: 46px; }
.moss-cal-popup-cards .moss-news-day { font-size: 23px; }

/* Cap the headline so every card in the row ends at the same height
   instead of one long title stretching the whole popup. */
.moss-cal-popup-cards .moss-news-headline {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.45;
}
.moss-cal-popup-cards .moss-news-place {
	margin-top: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 900px) {
	.moss-cal-cell { min-height: 74px; }
	.moss-cal-chip { font-size: 7.5px; }
	.moss-cal-popup-cards { flex-direction: column; }
	.moss-cal-popup-cards .moss-news-card { width: 220px; flex: 0 0 auto; }
}

@media (max-width: 600px) {
	.moss-cal-grid { font-size: 11px; }
	.moss-cal-dow { padding: 10px 2px; font-size: 10.5px; }
	.moss-cal-cell { min-height: 62px; padding: 6px 3px; }
	.moss-cal-chip { font-size: 0; padding: 0; height: 4px; border-radius: 2px; }
	.moss-cal-popup { left: 12px !important; right: 12px; width: auto; }
}

/* ---------------- MICE Calendar — event detail ---------------- */

.moss-ev-page { padding: 24px 0 64px; }

.moss-ev-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.moss-ev-main img { display: block; width: 100%; border-radius: 6px; }
.moss-ev-poster { margin-bottom: 22px; }
.moss-ev-figure { margin: 22px 0; }

.moss-ev-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.45;
	color: #0f172a;
	margin: 0 0 18px;
	text-wrap: balance;
}
.moss-ev-main p {
	font-size: 13.5px;
	line-height: 1.9;
	color: #334155;
	margin: 0 0 14px;
}

/* sidebar */
.moss-ev-side {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.moss-ev-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin: 0 0 8px;
}

.moss-ev-date { display: flex; flex-direction: column; line-height: 1.15; }
.moss-ev-month { font-size: 13px; font-weight: 600; color: var(--moss-blue); }
.moss-ev-day   { font-size: 30px; font-weight: 700; color: #e03131; margin: 1px 0; }
.moss-ev-year  { font-size: 13px; font-weight: 500; color: #94a3b8; }

.moss-ev-place {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--moss-blue);
}
.moss-ev-place svg { flex-shrink: 0; }

.moss-ev-type {
	display: inline-block;
	padding: 5px 16px;
	border: 1px solid #d7dee8;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #334155;
	background: #fff;
}

.moss-ev-share { display: flex; gap: 10px; flex-wrap: wrap; }
.moss-ev-sharebtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 4px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
}
.moss-ev-sharebtn:hover { border-color: var(--moss-blue); color: var(--moss-blue); }
.moss-ev-sharebtn.is-done { border-color: #15803d; color: #15803d; }

.moss-ev-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.moss-ev-tag {
	display: inline-block;
	padding: 5px 14px;
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
}
.moss-ev-tag:hover { border-color: var(--moss-blue); color: var(--moss-blue); }

.moss-ev-related { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 900px) {
	.moss-ev-layout { grid-template-columns: 1fr; gap: 32px; }
}
