.boys-community-events {
	padding: 22px;
	border: 1px solid var(--boys-line);
	border-radius: 21px;
	background: var(--boys-paper);
}

.boys-community-event-list {
	display: grid;
	gap: 10px;
}

.boys-community-event-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 15px;
	border: 1px solid var(--boys-line);
	border-radius: 15px;
	background: #fff;
}

.boys-community-event-card.is-joined {
	border-color: #a8cbbc;
	background: #f4faf7;
}

.boys-community-event-copy {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.boys-community-event-copy p {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--boys-orange-dark);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .1em;
}

.boys-community-event-copy p b {
	padding: 4px 7px;
	border-radius: 999px;
	color: #356557;
	background: #dcece6;
	font-size: 7px;
	letter-spacing: 0;
}

.boys-community-event-copy h3 {
	margin: 0;
	font-size: 15px;
}

.boys-community-event-copy > span,
.boys-community-event-copy > small {
	overflow: hidden;
	color: var(--boys-muted);
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-community-event-copy > small {
	font-size: 8px;
}

.boys-community-event-card > a {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	border-radius: 9px;
	color: #fff;
	background: var(--boys-navy);
	font-size: 9px;
	font-weight: 850;
}

.boys-event-detail {
	width: min(100%, 980px);
}

.boys-event-detail-card {
	padding: 26px;
	border: 1px solid var(--boys-line);
	border-radius: 23px;
	background: var(--boys-paper);
	box-shadow: 0 12px 35px rgba(31, 70, 79, .05);
}

.boys-event-detail-card > header {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	padding-bottom: 21px;
	border-bottom: 1px solid var(--boys-line);
}

.boys-event-detail-card > header p {
	margin: 0;
	color: var(--boys-orange-dark);
	font-size: 9px;
	font-weight: 900;
}

.boys-event-detail-card > header h1 {
	margin: 5px 0;
	font-size: 28px;
	letter-spacing: -.025em;
}

.boys-event-detail-card > header span {
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-event-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
	margin: 20px 0;
}

.boys-event-facts > div {
	display: grid;
	gap: 5px;
	padding: 13px;
	border-radius: 11px;
	background: #f3f1eb;
}

.boys-event-facts > div > span {
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-event-facts strong {
	font-size: 11px;
}

.boys-event-description {
	padding: 20px 0;
	border-top: 1px solid var(--boys-line);
}

.boys-event-description h2 {
	margin: 0 0 10px;
	font-size: 16px;
}

.boys-event-description p {
	margin: 0;
	color: var(--boys-muted);
	font-size: 10px;
	line-height: 1.8;
}

.boys-event-participants {
	padding: 18px;
	border-radius: 16px;
	background: #f3f1eb;
}

.boys-event-participants > header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 12px;
}

.boys-event-participants > header p {
	margin: 0;
	color: var(--boys-orange-dark);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .1em;
}

.boys-event-participants > header h2 {
	margin: 3px 0 0;
	font-size: 16px;
}

.boys-event-participants > header b {
	padding: 5px 8px;
	border-radius: 999px;
	color: #356557;
	background: #dcece6;
	font-size: 9px;
}

.boys-participant-people {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.boys-participant-people > div {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	padding: 9px;
	border: 1px solid var(--boys-line);
	border-radius: 11px;
	background: #fff;
}

.boys-participant-people .boys-avatar {
	width: 35px;
	height: 35px;
}

.boys-participant-people strong {
	overflow: hidden;
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-participant-people small {
	grid-column: 2;
	margin-top: -6px;
	color: var(--boys-orange-dark);
	font-size: 7px;
	font-weight: 800;
}

.boys-event-owner-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding: 16px;
	border: 1px solid #e3b4ae;
	border-radius: 13px;
	background: #fff8f8;
}

.boys-event-owner-actions strong {
	font-size: 10px;
}

.boys-event-owner-actions p {
	margin: 4px 0 0;
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-event-owner-actions button {
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid #c94b45;
	border-radius: 9px;
	color: #ad302d;
	background: #fff;
	cursor: pointer;
	font-size: 9px;
	font-weight: 850;
}

.boys-event-notifications {
	padding: 20px;
	border: 1px solid #d7c27b;
	border-radius: 18px;
	background: #fffaf0;
}

.boys-notification-list {
	display: grid;
	gap: 7px;
}

.boys-notification-list article {
	display: grid;
	grid-template-columns: 37px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	padding: 10px;
	border: 1px solid #eadfb8;
	border-radius: 11px;
	background: #fff;
}

.boys-notification-list .boys-avatar {
	width: 37px;
	height: 37px;
}

.boys-notification-list article > div {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.boys-notification-list strong {
	font-size: 9px;
}

.boys-notification-list small {
	overflow: hidden;
	color: var(--boys-muted);
	font-size: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-notification-list a {
	color: var(--boys-orange-dark);
	font-size: 9px;
	font-weight: 850;
}

@media (max-width: 760px) {
	.boys-community-events {
		padding: 16px;
	}

	.boys-community-event-card {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.boys-community-event-card > a {
		grid-column: 1 / -1;
	}

	.boys-event-detail-card {
		padding: 17px;
	}

	.boys-event-detail-card > header {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 12px;
	}

	.boys-event-detail-card > header h1 {
		font-size: 21px;
	}

	.boys-event-facts,
	.boys-participant-people {
		grid-template-columns: 1fr;
	}

	.boys-event-owner-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.boys-notification-list article {
		grid-template-columns: 37px minmax(0, 1fr);
	}

	.boys-notification-list a {
		grid-column: 2;
	}
}

.boys-avatar {
	overflow: hidden;
}

.boys-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.boys-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 100000;
	padding: 13px 18px;
	border: 1px solid #b8d6c9;
	border-radius: 12px;
	color: #285849;
	background: #edf8f3;
	font-size: 12px;
	font-weight: 850;
	box-shadow: 0 16px 45px rgba(16, 47, 52, .18);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity .18s ease, transform .18s ease;
}

.boys-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.boys-next-events > header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.boys-next-events > header p,
.boys-profile-editor > header p,
.boys-public-profile > header p {
	margin: 0;
	color: var(--boys-orange-dark);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .12em;
}

.boys-next-events > header h2,
.boys-profile-editor > header h2 {
	margin: 5px 0 3px;
	font-size: 20px;
}

.boys-next-events > header span,
.boys-profile-editor > header span {
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-next-event-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.boys-next-event-card {
	position: relative;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 15px 40px 15px 15px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 17px;
	color: #fff;
	background: var(--boys-navy);
	box-shadow: 0 10px 26px rgba(31, 70, 79, .1);
}

.boys-next-event-card.is-joined {
	box-shadow: inset 0 -3px var(--boys-yellow), 0 10px 26px rgba(31, 70, 79, .1);
}

.boys-next-event-card .boys-event-date {
	width: 54px;
	height: 54px;
	border-radius: 13px;
}

.boys-next-event-card .boys-event-date strong {
	font-size: 20px;
}

.boys-next-event-card > div:nth-child(2) {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.boys-next-event-card p {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	color: #cddadd;
	font-size: 7px;
	font-weight: 850;
}

.boys-next-event-card p b {
	padding: 3px 5px;
	border-radius: 999px;
	color: var(--boys-navy);
	background: var(--boys-yellow);
	font-size: 7px;
}

.boys-next-event-card h3 {
	overflow: hidden;
	margin: 0;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-next-event-card > div:nth-child(2) > span {
	overflow: hidden;
	color: #cddadd;
	font-size: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-next-event-card > a {
	position: absolute;
	right: 12px;
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border-radius: 50%;
	color: var(--boys-navy);
	background: var(--boys-yellow);
	font-size: 12px;
	font-weight: 900;
}

.boys-community-top {
	display: block;
}

.boys-community-leader-compact {
	grid-column: 1 / -1;
	margin-top: 15px;
	padding-top: 13px;
	border-top: 1px solid var(--boys-line);
}

.boys-community-leader-compact > a,
.boys-community-leader-compact > div {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	color: var(--boys-ink);
}

.boys-community-leader-compact .boys-avatar {
	width: 32px;
	height: 32px;
	font-size: 10px;
}

.boys-community-leader-compact span:nth-child(2) {
	display: grid;
	gap: 2px;
}

.boys-community-leader-compact small {
	color: var(--boys-muted);
	font-size: 7px;
}

.boys-community-leader-compact strong {
	font-size: 9px;
}

.boys-community-leader-compact i {
	color: var(--boys-orange-dark);
	font-size: 7px;
	font-style: normal;
	font-weight: 850;
}

.boys-participant-people > .boys-participant-person {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	padding: 9px;
	border: 1px solid var(--boys-line);
	border-radius: 11px;
	color: var(--boys-ink);
	background: #fff;
}

.boys-chat-layout {
	height: 100dvh;
	max-height: 100dvh;
	min-height: 0;
	overflow: hidden;
}

.boys-chat-panel {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.boys-message-feed {
	min-height: 0;
	overscroll-behavior: contain;
}

.boys-chat-composer {
	position: sticky;
	bottom: 0;
	z-index: 5;
}

.boys-chat-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.boys-chat-header-actions > span {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-chat-header-actions i {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #55a27f;
}

.boys-chat-header-actions button {
	min-height: 31px;
	padding: 0 10px;
	border: 1px solid #d8aaa5;
	border-radius: 8px;
	color: #a53a34;
	background: #fff;
	cursor: pointer;
	font-size: 8px;
	font-weight: 850;
}

.boys-message > div > p a {
	color: inherit;
}

body.admin-bar .boys-chat-layout {
	height: calc(100dvh - 32px);
	max-height: calc(100dvh - 32px);
}

.boys-profile-preview-link {
	margin-left: auto;
	color: var(--boys-orange-dark);
	font-size: 9px;
	font-weight: 850;
}

.boys-profile-card > div:first-child {
	flex-wrap: wrap;
}

.boys-profile-editor {
	margin-top: 17px;
	padding: 22px;
	border: 1px solid var(--boys-line);
	border-radius: 21px;
	background: var(--boys-paper);
}

.boys-profile-editor > header {
	padding-bottom: 17px;
	border-bottom: 1px solid var(--boys-line);
}

.boys-profile-editor form {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.boys-profile-editor label {
	display: grid;
	gap: 6px;
}

.boys-profile-editor label > span,
.boys-profile-image-field label > strong {
	color: var(--boys-ink);
	font-size: 9px;
	font-weight: 850;
}

.boys-profile-editor input[type="text"],
.boys-profile-editor input[type="number"],
.boys-profile-editor textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--boys-line);
	border-radius: 10px;
	color: var(--boys-ink);
	background: #fff;
	font: inherit;
	font-size: 11px;
	outline: none;
}

.boys-profile-editor textarea {
	resize: vertical;
}

.boys-profile-editor input:focus,
.boys-profile-editor textarea:focus {
	border-color: var(--boys-orange);
	box-shadow: 0 0 0 3px rgba(218, 99, 58, .1);
}

.boys-profile-editor small {
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-profile-fields {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr);
	gap: 12px;
}

.boys-profile-image-field {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
}

.boys-profile-image-preview {
	width: 78px;
	height: 78px;
	font-size: 22px;
}

.boys-profile-image-field > div:last-child {
	display: grid;
	justify-items: start;
	gap: 7px;
}

.boys-profile-image-field input[type="file"] {
	max-width: 100%;
	font-size: 9px;
}

.boys-profile-remove {
	display: flex !important;
	align-items: center;
	gap: 5px !important;
	color: #9d3d36;
	font-size: 8px;
}

.boys-profile-editor .boys-primary-button {
	width: fit-content;
	min-width: 180px;
}

.boys-member-profile {
	width: min(100%, 820px);
}

.boys-public-profile {
	overflow: hidden;
	border: 1px solid var(--boys-line);
	border-radius: 23px;
	background: var(--boys-paper);
	box-shadow: 0 12px 35px rgba(31, 70, 79, .05);
}

.boys-public-profile > header {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 28px;
	background: linear-gradient(135deg, #fff 0%, #fff8ee 100%);
}

.boys-public-profile-avatar {
	width: 92px;
	height: 92px;
	font-size: 27px;
}

.boys-public-profile > header h1 {
	margin: 5px 0;
	font-size: 28px;
}

.boys-public-profile > header span {
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-public-profile > header > a {
	padding: 9px 12px;
	border: 1px solid var(--boys-line);
	border-radius: 9px;
	color: var(--boys-navy);
	background: #fff;
	font-size: 9px;
	font-weight: 850;
}

.boys-public-profile-bio,
.boys-public-profile-communities {
	padding: 23px 28px;
	border-top: 1px solid var(--boys-line);
}

.boys-public-profile h2 {
	margin: 0 0 10px;
	font-size: 15px;
}

.boys-public-profile-bio p,
.boys-public-profile-communities > p {
	margin: 0;
	color: var(--boys-muted);
	font-size: 10px;
	line-height: 1.8;
}

.boys-public-profile-bio p.is-empty {
	font-style: italic;
}

.boys-public-profile-communities > div {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.boys-public-profile-communities a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 9px;
	color: var(--boys-navy);
	background: #f3f1eb;
	font-size: 9px;
	font-weight: 800;
}

@media (max-width: 1050px) {
	.boys-next-event-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	body.admin-bar .boys-toast {
		top: 58px;
	}

	body.admin-bar .boys-chat-layout {
		height: calc(100dvh - 46px);
		max-height: calc(100dvh - 46px);
	}
}

@media (max-width: 760px) {
	.boys-toast {
		top: 12px;
		right: 12px;
		left: 12px;
		text-align: center;
	}

	.boys-next-events > header {
		align-items: stretch;
		flex-direction: column;
	}

	.boys-community-leader-compact {
		grid-column: 1 / -1;
	}

	.boys-chat-layout {
		height: calc(100dvh - 66px);
		max-height: calc(100dvh - 66px);
	}

	body.admin-bar .boys-chat-layout {
		height: calc(100dvh - 112px);
		max-height: calc(100dvh - 112px);
	}

	.boys-chat-panel > header {
		min-height: 72px;
		padding: 12px 14px;
	}

	.boys-chat-header-actions > span {
		display: none;
	}

	.boys-chat-header-actions button {
		padding: 0 8px;
	}

	.boys-message-feed {
		padding: 15px 12px;
	}

	.boys-chat-composer {
		padding: 10px 12px;
	}

	.boys-profile-preview-link {
		margin-left: 0;
	}

	.boys-profile-editor {
		padding: 17px;
	}

	.boys-profile-fields {
		grid-template-columns: 1fr;
	}

	.boys-profile-image-field {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.boys-profile-image-preview {
		width: 68px;
		height: 68px;
	}

	.boys-profile-editor .boys-primary-button {
		width: 100%;
	}

	.boys-public-profile > header {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 13px;
		padding: 20px;
	}

	.boys-public-profile-avatar {
		width: 72px;
		height: 72px;
		font-size: 21px;
	}

	.boys-public-profile > header h1 {
		font-size: 22px;
	}

	.boys-public-profile > header > a {
		grid-column: 1 / -1;
		text-align: center;
	}

	.boys-public-profile-bio,
	.boys-public-profile-communities {
		padding: 19px;
	}
}

/* v1.7: membership requests, event lifecycle and compact community cards */
.boys-community-directory-section + .boys-community-directory-section {
	margin-top: 38px;
}

.boys-community-directory-section > header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.boys-community-directory-section > header p {
	margin: 0;
	color: var(--boys-orange-dark);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .12em;
}

.boys-community-directory-section > header h2 {
	margin: 5px 0 2px;
	font-size: 20px;
}

.boys-community-directory-section > header span {
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-community-directory-section > header > b {
	padding: 6px 9px;
	border-radius: 999px;
	color: var(--boys-orange-dark);
	background: #f8ddd4;
	font-size: 10px;
}

.boys-community-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 734px;
	justify-content: start;
}

.boys-community-card {
	min-height: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.boys-community-card > span {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.boys-community-request-card form {
	display: grid;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #ebeae4;
}

.boys-community-request-card form button {
	min-height: 38px;
	border: 0;
	border-radius: 9px;
	color: #fff;
	background: var(--boys-orange);
	cursor: pointer;
	font-size: 9px;
	font-weight: 850;
}

.boys-community-request-card.is-pending form button {
	border: 1px solid #c7d7d1;
	color: #41635b;
	background: #fff;
}

.boys-community-request-card .boys-form-message {
	display: none;
}

.boys-community-request-card .boys-form-message.is-error {
	display: block;
	margin: 0 0 6px;
	font-size: 7px;
}

.boys-overview-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
}

.boys-overview-label > b {
	font-size: 10px;
}

.boys-overview-label button {
	padding: 6px 9px;
	border: 1px solid var(--boys-line);
	border-radius: 8px;
	color: var(--boys-orange-dark);
	background: #fff;
	cursor: pointer;
	font-size: 8px;
	font-weight: 850;
}

.boys-dialog-time-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.boys-dialog-help {
	margin-top: -8px;
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-calendar-date-button {
	border: 0;
	cursor: pointer;
	font: inherit;
}

.boys-event-facts > button {
	display: grid;
	gap: 5px;
	padding: 13px;
	border: 0;
	border-radius: 11px;
	color: inherit;
	background: #f3f1eb;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.boys-event-facts > button > span {
	color: var(--boys-muted);
	font-size: 8px;
}

.boys-event-status {
	display: inline-flex;
	align-items: center;
	margin-left: 5px;
	padding: 3px 6px;
	border-radius: 999px;
	color: #6b6250;
	background: #ece9df;
	font-size: 7px;
	font-weight: 900;
}

.boys-event-status.is-live,
.boys-community-event-copy p b.is-live,
.boys-next-event-card p b.is-live {
	color: #fff;
	background: #d94c3f;
}

.boys-event-card.is-live {
	border-left-color: #d94c3f;
	box-shadow: 0 0 0 2px rgba(217, 76, 63, .08);
}

.boys-participation.is-ended {
	grid-template-columns: 35px minmax(0, 1fr);
	border-color: var(--boys-line);
	background: #f3f1eb;
}

.boys-event-owner-actions > div:last-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
}

.boys-event-owner-actions button.is-edit {
	border-color: var(--boys-navy);
	color: #fff;
	background: var(--boys-navy);
}

.boys-calendar-dialog > p,
.boys-calendar-dialog > small {
	margin: 0;
	color: var(--boys-muted);
	font-size: 9px;
	line-height: 1.7;
}

.boys-calendar-options {
	display: grid;
	gap: 8px;
}

.boys-calendar-options a {
	display: flex;
	min-height: 45px;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	border: 1px solid var(--boys-line);
	border-radius: 11px;
	color: var(--boys-navy);
	background: #fff;
	font-size: 10px;
	font-weight: 850;
}

.boys-calendar-options a::after {
	content: "→";
}

.boys-past-event-list {
	display: grid;
	gap: 8px;
}

.boys-past-event-card {
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 13px 15px;
	border: 1px solid var(--boys-line);
	border-radius: 14px;
	background: #f8f7f2;
}

.boys-past-event-card > span {
	display: grid;
	width: 45px;
	height: 45px;
	place-items: center;
	border-radius: 12px;
	background: #ece9df;
	font-size: 22px;
}

.boys-past-event-card > div {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.boys-past-event-card p,
.boys-past-event-card h3,
.boys-past-event-card small {
	margin: 0;
}

.boys-past-event-card p,
.boys-past-event-card small {
	overflow: hidden;
	color: var(--boys-muted);
	font-size: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.boys-past-event-card p b {
	margin-left: 5px;
	color: #356557;
}

.boys-past-event-card h3 {
	font-size: 12px;
}

.boys-past-event-card > a {
	color: var(--boys-orange-dark);
	font-size: 9px;
	font-weight: 850;
}

@media (min-width: 761px) and (max-width: 900px) {
	.boys-community-card {
		padding: 15px;
	}

	.boys-community-card > span {
		-webkit-line-clamp: 2;
	}

	.boys-community-card dl {
		display: none;
	}
}

@media (max-width: 760px) {
	.boys-community-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.boys-community-card {
		min-height: 0;
		padding: 12px;
		border-radius: 15px;
	}

	.boys-community-card > div:first-child > span {
		font-size: 27px;
	}

	.boys-community-card > div:first-child > i {
		padding: 3px 5px;
		font-size: 6px;
	}

	.boys-community-card > p {
		overflow: hidden;
		margin: 8px 0 3px;
		font-size: 6px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.boys-community-card h2 {
		display: -webkit-box;
		overflow: hidden;
		margin-bottom: 4px;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 12px;
		line-height: 1.25;
	}

	.boys-community-card > span,
	.boys-community-card dl {
		display: none;
	}

	.boys-community-card footer,
	.boys-community-request-card form {
		padding-top: 8px;
		font-size: 7px;
	}

	.boys-community-request-card form button {
		min-height: 31px;
		padding: 0 5px;
		font-size: 7px;
	}

	.boys-community-directory-section > header {
		align-items: flex-start;
	}

	.boys-dialog-time-grid {
		grid-template-columns: 1fr;
	}

	.boys-event-owner-actions > div:last-child,
	.boys-event-owner-actions button {
		width: 100%;
	}

	.boys-past-event-card {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.boys-past-event-card > span {
		width: 40px;
		height: 40px;
	}

	.boys-past-event-card > a {
		grid-column: 2;
	}
}

/* v1.8: unread badges and Google authentication */
.boys-google-button {
	display: flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 11px;
	border: 1px solid #cfd4d5;
	border-radius: 11px;
	color: #27383d;
	background: #fff;
	box-shadow: 0 2px 6px rgba(31, 70, 79, .06);
	font-size: 12px;
	font-weight: 850;
}

.boys-google-button:hover {
	border-color: #99a7aa;
	background: #fbfcfc;
}

.boys-google-button b {
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border-radius: 50%;
	color: #4285f4;
	background: #f2f6ff;
	font-size: 15px;
	font-family: Arial, sans-serif;
}

.boys-auth-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-auth-divider::before,
.boys-auth-divider::after {
	height: 1px;
	flex: 1;
	background: var(--boys-line);
	content: "";
}

.boys-nav-badge {
	display: inline-grid;
	min-width: 20px;
	height: 20px;
	margin-left: auto;
	padding: 0 5px;
	place-items: center;
	border-radius: 999px;
	color: #fff;
	background: #d94c32;
	font-size: 8px;
	font-weight: 900;
	line-height: 1;
}

.boys-nav-badge[hidden] {
	display: none;
}

.boys-sidebar nav a.is-active .boys-nav-badge {
	color: #8e2e1f;
	background: #ffd8cc;
}

.boys-unread-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -8px 0 23px;
	padding: 11px 13px;
	border: 1px solid #edc3b7;
	border-radius: 13px;
	background: #fff7f3;
}

.boys-unread-summary > div {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-right: auto;
	font-size: 10px;
}

.boys-unread-summary > div span {
	color: #d94c32;
	font-size: 8px;
}

.boys-unread-summary > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	border-radius: 999px;
	color: #8b3524;
	background: #ffe1d8;
	font-size: 9px;
	font-weight: 850;
}

.boys-unread-summary > a b {
	display: grid;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	place-items: center;
	border-radius: 999px;
	color: #fff;
	background: #d94c32;
}

.boys-unread-summary > a[hidden],
.boys-unread-summary > small[hidden] {
	display: none;
}

.boys-unread-summary > small {
	color: var(--boys-muted);
	font-size: 9px;
}

.boys-unread-summary.is-clear {
	border-color: #d8e2de;
	background: #f4f8f6;
}

.boys-unread-summary.is-clear > div span {
	color: #5a9a7f;
}

.boys-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 7px;
}

.boys-card-badges b,
.boys-section-controls > b {
	padding: 5px 7px;
	border-radius: 999px;
	color: #963923;
	background: #ffe0d6;
	font-size: 7px;
	font-weight: 900;
}

.boys-new-label {
	margin-left: 5px;
	color: #fff !important;
	background: #d94c32 !important;
}

.boys-section-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.boys-thread-list > a > b > em {
	margin-bottom: 3px;
	padding: 3px 5px;
	border-radius: 999px;
	color: #fff;
	background: #d94c32;
	font-size: 7px;
	font-style: normal;
	line-height: 1;
}

@media (max-width: 760px) {
	.boys-mobile-nav a {
		position: relative;
	}

	.boys-mobile-nav .boys-nav-badge {
		position: absolute;
		top: 7px;
		right: calc(50% - 26px);
		min-width: 17px;
		height: 17px;
		margin: 0;
		font-size: 7px;
	}

	.boys-unread-summary {
		align-items: flex-start;
		flex-wrap: wrap;
		margin-top: -6px;
	}

	.boys-unread-summary > div {
		width: 100%;
	}

	.boys-section-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.boys-section-controls > b {
		align-self: flex-start;
	}

	.boys-community-card > .boys-card-badges {
		margin-top: 5px;
	}

	.boys-card-badges b {
		padding: 3px 5px;
		font-size: 6px;
	}
}
