/* St Christopher's Playgroup block theme: components that theme.json can't express. */

:root {
	--stcp-navy: var(--wp--preset--color--navy, #1e3a5f);
	--stcp-blue: var(--wp--preset--color--blue, #2063b0);
	--stcp-sky: var(--wp--preset--color--sky, #c4e0f6);
	--stcp-sky-light: var(--wp--preset--color--sky-light, #d4e9f8);
	--stcp-cloud: var(--wp--preset--color--cloud, #eff6fc);
	--stcp-yellow: var(--wp--preset--color--yellow, #f2c14e);
	--stcp-green: var(--wp--preset--color--green, #a9c7a4);
	--stcp-heading: var(--wp--preset--font-family--heading, Lexend, system-ui, sans-serif);
	--stcp-body: var(--wp--preset--font-family--body, Nunito, system-ui, sans-serif);
	--stcp-wide: 1200px;
}
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
main.wp-block-group { margin-top: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--stcp-yellow); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Header ---------- */
.stcp-header { background: #fff; border-bottom: 1px solid var(--stcp-sky-light); position: relative; z-index: 50; }
.stcp-header__inner { max-width: var(--stcp-wide); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; box-sizing: border-box; }
@media (min-width: 900px) { .stcp-header__inner { padding: 18px 32px; } }
.stcp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: var(--stcp-navy); }
.stcp-brand__children { height: 62px; width: auto; flex: 0 0 auto; }
.stcp-brand__text { display: flex; flex-direction: column; }
.stcp-brand__name { font-family: var(--stcp-body); line-height: 1; white-space: nowrap; display: flex; flex-direction: column; }
.stcp-brand__st { font-style: italic; font-weight: 800; font-size: 17px; color: var(--stcp-blue); padding-left: 1px; }
.stcp-brand__play { font-weight: 900; font-size: 30px; color: var(--stcp-navy); margin-top: -2px; letter-spacing: -0.01em; }
.stcp-brand__tagline { display: none; }
@media (min-width: 900px) {
	.stcp-brand { gap: 16px; }
	.stcp-brand__children { height: 80px; }
	.stcp-brand__text { padding-top: 6px; gap: 2px; }
	.stcp-brand__name { flex-direction: row; gap: .25em; font-size: 38px; }
	.stcp-brand__st, .stcp-brand__play { font-size: 38px; margin: 0; padding: 0; }
	.stcp-brand__tagline { display: block; font-size: 17px; line-height: 1.2; color: var(--stcp-navy); }
}

/* Menu button: rounded square */
.stcp-menu-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
	height: 44px; width: 44px; padding: 0; margin: 0; flex: 0 0 auto; cursor: pointer; line-height: 1;
	background: #fff; border: 2px solid var(--stcp-navy); border-radius: 10px;
	color: var(--stcp-navy); font-family: var(--stcp-heading); font-weight: 700; font-size: 16px;
	transition: opacity .2s ease;
}
.stcp-menu-btn__label { display: none; }
@media (min-width: 900px) {
	.stcp-menu-btn { width: auto; height: 48px; padding: 0 16px 0 14px; }
	.stcp-menu-btn__label { display: inline; }
}
.stcp-burger { position: relative; width: 22px; height: 17px; display: block; flex: 0 0 22px; }
.stcp-burger span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: var(--stcp-navy); transition: transform .25s ease, opacity .2s ease; }
.stcp-burger span:nth-child(1) { top: 0; }
.stcp-burger span:nth-child(2) { top: 7px; }
.stcp-burger span:nth-child(3) { top: 14px; }
.stcp-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.stcp-burger.is-open span:nth-child(2) { opacity: 0; }
.stcp-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.stcp-menu-open .stcp-menu-btn--open { opacity: 0; pointer-events: none; }

/* Slide-in panel */
.stcp-menu { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end; pointer-events: none; }
body.admin-bar .stcp-menu { top: 32px; }
@media (max-width: 782px) { body.admin-bar .stcp-menu { top: 46px; } }
body.stcp-menu-open .stcp-menu { pointer-events: auto; }
.stcp-menu__overlay { flex: 1 1 auto; background: rgba(30, 58, 95, .55); border: 0; padding: 0; margin: 0; opacity: 0; transition: opacity .3s ease; cursor: pointer; }
body.stcp-menu-open .stcp-menu__overlay { opacity: 1; }
.stcp-menu__panel {
	position: relative; width: 86vw; max-width: 360px; height: 100%; box-sizing: border-box;
	background: #fff; padding: 96px 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
	transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: -12px 0 32px rgba(30, 58, 95, .18);
}
body.stcp-menu-open .stcp-menu__panel { transform: translateX(0); }
.stcp-menu-btn--close { position: absolute; top: 20px; left: 20px; }
@media (min-width: 900px) { .stcp-menu-btn--close { top: 24px; left: 24px; } .stcp-menu__panel { padding: 104px 24px 24px; } }
.stcp-menu__list, .stcp-menu__list ul { list-style: none; margin: 0; padding: 0; }
.stcp-menu__list > li > a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--stcp-sky-light); font-family: var(--stcp-heading); font-weight: 700; font-size: 18px; color: var(--stcp-navy); text-decoration: none; }
.stcp-menu__list .sub-menu > li > a { display: block; padding: 8px 6px 8px 22px; font-size: 16px; color: var(--stcp-navy); text-decoration: none; }
.stcp-menu__list .sub-menu { border-bottom: 1px solid var(--stcp-sky-light); padding-bottom: 6px; }
.stcp-menu__list .current-menu-item > a, .stcp-menu__list .current_page_item > a { color: var(--stcp-blue); }
.stcp-menu__call {
	margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 16px; border-radius: 999px;
	background: var(--stcp-yellow); color: var(--stcp-navy); font-family: var(--stcp-heading); font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; box-sizing: border-box; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid var(--stcp-navy); color: var(--stcp-navy); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--stcp-navy); color: #fff; }
.stcp-btn-phone .wp-block-button__link::before {
	content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/></svg>") center / contain no-repeat;
}
.stcp-link-btn .wp-block-button__link { background: transparent !important; color: var(--stcp-navy) !important; padding-left: 0; padding-right: 0; min-height: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 700; }

/* ---------- Hero ---------- */
.stcp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--stcp-sky) 0%, var(--stcp-sky-light) 70%, #e3f0fa 100%); margin-top: 0 !important; padding: 0 !important; }
.stcp-hero__scenery { position: absolute; inset: 0; pointer-events: none; }
.stcp-hero__sun { position: absolute; top: -50px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--stcp-yellow); }
@media (min-width: 900px) { .stcp-hero__sun { top: -70px; width: 220px; height: 220px; } }
.stcp-cloud { position: absolute; fill: var(--stcp-cloud); overflow: visible; will-change: transform; }
.stcp-cloud--1 { left: -8%; top: 50px; width: 190px; animation: stcpDriftL 11s ease-in-out infinite alternate; }
.stcp-cloud--2 { left: 55%; top: 150px; width: 120px; opacity: .9; animation: stcpDriftS 17s ease-in-out -6s infinite alternate; }
.stcp-cloud--3 { left: 20%; top: 330px; width: 140px; opacity: .9; animation: stcpDriftM 14s ease-in-out -9s infinite alternate; }
.stcp-cloud--4, .stcp-cloud--5 { display: none; }
@media (min-width: 900px) {
	.stcp-cloud--1 { left: 3%; top: 40px; width: 280px; animation-duration: 10s; }
	.stcp-cloud--2 { left: 30%; top: 190px; width: 170px; opacity: .95; animation: stcpDriftM 14s ease-in-out -5s infinite alternate; }
	.stcp-cloud--3 { left: 46%; top: 60px; width: 130px; animation: stcpDriftS 18s ease-in-out -9s infinite alternate; }
	.stcp-cloud--4 { display: block; left: 12%; top: 330px; width: 150px; opacity: .9; animation: stcpDriftM 15s ease-in-out -11s infinite alternate; }
	.stcp-cloud--5 { display: block; left: 62%; top: 250px; width: 110px; opacity: .85; animation: stcpDriftS 20s ease-in-out -3s infinite alternate; }
}
@keyframes stcpDriftL { from { transform: translateX(0); } to { transform: translateX(140px); } }
@keyframes stcpDriftM { from { transform: translateX(0); } to { transform: translateX(100px); } }
@keyframes stcpDriftS { from { transform: translateX(0); } to { transform: translateX(60px); } }
.stcp-hero__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--stcp-green); border-radius: 50% 50% 0 0 / 24px 24px 0 0; }
.stcp-hero__church { position: absolute; right: -16px; bottom: 50px; width: 380px; max-width: none; height: auto; will-change: transform; }
@media (min-width: 900px) {
	.stcp-hero__ground { height: 140px; border-radius: 50% 50% 0 0 / 48px 48px 0 0; }
	.stcp-hero__church { right: 0; bottom: 56px; width: 820px; max-width: 62%; }
}
.stcp-hero__hill { position: relative; z-index: 2; height: 40px; margin: 0 -30px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
@media (min-width: 900px) { .stcp-hero__hill { height: 96px; margin: 0 -40px; } }

.stcp-hero__inner { position: relative; z-index: 1; max-width: var(--stcp-wide); margin: 0 auto !important; padding: 32px 20px 250px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
@media (min-width: 900px) { .stcp-hero__inner { padding: 64px 32px 120px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px; } }
.stcp-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; margin: 0 !important; }
.stcp-hero__copy > * { margin: 0 !important; }
@media (min-width: 900px) { .stcp-hero__copy { flex: 0 1 640px; gap: 22px; } }
.stcp-hero__title { font-size: clamp(36px, 5vw, 58px) !important; line-height: 1.06 !important; }
.stcp-hero__strap { font-size: clamp(18px, 2vw, 22px); max-width: 32ch; }
.stcp-hero__actions { width: 100%; gap: 10px 16px; }
.stcp-hero__actions .wp-block-button { width: 100%; }
.stcp-hero__actions .wp-block-button__link { width: 100%; }
@media (min-width: 900px) { .stcp-hero__actions { width: auto; } .stcp-hero__actions .wp-block-button, .stcp-hero__actions .wp-block-button__link { width: auto; } }
.stcp-hero__note { font-size: 16px; text-align: center; width: 100%; }
@media (min-width: 900px) { .stcp-hero__note { font-size: 17px; text-align: left; width: auto; } }

.stcp-hours { display: flex; flex-direction: column; align-items: flex-start; gap: 8px !important; margin: 0 !important;
	background: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; padding: 18px 20px; }
.stcp-hours > * { margin: 0 !important; }
@media (min-width: 900px) { .stcp-hours { flex: 0 1 360px; border-radius: 20px; padding: 28px 32px; } }
.stcp-hours__label { font-family: var(--stcp-heading); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--stcp-yellow); padding: 5px 10px; border-radius: 6px; }
@media (min-width: 900px) { .stcp-hours__label { font-size: 14px; } }
.stcp-hours__time { font-family: var(--stcp-heading); font-weight: 800; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.1; }
.stcp-hours__days { font-weight: 700; font-size: 17px; }
@media (max-width: 899px) {
	.stcp-hero__copy { display: contents; }
	.stcp-hero__title { order: 1; } .stcp-hero__strap { order: 2; } .stcp-hours { order: 3; } .stcp-hero__actions { order: 4; } .stcp-hero__note { order: 5; }
}

