/* Events hub (page-scoped, loaded only from events_body.html). */

body.section-events #sidebar {
	display: none;
}

body.section-events #content-main {
	width: 100%;
	float: none;
	display: block;
	box-sizing: border-box;
	padding-top: 0;
}

body.section-events .events-board-chrome {
	width: calc(100% + 20px);
	max-width: none;
	margin: 0 -10px;
	box-sizing: border-box;
}

body.section-events .events-board__banner {
	border-radius: var(--yws-content-radius, 4px) var(--yws-content-radius, 4px) 0 0;
}

.events-page {
	padding: 0;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.events-page__pane {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-sizing: border-box;
}

.events-bento {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
	gap: 16px;
	align-items: start;
	padding: 18px 16px 22px;
	box-sizing: border-box;
}

.events-bento__main {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.events-bento__main > .events-block,
.events-bento__challenges.events-block {
	height: auto;
}

.events-bento--filtered {
	grid-template-columns: minmax(0, 1fr);
}

.events-bento--filtered .events-bento__main,
.events-bento--filtered .events-bento__challenges {
	grid-column: 1;
}

[data-events-section][hidden],
.events-page__empty[hidden] {
	display: none !important;
}

.events-bento__challenges {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	display: flex;
	flex-direction: column;
	height: auto;
}

/* Floating blocks (elevation via .floating-effect in custom.css) */
.events-block {
	margin: 0;
	padding: 20px 22px 22px;
	border-radius: 8px;
	box-sizing: border-box;
	min-width: 0;
	height: 100%;
}

.events-page .events-block.floating-effect {
	border-color: rgba(255, 255, 255, 0.65);
	border-radius: 8px;
}

/* Bulletin-board thumb tacks (real elements; bg-* surfaces use ::before/::after) */
.events-page .events-block {
	position: relative;
}

.events-page .events-block__pin {
	position: absolute;
	top: 6px;
	width: 15px;
	height: 19px;
	z-index: 4;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: contain;
	filter: drop-shadow(0 1px 2px rgba(31, 45, 61, 0.32));
}

.events-page .events-block__pin--tl {
	left: 13px;
	transform: rotate(-11deg);
}

.events-page .events-block__pin--tr {
	right: 13px;
	transform: rotate(9deg);
}

.events-page .events-bento__lead .events-block__pin--tl {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%23c94545'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__lead .events-block__pin--tr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%23d4a017'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__daily .events-block__pin--tl {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%234a7eb0'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__daily .events-block__pin--tr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%230b8d55'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__contests .events-block__pin--tl {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%23a17812'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__contests .events-block__pin--tr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%23c94545'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__challenges .events-block__pin--tl {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%238e44b3'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__challenges .events-block__pin--tr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%230f5d95'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__prompts .events-block__pin--tl {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%23d4a017'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-page .events-bento__prompts .events-block__pin--tr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Ccircle cx='8' cy='6' r='5.5' fill='%230b8d55'/%3E%3Ccircle cx='6.3' cy='4.4' r='1.7' fill='rgba(255,255,255,0.38)'/%3E%3Cpath d='M8 11.2v6.3' stroke='%23868686' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='18.4' r='1.1' fill='%235f5f5f'/%3E%3C/svg%3E");
}

.events-block--lead {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.events-page h3 {
	border-bottom: none;
	text-transform: none;
	margin-top: 0;
	padding-bottom: 0;
}

/* Board chrome: banner + browse-type tabs, flush inside pane */
.events-board-chrome {
	position: relative;
	box-sizing: border-box;
}

.events-board__banner {
	position: relative;
	width: 100%;
	min-height: 132px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	background-color: #3d5770;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.events-board__banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12, 18, 28, 0.72) 0%, rgba(12, 18, 28, 0.42) 42%, rgba(12, 18, 28, 0.1) 100%);
	pointer-events: none;
}

.events-board__banner-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	height: 100%;
	min-height: 132px;
	padding: 18px 18px 16px;
}

.events-board__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px 18px;
	width: 100%;
}

.events-board__copy {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 42em;
}

.events-board__title {
	margin: 0 0 6px;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	border: none;
	text-transform: none;
}

.events-board__lead {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.events-board__action {
	flex: 0 0 auto;
	align-self: flex-end;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
	white-space: nowrap;
}

.events-board__action:hover,
.events-board__action:focus {
	text-decoration: none;
}

.events-board-chrome > .browse-type-tabs {
	margin: 0;
	width: 100%;
}

.events-page__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	font-size: 13px;
	color: #64748b;
}

#content-main #content.events-page .events-board__title {
	border-bottom: none;
	text-transform: none;
	margin-top: 0;
	padding-bottom: 0;
}

@media (max-width: 768px) {
	.events-board__banner,
	.events-board__banner-inner {
		min-height: 120px;
	}

	.events-board__top {
		flex-direction: column;
		align-items: stretch;
	}

	.events-board__action {
		align-self: flex-start;
	}
}

@media (max-width: 480px) {
	.events-board__banner,
	.events-board__banner-inner {
		min-height: 108px;
	}

	.events-board__banner-inner {
		padding: 14px 14px 12px;
	}

	.events-board__title {
		font-size: 20px;
	}
}

/* Icons: tinted per section */
.events-section__icon,
.events-daily__type,
.events-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex: 0 0 auto;
}

.events-section__icon {
	width: 28px;
	height: 28px;
	font-size: 13px;
	background: #e8f0f7;
	color: #2b4f77;
}

.events-section__icon--daily {
	background: #fff3cd;
	color: #a17812;
}

.events-section__icon--contests {
	background: #f3eee6;
	color: #a17812;
}

.events-section__icon--challenges {
	background: #e8f5ef;
	color: #0b8d55;
}

.events-section__icon--prompts {
	background: #f7eef2;
	color: #8e44b3;
}

.events-daily__type {
	width: 26px;
	height: 26px;
	font-size: 12px;
	background: #e8f0f7;
	color: #2b4f77;
}

.events-tile__icon {
	width: 32px;
	height: 32px;
	margin: 0 0 10px;
	font-size: 14px;
	background: #f7eef2;
	color: #8e44b3;
}

/* Tiles */
.events-daily__item,
.events-tile {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #e3eaf2;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 6px;
	box-sizing: border-box;
}

.events-daily__item.floating-effect,
a.events-tile.floating-effect,
.events-challenge-card.floating-effect {
	border-radius: 4px;
}

a.events-tile.floating-effect {
	border-top-width: 3px;
}

.events-daily__item {
	padding: 14px 16px;
}

a.events-tile {
	display: block;
	text-decoration: none;
	color: inherit;
	border-top: 3px solid #8e44b3;
}

a.events-tile:hover,
a.events-tile:focus {
	border-color: #8e44b3;
	text-decoration: none;
}

a.events-tile.floating-effect:hover,
a.events-tile.floating-effect:focus {
	border-top-color: #8e44b3;
}

/* Monthly lead */
.events-lead__meta {
	display: block;
	padding: 16px 20px 18px;
	background: rgba(255, 255, 255, 0.55);
}

.events-lead__copy {
	min-width: 0;
}

.events-lead__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a17812;
}

.events-lead__eyebrow i {
	margin-right: 5px;
}

.events-lead__title {
	margin: 0 0 4px;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 24px;
	line-height: 1.2;
	color: #1a3a5c;
	font-weight: 700;
}

/* Helper text = 12px */
.events-lead__dates,
.events-official__dates,
.events-challenge-card__dates,
.events-tile__meta,
.events-section__more,
.events-official__status,
.events-official__meta-label,
.events-daily__badge {
	font-size: 12px;
}

.events-lead__dates,
.events-official__dates,
.events-tile__meta {
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b7c8f;
}

.events-lead__dates {
	margin: 0 0 8px;
}

/* Body text = 13px (inherits from .events-page) */
.events-lead__blurb,
.events-daily__blurb,
.events-official__blurb,
.events-section__intro,
.events-challenge-card__desc,
.events-official__meta {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.events-lead__actions,
.events-daily__actions {
	margin: 0 0 12px;
}

.events-lead__actions {
	margin-top: 12px;
}

.events-section__heading {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 22px;
	line-height: 1.3;
	color: #1f2d3d;
	font-weight: 700;
}

.events-block > .events-section__heading,
.events-block__rail-head,
.events-block__mosaic-head {
	margin: 0 0 14px;
}

.events-block__mosaic-head .events-section__heading {
	margin: 0 0 8px;
}

.events-block__mosaic-head .events-section__intro {
	margin: 0;
	max-width: 42em;
}

.events-bento__challenges .events-section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 10px;
	margin: 0 0 8px;
	flex-wrap: nowrap;
}

.events-bento__challenges .events-section__head .events-section__heading {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	font-size: 18px;
}

.events-bento__challenges .events-section__head .events-section__more {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	margin: 2px 0 0;
	font-size: 11px;
	line-height: 1.35;
	text-align: right;
	max-width: 7.5em;
	white-space: normal;
}

.events-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	flex-wrap: wrap;
}

.events-section__head .events-section__heading {
	margin: 0;
}

.events-section__more {
	font-weight: 600;
	color: #006695;
	text-decoration: none;
	white-space: nowrap;
}

.events-section__more:hover,
.events-section__more:focus {
	text-decoration: underline;
}

.events-section__more-wrap {
	margin: 12px 0 0;
	text-align: right;
}

.events-section__intro {
	margin: 0 0 16px;
	color: #4a5568;
}

.events-section__intro a {
	color: #006695;
}

/* Daily */
.events-block--rail {
	display: flex;
	flex-direction: column;
	padding-bottom: 18px;
}

.events-daily {
	list-style: none;
	margin: 0;
	padding: 0;
}

.events-daily--strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.events-daily__item--live {
	border-color: #7bc9a0;
	background: rgba(232, 245, 239, 0.95);
}

.events-daily__badges {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	flex-wrap: wrap;
}

.events-daily__badge,
.events-official__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-radius: 3px;
}

