/* ==========================================================================
   MW Event Schedule
   ========================================================================== */

.mws-wrap {
	--mws-accent: #b3261e;
	container-type: inline-size;
	margin-block: 1.5rem;
}

.mws-wrap *,
.mws-wrap *::before,
.mws-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Theme reset ----------
   Themes style headings, paragraphs, lists and links with their own fonts,
   margins and transforms. Inside plugin output, everything uses the page's
   body font with no stray margins; the components below then set what they
   need. Only the two big event titles keep the theme's heading font. */

.mws-wrap.mws-wrap.mws-wrap :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote) {
	margin: 0;
}

.mws-wrap.mws-wrap.mws-wrap :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, a, button, span, time, strong, small, s, summary, label):where(:not(.mws-hero__title, .mws-herobox__title)) {
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: none;
}

.mws-wrap.mws-wrap.mws-wrap :where(h1, h2, h3, h4, h5, h6) {
	font-weight: 700;
	line-height: 1.25;
}

.mws-wrap.mws-wrap.mws-wrap :where(a) {
	box-shadow: none;
	text-underline-offset: 0.15em;
}

/* The hero adapts to the screen, not its container. Container sizing here can
   collapse it inside a theme's row/flex layout and push the links off-screen
   on phones, so it's switched off and the hero simply fills the space it has. */
.mws-wrap.mws-wrap--hero {
	container-type: normal;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-block: 0;
	flex: 1 1 100%;
}

/* ---------- Tokens ---------- */

.mws-wrap.mws-wrap .mws {
	--mws-bg: #ffffff;
	--mws-soft: #f4f4f2;
	--mws-text: #1c1c1f;
	--mws-muted: #616168;
	--mws-line: #e3e3e0;
	--mws-accent-ink: var(--mws-accent);
	--mws-accent-soft: color-mix(in srgb, var(--mws-accent) 8%, var(--mws-bg));
	--mws-live: #1b8a4a;

	color: var(--mws-text);
	font-size: 1rem;
	line-height: 1.45;
}

/* ---------- Shared bits ---------- */

.mws-wrap.mws-wrap .mws-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.mws-wrap.mws-wrap .mws-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mws-wrap.mws-wrap .mws button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.mws-wrap.mws-wrap .mws :focus-visible {
	outline: 2px solid var(--mws-accent-ink);
	outline-offset: 2px;
}

.mws-wrap.mws-wrap .mws h2,
.mws-wrap.mws-wrap .mws h3,
.mws-wrap.mws-wrap .mws h4,
.mws-wrap.mws-wrap .mws p,
.mws-wrap.mws-wrap .mws ol,
.mws-wrap.mws-wrap .mws ul,
.mws-wrap.mws-wrap .mws dl {
	margin: 0;
}

/* ---------- Header ---------- */

.mws-wrap.mws-wrap .mws-hero {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--mws-line);
}

