/* ME Rotating Notice: front-end box */
.me-rn {
	--me-rn-red: #c8202f;
	--me-rn-ink: #111;
	position: relative;
	padding: 6px 0 6px 28px;
	border-left: 2px solid #d5d8dc;
	color: var(--me-rn-ink);
	line-height: 1.15;
	box-sizing: border-box;
}
.me-rn *,
.me-rn *::before,
.me-rn *::after { box-sizing: border-box; }

.me-rn[hidden],
.me-rn__item[hidden],
.me-rn__empty[hidden] { display: none !important; }

.me-rn__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.me-rn__badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 5px;
	background: var(--me-rn-red);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: -0.5px;
	line-height: 1;
}
.me-rn__title {
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.me-rn__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.3px;
}
.me-rn__icon { display: inline-flex; flex: none; }
.me-rn__icon svg { width: 24px; height: 24px; display: block; }

.me-rn__link,
.me-rn a.me-rn__link {
	color: var(--me-rn-red);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.me-rn a.me-rn__link:hover { color: var(--me-rn-ink); }

.me-rn__empty { margin: 0; font-size: 15px; color: #666; }

/* Edit button: only rendered for logged-in editors */
.me-rn__edit {
	position: absolute;
	top: -8px;
	right: 0;
	padding: 3px 10px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: 0.3px;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s;
	z-index: 2;
}
.me-rn__edit:hover,
.me-rn__edit:focus-visible { opacity: 1; }

@media (max-width: 1140px) {
	.me-rn__title { font-size: 28px; }
	.me-rn__sub { font-size: 19px; }
	.me-rn__badge { width: 32px; height: 32px; font-size: 14px; }
}
@media (max-width: 767px) {
	.me-rn { padding-left: 14px; }
	.me-rn__title { font-size: 22px; white-space: normal; }
	.me-rn__sub { font-size: 16px; }
	.me-rn__icon svg { width: 18px; height: 18px; }
	.me-rn__badge { width: 26px; height: 26px; font-size: 12px; }
	.me-rn__header { margin-bottom: 8px; }
}