.events-daily__badge {
	color: #1a3a5c;
	background: #e8f0f7;
}

.events-daily__item--live .events-daily__badge {
	color: #0b4a2a;
	background: #d8f3e4;
}

.events-official__badge {
	gap: 6px;
	padding: 3px 9px;
	font-size: 11px;
	color: #fff;
	background: #a17812;
}

.events-daily__title,
.events-tile__title,
.events-official__title,
.events-challenge-card__title {
	margin: 0 0 6px;
	line-height: 1.3;
	color: #1a3a5c;
	font-weight: 700;
}

.events-daily__title {
	font-size: 16px;
}

.events-tile__title {
	margin: 0 0 4px;
	font-size: 15px;
}

.events-challenge-card__title {
	margin: 0;
	font-size: 16px;
}

.events-official__title {
	font-size: 20px;
}

.events-daily__blurb {
	margin: 0 0 8px;
}

.events-daily__item--custom {
	border-color: #c4b5e0;
}

.events-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	padding-top: 2px;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.35;
	color: #1a3a5c;
}

.events-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.events-meta__item i {
	color: #1a3a5c;
	font-size: 13px;
	line-height: 1;
}

.events-meta__item strong {
	font-weight: 700;
}

.events-meta__sep {
	display: inline-block;
	width: 1px;
	height: 14px;
	background: #c5d0dc;
	flex: 0 0 auto;
}

