/*
General
 */

/*
Page Content
 */
.PageContentInner {
	margin-inline:                 auto;
	max-width:                     calc(var(--ReadableContent-MaxWidth) + 2 * var(--Viewport-InlinePadding));
	padding-inline:                var(--Viewport-InlinePadding);
}

/* Overview / Share Challenge headings — Display cut, not the Text cut Base.css's
   generic h1-h6 rule defaults every heading to. */
.PageContentInner h2 {
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     24px;
	font-variation-settings:       var(--Typeface02-FontVariationSettings);
	line-height:                   24px;
	margin:                        0;
}

/*
Actions Row — back arrow and the Menu component, both .FEIconButton (Base.css). The
negative margin-inline pulls the 40px hit areas back so the 24px icons themselves line
up with the gutter, matching the correction .NavigationList already makes.
 */
.CampaignActionsArea {
	align-items:                   center;
	display:                       flex;
	justify-content:               space-between;
	margin-bottom:                 24px;
	margin-inline:                 -8px;
}

.CampaignBackButtonIcon {
	background-color:              currentColor;
	mask:                          url("/Images/IconBackArrow.svg") no-repeat center / contain;
}

/*
Heading
 */
.CampaignHeadingArea {
	margin-bottom:                 24px;
}

.CampaignTitle {
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     32px;
	font-variation-settings:       var(--Typeface02-FontVariationSettings);
	line-height:                   32px;
	margin-bottom:                 4px;
}

.CampaignCreatedBy {
	color:                         #CCD5E2;
	font-size:                     14px;
	font-weight:                   500;
	line-height:                   18px;
	margin:                        0;
}

/*
Thumbnail

Raster override exported from Sketch at 1280x705 (2x of the 640px max content width) as
WebP — see LocalTemp/ChallengeAndCampaignDetailPlan.md §6.8. The 24px corner radius is
already baked into the file's alpha; border-radius is still set here so the shape
survives a future re-export without corners.
 */
.CampaignThumbnailArea {
	margin-bottom:                 24px;
}

.CampaignThumbnail {
	aspect-ratio:                  327 / 180;
	border-radius:                 24px;
	display:                       block;
	height:                        auto;
	object-fit:                    cover;
	width:                         100%;
}

/*
Goal — a single-value progress bar against a goal, distinct from the two-sided split
meter on Challenge Detail; see ChallengeDetail.css's .ChallengeStatusMeter for that one.
 */
.CampaignGoalArea {
	margin-bottom:                 40px;
}

.CampaignGoalText {
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     24px;
	font-weight:                   500;
	line-height:                   24px;
	margin:                        0 0 10px;
}

.CampaignGoalRaised {
	color:                         var(--Colors-Secondary-Accent03);
	font-weight:                   700;
}

.CampaignGoalMeter {
	background-color:              #33588A;
	border-radius:                 6px;
	height:                        12px;
	margin-bottom:                 4px;
	overflow:                      hidden;
}

/* Width comes from TCCampaignProvider's ProgressPercent, set inline on the element
   (the same --Meter-FlexBasis idiom the challenge meter uses). The track is not a
   flex container, so it is read as a width here rather than a flex-basis. */
.CampaignGoalMeterFill {
	background-color:              var(--Colors-Secondary-Accent03);
	height:                        100%;
	max-width:                     100%;
	width:                         var(--Meter-FlexBasis, 0%);
}

.CampaignDatesArea {
	font-size:                     16px;
	line-height:                   24px;
}

.CampaignDateText {
	font-weight:                   700;
}

/*
Donate Now
 */
.CampaignDonateArea {
	margin-bottom:                 40px;
}

.CampaignDonateArea h2 {
	margin-bottom:                 16px;
}

.CampaignDonateArea .FormSubmitButton {
	width:                         100%;
}

/*
Not open yet and ended: replace the form before the campaign's start date and after it ends
(TCCampaignProvider's HasStarted and HasEnded).
 */
.CampaignNotice {
	text-align:                    center;
}

.CampaignNoticeText {
	font-size:                     16px;
	line-height:                   24px;
	margin:                        0;
}

/*
Description Area
 */
.CampaignDescriptionArea {
	font-size:                     16px;
	line-height:                   24px;
	margin-bottom:                 24px;
}

.CampaignDescriptionArea h2 {
	margin-bottom:                 8px;
}

/*
Organization Information
 */
.CampaignOrganizationInformation {
	display:                       flex;
	gap:                           16px;
	margin-bottom:                 40px;
}

.CampaignOrganizationInformation .OrganizationImageArea {
	flex:                          0 0 148px;
}

.CampaignOrganizationInformation .OrganizationImage {
	aspect-ratio:                  148 / 81;
	border-radius:                 12px;
	display:                       block;
	object-fit:                    cover;
	width:                         100%;
}

.CampaignOrganizationInformation .OrganizationContentArea {
	font-size:                     14px;
	line-height:                   18px;
	padding:                       7px 0 5px;
}

.CampaignOrganizationInformation .OrganizationTitle {
	font-weight:                   700;
}

/*
Social Row — Facebook and X open a share intent for this page. No "Share Campaign"
heading or Copy Invite Link button here — those only exist on Challenge Detail.
 */
.CampaignSocialArea {
	display:                       flex;
	gap:                           40px;
	justify-content:               center;
}

.CampaignSocialLink {
	border-radius:                 100%;
	color:                         #ffffff;
	display:                       block;
	transition:                    var(--InteractiveTransitionDuration);
}

.CampaignSocialLink:hover,
.CampaignSocialLink:focus-visible {
	color:                         var(--Colors-Brand-Primary);
	outline:                       none;
}

/* Icon-only social buttons don't want the external-link marker Base.css appends. */
.CampaignSocialLink[target="_blank"]::after {
	display:                       none;
}

.CampaignSocialIcon {
	display:                       block;
	height:                        42px;
	width:                         42px;
}

.CampaignSocialIcon.IconFacebook {
	background-color:              currentColor;
	mask:                          url("/Images/IconFacebook.svg") no-repeat center / contain;
}

.CampaignSocialIcon.IconX {
	background-color:              currentColor;
	mask:                          url("/Images/IconX.svg") no-repeat center / contain;
}
