/*
 * Yi Vision 2030: section styles for the Home, EOI and Thank you pages.
 * Owned by the CONTENT agent. Targets the block markup classes (yi-*).
 * Light mode only. Plugin components (zones, quiz, form) are styled by yi-core.css.
 */

/* ---------- Section shell ---------- */
.wp-block-post-content > .yi-band,
.wp-block-post-content > .yi-tri,
.entry-content > .yi-band,
.entry-content > .yi-tri,
.wp-block-post-content > .yi-band + .yi-band {
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-post-content.is-layout-constrained > .yi-band,
.wp-block-post-content.is-layout-constrained > .yi-tri {
	margin-block: 0;
}
.yi-band {
	padding-top: clamp(40px, 6vw, 88px);
	padding-bottom: clamp(40px, 6vw, 88px);
	padding-left: max(5vw, 16px);
	padding-right: max(5vw, 16px);
}
.yi-band.has-global-padding {
	padding-left: max(5vw, 16px);
	padding-right: max(5vw, 16px);
}
.yi-band > .yi-wrap {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

/* Reset core flow and constrained gaps inside our sections, then set the design spacing */
.yi-band .yi-wrap > *,
.yi-band .wp-block-group > *,
.yi-band .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 0;
}
.yi-band h1,
.yi-band h2,
.yi-band h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo, Archivo, Inter, sans-serif);
	line-height: 1.08;
	text-wrap: balance;
}
.yi-band h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.yi-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.yi-band h3 { font-size: 20px; font-weight: 700; }
.yi-band p { margin: 0; }
.yi-band .lede {
	font-size: 17px;
	color: var(--mute, #4f5878);
	max-width: 62ch;
}
.yi-band .wp-block-columns {
	margin: 0;
}

/* Buttons inside sections */
.yi-band .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Tricolour strip (core/separator) ---------- */
hr.yi-tri,
.wp-block-separator.yi-tri,
hr.wp-block-separator.yi-tri:not(.is-style-wide):not(.is-style-dots) {
	display: block;
	height: 6px;
	width: auto;
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	border: 0;
	opacity: 1;
	color: transparent;
	background: linear-gradient(90deg, var(--sa, #F58220) 0 33.3%, #fff 33.3% 66.6%, var(--gr, #0B8F47) 66.6%);
}

/* ---------- Hero ---------- */
.yi-hero {
	color: var(--nv, #1F2A5C);
	background:
		radial-gradient(60% 70% at 0% 0%, rgba(245, 130, 32, .22), transparent 70%),
		radial-gradient(55% 65% at 100% 100%, rgba(11, 143, 71, .2), transparent 70%),
		#fffaf3;
}
.yi-hero .yi-hero-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.yi-hero .yi-hero-cols > .wp-block-column {
	align-self: center;
	flex-basis: auto;
	width: auto;
	margin: 0;
}
.yi-hero .yi-tag {
	font-size: 15px;
	font-weight: 600;
	color: var(--gr-d, #06703A);
	margin-bottom: 16px;
}
.yi-hero h1 { color: var(--nv, #1F2A5C); }
.yi-hero h1 em {
	font-style: normal;
	color: var(--sa-d, #C85F00);
}
.yi-hero .wp-block-column > .yi-sub {
	font-size: 17px;
	color: #3c4670;
	margin: 20px 0 28px;
	max-width: 54ch;
}
.yi-hero .is-style-ghost .wp-block-button__link { color: var(--nv, #1F2A5C); }
.yi-herofig {
	position: relative;
	width: 100%;
	aspect-ratio: 520 / 460;
}
.yi-herofig svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.yi-herofig .lower {
	animation: yi-lower 3.5s ease-in-out infinite alternate;
}
@keyframes yi-lower {
	from { transform: translateY(-10px); }
	to { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.yi-herofig .lower { animation: none; }
}
@media (max-width: 900px) {
	.yi-hero .yi-hero-cols { grid-template-columns: minmax(0, 1fr); }
	.yi-herofig { max-width: 520px; margin: 0 auto; }
}

/* Hero banner image (replaces the SVG illustration) */
.yi-hero .yi-heroimg { margin: 0; width: 100%; }
.yi-hero .yi-heroimg img { display: block; width: 100%; height: auto; max-width: 620px; margin: 0 auto; }
@media (max-width: 900px) {
	.yi-hero .yi-heroimg img { max-width: 520px; }
}

/* ---------- Stats ---------- */
.yi-band.yi-stats {
	padding-top: 0;
	padding-bottom: 0;
	background: var(--nv, #1F2A5C);
	color: #fff;
}
.yi-stats .yi-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.yi-stats .yi-stats-grid > .yi-stat {
	padding: 24px 16px 26px;
	border-left: 1px solid rgba(255, 255, 255, .18);
}
.yi-stats .yi-stats-grid > .yi-stat:first-child {
	border-left: 0;
	padding-left: 0;
}
.yi-stats .yi-stat-num {
	display: block;
	font: 800 clamp(28px, 3.4vw, 40px)/1.05 var(--wp--preset--font-family--archivo, Archivo, sans-serif);
}
.yi-stats .yi-stat:nth-child(odd) .yi-stat-num { color: #ffb070; }
.yi-stats .yi-stat:nth-child(even) .yi-stat-num { color: #7fe0a8; }
.yi-stats .yi-stat-label {
	font-size: 14px;
	color: #c9d0ea;
}
@media (max-width: 700px) {
	.yi-stats .yi-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yi-stats .yi-stats-grid > .yi-stat {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .18);
	}
	.yi-stats .yi-stats-grid > .yi-stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Impact ---------- */
.yi-impact .yi-wrap > .lede { margin-top: 14px; }
.yi-impact .yi-wrap > .yi-imp {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 32px;
	margin-top: 32px;
	border-top: 2px solid var(--ink, #1F2A5C);
}
.yi-impact .yi-imp > .yi-imp-item {
	padding: 20px 0;
	border-bottom: 1px solid var(--line, #e3e6ef);
}
.yi-impact .yi-imp-item > .yi-imp-title {
	font: 700 19px/1.2 var(--wp--preset--font-family--archivo, Archivo, sans-serif);
	margin-bottom: 6px;
	color: var(--ink, #1F2A5C);
}
.yi-impact .yi-imp-item:first-child > .yi-imp-title {
	color: var(--sa-ink, #C85F00);
	font-size: 24px;
}
.yi-impact .yi-imp-item > p {
	color: var(--mute, #4f5878);
	font-size: 15px;
}
.yi-impact .yi-imp-item > .yi-imp-label {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gr-ink, #06703A);
}
@media (max-width: 900px) {
	.yi-impact .yi-wrap > .yi-imp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.yi-impact .yi-wrap > .yi-imp { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Why lead ---------- */
.yi-why { background: var(--soft, #fbf7f1); }
.yi-why .yi-two {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}
.yi-why .yi-two > .wp-block-column {
	align-self: start;
	flex-basis: auto;
	width: auto;
	margin: 0;
}
.yi-why .wp-block-column > .lede { margin-top: 14px; }
.yi-why .wp-block-column > h2 + .lede { margin-top: 16px; }
.yi-why .yi-gives { border-top: 2px solid var(--ink, #1F2A5C); }
/* Icon tiles for "Your time / skills / network / voice" (decorative, CSS only) */
.yi-why .yi-gives > .yi-give::before {
content: "";
display: block;
width: 44px;
height: 44px;
border-radius: 50%;
background-color: #fff;
background-repeat: no-repeat;
background-position: center;
background-size: 26px 26px;
box-shadow: 0 0 0 2px #F58220 inset;
}
.yi-why .yi-gives > .yi-give:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231F2A5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='25' r='17' fill='%23F58220' fill-opacity='.18'/%3E%3Cpath d='M24 14v11l8 5'/%3E%3Cpath d='M19 5h10'/%3E%3C/svg%3E"); }
.yi-why .yi-gives > .yi-give:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231F2A5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6a12 12 0 0 0-7 22v6h14v-6a12 12 0 0 0-7-22z' fill='%23F58220' fill-opacity='.3'/%3E%3Cpath d='M18 38h12M20 43h8'/%3E%3C/svg%3E"); }
.yi-why .yi-gives > .yi-give:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231F2A5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 14L10 34M24 14l14 20M10 34h28'/%3E%3Ccircle cx='24' cy='12' r='6' fill='%230B8F47' fill-opacity='.35'/%3E%3Ccircle cx='9' cy='35' r='6' fill='%23F58220' fill-opacity='.4'/%3E%3Ccircle cx='39' cy='35' r='6' fill='%230B8F47' fill-opacity='.35'/%3E%3C/svg%3E"); }
.yi-why .yi-gives > .yi-give:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231F2A5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 19v10h6l18 10V9L12 19z' fill='%23F58220' fill-opacity='.3'/%3E%3Cpath d='M36 18c3 2 3 10 0 12M40 13c6 5 6 17 0 22'/%3E%3C/svg%3E"); }
.yi-why .yi-gives > .yi-give {
	display: grid;
	grid-template-columns: 52px 128px minmax(0, 1fr);
align-items: start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line, #e3e6ef);
}
.yi-why .yi-give > .yi-give-title {
	font: 700 18px/1.3 var(--wp--preset--font-family--archivo, Archivo, sans-serif);
	color: var(--sa-ink, #C85F00);
}
.yi-why .yi-give > p { color: var(--mute, #4f5878); }
@media (max-width: 860px) {
	.yi-why .yi-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.yi-why .yi-gives > .yi-give { grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; }
.yi-why .yi-gives > .yi-give::before { grid-row: 1 / span 2; }
}

/* ---------- Verticals ---------- */
.yi-verticals .yi-vintro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.yi-verticals .yi-vintro > .wp-block-column {
	align-self: center;
	flex-basis: auto;
	width: auto;
	margin: 0;
}
.yi-verticals .wp-block-column > .lede { margin-top: 14px; }
.yi-verticals .wp-block-column > .yi-who {
	margin-top: 18px;
	font-size: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line, #e3e6ef);
}
.yi-verticals .yi-who strong { color: var(--gr-ink, #06703A); }
@media (max-width: 860px) {
	.yi-verticals .yi-vintro { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Find your fit ---------- */
.yi-fit { background: var(--soft, #fbf7f1); }
.yi-fit .yi-wrap > .lede { margin: 14px 0 32px; }

/* ---------- EC benefits ---------- */
.yi-ec {
	background: var(--nv, #1F2A5C);
	color: #fff;
}
.yi-ec h2,
.yi-ec h3 { color: #fff; }
.yi-ec .yi-wrap > .lede {
	margin-top: 14px;
	color: #c9d0ea;
}
.yi-ec .yi-wrap > .yi-ecgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 32px;
}
.yi-ec .yi-ecgrid > .yi-ec-item {
	border-top: 3px solid var(--sa, #F58220);
	padding-top: 16px;
}
.yi-ec .yi-ecgrid > .yi-ec-item:nth-child(2) { border-color: #fff; }
.yi-ec .yi-ecgrid > .yi-ec-item:nth-child(3) { border-color: var(--gr, #0B8F47); }
.yi-ec .yi-ec-item > .yi-ec-title {
	font: 800 22px/1.2 var(--wp--preset--font-family--archivo, Archivo, sans-serif);
	margin-bottom: 8px;
}
.yi-ec .yi-ec-item > p {
	color: #d6dbef;
	font-size: 15.5px;
}
@media (max-width: 820px) {
	.yi-ec .yi-wrap > .yi-ecgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works ---------- */
.yi-how .yi-wrap > .yi-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
}
.yi-how .yi-steps > .yi-step {
	border-top: 3px solid var(--sa, #F58220);
	padding-top: 14px;
}
.yi-how .yi-steps > .yi-step:nth-child(even) { border-color: var(--gr, #0B8F47); }
.yi-how .yi-step > .yi-step-title {
	font: 700 18px/1.3 var(--wp--preset--font-family--archivo, Archivo, sans-serif);
	margin-bottom: 6px;
}
.yi-how .yi-step > p {
	color: var(--mute, #4f5878);
	font-size: 15px;
}
@media (max-width: 820px) {
	.yi-how .yi-wrap > .yi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.yi-how .yi-wrap > .yi-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Final call to action ---------- */
.yi-final {
	background: var(--gr, #0B8F47);
	color: #fff;
	text-align: center;
}
.yi-final h2 { color: #fff; }
.yi-final .yi-wrap > p {
	color: #e3f7ec;
	margin: 16px auto 28px;
	max-width: 56ch;
}
.yi-final .wp-block-buttons { justify-content: center; }
.yi-final .wp-block-button__link { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

/* ---------- EOI and Thank you pages ---------- */
.yi-band .yi-formwrap {
	max-width: 720px;
}
.yi-formhead {
	color: var(--nv, #1F2A5C);
	background:
		radial-gradient(60% 90% at 0% 0%, rgba(245, 130, 32, .22), transparent 70%),
		radial-gradient(55% 90% at 100% 100%, rgba(11, 143, 71, .18), transparent 70%),
		#fffaf3;
}
.yi-formhead h1 { color: var(--nv, #1F2A5C); }
.yi-formhead .yi-formwrap > p { color: #3c4670; margin-top: 14px; }
.yi-formhead .yi-formwrap > p.yi-back { margin: 0 0 18px; }
.yi-formhead .yi-back a {
	display: inline-block;
	color: var(--sa-d, #C85F00);
	font-weight: 600;
	text-decoration: none;
}
.yi-formhead .yi-back a:hover { text-decoration: underline; }
.yi-req { color: var(--sa-d, #C85F00); }
.yi-formbody .yi-formwrap > .yi-back-btns { margin-top: 28px; }

/* Privacy notice */
.yi-privacy h1 { margin-bottom: 20px; }
.yi-privacy .yi-wrap > h2 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
.yi-privacy .yi-wrap > p { color: var(--mute, #4f5878); margin-top: 10px; }

/* On the ground: horizontal photo strip (core gallery block) */
.yi-moments { background: var(--soft, #fbf7f1); }
.yi-moments .yi-wrap > .lede { margin-top: 14px; }
.yi-moments .wp-block-gallery.yi-gal.has-nested-images {
	display: flex; flex-wrap: nowrap; gap: 14px; margin-top: 24px; padding-bottom: 10px;
	overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
	scrollbar-color: var(--sa, #F58220) transparent;
}
.yi-moments .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 min(78vw, 360px); width: min(78vw, 360px); margin: 0; scroll-snap-align: start;
	display: block; flex-direction: initial;
}
.yi-moments .wp-block-gallery.yi-gal.has-nested-images { align-items: flex-start; }
.yi-moments .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; flex: none;
}
.yi-moments .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image figcaption {
	position: static; background: none; color: var(--mute, #4f5878); font-size: 14px; line-height: 1.4;
	text-align: left; padding: 8px 0 0; margin: 0; max-height: none; overflow: visible; text-shadow: none;
}
.yi-moments .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .yi-moments .wp-block-gallery.yi-gal { scroll-behavior: auto; } }

/* Accessibility: final band green deepened slightly so white and light text pass 4.5:1 */
.yi-band.yi-final,
.yi-band.yi-final.has-green-background-color { background-color: #0A7F3F !important; }

/* ---------- Supporting photos (non-event) ---------- */
.yi-impact .yi-wrap > .yi-photorow {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}
.yi-photorow > .wp-block-image { margin: 0; }
.yi-photorow > .wp-block-image img,
.yi-why .yi-why-photo img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: 12px;
}
.yi-photorow > .wp-block-image img { aspect-ratio: 4 / 3; height: auto; }
.yi-photorow .wp-element-caption {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink, #1F2A5C);
	text-align: left;
}
.yi-why .yi-wrap > .yi-why-photo { margin: 40px 0 0; }
.yi-why .yi-why-photo img { aspect-ratio: 21 / 8; height: auto; object-position: center 40%; }
@media (max-width: 900px) {
	.yi-impact .yi-wrap > .yi-photorow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yi-why .yi-why-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.yi-impact .yi-wrap > .yi-photorow { gap: 12px; }
	.yi-photorow .wp-element-caption { font-size: 13px; }
	.yi-why .yi-why-photo img { aspect-ratio: 4 / 3; }
}

/* Impact photo slider: same horizontal strip as "On the ground" */
.yi-impact .wp-block-gallery.yi-gal.has-nested-images {
	display: flex; flex-wrap: nowrap; gap: 14px; margin-top: 40px; padding-bottom: 10px;
	overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
	scrollbar-color: var(--sa, #F58220) transparent; align-items: flex-start;
}
.yi-impact .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 min(78vw, 360px); width: min(78vw, 360px); margin: 0; scroll-snap-align: start;
	display: block; flex-direction: initial;
}
.yi-impact .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; flex: none;
}
.yi-impact .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image figcaption {
	position: static; background: none; color: var(--mute, #4f5878); font-size: 14px; line-height: 1.4;
	text-align: left; padding: 8px 0 0; margin: 0; max-height: none; overflow: visible; text-shadow: none;
}
.yi-impact .wp-block-gallery.yi-gal.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .yi-impact .wp-block-gallery.yi-gal { scroll-behavior: auto; } }