.events-facepile {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	margin-left: 2px;
}

.events-facepile__item {
	display: inline-flex;
	width: 28px;
	height: 28px;
	margin-left: -10px;
	border-radius: 50%;
	border: 2px solid #fff;
	overflow: hidden;
	background: #d7e2ef;
	box-sizing: border-box;
	position: relative;
}

.events-facepile__item:first-child {
	margin-left: 0;
}

.events-facepile__item img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 50%;
}

/* Stack later avatars under earlier ones (leftmost on top) */
.events-facepile__item:nth-child(1) { z-index: 8; }
.events-facepile__item:nth-child(2) { z-index: 7; }
.events-facepile__item:nth-child(3) { z-index: 6; }
.events-facepile__item:nth-child(4) { z-index: 5; }
.events-facepile__item:nth-child(5) { z-index: 4; }
.events-facepile__item:nth-child(6) { z-index: 3; }
.events-facepile__item:nth-child(7) { z-index: 2; }
.events-facepile__item:nth-child(8) { z-index: 1; }

.events-daily__hashtags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.events-daily__hashtag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f3eef8;
	border: 1px solid #d9ccec;
	color: #6b3d8c;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
}

.events-daily__hashtag:hover,
.events-daily__hashtag:focus {
	border-color: #8e44b3;
	color: #5a2d78;
	text-decoration: none;
}

