/*
Theme Name: FST Trinity
Theme URI: https://fstsisters.org/
Author: Daughters of the Most Holy Trinity
Author URI: https://fstsisters.org/
Description: Theme for the Daughters of the Most Holy Trinity (FST), Kumasi. Modern layout with serif headings, a homepage slider, leadership, mission, vocations and a photo gallery with lightbox.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fst
*/

:root {
	--ink: #16181D;
	--muted: #555B66;
	--ground: #FFFFFF;
	--cream: #FBF7F0;
	--sand: #F6EBDC;
	--line: #E6E1D6;
	--navy: #1B2F5B;
	--navy-deep: #10203F;
	--apricot: #D9822B;
	--apricot-soft: #F3C99A;
	--apricot-text: #9A5A16;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--apricot-text); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy); margin: 0; }
p { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: #fff; color: var(--navy); padding: 12px 18px; border-radius: var(--radius);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.eyebrow {
	font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--apricot-text);
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.01em; }
.section-head .stack { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	padding: 13px 26px; border-radius: var(--radius); font: 600 16px/1.2 var(--sans);
	text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn--apricot { background: var(--apricot); color: #1B1206; }
.btn--apricot:hover { background: #C4711F; color: #1B1206; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); color: var(--navy); }

/* Header */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { flex: 0 0 auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand__sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home .brand, .home .brand__sub { color: #fff; }

.nav-toggle {
	display: none; width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--line);
	background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center;
}
.home .nav-toggle { border-color: rgba(255,255,255,.55); color: #fff; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.primary-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: 8px 0; display: block; }
.home .primary-nav > ul > li > a { color: #fff; }
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 230px; background: #fff; border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav .sub-menu a { color: var(--ink) !important; padding: 10px 12px; border-radius: 4px; }
.primary-nav .sub-menu a:hover { background: var(--cream); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .menu-cta > a { background: var(--apricot); color: #1B1206 !important; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; }
.primary-nav .menu-cta > a:hover { background: #C4711F; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { text-decoration: underline; text-decoration-color: var(--apricot); text-underline-offset: 8px; text-decoration-thickness: 2px; }

.brand__title { white-space: nowrap; }
@media (max-width: 480px) { .brand__title { font-size: 18px; white-space: normal; } }
@media (max-width: 1200px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16,24,40,.12); max-height: calc(100vh - 84px); overflow-y: auto; }
	.primary-nav.is-open { display: block; }
	.primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
	.primary-nav a, .home .primary-nav > ul > li > a { color: var(--ink); padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.primary-nav .sub-menu a { padding: 11px 0; font-size: 16px; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .menu-cta > a { margin-top: 16px; text-align: center; border-bottom: 0; color: #1B1206; }
}

/* Hero slider */
.hero { position: relative; min-height: max(620px, 88vh); color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero__slide {
	position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,32,.82) 0%, rgba(10,16,32,.45) 50%, rgba(10,16,32,.35) 100%); }
.hero__content { position: relative; width: 100%; padding-bottom: clamp(110px, 14vh, 150px); padding-top: 140px; }
.hero__content .eyebrow { color: var(--apricot-soft); }
.hero__title { color: #fff; font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -0.01em; margin: 16px 0 20px; max-width: 900px; }
.hero__text { font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; color: #EEF0F5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; }
.hero__controls .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__tab {
	font: 500 14px/1.3 var(--sans); color: rgba(255,255,255,.75); background: transparent; border: 0;
	border-top: 2px solid rgba(255,255,255,.35); padding: 12px 0 0; min-width: 150px; text-align: left; cursor: pointer;
}
.hero__tab[aria-selected="true"] { color: #fff; border-top-color: var(--apricot); }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
	width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.06);
	color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero__arrow:hover { background: rgba(255,255,255,.16); }
@media (max-width: 700px) {
	.hero__tab { min-width: 0; flex: 1 1 0; font-size: 12px; }
	.hero__tabs { flex: 1 1 auto; }
	.hero__arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__slide, .hero__media img { transition: none; }
	html { scroll-behavior: auto; }
}

/* Who we are */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.intro__lead { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; color: var(--navy); font-weight: 500; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.pillar { border-top: 1px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pillar__num { font-family: var(--serif); font-size: 22px; color: var(--apricot); font-weight: 700; }
.pillar h3 { font-size: 30px; }
.pillar p { color: var(--muted); }
.founder { display: flex; gap: 24px; align-items: center; margin-top: 56px; padding: 24px; background: var(--cream); border-radius: var(--radius); }
.founder img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.founder__body { display: flex; flex-direction: column; gap: 6px; }
.founder__body h3 { font-size: 26px; }
.founder__body p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
	.intro { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: 1fr; gap: 24px; }
	.founder { flex-direction: column; align-items: flex-start; }
}

/* Leadership */
.leader { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.leader__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); max-height: 600px; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.leader__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 600 clamp(72px, 10vw, 140px)/1 var(--serif); color: var(--apricot); }
.leader__body { display: flex; flex-direction: column; gap: 22px; }
.leader__body blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; color: var(--navy); }
.leader__name { font-family: var(--serif); font-size: 32px; }
.leader__role { color: var(--muted); }
.council { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 72px; }
.council__member { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.avatar {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--sand); color: var(--apricot-text);
	display: flex; align-items: center; justify-content: center; font: 700 22px/1 var(--serif);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.council__name { font-weight: 600; line-height: 1.3; }
.council__role { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .leader { grid-template-columns: 1fr; } }

/* Mission */
.feature { position: relative; display: block; color: #fff; text-decoration: none; background: var(--navy-deep); border-radius: var(--radius); overflow: hidden; }
.feature img { width: 100%; height: clamp(380px, 48vw, 600px); object-fit: cover; }
.feature__body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 120px clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px);
	background: linear-gradient(to top, rgba(10,16,32,.85), rgba(10,16,32,0)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.feature__body h3 { color: #fff; font-size: clamp(36px, 4.5vw, 54px); }
.feature__body p { color: #E8EAF0; max-width: 620px; margin-top: 8px; }
.feature:hover { color: #fff; }
.feature:hover .link-arrow { text-decoration: underline; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; margin-top: 48px; }
.work { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.work__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover .work__img img { transform: scale(1.04); }
.work h3 { font-size: 26px; }
.work p { color: var(--muted); font-size: 15px; }

/* Vocations */
.vocations { background: var(--navy); color: #fff; }
.vocations h2 { color: #fff; font-size: clamp(44px, 6vw, 76px); }
.vocations .eyebrow { color: var(--apricot-soft); }
.vocations__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.vocations__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 580px; }
.vocations__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.vocations__body { display: flex; flex-direction: column; gap: 22px; }
.vocations__body > p { color: #DCE2EE; font-size: 19px; max-width: 560px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.steps li { border-top: 1px solid rgba(255,255,255,.4); padding-top: 12px; }
.steps a, .steps span.step { color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.steps a:hover { color: var(--apricot-soft); }
.steps small { color: var(--apricot-soft); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.vocations__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .vocations__grid { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.strip a { display: block; overflow: hidden; background: var(--sand); }
.strip img { width: 100%; height: clamp(200px, 24vw, 340px); object-fit: cover; transition: transform .5s ease; }
.strip a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prayer + contact */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.split h2 { font-size: clamp(36px, 4vw, 48px); margin-bottom: 14px; }
.split .lead { color: var(--muted); margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span:first-child { font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Prayer request + support cards (homepage) */
.give-pray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.give-pray__card { border-radius: 28px; padding: clamp(28px, 4vw, 50px); }
.give-pray__card--prayer { background: #fff; border: 1px solid var(--line); }
.give-pray__card--give { background: var(--sand); }
.give-pray h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 18px; }
.give-pray__lead { color: #3E4452; margin-bottom: 22px; }
.give-pray .wpcf7 label { font-size: 15px; }
.give-pray input[type="text"], .give-pray input[type="email"], .give-pray textarea { background: var(--cream); border-color: #DCCFBC; border-radius: 12px; }
.give-pray input:focus, .give-pray textarea:focus { background: #fff; }
.give-pray .wpcf7 textarea { height: 150px; }
.give-pray .wpcf7-submit, .give-pray .btn { border-radius: 999px; padding-left: 34px; padding-right: 34px; min-height: 56px; font-size: 17px; }
.give-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.give-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; background: #fff; border-radius: 16px; padding: 20px 26px; }
.give-list strong { font-size: 17px; color: var(--ink); }
.give-list span { color: #4A5060; text-align: right; }
@media (max-width: 900px) {
	.give-pray { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.give-pray__card { border-radius: 20px; }
	.give-list li { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
	.give-list span { text-align: left; }
}

/* Forms (Contact Form 7 and others) */
.wpcf7 form p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
	width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink); background: #fff;
	border: 1px solid #C9C3B6; border-radius: var(--radius); padding: 12px 14px; margin-top: 6px;
}
textarea { min-height: 130px; resize: vertical; }
.wpcf7 textarea { height: 150px; }
input[type="submit"], button[type="submit"], .wpcf7-submit {
	font: 600 16px/1.2 var(--sans); background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
	padding: 15px 26px; min-height: 48px; cursor: pointer;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--navy-deep); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D2E3; font-size: 15px; }
.site-footer a { color: #E4E9F2; }
.site-footer a:hover { color: var(--apricot-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer-grid h2 { font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--serif); font-size: 26px; color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #2A3B60; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: #9EABC2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile quick-action bar */
.quickbar { display: none; }
@media (max-width: 700px) {
	.quickbar {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.quickbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; border-radius: var(--radius); }
	.quickbar a.is-primary { background: var(--apricot); color: #1B1206; }
	body { padding-bottom: 72px; }
}

/* Inner pages */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.page-hero p { color: var(--muted); max-width: 720px; }
.entry { max-width: 900px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 38px; margin-top: 1.6em; }
.entry h3 { font-size: 28px; margin-top: 1.4em; }
.entry img { border-radius: var(--radius); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry .alignwide, .entry .wp-block-gallery { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 2 * var(--gutter)); }
.entry ul, .entry ol { padding-left: 1.3em; }
.post-thumb { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.post-thumb img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); margin-top: 40px; }

/* Galleries: core gallery block becomes a masonry grid with lightbox */
.wp-block-gallery, .wp-block-gallery.has-nested-images, .blocks-gallery-grid { display: block !important; columns: 3 280px; column-gap: 12px; padding: 0; list-style: none; }
.wp-block-gallery .blocks-gallery-grid { columns: inherit; }
.wp-block-gallery figure, .wp-block-gallery .blocks-gallery-item, .wp-block-gallery .wp-block-image {
	break-inside: avoid; margin: 0 0 12px !important; width: 100% !important; position: relative; display: block;
}
.wp-block-gallery figure::before, .wp-block-gallery figure::after { display: none !important; }
.wp-block-gallery img { width: 100% !important; height: auto !important; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.wp-block-gallery figcaption, .wp-block-gallery .blocks-gallery-item__caption {
	position: static !important; background: none !important; color: var(--muted) !important; font-size: 14px !important;
	padding: 8px 2px 0 !important; text-align: left !important; max-height: none !important;
}

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 28px; }
.album { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.album__cover { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); position: relative; }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album:hover .album__cover img { transform: scale(1.04); }
.album__count { position: absolute; right: 12px; bottom: 12px; background: rgba(16,32,63,.85); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.album h3 { font-size: 28px; }
.album p { color: var(--muted); font-size: 15px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,22,.96); display: none; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; color: #C9D2E3; font-size: 14px; }
.lightbox__stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; }
.lightbox__stage img { max-width: min(1200px, 100%); max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox__caption { text-align: center; color: #fff; font-family: var(--serif); font-size: 24px; padding: 16px 24px 28px; min-height: 30px; }
.lightbox button {
	width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--radius); border: 1px solid #3C4660; background: transparent;
	color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.1); }
@media (max-width: 700px) { .lightbox__stage .lightbox__prev, .lightbox__stage .lightbox__next { position: absolute; bottom: 90px; } .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; } }

/* Archive / blog list */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 28px; }
.pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Single posts and pages */
.breadcrumbs ol { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: #B9B1A2; margin-right: 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.single-hero__lead { font-size: clamp(18px, 1.8vw, 21px); color: #3E4452; max-width: 720px; }
.single-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.chip { display: inline-block; background: var(--sand); color: var(--apricot-text); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: var(--apricot-soft); color: #5A3208; }

.page-hero__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-hero--media .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); align-items: center; gap: clamp(28px, 5vw, 64px); }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(16, 24, 40, .12); }
@media (max-width: 700px) {
	.page-hero--media .wrap { grid-template-columns: 1fr; }
	.page-hero__media { max-width: 240px; }
}
/* Page hero with the featured photo behind the title */
.page-hero--photo { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); border-bottom: 0; min-height: clamp(380px, 58vh, 560px); display: flex; align-items: flex-end; }
.page-hero--photo .wrap { position: relative; z-index: 1; width: 100%; padding-top: clamp(120px, 16vw, 180px); }
.page-hero__photo { position: absolute; inset: 0; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,32,.85) 0%, rgba(10,16,32,.5) 45%, rgba(10,16,32,.25) 100%); }
/* Portraits sit on the right and fade into navy, so faces are not cropped away. */
.page-hero__photo--portrait img { position: absolute; top: 0; right: 0; width: min(48%, 560px); object-position: 50% 30%; }
.page-hero__photo--portrait::after { background: linear-gradient(to right, var(--navy-deep) 0%, var(--navy-deep) max(52%, calc(100% - 560px)), rgba(16,32,63,.35) calc(max(52%, calc(100% - 560px)) + 220px), rgba(16,32,63,0) 100%), linear-gradient(to top, rgba(10,16,32,.6), rgba(10,16,32,0) 50%); }
.page-hero--photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.page-hero--photo p { color: #EEF0F5; }
.page-hero--photo .breadcrumbs ol,
.page-hero--photo .breadcrumbs a { color: rgba(255,255,255,.8); }
.page-hero--photo .breadcrumbs a:hover { color: #fff; }
.page-hero--photo .breadcrumbs li + li::before { color: rgba(255,255,255,.5); }
.page-hero--photo .breadcrumbs [aria-current] { color: var(--apricot-soft); }
.page-hero--photo .single-hero__lead { color: #EEF0F5; }
.page-hero--photo .single-hero__meta { color: rgba(255,255,255,.85); }
.page-hero--photo .chip { background: var(--apricot); color: #1B1206; }
.page-hero--photo .chip:hover { background: var(--apricot-soft); color: #1B1206; }
@media (max-width: 700px) {
	.page-hero--photo { min-height: 340px; }
	.page-hero__photo--portrait img { width: 100%; object-position: 50% 25%; }
	.page-hero__photo--portrait::after { background: linear-gradient(to top, rgba(10,16,32,.88) 0%, rgba(10,16,32,.45) 50%, rgba(10,16,32,.2) 100%); }
}

figure.post-thumb { margin: 40px auto 0; }
figure.post-thumb img { margin-top: 0; }
figure.post-thumb figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.entry { font-size: 18px; line-height: 1.75; }
.entry > p:first-of-type { font-size: clamp(19px, 1.9vw, 21px); color: var(--ink); }
.entry h1 { font-size: clamp(30px, 3.5vw, 40px); margin-top: 1.4em; }
.entry [style*="color"] { color: inherit !important; }
.entry a { text-underline-offset: 3px; }
.entry strong { color: var(--ink); }
.entry ul li::marker { color: var(--apricot); }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--apricot); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--navy); }
.entry .wp-block-image img { width: 100%; cursor: zoom-in; }
.entry .wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

.photo-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
	width: min(1100px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%);
}
.photo-grid figure { margin: 0 !important; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.photo-grid figcaption { margin-top: 6px; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
/* Documents show as a compact card; the 600px embedded preview is hidden (slow on phones, blank in many browsers). */
.wp-block-file object { display: none; }
.wp-block-file > a:not(.wp-block-file__button) { font-weight: 600; flex: 1 1 auto; text-transform: capitalize; }
.wp-block-file > a:not(.wp-block-file__button)::before { content: "PDF"; display: inline-block; margin-right: 12px; padding: 4px 8px; border-radius: 4px; background: var(--apricot-soft); color: #5A3208; font-size: 12px; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }
.wp-block-file .wp-block-file__button { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; font-size: 15px; font-weight: 600; }

.entry-empty { background: var(--cream); padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.single-footer { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) 72px; display: flex; flex-direction: column; gap: 28px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.share__label { font-weight: 600; margin-right: 6px; }
.share__btn { display: inline-flex; align-items: center; min-height: 40px; font: 500 14px/1 var(--sans); border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--navy); color: var(--navy); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.post-nav__link:hover { border-color: var(--navy); background: var(--cream); color: var(--ink); }
.post-nav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.post-nav__title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: auto; } }

.cta-band { background: var(--navy); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4vw, 44px); margin-bottom: 6px; }
.cta-band p { color: #DCE2EE; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.related .section-head h2 { font-size: clamp(32px, 4vw, 44px); }
/* General Council cards and member profiles */
.council-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.work--person .work__img img { object-position: 50% 20%; }
.work--person h3 { margin-top: 2px; }
.work--person p { margin-top: -8px; color: var(--apricot-text); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.member-initials { font: 500 clamp(44px, 5vw, 64px)/1 var(--serif); color: var(--apricot-text); letter-spacing: .04em; }
.work--person:hover h3 { color: var(--apricot-text); }
.council-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px 24px; }
.council-grid--small .work h3 { font-size: 22px; }
.profile { background: var(--cream); border-bottom: 1px solid var(--line); }
.profile__inner { display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: 0 18px 40px rgba(16, 24, 40, .1); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile__photo .member-initials { font-size: clamp(72px, 9vw, 120px); }
.profile__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.profile__body h1 { font-size: clamp(40px, 5vw, 64px); }
.profile__bio { font-size: 18px; color: #3E4452; max-width: 620px; }
.profile__bio > * + * { margin-top: .9em; }
.profile__bio--empty { color: var(--muted); }
.profile__back { margin-top: 10px; align-self: flex-start; }
@media (max-width: 760px) {
	.profile__inner { grid-template-columns: 1fr; }
	.profile__photo { max-width: 320px; }
}

.work__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--apricot); background: var(--sand); }

/* News & events */
.happening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.happening__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--navy); padding-bottom: 12px; margin-bottom: 8px; }
.happening__head h3 { font-size: 28px; }
.happening__empty { color: var(--muted); padding: 20px 0; }
@media (max-width: 900px) { .happening { grid-template-columns: 1fr; } }

.event-list { display: flex; flex-direction: column; }
.event-row { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.event-row:hover .event-row__title { color: var(--apricot-text); }
.event-date { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 8px 0 10px; line-height: 1; }
.event-date__month { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--apricot-soft); font-weight: 600; }
.event-date__day { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-top: 4px; }
.event-list--past .event-date { background: #6B7385; }
.event-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-row__title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1.2; transition: color .2s; }
.event-row__meta { color: var(--muted); font-size: 15px; }

.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-item:hover .news-item__title { color: var(--apricot-text); }
.news-item__img { flex: 0 0 112px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.news-item__img img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-item time { font-size: 13px; color: var(--apricot-text); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news-item__title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.2; transition: color .2s; }
.news-item__summary { color: var(--muted); font-size: 16px; }
.news-item--lead { flex-direction: column; gap: 14px; }
.news-item--lead .news-item__img { flex: none; width: 100%; aspect-ratio: 16 / 9; }
.news-item--lead .news-item__title { font-size: 30px; }

.event-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 8px 0 0; }
.event-facts div { display: flex; flex-direction: column; gap: 2px; }
.event-facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--apricot-text); font-weight: 600; }
.event-facts dd { margin: 0; font-size: 18px; color: var(--ink); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--apricot); }

/* About Us (Our History): justified text, hyphenated so lines don't open wide gaps. */
.page-about-us .entry p,
.page-our-founder .entry p,
.page-about-us .entry li {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}
/* On phones the column is too narrow for even spacing, so keep it left-aligned there. */
@media (max-width: 520px) {
	.page-about-us .entry p,
	.page-our-founder .entry p,
	.page-about-us .entry li { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
}

/* How to Apply: lead, requirement cards, note, numbered path and call to action.
   The page is built from normal editor blocks with these class names, so it stays editable. */
.entry .apply-lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.6; color: var(--ink); }
.entry .apply-grid > .wp-block-group__inner-container,
.entry .apply-grid:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry .apply-grid { margin-top: 24px; }
.entry .apply-grid > .wp-block-group__inner-container > *, .entry .apply-grid > * { margin-top: 0; }
.entry .wp-block-group__inner-container > * + * { margin-top: 1.1em; }
.entry .apply-card .wp-block-group__inner-container > * + *, .entry .apply-note .wp-block-group__inner-container > * + * { margin-top: 0; }
.entry .apply-cta .wp-block-group__inner-container > * + * { margin-top: 0; }
.entry .apply-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 22px; }
.entry .apply-card h3 { font-size: 26px; margin: 0 0 12px; }
.entry .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.entry .checklist li { position: relative; padding-left: 32px; line-height: 1.55; font-size: 17px; }
.entry .checklist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A5A16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.entry .apply-note { background: var(--sand); border-left: 4px solid var(--apricot); border-radius: 0 16px 16px 0; padding: 22px 26px; margin-top: 32px; }
.entry .apply-note h3 { font-size: 24px; margin: 0 0 6px; }
.entry .apply-note p { margin: 0; }
.entry .apply-steps { list-style: none; counter-reset: step; padding: 0; margin-top: 20px; }
.entry .apply-steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.entry .apply-steps li::before {
	content: counter(step); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 17px/1 var(--sans);
}
.entry .apply-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 2px; width: 2px; background: var(--line); }
.entry .apply-steps strong { display: block; color: var(--navy); font-size: 19px; margin-bottom: 2px; }
.entry .apply-cta { background: var(--navy); color: #E4E9F2; border-radius: 20px; padding: clamp(28px, 4vw, 44px); margin-top: 40px; }
.entry .apply-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 40px); }
.entry .apply-cta a:not(.wp-block-button__link) { color: var(--apricot-soft); }
.entry .apply-cta .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.entry .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 52px; padding: 14px 28px; border-radius: 999px;
	background: var(--apricot); color: #1B1206; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--apricot);
}
.entry .wp-block-button__link:hover { background: #C4711F; border-color: #C4711F; color: #1B1206; }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.entry .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 640px) {
	.entry .apply-grid > .wp-block-group__inner-container, .entry .apply-grid { grid-template-columns: 1fr; }
	.entry .apply-steps li { padding-left: 56px; }
	.entry .wp-block-button, .entry .wp-block-button__link { width: 100%; justify-content: center; }
}
/* How to Apply header photo: keep the sister's face in the frame. */
.page-formation .page-hero__photo img { object-position: 50% 18%; }

/* Formation pages: "at a glance" facts, story note and the stages-of-formation strip. */
.entry .fact-grid { margin-top: 28px; }
.entry .fact-grid > .wp-block-group__inner-container,
.entry .fact-grid:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.entry .fact-grid > .wp-block-group__inner-container > *, .entry .fact-grid > * { margin-top: 0; }
.entry .fact { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.entry .fact .wp-block-group__inner-container > * + * { margin-top: 4px; }
.entry .fact__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--apricot-text); margin: 0; }
.entry .fact__value { font: 600 22px/1.25 var(--serif); color: var(--navy); margin: 0; }
.entry .apply-note--story { background: var(--cream); border-left-color: var(--navy); }
.entry .apply-note .wp-block-group__inner-container > p + p { margin-top: 10px; }
.entry .stage-track { list-style: none; counter-reset: stage; padding: 0; margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.entry .stage-track li {
	counter-increment: stage; position: relative; margin: 0; padding: 50px 6px 0; text-align: center;
	font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.3;
}
.entry .stage-track li::before {
	content: counter(stage); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; border: 2px solid var(--line); color: var(--muted); font: 700 16px/1 var(--sans);
}
.entry .stage-track li + li::after { content: ""; position: absolute; top: 18px; right: 50%; width: calc(100% + 8px); height: 2px; background: var(--line); }
.entry .stage-track a { color: var(--navy); }
.entry .stage-track li.is-current { color: var(--navy); }
.entry .stage-track li.is-current::before { background: var(--apricot); border-color: var(--apricot); color: #1B1206; }
.entry .stage-track__here { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--apricot-text); }
@media (max-width: 640px) {
	.entry .fact-grid > .wp-block-group__inner-container, .entry .fact-grid { grid-template-columns: 1fr; }
	.entry .stage-track { grid-template-columns: 1fr; gap: 0; }
	.entry .stage-track li { text-align: left; padding: 8px 0 18px 54px; min-height: 56px; }
	.entry .stage-track li::before { left: 0; top: 0; transform: none; }
	.entry .stage-track li + li::after { top: -20px; left: 18px; right: auto; width: 2px; height: 22px; }
}

/* Never split a phone number across lines. */
.entry a[href^="tel:"] { white-space: nowrap; }

/* Ministry & Apostolate: chip list, Trinity cards, text cards. */
.entry .chip-list { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.entry .chip-list li { margin: 0; background: var(--sand); color: var(--apricot-text); font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.entry .apply-card p { margin: 0; font-size: 17px; line-height: 1.6; color: #3E4452; }
.entry .apply-card .wp-block-group__inner-container > p + .checklist, .entry .apply-card > p + .checklist { margin-top: 12px; }
.entry .trio-grid .apply-card { border-top: 3px solid var(--apricot); }
.entry .apply-grid + p, .entry .fact-grid + p { margin-top: 24px; }

/* FST Associates: a card per partner organisation. */
.entry .partner { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--apricot); border-radius: 18px; padding: clamp(24px, 3.5vw, 36px); margin-top: 22px; }
.entry .partner .wp-block-group__inner-container > * + * { margin-top: 14px; }
.entry .partner__eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--apricot-text); }
.entry .partner h3 { font-size: clamp(28px, 3vw, 36px); margin-top: 6px !important; }
.entry .partner h4 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-top: 22px !important; }
.entry .partner p { color: #3E4452; }
.entry .partner .wp-block-buttons { margin-top: 22px !important; }
.entry .partner .is-style-outline .wp-block-button__link,
.entry > .wp-block-buttons .is-style-outline .wp-block-button__link { color: var(--navy); border-color: var(--navy); }
.entry .partner .is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.entry .partner-back { margin-top: 36px; font-weight: 600; }
.entry .partner-back a { text-decoration: none; }
.entry .partner-back a:hover { text-decoration: underline; }

/* ---------- Forms: choice buttons, two-up rows, optional hints (all CF7 forms) ---------- */
.wpcf7 fieldset.choice { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.wpcf7 fieldset.choice legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.wpcf7 .wpcf7-radio .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-radio label { position: relative; display: inline-flex; cursor: pointer; font-weight: 500; }
.wpcf7 .wpcf7-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wpcf7 .wpcf7-radio .wpcf7-list-item-label {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
	border: 1.5px solid #DCCFBC; background: #fff; color: var(--ink); font-size: 15px; transition: background .15s, border-color .15s;
}
.wpcf7 .wpcf7-radio label:hover .wpcf7-list-item-label { border-color: var(--apricot); }
.wpcf7 .wpcf7-radio input:checked + .wpcf7-list-item-label { background: var(--navy); border-color: var(--navy); color: #fff; }
.wpcf7 .wpcf7-radio input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--apricot); outline-offset: 2px; }
.wpcf7 .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wpcf7 .form-row > p { margin: 0 0 16px; }
.wpcf7 .optional { font-weight: 400; color: var(--muted); }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #9A938A; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 14px; color: #B42318; margin-top: 6px; }
.wpcf7 .wpcf7-not-valid { border-color: #B42318 !important; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2E7D4F; background: #EEF8F1; color: #1F5A38; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #B42318; background: #FEF3F2; color: #912018; }
@media (max-width: 560px) { .wpcf7 .form-row { grid-template-columns: 1fr; } }

/* ---------- Prayer Request & Support pages ---------- */
.form-page__body { background: var(--cream); }
.form-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(32px, 3.4vw, 42px); margin-bottom: 10px; }
.form-card__lead { color: #3E4452; margin-bottom: 24px; }
.form-card__intro { margin-bottom: 20px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card textarea { background: var(--cream); border-color: #DCCFBC; border-radius: 12px; }
.form-card input:focus, .form-card textarea:focus { background: #fff; }
.form-card .wpcf7-submit { border-radius: 999px; padding-left: 34px; padding-right: 34px; min-height: 56px; font-size: 17px; }
.form-aside { display: flex; flex-direction: column; gap: 18px; }
.form-aside__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 24px; }
.form-aside__card h2 { font-size: 28px; margin-bottom: 14px; }
.form-aside__card--sand { background: var(--sand); border-color: transparent; }
.form-aside__card--sand .give-list { margin-bottom: 0; }
.form-aside__card--sand .give-list li { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 2px; }
.form-aside__card--sand .give-list span { text-align: left; }
.form-aside__card--plain { background: transparent; }
.mini-steps { list-style: none; counter-reset: ms; margin: 0; padding: 0; display: grid; gap: 16px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 46px; color: #4A5060; font-size: 15px; line-height: 1.5; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--apricot-text); font: 700 15px/1 var(--sans); }
.mini-steps strong { display: block; color: var(--navy); font-size: 16px; }
.form-aside__verse { margin: 0; padding: 22px 26px; border-radius: 20px; background: var(--navy); color: #fff; }
.form-aside__verse p { font: italic 500 26px/1.25 var(--serif); margin: 0 0 8px; }
.form-aside__verse cite { font-style: normal; font-size: 14px; color: var(--apricot-soft); }
.contact-lines, .link-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-lines a { font-weight: 600; text-decoration: none; }
.link-lines a::after { content: " \2192"; }
.contact-lines a:hover, .link-lines a:hover { text-decoration: underline; }
.impact { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.impact li { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--apricot); border-radius: 16px; padding: 20px; font-size: 15px; line-height: 1.5; color: #4A5060; }
.impact strong { display: block; font: 600 22px/1.2 var(--serif); color: var(--navy); margin-bottom: 6px; }
@media (max-width: 960px) {
	.form-split { grid-template-columns: 1fr; }
	.impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .impact { grid-template-columns: 1fr; } }

/* ---------- Contact Us ---------- */
.contact-cards { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-card__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--apricot-text); margin-bottom: 6px; }
.contact-card h3 { font-size: 26px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 600; }
.contact-card__note { font-size: 14px; color: var(--muted); }
.contact-card address, .contact-map address { font-style: normal; display: flex; flex-direction: column; gap: 2px; color: #3E4452; line-height: 1.5; }
.contact-card address span:first-child, .contact-map address span:first-child { font-weight: 600; color: var(--ink); }
.contact-card .link-arrow { margin-top: 4px; display: inline-block; }
.contact-lines--plain li { color: #3E4452; }
.form-aside__card h2 svg { vertical-align: -3px; color: var(--apricot-text); }
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quick-links a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cream); text-decoration: none; color: var(--ink); transition: background .15s; }
.quick-links a:hover { background: var(--sand); }
.quick-links svg { flex: 0 0 auto; margin-top: 2px; color: var(--apricot-text); }
.quick-links span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.quick-links strong { font-size: 16px; color: var(--navy); }
.contact-map { background: #fff; border-top: 1px solid var(--line); }
.contact-map__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.contact-map__text { display: flex; flex-direction: column; gap: 12px; }
.contact-map__text h2 { font-size: clamp(34px, 4vw, 48px); }
.contact-map__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.contact-map__frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); aspect-ratio: 16 / 10; }
.contact-map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
	.contact-map__inner { grid-template-columns: 1fr; }
	.contact-map__frame { aspect-ratio: 4 / 3; }
}

/* Illustrated header (Prayer Request candle): keep the candle in view and the title readable. */
.page-hero__art img { object-position: 80% 50%; }
.page-hero__art::after { background: linear-gradient(to right, rgba(11,22,48,.85) 0%, rgba(11,22,48,.55) 40%, rgba(11,22,48,0) 70%); }
@media (max-width: 700px) {
	.page-hero__art img { object-position: 74% 50%; }
	.page-hero__art::after { background: linear-gradient(to top, rgba(11,22,48,.9) 0%, rgba(11,22,48,.45) 55%, rgba(11,22,48,.1) 100%); }
}
