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

.PageContentInner h2 {
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     24px;
	font-variation-settings:       var(--Typeface02-FontVariationSettings);
	line-height:                   24px;
	margin:                        0 0 16px;
}

/*
Actions Row — back arrow and the Menu component, both .FEIconButton (Base.css). Same
negative-margin correction as CampaignDetail.css's .CampaignActionsArea.
 */
.OrganizationDetailActionsArea {
	align-items:                   center;
	display:                       flex;
	justify-content:               space-between;
	margin-bottom:                 24px;
	margin-inline:                 -8px;
}

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

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

.OrganizationDetailTitle {
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     32px;
	font-variation-settings:       var(--Typeface02-FontVariationSettings);
	line-height:                   32px;
	margin:                        0 0 8px;
}

.OrganizationDetailLink {
	color:                         var(--Colors-Brand-Primary);
	font-size:                     16px;
	font-weight:                   400;
	line-height:                   24px;
	word-break:                    break-word;
}

/* Base.css's a[target="_blank"]::after defaults to 0.833em, tuned for
   .NavigationLink's own font-size; this link needs its own fixed size. */
.OrganizationDetailLink[target="_blank"]::after {
	--AnchorTargetBlankIcon-Size:  16px;
}

/*
Logo — same white rounded card treatment as the browse listing's card art
(CSS/Listing.css's .ListingCardImageArea), so the two pages read as one system.
 */
.OrganizationDetailLogoArea {
	align-items:                   center;
	aspect-ratio:                  327 / 180;
	background-color:              #ffffff;
	border-radius:                 24px;
	container:                     OrganizationDetailLogoArea / inline-size;
	display:                       flex;
	justify-content:               center;
	margin-bottom:                 24px;
	overflow:                      hidden;
}

.OrganizationDetailLogoAreaDefault {
	background-color:              transparent;
}

.OrganizationDetailLogo {
	max-height:                    100%;
	max-width:                     100%;
	object-fit:                    contain;
	padding-inline:                24px;
}

@container OrganizationDetailLogoArea (max-width: 480px) {
	.OrganizationDetailLogo {
		padding-inline:                16px;
	}
}

.OrganizationDetailLogoAreaDefault .OrganizationDetailLogo {
	padding-inline:                0;
}

/*
Donate / Share mini buttons
 */
.OrganizationDetailButtonsArea {
	display:                       flex;
	gap:                           9px;
	margin-bottom:                 24px;
}

.OrganizationDetailMiniButton {
	flex:                          1 1 0;
	font-size:                     18px;
	min-height:                    40px;
	padding:                       0.25em 0.5em;
}

/*
Sketch's Mini Button - Primary is its own accent palette (Secondary Accent01 fill,
Accent02 border/text), not .FEButtonPrimary's white — Base.css has no shared class for
it yet, so this overrides tokens on top of .FEButtonPrimary the documented way (page CSS
loads after Base.css). Hover/focus-visible keep .FEButtonPrimary's own tokens; only the
resting state is confirmed against the Sketch frame.
 */
.OrganizationDetailButtonsArea .FEButtonPrimary {
	--ThisButton-BackgroundColor:  var(--Colors-Secondary-Accent01);
	--ThisButton-BorderColor:      var(--Colors-Secondary-Accent02);
	--ThisButton-Color:            var(--Colors-Secondary-Accent02);
}

/*
Overview
 */
.OrganizationDetailDescriptionArea {
	margin-bottom:                 40px;
}

.OrganizationDetailDescriptionArea p {
	font-size:                     14px;
	line-height:                   21px;
	margin:                        0;
}

/*
Raised — Component:Parameters component="TCOrganizationProvider" markup is JR's, copied
verbatim (LocalTemp/organizations-detail-page-raised-total-component-example.md); only
the surrounding rule/spacing is this page's own.
 */
.OrganizationRaised {
	border-bottom:                 1px solid #33588A;
	border-top:                    1px solid #33588A;
	margin-bottom:                 40px;
	padding:                       25px 0;
	text-align:                    center;
}

.OrganizationRaisedAmount {
	color:                         var(--Colors-Brand-Primary);
	display:                       block;
	font-family:                   var(--Typeface02-FontFamily);
	font-size:                     32px;
	font-variation-settings:       var(--Typeface02-FontVariationSettings);
	font-weight:                   700;
	line-height:                   32px;
	margin-bottom:                 8px;
}

/* Exact values read from the exported SVG (fontSize/fontWeight are null on the shared
   text style in the JS API — see LocalTemp for the sketch-gotchas export method):
   Poppins-Regular 16/24, #FFFFFF. Not var(--Typeface01-FontFamily) — this is Poppins
   (Typeface03), not the body default. */
.OrganizationRaisedLabel {
	color:                         #ffffff;
	font-family:                   var(--Typeface03-FontFamily);
	font-size:                     16px;
	font-weight:                   400;
	line-height:                   24px;
}

/*
Donate Now — Templates/DonationAmountForm.tpl. The amount field is CSS/PledgeAmount.css.
 */
.OrganizationDetailDonateArea {
	margin-bottom:                 40px;
}

.OrganizationDetailDonateArea .FormSubmitButton {
	width:                         100%;
}