/* Contests */
.events-official {
	display: grid;
	grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
	gap: 14px 16px;
	align-items: center;
	padding: 4px 0 0;
	box-sizing: border-box;
}

.events-official__copy {
	min-width: 0;
}

.events-official__art {
	margin: 0;
	justify-self: start;
}

.events-official__art img {
	display: block;
	width: 120px;
	height: auto;
	max-width: 100%;
	filter: drop-shadow(0 6px 14px rgba(161, 120, 18, 0.18));
}

.events-official__top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 10px;
}

.events-official__status {
	font-weight: 600;
	color: #0b4a2a;
}

.events-official__title a {
	color: #1a3a5c;
	text-decoration: none;
}

.events-official__title a:hover,
.events-official__title a:focus {
	text-decoration: underline;
}

.events-official__dates {
	margin: 0 0 10px;
}

.events-official__blurb {
	margin: 0 0 14px;
	max-width: 48em;
}

.events-official__meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.events-official__meta-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 5.5em;
	margin-right: 8px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #6b7c8f;
}

.events-official__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Challenge cards */
.events-challenge-list,
.events-tile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	flex: 1 1 auto;
}

.events-bento__challenges .events-challenge-list {
	gap: 10px;
}

.events-bento__challenges .events-challenge-card__hero {
	align-items: center;
	padding: 10px 10px 8px;
}

.events-bento__challenges .events-challenge-card__hero-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.events-bento__challenges .events-challenge-card__hero .events-challenge-card__title {
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
}

.events-bento__challenges .events-challenge-card__badge {
	width: 44px;
	height: 44px;
	font-size: 11px;
}

.events-bento__challenges .events-challenge-card__body {
	padding: 10px 12px 12px;
}

.events-bento__challenges .events-challenge-card__desc {
	font-size: 11px;
	line-height: 1.4;
	margin-bottom: 4px;
}

.events-bento__challenges .events-challenge-card__wl-hint {
	margin: 0 0 4px;
	font-size: 11px;
	line-height: 1.4;
	color: #64748b;
}

.events-bento__challenges .events-challenge-card__wl-hint a {
	color: #006695;
	text-decoration: none;
}

.events-bento__challenges .events-challenge-card__wl-hint a:hover,
.events-bento__challenges .events-challenge-card__wl-hint a:focus {
	text-decoration: underline;
}

.events-bento__challenges .events-challenge-card__social {
	margin: 0 0 6px;
}

.events-bento__challenges .events-challenge-card__dates {
	margin-bottom: 8px;
}

.events-bento__challenges .events-challenge-card__join {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 10px;
	font-size: 11px;
}

.events-challenge-card__closed {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-align: center;
}

.events-challenge-empty {
	margin: 0;
	padding: 8px 2px 4px;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.events-challenge-empty a {
	font-weight: 600;
}

.events-challenge-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-top: 2px solid #3d5a73;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 6px;
	box-sizing: border-box;
	overflow: hidden;
	height: 100%;
}

.events-challenge-card--words {
	border-top-color: #3d7a5c;
}

.events-challenge-card--novel {
	border-top-color: #8a7344;
}

.events-challenge-card--hours {
	border-top-color: #3d6f94;
}

.events-challenge-card--lines {
	border-top-color: #7a5f94;
}

.events-challenge-card--reviews {
	border-top-color: #9a6b55;
}

.events-challenge-card--tortoise {
	border-top-color: #4a7c6d;
}

.events-challenge-card--roleplay {
	border-top-color: #6b5b8a;
}

.events-challenge-card__hero {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 10px;
}

.events-challenge-card__hero-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.events-challenge-card__hero .events-challenge-card__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
}

.events-challenge-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #3d5a73;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.events-challenge-card--words .events-challenge-card__badge {
	background: #3d7a5c;
}

.events-challenge-card--novel .events-challenge-card__badge {
	background: #8a7344;
}

.events-challenge-card--hours .events-challenge-card__badge {
	background: #3d6f94;
}

.events-challenge-card--lines .events-challenge-card__badge {
	background: #7a5f94;
}

.events-challenge-card--reviews .events-challenge-card__badge {
	background: #9a6b55;
}