.mws-wrap.mws-wrap .mws-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.mws-wrap.mws-wrap .mws-hero__dates {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-hero__title {
	font-size: clamp(1.6rem, 5cqi, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-hero__venue {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px !important;
	color: var(--mws-muted);
}

/* ---------- Rain ---------- */

.mws-wrap.mws-wrap .mws-rainbanner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px !important;
	padding: 12px 16px;
	border: 1px solid #2f6db5;
	border-radius: 10px;
	background: #eef4fb;
	color: #1d4a7c;
	font-size: 0.95rem;
}

.mws-wrap.mws-wrap .mws-rainbanner .mws-icon {
	font-size: 1.3rem;
}

.mws-wrap.mws-wrap .mws-rainplace {
	color: #1d4a7c;
	font-weight: 700;
}

.mws-wrap.mws-wrap .mws-rainplace s {
	margin-left: 4px;
	font-weight: 400;
	color: var(--mws-muted);
}

/* ---------- Now / Up next ---------- */

.mws-wrap.mws-wrap .mws-now {
	display: grid;
	gap: 0;
	margin-top: 18px;
	border: 1px solid var(--mws-accent-ink);
	border-radius: 10px;
	overflow: hidden;
}

.mws-wrap.mws-wrap .mws-now[hidden] {
	display: none;
}

@container (min-width: 640px) {
	.mws-wrap.mws-wrap .mws-now--split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.mws-wrap.mws-wrap .mws-now--split .mws-nowcard + .mws-nowcard {
		border-top: 0;
		border-left: 1px solid var(--mws-line);
	}
}

.mws-wrap.mws-wrap .mws-nowcard {
	padding: 14px 16px;
}

.mws-wrap.mws-wrap .mws-nowcard + .mws-nowcard {
	border-top: 1px solid var(--mws-line);
}

.mws-wrap.mws-wrap .mws-nowcard--live {
	background: var(--mws-accent-soft);
}

.mws-wrap.mws-wrap .mws-nowcard__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-nowcard--live .mws-nowcard__label {
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-nowcard__entry + .mws-nowcard__entry {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--mws-line);
}

.mws-wrap.mws-wrap .mws-nowcard__title {
	margin-top: 6px !important;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-nowcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-top: 4px !important;
	color: var(--mws-muted);
	font-size: 0.9rem;
}

.mws-wrap.mws-wrap .mws-nowcard__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mws-wrap.mws-wrap .mws-nowcard__count {
	margin-top: 8px !important;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--mws-text);
	font-variant-numeric: tabular-nums;
}

.mws-wrap.mws-wrap .mws-progress {
	height: 4px;
	border-radius: 2px;
	margin-top: 6px;
	background: var(--mws-line);
	overflow: hidden;
}

.mws-wrap.mws-wrap .mws-progress span {
	display: block;
	height: 100%;
	background: var(--mws-accent-ink);
}

/* ---------- Layout ---------- */

.mws-wrap.mws-wrap .mws-layout {
	display: grid;
	gap: 24px;
	margin-top: 20px;
}

@container (min-width: 900px) {
	.mws-wrap.mws-wrap .mws-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
		gap: 32px;
	}

	.mws-wrap.mws-wrap .mws-main {
		order: 1;
	}

	.mws-wrap.mws-wrap .mws-side {
		order: 2;
	}
}

/* ---------- Toolbar ---------- */

.mws-wrap.mws-wrap .mws-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mws-wrap.mws-wrap .mws-toolbar__title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-pasttoggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--mws-line);
	border-radius: 8px;
	background: var(--mws-bg);
	font-size: 0.85rem !important;
	font-weight: 700;
	white-space: nowrap;
}

.mws-wrap.mws-wrap .mws-pasttoggle[aria-pressed="true"] {
	border-color: var(--mws-accent-ink);
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-pasttoggle[hidden] {
	display: none;
}

/* ---------- Days ---------- */

.mws-wrap.mws-wrap .mws-day {
	margin-top: 22px;
}

.mws-wrap.mws-wrap .mws-day__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 12px 8px;
	border-bottom: 2px solid var(--mws-text);
}

