/*
General
 */

/*
Page Content
 */
.PageContentInner {
	margin-inline: auto;
	max-width: calc(var(--ReadableContent-MaxWidth) + 2 * var(--Viewport-InlinePadding));
	padding-inline: var(--Viewport-InlinePadding);
}

.ChallengeHeadingArea {
	align-items: start;
	display: grid;
	gap: 0 24px;
	grid-template-columns: 1fr auto;
	grid-template-areas:
			"Title CopyLink"
			"CreatedBy CopyLink";
	padding-top: 67px;
	margin-bottom: 18px;
}

.ChallengeTitle {
	font-size: 28px;
	grid-area: Title;
	line-height: 26px;
	margin-bottom: 5px;
}

.ChallengeCreatedBy {
	font-size: 16px;
	grid-area: CreatedBy;
	line-height: 20px;
	margin: 0;
}

.ChallengeHeadingAreaCopyLink {
	--ThisButton-BackgroundColor:                    var(--Colors-Brand-Secondary);
	--ThisButton-BorderColor:                        transparent;
	--ThisButton-Color:                              var(--Colors-Brand-Primary);

	aspect-ratio: 1 / 1;
	border-radius: 100%;
	grid-area: CopyLink;
	padding: 12px;
}

.ChallengeHeadingAreaCopyLink .ButtonIcon {
	width: 20px;
}

.ChallengeCreatedBy > .ChallengeCreator {
	font-weight: 700;
}

/*
Icon Area
 */
.ChallengeIconArea {
	align-items: center;
	background-color: var(--Colors-Brand-Secondary);
	border-radius: 16px;
	display: flex;
	justify-content: center;
	margin-bottom: 8px;
	padding: 18px 18px 17px;
}

.ChallengeIcon {
	height: 105px;
	max-width: 100%;
}

/*
Challenge Status Area
 */
.ChallengeStatusArea {
	--ChallengerOneTheme-Color: var(--Colors-Secondary-Accent01);
	--ChallengerTwoTheme-Color: var(--Colors-Secondary-Accent03);
}

.ChallengeStatusChallengers {
	--Typeface-FontWght: 500;

	display: flex;
	font-family: var(--Typeface01-FontFamily);
	font-size: 16px;
	font-variation-settings: var(--Typeface01-FontVariationSettings);
	font-weight: var(--Typeface-FontWght);
	justify-content: space-between;
	line-height: 1;
	margin-bottom: 10px;
}

.ChallengeStatusChallengerOne {
	--ChallengerTheme-Color: var(--ChallengerOneTheme-Color);
}

.ChallengeStatusChallengerTwo {
	--ChallengerTheme-Color: var(--ChallengerTwoTheme-Color);

	text-align: right;
}

.ChallengeStatusChallengerTitleIconArea {
	display: inline-block;
	margin-left: 4px;
	padding-bottom: 1px;
	vertical-align: bottom;
}

.ChallengeStatusChallengerTwo .ChallengeStatusChallengerTitleIconArea {
	margin-left: 0;
	margin-right: 4px;
}

.ChallengeStatusChallengerTitleIcon {
	display: block;
}

.ChallengeStatusChallengerDetails {
	--Typeface-FontWght: 700;

	align-items: center;
	display: flex;
	font-size: 14px;
	gap: 4px;
	justify-content: end;
	line-height: 16px;
}

.ChallengeStatusChallengerColorKey {
	aspect-ratio: 1 / 1;
	background-color: var(--ChallengerTheme-Color);
	border-radius: 100%;
	display: inline-block;
	width: 1em;
}

.ChallengeStatusMeterArea {
	margin-bottom: 16px;
}

.ChallengeStatusMeter {
	border-radius: 6px;
	display: flex;
	gap: 4px;
	height: 12px;
	overflow: hidden;
}

.ChallengeStatusMeterChallenger {
	flex: 1 1 var(--Meter-FlexBasis, 50%);
}

.ChallengeStatusMeterChallenger[style*="--Meter-FlexBasis: 0%;"] {
	display: none;
}

.ChallengeStatusMeterChallengerOne {
	background-color: var(--ChallengerOneTheme-Color);
}

.ChallengeStatusMeterChallengerTwo {
	background-color: var(--ChallengerTwoTheme-Color);
}

/*
Dates Area
 */
.ChallengeDatesArea {
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 24px;
	justify-content: space-between;
	line-height: 18px;
	margin-bottom: 32px;
}

.ChallengeDateText {
	--Typeface-FontWght: 700;

	font-weight: var(--Typeface-FontWght);
}

/*
Description Area
 */
.ChallengeDescriptionArea {
	font-size: 14px;
	line-height: 21px;
	margin-bottom: 68px;
}

/*
Organization Information
 */
.ChallengeOrganizationInformation {
	display: flex;
	gap: 12px;
}

.ChallengeOrganizationInformation .OrganizationImageArea {
	flex: 0 0 100px;
}

.ChallengeOrganizationInformation .OrganizationImage {
	display: block;
	aspect-ratio: 100 / 68;
	width: 100%;
}

.ChallengeOrganizationInformation .OrganizationContentArea {
	font-size: 14px;
	line-height: 18px;
	padding: 7px 0 5px;
}

.ChallengeOrganizationInformation .OrganizationTitle {
	--Typeface-FontWght: 700;
	font-weight: var(--Typeface-FontWght);
}

/*
Page Buttons
 */
.PageButtonsInner {
	border-top: 1px solid #33588A;
	margin-top: 32px;
	padding-top: 32px;
}

.PageButton:nth-child(2) {
	--ThisButton-BackgroundColor:                    transparent;
	--ThisButton-BorderColor:                        #ffffff;
	--ThisButton-Color:                              #ffffff;
}

.PageButton:nth-child(2) .ButtonIcon {
	width: 19px;
}