/*
 * EOTC mobile-first UI layer — Parents’ Association of EOTC Youth Group
 * Loaded after Avada + all plugin CSS by mu-plugins/eotc-mobile.php, so theme/plugin updates can't override or lose it.
 * Base rules apply on every screen; @media blocks only relax them on bigger screens or tighten them on small ones.
 * Breakpoints match Avada: small ≤ 640px, medium ≤ 1024px. Phone rules use ≤ 767px.
 * Not touched on purpose: My Account area (.woocommerce-MyAccount-*, .tgwc-*, .eotc-dash*) — owned by the dashboard work.
 */

/* ---------- 1. Base: never let anything break the layout ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas, iframe, embed, object { max-width: 100%; }
img { height: auto; }
.fusion-text, .post-content, .fusion-title-heading, .tribe-events-content { overflow-wrap: break-word; word-wrap: break-word; }
.fusion-text iframe, .post-content iframe, .tribe-events-content iframe { width: 100%; }
:focus-visible { outline: 3px solid #1f7a3a; outline-offset: 2px; }

/* Tables inside article/text content scroll sideways instead of stretching the page */
@media (max-width: 767px) {
	.fusion-text table, .post-content table, .tribe-events-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Legacy rule had a 500px minimum on select2 boxes — only allow that on screens wide enough for it */
@media (max-width: 767px) {
	.select2-selection__rendered { min-width: 0 !important; }
	.select2-container { max-width: 100%; }
}

/* ---------- 2. Typography: readable, never oversized on phones ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; line-height: 1.6; }
	h1.fusion-title-heading, .tribe-events-single-event-title, .fusion-page-title-bar h1 {
		font-size: clamp(30px, 9vw, 40px) !important; line-height: 1.15 !important;
	}
	h2.fusion-title-heading { font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.2 !important; }
	/* very small print → at least 13px */
	small, .woocommerce small, .fusion-button.button-small .fusion-button-text { font-size: 13px !important; }
	.fusion-button .awb-button__text, .fusion-button .fusion-button-text { font-size: max(14px, 1em); }
}

/* ---------- 3. Scroll-reveal headings ("Celebrating Faith & Culture", "Meet our elected…") ----------
   2026-11-09 (user request): Avada's text animations and effects play on phones again, like the demo
   (Avada "CSS animations" = desktop and mobile). Only visitors who ask for reduced motion get the static version. */
@media (prefers-reduced-motion: reduce) {
	.fusion-title-scroll_reveal .fusion-title-heading,
	.fusion-title-scroll_reveal .fusion-title-heading .char,
	.fusion-title-scroll_reveal .fusion-title-heading .word,
	.fusion-title-scroll_reveal .fusion-title-heading .line {
		color: var(--awb-text-color, inherit) !important;
		opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
	}
	/* "colour change" style ends on the animated colour; the other styles (scale up, fade…) end on the text colour */
	.awb-title__scroll-reveal--color_change .fusion-title-heading,
	.awb-title__scroll-reveal--color_change .fusion-title-heading .char,
	.awb-title__scroll-reveal--color_change .fusion-title-heading .word,
	.awb-title__scroll-reveal--color_change .fusion-title-heading .line {
		color: var(--awb-animated-text-color, var(--awb-text-color, inherit)) !important;
	}
}

