/**
 * The event block (`mf/event`): a calendar sheet beside the title, the sentence and the
 * facts. Plain on purpose — the designs go into a catalogue first (docs/SPEC-events.md).
 *
 * The card is `.mf-event`, never the wrapper: in the editor the server's render sits
 * inside the editor's own `.wp-block-mf-event`, and a rule on that class would draw the
 * border twice. Type comes from the theme; the sheet's colours are the suite's blue and
 * the deep orange, which carries white text at AA (the news bar's own decision).
 */

.mf-event {
	--mf-event-accent: #c24504;
	--mf-event-line: #d5d9e2;
	--mf-event-ink: #1a1a2e;

	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem;
	border: 1px solid var(--mf-event-line);
	border-radius: 8px;
	background: #fff;
	color: var(--mf-event-ink);
}

.mf-event__sheet {
	flex: 0 0 4.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--mf-event-line);
	border-radius: 6px;
	background: #fff;
	line-height: 1;
	text-align: center;
}

.mf-event__month {
	align-self: stretch;
	padding: 0.35rem 0 0.3rem;
	background: var(--mf-event-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mf-event__day {
	padding: 0.4rem 0 0.15rem;
	font-size: 1.75rem;
	font-weight: 700;
}

.mf-event__weekday {
	padding-bottom: 0.45rem;
	font-size: 0.75rem;
	opacity: 0.75;
}

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

/* Two classes deep, so the theme's paragraph margins do not reach into the card. */
.mf-event .mf-event__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.mf-event__title a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.mf-event__title a:hover,
.mf-event__title a:focus-visible {
	color: var(--mf-event-accent);
}

.mf-event .mf-event__text {
	margin: 0.35rem 0 0;
	line-height: 1.5;
}

.mf-event .mf-event__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0.6rem 0 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

.mf-event__fact {
	display: inline-flex;
	gap: 0.35rem;
	align-items: flex-start;
}

.mf-event__icon {
	flex: none;
	margin-top: 0.1em;
	color: var(--mf-event-accent);
}

/* The editor's preview of an event that is over; the page itself never draws one. */
.is-expired > .mf-event {
	opacity: 0.55;
}

.wp-block-mf-event .mf-event__notice {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-style: italic;
}
