/* EYM Bible School page: light styling for the native blocks (scoped to .eym-lp) and the sign-up form. */
body:has(.eym-lp) { overflow-x: clip; }
.eym-lp { font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2a2e; }
.eym-lp .eym-serif, .eym-lp h1, .eym-lp h2 { font-family: Merriweather, Georgia, serif; font-weight: 900; }
.eym-lp h3 { font-family: Lato, system-ui, sans-serif; font-weight: 900; }
:where(.eym-lp) :where(p, h1, h2, h3) { margin-top: 0; margin-bottom: 0; }

/* full-width sections, also in themes without wide/full alignment */
.eym-lp > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; box-sizing: border-box; }
.eym-lp > .wp-block-group > * + * { margin-top: 20px; }

/* hide the theme's page title on this page (the page has its own headline) */
body:has(.eym-lp) .uk-article-title, body:has(.eym-lp) .entry-title, body:has(.eym-lp) .page-title { display: none; }

.eym-lp .eym-shadow { box-shadow: 0 6px 24px rgba(31, 78, 84, 0.10); }
.eym-lp .eym-stat { border-top: 2px solid #cfe3e2; padding-top: 14px; }
.eym-lp .eym-stat.is-dark { border-top-color: #4c8c88; }
.eym-lp .eym-card.is-small { padding: 14px 16px !important; }
.eym-lp .eym-langs a { color: #0f6e6e; font-weight: 700; }
.eym-lp .has-text-color a { color: inherit; }
.eym-lp .eym-video video { width: 100%; border-radius: 20px; background: #17393e; }
.eym-lp .wp-block-image figcaption { font-size: 14px; color: inherit; opacity: 0.85; text-align: left; }
.eym-lp .wp-block-button__link { min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.eym-lp .eym-cta-btn { justify-content: flex-end; }

.eym-lp .eym-tiers, .eym-lp .eym-budget { list-style: none; padding: 0; margin: 0; }
.eym-lp .eym-tiers li { background: #fbf8f1; border-radius: 14px; padding: 14px 20px; margin-bottom: 10px; font-size: 16px; }
.eym-lp .eym-tiers li strong { color: #0f6e6e; font-size: 22px; margin-right: 10px; }
.eym-lp .eym-budget li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #efeae0; font-size: 15px; }
.eym-lp .eym-total { background: #0f6e6e; border-radius: 10px; padding: 14px 16px; }

.eym-lp .eym-faq { border-bottom: 1px solid #e6e0d2; padding: 18px 0; }
.eym-lp .eym-faq summary { cursor: pointer; font-size: 19px; font-weight: 700; color: #1d2a2e; }
.eym-lp .eym-faq p { margin-top: 12px; }

@media (max-width: 781px) {
	.eym-lp .eym-days, .eym-lp .eym-keydates { flex-wrap: wrap !important; }
	.eym-lp .eym-days > .wp-block-column, .eym-lp .eym-keydates > .wp-block-column { flex-basis: calc(50% - 7px) !important; flex-grow: 0; }
	.eym-lp .eym-cta-btn { justify-content: flex-start; }
	.eym-lp .eym-cta-btn .wp-block-button, .eym-lp .eym-cta-btn .wp-block-button__link { width: 100%; }
}

/* sign-up form (shortcode) */
.eym-form { display: flex; flex-direction: column; gap: 12px; }
.eym-form .eym-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eym-form .eym-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eym-form input[type=text], .eym-form input[type=email], .eym-form input[type=tel] { font: inherit; font-size: 16px; width: 100%; min-height: 50px; box-sizing: border-box; padding: 0 16px; border: 1.5px solid #b9c4c2; border-radius: 12px; background: #fff; color: #1d2a2e; }
.eym-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: #1d2a2e; }
.eym-form label.eym-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; }
.eym-form .eym-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #0f6e6e; }
.eym-form button { font: inherit; font-size: 17px; font-weight: 900; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: #0f6e6e; color: #fff; cursor: pointer; }
.eym-form .eym-note { margin: 0; font-size: 14px; color: #5e6b6e; }
.eym-form.is-quick { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; max-width: 640px; }
.eym-form.is-quick button { grid-column: 1 / -1; }
.eym-form.is-quick input { border-radius: 999px; }
@media (min-width: 600px) {
	.eym-form.is-quick { display: flex; flex-direction: row; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 6px 24px rgba(31, 78, 84, 0.12); }
	.eym-form.is-quick label { flex: 1; } .eym-form.is-quick label.eym-name { flex: 0 0 30%; }
	.eym-form.is-quick input { border: 0; padding: 0 18px; }
	.eym-form.is-quick label.eym-email input { border-left: 1.5px solid #e3eeec; border-radius: 0; }
}
.eym-form-done { background: #e3eeec; border-radius: 16px; padding: 16px 18px; font-size: 17px; line-height: 1.5; color: #1f4e54; }

/* ---------- Campaign stages: blocks with eym-when-* classes show only in their stage ---------- */
html:not(.eym-stage-live):not(.eym-stage-giving):not(.eym-stage-closed) :is(.eym-when-live, .eym-when-giving, .eym-when-closed):not(.eym-when-pre),
html.eym-stage-live :is(.eym-when-pre, .eym-when-giving, .eym-when-closed):not(.eym-when-live),
html.eym-stage-giving :is(.eym-when-pre, .eym-when-live, .eym-when-closed):not(.eym-when-giving),
html.eym-stage-closed :is(.eym-when-pre, .eym-when-live, .eym-when-giving):not(.eym-when-closed) { display: none !important; }

/* Key dates: the current one is outlined */
.eym-lp .eym-date { border: 2px solid transparent; }
html:not(.eym-stage-live):not(.eym-stage-giving):not(.eym-stage-closed) .eym-lp .eym-date-pre,
html.eym-stage-live .eym-lp .eym-date-live, html.eym-stage-giving .eym-lp .eym-date-giving, html.eym-stage-closed .eym-lp .eym-date-closed { border-color: #0f6e6e; }
.eym-lp .eym-dates { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 8px; }

/* Countdown, progress, sign-up count */
.eym-countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.eym-countdown > div { background: #fbf8f1; border-radius: 14px; padding: 10px 4px; }
.eym-countdown strong { display: block; font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 30px; line-height: 1.1; color: #1f4e54; }
.eym-countdown span { font-size: 13px; color: #5e6b6e; }
.eym-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.eym-progress-top strong { font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 30px; color: #1f4e54; }
.eym-progress-top span { color: #5e6b6e; font-size: 15px; }
.eym-progress-bar { height: 12px; background: #e3eeec; border-radius: 999px; overflow: hidden; }
.eym-progress-bar span { display: block; height: 100%; background: #0f6e6e; border-radius: 999px; }
.eym-list-count { display: inline-flex; align-items: center; gap: 6px; color: #0f6e6e; font-weight: 700; }
.eym-list-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0f6e6e; }

/* Thank-you screen with next steps */
.eym-form-done .eym-thanks-title { margin: 0 0 12px; font-family: Merriweather, Georgia, serif; font-size: 20px; line-height: 1.35; }
.eym-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.eym-act { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: #fff; color: #1f4e54; text-decoration: none; }
.eym-act span { font-size: 14px; color: #34444a; }
.eym-act:hover { box-shadow: 0 0 0 2px #0f6e6e inset; }
.eym-door { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid #cfe3e2; margin-top: 14px; padding-top: 14px; font-size: 16px; color: #34444a; }
.eym-door span { flex: 1 1 240px; }
.eym-door button { font: inherit; font-weight: 900; min-height: 44px; padding: 0 18px; border: 2px solid #0f6e6e; border-radius: 999px; background: #fff; color: #0f6e6e; cursor: pointer; }
.eym-door-done { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #cfe3e2; color: #0f6e6e; font-weight: 700; }

/* Video poster linked to YouTube, with a play button */
.eym-lp .eym-play { position: relative; }
.eym-lp .eym-play a { display: block; position: relative; }
.eym-lp .eym-play a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255,255,255,0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%231f4e54'/%3E%3C/svg%3E") center / 38px no-repeat; box-shadow: 0 8px 30px rgba(0,0,0,0.25); transition: transform .15s; }
.eym-lp .eym-play a:hover::after { transform: scale(1.06); }

/* Share of the goal under each fund */
.eym-lp .eym-share { position: relative; padding-top: 16px !important; }
.eym-lp .eym-share::before, .eym-lp .eym-share::after { content: ""; position: absolute; top: 0; left: 0; height: 8px; border-radius: 999px; }
.eym-lp .eym-share::before { right: 0; background: #e3eeec; }
.eym-lp .eym-share::after { background: #0f6e6e; }
.eym-lp .eym-share-40::after { width: 40%; } .eym-lp .eym-share-15::after { width: 15%; } .eym-lp .eym-share-45::after { width: 45%; }

/* Gift amounts: highlight the $200 row */
.eym-lp .eym-tiers li.is-main, .eym-lp .eym-tiers li:nth-child(2) { background: #e3eeec; box-shadow: 0 0 0 2px #0f6e6e inset; }

/* Sticky bar on phones */
.eym-lp .eym-sticky-cta { display: none !important; }
@media (max-width: 781px) {
	.eym-lp .eym-sticky-cta { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0 !important; box-shadow: 0 -6px 20px rgba(31,78,84,0.12); border-top: 1px solid #e6e0d2; }
	html.eym-stage-closed .eym-lp .eym-sticky-cta { display: none !important; }
	body:has(.eym-sticky-cta) { padding-bottom: 76px; }
	.eym-lp .eym-sticky-cta p { font-size: 14px !important; line-height: 1.3 !important; }
	.eym-lp .eym-sticky-cta .wp-block-button__link { white-space: nowrap; padding: 10px 16px !important; min-height: 44px; }
}
/* The stage rules above must still win over the sticky bar's display */
html.eym-stage-live .eym-lp .eym-sticky-cta.eym-when-pre:not(.eym-when-live),
html.eym-stage-giving .eym-lp .eym-sticky-cta.eym-when-pre:not(.eym-when-giving),
html:not(.eym-stage-live):not(.eym-stage-giving):not(.eym-stage-closed) .eym-lp .eym-sticky-cta.eym-when-live:not(.eym-when-pre) { display: none !important; }
.eym-lp .eym-stagebar p { text-align: center; }
.eym-lp .eym-stagebar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .eym-lp .eym-iam { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .eym-lp .eym-iam .eym-card { padding: 12px !important; } }
/* Spanish, Portuguese and Norwegian amounts are longer: keep the hero stats on one line, sized to the card */
.eym-card:has(> .eym-trio) { container-type: inline-size; }
html:not([lang^="en"]) .eym-trio .eym-stat p:first-child { white-space: nowrap; font-size: min(28px, 5cqi) !important; }
/* After signing up, the form hides so only the thank-you shows */
.eym-signup [hidden] { display: none !important; }