.events-challenge-card--tortoise .events-challenge-card__badge {
	background: #4a7c6d;
}

.events-challenge-card--roleplay .events-challenge-card__badge {
	background: #6b5b8a;
}

.events-challenge-card__banner {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	background: #eef3f8;
}

.events-challenge-card__banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.events-challenge-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px 14px;
	flex: 1 1 auto;
}

.events-challenge-card__title a {
	color: #1a3a5c;
	text-decoration: none;
}

.events-challenge-card__title a:hover,
.events-challenge-card__title a:focus {
	text-decoration: underline;
}

.events-challenge-card__desc {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.events-challenge-card__desc i {
	margin-top: 2px;
	color: #2b4f77;
	flex: 0 0 auto;
}

.events-challenge-card--words .events-challenge-card__desc i {
	color: #3d7a5c;
}

.events-challenge-card--novel .events-challenge-card__desc i {
	color: #8a7344;
}

.events-challenge-card--hours .events-challenge-card__desc i {
	color: #3d6f94;
}

.events-challenge-card--lines .events-challenge-card__desc i {
	color: #7a5f94;
}

.events-challenge-card--reviews .events-challenge-card__desc i {
	color: #9a6b55;
}

.events-challenge-card--tortoise .events-challenge-card__desc i {
	color: #4a7c6d;
}

.events-challenge-card--roleplay .events-challenge-card__desc i {
	color: #6b5b8a;
}

.events-challenge-card__wl-hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.events-challenge-card__wl-hint a {
	color: #006695;
	text-decoration: none;
}

.events-challenge-card__wl-hint a:hover,
.events-challenge-card__wl-hint a:focus {
	text-decoration: underline;
}

.events-challenge-card__dates {
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
	color: #6b7c8f;
}

.events-challenge-card__join {
	width: 100%;
	margin-top: auto;
	box-sizing: border-box;
	text-align: center;
	justify-content: center;
}

.events-tile__meta {
	margin: 0;
	letter-spacing: 0.03em;
	color: #8a97a6;
}

@media (max-width: 900px) {
	.events-bento {
		grid-template-columns: 1fr;
	}

	.events-bento__main,
	.events-bento__challenges {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (max-width: 720px) {
	.events-lead__title {
		font-size: 20px;
	}

	.events-lead__meta {
		padding: 14px 16px 16px;
	}
}

@media (max-width: 640px) {
	.events-bento {
		padding: 14px 12px 16px;
	}

	.events-block {
		padding: 18px 16px 20px;
	}

	.events-block--lead {
		padding: 0;
	}

	.events-section__heading {
		font-size: 20px;
	}

	.events-official {
		grid-template-columns: 1fr;
	}

	.events-official__art {
		justify-self: center;
	}
}

/* Weekly Story Sprint: match Events hub full-width chrome */
body.section-events_story_sprint #sidebar,
body.section-events_story_sprint_archive #sidebar,
body.section-events_story_sprint_week #sidebar {
	display: none;
}

body.section-events_story_sprint #content-main,
body.section-events_story_sprint_archive #content-main,
body.section-events_story_sprint_week #content-main {
	width: 100%;
	float: none;
	display: block;
	box-sizing: border-box;
	padding-top: 0;
}

body.section-events_story_sprint .events-board-chrome,
body.section-events_story_sprint_archive .events-board-chrome,
body.section-events_story_sprint_week .events-board-chrome {
	width: calc(100% + 20px);
	max-width: none;
	margin: 0 -10px;
	box-sizing: border-box;
}

body.section-events_story_sprint .events-board__banner,
body.section-events_story_sprint_archive .events-board__banner,
body.section-events_story_sprint_week .events-board__banner {
	border-radius: var(--yws-content-radius, 4px) var(--yws-content-radius, 4px) 0 0;
}

.story-sprint-page [hidden] {
	display: none !important;
}

.story-sprint-layout {
	display: grid;
	gap: 16px;
	padding: 18px 16px 22px;
}

.story-sprint-panel {
	padding: 18px 20px 20px;
}

.story-sprint-chrome__banner .story-sprint-chrome__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.story-sprint-chrome__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-self: flex-end;
}