.mws-wrap.mws-wrap .mws-day__head h3 {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-day__date {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-day__badge {
	display: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-day.is-done .mws-day__badge {
	display: inline;
}

.mws-wrap.mws-wrap .mws-day.is-done .mws-day__head {
	border-bottom-color: var(--mws-line);
}

.mws-wrap.mws-wrap .mws-day.is-done .mws-day__head h3 {
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-day__past {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--mws-line);
	background: none;
	color: var(--mws-muted) !important;
	font-size: 0.88rem !important;
	font-weight: 600;
	text-align: left;
}

.mws-wrap.mws-wrap .mws-day__past:hover {
	color: var(--mws-text) !important;
}

.mws-wrap.mws-wrap .mws-day__past[hidden] {
	display: none;
}

.mws-wrap.mws-wrap .mws-day__past[aria-expanded="true"] .mws-day__chev {
	transform: rotate(90deg);
}

/* ---------- Schedule rows ---------- */

.mws-wrap.mws-wrap .mws-list {
	padding: 0 !important;
	list-style: none !important;
}

.mws-wrap.mws-wrap .mws-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 16px;
	margin: 0 !important;
	padding: 12px;
	border-bottom: 1px solid var(--mws-line);
}

.mws-wrap.mws-wrap .mws-item.is-past {
	display: none;
}

.mws-wrap.mws-wrap .mws.show-past .mws-item.is-past,
.mws-wrap.mws-wrap .mws-day.is-open .mws-item.is-past {
	display: grid;
	opacity: 0.5;
}

/* Active rows keep the same box as every other row; back-to-back active
   rows join into one tinted block rounded only at its top and bottom. */
.mws-wrap.mws-wrap .mws-item.is-now {
	border-bottom-color: color-mix(in srgb, var(--mws-accent) 16%, var(--mws-bg));
	background: var(--mws-accent-soft);
}

.mws-wrap.mws-wrap .mws-item.is-now:first-child,
.mws-wrap.mws-wrap .mws-item:not(.is-now) + .mws-item.is-now {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.mws-wrap.mws-wrap .mws-item.is-now:not(:has(+ .mws-item.is-now)) {
	border-bottom-color: transparent;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.mws-wrap.mws-wrap .mws-item__time {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.mws-wrap.mws-wrap .mws-item__start {
	font-weight: 800;
	color: var(--mws-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mws-wrap.mws-wrap .mws-item__end {
	font-size: 0.8rem;
	color: var(--mws-muted);
	white-space: nowrap;
}

.mws-wrap.mws-wrap .mws-item.is-now .mws-item__start {
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-card {
	min-width: 0;
}

.mws-wrap.mws-wrap .mws-card__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-flag {
	display: none;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-item.is-now .mws-flag--now,
.mws-wrap.mws-wrap .mws-item.is-next .mws-flag--next {
	display: inline;
}

.mws-wrap.mws-wrap .mws-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-top: 4px;
	font-size: 0.88rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-card__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mws-wrap.mws-wrap .mws-card__more {
	margin-top: 6px;
}

.mws-wrap.mws-wrap .mws-card__more summary {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--mws-accent-ink);
	cursor: pointer;
}

.mws-wrap.mws-wrap .mws-card__notes {
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--mws-soft);
	font-size: 0.9rem;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-card__notes p + p {
	margin-top: 6px;
}

.mws-wrap.mws-wrap .mws-card__notes a {
	color: var(--mws-accent-ink);
}

/* Narrow screens: time sits above the title. */
@container (max-width: 520px) {
	.mws-wrap.mws-wrap .mws-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.mws-wrap.mws-wrap .mws-item__time {
		flex-direction: row;
		align-items: baseline;
		gap: 6px;
	}
}

/* ---------- Event info ---------- */

.mws-wrap.mws-wrap .mws-side {
	display: grid;
	gap: 22px;
}

.mws-wrap.mws-wrap .mws-panel__title {
	padding-bottom: 8px;
	margin-bottom: 10px !important;
	border-bottom: 2px solid var(--mws-text);
	font-size: 1rem;
	font-weight: 800;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-notes {
	display: grid;
	gap: 8px;
	padding-left: 1.1em !important;
	margin: 0 !important;
	font-size: 0.92rem;
}

.mws-wrap.mws-wrap .mws-leaders {
	display: grid;
	gap: 6px;
	font-size: 0.92rem;
}

.mws-wrap.mws-wrap .mws-leaders div {
	display: flex;
	align-items: baseline;
}

.mws-wrap.mws-wrap .mws-leaders dt {
	display: flex;
	flex: 1;
	min-width: 0;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-leaders dt::after {
	content: "";
	flex: 1;
	min-width: 12px;
	margin: 0 8px;
	border-bottom: 1px dotted var(--mws-muted);
	transform: translateY(-0.3em);
}

.mws-wrap.mws-wrap .mws-leaders dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
	color: var(--mws-text);
}

/* ---------- Footer & misc ---------- */

.mws-wrap.mws-wrap .mws-foot {
	margin-top: 24px;
	font-size: 0.78rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-blank {
	margin-top: 16px !important;
	padding: 24px 0;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-admin-note {
	margin-bottom: 12px !important;
	padding: 10px 14px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
	color: #3c3400;
	font-size: 0.88rem;
}

/* ---------- No upcoming event ---------- */

.mws-wrap.mws-wrap .mws-empty__msg {
	max-width: 60ch;
	margin-top: 10px !important;
	font-size: 1.05rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-next {
	margin-top: 20px;
	padding: 18px 20px;
	border: 1px solid var(--mws-line);
	border-radius: 10px;
}

.mws-wrap.mws-wrap .mws-next__name {
	margin-top: 6px !important;
	font-size: clamp(1.25rem, 3.5cqi, 1.6rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-next__when {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin-top: 6px !important;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-next__when span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mws-wrap.mws-wrap .mws-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	max-width: 440px;
	margin-top: 16px;
}

.mws-wrap.mws-wrap .mws-countdown__unit {
	padding: 10px 4px 8px;
	border-radius: 8px;
	background: var(--mws-soft);
	text-align: center;
}

.mws-wrap.mws-wrap .mws-countdown__num {
	display: block;
	font-size: clamp(1.4rem, 4.5cqi, 1.9rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-countdown__label {
	display: block;
	margin-top: 4px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-next__hint {
	margin-top: 12px !important;
	font-size: 0.88rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-queue {
	margin-top: 28px;
}

.mws-wrap.mws-wrap .mws-queue .mws-list {
	margin-top: 8px !important;
	border-top: 2px solid var(--mws-text);
}

/* Wider date column so ranges like "Oct 30 – Nov 1" fit on one line. */
.mws-wrap.mws-wrap .mws-queue .mws-item {
	grid-template-columns: 120px minmax(0, 1fr);
}

.mws-wrap.mws-wrap .mws-queue .mws-item__start {
	white-space: normal;
}

@container (max-width: 520px) {
	.mws-wrap.mws-wrap .mws-queue .mws-item {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Event list [mw_events] ---------- */

.mws-wrap.mws-wrap .mws-events {
	display: grid;
	gap: 32px;
}

.mws-wrap.mws-wrap .mws-elist {
	margin-top: 8px !important;
	padding: 0 !important;
	list-style: none !important;
	border-top: 2px solid var(--mws-text);
}

.mws-wrap.mws-wrap .mws-erow {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: start;
	gap: 18px;
	margin: 0 !important;
	padding: 16px 12px;
	border-bottom: 1px solid var(--mws-line);
}

.mws-wrap.mws-wrap .mws-erow.is-live {
	border-bottom-color: transparent;
	border-radius: 8px;
	background: var(--mws-accent-soft);
}

.mws-wrap.mws-wrap .mws-edate {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 0 7px;
	border-radius: 8px;
	background: var(--mws-soft);
	line-height: 1;
	text-align: center;
}

.mws-wrap.mws-wrap .mws-edate__mon {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-edate__day {
	margin-top: 4px;
	font-size: 1.6rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--mws-text);
}

.mws-wrap.mws-wrap .mws-edate__year {
	margin-top: 4px;
	font-size: 0.72rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-erow__body {
	min-width: 0;
}

.mws-wrap.mws-wrap .mws-erow__when {
	font-size: 0.88rem;
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-erow__title {
	margin-top: 2px !important;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--mws-text);
	text-wrap: balance;
}

.mws-wrap.mws-wrap .mws-erow__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 8px !important;
}

.mws-wrap.mws-wrap .mws-erow__link {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--mws-accent-ink) !important;
	text-decoration: none !important;
}

.mws-wrap.mws-wrap .mws-erow__link:hover {
	text-decoration: underline !important;
}

.mws-wrap.mws-wrap .mws-erow__rel {
	padding-top: 2px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--mws-muted);
	white-space: nowrap;
}

.mws-wrap.mws-wrap .mws-erow.is-live .mws-erow__rel {
	color: var(--mws-accent-ink);
}

.mws-wrap.mws-wrap .mws-elist--past .mws-edate__mon {
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-elist--past .mws-erow__title {
	color: var(--mws-muted);
}

.mws-wrap.mws-wrap .mws-elist__empty {
	padding: 16px 12px;
	border-bottom: 1px solid var(--mws-line);
	color: var(--mws-muted);
}

@container (max-width: 520px) {
	.mws-wrap.mws-wrap .mws-erow {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 14px;
	}

	.mws-wrap.mws-wrap .mws-erow__rel {
		grid-column: 2;
		padding-top: 0;
	}
}

/* ---------- Hero [mw_hero] ----------
   Logo on the left, text beside it. The title keeps the theme's heading
   style and the rest inherits the hero's text color. */

.mws-wrap.mws-wrap.mws-herobox {
	--mws-accent: #b3261e;
	display: flex;
	align-items: center;
	gap: clamp(20px, 5vw, 64px);
	color: inherit;
}

.mws-wrap.mws-wrap.mws-herobox--center {
	flex-direction: column;
	gap: 16px;
	text-align: center;
}

.mws-wrap.mws-wrap.mws-herobox p,
.mws-wrap.mws-wrap.mws-herobox h2 {
	margin: 0;
}

.mws-wrap.mws-wrap .mws-herobox__logo {
	flex: none;
	max-width: 100%;
	width: clamp(88px, 14vw, 160px);
	height: auto;
}

.mws-wrap.mws-wrap .mws-herobox__body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.mws-wrap.mws-wrap .mws-herobox__title {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	line-height: 1.15;
	text-wrap: balance;
}

.mws-wrap.mws-wrap .mws-herobox__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin-top: 6px !important;
	font-size: 1.05rem;
	opacity: 0.85;
}

.mws-wrap.mws-wrap .mws-herobox__meta span + span::before {
	content: "·";
	margin-right: 10px;
}

.mws-wrap.mws-wrap .mws-herobox__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin-top: 14px;
}

.mws-wrap.mws-wrap.mws-herobox--center .mws-herobox__meta,
.mws-wrap.mws-wrap.mws-herobox--center .mws-herobox__actions {
	justify-content: center;
}

.mws-wrap.mws-wrap .mws-herolink {
	font-size: 1rem;
	font-weight: 700;
	color: var(--mws-accent) !important;
	text-decoration: none !important;
}

.mws-wrap.mws-wrap .mws-herolink:hover {
	text-decoration: underline !important;
}

.mws-wrap.mws-wrap .mws-herolink:focus-visible {
	outline: 2px solid var(--mws-accent);
	outline-offset: 2px;
}

/* Under 600px: switch to the centered, stacked layout. */
@media (max-width: 600px) {
	.mws-wrap.mws-wrap.mws-herobox {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		text-align: center;
	}

	.mws-wrap.mws-wrap .mws-herobox__meta,
	.mws-wrap.mws-wrap .mws-herobox__actions {
		justify-content: center;
	}
}

/* ---------- Print ---------- */

@media print {
	.mws-wrap.mws-wrap .mws {
		padding: 0;
		border: 0;
		background: #fff;
		color: #000;
	}

	.mws-wrap.mws-wrap .mws-toolbar,
.mws-wrap.mws-wrap .mws-now,
.mws-wrap.mws-wrap .mws-day__past,
.mws-wrap.mws-wrap .mws-flag {
		display: none !important;
	}

	.mws-wrap.mws-wrap .mws-item.is-past {
		display: grid !important;
		opacity: 1 !important;
	}

	.mws-wrap.mws-wrap .mws-item {
		break-inside: avoid;
	}
}
