/* NFCR live-site clean-up (0.9.50, reworked 0.9.51). See includes/legacy-fixes.php.
   "Older content" = rows that are not NFCR sections (.nfcr-section) and old pages whose content sits in a
   white .edgtf-container (new pages sit in .edgtf-full-width and are not touched). */

/* Older pages: the white box starts 22px under the menu pill (the same light-blue strip the pill has above it, between the
   top bar and the pill), and its content starts 64px inside the box. Phones and tablets: the fixed bar already carries its own
   10px strip, so only the inner gap applies. New pages (.edgtf-full-width) are untouched. */
.nfcr-site .edgtf-content-inner > main > .edgtf-container { padding-top: 64px; }
@media (min-width: 1025px) { .nfcr-site .edgtf-content-inner > main > .edgtf-container { margin-top: 22px; } }
@media (max-width: 1024px) { .nfcr-site .edgtf-content-inner > main > .edgtf-container { padding-top: 36px; } }

/* Old content: inline fonts back to the site font (icon fonts and NFCR elements are left alone). */
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) [style*="font-family"]:not([class*="fa"]):not([class*="icon"]):not([class*="ion-"]):not([class*="nfcr-"]) {
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) [style*="font-family"] :is(strong, b, em, span, a):not([class*="fa"]):not([class*="icon"]) { font-family: inherit !important; }

/* Old dark boxes: legacy.js adds .nfcr-on-dark to a block that has a dark background and dark text. */
.nfcr-site .nfcr-on-dark,
.nfcr-site .nfcr-on-dark :is(p, li, span, strong, em, h1, h2, h3, h4, h5, h6, div) { color: #fff; }
.nfcr-site .nfcr-on-dark a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nfcr-site .nfcr-on-dark li::marker { color: #fff; }

/* Old pages: breathing room the old theme used to give. */
/* a button (e.g. "Donate to Support...") never sits flush against the box above it */
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) .vc_btn3-container { margin-top: 28px !important; margin-bottom: 28px !important; }
/* a heading keeps a gap above the photos/cards that follow */
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) .nfcr-legacy-heading { margin-top: 36px !important; margin-bottom: 22px !important; }
/* photo columns (e.g. researcher portraits with a name and institution) get a gutter, so photos and captions never touch */
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) .vc_column-inner:has(> .wpb_wrapper > .wpb_single_image) { padding-left: 12px !important; padding-right: 12px !important; padding-bottom: 24px !important; box-sizing: border-box; }
.nfcr-site .edgtf-content .vc_row:not(.nfcr-section) .vc_column-inner:has(> .wpb_wrapper > .wpb_single_image) .wpb_text_column { margin-top: 12px; }