.story-sprint-chrome__banner .gemini-btn.gemini-btn--secondary {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.92);
	color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.story-sprint-chrome__banner .gemini-btn.gemini-btn--secondary:hover,
.story-sprint-chrome__banner .gemini-btn.gemini-btn--secondary:focus {
	background: rgba(255, 255, 255, 0.24);
	border-color: #fff;
	color: #fff;
	text-decoration: none;
}

.story-sprint-chrome__banner .gemini-btn.gemini-btn--primary {
	background: #f3f6fa;
	border-color: #f3f6fa;
	color: #12275a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.story-sprint-chrome__banner .gemini-btn.gemini-btn--primary:hover,
.story-sprint-chrome__banner .gemini-btn.gemini-btn--primary:focus {
	background: #fff;
	border-color: #fff;
	color: #12275a;
	text-decoration: none;
}

.story-sprint-page .events-page__pane > .story-sprint-panel {
	margin: 18px 16px 22px;
}

.story-sprint-constraints,
.story-sprint-archive-list {
	margin: 0;
	padding-left: 1.2em;
}

.story-sprint-notice,
.story-sprint-empty {
	margin: 12px 0 0;
	color: #475569;
}

.story-sprint-compose__timer {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
}

.story-sprint-compose__timer strong {
	font-size: 28px;
	color: #0f172a;
}

.story-sprint-compose__meta {
	margin: 8px 0 0;
	color: #64748b;
}

.story-sprint-compose__feedback.is-error {
	color: #b91c1c;
}

.story-sprint-entry {
	padding: 16px;
	margin-top: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
}

.story-sprint-entry--winner {
	border-color: rgba(180, 83, 9, 0.35);
}

.story-sprint-gallery[data-archive-collapsed="1"] .story-sprint-entry--archive-extra {
	display: none;
}

.story-sprint-gallery.is-expanded .story-sprint-entry--archive-extra {
	display: block;
}

.story-sprint-entry__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.story-sprint-entry__avatar img,
.story-sprint-entry__avatar-fallback {
	width: 40px;
	height: 40px;
	border-radius: 999px;
}

.story-sprint-entry__avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #dbeafe;
	color: #1d4ed8;
	font-weight: 700;
}

.story-sprint-entry__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.story-sprint-entry__author {
	display: block;
	font-weight: 700;
}

.story-sprint-entry__date {
	display: block;
	color: #64748b;
	font-size: 12px;
}

.story-sprint-entry__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.story-sprint-entry__body {
	margin-top: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.story-sprint-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.story-sprint-reactions__picker,
.story-sprint-reactions__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.story-sprint-reactions__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 34px;
	padding: 4px 8px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.story-sprint-reactions__btn.is-active {
	border-color: #2563eb;
	background: #eff6ff;
}

.story-sprint-reactions__count:empty {
	display: none;
}

.story-sprint-archive-list {
	list-style: none;
	padding: 0;
}

.story-sprint-archive-list__item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 14px;
	margin-top: 10px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
}

.story-sprint-archive-list__title {
	margin: 0 0 4px;
	font-size: 18px;
}

.story-sprint-archive-list__meta {
	margin: 0;
	color: #64748b;
}

.events-story-sprint-card {
	padding: 14px 16px 16px;
}

.events-story-sprint-card__week {
	margin: 0 0 8px;
	font-weight: 700;
}

.events-story-sprint-card__constraints {
	margin: 0 0 10px;
	padding-left: 1.2em;
}

.events-story-sprint-card__meta {
	margin: 0 0 12px;
	color: #475569;
}

.events-page .events-bento__story-sprint .events-block__pin--tl {
	left: 18px;
}

.events-page .events-bento__story-sprint .events-block__pin--tr {
	right: 18px;
}

.story-sprint-staff-panel__notice,
.story-sprint-staff-panel__meta {
	margin-top: 0;
}

.story-sprint-staff-panel__meta {
	margin-bottom: 12px;
	color: #64748b;
	font-size: 12px;
}

.story-sprint-staff-toggle-wrap {
	margin: 0 0 12px;
}

.story-sprint-entry--staff {
	border-color: rgba(180, 83, 9, 0.22);
}

.story-sprint-staff-gallery {
	display: grid;
	gap: 12px;
}

.events-section__icon--story-sprint {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
}