/* ---------- Sections ---------- */
.stcp-section { padding-top: clamp(40px, 7vw, 88px) !important; padding-bottom: clamp(40px, 7vw, 88px) !important; margin-top: 0 !important; }
.stcp-section + .stcp-section { margin-top: 0 !important; }
.stcp-section h2 { margin-top: 0; }
.stcp-centre { text-align: center; }

/* Four promises */
.stcp-promises { margin-top: 0 !important; padding-top: 8px !important; }
.stcp-promises__grid { display: flex; flex-direction: column; gap: 24px; max-width: var(--stcp-wide); margin: 0 auto !important; }
@media (min-width: 900px) { .stcp-promises__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }
.stcp-promise { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; margin: 0 !important; }
.stcp-promise > * { margin: 0 !important; }
.stcp-promise .wp-block-image { grid-row: 1 / span 2; }
.stcp-promise .wp-block-image img { width: 52px; height: auto; }
.stcp-promise h2 { font-size: 19px !important; line-height: 1.25; }
.stcp-promise p { font-size: 16px; }
@media (min-width: 900px) {
	.stcp-promise { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
	.stcp-promise .wp-block-image { height: 72px; display: flex; align-items: flex-end; }
	.stcp-promise .wp-block-image img { width: auto; height: 64px; }
	.stcp-promise h2 { font-size: 21px !important; }
	.stcp-promise p { font-size: 17px; }
}

/* About on the homepage */
.stcp-about .wp-block-columns { gap: clamp(24px, 5vw, 64px); align-items: center; }
.stcp-about .wp-block-image img, .stcp-frame img { background: #fff; border: 8px solid #fff; border-radius: 28px; box-shadow: 0 8px 24px rgba(30, 58, 95, .10); }

/* Team */
.stcp-team__grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; max-width: var(--stcp-wide) !important; margin: 32px auto 0 !important; }
@media (min-width: 700px) { .stcp-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1000px) { .stcp-team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stcp-person { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.stcp-person > * { margin: 0 !important; }
.stcp-person .wp-block-image { margin-bottom: 6px !important; }
.stcp-person .wp-block-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--stcp-cloud); display: block; }
.stcp-person__name { font-family: var(--stcp-heading); font-weight: 700; font-size: 18px; }
.stcp-person__role { font-size: 16px !important; line-height: 1.4; }
.stcp-person__qual { font-size: 16px !important; line-height: 1.4; color: var(--stcp-blue); font-weight: 700; }

/* Shared section helpers (from the design) */
.stcp-lead { font-size: clamp(17px, 1.6vw, 19px); }
.stcp-measure { max-width: 60ch !important; margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.stcp-split { gap: clamp(28px, 5vw, 48px) !important; }
.stcp-section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.stcp-photo img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.stcp-more a { font-family: var(--stcp-heading); font-weight: 700; color: var(--stcp-blue); text-decoration: underline; text-underline-offset: 4px; }
.stcp-btn-navy .wp-block-button__link { background: var(--stcp-navy) !important; color: #fff !important; }
.stcp-btn-navy .wp-block-button__link:hover { background: var(--stcp-blue) !important; }
.stcp-btn-navy.stcp-btn-phone .wp-block-button__link::before { background-color: #fff !important; }
.stcp-btn-white .wp-block-button__link { background: #fff !important; }
.stcp-btn-white .wp-block-button__link:hover { background: var(--stcp-navy) !important; color: #fff !important; }

.stcp-quotes__grid { display: grid !important; gap: 20px; max-width: var(--stcp-wide) !important; margin: 32px auto 0 !important; }
@media (min-width: 900px) { .stcp-quotes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.stcp-quotes__grid .wp-block-quote { margin: 0 !important; background: #fff; border-radius: 20px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.stcp-quotes__grid .wp-block-quote::before { content: "\201C"; font-family: var(--stcp-heading); font-weight: 800; font-size: 64px; line-height: .6; color: var(--stcp-yellow); height: 24px; }
.stcp-quotes__grid .wp-block-quote p { font-size: 18px; font-style: italic; margin: 0; }
.stcp-quotes__grid .wp-block-quote cite { font-style: normal; font-size: 15px; margin-top: auto; }
.stcp-quotes__grid .wp-block-quote cite strong { display: block; font-weight: 800; font-size: 17px; color: var(--stcp-blue); }

/* Call to action band */
.stcp-cta { background: linear-gradient(180deg, var(--stcp-sky-light) 0%, var(--stcp-sky) 100%); }
.stcp-cta__inner { max-width: var(--stcp-wide); margin: 0 auto !important; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stcp-cta__inner > * { margin: 0 !important; }
@media (min-width: 900px) { .stcp-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } .stcp-cta__inner h2 { max-width: 22ch; } }

/* Accreditations */
.stcp-accreds__row { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 56px; margin: 0 auto !important; }
.stcp-accreds__row > * { margin: 0 !important; }
.stcp-accreds__row img { height: 120px; width: auto; object-fit: contain; }
@media (max-width: 600px) { .stcp-accreds__row img { height: 90px; } }

/* ---------- Inner pages ---------- */
.stcp-title-strip { background: linear-gradient(180deg, var(--stcp-sky) 0%, var(--stcp-sky-light) 100%); margin-top: 0 !important; }
.stcp-title-strip .wp-block-post-title, .stcp-title-strip h1 { margin: 0; font-size: clamp(26px, 3.6vw, 40px) !important; }
.stcp-page-body { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.stcp-page-body h2 { margin-top: clamp(32px, 5vw, 48px); }
.stcp-page-body > :first-child, .stcp-page-body .wp-block-column > :first-child { margin-top: 0; }
.nf-form-title { display: none; }
.stcp-card { background: var(--stcp-cloud); border-radius: 20px; padding: clamp(20px, 3vw, 32px) !important; }
.stcp-card > :first-child { margin-top: 0; }
/* Price card (from the design mockup): label left, price right, soft rules */
.stcp-price-card { background: var(--stcp-cloud); border-radius: 20px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) !important; }
.stcp-section.has-cloud-background-color .stcp-price-card, .has-cloud-background-color .stcp-price-card { background: #fff; }
.stcp-price-card__label { font-family: var(--stcp-heading); font-weight: 700; font-size: 16px; color: var(--stcp-blue); margin: 0 0 4px !important; }
.stcp-price-list { list-style: none; padding: 0 !important; margin: 0 !important; }
.stcp-price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--stcp-sky); }
.stcp-price-list li:last-child { border-bottom: 0; }
.stcp-price-list li strong { font-family: var(--stcp-heading); font-weight: 800; white-space: nowrap; }

/* Policy link rows (What to expect) and policy list */
.stcp-policy-links { font-size: 15px; }
.stcp-policy-list { padding-left: 1.1em; }
.stcp-policy-list li { margin-bottom: 6px; }
.stcp-policy-date { color: #4a6788; font-size: 15px; }

/* Tables (term dates): same card treatment as the price list */
.wp-block-table { background: var(--stcp-cloud); border-radius: 20px; padding: 8px clamp(16px, 3vw, 28px) 12px; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; border: 0; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--stcp-sky); padding: 12px 10px; text-align: left; vertical-align: top; background: transparent; }
.wp-block-table thead th { font-family: var(--stcp-heading); font-weight: 700; font-size: 15px; color: var(--stcp-blue); border-bottom: 2px solid var(--stcp-sky); padding-top: 16px; }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table td:first-child { white-space: nowrap; font-family: var(--stcp-heading); font-weight: 700; }
@media (max-width: 640px) {
	.stcp-term-table table, .stcp-term-table thead, .stcp-term-table tbody, .stcp-term-table tr, .stcp-term-table td { display: block; width: 100%; }
	.stcp-term-table thead { display: none; }
	.stcp-term-table tr { background: #fff; border-radius: 14px; margin-bottom: 12px; padding: 6px 0; }
	.stcp-term-table td { border: 0; padding: 4px 14px; background: transparent !important; }
	.stcp-term-table td:first-child { font-size: 18px; padding-top: 8px; }
	.stcp-term-table td:nth-child(2)::before { content: "Starts: "; font-weight: 700; }
	.stcp-term-table td:nth-child(3)::before { content: "Ends: "; font-weight: 700; }
	.stcp-term-table td:nth-child(4):empty { display: none; }
}

/* Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 14px; }

/* Map embed */
.stcp-map iframe { width: 100%; min-height: 320px; border: 0; border-radius: 20px; display: block; }

/* Ninja Forms */
.nf-form-cont { font-family: var(--stcp-body); }
.nf-form-cont .nf-form-title h3 { font-family: var(--stcp-heading); }
.nf-form-cont .nf-field-label label { font-weight: 700; color: var(--stcp-navy); }
.nf-form-cont input[type=text], .nf-form-cont input[type=email], .nf-form-cont input[type=tel], .nf-form-cont textarea {
	border: 2px solid #c9dcee !important; border-radius: 12px !important; background: #fff !important; padding: 12px 14px !important; font-size: 17px !important; font-family: var(--stcp-body) !important; color: var(--stcp-navy) !important;
}
.nf-form-cont input:focus, .nf-form-cont textarea:focus { border-color: var(--stcp-blue) !important; outline: none; box-shadow: 0 0 0 3px rgba(47, 123, 212, .2); }
.nf-form-cont input[type=submit], .nf-form-cont input[type=button] {
	background: var(--stcp-yellow) !important; color: var(--stcp-navy) !important; border: 0 !important; border-radius: 999px !important;
	padding: 14px 28px !important; font-family: var(--stcp-heading) !important; font-weight: 800 !important; font-size: 17px !important; cursor: pointer; height: auto !important;
}

/* ---------- Footer ---------- */
.stcp-footer { background: linear-gradient(180deg, var(--stcp-sky-light) 0%, var(--stcp-sky) 100%); padding: clamp(48px, 7vw, 80px) 20px 40px !important; margin-top: 0 !important; }
.stcp-footer > * { margin-top: 0 !important; margin-bottom: 14px !important; }
.stcp-footer__logo img { width: clamp(140px, 18vw, 200px); height: auto; }
.stcp-footer h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.stcp-footer .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px !important; margin-bottom: 18px !important; }
footer.wp-block-template-part, .wp-site-blocks > footer { margin-top: 0 !important; }
.stcp-footer__rule { border: 0 !important; height: 1px !important; background: #9fc3e3 !important; width: 100% !important; max-width: 760px !important; margin: 20px auto 22px !important; opacity: 1; }
.stcp-footer__badges { gap: 14px !important; }
.stcp-footer__badges .wp-block-image { margin: 0 !important; }
.stcp-footer__badges img { width: 104px; height: 104px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-sizing: border-box; display: block; }
.stcp-footer__small { font-size: 15px; margin-bottom: 4px !important; }
.stcp-footer__links a { color: var(--stcp-navy); }

/* ---------- Cookie notice (CookieYes / GDPR Cookie Consent) ---------- */
#cookie-law-info-bar { background: var(--stcp-navy) !important; color: #fff !important; font-family: var(--stcp-body) !important; font-size: 15px !important; box-shadow: 0 -6px 24px rgba(30, 58, 95, .18) !important; padding: 16px 20px !important; border-top: 4px solid var(--stcp-yellow); }
#cookie-law-info-bar .cli-bar-container { max-width: var(--stcp-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#cookie-law-info-bar .cli-bar-message { color: #fff !important; line-height: 1.45; flex: 1 1 420px; text-align: left; }
#cookie-law-info-bar .cli-bar-btn_container { display: flex; gap: 12px; align-items: center; margin: 0 !important; }
#cookie-law-info-bar .cli_settings_button { color: #fff !important; font-weight: 700; text-decoration: underline; }
#cookie-law-info-bar #cookie_action_close_header { background: var(--stcp-yellow) !important; color: var(--stcp-navy) !important; border: 0 !important; border-radius: 999px !important; font-family: var(--stcp-heading) !important; font-weight: 800 !important; font-size: 15px !important; padding: 10px 22px !important; text-transform: none !important; }
#cookie-law-info-again { background: var(--stcp-navy) !important; color: #fff !important; font-family: var(--stcp-body) !important; font-size: 13px !important; font-weight: 700; border-radius: 10px 10px 0 0 !important; padding: 6px 14px !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.stcp-cloud { animation: none !important; }
	.stcp-hero__church { transform: none !important; }
	.stcp-menu__panel, .stcp-menu__overlay, .stcp-burger span, .stcp-menu-btn { transition: none !important; }
}

/* ---------- Gallery lightbox (WordPress "enlarge on click") ---------- */
.wp-lightbox-overlay .scrim { background-color: var(--stcp-cloud) !important; opacity: 1 !important; }
.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	width: 52px; height: 52px; padding: 0 !important; display: flex; align-items: center; justify-content: center;
	background: var(--stcp-navy) !important; color: #fff !important; border: 0 !important; border-radius: 50% !important;
	box-shadow: 0 6px 18px rgba(30, 58, 95, .25); cursor: pointer;
}
.wp-lightbox-overlay .wp-lightbox-close-button { top: 20px !important; right: 20px !important; }
.wp-lightbox-overlay .wp-lightbox-close-button svg,
.wp-lightbox-overlay .wp-lightbox-navigation-button svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }
.wp-lightbox-overlay .wp-lightbox-close-button:hover,
.wp-lightbox-overlay .wp-lightbox-navigation-button:hover { background: var(--stcp-blue) !important; }
.wp-lightbox-overlay button:focus-visible { outline: 3px solid var(--stcp-yellow) !important; outline-offset: 3px; }
