/* Hide Gravity Forms required field indicator legend */
.gform_required_legend { display: none; }

/* Interaction of final block with footer tab */
main > *.alignfull:last-child:not(:first-child):not(.entry-content),
main > .entry-content.wp-block-post-content > *.alignfull:last-child:not(:first-child)
{ padding-bottom: calc(calc(var(--wp--style--block-gap) * 2) + 3rem) !important; }

main > *:not(.alignfull):last-child:not(:first-child):not(.entry-content),
main > .entry-content.wp-block-post-content > *:not(.alignfull):last-child:not(:first-child)
{ margin-bottom: calc(calc(var(--wp--style--block-gap) * 2) + 3rem) !important; }

/* Links in headers */
main h1 a:not(:focus):not(:hover), main h2 a:not(:focus):not(:hover), main h3 a:not(:focus):not(:hover), main h4 a:not(:focus):not(:hover),
main h5 a:not(:focus):not(:hover), main h6 a:not(:focus):not(:hover), .has-primary-color > a:not(:focus):not(:hover)
{ color: inherit !important; }

/* Prevent displaying "Featured Articles" category links */
a[href*='/news/category/featured-articles/'][rel='tag'] { display: none !important; }

/* ICS Calendar on dark backgrounds */
.has-vertical-purple-to-dark-purple-gradient-background .ics-calendar,
.has-primary-background-color .ics-calendar,
.has-primary-alt-background-color .ics-calendar {
	--r34ics--color--black: white !important;
	--r34ics--color--gray: white !important;
}

/* The Events Calendar missing variable definitions */
body {
	--tec-font-family-sans-serif: var(--wp--preset--font-family--serif);
}

/* Intercom button placement */
.intercom-app > *:not(.intercom-messenger-frame),
.intercom-lightweight-app > * { bottom: 60px !important; }
@media screen and (min-width: 783px) {
	.intercom-messenger-frame { bottom: 124px !important; }
}

/* Blackbaud/Mongo form (donations) */
.BBFormContainer { padding: 0 !important; }
.BBFormContainer .BBFormSectionHeading { border: none !important; margin: 0 !important; padding: 0 !important; }
.BBFormContainer * { font-family: var(--wp--preset--font-family--sans-serif) !important; }
.BBFormContainer legend label { font-size: var(--wp--preset--font-size--medium); font-weight: 600; }
.BBFormContainer .BBFormFieldContainer { margin: 0.5rem 0 !important; }
.BBFormContainer .BBFormFieldLabel { font-size: var(--wp--preset--font-size--small); font-weight: 500; line-height: var(--wp--custom--typography--line-height--small) !important; }
.BBFormContainer .BBFormSelectList { padding: 2px 16px 2px 4px !important; }
.BBFormContainer .BBFormSubmitbutton { font-size: var(--wp--preset--font-size--medium) !important; font-weight: 600 !important; }
.BBFormContainer #bboxdonation_recurrence_divHeadingRecurrence, .BBFormContainer #bboxdonation_tribute_lblHeadingTribute { display: none !important; }
.BBFormContainer .BBFormSection.BBFormSectionRecurrenceInfo { margin: 0 !important; }
.BBFormContainer .BBFormSection.BBDFormSectionTributeInfo { margin-top: 0 !important; }

/* Blackbaud misc. */
.BBFormContainer .BBFormEventName { color: var(--wp--preset--color--primary); font-size: var(--wp--preset--font-size--large) !important; font-weight: 400; }
.BBFormContainer .BBFormPriceName, .BBFormContainer .BBFormColPriceAmt, .BBFormContainer .BBFormColTotal, .BBFormContainer .BBFormTableHeaderCell .BBFormColQty { font-size: var(--wp--preset--font-size--medium-plus) !important; }

/* Blackbaud Duhawk Day-specific settings */
body.page-id-42810 .BBFormContainer .BBFormSection { margin: 0 !important; }
body.page-id-42810 .BBFormContainer legend { display: none !important; }
body.page-id-42810 .BBFormContainer { padding-right: var(--wp--preset--spacing--40) !important; padding-left: var(--wp--preset--spacing--40) !important; }
body.page-id-42810 .BBFormContainer .BBDFormSectionComments .BBFormFieldLabel,
body.page-id-42810 .BBFormContainer .BBDFormSectionComments .BBFormTextArea { margin-left: 0 !important; }

/* Workaround for Slate (and possibly other things) putting incorrect fonts into the page */
span[style*='font-family'] { font-family: inherit !important; }

/* General RFI form tweaks (Slate) */
.form_container * { font-family: var(--wp--preset--font-family--sans-serif) !important; }
.form_container *::placeholder { color: var(--wp--preset--color--neutral-dark) !important; }
.form_container label.form_label { display: none !important; }
.form_container fieldset label.form_label:not(.hidden) { display: block !important; font-size: smaller !important; margin-top: 0.5rem; }
.form_container .form_question { clear: none !important; float: left !important; margin-right: var(--wp--style--block-gap) !important; width: calc(50% - var(--wp--style--block-gap)) !important; }
.form_container .form_question.form_header, .form_container .form_question.form_checkbox, .form_container .form_question.form_address { clear: both !important; float: none !important; margin-right: 0 !important; width: calc(100% - var(--wp--style--block-gap)) !important; }

.form_container .form_question div.form_label { font-weight: bold; font-size: smaller; text-transform: uppercase; }
.form_container .form_question input:not([type='radio']):not([type='checkbox']), .form_container .form_question select, .form_container .form_question textarea { width: 100% !important; }
.form_container .form_question select { line-height: 1em !important; padding: 8px !important; }
.form_container .form_question input[type='radio'] ~ label {
	font-size: var(--wp--preset--font-size--small);
}

body.page-template-landing-page .wp-block-cover *[id^='form_'] { color: var(--wp--preset--color--foreground) !important; }

.form_container .form_question .form_response { display: inline-block !important; margin-right: var(--wp--style--block-gap) !important; }

.form_container .form_page .form_address fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
}

.form_container .form_page .form_address fieldset *[data-label] {
	flex: 1 0 100%;
}

.form_container .form_page .form_address fieldset *[data-label='City'],
.form_container .form_page .form_address fieldset *[data-label='State'],
.form_container .form_page .form_address fieldset *[data-label='Region'],
.form_container .form_page .form_address fieldset *[data-label='Postal Code'] {
	flex: 1 0 30%;
}