.rn-noticeboard__intro h1 {
	color: #16247d;
	font-size: 2rem;
	margin-bottom: 0.25rem;
}

.rn-view-toggle {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0 2rem;
	flex-wrap: wrap;
}

.rn-view-toggle__btn {
	font: inherit;
	background: #fff;
	border: 2px solid #16247d;
	color: #16247d;
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
	cursor: pointer;
	font-weight: 600;
}

.rn-view-toggle__btn.is-active {
	background: #16247d;
	color: #fff;
}

.rn-view[hidden] {
	display: none !important;
}

/* Grouped view — CSS multi-column "masonry" so variable-height cards flow
   into whichever column has space next, instead of leaving grid-row gaps. */
.rn-view[data-rn-view-panel="grouped"] {
	column-count: 2;
	column-gap: 1.25rem;
}

@media (max-width: 720px) {
	.rn-view[data-rn-view-panel="grouped"] {
		column-count: 1;
	}
}

.rn-group-card {
	background: #fff;
	border: 2px solid #e7622c;
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	display: inline-block;
	vertical-align: top;
	width: 100%;
	margin-bottom: 1.25rem;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.rn-group-card__name {
	color: #16247d;
	font-size: 1.15rem;
	margin: 0 0 0.1rem;
}

.rn-group-card__subtitle {
	color: #e7622c;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.rn-group-card__meta p {
	margin: 0.3rem 0;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rn-icon {
	display: inline-block;
	width: 1.1em;
	text-align: center;
	margin-right: 0.3em;
}

.rn-icon.dashicons {
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
	vertical-align: -0.15em;
}

.rn-icon.dashicons-facebook-alt {
	color: #1877f2;
}

.rn-icon--pin::before {
	content: '\1F4CD';
}

.rn-group-card__tbc {
	color: #e7622c;
	font-weight: 600;
	font-size: 0.9rem;
}

.rn-group-card__frequency {
	color: #16247d;
	font-weight: 600;
	font-size: 1rem;
}

/* Event rows, shared by both views */
.rn-event-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.rn-event-row {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	padding: 0.35rem 0;
	border-top: 1px dotted #ddd;
}

.rn-event-row:first-child {
	border-top: none;
}

.rn-event-row::before {
	content: '\25CF';
	color: #e7622c;
	font-size: 0.5em;
	align-self: center;
}

.rn-event-row__link {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: baseline;
	color: inherit;
	text-decoration: none;
}

a.rn-event-row__link:hover .rn-event-row__date,
a.rn-event-row__link:focus .rn-event-row__date {
	text-decoration: underline;
}

.rn-event-row__date {
	font-weight: 600;
	color: #16247d;
}

.rn-event-row__time,
.rn-event-row__location,
.rn-event-row__theme {
	color: #444;
	font-size: 0.95rem;
}

/* Flat list view */
.rn-event-list--flat .rn-event-row {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 0.6rem 0.9rem;
	margin-bottom: 0.5rem;
}

.rn-event-row__group {
	font-weight: 600;
	color: #e7622c;
}

/* Map view */
.rn-map {
	height: 65vh;
	min-height: 320px;
	border: 2px solid #e7622c;
	border-radius: 10px;
}

/* Quick-add dates (logged-in only, on a group's single page) */
.rn-quick-add__notice {
	color: #16247d;
	font-weight: 600;
	background: #eef0fb;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
}

.rn-quick-add {
	margin-top: 1.5rem;
	border-top: 1px dotted #ddd;
	padding-top: 1rem;
}

.rn-quick-add__toggle {
	cursor: pointer;
	color: #16247d;
	font-weight: 600;
}

.rn-quick-add__form {
	margin-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.rn-quick-add__rows {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rn-quick-add__more,
.rn-quick-add__submit {
	font: inherit;
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
}

.rn-quick-add__more {
	background: #fff;
	border: 2px solid #16247d;
	color: #16247d;
}

.rn-quick-add__submit {
	background: #e7622c;
	border: 2px solid #e7622c;
	color: #fff;
	font-weight: 600;
}