/* ---------- 4. Entrance animations: play on phones too; instant only for reduced-motion visitors ---------- */
@media (prefers-reduced-motion: reduce) {
	.fusion-animated, [data-animationtype] { animation: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 5. Buttons: full width, one line where possible, 48px tall (content area only) ---------- */
@media (max-width: 767px) {
	#main .fusion-button-wrapper,
	.fusion-tb-page-title-bar .fusion-button-wrapper,
	#main .fusion-column-wrapper > div:has(> a.fusion-button),
	#main .fusion-column-wrapper > div:has(> a.fusion-button + a.fusion-button) { display: block; width: 100% !important; flex: 1 1 100% !important; max-width: 100%; }
	#main .fusion-column-wrapper > div:has(> a.fusion-button) + div:has(> a.fusion-button) { margin-top: 12px; }
	#main a.fusion-button:not(.fusion-button-small),
	.fusion-tb-page-title-bar a.fusion-button {
		display: flex !important; width: 100%; max-width: 100%; min-height: 48px;
		justify-content: center; align-items: center; text-align: center;
		box-sizing: border-box; white-space: normal; gap: 8px;
	}
	#main .fusion-button .fusion-button-text, #main .fusion-button .awb-button__text { white-space: normal; line-height: 1.25; }
	/* forms */
	.gform_wrapper .gform_footer .gform_button,
	.gform_wrapper .gform_page_footer .button,
	button.gform_button, input.gform_button,
	.gform_wrapper .gpnf-add-entry,
	.fusion-form .fusion-form-submit-field .fusion-button,
	.woocommerce:not(.woocommerce-account) .button, .woocommerce-cart .checkout-button {
		width: 100%; min-height: 48px; font-size: 16px !important;
	}
}

/* ---------- 6. Tap targets ≥ 44px ---------- */
@media (max-width: 1024px) {
	/* header icon buttons (cart, menu grid) */
	.fusion-tb-header .awb-menu__main-a_icon-only,
	.fusion-tb-header .awb-menu__m-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
	/* footer link lists */
	.fusion-tb-footer .awb-menu_column .awb-menu__main-a,
	.fusion-tb-footer .awb-menu_v-stacked .awb-menu__main-a { min-height: 44px; display: flex; align-items: center; }
	.fusion-tb-footer .awb-menu_column .awb-menu__main-li,
	.fusion-tb-footer .awb-menu_v-stacked .awb-menu__main-li { margin-top: 0 !important; margin-bottom: 0 !important; }
	/* social icons */
	.fusion-tb-footer .fb-icon-element, .fusion-social-links .fusion-social-network-icon {
		min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box;
	}
	/* close buttons, pagination, quantity steppers */
	.awb-off-canvas-wrap .off-canvas-close { min-width: 44px; min-height: 44px; }
	.page-numbers, .woocommerce-pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.quantity .minus, .quantity .plus { min-width: 44px; min-height: 44px; }
	/* header: logo link as tall as the logo; menu-grid icon 44px */
	.fusion-tb-header .fusion-imageframe > a, .fusion-tb-footer .fusion-imageframe > a { display: inline-block; }
	.fusion-tb-header .fb-icon-element { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
	/* carousel dots: bigger hit area without changing the look */
	.swiper-pagination-bullet { position: relative; margin-left: 9px !important; margin-right: 9px !important; }
	.swiper-pagination-bullet::after { content: ""; position: absolute; inset: -16px; }
	/* share buttons */
	.fusion-sharing-box a, .fusion-social-links-tb a, .awb-sharing-box a, .fusion-social-network-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	/* nested-form "Add Child", password toggle */
	button.gpnf-add-entry { min-height: 48px; }
	.show-password-input { min-width: 44px; min-height: 44px; }
	/* post card "Read More" style links */
	.fusion-post-cards .fusion-button.button-flat.fusion-button-default-size:not([class*="button-custom"]) { min-height: 44px; }
}

/* ---------- 6b. Touch devices up to tablet size (also any coarse pointer): every control ≥ 44px ---------- */
@media (max-width: 1024px), (pointer: coarse) {
	.awb-toc-el__item-anchor { display: flex !important; align-items: center; min-height: 44px; }
	.wp-tooltip__toggle { min-width: 44px; min-height: 44px; }
	.quantity input.qty { min-width: 48px; min-height: 44px; font-size: 16px; }
	input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
	.gform_wrapper .gform_button, .gform_wrapper .gform_next_button, .gform_wrapper .gform_previous_button,
	button.gform_button, button.gpnf-add-entry { min-height: 48px; }
	.fusion-sharing-box a, .fusion-facebook-sharer-icon, .fusion-social-networks a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
	#main a.fusion-button, .fusion-post-cards a.fusion-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- 7. Forms: no iOS zoom, comfortable fields, full width ---------- */
@media (max-width: 767px) {
	input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search],
	input[type=url], input[type=date], select, textarea { font-size: 16px !important; max-width: 100%; }
	.gform_wrapper input[type=text], .gform_wrapper input[type=email], .gform_wrapper input[type=tel],
	.gform_wrapper input[type=number], .gform_wrapper select, .fusion-form input.fusion-form-input,
	.fusion-form select { min-height: 48px; }
	input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
	.gform_wrapper input[type=checkbox], .gform_wrapper input[type=radio],
	.fusion-form input[type=checkbox], .fusion-form input[type=radio] { width: 22px !important; height: 22px !important; flex: 0 0 22px; }
	button.gpnf-add-entry { width: 100%; font-size: 16px !important; }
	.gform_wrapper .gform_footer, .gform_wrapper .gform_page_footer { display: flex !important; flex-wrap: wrap; width: 100%; gap: 12px; }
	.gform_wrapper .gform_footer > .gform_button, .gform_wrapper .gform_footer > button,
	.gform_wrapper .gform_page_footer > .button { flex: 1 1 100% !important; }
	/* Gravity Forms theme framework sizes its buttons with higher specificity — match it on phones */
	.gform-theme--framework .gform_footer .gform_button, .gform-theme--framework .gform_page_footer .gform_button,
	.gform-theme--framework .gform_footer input[type=submit], .gform-theme--framework .gform_page_footer .button,
	.gform-theme--framework button.gpnf-add-entry {
		width: 100% !important; min-height: 48px !important; font-size: 16px !important;
		--gf-local-width: 100%; --gf-ctrl-btn-font-size: 16px;
	}
	.gform_wrapper .gchoice, .fusion-form .fusion-form-checkbox, .fusion-form .fusion-form-radio { min-height: 44px; display: flex; align-items: center; gap: 10px; }
	/* Gravity Forms field boxes: less side padding so inputs get the width */
	.gform_wrapper .gfield[id^="field_2_"], .gform_wrapper .gfield[id^="field_1_"] { padding-left: 14px !important; padding-right: 14px !important; }
	/* Avada forms (Contact): use the card's full width */
	.fusion-form-form-wrapper .fusion-fullwidth { padding-left: 0 !important; padding-right: 0 !important; }
	.fusion-column-wrapper:has(> .fusion-form-form-wrapper), .fusion-column-wrapper:has(> .fusion-form) { padding-left: 18px !important; padding-right: 18px !important; }
	.fusion-form .fusion-layout-column { width: 100% !important; }
}

/* ---------- 8. Post cards: compact date badge on phones (column tagged .eotc-date-badge by mobile.js) ---------- */
@media (max-width: 767px) {
	.fusion-post-cards .eotc-date-badge { width: auto !important; flex: 0 0 auto !important; max-width: none !important; margin: -64px 12px 0 auto !important; position: relative; z-index: 3; }
	.fusion-post-cards .eotc-date-badge > .fusion-column-wrapper { padding: 8px 14px !important; min-height: 0 !important; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
	.fusion-post-cards .eotc-date-badge p { margin: 0; line-height: 1.15; white-space: nowrap; text-align: center; }
	.fusion-post-cards .eotc-date-badge { min-width: 64px; }
	.fusion-post-cards .eotc-date-badge-row { justify-content: flex-end; }
}

/* ---------- 9. Footer: shorter, tidier on phones ---------- */
@media (max-width: 767px) {
	.fusion-tb-footer > .fusion-fullwidth:first-child,
	.fusion-tb-footer .fusion-fullwidth:first-of-type { padding-top: 40px !important; }
	.fusion-tb-footer .fusion-layout-column { margin-bottom: 24px !important; }
	.fusion-tb-footer { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* ---------- 10. Top banner (sliding bar): readable link, big tap area ---------- */
.awb-off-canvas-wrap.type-sliding-bar.position-top a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
	.awb-off-canvas-wrap.type-sliding-bar.position-top a { font-size: 15px; }
}
/* Phones/tablets: no white strips above/below the flag stripes — bar is exactly the stripe height, stripes fill it */
@media (max-width: 1024px) {
	.awb-off-canvas-wrap.type-sliding-bar.position-top .awb-off-canvas-inner { background-color: transparent !important; }
	.awb-off-canvas-wrap.type-sliding-bar.position-top .fusion-fullwidth { padding-top: 9px !important; padding-bottom: 9px !important; background-size: auto 100% !important; background-position: center !important; }
	.awb-off-canvas-wrap.type-sliding-bar.position-top .fusion-column-wrapper { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-height: 0 !important; }
	.awb-off-canvas-wrap.type-sliding-bar.position-top .fusion-text { margin-top: 0 !important; margin-bottom: 0 !important; }
	.awb-off-canvas-wrap.type-sliding-bar.position-top .fusion-text p { margin: 0 !important; line-height: 44px; }
	.awb-off-canvas-wrap.type-sliding-bar.position-top .off-canvas-close { margin-top: 9px !important; }
}

/* ---------- 11. Events ---------- */
.eotc-hidden-empty { display: none !important; }
.eotc-map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: #1f7a3a; text-decoration: underline; }

/* ---------- 12. Notch / safe areas ---------- */
@supports (padding: max(0px)) {
	@media (max-width: 767px) {
		.fusion-tb-header, .awb-off-canvas-wrap.type-sliding-bar.position-top .awb-off-canvas { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
	}
}

/* ---------- 13. Header: shorter on phones (logo 52px tall, 8px padding) ---------- */
@media (max-width: 767px) {
	.fusion-tb-header > .fusion-fullwidth { padding-top: 8px !important; padding-bottom: 8px !important; }
	.fusion-tb-header .fusion-image-element img { max-height: 52px !important; width: auto !important; }
	.fusion-tb-header .fusion-builder-row { align-items: center !important; }
	.fusion-tb-header .fusion-layout-column { align-self: center !important; }
}

/* ---------- 14. Stacked buttons on phones: 12px between them, not 44px ---------- */
@media (max-width: 767px) {
	#main div:has(> a.fusion-button):has(+ div > a.fusion-button) > a.fusion-button { margin-bottom: 0 !important; }
	#main div:has(> a.fusion-button) + div:has(> a.fusion-button) { margin-top: 12px !important; }
	#main a.fusion-button.fusion-button-default-size { padding-top: 16px !important; padding-bottom: 16px !important; }
}

/* ---------- 15. Slide-out menu (off-canvas "Sidebar" 3236): clean vertical list, big tap rows ---------- */
#awb-oc-3236 .fusion-fullwidth { padding-top: 16px !important; padding-bottom: 32px !important; }
#awb-oc-3236 .fusion-builder-column-37 { margin-bottom: 4px !important; }
#awb-oc-3236 .fusion-separator { margin-top: 12px !important; margin-bottom: 0 !important; }
#awb-oc-3236 .fusion-separator-border { border-color: #e6e6e6 !important; }
#awb-oc-3236 .fusion-image-element img { max-height: 52px; width: auto; }
#awb-oc-3236 .off-canvas-close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
/* section headings: small caps label, no underline */
#awb-oc-3236 .fusion-title { margin: 18px 0 6px !important; }
#awb-oc-3236 .fusion-title u { text-decoration: none; }
#awb-oc-3236 .fusion-title h6 { font-size: 12px !important; letter-spacing: .12em !important; line-height: 1.4 !important; font-weight: 700; }
/* main navigation: one item per row */
#awb-oc-3236 .awb-menu { margin-bottom: 0 !important; }
#awb-oc-3236 .awb-menu__main-ul { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 0 !important; }
#awb-oc-3236 .awb-menu__main-li { width: 100%; margin: 0 !important; border-bottom: 1px solid #f0f0f0; }
#awb-oc-3236 .awb-menu__main-li:last-child { border-bottom: 0; }
#awb-oc-3236 .awb-menu__main-a { min-height: 48px; padding: 0 !important; justify-content: flex-start !important; font-size: 17px !important; font-weight: 600; color: #1d1d1d; }
#awb-oc-3236 .awb-menu__main-li.current-menu-item > .awb-menu__main-a { color: var(--awb-custom_color_1, #18b26f); }
/* link lists (account / staff): one link per row */
#awb-oc-3236 .fusion-text { margin-bottom: 0 !important; }
#awb-oc-3236 .fusion-text p { margin: 0; }
#awb-oc-3236 .fusion-text br { display: none; }
#awb-oc-3236 .fusion-text a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: #333; border-bottom: 1px solid #f0f0f0; text-decoration: none; }
#awb-oc-3236 .fusion-text a:hover, #awb-oc-3236 .fusion-text a:focus-visible, #awb-oc-3236 .awb-menu__main-a:hover { color: var(--awb-custom_color_1, #18b26f); }
/* visitor buttons in the menu (Become a member / Log in) */
#awb-oc-3236 .eotc-oc-guests p { display: flex; flex-direction: column; gap: 12px; }
#awb-oc-3236 .fusion-text a.eotc-oc-cta { justify-content: center; min-height: 48px; border: 2px solid var(--awb-custom_color_1, #18b26f); border-radius: 6px; font-weight: 600; color: var(--awb-custom_color_1, #18b26f); }
#awb-oc-3236 .fusion-text a.eotc-oc-cta--primary { background: #e23f33; border-color: #e23f33; color: #fff; }
#awb-oc-3236 .fusion-text a.eotc-oc-cta--primary:hover, #awb-oc-3236 .fusion-text a.eotc-oc-cta--primary:focus-visible { background: #c8342a; border-color: #c8342a; color: #fff; }

/* ---------- 16. Meta links (category / author on cards and posts): 44px tap area without changing the layout ---------- */
@media (max-width: 1024px), (pointer: coarse) {
	.fusion-meta-tb a, .fusion-title-heading > a[href*="/category/"] { display: inline-block; padding-top: 13px; padding-bottom: 13px; margin-top: -13px; margin-bottom: -13px; position: relative; }
}

/* ---------- 17. Single posts: featured photo was shown twice (title bar + first section of post template 2785).
   Hide the template's image-only first column, but only when the title bar already shows a photo. ---------- */
body.single-post:has(.fusion-tb-page-title-bar .fusion-image-element img) .post-content > .fusion-fullwidth:first-child > .fusion-builder-row > .fusion-layout-column:first-child:has(.fusion-image-element):not(:has(.fusion-text, .fusion-title, .fusion-content-tb, p)) { display: none !important; }

/* ---------- 18. Remaining small targets: product meta + share links, Gravity Forms buttons on tablets, short meta words ---------- */
@media (max-width: 1024px), (pointer: coarse) {
	.product_meta a { display: inline-block; padding-top: 12px; padding-bottom: 12px; margin-top: -12px; margin-bottom: -12px; }
	.fusion-sharing-box a, .share-box a, .fusion-woo-social-share a, .social-share a { min-height: 44px; display: inline-flex; align-items: center; }
	.gform_wrapper button, .gform_wrapper input[type="submit"], .gform_wrapper .gpnf-add-entry { min-height: 48px; }
	.fusion-meta-tb a { min-width: 44px; text-align: center; }
}

/* ---------- 19. Tabs (e.g. About Us: Our Mission / History / Vision): on phones & tablets Avada shows a collapsed
   accordion whose headers don't look tappable. Content is short, so show every section expanded as a headed block. ---------- */
@media (max-width: 1024px) {
	.fusion-tabs.mobile-mode-accordion .tab-content > .tab-pane { display: block !important; opacity: 1 !important; visibility: visible !important; height: auto !important; padding: 4px 0 28px !important; border: 0 !important; background: transparent !important; }
	.fusion-tabs.mobile-mode-accordion .tab-content > .tab-pane:last-child { padding-bottom: 0 !important; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav,
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav ul,
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav a.tab-link { pointer-events: none; cursor: default; display: block; padding: 0 0 12px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav .fusion-tab-heading { font-size: 22px !important; line-height: 1.3 !important; text-align: left !important; margin: 0 !important; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav .fusion-tab-heading::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--awb-color4, #f6c343); }
	.fusion-tabs.mobile-mode-accordion .tab-content > .tab-pane p { margin-top: 0; }
	.fusion-tabs.mobile-mode-accordion .tab-content > .tab-pane .awb-tab-pane-inner { opacity: 1 !important; transform: none !important; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav .fusion-tab-heading { display: block !important; }
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav li::before, .fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav li::after,
	.fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav a::before, .fusion-tabs.mobile-mode-accordion .fusion-mobile-tab-nav a::after { display: none !important; }
}

/* ---------- 20. Top banner: no stray empty paragraphs (WordPress adds them on some pages, e.g. My Account → +32px
   white above/below the stripes); on phones/tablets the banner scrolls away with the page instead of covering it. ---------- */
.awb-off-canvas-wrap.type-sliding-bar.position-top .off-canvas-content > p:not(:has(*)) { display: none !important; }
@media (max-width: 1024px) {
	.awb-off-canvas-wrap.type-sliding-bar.position-top { position: absolute !important; }
}

/* ---------- 21. Page header banner (title-bar template 1624 "Default PTB1", photo section tagged .eotc-ptb):
   even dark overlay for readable text on any photo, bolder title, flag-colour bar, glassy "Joined by…" badge. ---------- */
.fusion-fullwidth.eotc-ptb { position: relative; isolation: isolate; }
.fusion-fullwidth.eotc-ptb::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(10, 20, 15, .78) 0%, rgba(10, 20, 15, .45) 55%, rgba(10, 20, 15, .15) 100%);
}
.fusion-fullwidth.eotc-ptb > .fusion-builder-row { position: relative; z-index: 1; }
.fusion-fullwidth.eotc-ptb .fusion-title-heading {
	font-weight: 700 !important; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.fusion-fullwidth.eotc-ptb .fusion-title::after {
	content: ""; display: block; width: 72px; height: 5px; margin: 16px 0 18px; border-radius: 3px;
	background: linear-gradient(90deg, #18b26f 0 33.33%, #fcc943 33.33% 66.66%, #e34234 66.66% 100%);
}
.fusion-fullwidth.eotc-ptb .fusion-text p:first-child {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 !important;
	padding: 8px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 16px !important; line-height: 1.4 !important; font-weight: 500; color: #fff !important;
}
.fusion-fullwidth.eotc-ptb .fusion-text p:first-child::before { content: "✦"; color: #fcc943; font-size: 14px; }
@media (max-width: 767px) {
	.fusion-fullwidth.eotc-ptb::before { background: linear-gradient(180deg, rgba(10, 20, 15, .55) 0%, rgba(10, 20, 15, .7) 100%); }
	.fusion-fullwidth.eotc-ptb .fusion-title-heading { font-size: 40px !important; line-height: 1.1 !important; }
	.fusion-fullwidth.eotc-ptb .fusion-title::after { margin: 14px auto 16px; }
	.fusion-fullwidth.eotc-ptb .fusion-text p:first-child { font-size: 15px !important; padding: 7px 14px; white-space: nowrap; }
}
/* some header templates have a stray empty paragraph (&nbsp;) after the badge */
.fusion-fullwidth.eotc-ptb .fusion-text p:not(:first-child) { display: none !important; }

/* ---------- 22. Site-wide clean-up (2026-11-09 review) ---------- */
/* a) Section labels built as buttons with no link ("From the blog", "Four annual events", "Youth FAQ's", "Products"…)
      look clickable but do nothing → render them as a small green eyebrow heading instead. Real buttons always have a link. */
#main a.fusion-button:not([href]),
#main a.fusion-button[href="#"],
#main a.fusion-button[href=""] {
	display: inline-flex !important; width: auto !important; min-height: 0 !important; max-width: 100%;
	padding: 0 !important; margin: 0 0 4px !important; border: 0 !important; border-radius: 0 !important;
	background: none !important; box-shadow: none !important; pointer-events: none; cursor: default;
}
#main a.fusion-button:not([href]) .fusion-button-text,
#main a.fusion-button[href="#"] .fusion-button-text,
#main a.fusion-button[href=""] .fusion-button-text {
	color: #0f7b4b !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em !important;
	line-height: 1.5 !important; text-transform: uppercase !important; white-space: normal;
}
#main a.fusion-button:not([href]) i, #main a.fusion-button[href="#"] i, #main a.fusion-button[href=""] i,
#main a.fusion-button:not([href]) .awb-button__hover-content:not(:first-child), #main a.fusion-button[href="#"] .awb-button__hover-content:not(:first-child) { display: none !important; }
#main div:has(> a.fusion-button:not([href])), #main div:has(> a.fusion-button[href="#"]), #main div:has(> a.fusion-button[href=""]) { width: auto !important; }

@media (max-width: 767px) {
	/* b) Buttons: less side padding so labels like "View Upcoming Events" fit on one line */
	#main a.fusion-button[href]:not([href="#"]):not([href=""]) { padding-left: 18px !important; padding-right: 18px !important; }
	/* c) Theme "lead" paragraphs (custom typography 1, 34px) are too big on a phone */
	#main .fusion-text[style*="custom_typography_1-font-size"],
	#main .fusion-text[style*="custom_typography_1-font-size"] p { font-size: 22px !important; line-height: 1.45 !important; }
	/* d) Decorative squiggles (shape-03/06.svg) float in empty space on phones */
	#main .fusion-image-element:has(img[src*="/shape-"]),
	#main .fusion-image-element:has(img[data-orig-src*="/shape-"]) { display: none !important; }
}
/* label on a dark/coloured card (tagged by mobile.js tidyLabels) */
#main a.fusion-button.eotc-label-on-colour .fusion-button-text { color: rgba(255, 255, 255, .85) !important; }

/* ---------- 23. Events (2026-11-09): Members-only badge, card order, archive date ---------- */
/* a) "Members only" badge on Latest Events cards (template 439, button class eotc-ev-badge, cost from the event) */
#main a.fusion-button.eotc-ev-badge {
	display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; min-height: 0 !important;
	padding: 6px 12px 6px 10px !important; margin: 4px 0 !important; border-radius: 999px !important;
	background: #e8f7ef !important; border: 1px solid rgba(24, 178, 111, .35) !important; pointer-events: none;
}
#main a.fusion-button.eotc-ev-badge .fusion-button-text {
	color: #0f7b4b !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .02em !important; text-transform: none !important;
}
#main a.fusion-button.eotc-ev-badge::before { content: "🔒"; font-size: 12px; line-height: 1; }
/* b) Latest Events cards on phones: poster first, then the details; no empty spacer column */
@media (max-width: 767px) {
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner { display: flex !important; flex-direction: column !important; }
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column:has(img) { order: -1 !important; margin-bottom: 16px !important; }
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column:not(:has(img)):not(:has(a, p, li, h1, h2, h3, h4, h5, h6)) { display: none !important; }
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column:has(.eotc-ev-badge) { margin: 4px 0 12px !important; }
}
/* c) Events archive cards (template 3255): event date under the title, with a calendar icon; empty on blog cards → hidden */
#main .fusion-text.eotc-ev-date:not(:has(*)):empty,
#main .fusion-text.eotc-ev-date:not(:has(p:not(:empty))) { display: none !important; }
#main .fusion-text.eotc-ev-date { margin: 4px 0 6px !important; padding: 0 12px; }
#main .fusion-text.eotc-ev-date p {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 !important;
	font-size: 15px !important; font-weight: 600; color: #0f7b4b !important;
}
#main .fusion-text.eotc-ev-date p::before { content: "📅"; font-size: 14px; }
@media (max-width: 767px) {
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column { margin-top: 0 !important; }
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column > .fusion-column-wrapper { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-height: 0 !important; }
	#main .fusion-post-cards li:has(.eotc-ev-badge) .fusion-builder-row-inner > .fusion-layout-column:last-child { margin-bottom: 0 !important; }
}
/* d) Single event page, desktop: hero card content sat at top + bottom with a big gap beside the tall poster → keep it together, centred */
@media (min-width: 768px) {
	body.single-tribe_events #main .fusion-column-wrapper:has(> .fusion-builder-row-inner .fusion-checklist):has(.fusion-title) {
		justify-content: center !important; align-content: center !important;
	}
	body.single-tribe_events #main .fusion-column-wrapper:has(> .fusion-builder-row-inner .fusion-checklist):has(.fusion-title) > .fusion-builder-row-inner { flex-grow: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* ---------- 24. Home hero (phones): breathing room between "Upcoming Events" and the overlapping "Grow in Faith" card ---------- */
@media (max-width: 767px) {
	body.home #main .post-content > .fusion-fullwidth:first-child div:has(> a.fusion-button[href*="/latest-events/"]) { margin-bottom: 32px !important; }
}

/* ---------- 21b. Page header: "Joined by 350+ youth & growing" back to a plain sub-heading (no pill, no ✦);
   the green/yellow/red bar under the title stays. ---------- */
.fusion-fullwidth.eotc-ptb .fusion-text p:first-child {
	display: block !important; padding: 0 !important; margin: 0 !important;
	background: none !important; border: 0 !important; border-radius: 0 !important;
	-webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	font-size: 20px !important; line-height: 1.5 !important; font-weight: 400 !important; color: #fff !important;
	white-space: normal !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.fusion-fullwidth.eotc-ptb .fusion-text p:first-child::before { content: none !important; display: none !important; }
@media (max-width: 767px) {
	.fusion-fullwidth.eotc-ptb .fusion-text p:first-child { font-size: 18px !important; }
}

/* ---------- 25. Checkout "Review your order" (green box): product names were hidden by the old legacy rule
   `.product-info { display:none }` and totals were red on green. Show names, hide the empty placeholder thumbnail,
   white readable totals. Scoped to the checkout review table only. ---------- */
.woocommerce-checkout-review-order-table .product-info { display: block !important; color: #fff !important; font-weight: 500; line-height: 1.45; }
.woocommerce-checkout-review-order-table .product-thumbnail:has(img.woocommerce-placeholder) { display: none !important; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; opacity: .85; }
.woocommerce-checkout-review-order-table .wcs-checkout-item-price,
.woocommerce-checkout-review-order-table .variation,
.woocommerce-checkout-review-order-table .variation * { font-size: 13px !important; color: rgba(255, 255, 255, .85) !important; margin: 2px 0 0 !important; }
.woocommerce-checkout-review-order-table .variation dt, .woocommerce-checkout-review-order-table .variation dd { display: inline !important; }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table .product-total * { color: #fff !important; font-weight: 600; }
.woocommerce-checkout-review-order-table tfoot td, .woocommerce-checkout-review-order-table tfoot td *,
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total td * { color: #fff !important; }
.woocommerce-checkout-review-order-table .order-total .amount { font-size: 20px !important; font-weight: 700 !important; }

/* §26 Desktop: hide the off-canvas menu (hamburger) icon for logged-out visitors —
   the desktop main menu already covers everything a visitor needs. */
@media (min-width: 1025px) {
  body:not(.logged-in) a.awb-online-schoolmenu[href="#awb-open-oc__3236"] { display: none !important; }
}

/* §27 Header "Become a member" button: keep sentence case (theme capitalises each word). */
.fusion-tb-header a.fusion-button[href*="/family-registration/"],
.fusion-tb-header a.fusion-button[href*="/family-registration/"] * { text-transform: none !important; }

/* §28 Desktop header (menu shown ≥1200px): logo and button columns share the leftover space
   equally, so the main menu sits in the true centre of the page. */
@media (min-width: 1200px) {
  .fusion-tb-header .fusion-builder-row-1 > .fusion-row > .fusion-layout-column:first-child,
  .fusion-tb-header .fusion-builder-row-1 > .fusion-row > .fusion-layout-column:last-child { flex: 1 1 0 !important; width: auto !important; max-width: none !important; }
  .fusion-tb-header .fusion-builder-row-1 > .fusion-row > .fusion-builder-column-1 { flex: 0 0 auto !important; width: auto !important; }
  .fusion-tb-header .fusion-builder-column-1 > .fusion-column-wrapper { justify-content: center !important; }
  .fusion-tb-header .fusion-builder-column-1 nav.awb-menu > ul { flex-wrap: nowrap !important; white-space: nowrap; }
}

/* §30 Header side space on phones/tablets (user, 2026-11-10): was 30px left / 54px right (row padding 30px +
   the menu icon's 24px right margin). Now even: 16px on phones, 24px on tablets. */
@media (max-width: 1024px) {
  .fusion-tb-header .fusion-builder-row-1 { padding-left: 24px !important; padding-right: 24px !important; }
  .fusion-tb-header .fusion-builder-row-1 a[href="#awb-open-oc__3236"] { margin-right: 0 !important; }
}
@media (max-width: 767px) {
  .fusion-tb-header .fusion-builder-row-1 { padding-left: 16px !important; padding-right: 16px !important; }
}

/* §31 Home banner (user, 2026-11-15). Section class: eotc-hero.
   The Association's name (the page's only h1, bold) > one plain line under it, on ONE line and not bold
   (user: "one line - no bold"; phones are too narrow for one line, so it wraps there) > the two buttons.
   A soft dark layer on the left keeps the white text readable on any photo.
   History: 2026-11-10 one word "Faith" at 96px; 2026-11-12 full name at 56 / 44 / 32px, line under at 32 / 20px;
   2026-11-15 morning: a small gold line above the name and three gold words in the line under it (both removed the same day). */
.fusion-fullwidth.eotc-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; /* above the photo slider (z 6), under the text row (z 10) */
	background: linear-gradient(90deg, rgba(8, 20, 14, .86) 0%, rgba(8, 20, 14, .68) 34%, rgba(8, 20, 14, .28) 64%, rgba(8, 20, 14, 0) 88%);
}
.fusion-fullwidth.eotc-hero > .fusion-builder-row { position: relative; z-index: 10; }
body.home h1.fusion-title-heading {
	font-size: clamp(40px, 4vw, 58px) !important; line-height: 1.06 !important; font-weight: 800 !important; letter-spacing: -0.025em;
	max-width: 13.5em; text-wrap: balance; text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}
body.home h1.fusion-title-heading b { font-weight: inherit; }
body.home .eotc-hero .fusion-title-size-one { margin-bottom: 18px !important; }
body.home .eotc-hero .fusion-title-size-two h2.fusion-title-heading {
	font-size: clamp(17px, 1.65vw, 23px) !important; line-height: 1.4 !important; font-weight: 400 !important; letter-spacing: 0;
	white-space: nowrap; color: rgba(255, 255, 255, .95) !important; text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
@media (max-width: 1024px) { body.home h1.fusion-title-heading { font-size: 40px !important; } }
@media (max-width: 767px) {
	.fusion-fullwidth.eotc-hero::before { background: linear-gradient(180deg, rgba(8, 20, 14, .74) 0%, rgba(8, 20, 14, .6) 55%, rgba(8, 20, 14, .72) 100%); }
	body.home h1.fusion-title-heading { font-size: 30px !important; line-height: 1.12 !important; }
	body.home .eotc-hero .fusion-title-size-one { margin-bottom: 12px !important; }
	body.home .eotc-hero .fusion-title-size-two h2.fusion-title-heading { font-size: 17px !important; line-height: 1.4 !important; white-space: normal; }
	/* more room above and below the banner text on phones (the site-wide phone cap is 48px; mobile.js exempts this section) */
	body.home #main .post-content > .fusion-fullwidth:has(h1.fusion-title-heading) { padding-top: 56px !important; padding-bottom: 72px !important; }
}
/* Text motion (user, 2026-11-15: "not too much or distraction"): the name, the line under it and the buttons rise a
   little and come into focus one after the other, once, when the page opens. Pure CSS, so it does not wait for the
   page's scripts (the old Avada fade on the column did, and is switched off on the column). Visitors who ask their
   device for reduced motion see the text at once, without movement. */
@keyframes eotc-hero-rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
	.eotc-hero .fusion-title-size-one, .eotc-hero .fusion-title-size-two, .eotc-hero .fusion-builder-row-inner { animation: eotc-hero-rise .95s cubic-bezier(.2, .7, .2, 1) both; }
	.eotc-hero .fusion-title-size-one { animation-delay: .15s; }
	.eotc-hero .fusion-title-size-two { animation-delay: .45s; }
	.eotc-hero .fusion-builder-row-inner { animation-delay: .75s; }
}
/* "Faith, Identity & Culture" in the line under the name: gold, same weight as the rest (user, 2026-11-15: colour yes, bold no). */
body.home .eotc-hero .eotc-hero-accent { color: #fcc943; }

/* ---------- 32. Latest Events: stacking event cards (user, 2026-11-10: page crashes on desktop and phone;
   on phones the bottom of each card could not be read because it blurred while scrolling) ----------
   a) Avada's rule ".fusion-stacking-posts-cards li" also catches the small date / place list items INSIDE every
      card, so they became sticky too and each ran its own scroll animation (9 running instead of 3, nested inside
      each other). Only the cards themselves may stack. */
.fusion-post-cards .fusion-stacking-posts-cards > li li { position: static !important; top: auto !important; animation: none !important; }
/* b) Desktop keeps the stacking effect (card stays, shrinks and fades as the next one arrives), without the
      per-frame blur filter, which is the heavy part for the graphics memory. */
@keyframes eotc-stacking-cards { to { scale: .7; opacity: 0; } }
.fusion-post-cards .fusion-stacking-posts-cards > li { animation-name: eotc-stacking-cards !important; }
/* c) Phones and very short windows: a card is taller than the free screen, so with stacking its bottom part is
      already fading / covered before it can be read. Cards simply follow each other there. */
@media (max-width: 767px), (max-height: 560px) {
	.fusion-post-cards .fusion-stacking-posts-cards > li { position: relative !important; top: auto !important; animation: none !important; scale: none !important; filter: none !important; opacity: 1 !important; }
}

/* ---------- 33. Page loading indicator (user, 2026-11-16: "when you click something it looks stuck while loading").
   mobile.js §8 adds the two elements and switches them on when a visitor follows a link or sends a form:
   a thin green / yellow / red bar along the top, and after half a second a small "Loading…" pill. ---------- */
.eotc-loadbar {
	position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 100001; pointer-events: none;
	background: linear-gradient(90deg, #18b26f 0%, #fcc943 55%, #e34234 100%);
	transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .2s;
}
.eotc-loadbar.is-on { opacity: 1; animation: eotc-loadbar 11s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes eotc-loadbar { 0% { transform: scaleX(0); } 8% { transform: scaleX(.3); } 35% { transform: scaleX(.65); } 100% { transform: scaleX(.96); } }
.eotc-loadpill {
	position: fixed; top: 18px; left: 50%; z-index: 100001; pointer-events: none;
	display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
	background: #fff; color: #1d1d1d; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .2); opacity: 0; transform: translate(-50%, -14px); transition: opacity .2s, transform .2s;
}
.eotc-loadpill.is-on { opacity: 1; transform: translate(-50%, 0); }
.eotc-loadpill i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfe9dc; border-top-color: #16833a; animation: eotc-loadspin .7s linear infinite; }
@keyframes eotc-loadspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.eotc-loadbar.is-on { animation: none; transform: scaleX(.9); }
	.eotc-loadpill i { animation-duration: 1.8s; }
}
